private String getMRN(PatientForTriageVo patient) { if (patient==null || patient.getIdentifiers()==null || patient.getIdentifiers().size()==0) return null; for (int i=0;i<patient.getIdentifiers().size();i++) { PatientId tempId = patient.getIdentifiers().get(i); if (PatIdType.HOSPNUM.equals(tempId.getType())) { return tempId.getValue(); } } return null; }
private void populateScreenFromData() { if(form.getLocalContext().getSelectedWaitingPatient() == null) return; PatientForTriageVo patient = form.getLocalContext().getSelectedWaitingPatient().getPatient(); EpisodeOfCareRefVo episode = form.getLocalContext().getSelectedWaitingPatient().getEpisode().getEpisodeOfCare(); CareContextRefVo careContext = form.getLocalContext().getSelectedWaitingPatient().getAttendance().getCareContext(); ClinicalProblemRefVo problem = null; if(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getMainPresentingProblem() != null) { problem = form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getMainPresentingProblem().getProblem(); } PatientICPRefVo icp = form.getLocalContext().getSelectedWaitingPatient().getTriageDetails() != null ? form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePathway() : null; form.getGlobalContext().Core.setPatientShort(domain.getPatientShort(patient));//WDEV-15815 form.getGlobalContext().Core.setEpisodeofCareShort(domain.getEpisodeOfCare(episode)); form.getGlobalContext().Core.setCurrentCareContext(domain.getCareContext(careContext)); initializePatientTriageLayer(patient, episode, careContext, problem, icp); populateOtherDetails(patient); }
private void populateOtherDetails(PatientForTriageVo patient) { populateOtherProblems(); form.ccAllergy().refresh(); form.ccAlert().refresh(); populateAttendanceHisyory(patient); form.imgTriagePriority().setValue(getPriorityImageByTriagePriority()); form.lblPresentingComplaint().setValue((form.getLocalContext().getSelectedWaitingPatient() != null && form.getLocalContext().getSelectedWaitingPatient().getEpisode().getPresentingComplaint() != null) ? form.getLocalContext().getSelectedWaitingPatient().getEpisode().getPresentingComplaint().getText() : ""); form.lblPresentingProblem().setValue((form.getLocalContext().getSelectedWaitingPatient() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getMainPresentingProblem() != null) ? form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getMainPresentingProblem().getPatientProblem() : null); form.lblDiscriminator().setValue((form.getLocalContext().getSelectedWaitingPatient() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriageAssessment() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriageAssessment().getDiscriminator() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriageAssessment().getDiscriminator().getDiscriminator() != null) ? form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriageAssessment().getDiscriminator().getDiscriminator().getDiscriminatorName() : ""); populateAttendanceTimes(); }
private void initializePatientTriageLayer(PatientForTriageVo patient, EpisodeOfCareRefVo episode, CareContextRefVo careContext, ClinicalProblemRefVo problem, PatientICPRefVo icp) { form.lyrPatientTriage().tabNotes().ccMedicNotes().initialize(patient, episode, careContext, problem); //WDEV-15996 if (ConfigFlag.UI.DISPLAY_EXTENDED_OBS_DATA_SET.getValue()==false) { form.lyrPatientTriage().tabObs().ccVitalSigns().initialize(); } else { initializeObsLayerTabs(); } TrackingForClinicianWorklistAndTriageVo trackVo = domain.getTrackingForClinicianWorklistAndTriageVo(form.getLocalContext().getSelectedWaitingPatient()); //wdev-17819 form.lyrPatientTriage().tabPatientMeds().ccPatientMeds().initialize(patient, careContext, episode,trackVo); //wdev-17819 form.lyrPatientTriage().tabRelevantPMH().ccRelevantPMH().initialize(careContext, patient, episode); form.lyrPatientTriage().tabSysReview().ccSystemReview().initialize(careContext, episode, patient, problem); form.lyrPatientTriage().tabPathway().ccICP().setValue(icp); form.lyrPatientTriage().tabSupport().ccSupportService().initialize(careContext, episode, patient); form.lyrPatientTriage().tabDischargeDetails().ccDischarge().setValue(careContext, problem); }
private void populateScreenFromData() { if(form.getLocalContext().getSelectedWaitingPatient() == null) return; PatientForTriageVo patient = form.getLocalContext().getSelectedWaitingPatient().getPatient(); EpisodeOfCareRefVo episode = form.getLocalContext().getSelectedWaitingPatient().getEpisode().getEpisodeOfCare(); CareContextRefVo careContext = form.getLocalContext().getSelectedWaitingPatient().getAttendance().getCareContext(); ClinicalProblemRefVo problem = null; if(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getMainPresentingProblem() != null) { problem = form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getMainPresentingProblem().getProblem(); } PatientICPRefVo icp = form.getLocalContext().getSelectedWaitingPatient().getTriageDetails() != null ? form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePathway() : null; form.getGlobalContext().Core.setPatientShort(domain.getPatientShort(patient));//WDEV-15815 form.getGlobalContext().Core.setEpisodeofCareShort(domain.getEpisodeOfCare(episode)); form.getGlobalContext().Core.setCurrentCareContext(domain.getCareContext(careContext)); populateOtherDetails(patient); initializePatientTriageLayer(patient, episode, careContext, problem, icp,form.getLocalContext().getSelectedWaitingPatient()); //wdev-17819 }
private void populateScreenFromData() { if(form.getLocalContext().getSelectedTriagePatient() == null) return; PatientForTriageVo patient = form.getLocalContext().getSelectedTriagePatient().getPatient(); EpisodeOfCareRefVo episode = form.getLocalContext().getSelectedTriagePatient().getEpisode().getEpisodeOfCare(); CareContextRefVo careContext = form.getLocalContext().getSelectedTriagePatient().getAttendance().getCareContext(); PatientICPRefVo icp = form.getLocalContext().getSelectedTriagePatient().getTriageDetails() != null ? form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriagePathway() : null; form.getGlobalContext().Core.setPatientShort(domain.getPatientShort(patient));//WDEV-15815 form.getGlobalContext().Core.setEpisodeofCareShort(domain.getEpisodeOfCare(episode)); form.getGlobalContext().Core.setCurrentCareContext(domain.getCareContext(careContext)); populateOtherDetails(patient); initializePatientTriageLayer(patient, episode, careContext, icp); }
private void initializePatientTriageLayer(PatientForTriageVo patient, EpisodeOfCareRefVo episode, CareContextRefVo careContext, PatientICPRefVo icp) { form.lyrPatientTriage().tabNotes().ccNotes().initialize(patient, episode, careContext, form.qmbPresentingProblem().getValue()); //WDEV-15996 if (ConfigFlag.UI.DISPLAY_EXTENDED_OBS_DATA_SET.getValue()==false) { form.lyrPatientTriage().tabObs().ccVitalSigns().initialize(); } else { initializeObsLayerTabs(); } TrackingForClinicianWorklistAndTriageVo trackVo = domain.getTrckinGForClonicianWorklosAndTriage(form.getLocalContext().getSelectedTriagePatient()); //wdev-17819 form.lyrPatientTriage().tabPatientMeds().ccPatientMeds().initialize(patient, careContext, episode,trackVo); //wdev-17819 form.lyrPatientTriage().tabRelevantPMH().ccRelevantPMH().initialize(careContext, patient, episode); form.lyrPatientTriage().tabSupport().ccSupp().initialize(careContext, episode, patient); form.lyrPatientTriage().tabTriagePathway().ccICP().setValue(icp); form.lyrPatientTriage().tabDischarge().ccDischarge().setValue(careContext, form.qmbPresentingProblem().getValue()); }
private void initializePatientTriageLayer(PatientForTriageVo patient, EpisodeOfCareRefVo episode, CareContextRefVo careContext, ClinicalProblemRefVo problem, PatientICPRefVo icp) { form.lyrPatientTriage().tabNotes().ccMedicNotes().initialize(patient, episode, careContext, problem); TrackingForClinicianWorklistAndTriageVo trackVo = domain.getTrackingForClinicianWorklistAndTriageVo(form.getLocalContext().getSelectedWaitingPatient()); //wdev-17819 //WDEV-15996 if (ConfigFlag.UI.DISPLAY_EXTENDED_OBS_DATA_SET.getValue()==false) { form.lyrPatientTriage().tabObs().ccVitalSigns().initialize(trackVo.getTriageDetails()); //WDEV-20426 } else { initializeObsLayerTabs(); } form.lyrPatientTriage().tabPatientMeds().ccPatientMeds().initialize(patient, careContext, episode,trackVo); //wdev-17819 form.lyrPatientTriage().tabRelevantPMH().ccRelevantPMH().initialize(careContext, patient, episode); form.lyrPatientTriage().tabSysReview().ccSystemReview().initialize(careContext, episode, patient, problem); form.lyrPatientTriage().tabPathway().ccICP().setValue(icp); form.lyrPatientTriage().tabSupport().ccSupportService().initialize(careContext, episode, patient); form.lyrPatientTriage().tabDischargeDetails().ccDischarge().setValue(careContext, problem); }
private void initializePatientTriageLayer(PatientForTriageVo patient, EpisodeOfCareRefVo episode, CareContextRefVo careContext, PatientICPRefVo icp) { form.lyrPatientTriage().tabNotes().ccNotes().initialize(patient, episode, careContext, form.qmbPresentingProblem().getValue()); TrackingForClinicianWorklistAndTriageVo trackVo = domain.getTrckinGForClonicianWorklosAndTriage(form.getLocalContext().getSelectedTriagePatient()); //wdev-17819 //WDEV-15996 if (ConfigFlag.UI.DISPLAY_EXTENDED_OBS_DATA_SET.getValue()==false) { form.lyrPatientTriage().tabObs().ccVitalSigns().initialize(trackVo.getTriageDetails()); //WDEV-20426 } else { initializeObsLayerTabs(); } form.lyrPatientTriage().tabPatientMeds().ccPatientMeds().initialize(patient, careContext, episode,trackVo); //wdev-17819 form.lyrPatientTriage().tabRelevantPMH().ccRelevantPMH().initialize(careContext, patient, episode); form.lyrPatientTriage().tabSupport().ccSupp().initialize(careContext, episode, patient); form.lyrPatientTriage().tabTriagePathway().ccICP().setValue(icp); form.lyrPatientTriage().tabDischarge().ccDischarge().setValue(careContext, form.qmbPresentingProblem().getValue()); }
private void populateOtherDetails(PatientForTriageVo patient) { populateOtherProblems(); form.ccAllergy().refresh(); form.ccAlert().refresh(); populateAttendanceHistory(patient); form.imgTriagePriority().setValue(getPriorityImageByTriagePriority()); form.lblPresentingComplaint().setValue((form.getLocalContext().getSelectedTriagePatient() != null && form.getLocalContext().getSelectedTriagePatient().getEpisode().getPresentingComplaint() != null) ? form.getLocalContext().getSelectedTriagePatient().getEpisode().getPresentingComplaint().getText() : ""); form.qmbPresentingProblem().clear(); if(form.getLocalContext().getSelectedTriagePatient() != null && form.getLocalContext().getSelectedTriagePatient().getTriageDetails() != null && form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getMainPresentingProblem() != null) { ClinicalProblemShortVo problem = form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getMainPresentingProblem().getProblem(); if(problem != null) { form.qmbPresentingProblem().newRow(problem, problem.getPCName()); form.qmbPresentingProblem().setValue(problem); } } form.lblDiscriminator().setValue((form.getLocalContext().getSelectedTriagePatient() != null && form.getLocalContext().getSelectedTriagePatient().getTriageDetails() != null && form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriageAssessment() != null && form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriageAssessment().getDiscriminator() != null && form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriageAssessment().getDiscriminator().getDiscriminator() != null) ? form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriageAssessment().getDiscriminator().getDiscriminator().getDiscriminatorName() : ""); populateAttendanceTimes(); }
private void populateScreenFromData() { if(form.getLocalContext().getSelectedWaitingPatient() == null) return; PatientForTriageVo patient = form.getLocalContext().getSelectedWaitingPatient().getPatient(); EpisodeOfCareRefVo episode = form.getLocalContext().getSelectedWaitingPatient().getEpisode().getEpisodeOfCare(); CareContextRefVo careContext = form.getLocalContext().getSelectedWaitingPatient().getAttendance().getCareContext(); ClinicalProblemRefVo problem = null; if(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getMainPresentingProblem() != null) { problem = form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getMainPresentingProblem().getProblem(); } PatientICPRefVo icp = form.getLocalContext().getSelectedWaitingPatient().getTriageDetails() != null ? form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePathway() : null; if(form.getGlobalContext().Core.getCurrentCareContext() == null || (form.getGlobalContext().Core.getCurrentCareContext() != null && careContext != null && (!form.getGlobalContext().Core.getCurrentCareContext().getID_CareContext().equals(careContext.getID_CareContext()) || domain.isStaleCareContext(form.getGlobalContext().Core.getCurrentCareContext())))) { form.getGlobalContext().Core.setCurrentCareContext(domain.getCareContext(careContext)); } if(form.getGlobalContext().Core.getCurrentCareContext() == null) { form.getGlobalContext().Core.setEpisodeofCareShort(domain.getEpisodeOfCare(episode)); } if(form.getGlobalContext().Core.getEpisodeofCareShort() == null) { form.getGlobalContext().Core.setPatientShort(domain.getPatientShort(patient)); } populateOtherDetails(patient); initializePatientTriageLayer(patient, episode, careContext, problem, icp,form.getLocalContext().getSelectedWaitingPatient()); //wdev-17819 }
private void populateAttendanceHisyory(PatientForTriageVo patient) { form.grdAttendanceHistory().getRows().clear(); form.getLocalContext().setCountOfPreviousAttendances(new Integer(0)); //wdev-16072 if(patient == null) return; EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient); if(attendanceHistory == null) { form.getLocalContext().setCountOfPreviousAttendances(0); //wdev-16072 form.lbl18().setValue("Attendance History"); //wdev-16072 return; } for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory) { addEmergencyEpisodeRow(emergencyEpisode); //wdev-16072 int nrPreviousAttendances = form.getLocalContext().getCountOfPreviousAttendances(); nrPreviousAttendances += 1; form.getLocalContext().setCountOfPreviousAttendances(nrPreviousAttendances); //wdev-16072 } form.grdAttendanceHistory().setValue(null); if(form.getLocalContext().getSelectedWaitingPatient() != null) { form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedWaitingPatient().getAttendance()); } form.grdAttendanceHistory().resetScrollPosition(); //wdev-16072 if( form.getLocalContext().getCountOfPreviousAttendances() > 1) { Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances() -1 ); form.lbl18().setValue("Attendance History - "+nrcount.toString() + " previous" ); } else { form.lbl18().setValue("Attendance History"); } //-----------------end wdev-16072 }
private void populateOtherDetails(PatientForTriageVo patient) { populateOtherProblems(); form.ccAllergy().refresh(); form.ccAlert().refresh(); populateAttendanceHisyory(patient); form.imgTriagePriority().setValue(getPriorityImageByTriagePriority()); form.lblPresentingComplaint().setValue((form.getLocalContext().getSelectedWaitingPatient() != null && form.getLocalContext().getSelectedWaitingPatient().getEpisode().getPresentingComplaint() != null) ? form.getLocalContext().getSelectedWaitingPatient().getEpisode().getPresentingComplaint().getText() : ""); //wdev-16751 if( form.getLocalContext().getShowTriageOrClinicianAssessmentWoklistIsNotNull() && (form.getLocalContext().getShowTriageOrClinicianAssessmentWoklist().equals(DISPLAY_TRIAGE) || form.getLocalContext().getShowTriageOrClinicianAssessmentWoklist().equals(DISPLAY_TRIAGE_FROM_TRACKING) )) //wdev-17405 { form.qmbPresentingProblem().clear(); if(form.getLocalContext().getSelectedWaitingPatient() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getMainPresentingProblem() != null) { ClinicalProblemShortVo problem = domain.getClinicalProblemShortVo(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getMainPresentingProblem().getProblem()); if(problem != null) { form.qmbPresentingProblem().newRow(problem, problem.getPCName()); form.qmbPresentingProblem().setValue(problem); } } } else if(form.getLocalContext().getShowTriageOrClinicianAssessmentWoklistIsNotNull() && (form.getLocalContext().getShowTriageOrClinicianAssessmentWoklist().equals(DISPLAY_CLINICIANASSESSMNRWORKLIST) ||form.getLocalContext().getShowTriageOrClinicianAssessmentWoklist().equals(DISPLAY_CLINICIANASSESSMNRWORKLISTWITHSEEN))) //wdev-17252 { form.lblPresentingProblem().setValue((form.getLocalContext().getSelectedWaitingPatient() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getMainPresentingProblem() != null) ? form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getMainPresentingProblem().getPatientProblem() : null); } //------------- form.lblDiscriminator().setValue((form.getLocalContext().getSelectedWaitingPatient() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriageAssessment() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriageAssessment().getDiscriminator() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriageAssessment().getDiscriminator().getDiscriminator() != null) ? form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriageAssessment().getDiscriminator().getDiscriminator().getDiscriminatorName() : ""); form.lblPatientCategory().setValue(form.getLocalContext().getSelectedWaitingPatient() != null && form.getLocalContext().getSelectedWaitingPatient().getEpisodeIsNotNull() && form.getLocalContext().getSelectedWaitingPatient().getEpisode().getCategoryIsNotNull() ? form.getLocalContext().getSelectedWaitingPatient().getEpisode().getCategory().getText():"" ); populateAttendanceTimes(); if (ConfigFlag.UI.USE_HEARTS_CONTRACTING.getValue())//wdev-17486 populateHEARTSCodinglabels(); }
private void populateAttendanceHisyory(PatientForTriageVo patient) { form.grdAttendanceHistory().getRows().clear(); form.getLocalContext().setCountOfPreviousAttendances(new Integer(0)); //wdev-16072 if(patient == null) return; EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient); if(attendanceHistory == null) { form.getLocalContext().setCountOfPreviousAttendances(0); //wdev-16072 form.lbl18().setValue("Attendance History"); //wdev-16072 return; } for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory) { addEmergencyEpisodeRow(emergencyEpisode); } form.grdAttendanceHistory().setValue(null); if(form.getLocalContext().getSelectedWaitingPatient() != null) { form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedWaitingPatient().getAttendance()); } form.grdAttendanceHistory().resetScrollPosition(); //wdev-16072 //WDEV-17898 if( form.getLocalContext().getCountOfPreviousAttendances() > 0) { Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances()); form.lbl18().setValue("Attendance History - "+nrcount.toString() + " previous" ); } else { form.lbl18().setValue("Attendance History"); } //-----------------end wdev-16072 }
private void initializePatientTriageLayer(PatientForTriageVo patient, EpisodeOfCareRefVo episode, CareContextRefVo careContext, ClinicalProblemRefVo problem, PatientICPRefVo icp, TrackingForClinicianWorklistAndTriageVo tracking) { //wdev-16751 if(form.lyrPatientTriage().tabNotes().isVisible() && form.getLocalContext().getShowTriageOrClinicianAssessmentWoklistIsNotNull() && (form.getLocalContext().getShowTriageOrClinicianAssessmentWoklist().equals(DISPLAY_TRIAGE) || form.getLocalContext().getShowTriageOrClinicianAssessmentWoklist().equals(DISPLAY_TRIAGE_FROM_TRACKING) )) //WDEV-17337, wdev-17405 { form.lyrPatientTriage().tabNotes().ccAttendanceClinicalNotes().initialize(patient, episode, careContext, problem,form.getForms().Emergency.EDTriageWorklistToAssessmentForm);//WDEV-16791 } else if(form.lyrPatientTriage().tabNotes().isVisible() && form.getLocalContext().getShowTriageOrClinicianAssessmentWoklistIsNotNull() && (form.getLocalContext().getShowTriageOrClinicianAssessmentWoklist().equals(DISPLAY_CLINICIANASSESSMNRWORKLIST) || form.getLocalContext().getShowTriageOrClinicianAssessmentWoklist().equals(DISPLAY_CLINICIANASSESSMNRWORKLISTWITHSEEN))) //wdev-17252 //WDEV-17337 { form.lyrPatientTriage().tabNotes().ccAttendanceClinicalNotes().initialize(patient, episode, careContext, problem, form.getForms().Emergency.EDClinicianWorklistToAssessmentForm);//WDEV-16791 } //---------- //WDEV-15996 if (form.lyrPatientTriage().tabObs().isVisible() && ConfigFlag.UI.DISPLAY_EXTENDED_OBS_DATA_SET.getValue()==false)//WDEV-17337 { form.lyrPatientTriage().tabObs().ccVitalSigns().initialize(); } else if (form.lyrPatientTriage().tabObs2().isVisible())//WDEV-17337 { initializeObsLayerTabs(); } if (form.lyrPatientTriage().tabPatientMeds().isVisible())//WDEV-17337 { form.lyrPatientTriage().tabPatientMeds().ccPatientMeds().initialize(patient, careContext, episode,tracking); } else if (form.lyrPatientTriage().tabRelevantPMH().isVisible())//WDEV-17337 { form.lyrPatientTriage().tabRelevantPMH().ccRelevantPMH().initialize(careContext, patient, episode); } else if (form.lyrPatientTriage().tabSysReview().isVisible())//WDEV-17337 { form.lyrPatientTriage().tabSysReview().ccSystemReview().initialize(careContext, episode, patient, problem); } else if (form.lyrPatientTriage().tabPathway().isVisible())//WDEV-17337 { form.lyrPatientTriage().tabPathway().ccICP().setValue(icp); } else if (form.lyrPatientTriage().tabSupport().isVisible())//WDEV-17337 { form.lyrPatientTriage().tabSupport().ccSupportService().initialize(careContext, episode, patient); } else if (form.lyrPatientTriage().tabPageOutcome().isVisible())//WDEV-17337 { form.lyrPatientTriage().tabPageOutcome().ccDischargeOutcome().setValue(careContext); } else if (form.lyrPatientTriage().tabPageCoding().isVisible())//WDEV-17337 { form.lyrPatientTriage().tabPageCoding().ccCoding().initialize(patient, episode, careContext, true);//WDEV-17014 } else if (form.lyrPatientTriage().tabPageHEARTSCoding().isVisible())//WDEV-17486 { form.lyrPatientTriage().tabPageHEARTSCoding().ccHeartsCoding().initialize(patient, episode, careContext, true);//WDEV-17486 } else if( form.lyrPatientTriage().tabWoundImages().isVisible()) //wdev-17977 { form.lyrPatientTriage().tabWoundImages().ccEDAssessmentWoundImages().initialize(patient, careContext, episode); //wdev-17977 } //wdev-16751 if(form.lyrPatientTriage().tabDischargeDetails().isVisible() && form.getLocalContext().getShowTriageOrClinicianAssessmentWoklistIsNotNull() && (form.getLocalContext().getShowTriageOrClinicianAssessmentWoklist().equals(DISPLAY_TRIAGE) || form.getLocalContext().getShowTriageOrClinicianAssessmentWoklist().equals(DISPLAY_TRIAGE_FROM_TRACKING) ))//WDEV-17337,wdev-17405 { form.lyrPatientTriage().tabDischargeDetails().ccDischargeDetails_AdviceMobility().setValue(form.qmbPresentingProblem().getValue(), careContext); //form.lyrPatientTriage().tabDischargeDetails().ccDischarge().setValue(careContext, form.qmbPresentingProblem().getValue()); } else if (form.lyrPatientTriage().tabDischargeDetails().isVisible())//WDEV-17337 form.lyrPatientTriage().tabDischargeDetails().ccDischargeDetails_AdviceMobility().setValue(problem, careContext); //form.lyrPatientTriage().tabDischargeDetails().ccDischarge().setValue(careContext, problem); //------- }
private void populateAttendanceHistory(PatientForTriageVo patient) { form.grdAttendanceHistory().getRows().clear(); form.getLocalContext().setCountOfPreviousAttendances(new Integer(0)); //wdev-16072 if(patient == null) return; EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient); if(attendanceHistory == null) { form.lbl16().setValue("Attendance History"); //wdev-16072 return; } for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory) { addEmergencyEpisodeRow(emergencyEpisode); //wdev-16072 int nrPreviousAttendances = form.getLocalContext().getCountOfPreviousAttendances(); nrPreviousAttendances += 1; form.getLocalContext().setCountOfPreviousAttendances(nrPreviousAttendances); //wdev-16072 } form.grdAttendanceHistory().setValue(null); if(form.getLocalContext().getSelectedTriagePatient() != null) { form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedTriagePatient().getAttendance()); } form.grdAttendanceHistory().resetScrollPosition(); //wdev-16072 if( form.getLocalContext().getCountOfPreviousAttendances() > 1) { Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances() -1 ); form.lbl16().setValue("Attendance History - "+nrcount.toString() + " previous" ); } else { form.lbl16().setValue("Attendance History"); } //-----------------end wdev-16072 }
private void populateOtherDetails(PatientForTriageVo patient) { populateOtherProblems(); form.ccAllergy().refresh(); form.ccAlert().refresh(); populateAttendanceHisyory(patient); form.imgPriorityChange().setValue(getPriorityChange()); form.imgTriagePriority().setValue(getPriorityImageByTriagePriority()); form.lblPresentingComplaint().setValue((form.getLocalContext().getSelectedWaitingPatient() != null && form.getLocalContext().getSelectedWaitingPatient().getEpisode().getPresentingComplaint() != null) ? form.getLocalContext().getSelectedWaitingPatient().getEpisode().getPresentingComplaint().getText() : ""); //wdev-16751 if( form.getLocalContext().getShowTriageOrClinicianAssessmentWoklistIsNotNull() && (form.getLocalContext().getShowTriageOrClinicianAssessmentWoklist().equals(DISPLAY_TRIAGE) || form.getLocalContext().getShowTriageOrClinicianAssessmentWoklist().equals(DISPLAY_TRIAGE_FROM_TRACKING) )) //wdev-17405 { form.qmbPresentingProblem().clear(); if(form.getLocalContext().getSelectedWaitingPatient() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getMainPresentingProblem() != null) { ClinicalProblemShortVo problem = form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getMainPresentingProblem().getProblem(); if(problem != null) { form.qmbPresentingProblem().newRow(problem, problem.getPCName()); form.qmbPresentingProblem().setValue(problem); } } } else if(form.getLocalContext().getShowTriageOrClinicianAssessmentWoklistIsNotNull() && (form.getLocalContext().getShowTriageOrClinicianAssessmentWoklist().equals(DISPLAY_CLINICIANASSESSMNRWORKLIST) ||form.getLocalContext().getShowTriageOrClinicianAssessmentWoklist().equals(DISPLAY_CLINICIANASSESSMNRWORKLISTWITHSEEN) || form.getLocalContext().getShowTriageOrClinicianAssessmentWoklist().equals(DISPLAY_CLINICIANASSESSMNRWORKLISTWITHSEENNURSE))) //wdev-17252 //WDEV-20429 { String strTempProblem = (form.getLocalContext().getSelectedWaitingPatient() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getMainPresentingProblem() != null) ? form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getMainPresentingProblem().getPatientProblem() : null; //wdev-19823 //form.lblPresentingProblem().setValue((form.getLocalContext().getSelectedWaitingPatient() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getMainPresentingProblem() != null) ? form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getMainPresentingProblem().getPatientProblem() : null); form.lblPresentingProblem().setValue(limitlblParentLength(strTempProblem, 23));//WDEV-23436 form.lblPresentingProblem().setTooltip(strTempProblem); //wdev-19823 } //------------- form.lblDiscriminator().setValue((form.getLocalContext().getSelectedWaitingPatient() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriageAssessment() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriageAssessment().getDiscriminator() != null && form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriageAssessment().getDiscriminator().getDiscriminator() != null) ? form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriageAssessment().getDiscriminator().getDiscriminator().getDiscriminatorName() : ""); form.lblPatientCategory().setValue(form.getLocalContext().getSelectedWaitingPatient() != null && form.getLocalContext().getSelectedWaitingPatient().getEpisodeIsNotNull() && form.getLocalContext().getSelectedWaitingPatient().getEpisode().getCategoryIsNotNull() ? form.getLocalContext().getSelectedWaitingPatient().getEpisode().getCategory().getText():"" ); populateAttendanceTimes(); if (ConfigFlag.UI.USE_HEARTS_CONTRACTING.getValue())//wdev-17486 populateHEARTSCodinglabels(); }