public PatientDiagnosisChecklistVo getPatientDiagnosisChecklistVo(ClinicalContactRefVo clinicalContact) { if(clinicalContact == null) throw new DomainRuntimeException("Invalid Search criteria. ClinicalContact must be supplied."); DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer("from PatientDiagnosisChecklist p "); hql.append(" where (p.clinicalContact.id = " + clinicalContact.getID_ClinicalContact() + ")"); List list = (factory.find(hql.toString())); PatientDiagnosisChecklistVoCollection collPatientDiagnosisChecklist = PatientDiagnosisChecklistVoAssembler.createPatientDiagnosisChecklistVoCollectionFromPatientDiagnosisChecklist(list); if(collPatientDiagnosisChecklist==null || collPatientDiagnosisChecklist.size()==0) return null; return collPatientDiagnosisChecklist.get(0); }