/** * listSurgeryDetails */ public SurgeryDetailsListVoCollection listSurgeryDetails(EpisodeOfCareRefVo episodeOfCare) { if (episodeOfCare == null || !episodeOfCare.getID_EpisodeOfCareIsNotNull()) throw new DomainRuntimeException("Can not search for surgery details after a null or invalid episode of care"); DomainFactory factory = getDomainFactory(); String hql = "from SurgeryDetails sd where sd.episodeOfCare.id = " + episodeOfCare.getID_EpisodeOfCare(); return SurgeryDetailsListVoAssembler.createSurgeryDetailsListVoCollectionFromSurgeryDetails((factory.find(hql))).sort(); }