/** * list Chemotherapies for Care Context */ public ChemotherapyDetailsListVoCollection listChemotherapies(CareSpellRefVo voCareSpellRef) { if (voCareSpellRef == null) throw new RuntimeException("Cannot list Chemotherapy Details for null Care Spell"); StringBuilder query = new StringBuilder(); String careSpellId = "CARE_SPELL_ID"; query.append("from ChemotherapyDetails as c1_1 where c1_1.careContext.episodeOfCare.careSpell.id = :" + careSpellId); List list = getDomainFactory().find(query.toString(), careSpellId, voCareSpellRef.getID_CareSpell()); return ChemotherapyDetailsListVoAssembler.createChemotherapyDetailsListVoCollectionFromChemotherapyDetails(list); }