private void populateScreenFromData(HospitalAtNightPatientDetailVo selectedInstance) { if(selectedInstance == null) return; form.txtSituation().setValue(selectedInstance.getSituation()); form.txtSituation().setTooltip(selectedInstance.getSituation()); form.txtBackground().setValue(selectedInstance.getBackground()); form.txtBackground().setTooltip(selectedInstance.getBackground()); form.txtAssessment().setValue(selectedInstance.getAssessment()); form.txtAssessment().setTooltip(selectedInstance.getAssessment()); form.txtRecommendation().setValue(selectedInstance.getRecommendation()); form.txtRecommendation().setTooltip(selectedInstance.getRecommendation()); form.cmbMEWS().setValue(selectedInstance.getMEWS()); populateTypeOfRequestGridWithValue(selectedInstance.getTypeOfRequest()); populateClinicalTasksGrid(selectedInstance.getClinicalTasks()); form.ccRequestingHCP().setValue(selectedInstance.getRequestingHCP()); form.dtimRequestingDate().setValue(selectedInstance.getRequestingDateTime()); populateNotesGrid(selectedInstance.getNotes().sort(new HospitalAtNightNotesDateComparator(SortOrder.DESCENDING))); }
public HospitalAtNightPatientDetailVo getHospitalAtNightPatientDetails(HospitalAtNightPatientDetailRefVo hospitalPatientDetails) { if(hospitalPatientDetails == null || hospitalPatientDetails.getID_HospitalAtNightPatientDetail() == null) throw new CodingRuntimeException("Cannot get HospitalAtNightPatientDetailVo on null Id."); return HospitalAtNightPatientDetailVoAssembler.create((HospitalAtNightPatientDetail) getDomainFactory().getDomainObject(HospitalAtNightPatientDetail.class, hospitalPatientDetails.getID_HospitalAtNightPatientDetail())); }