@Deprecated public static boolean supports(List<ObsGroupComponent> questionsAndAnswers, Obs parentObs, Set<Obs> group) { for (Obs obs : group) { boolean match = false; for (ObsGroupComponent test : questionsAndAnswers) { boolean questionMatches = test.getQuestion().getConceptId().equals(obs.getConcept().getConceptId()); boolean answerMatches = test.getAnswer() == null ||(obs.getValueCoded() != null && test.getAnswer().getConceptId().equals(obs.getValueCoded().getConceptId())); if (questionMatches && !answerMatches) { match = false; break; } if (questionMatches && answerMatches) { match = true; } } if (!match){ return false; } } return true; }