@Override protected void onMessageBoxClosed(int messageBoxId, DialogResult result) throws PresentationLogicException { if(form.getLocalContext().getMessageBoxIdForOldEmergencyAttendanceIsNotNull() && form.getLocalContext().getMessageBoxIdForOldEmergencyAttendance().equals(messageBoxId)) { if(DialogResult.YES.equals(result) && form.grdAttendanceHistory().getValue() instanceof EmergencyAttendanceForTriageLiteVo) { form.getLocalContext().setSelectedWaitingPatient(domain.geTrackingForTriageByAttendanceId((EmergencyAttendanceForTriageLiteVo) form.grdAttendanceHistory().getValue())); //form.dyngrdPatients().setValue(form.getLocalContext().getSelectedWaitingPatient()); form.getLocalContext().setCurrentAttendance(null); populateScreenFromData(); updateControlsState(); } //WDEV-15951 else if (DialogResult.NO.equals(result) && form.grdAttendanceHistory().getValue() instanceof EmergencyAttendanceForTriageLiteVo)//WDEV-15868 { form.getLocalContext().setHistoryMode(false); form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedWaitingPatient().getAttendance()); } //WDEV-17745 form.getLocalContext().setCurrentEvent(EDAssessmentComponent.START_TIMER); form.fireCustomControlValueChanged(); } }
@Override //wdev-17486 protected void onCcHEARTSCodingValueChanged() throws PresentationLogicException { if (EdAssessment_CustomControlsEvents.SAVE.equals(form.lyrPatientTriage().tabPageHEARTSCoding().ccHeartsCoding().getSelectedEvent()) || EdAssessment_CustomControlsEvents.CANCEL.equals(form.lyrPatientTriage().tabPageHEARTSCoding().ccHeartsCoding().getSelectedEvent())) { form.lyrPatientTriage().tabPageHEARTSCoding().ccHeartsCoding().resetSelectedEvent(); refreshOtherDetails(); } FormMode codingHeartsMode = form.lyrPatientTriage().tabPageHEARTSCoding().ccHeartsCoding().getMode(); form.setMode(codingHeartsMode); form.getLocalContext().setCurrentEvent(FormMode.VIEW.equals(codingHeartsMode) ? EDAssessmentComponent.START_TIMER : EDAssessmentComponent.STOP_TIMER);//WDEV-17337 }
@Override protected void onCcVitalSignsValueChanged() throws PresentationLogicException { //WDEV-17337 if (EdAssessment_CustomControlsEvents.SAVE.equals(form.lyrPatientTriage().tabObs().ccVitalSigns().getSelectedEvent()) ||EdAssessment_CustomControlsEvents.CANCEL.equals(form.lyrPatientTriage().tabObs().ccVitalSigns().getSelectedEvent())) { form.lyrPatientTriage().tabObs().ccVitalSigns().resetSelectedEvent(); refreshOtherDetails(); } FormMode vitalSignMode = form.lyrPatientTriage().tabObs().ccVitalSigns().getMode(); form.setMode(vitalSignMode); form.getLocalContext().setCurrentEvent(FormMode.VIEW.equals(vitalSignMode) ? EDAssessmentComponent.START_TIMER : EDAssessmentComponent.STOP_TIMER);//WDEV-17337 }
@Override protected void onCcSupportServiceValueChanged() throws PresentationLogicException { //WDEV-17337 if (EdAssessment_CustomControlsEvents.SAVE.equals(form.lyrPatientTriage().tabSupport().ccSupportService().getSelectedEvent()) ||EdAssessment_CustomControlsEvents.CANCEL.equals(form.lyrPatientTriage().tabSupport().ccSupportService().getSelectedEvent())) { form.lyrPatientTriage().tabSupport().ccSupportService().resetSelectedEvent(); refreshOtherDetails(); } FormMode supportServiceMode = form.lyrPatientTriage().tabSupport().ccSupportService().getMode(); form.setMode(supportServiceMode); form.getLocalContext().setCurrentEvent(FormMode.VIEW.equals(supportServiceMode) ? EDAssessmentComponent.START_TIMER : EDAssessmentComponent.STOP_TIMER);//WDEV-17337 }
@Override protected void onCcPatientMedsValueChanged() throws PresentationLogicException { //WDEV-17337 if (EdAssessment_CustomControlsEvents.SAVE.equals(form.lyrPatientTriage().tabPatientMeds().ccPatientMeds().getSelectedEvent()) ||EdAssessment_CustomControlsEvents.CANCEL.equals(form.lyrPatientTriage().tabPatientMeds().ccPatientMeds().getSelectedEvent())) { form.lyrPatientTriage().tabPatientMeds().ccPatientMeds().resetSelectedEvent(); refreshOtherDetails(); } FormMode patMedsMode = form.lyrPatientTriage().tabPatientMeds().ccPatientMeds().getMode(); form.setMode(patMedsMode); form.getLocalContext().setCurrentEvent(FormMode.VIEW.equals(patMedsMode) ? EDAssessmentComponent.START_TIMER : EDAssessmentComponent.STOP_TIMER);//WDEV-17337 }
@Override protected void onCcRelevantPMHValueChanged() throws PresentationLogicException { //WDEV-17337 if (EdAssessment_CustomControlsEvents.SAVE.equals(form.lyrPatientTriage().tabRelevantPMH().ccRelevantPMH().getSelectedEvent()) ||EdAssessment_CustomControlsEvents.CANCEL.equals(form.lyrPatientTriage().tabRelevantPMH().ccRelevantPMH().getSelectedEvent())) { form.lyrPatientTriage().tabRelevantPMH().ccRelevantPMH().resetSelectedEvent(); refreshOtherDetails(); } FormMode relevPMHMode = form.lyrPatientTriage().tabRelevantPMH().ccRelevantPMH().getMode(); form.setMode(relevPMHMode); form.getLocalContext().setCurrentEvent(FormMode.VIEW.equals(relevPMHMode) ? EDAssessmentComponent.START_TIMER : EDAssessmentComponent.STOP_TIMER);//WDEV-17337 }
private void selectedAttendanceHistory() { form.getLocalContext().setHistoryMode(false); if(form.grdAttendanceHistory().getValue() instanceof EmergencyAttendanceForTriageLiteVo) { if (form.getLocalContext().getCurrentAttendance() == null) //WDEV-15951, wdev-16751 { EmergencyAttendanceForTriageLiteVo attendance = domain.getEmergencyAttendance((EmergencyAttendanceRefVo) form.grdAttendanceHistory().getValue()); if (attendance.getDischargeDateTime() == null) { form.getLocalContext().setCurrentAttendance(attendance); } } if(!form.grdAttendanceHistory().getValue().equals(form.getLocalContext().getCurrentAttendance())) { form.getLocalContext().setHistoryMode(true); form.getLocalContext().setMessageBoxIdForOldEmergencyAttendance(engine.showMessage("Do you wish to view the clinician details for the attendance on " + ((EmergencyAttendanceForTriageLiteVo) form.grdAttendanceHistory().getValue()).getRegistrationDateTime(), "" , MessageButtons.YESNO, MessageIcon.QUESTION)); //WDEV-17745 form.getLocalContext().setCurrentEvent(EDAssessmentComponent.STOP_TIMER); form.fireCustomControlValueChanged(); } else { form.getLocalContext().setSelectedWaitingPatient(domain.geTrackingForTriageByAttendanceId((EmergencyAttendanceForTriageLiteVo) form.grdAttendanceHistory().getValue())); form.getGlobalContext().Emergency.setTracking(form.getLocalContext().getSelectedWaitingPatient()); //WDEV-17739 //form.dyngrdPatients().setValue(form.getLocalContext().getSelectedWaitingPatient()); populateScreenFromData(); updateControlsState(); } } }
@Override protected void onCcVitalSignsObsValueChanged() throws PresentationLogicException { //WDEV-17337 if (EdAssessment_CustomControlsEvents.SAVE.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabVitalSigns().ccVitalSignsObs().getSelectedEvent()) ||EdAssessment_CustomControlsEvents.CANCEL.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabVitalSigns().ccVitalSignsObs().getSelectedEvent())) { form.lyrPatientTriage().tabObs2().lyrObs2().tabVitalSigns().ccVitalSignsObs().resetSelectedEvent(); refreshOtherDetails(); } FormMode vitalSignsObsMode = form.lyrPatientTriage().tabObs2().lyrObs2().tabVitalSigns().ccVitalSignsObs().getMode(); form.setMode(vitalSignsObsMode); form.getLocalContext().setCurrentEvent(FormMode.VIEW.equals(vitalSignsObsMode) ? EDAssessmentComponent.START_TIMER : EDAssessmentComponent.STOP_TIMER);//WDEV-17337 }
@Override protected void onCcUrinalysisValueChanged() throws PresentationLogicException { //WDEV-17337 if (EdAssessment_CustomControlsEvents.SAVE.equals( form.lyrPatientTriage().tabObs2().lyrObs2().tabUrinalysis().ccUrinalysis().getSelectedEvent()) ||EdAssessment_CustomControlsEvents.CANCEL.equals( form.lyrPatientTriage().tabObs2().lyrObs2().tabUrinalysis().ccUrinalysis().getSelectedEvent())) { form.lyrPatientTriage().tabObs2().lyrObs2().tabUrinalysis().ccUrinalysis().resetSelectedEvent(); refreshOtherDetails(); } FormMode urinalysisMode = form.lyrPatientTriage().tabObs2().lyrObs2().tabUrinalysis().ccUrinalysis().getMode(); form.setMode(urinalysisMode); form.getLocalContext().setCurrentEvent(FormMode.VIEW.equals(urinalysisMode) ? EDAssessmentComponent.START_TIMER : EDAssessmentComponent.STOP_TIMER);//WDEV-17337 }
@Override protected void onCcUrineToxValueChanged() throws PresentationLogicException { //WDEV-17337 if (EdAssessment_CustomControlsEvents.SAVE.equals( form.lyrPatientTriage().tabObs2().lyrObs2().tabUrineTox().ccUrineTox().getSelectedEvent()) ||EdAssessment_CustomControlsEvents.CANCEL.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabUrineTox().ccUrineTox().getSelectedEvent()) || EdAssessment_CustomControlsEvents.RIE.equals( form.lyrPatientTriage().tabObs2().lyrObs2().tabUrineTox().ccUrineTox().getSelectedEvent()) ) { form.lyrPatientTriage().tabObs2().lyrObs2().tabUrineTox().ccUrineTox().resetSelectedEvent(); refreshOtherDetails(); } FormMode urineToxMode = form.lyrPatientTriage().tabObs2().lyrObs2().tabUrineTox().ccUrineTox().getMode(); form.setMode(urineToxMode); form.getLocalContext().setCurrentEvent(FormMode.VIEW.equals(urineToxMode) ? EDAssessmentComponent.START_TIMER : EDAssessmentComponent.STOP_TIMER);//WDEV-17337 }
@Override protected void onCcHCGValueChanged() throws PresentationLogicException { //WDEV-17337 if (EdAssessment_CustomControlsEvents.SAVE.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabHCG().ccHCG().getSelectedEvent()) ||EdAssessment_CustomControlsEvents.CANCEL.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabHCG().ccHCG().getSelectedEvent()) || EdAssessment_CustomControlsEvents.RIE.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabHCG().ccHCG().getSelectedEvent()) ) { form.lyrPatientTriage().tabObs2().lyrObs2().tabHCG().ccHCG().resetSelectedEvent(); refreshOtherDetails(); } FormMode hcgMode = form.lyrPatientTriage().tabObs2().lyrObs2().tabHCG().ccHCG().getMode(); form.setMode(hcgMode); form.getLocalContext().setCurrentEvent(FormMode.VIEW.equals(hcgMode) ? EDAssessmentComponent.START_TIMER : EDAssessmentComponent.STOP_TIMER);//WDEV-17337 }
@Override protected void onCcPatientAssessmentValueChanged() throws PresentationLogicException { //WDEV-17337 if (EdAssessment_CustomControlsEvents.SAVE.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabOther().ccPatientAssessment().getSelectedEvent()) ||EdAssessment_CustomControlsEvents.CANCEL.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabOther().ccPatientAssessment().getSelectedEvent())) { form.lyrPatientTriage().tabObs2().lyrObs2().tabOther().ccPatientAssessment().resetSelectedEvent(); refreshOtherDetails(); } FormMode patAssessmentMode = form.lyrPatientTriage().tabObs2().lyrObs2().tabOther().ccPatientAssessment().getMode(); form.setMode(patAssessmentMode); form.getLocalContext().setCurrentEvent(FormMode.VIEW.equals(patAssessmentMode) ? EDAssessmentComponent.START_TIMER : EDAssessmentComponent.STOP_TIMER);//WDEV-17337 }
protected void onCcAttendanceClinicalNotesValueChanged() throws PresentationLogicException { if (EdAssessment_CustomControlsEvents.SAVE.equals(form.lyrPatientTriage().tabNotes().ccAttendanceClinicalNotes().getSelectedEvent()) ||EdAssessment_CustomControlsEvents.CANCEL.equals(form.lyrPatientTriage().tabNotes().ccAttendanceClinicalNotes().getSelectedEvent()) || EdAssessment_CustomControlsEvents.RIE.equals(form.lyrPatientTriage().tabNotes().ccAttendanceClinicalNotes().getSelectedEvent())) { form.lyrPatientTriage().tabNotes().ccAttendanceClinicalNotes().resetSelectedEvent(); refreshOtherDetails(); } FormMode notesMode = form.lyrPatientTriage().tabNotes().ccAttendanceClinicalNotes().getMode(); form.setMode(notesMode); form.getLocalContext().setCurrentEvent(FormMode.VIEW.equals(notesMode) ? EDAssessmentComponent.START_TIMER : EDAssessmentComponent.STOP_TIMER);//WDEV-17337 }
protected void onCcICPValueChanged() throws PresentationLogicException { if (PresentationEvent.ACTION_DETAILS_VIEW.equals(form.lyrPatientTriage().tabPathway().ccICP().getEvent())) { form.lyrPatientTriage().tabPathway().ccICP().clearEvent(); refreshOtherDetails(); } FormMode icpMode = form.lyrPatientTriage().tabPathway().ccICP().getMode(); form.setMode(icpMode); form.getLocalContext().setCurrentEvent(FormMode.VIEW.equals(icpMode) ? EDAssessmentComponent.START_TIMER : EDAssessmentComponent.STOP_TIMER);//WDEV-17337 }
protected void onCcSystemReviewValueChanged() throws PresentationLogicException { if (EdAssessment_CustomControlsEvents.SAVE.equals(form.lyrPatientTriage().tabSysReview().ccSystemReview().getSelectedEvent())) { form.lyrPatientTriage().tabSysReview().ccSystemReview().resetSelectedEvent(); refreshOtherDetails(); } FormMode systemReviewMode = form.lyrPatientTriage().tabSysReview().ccSystemReview().getMode(); form.setMode(systemReviewMode); form.getLocalContext().setCurrentEvent(FormMode.VIEW.equals(systemReviewMode) ? EDAssessmentComponent.START_TIMER : EDAssessmentComponent.STOP_TIMER);//WDEV-17337 }
protected void onCcDischargeDetails_AdviceMobilityValueChanged() throws PresentationLogicException { if (DischargeDetails_CustomEvents.SAVE.equals(form.lyrPatientTriage().tabDischargeDetails().ccDischargeDetails_AdviceMobility().getCustomEvent()) ||DischargeDetails_CustomEvents.CANCEL.equals(form.lyrPatientTriage().tabDischargeDetails().ccDischargeDetails_AdviceMobility().getCustomEvent())) { form.lyrPatientTriage().tabDischargeDetails().ccDischargeDetails_AdviceMobility().clearCustomEvent(); refreshOtherDetails(); } FormMode dischPlanningMode = form.lyrPatientTriage().tabDischargeDetails().ccDischargeDetails_AdviceMobility().getMode(); form.setMode(dischPlanningMode); form.getLocalContext().setCurrentEvent(FormMode.VIEW.equals(dischPlanningMode) ? EDAssessmentComponent.START_TIMER : EDAssessmentComponent.STOP_TIMER);//WDEV-17337 }
protected void onCcCodingValueChanged() throws PresentationLogicException { if (EdAssessment_CustomControlsEvents.SAVE.equals(form.lyrPatientTriage().tabPageCoding().ccCoding().getSelectedEvent()) ||EdAssessment_CustomControlsEvents.CANCEL.equals(form.lyrPatientTriage().tabPageCoding().ccCoding().getSelectedEvent())) { form.lyrPatientTriage().tabPageCoding().ccCoding().resetSelectedEvent(); refreshOtherDetails(); } FormMode codingMode = form.lyrPatientTriage().tabPageCoding().ccCoding().getMode(); form.setMode(codingMode); form.getLocalContext().setCurrentEvent(FormMode.VIEW.equals(codingMode) ? EDAssessmentComponent.START_TIMER : EDAssessmentComponent.STOP_TIMER);//WDEV-17337 }
protected void onCcNewTriageccValueChanged() throws ims.framework.exceptions.PresentationLogicException { //WDEV-17337 if (form.ccNewTriagecc().getSelectedEvent()!=null ) { form.getTimers().gettimerEdAttendanceDetails().setEnabled(EDAssessmentComponent.START_TIMER.equals(form.ccNewTriagecc().getSelectedEvent()));//WDEV-17337 form.ccNewTriagecc().clearSelectedEvent(); } }
protected void onCcEDAssessmentComponentValueChanged() throws PresentationLogicException { if( EDAssessmentComponent.RETURNLINK.equals(form.lyrWorklist().tabDetails().ccEDAssessmentComponent().getSelectedEvent()) ) { form.getTimers().gettimerEdAttendanceDetails().setEnabled(false);//WDEV-17337 if( form.getLocalContext().getPreviousTabIsNotNull() && form.getLocalContext().getPreviousTab().equals(DISPLAY_TRIAGE)) { form.lyrWorklist().showtabTriageWorklist(); form.lyrWorklist().tabDetails().setHeaderVisible(false); form.getLocalContext().setPreviousTab(null); form.lyrWorklist().tabDetails().ccEDAssessmentComponent().clearSelectedEvent(); open(); } else if( form.getLocalContext().getPreviousTabIsNotNull() && form.getLocalContext().getPreviousTab().equals(DISPLAY_CLINICIANASSESSMNRWORKLIST) ) { form.lyrWorklist().showtabClinicianWorklist(); form.lyrWorklist().tabDetails().setHeaderVisible(false); form.getLocalContext().setPreviousTab(null); form.lyrWorklist().tabDetails().ccEDAssessmentComponent().clearSelectedEvent(); open(); } } //WDEV-17337 if (form.lyrWorklist().tabDetails().ccEDAssessmentComponent().getSelectedEvent()!=null ) { form.getTimers().gettimerEdAttendanceDetails().setEnabled(EDAssessmentComponent.START_TIMER.equals(form.lyrWorklist().tabDetails().ccEDAssessmentComponent().getSelectedEvent()));//WDEV-17337 form.lyrWorklist().tabDetails().ccEDAssessmentComponent().clearSelectedEvent(); } }
@Override protected void onMessageBoxClosed(int messageBoxId, DialogResult result) throws PresentationLogicException { if(form.getLocalContext().getMessageBoxIdForOldEmergencyAttendanceIsNotNull() && form.getLocalContext().getMessageBoxIdForOldEmergencyAttendance().equals(messageBoxId)) { if(DialogResult.YES.equals(result) && form.grdAttendanceHistory().getValue() instanceof EmergencyAttendanceForTriageLiteVo) { form.getLocalContext().setSelectedWaitingPatient(domain.geTrackingForTriageByAttendanceId((EmergencyAttendanceForTriageLiteVo) form.grdAttendanceHistory().getValue())); //form.dyngrdPatients().setValue(form.getLocalContext().getSelectedWaitingPatient()); form.getGlobalContext().Emergency.setTriage(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails()); //wdev-18332 form.getLocalContext().setCurrentAttendance(null); populateScreenFromData(); updateControlsState(); } //WDEV-15951 else if (DialogResult.NO.equals(result) && form.grdAttendanceHistory().getValue() instanceof EmergencyAttendanceForTriageLiteVo)//WDEV-15868 { form.getLocalContext().setHistoryMode(false); form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedWaitingPatient().getAttendance()); form.getGlobalContext().Emergency.setTriage(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails()); //wdev-18332 } //WDEV-17745 form.getLocalContext().setCurrentEvent(EDAssessmentComponent.START_TIMER); form.fireCustomControlValueChanged(); } if (form.getLocalContext().getMessageBoxIdForNotCompletedTriageIsNotNull() && form.getLocalContext().getMessageBoxIdForNotCompletedTriage().equals(messageBoxId)) { if(DialogResult.YES.equals(result)) { movePatient(); } } }
protected void onCcDischargePrescriptionValueChanged() throws PresentationLogicException { if (EdAssessment_CustomControlsEvents.SAVE.equals(form.lyrPatientTriage().tabPagePrescription().ccDischargePrescription().getSelectedEvent()) || EdAssessment_CustomControlsEvents.CANCEL.equals(form.lyrPatientTriage().tabPagePrescription().ccDischargePrescription().getSelectedEvent()) || EdAssessment_CustomControlsEvents.FORMMODECHANGED.equals(form.lyrPatientTriage().tabPagePrescription().ccDischargePrescription().getSelectedEvent())) { form.lyrPatientTriage().tabPagePrescription().ccDischargePrescription().resetSelectedEvent(); refreshOtherDetails(); } FormMode prescriptionTabMode = form.lyrPatientTriage().tabPagePrescription().ccDischargePrescription().getMode(); form.setMode(prescriptionTabMode); form.getLocalContext().setCurrentEvent(FormMode.VIEW.equals(prescriptionTabMode) ? EDAssessmentComponent.START_TIMER : EDAssessmentComponent.STOP_TIMER); }