Fixed bug in finding QuestionnaireResponse child items
This commit is contained in:
parent
cddb6b993c
commit
4fff5ee27a
|
@ -46,7 +46,6 @@ public class DefaultEnableWhenEvaluator implements IEnableWhenEvaluator {
|
|||
|
||||
protected EnableWhenResult evaluateCondition(QuestionnaireItemEnableWhenComponent enableCondition,
|
||||
Element questionnaireResponse, String linkId) {
|
||||
//TODO: Fix EnableWhenResult stuff
|
||||
List<Element> answerItems = findQuestionAnswers(questionnaireResponse,
|
||||
enableCondition.getQuestion());
|
||||
QuestionnaireItemOperator operator = enableCondition.getOperator();
|
||||
|
@ -157,7 +156,7 @@ public class DefaultEnableWhenEvaluator implements IEnableWhenEvaluator {
|
|||
return true;
|
||||
}
|
||||
private List<Element> findSubItems(Element item) {
|
||||
List<Element> results = item.getChildren(LINKID_ELEMENT)
|
||||
List<Element> results = item.getChildren(ITEM_ELEMENT)
|
||||
.stream()
|
||||
.flatMap(i -> findSubItems(i).stream())
|
||||
.collect(Collectors.toList());
|
||||
|
|
Loading…
Reference in New Issue