Added missing propagation of QuestionnaireResponse root element

This commit is contained in:
Matti Uusitalo 2018-11-27 10:38:03 +02:00
parent ab484c9819
commit a9c625365d
1 changed files with 1 additions and 1 deletions

View File

@ -2785,7 +2785,7 @@ public class InstanceValidator extends BaseValidator implements IResourceValidat
List<Element> mapItem = map.get(qItem.getLinkId());
if (mapItem != null){
rule(errors, IssueType.INVALID, element.line(), element.col(), stack.getLiteralPath(), myEnableWhenEvaluator.isQuestionEnabled(qItem, questionnaireResponseRoot), "Item has answer, even though it is not enabled "+qItem.getLinkId());
validateQuestionannaireResponseItem(qsrc, qItem, errors, mapItem, stack, inProgress, null);
validateQuestionannaireResponseItem(qsrc, qItem, errors, mapItem, stack, inProgress, questionnaireResponseRoot);
} else {
//item is missing, is the question enabled?
if (myEnableWhenEvaluator.isQuestionEnabled(qItem, questionnaireResponseRoot)) {