public PatientPMHChecklistVo getPatientPMHChecklist(CareContextRefVo refVoCareContext) { if(refVoCareContext == null || refVoCareContext.getID_CareContext() == null) throw new DomainRuntimeException("Contact not provided for get call. "); DomainFactory factory = getDomainFactory(); java.util.List patientPMHChecklist = factory.find("from PatientPMHChecklist pmhlist where pmhlist.careContext.id = :contactId", new String[]{"contactId"}, new Object[]{refVoCareContext.getID_CareContext()}); if (patientPMHChecklist.size()>0) return PatientPMHChecklistVoAssembler.createPatientPMHChecklistVoCollectionFromPatientPMHChecklist(patientPMHChecklist).get(0); else return null; }