private PresProblemChecklistConfigVo populateInstanceData(PresProblemChecklistConfigVo voPresProblemChecklistConfig) { if (voPresProblemChecklistConfig.getPresentingProblems() != null) voPresProblemChecklistConfig.getPresentingProblems().clear(); else voPresProblemChecklistConfig.setPresentingProblems(new ProblemListVoCollection()); TreeNode node = findEnabledNode(); if (node == null) { return voPresProblemChecklistConfig; } for (int i = 0; i < node.getNodes().size(); i++) voPresProblemChecklistConfig.getPresentingProblems().add((ProblemListVo) node.getNodes().get(i).getValue()); return voPresProblemChecklistConfig; }
private PatientProblemVo getInstantiatedProblem(ProblemListVo problem, Specialty specialty, PatientProblemVoCollection list) { if(list == null) return null; for (int i = 0; i < list.size(); i++) { if(list.get(i).getSpecialtyIsNotNull() && list.get(i).getSpecialty().equals(specialty) && list.get(i).getProblemIsNotNull() && list.get(i).getProblem().getID_ClinicalProblem().equals(problem.getPresentingProblem().getID_ClinicalProblem())) return list.get(i); } return null; }