public TriageProtocolAssessmentForTriageVoCollection listOtherProblems(CareContextRefVo careContext) { if(careContext == null || careContext.getID_CareContext() == null) throw new CodingRuntimeException("Cannot list other problems for a null Care Context Id."); DomainFactory factory = getDomainFactory(); String query = "select tpa from TriageProtocolAssessment as tpa left join tpa.attendance as cc where cc.id = :CareContextId and (tpa.isMain is null or tpa.isMain = 0) "; List<?> otherProblems = factory.find(query, new String[] {"CareContextId"}, new Object[] {careContext.getID_CareContext()}); return TriageProtocolAssessmentForTriageVoAssembler.createTriageProtocolAssessmentForTriageVoCollectionFromTriageProtocolAssessment(otherProblems); }