/** * Populates the Hierarchy tree with the contents of the ElectrotherapyUltrasoundShortVoCollection * Selects the item that matches the current SOAP clinical contact * Sets that items background colour to LightYellow and expands that node. * @param voCollUltrasoundParents */ private void populateParentNodes(ElectrotherapyUltrasoundShortVoCollection voCollUltrasoundParents) { if (voCollUltrasoundParents == null || voCollUltrasoundParents.size() <= 0 ) return; for(int i=0; i<voCollUltrasoundParents.size(); i++) { populateParentNode(voCollUltrasoundParents.get(i)); } }
/** * WDEV-13598 * List records by Care Context and take into account the RIE records. */ public ElectrotherapyUltrasoundShortVoCollection listByCareContext(CareContextLiteVo voCareContext) { String hql = "from ElectrotherapyUltrasound eu where eu.clinicalContact.careContext.id = :CC"; return ElectrotherapyUltrasoundShortVoAssembler.createElectrotherapyUltrasoundShortVoCollectionFromElectrotherapyUltrasound(getDomainFactory().find(hql, "CC", voCareContext.getID_CareContext())); }