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 EpisodeOfcareLiteVo getEpisodeOfCareLite(EpisodeOfCareRefVo episodeOfCareRef) { if( episodeOfCareRef == null ) throw new CodingRuntimeException("EpisodeOfCareRefVo not provided"); DomainFactory factory = getDomainFactory(); EpisodeOfCare doEpisodeOfCare = (EpisodeOfCare) factory.getDomainObject(EpisodeOfCare.class, episodeOfCareRef.getID_EpisodeOfCare()); return EpisodeOfcareLiteVoAssembler.create(doEpisodeOfCare); }
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 populatePreviousHistoryGrid(EpisodeDetailsVoCollection emergencyEpisodes) { if (emergencyEpisodes == null) return; form.grdPrevious().getRows().clear(); grdPreviousRow episodeDetailsRow = null, emergencyAttendancesRow = null; emergencyEpisodes.sort(new InjuryDateComparator(SortOrder.DESCENDING)); for (int i = 0; i < emergencyEpisodes.size(); i++) { EpisodeDetailsVo voEpisodeDetails = emergencyEpisodes.get(i); episodeDetailsRow = form.grdPrevious().getRows().newRow(); EpisodeOfcareLiteVo tempVo = domain.getEpisodeOfCareLite(voEpisodeDetails.getEpisodeOfCare()); //wdev-16070 episodeDetailsRow.setColumnDateTime(tempVo != null ? tempVo.getStartDate():null); //wdev-16070 episodeDetailsRow.setColumnPatCategory((voEpisodeDetails.getCategoryIsNotNull() ? voEpisodeDetails.getCategory().getText() + " - ":"") + (voEpisodeDetails.getPresentingComplaintIsNotNull()? voEpisodeDetails.getPresentingComplaint().toString():"")); episodeDetailsRow.setColumnEmergencyNo(voEpisodeDetails.getID_EmergencyEpisode().toString()); //episodeDetailsRow.setCollapsedImage(form.getImages().Core.CareSpell); //episodeDetailsRow.setExpandedImage(form.getImages().Core.CareSpell); //episodeDetailsRow.setBackColor(Color.Bisque); episodeDetailsRow.setBold(true); episodeDetailsRow.setValue(voEpisodeDetails); episodeDetailsRow.setTooltip("DateTime : <b>" + (voEpisodeDetails.getInjuryDateTime()!=null ? voEpisodeDetails.getInjuryDateTime():"") + (voEpisodeDetails.getCategoryIsNotNull() ? "</b><br>Category : <b>" + voEpisodeDetails.getCategory().getText() : "") + (voEpisodeDetails.getID_EmergencyEpisodeIsNotNull() ? "</b><br>Emergency Number: <b>" + voEpisodeDetails.getID_EmergencyEpisode().toString() + "</b>" : ""));//WDEV-17178 if (voEpisodeDetails.getEmergencyAttendancesIsNotNull()) { episodeDetailsRow.setExpanded(true); voEpisodeDetails.getEmergencyAttendances().sort(new ArrivalDateComparator(SortOrder.DESCENDING)); //wdev-14420 for (int j = 0; j < voEpisodeDetails.getEmergencyAttendances().size(); j++) { AttendanceDetailsVo voEmergencyAttendances = voEpisodeDetails.getEmergencyAttendances().get(j); emergencyAttendancesRow = episodeDetailsRow.getRows().newRow(); if (voEmergencyAttendances.getDischargeDateTimeIsNotNull()) { emergencyAttendancesRow.setColumnDateTime(voEmergencyAttendances.getRegistrationDateTime() + " - " + voEmergencyAttendances.getDischargeDateTime()); emergencyAttendancesRow.setColumnPatCategory(voEmergencyAttendances.getOutcome() != null ? voEmergencyAttendances.getOutcome().getText() : null); emergencyAttendancesRow.setColumnEmergencyNo(voEmergencyAttendances.getID_EmergencyAttendance().toString()); emergencyAttendancesRow.setColumnContextType((voEmergencyAttendances.getCareContextIsNotNull() && voEmergencyAttendances.getCareContext().getContextIsNotNull())? voEmergencyAttendances.getCareContext().getContext():null); //emergencyAttendancesRow.setCollapsedImage(form.getImages().Core.BookOpenEnabled); //emergencyAttendancesRow.setBackColor(Color.LightBlue); emergencyAttendancesRow.setValue(voEmergencyAttendances); emergencyAttendancesRow.setTooltip("DateTime : <b>" + (voEmergencyAttendances.getRegistrationDateTime()!=null ? voEmergencyAttendances.getRegistrationDateTime() : "") + " - " + (voEmergencyAttendances.getDischargeDateTime()!=null ? voEmergencyAttendances.getDischargeDateTime() : "") + (voEmergencyAttendances.getOutcomeIsNotNull() ? "</b><br>Outcome : <b>" + voEmergencyAttendances.getOutcome() : "") + (voEmergencyAttendances.getID_EmergencyAttendanceIsNotNull() ? "</b><br>Emergency Number: <b>" + voEmergencyAttendances.getID_EmergencyAttendance().toString() + "</b><br>Context Type : <b>" + voEmergencyAttendances.getCareContext().getContext().toString() : ""));//WDEV-17178 } else { emergencyAttendancesRow.setColumnDateTime(voEmergencyAttendances.getArrivalDateTime()); emergencyAttendancesRow.setColumnPatCategory(voEmergencyAttendances.getOutcome() != null ? voEmergencyAttendances.getOutcome().getText() : null); emergencyAttendancesRow.setColumnEmergencyNo(voEmergencyAttendances.getID_EmergencyAttendance().toString()); emergencyAttendancesRow.setColumnContextType((voEmergencyAttendances.getCareContextIsNotNull() && voEmergencyAttendances.getCareContext().getContextIsNotNull()) ? voEmergencyAttendances.getCareContext().getContext():null); //emergencyAttendancesRow.setCollapsedImage(form.getImages().Core.Alert_RedTriangle2); //emergencyAttendancesRow.setBackColor(Color.Pink); emergencyAttendancesRow.setValue(voEmergencyAttendances); emergencyAttendancesRow.setTooltip("DateTime : <b>" + (voEmergencyAttendances.getRegistrationDateTime()!=null ? voEmergencyAttendances.getRegistrationDateTime():"") + (voEmergencyAttendances.getOutcomeIsNotNull() ? "</b><br>Outcome : <b>" + voEmergencyAttendances.getOutcome() : "") + (voEmergencyAttendances.getID_EmergencyAttendanceIsNotNull() ? "</b><br>Emergency Number: <b>" + voEmergencyAttendances.getID_EmergencyAttendance().toString() + "</b><br>Context Type : <b>" + voEmergencyAttendances.getCareContext().getContext().toString() : "")); } } } } }