private DementiaVo populateDataFromScreen(DementiaVo dementiaVo) { dementiaVo.setIsExcludedFromWorklist(Boolean.TRUE); DementiaWorklistStatusVo currentWorkListStatus = new DementiaWorklistStatusVo(); currentWorkListStatus.setStatus(ims.core.vo.lookups.DementiaWorklistStatus.EXCLUDED); currentWorkListStatus.setReasonForExclusion(form.cmbReason().getValue()); AuthoringInformationVo voAuthor = new AuthoringInformationVo(); voAuthor.setAuthoringDateTime(new DateTime()); if (domain.getHcpUser() != null) voAuthor.setAuthoringHcp((HcpLiteVo) domain.getHcpLiteUser()); currentWorkListStatus.setAuthoringInformation(voAuthor); dementiaVo.setCurrentWorklistStatus(currentWorkListStatus); dementiaVo.setIsExcludedFromWorklist(Boolean.TRUE); DementiaWorklistStatusVoCollection historyWorkListStatusColl = dementiaVo.getHistoricalWorklistStatus(); if(!form.getLocalContext().getselectedDementia().getHistoricalWorklistStatusIsNotNull()) { historyWorkListStatusColl.add(currentWorkListStatus); dementiaVo.setHistoricalWorklistStatus(historyWorkListStatusColl); } else if(!form.getLocalContext().getselectedDementia().getHistoricalWorklistStatus().contains(currentWorkListStatus)) { historyWorkListStatusColl.add(currentWorkListStatus); dementiaVo.setHistoricalWorklistStatus(historyWorkListStatusColl); } return dementiaVo; }
private DementiaVo populateDataFromScreen(DementiaVo dementiaVo) { dementiaVo.setIsExcludedFromWorklist(Boolean.TRUE); DementiaWorklistStatusVo currentWorkListStatus = new DementiaWorklistStatusVo(); currentWorkListStatus.setStatus(ims.core.vo.lookups.DementiaWorklistStatus.EXCLUDED); currentWorkListStatus.setReasonForExclusion(form.cmbReason().getValue()); dementiaVo.getPatient().setDementiaWorklistStatus(null); dementiaVo.getPatient().setDementiaBreachDateTime(null); AuthoringInformationVo voAuthor = new AuthoringInformationVo(); voAuthor.setAuthoringDateTime(new DateTime()); if (domain.getHcpUser() != null) voAuthor.setAuthoringHcp((HcpLiteVo) domain.getHcpLiteUser()); currentWorkListStatus.setAuthoringInformation(voAuthor); dementiaVo.setCurrentWorklistStatus(currentWorkListStatus); dementiaVo.setIsExcludedFromWorklist(Boolean.TRUE); DementiaWorklistStatusVoCollection historyWorkListStatusColl = dementiaVo.getHistoricalWorklistStatus(); if(!form.getLocalContext().getselectedDementia().getHistoricalWorklistStatusIsNotNull()) { historyWorkListStatusColl.add(currentWorkListStatus); dementiaVo.setHistoricalWorklistStatus(historyWorkListStatusColl); } else if(!form.getLocalContext().getselectedDementia().getHistoricalWorklistStatus().contains(currentWorkListStatus)) { historyWorkListStatusColl.add(currentWorkListStatus); dementiaVo.setHistoricalWorklistStatus(historyWorkListStatusColl); } return dementiaVo; }
private DementiaVo populateDataFromScreen(DementiaVo dementiaVo) { DementiaFindVo dementiaFindVo = populateDataFromStep1Tab(dementiaVo.getStepOneFind()); dementiaVo.setStepOneFind(dementiaFindVo); DementiaWorklistStatusVo tempCurrentStatus = null; // temporary used to set status to a specific type /* * tempCurrentStatus = populateStatus(DementiaWorklistStatus.STEP_ONE_FIND_OUTSTANDING,form.getLocalContext().getAuthoringInfo()); * * dementiaVo.setCurrentWorklistStatus(tempCurrentStatus); * * DementiaWorklistStatusVoCollection tempStatusHistory = dementiaVo.getHistoricalWorklistStatus(); tempStatusHistory.add(tempCurrentStatus); dementiaVo.setHistoricalWorklistStatus(tempStatusHistory); */ dementiaVo.setDementiaConfirmed(form.GroupQuestion1().getValue().equals(GroupQuestion1Enumeration.rdoQuestion1Yes)); dementiaVo.setDeliriumConfirmed(form.GroupQuestion2DC().getValue().equals(GroupQuestion2DCEnumeration.rdoQuestion2DCYes) || (form.GroupQuestion2DC().getValue().equals(GroupQuestion2DCEnumeration.rdoQuestion2DCYes) && form.GroupQuestion3().getValue().equals(GroupQuestion3Enumeration.rdoQuestion3Yes))); if (dementiaFindVo != null) { AuthoringInformationVo voAuthor = new AuthoringInformationVo(); voAuthor.setAuthoringDateTime(new DateTime()); if (domain.getHcpLiteUser() != null) voAuthor.setAuthoringHcp((HcpLiteVo) domain.getHcpLiteUser()); if (form.GroupQuestion1().getValue().equals(GroupQuestion1Enumeration.rdoQuestion1Yes) || (form.GroupQuestion1().getValue().equals(GroupQuestion1Enumeration.rdoQuestion1No) && form.GroupQuestion2DC().getValue().equals(GroupQuestion2DCEnumeration.rdoQuestion2DCNo) && form.GroupQuestion3().getValue().equals(GroupQuestion3Enumeration.rdoQuestion3No))) { if (dementiaVo.getCurrentWorklistStatusIsNotNull() && !DementiaWorklistStatus.COMPLETED.equals(dementiaVo.getCurrentWorklistStatus().getStatus())) { tempCurrentStatus = populateStatus(DementiaWorklistStatus.COMPLETED, voAuthor); } } else if (form.GroupQuestion2DC().getValue().equals(GroupQuestion2DCEnumeration.rdoQuestion2DCYes) || (form.GroupQuestion2DC().getValue().equals(GroupQuestion2DCEnumeration.rdoQuestion2DCNo) && form.GroupQuestion3().getValue().equals(GroupQuestion3Enumeration.rdoQuestion3Yes))) { if (dementiaVo.getCurrentWorklistStatusIsNotNull() && !DementiaWorklistStatus.STEP_TWO_ASSESS_INVESTIGATE_OUTSTANDING.equals(dementiaVo.getCurrentWorklistStatus().getStatus()) && dementiaVo.getStepTwoAssess()==null) { tempCurrentStatus = populateStatus(DementiaWorklistStatus.STEP_TWO_ASSESS_INVESTIGATE_OUTSTANDING, voAuthor); } } if (tempCurrentStatus != null) { dementiaVo.setCurrentWorklistStatus(tempCurrentStatus); DementiaWorklistStatusVoCollection tempStatusHistory = dementiaVo.getHistoricalWorklistStatus(); tempStatusHistory.add(tempCurrentStatus); dementiaVo.setHistoricalWorklistStatus(tempStatusHistory); } } return dementiaVo; }
private DementiaVo populateDataFromScreen(DementiaVo dementiaVo) { DementiaFindVo dementiaFindVo = populateDataFromStep1Tab(dementiaVo.getStepOneFind()); dementiaVo.setStepOneFind(dementiaFindVo); DementiaWorklistStatusVo tempCurrentStatus = null; // temporary used to set status to a specific type /* * tempCurrentStatus = populateStatus(DementiaWorklistStatus.STEP_ONE_FIND_OUTSTANDING,form.getLocalContext().getAuthoringInfo()); * * dementiaVo.setCurrentWorklistStatus(tempCurrentStatus); * * DementiaWorklistStatusVoCollection tempStatusHistory = dementiaVo.getHistoricalWorklistStatus(); tempStatusHistory.add(tempCurrentStatus); dementiaVo.setHistoricalWorklistStatus(tempStatusHistory); */ dementiaVo.setDementiaConfirmed(form.GroupQuestion1().getValue().equals(GroupQuestion1Enumeration.rdoQuestion1Yes)); dementiaVo.setDeliriumConfirmed(form.GroupQuestion2DC().getValue().equals(GroupQuestion2DCEnumeration.rdoQuestion2DCYes) || (form.GroupQuestion2DC().getValue().equals(GroupQuestion2DCEnumeration.rdoQuestion2DCYes) && form.GroupQuestion3().getValue().equals(GroupQuestion3Enumeration.rdoQuestion3Yes))); if (dementiaFindVo != null) { AuthoringInformationVo voAuthor = new AuthoringInformationVo(); voAuthor.setAuthoringDateTime(new DateTime()); if (domain.getHcpLiteUser() != null) voAuthor.setAuthoringHcp((HcpLiteVo) domain.getHcpLiteUser()); if (form.GroupQuestion1().getValue().equals(GroupQuestion1Enumeration.rdoQuestion1Yes) || (form.GroupQuestion1().getValue().equals(GroupQuestion1Enumeration.rdoQuestion1No) && form.GroupQuestion2DC().getValue().equals(GroupQuestion2DCEnumeration.rdoQuestion2DCNo) && form.GroupQuestion3().getValue().equals(GroupQuestion3Enumeration.rdoQuestion3No))) { if (dementiaVo.getCurrentWorklistStatusIsNotNull() && !DementiaWorklistStatus.COMPLETED.equals(dementiaVo.getCurrentWorklistStatus().getStatus())) { tempCurrentStatus = populateStatus(DementiaWorklistStatus.COMPLETED, voAuthor); //wdev-18784 if( dementiaVo.getPatientIsNotNull()) { dementiaVo.getPatient().setDementiaWorklistStatus(null); dementiaVo.getPatient().setDementiaBreachDateTime(null); } } } else if (form.GroupQuestion2DC().getValue().equals(GroupQuestion2DCEnumeration.rdoQuestion2DCYes) || (form.GroupQuestion2DC().getValue().equals(GroupQuestion2DCEnumeration.rdoQuestion2DCNo) && form.GroupQuestion3().getValue().equals(GroupQuestion3Enumeration.rdoQuestion3Yes))) { if (dementiaVo.getCurrentWorklistStatusIsNotNull() && !DementiaWorklistStatus.STEP_TWO_ASSESS_INVESTIGATE_OUTSTANDING.equals(dementiaVo.getCurrentWorklistStatus().getStatus()) && dementiaVo.getStepTwoAssess()==null) { tempCurrentStatus = populateStatus(DementiaWorklistStatus.STEP_TWO_ASSESS_INVESTIGATE_OUTSTANDING, voAuthor); //wdev-18784 if( dementiaVo.getPatientIsNotNull()) { dementiaVo.getPatient().setDementiaWorklistStatus(DementiaWorklistStatus.STEP_TWO_ASSESS_INVESTIGATE_OUTSTANDING); dementiaVo.getPatient().setDementiaBreachDateTime(dementiaVo.getBreachDateTime()); } } } if (tempCurrentStatus != null) { dementiaVo.setCurrentWorklistStatus(tempCurrentStatus); DementiaWorklistStatusVoCollection tempStatusHistory = dementiaVo.getHistoricalWorklistStatus(); tempStatusHistory.add(tempCurrentStatus); dementiaVo.setHistoricalWorklistStatus(tempStatusHistory); } } return dementiaVo; }