private void populateParentNodes(ComplementaryTherapyTreatmentShortVoCollection voComTherapyShortColl) { if (voComTherapyShortColl == null || voComTherapyShortColl.size() <= 0 ) return; for(int i=0; i<voComTherapyShortColl.size(); i++) { populateParentNode(voComTherapyShortColl.get(i)); } }
/** * WDEV-13581 * List all Complementary Therapy Treatment records * The parameter is a mandatory one (marked from DevEnv) */ public ComplementaryTherapyTreatmentShortVoCollection listComplementaryTherapyByCareContext(CareContextRefVo voCareContextRef) { DomainFactory factory = getDomainFactory(); String query = "from ComplementaryTherapyTreatment ctt where ctt.clinicalContact.careContext.id = :CC"; return ComplementaryTherapyTreatmentShortVoAssembler.createComplementaryTherapyTreatmentShortVoCollectionFromComplementaryTherapyTreatment(factory.find(query, "CC", voCareContextRef.getID_CareContext())); }