/** * 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(RehabilitationShortVoCollection voCollRehabParents) { if (voCollRehabParents == null || voCollRehabParents.size() <= 0 ) return; for(int i=0; i<voCollRehabParents.size(); i++) { populateParentNode(voCollRehabParents.get(i)); } }
public RehabilitationShortVoCollection listByCareContext(Integer idCareContext) { if (idCareContext != null) { DomainFactory factory = getDomainFactory(); List RespTrList = factory.find(" from Rehabilitation rt where rt.clinicalContact.careContext.id = :ccId order by rt.authoringDateTime", new String[]{"ccId"}, new Object[]{idCareContext}); return RehabilitationShortVoAssembler.createRehabilitationShortVoCollectionFromRehabilitation(RespTrList); } return null; }