@Override protected void onDyngrdPatientsRowSelectionChanged(ims.framework.controls.DynamicGridRow row) { PatientShortListVo patient = ((PatientElectiveListForPendingAdmissionVo)row.getValue()).getPatient(); form.getGlobalContext().Core.setPatientShort(domain.getPatientShort(patient)); updateControlsState(); }
public PatientShortListVo getPatientByCareContext(CareContextRefVo careContext) { if(careContext == null || careContext.getID_CareContext() == null) { throw new CodingRuntimeException("CareContextRefVo is null"); } if(careContext.getID_CareContext() == null) { throw new CodingRuntimeException("CareContextRefVo id is null"); } DomainFactory factory = getDomainFactory(); List domainObjectList = factory.find("select p from CareContext as cc left join cc.episodeOfCare as eoc left join eoc.careSpell as cs left join cs.patient as p where (cc.id = :idCareContext)", new String[]{"idCareContext"}, new Object[]{careContext.getID_CareContext()}); PatientShortListVoCollection patient = PatientShortListVoAssembler.createPatientShortListVoCollectionFromPatient(domainObjectList); return patient != null && patient.size() > 0 ? (patient.get(0) != null ? patient.get(0) : null) : null; }
@Override protected void onDyngrdPatientsRowSelectionChanged(ims.framework.controls.DynamicGridRow row) { PatientShortListVo patient = ((PatientElectiveListForPendingAdmissionVo)row.getValue()).getPatient(); form.getGlobalContext().Core.setPatientShort(domain.getPatientShort(patient)); //WDEV-21958 if (row.getValue() != null) { PatientElectiveTCIBedManagerCommentVo tciDetails = ((PatientElectiveListForPendingAdmissionVo)row.getValue()).getTCIDetails(); form.getGlobalContext().Core.settciDetails(tciDetails); } updateControlsState(); }
protected void onDyngrdResultsRowSelectionChanged(DynamicGridRow row) throws PresentationLogicException { updateControlsState(); //WDEV-22823 if(row != null && row.getValue() != null) { PatientShortListVo patient = ((PatientElectiveListForEndoscWorklistVo) row.getValue()).getPatient(); form.getGlobalContext().Core.setPatientShort(domain.getPatientShort(patient)); } }