private void addEmergencyEpisodeRow(EmergencyEpisodeForTriageVo emergencyEpisode) { if(emergencyEpisode == null) return; grdAttendanceHistoryRow row = form.grdAttendanceHistory().getRows().newRow(); EpisodeOfcareLiteVo tempVo = domain.getEpisodeOfCareLite(emergencyEpisode.getEpisodeOfCare()); //wdev-16070 row.setColID(emergencyEpisode.getID_EmergencyEpisode().toString() + (tempVo != null ? " - " + tempVo.getStartDate().toString() : "")); //wdev-16070 row.setBold(true); row.setValue((EmergencyEpisodeForTriageLiteVo) emergencyEpisode); if(emergencyEpisode.getEmergencyAttendances() == null) return; row.setExpanded(true); for(EmergencyAttendanceForTriageVo emergencyAttendance : emergencyEpisode.getEmergencyAttendances()) { addEmergencyAttendanceRow(row, emergencyAttendance); } }
private void addEmergencyEpisodeRow(EmergencyEpisodeForTriageVo emergencyEpisode) { if(emergencyEpisode == null) return; grdAttendanceHistoryRow row = form.grdAttendanceHistory().getRows().newRow(); EpisodeOfcareLiteVo tempVo = domain.getEpisodeOfCareLite(emergencyEpisode.getEpisodeOfCare()); //wdev-16070 row.setColID(emergencyEpisode.getID_EmergencyEpisode().toString() + (tempVo != null ? " - " +tempVo.getStartDate().toString() : "")); //wdev-16070 row.setBold(true); row.setValue((EmergencyEpisodeForTriageLiteVo) emergencyEpisode); if(emergencyEpisode.getEmergencyAttendances() == null) return; row.setExpanded(true); for(EmergencyAttendanceForTriageVo emergencyAttendance : emergencyEpisode.getEmergencyAttendances()) { addEmergencyAttendanceRow(row, emergencyAttendance); } }
private void addEmergencyEpisodeRow(EmergencyEpisodeForTriageVo emergencyEpisode) { if(emergencyEpisode == null) return; ims.emergency.forms.edassessmentcomponent.GenForm.grdAttendanceHistoryRow row = form.grdAttendanceHistory().getRows().newRow(); EpisodeOfcareLiteVo tempVo = domain.getEpisodeOfCareLite(emergencyEpisode.getEpisodeOfCare()); //wdev-16070 row.setColID(emergencyEpisode.getID_EmergencyEpisode().toString() + (tempVo != null ? " - " + tempVo.getStartDate().toString() : "")); //wdev-16070 row.setBold(true); row.setValue((EmergencyEpisodeForTriageLiteVo) emergencyEpisode); if(emergencyEpisode.getEmergencyAttendances() == null) return; row.setExpanded(true); for(EmergencyAttendanceForTriageVo emergencyAttendance : emergencyEpisode.getEmergencyAttendances()) { addEmergencyAttendanceRow(row, emergencyAttendance); //wdev-16072 WDEV-17703 //WDEV-17898 if (emergencyAttendance.getDischargeDateTime() != null) { int nrPreviousAttendances = form.getLocalContext().getCountOfPreviousAttendances(); nrPreviousAttendances += 1; form.getLocalContext().setCountOfPreviousAttendances(nrPreviousAttendances); } //wdev-16072 } }
public EmergencyEpisodeForTriageLiteVo getEmergencyEpisode(EpisodeOfCareRefVo episodeOfCare) { if (episodeOfCare == null || episodeOfCare.getID_EpisodeOfCare() == null) return null; String query = "SELECT emerEpisode FROM EmergencyEpisode AS emerEpisode LEFT JOIN emerEpisode.episodeOfCare AS epis WHERE epis.id = :EPIS"; return EmergencyEpisodeForTriageLiteVoAssembler.create((EmergencyEpisode) getDomainFactory().findFirst(query, "EPIS", episodeOfCare.getID_EpisodeOfCare())); }
private void addEmergencyEpisodeRow(EmergencyEpisodeForTriageVo emergencyEpisode) { if(emergencyEpisode == null) return; ims.emergency.forms.edassessmentcomponent.GenForm.grdAttendanceHistoryRow row = form.grdAttendanceHistory().getRows().newRow(); EpisodeOfcareLiteVo tempVo = emergencyEpisode.getEpisodeOfCare(); //wdev-16070 row.setColID(emergencyEpisode.getID_EmergencyEpisode().toString() + (tempVo != null ? " - " + tempVo.getStartDate().toString() : "")); //wdev-16070 row.setBold(true); row.setValue((EmergencyEpisodeForTriageLiteVo) emergencyEpisode); if(emergencyEpisode.getEmergencyAttendances() == null) return; row.setExpanded(true); row.setTooltip(emergencyEpisode.getCategory()!=null ? "<b>Patient Category: </b>" + emergencyEpisode.getCategory().getText() : null); //WDEV-19299 for(EmergencyAttendanceForTriageVo emergencyAttendance : emergencyEpisode.getEmergencyAttendances()) { addEmergencyAttendanceRow(row, emergencyAttendance); //wdev-16072 WDEV-17703 //WDEV-17898 if (emergencyAttendance.getDischargeDateTime() != null) { int nrPreviousAttendances = form.getLocalContext().getCountOfPreviousAttendances(); nrPreviousAttendances += 1; form.getLocalContext().setCountOfPreviousAttendances(nrPreviousAttendances); } //wdev-16072 } }
private void selectedInstance() { form.getLocalContext().setHistoryMode(false); form.getLocalContext().setSelectedWaitingPatient(null); if(form.dyngrdPatients().getValue() instanceof TrackingRefVo) { form.getGlobalContext().Emergency.setTracking((TrackingRefVo) form.dyngrdPatients().getValue()); form.getLocalContext().setSelectedWaitingPatient(domain.getTrackingForTriage((TrackingRefVo) form.dyngrdPatients().getValue())); } else if(form.getGlobalContext().Core.getCurrentCareContext() != null) { TrackingForClinicianWorklistVo TrackingForClinician = domain.getTrackingForClinicianWorklistByCareContext(form.getGlobalContext().Core.getCurrentCareContext()); //WDEV-15951 if (TrackingForClinician != null && TrackingForClinician.getAttendanceIsNotNull() && TrackingForClinician.getAttendance().getDischargeDateTimeIsNotNull()) { form.getLocalContext().setHistoryMode(true); //wdev-16064 } form.getLocalContext().setSelectedWaitingPatient(TrackingForClinician); form.getGlobalContext().Emergency.setTracking(form.getLocalContext().getSelectedWaitingPatient()); form.dyngrdPatients().setValue(form.getLocalContext().getSelectedWaitingPatient()); } if(form.getLocalContext().getSelectedWaitingPatient() != null) { form.getGlobalContext().Emergency.setTriage(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails()); if(form.getLocalContext().getSelectedWaitingPatient().getEpisode() != null) { form.getLocalContext().setCurrentEpisode((EmergencyEpisodeForTriageLiteVo) form.getLocalContext().getSelectedWaitingPatient().getEpisode().clone()); } if(form.getLocalContext().getSelectedWaitingPatient().getAttendance() != null && form.getLocalContext().getSelectedWaitingPatient().getAttendance().getDischargeDateTime() == null) { form.getLocalContext().setCurrentAttendance((EmergencyAttendanceForTriageLiteVo) form.getLocalContext().getSelectedWaitingPatient().getAttendance().clone()); } } populateScreenFromData(); }
private void selectedInstance() { form.getLocalContext().setHistoryMode(false); form.getLocalContext().setSelectedWaitingPatient(null); if( form.getLocalContext().getTrackingFromArgument() instanceof TrackingForClinicianWorklistAndTriageVo) { //WDEV-17745 if (form.getLocalContext().getTrackingFromArgument().getAttendance() != null && form.getLocalContext().getTrackingFromArgument().getAttendance().getDischargeDateTime() != null) { form.getLocalContext().setHistoryMode(true); } form.getGlobalContext().Emergency.setTracking(form.getLocalContext().getTrackingFromArgument()); form.getLocalContext().setSelectedWaitingPatient(domain.getTrackingForTriage(form.getLocalContext().getTrackingFromArgument())); form.getLocalContext().setTrackingFromArgument(null);//wdev-17598 } else if(form.getGlobalContext().Core.getCurrentCareContext() != null) { TrackingForClinicianWorklistAndTriageVo TrackingForClinician = domain.getTrackingForClinicianWorklistByCareContext(form.getGlobalContext().Core.getCurrentCareContext()); //WDEV-15951 if (TrackingForClinician != null && TrackingForClinician.getAttendanceIsNotNull() && TrackingForClinician.getAttendance().getDischargeDateTimeIsNotNull()) { form.getLocalContext().setHistoryMode(true); //wdev-16064 } form.getLocalContext().setSelectedWaitingPatient(TrackingForClinician); form.getGlobalContext().Emergency.setTracking(form.getLocalContext().getSelectedWaitingPatient()); //form.dyngrdPatients().setValue(form.getLocalContext().getSelectedWaitingPatient()); } if(form.getLocalContext().getSelectedWaitingPatient() != null) { form.getGlobalContext().Emergency.setTriage(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails()); if(form.getLocalContext().getSelectedWaitingPatient().getEpisode() != null) { form.getLocalContext().setCurrentEpisode((EmergencyEpisodeForTriageLiteVo) form.getLocalContext().getSelectedWaitingPatient().getEpisode().clone()); } if(form.getLocalContext().getSelectedWaitingPatient().getAttendance() != null && form.getLocalContext().getSelectedWaitingPatient().getAttendance().getDischargeDateTime() == null) { form.getLocalContext().setCurrentAttendance((EmergencyAttendanceForTriageLiteVo) form.getLocalContext().getSelectedWaitingPatient().getAttendance().clone()); } } populateScreenFromData(); }
private void selectedInstance() { form.getLocalContext().setHistoryMode(false); form.getLocalContext().setSelectedTriagePatient(null); if(form.dyngrdPatients().getValue() instanceof TrackingRefVo) { form.getGlobalContext().Emergency.setTracking((TrackingRefVo) form.dyngrdPatients().getValue()); form.getLocalContext().setSelectedTriagePatient(domain.getTrackingForTriage((TrackingRefVo) form.dyngrdPatients().getValue())); } else if(form.getGlobalContext().Core.getCurrentCareContext() != null) { TrackingForTriageVo TrackingForTriage = domain.getTrackingForTriageByCareContext(form.getGlobalContext().Core.getCurrentCareContext()); //WDEV-15951 if (TrackingForTriage != null && TrackingForTriage.getAttendanceIsNotNull() && TrackingForTriage.getAttendance().getDischargeDateTimeIsNotNull()) { form.getLocalContext().setHistoryMode(true); //wdev-16064 } form.getLocalContext().setSelectedTriagePatient(TrackingForTriage); form.getGlobalContext().Emergency.setTracking(form.getLocalContext().getSelectedTriagePatient()); form.dyngrdPatients().setValue(form.getLocalContext().getSelectedTriagePatient()); } if(form.getLocalContext().getSelectedTriagePatient() != null) { form.getGlobalContext().Emergency.setTriage(form.getLocalContext().getSelectedTriagePatient().getTriageDetails()); if(form.getLocalContext().getSelectedTriagePatient().getEpisode() != null) { form.getLocalContext().setCurrentEpisode((EmergencyEpisodeForTriageLiteVo) form.getLocalContext().getSelectedTriagePatient().getEpisode().clone()); } if(form.getLocalContext().getSelectedTriagePatient().getAttendance() != null && form.getLocalContext().getSelectedTriagePatient().getAttendance().getDischargeDateTime() == null) { form.getLocalContext().setCurrentAttendance((EmergencyAttendanceForTriageLiteVo) form.getLocalContext().getSelectedTriagePatient().getAttendance().clone()); } } populateScreenFromData(); }
private void selectedInstance() { form.getLocalContext().setHistoryMode(false); form.getLocalContext().setSelectedWaitingPatient(null); if( form.getLocalContext().getTrackingFromArgument() != null) { form.getLocalContext().setSelectedWaitingPatient(domain.getTrackingForTriage(form.getLocalContext().getTrackingFromArgument())); //WDEV-17745 if (form.getLocalContext().getSelectedWaitingPatient() != null && form.getLocalContext().getSelectedWaitingPatient().getAttendance() != null && form.getLocalContext().getSelectedWaitingPatient().getAttendance().getDischargeDateTime() != null) { form.getLocalContext().setHistoryMode(true); } form.getGlobalContext().Emergency.setTracking(form.getLocalContext().getSelectedWaitingPatient()); form.getLocalContext().setTrackingFromArgument(null);//wdev-17598 } else if(form.getGlobalContext().Core.getCurrentCareContext() != null) { TrackingForClinicianWorklistAndTriageVo TrackingForClinician = domain.getTrackingForClinicianWorklistByCareContext(form.getGlobalContext().Core.getCurrentCareContext()); //WDEV-15951 if (TrackingForClinician != null && TrackingForClinician.getAttendanceIsNotNull() && TrackingForClinician.getAttendance().getDischargeDateTimeIsNotNull()) { form.getLocalContext().setHistoryMode(true); //wdev-16064 } form.getLocalContext().setSelectedWaitingPatient(TrackingForClinician); form.getGlobalContext().Emergency.setTracking(form.getLocalContext().getSelectedWaitingPatient()); //form.dyngrdPatients().setValue(form.getLocalContext().getSelectedWaitingPatient()); } if(form.getLocalContext().getSelectedWaitingPatient() != null) { form.getGlobalContext().Emergency.setTriage(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails()); if(form.getLocalContext().getSelectedWaitingPatient().getEpisode() != null) { form.getLocalContext().setCurrentEpisode((EmergencyEpisodeForTriageLiteVo) form.getLocalContext().getSelectedWaitingPatient().getEpisode().clone()); } if(form.getLocalContext().getSelectedWaitingPatient().getAttendance() != null && form.getLocalContext().getSelectedWaitingPatient().getAttendance().getDischargeDateTime() == null) { form.getLocalContext().setCurrentAttendance((EmergencyAttendanceForTriageLiteVo) form.getLocalContext().getSelectedWaitingPatient().getAttendance().clone()); } } populateScreenFromData(); }