private void populateOtherProblems() { form.grdProblem().getRows().clear(); if(form.getGlobalContext().Core.getCurrentCareContext() == null) return; TriageProtocolAssessmentForTriageVoCollection otherProblems = domain.listOtherProblems(form.getGlobalContext().Core.getCurrentCareContext()); for(TriageProtocolAssessmentForTriageVo otherProblem : otherProblems) { addOtherProblemRow(otherProblem); } }
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); }
public TriageProtocolAssessmentForTriageVoCollection listOtherProblems(CareContextRefVo careContext) { Triage triage = (Triage)getDomainImpl(TriageImpl.class); return triage.listOtherProblems(careContext); }