private PatientDiagnosisOpNotesVoCollection getPatientDiagnosisWithIds() { if(form.grdDiagnosis().getRows().size() == 0) return null; PatientDiagnosisOpNotesVoCollection diagnosis = new PatientDiagnosisOpNotesVoCollection(); for(int i=0; i<form.grdDiagnosis().getRows().size(); i++) { if(form.grdDiagnosis().getRows().get(i).getValue() == null || form.grdDiagnosis().getRows().get(i).getValue().getID_PatientDiagnosis() == null) continue; diagnosis.add(form.grdDiagnosis().getRows().get(i).getValue()); } return diagnosis; }
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException { PatientDiagnosisOpNotesVoCollection vocoll = new PatientDiagnosisOpNotesVoCollection(); for (int i = 0; i < form.grdCareContext().getRows().size(); i++) { if (form.grdCareContext().getRows().get(i).getcolSelect()) { vocoll.add(form.grdCareContext().getRows().get(i).getValue()); } } for (int i = 0; i < form.grdOtherDiagnosis().getRows().size(); i++) { if (form.grdOtherDiagnosis().getRows().get(i).getcolSelect()) { vocoll.add(form.grdOtherDiagnosis().getRows().get(i).getValue()); } } form.getGlobalContext().RefMan.setSelectedDiagnosisApptOutcomeList(vocoll); engine.close(DialogResult.OK); }
private PatientDiagnosisOpNotesVoCollection getPatientDiagnosis() { if(form.grdDiagnosis().getRows().size() == 0) return null; PatientDiagnosisOpNotesVoCollection diagnosis = new PatientDiagnosisOpNotesVoCollection(); for(int i=0; i<form.grdDiagnosis().getRows().size(); i++) { diagnosis.add(form.grdDiagnosis().getRows().get(i).getValue()); } return diagnosis; }
private void populateDiagnosisGrid(PatientDiagnosisOpNotesVoCollection diagnosis) { form.grdDiagnosis().getRows().clear(); if(diagnosis == null) return; for(PatientDiagnosisOpNotesVo diag : diagnosis) { addPatientDiagnosisRow(diag, null); } }
private void populateScreenFromData(PatientDiagnosisOpNotesVoCollection outcomeDiagCollection, PatientDiagnosisOpNotesVoCollection allDiagnosis) { form.grdCareContext().getRows().clear(); form.grdOtherDiagnosis().getRows().clear(); if (allDiagnosis != null) { for (PatientDiagnosisOpNotesVo diag : allDiagnosis) { if (form.getGlobalContext().Core.getCurrentCareContext() != null && diag.getCareContext() != null && diag.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext())) { grdCareContextRow row = form.grdCareContext().getRows().newRow(); row.setcolDescription(diag.getDiagnosisDescription()); row.setcolDiagnosisDate(diag.getDiagnosedDate() != null ? diag.getDiagnosedDate().toString(): ""); if (diag.getAuthoringInfo() != null) { row.setcolAuthoringHCPDateTime(diag.getAuthoringInfo().getIItemText()); } row.setcolStatus((diag.getCurrentStatus() != null && diag.getCurrentStatus().getStatus() != null) ? diag.getCurrentStatus().getStatus().getText() : ""); row.setValue(diag); } else { grdOtherDiagnosisRow otherDiagRow = form.grdOtherDiagnosis().getRows().newRow(); otherDiagRow.setcolDescription(diag.getDiagnosisDescription()); otherDiagRow.setcolDiagnosisDate(diag.getDiagnosedDate() != null ? diag.getDiagnosedDate().toString() : ""); if (diag.getAuthoringInfo() != null) { otherDiagRow.setcolAuthoringHCPDateTime(diag.getAuthoringInfo().getIItemText()); } otherDiagRow.setcolStatus((diag.getCurrentStatus() != null && diag.getCurrentStatus().getStatus() != null) ? diag.getCurrentStatus().getStatus().getText() : ""); otherDiagRow.setValue(diag); } //remove from all for display /* for (int i = 0; i < allDiagnosis.size();i++) { if (allDiagnosis.get(i).equals(diag)) { allDiagnosis.remove(i); } }*/ } } markApptOutcomeDiagnosis(form.getGlobalContext().RefMan.getSelectedDiagnosisApptOutcomeList()); }
private void populateDiagnosisGridFromData(PatientDiagnosisOpNotesVoCollection pdac) { form.grdDiagnosis().getRows().clear(); if (pdac == null) return; for (int i = 0 ; i < pdac.size() ; i++) { PatientDiagnosisOpNotesVo current = pdac.get(i); if (current != null) { grdDiagnosisRow nRow = form.grdDiagnosis().getRows().newRow(); nRow.setColumnName(current.getDiagnosisIsNotNull() ? current.getDiagnosis().getDiagnosisName() : null); nRow.setColumnDescription(current.getDiagnosisDescription()); nRow.setColumnPrimary(isPrimaryDiagnosisRecord(current)); nRow.setValue(current); String toolTip = ""; if (current.getCurrentStatusIsNotNull() && current.getCurrentStatus().getStatusIsNotNull()) { toolTip = "<b>Status</b>: "+current.getCurrentStatus().getStatus().getText(); } if (current.getAuthoringInfoIsNotNull()) { if (current.getAuthoringInfo().getAuthoringHcpIsNotNull() && current.getAuthoringInfo().getAuthoringHcp().getMosIsNotNull() && current.getAuthoringInfo().getAuthoringHcp().getMos().getNameIsNotNull()) { toolTip+= "<br/><b>Authoring HCP: </b> "+current.getAuthoringInfo().getAuthoringHcp().getMos().getName().toString(); } if (current.getAuthoringInfo().getAuthoringDateTimeIsNotNull()) { toolTip+= "<br/><b>Authoring Date/Time: </b> "+current.getAuthoringInfo().getAuthoringDateTime().toString(); } } if (toolTip.length()>0) nRow.setTooltip(toolTip); } } }