private void setColNeedReviewed(DynamicGridRow row, ClinicalNotesShortVoCollection voCollNotes, int i) { DynamicGridColumn col = getCol("ICON"); if(col == null) throw new DomainRuntimeException("No column for ICON"); DynamicGridCell iconCell = row.getCells().newCell(col, DynamicCellType.IMAGE); StringBuffer value = new StringBuffer(); if (voCollNotes.get(i).getForReviewDisciplineIsNotNull() && voCollNotes.get(i).getSourceOfNoteIsNotNull()) { value.append("Review Discipline: " + voCollNotes.get(i).getForReviewDiscipline().toString().toUpperCase()); } iconCell.setTooltip(value.toString()); iconCell.setValue(form.getImages().Admin.ClinicalTeam); }
private void setColAuthoringDetails(ClinicalNotesShortVoCollection voCollNotes, int i, DynamicGridRow row) { DynamicGridColumn col = getCol("Authoring Details"); if(col == null) throw new DomainRuntimeException("No column for Identifier"); DynamicGridCell dateCell = row.getCells().newCell(col, DynamicCellType.WRAPTEXT); StringBuffer value = new StringBuffer(); if(voCollNotes.get(i).getAuthoringInfo().getAuthoringHcpIsNotNull()) value.append("HCP: " + voCollNotes.get(i).getAuthoringInfo().getAuthoringHcp().toString()); if(voCollNotes.get(i).getAuthoringInfo().getAuthoringDateTimeIsNotNull()) { if(value.length() > 0) value.append("\n"); value.append("Date:" + voCollNotes.get(i).getAuthoringInfo().getAuthoringDateTime().toString()); } dateCell.setValue(value.toString()); }
private void setColNeedReviewed(DynamicGridRow row, ClinicalNotesShortVoCollection voCollNotes, int i) { DynamicGridColumn col = getCol("ICON"); if (col == null) throw new DomainRuntimeException("No column for ICON"); DynamicGridCell iconCell = row.getCells().newCell(col, DynamicCellType.IMAGE); StringBuffer value = new StringBuffer(); if (voCollNotes.get(i).getForReviewDisciplineIsNotNull() && voCollNotes.get(i).getSourceOfNoteIsNotNull()) { value.append("Review Discipline: " + voCollNotes.get(i).getForReviewDiscipline().toString().toUpperCase()); } iconCell.setTooltip(value.toString()); iconCell.setValue(form.getImages().Admin.ClinicalTeam); iconCell.setValue(form.getImages().Admin.ClinicalTeam); }
private void setColAuthoringDetails(ClinicalNotesShortVoCollection voCollNotes, int i, DynamicGridRow row) { DynamicGridColumn col = getCol("Authoring Details"); if (col == null) throw new DomainRuntimeException("No column for Identifier"); DynamicGridCell dateCell = row.getCells().newCell(col, DynamicCellType.WRAPTEXT); StringBuffer value = new StringBuffer(); if (voCollNotes.get(i).getAuthoringInfo().getAuthoringHcpIsNotNull()) value.append("HCP: " + voCollNotes.get(i).getAuthoringInfo().getAuthoringHcp().toString()); if (voCollNotes.get(i).getAuthoringInfo().getAuthoringDateTimeIsNotNull()) { if (value.length() > 0) value.append("\n"); String voCollNotesAuthoringDateTime = voCollNotes.get(i).getAuthoringInfo().getAuthoringDateTime().toString(); value.append("Date:" + voCollNotesAuthoringDateTime); } dateCell.setValue(value.toString()); }
private void setColPatient(ClinicalNotesShortVoCollection voCollNotes, int i, DynamicGridRow row) { DynamicGridColumn col; col = getCol("Patient"); if(col == null) throw new DomainRuntimeException("No column for Identifier"); DynamicGridCell patientCell = row.getCells().newCell(col, DynamicCellType.WRAPTEXT); //Get value from DISPLAY_PATID_TYPE flag PatIdType dispIdType = PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue()); if (voCollNotes.get(i).getCareContextIsNotNull() && voCollNotes.get(i).getCareContext().getEpisodeOfCareIsNotNull() && voCollNotes.get(i).getCareContext().getEpisodeOfCare().getCareSpellIsNotNull() && voCollNotes.get(i).getCareContext().getEpisodeOfCare().getCareSpell().getPatientIsNotNull()) { String patient = (voCollNotes.get(i).getCareContext().getEpisodeOfCare().getCareSpell().getPatient().getNameIsNotNull() ? voCollNotes.get(i).getCareContext().getEpisodeOfCare().getCareSpell().getPatient().getName().toString() : "") + "\nDOB: "+ (voCollNotes.get(i).getCareContext().getEpisodeOfCare().getCareSpell().getPatient().getDobIsNotNull() ? voCollNotes.get(i).getCareContext().getEpisodeOfCare().getCareSpell().getPatient().getDob().toString() : "Unknown") + displayPatientInfo(dispIdType.getID(), voCollNotes, i); patientCell.setValue(voCollNotes.get(i).getCareContext().getEpisodeOfCare().getCareSpell().getPatient().getPatientInfo()); patientCell.setValue(patient); patientCell.setTooltip(voCollNotes.get(i).getCareContext().getEpisodeOfCare().getCareSpell().getPatient().getPatientInfo()); patientCell.setIdentifier(voCollNotes.get(i).getCareContext().getEpisodeOfCare().getCareSpell().getPatient()); } }
private void setColStatus(ClinicalNotesShortVoCollection voCollNotes, int i, DynamicGridRow row) { DynamicGridColumn col = getCol("Status"); if(col == null) throw new DomainRuntimeException("No column for Identifier"); DynamicGridCell statusCell = row.getCells().newCell(col, DynamicCellType.STRING); statusCell.setValue(voCollNotes.get(i).getCurrentStatus().getStatus().getText()); }
private void setColDiscipline(ClinicalNotesShortVoCollection voCollNotes, int i, DynamicGridRow row) { DynamicGridColumn col = getCol("Discipline"); if(col == null) throw new DomainRuntimeException("No column for Identifier"); DynamicGridCell disCell = row.getCells().newCell( col, DynamicCellType.STRING); disCell.setValue(voCollNotes.get(i).getDiscipline().getText()); }
private void search() { form.getGlobalContext().Core.setClinicalNotesShort(null); ExtendedClinicalNotesFilterVo filter = setFilter(); if(form.dtimFrom().getValue() != null && form.dtimTo().getValue() != null ) { if(form.dtimFrom().getValue().isGreaterThan(form.dtimTo().getValue())) { engine.showMessage("Please enter From and To dates that are in chronological order"); return; } } ClinicalNotesShortVoCollection voCollNotes = domain.listClinicalNote(filter); form.dyngrdNotes().getRows().clear(); //WDEV-10261 clear context menu clearContextMenu(); if (voCollNotes == null || voCollNotes.size() == 0) { engine.showMessage("No matching records found"); form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size()); updateContextMenu();//wdev-13075 updateControlsState();//WDEV-14616 return; } form.getGlobalContext().Clinical.setExtendedClinicalNotesListFilter(filter); form.btnPrint().setEnabled(true); form.btnPrint().setVisible(true); populateDynamicGrid(voCollNotes); updateContextMenu(); updateControlsState();//WDEV-14616 form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size()); }
private void populateDynamicGrid(ClinicalNotesShortVoCollection voCollNotes) { updateContextMenu(); for (int i = 0; i < voCollNotes.size(); i++) { DynamicGridRow row = form.dyngrdNotes().getRows().newRow(); ClinicalNotesShortVo note = voCollNotes.get(i); setColAuthoringDate(note, row); setColAuthoringHCP(note, row); if (note.getIsCorrectedIsNotNull() && note.getIsCorrected().booleanValue()) setColCorrect(row); if (note.getDisciplineIsNotNull()) setColDiscipline(note, row); if (note.getNoteClassificationIsNotNull()) setColNoteType(note, row); if (note.getCurrentStatusIsNotNull() && note.getCurrentStatus().getStatusIsNotNull()) setColStatus(note, row); setColNote(note, row); row.setValue(note); } }
private void search() { form.getGlobalContext().Clinical.setCurrentClinicalNote(null);//WDEV-14286 form.getGlobalContext().Core.setClinicalNotesShort(null); ClinicalNotesFilterVo filter = setFilter(); ClinicalNotesShortVoCollection voCollNotes = domain.listClinicalNote(filter); form.dyngrdNotes().getRows().clear(); updateControlsState(); //------------------------------------------------------------------- if(form.dteFrom().getValue() != null && form.dteTo().getValue() != null ) if(form.dteFrom().getValue().isGreaterThan(form.dteTo().getValue())) { engine.showMessage("Please enter From and To dates that are in chronological order"); form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size());//WDEV-16517 return; } //-------------------------------------------------------------------- if (voCollNotes == null || voCollNotes.size() == 0) { engine.showMessage("No matching records found"); form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size()); return; } populateDynamicGrid(voCollNotes); updateControlsState(); form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size()); }
private void setColStatus(ClinicalNotesShortVoCollection voCollNotes, int i, DynamicGridRow row) { DynamicGridColumn col = getCol("Status"); if (col == null) throw new DomainRuntimeException("No column for Identifier"); DynamicGridCell statusCell = row.getCells().newCell(col, DynamicCellType.STRING); statusCell.setValue(voCollNotes.get(i).getCurrentStatus().getStatus().getText()); }
private void setColDiscipline(ClinicalNotesShortVoCollection voCollNotes, int i, DynamicGridRow row) { DynamicGridColumn col = getCol("Discipline"); if (col == null) throw new DomainRuntimeException("No column for Identifier"); DynamicGridCell disCell = row.getCells().newCell(col, DynamicCellType.STRING); disCell.setValue(voCollNotes.get(i).getDisciplineIsNotNull() ? voCollNotes.get(i).getDiscipline().getText() : ""); }
private void search() { form.getGlobalContext().Clinical.setCurrentClinicalNote(null);//WDEV-14286 form.getGlobalContext().Core.setClinicalNotesShort(null); ClinicalNotesFilterVo filter = setFilter(); ClinicalNotesShortVoCollection voCollNotes = domain.listClinicalNote(filter); form.dyngrdNotes().getRows().clear(); updateControlsState(); //------------------------------------------------------------------- if(form.dteFrom().getValue() != null && form.dteTo().getValue() != null ) if(form.dteFrom().getValue().isGreaterThan(form.dteTo().getValue())) { engine.showMessage("Please enter From and To dates that are in chronological order"); form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size());//WDEV-16517 return; } //-------------------------------------------------------------------- form.getGlobalContext().Core.setPatientClinicalNotesSearchCriteria(filter);//WDEV-19389 if (voCollNotes == null || voCollNotes.size() == 0) { engine.showMessage("No matching records found"); form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size()); return; } populateDynamicGrid(voCollNotes); updateControlsState(); form.lblTotal().setValue("Total : " + form.dyngrdNotes().getRows().size()); }