public ClinicalAdmissionListVoCollection listClinicalAdmissions(PatientRefVo patientRefVo) { //WDEV-13846 Florin if(patientRefVo == null) throw new CodingRuntimeException("PatientRefVo Filter not provided for list call. "); DomainFactory factory = getDomainFactory(); String hql = "from ClinicalAdmission ca where ca.careContext.episodeOfCare.careSpell.patient.id = :idPatient order by ca.systemInformation.creationDateTime desc"; List<?> list = factory.find(hql, new String[] {"idPatient"}, new Object[] {patientRefVo.getID_Patient()}); return ClinicalAdmissionListVoAssembler.createClinicalAdmissionListVoCollectionFromClinicalAdmission(list).sort(); }