private void populateScreenFromData(DischargeClinicalInformationVo voClinInfo) { clearInstanceControls(); if (voClinInfo == null) return; form.txtAdditionalComments().setValue(voClinInfo.getAdditionalComments()); form.txtInvestigationsComments().setValue(voClinInfo.getInvestigationComments()); form.txtPresentingComplaints().setValue(voClinInfo.getPresentingComplaints()); form.txtRelevantTreatmentsETC().setValue(voClinInfo.getRelevantTreatments()); form.txtSummaryofAdmission().setValue(voClinInfo.getSummaryOfAdmission()); for(int i = 0 ; voClinInfo.getResultsIsNotNull() && i < voClinInfo.getResults().size() ; i++) { grdInvestigationsRow row = form.grdInvestigations().getRows().newRow(); row.setColInvestigation(voClinInfo.getResults().get(i).getInvestigationIsNotNull() && voClinInfo.getResults().get(i).getInvestigation().getInvestigationIndexIsNotNull() ? voClinInfo.getResults().get(i).getInvestigation().getInvestigationIndex().getName() : ""); row.setColInclude(Boolean.TRUE); row.setValue(voClinInfo.getResults().get(i)); } }
public void open() { DischargeClinicalInformationVo voClinInfo = domain.getClinicalInfo(form.getGlobalContext().Core.getCurrentCareContext()); form.getLocalContext().setSelectedRecord(voClinInfo); populateScreenFromData(voClinInfo); if (form.getMode().equals(FormMode.EDIT )) listAllResultsForTimePeriod(); manageReadOnly(); }
public void open() { DischargeClinicalInformationVo voClinInfo = domain.getClinicalInfo(form.getGlobalContext().Core.getCurrentCareContext()); form.getLocalContext().setSelectedRecord(voClinInfo); populateScreenFromData(voClinInfo); if (form.getMode().equals(FormMode.EDIT )) listAllResultsForTimePeriod(); manageReadOnly(); updateControlsState(); }
private void updateControlsState() { DischargeClinicalInformationVo voClinInfo = form.getLocalContext().getSelectedRecord(); form.imbRelevantTreatCheckSpell().setTooltip(FormMode.EDIT.equals(form.getMode()) ? "Spell Check" : ""); form.imbSummaryAdmSpellCheck().setTooltip(FormMode.EDIT.equals(form.getMode()) ? "Spell Check" : ""); form.imbInfo().setEnabled(false); form.imbInfo().setVisible(voClinInfo != null && (voClinInfo.getPresentingComplaints() != null || voClinInfo.getInvestigationComments() != null || voClinInfo.getAdditionalComments() != null)); //form.lblPathology().setVisible(form.getLocalContext().getPathologyInvestigations() != null && form.getLocalContext().getPathologyInvestigations().size() > 0); }
private void populateScreenFromData(DischargeClinicalInformationVo voClinInfo) { clearInstanceControls(); if (voClinInfo == null) return; StringBuffer tooltip = new StringBuffer(); OrderInvestigationBookingVoCollection pathInvestigations = new OrderInvestigationBookingVoCollection(); if (voClinInfo.getPresentingComplaints() != null) tooltip.append("<b>Presenting Complaint:</b> " + voClinInfo.getPresentingComplaints() + "<br>"); if (voClinInfo.getInvestigationComments() != null) tooltip.append("<b>Investigation Comments:</b> " + voClinInfo.getInvestigationComments() + "<br>"); if (voClinInfo.getAdditionalComments() != null) tooltip.append("<b>Additional Comments:</b> " + voClinInfo.getAdditionalComments()); form.imbInfo().setTooltip(tooltip.toString()); form.richTxtRelevantTreatmentsETC().setValue(voClinInfo.getRelevantTreatments()); form.richTxtSummaryofAdmission().setValue(voClinInfo.getSummaryOfAdmission()); for(int i = 0 ; voClinInfo.getResultsIsNotNull() && i < voClinInfo.getResults().size() ; i++) { if (voClinInfo.getResults().get(i).getInvestigation() == null || voClinInfo.getResults().get(i).getInvestigation().getInvestigationIndex() == null) continue; if (Category.CLINICALIMAGING.equals(voClinInfo.getResults().get(i).getInvestigation().getInvestigationIndex().getCategory())) { grdInvestigationsRow row = form.grdInvestigations().getRows().newRow(); row.setColInvestigation(voClinInfo.getResults().get(i).getInvestigation().getInvestigationIndex().getName()); row.setColInclude(Boolean.TRUE); row.setValue(voClinInfo.getResults().get(i)); } else if( Category.PATHOLOGY.equals(voClinInfo.getResults().get(i).getInvestigation().getInvestigationIndex().getCategory())) //wdev-18892 { grdPathologyRelevantResultsRow rowpat = form.grdPathologyRelevantResults().getRows().newRow(); rowpat.setColumnInvestigation(voClinInfo.getResults().get(i).getInvestigation().getInvestigationIndex().getName()); rowpat.setColumnInclude(Boolean.TRUE); rowpat.setValue(voClinInfo.getResults().get(i)); } else if( Category.CLINICAL.equals(voClinInfo.getResults().get(i).getInvestigation().getInvestigationIndex().getCategory())) { grdClinicalRelevantResultsRow rowclin = form.grdClinicalRelevantResults().getRows().newRow(); rowclin.setColumnOtherResults(voClinInfo.getResults().get(i).getInvestigation().getInvestigationIndex().getName()); rowclin.setColumnInclude(Boolean.TRUE); rowclin.setValue(voClinInfo.getResults().get(i)); } /*else pathInvestigations.add(voClinInfo.getResults().get(i));*/ } form.getLocalContext().setPathologyInvestigations(pathInvestigations); }