@Override protected void onFormOpen(Object[] args) throws PresentationLogicException { if (args!=null && args.length>1 && args[0]!=null && args[0] instanceof CareContextLiteVo && args[1]!=null && args[1] instanceof PatientListVo) { form.getLocalContext().setCurrentCareContext((CareContextLiteVo) args[0]); PatientDiagnosisListVoCollection colldiagnosis = domain.listDiagnosis(form.getLocalContext().getCurrentCareContext(),(PatientListVo)args[1]); populateGrid(colldiagnosis); updateControlState(); } }
public PatientListVo getPatientRef(CatsReferralRefVo catsReferralRef) { DomainFactory factory = getDomainFactory(); if (catsReferralRef != null && catsReferralRef.getID_CatsReferralIsNotNull()) { java.util.List list = factory.find("select patient from CatsReferral cats where cats.id = :catsID", new String[]{"catsID"}, new Object[]{catsReferralRef.getID_CatsReferral()}); if (list != null && list.size() >0) return PatientListVoAssembler.create((Patient)list.get(0)); else return null; } return null; }
public PatientListVo getPatientRef(CatsReferralRefVo catsReferralRef) { DomainFactory factory = getDomainFactory(); if (catsReferralRef != null && catsReferralRef.getID_CatsReferralIsNotNull()) { java.util.List list = factory.find("select patient from CatsReferral cats where cats.id = :catsID", new String[] { "catsID" }, new Object[] { catsReferralRef.getID_CatsReferral() }); if (list != null && list.size() > 0) return PatientListVoAssembler.create((Patient) list.get(0)); else return null; } return null; }