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 addEmergencyAttendanceRow(grdAttendanceHistoryRow row, EmergencyAttendanceForTriageVo emergencyAttendance) { if(row == null || emergencyAttendance == null) return; grdAttendanceHistoryRow childRow = row.getRows().newRow(); childRow.setColID(emergencyAttendance.getID_EmergencyAttendance().toString() + (emergencyAttendance.getRegistrationDateTimeIsNotNull() ? " - " + emergencyAttendance.getRegistrationDateTime().toString() : "")); childRow.setValue((EmergencyAttendanceForTriageLiteVo) 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 } }
private void addEmergencyAttendanceRow(ims.emergency.forms.edassessmentcomponent.GenForm.grdAttendanceHistoryRow row, EmergencyAttendanceForTriageVo emergencyAttendance) { if(row == null || emergencyAttendance == null) return; ims.emergency.forms.edassessmentcomponent.GenForm.grdAttendanceHistoryRow childRow = row.getRows().newRow(); childRow.setColID(emergencyAttendance.getID_EmergencyAttendance().toString() + (emergencyAttendance.getRegistrationDateTimeIsNotNull() ? " - " + emergencyAttendance.getRegistrationDateTime().toString() : "")); childRow.setValue((EmergencyAttendanceForTriageLiteVo) emergencyAttendance); }
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 addEmergencyAttendanceRow(ims.emergency.forms.edassessmentcomponent.GenForm.grdAttendanceHistoryRow row, EmergencyAttendanceForTriageVo emergencyAttendance) { if(row == null || emergencyAttendance == null) return; ims.emergency.forms.edassessmentcomponent.GenForm.grdAttendanceHistoryRow childRow = row.getRows().newRow(); childRow.setColID((ConfigFlag.GEN.ED_USE_CUSTOM_ATTENDANCE_ID.getValue() && emergencyAttendance.getCustomID() != null ? emergencyAttendance.getCustomID() : emergencyAttendance.getID_EmergencyAttendance().toString()) + (emergencyAttendance.getRegistrationDateTimeIsNotNull() ? " - " + emergencyAttendance.getRegistrationDateTime().toString() : "")); //WDEV-19299 PatientProblemForClinicianWorklistVo mainPresentingProblem = domain.getMainPresentingProblem(emergencyAttendance.getCareContext()); childRow.setTooltip(mainPresentingProblem!=null ? "<b>Presenting Problem: </b>" + mainPresentingProblem.getPatientProblem() : null ); childRow.setValue((EmergencyAttendanceForTriageLiteVo) emergencyAttendance); }