public PatientProblemVoCollection listPatientProblemsByCareContext(CareContextRefVo careContext) { if (careContext == null || careContext.getID_CareContext() == null) throw new CodingRuntimeException("No Care context Supplied"); DomainFactory factory = getDomainFactory(); List problems = factory.find( "from PatientProblem p where p.careContext.id = :careContextId order by p.specialty.text, p.problem.pCName", new String[] {"careContextId"}, new Object[] {careContext.getID_CareContext()}); return PatientProblemVoAssembler.createPatientProblemVoCollectionFromPatientProblem(problems); }