private void newTriageNote() { TriageNotesVo note = new TriageNotesVo(); note.setPatient(form.getLocalContext().getPatient()); note.setEpisode(form.getLocalContext().getEpisodeOfCare()); note.setAttendance(form.getLocalContext().getCareContext()); note.setPresentingProblem(form.getLocalContext().getPresentingProblem()); form.getGlobalContext().Emergency.setTriageNote(note); engine.open(form.getForms().Emergency.TriageNoteDialog); }
private void populateScreenFromData() { form.grdNotes().getRows().clear(); TriageNotesVoCollection notes = domain.listNotes(form.getLocalContext().getPatient(), form.getLocalContext().getEpisodeOfCare(), form.getLocalContext().getCareContext()); for(TriageNotesVo note : notes) { if(note == null) continue; addNoteRow(note); } }
private void addNoteRow(TriageNotesVo note) { if(note == null) return; grdNotesRow row = form.grdNotes().getRows().newRow(); StringBuffer sb = new StringBuffer(); if(note.getAuthoringInformationIsNotNull()) { sb.append("<b>" + note.getAuthoringInformation().getAuthoringDateTime()); if(note.getAuthoringInformation().getAuthoringHcpIsNotNull()) { if(sb.length() > 0) sb.append(" - "); sb.append(note.getAuthoringInformation().getAuthoringHcp().getIHcpName()); } sb.append("</b>"); } sb.append("<br><br>"); sb.append(note.getTriageNote()); row.setColNote(sb.toString()); row.setValue(note); }