private PlanOfCareNotingVo populateDataFromScreenForNoting(PlanOfCareActionsVoCollection recordColl) { PlanOfCareNotingVo pocNoting = form.getGlobalContext().getPlanOfCareActionsReview(); // POCNoting CareContext pocNoting.setCareContext(form.getGlobalContext().Core.getCurrentCareContext()); AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo(); voAuthoringInformation.setAuthoringDateTime(form.customAuthoring().getValue().getAuthoringDateTime()); voAuthoringInformation.setAuthoringHcp(form.customAuthoring().getValue().getAuthoringHcp()); pocNoting.setAuthoringInformation(voAuthoringInformation); //POCNoting ReviewingHCP ReviewingDateTime pocNoting.setReviewingDateTime(form.customReviewing().getValue().getAuthoringDateTime()); pocNoting.setReviewingHCP(form.customReviewing().getValue().getAuthoringHcp()); pocNoting.setActionStatus(PlanOfCareActionStatus.ACTIVE); pocNoting.setActions(recordColl); return pocNoting; }
protected void onGrdChronologicalSelectionChanged() throws PresentationLogicException { if (form.lyr1().tabChronological().grdChronological().getSelectedRow().getValue() != null) { PlanOfCareNotingVo voItem = form.lyr1().tabChronological().grdChronological().getSelectedRow().getValue(); if (voItem.getActionStatusIsNotNull() && voItem.getActionStatus().equals(PlanOfCareActionStatus.REQUIRES_CONFIRMATION) && returnFlagStatus()) { if (voItem.getActionStatus().equals(PlanOfCareActionStatus.REQUIRES_CONFIRMATION)) { form.getContextMenus().getGenericGridAddItem().setText("Review Actions"); form.getContextMenus().getGenericGridAddItem().setVisible(true); } else { form.getContextMenus().getGenericGridAddItem().setVisible(false); } } else { form.getContextMenus().getGenericGridAddItem().setVisible(false); } form.getGlobalContext().setPlanOfCareActionsReview(voItem); } }