diff --git a/hapi-fhir-validation/src/main/java/org/hl7/fhir/r4/validation/InstanceValidator.java b/hapi-fhir-validation/src/main/java/org/hl7/fhir/r4/validation/InstanceValidator.java index 460fc105268..3eb2a573a7a 100644 --- a/hapi-fhir-validation/src/main/java/org/hl7/fhir/r4/validation/InstanceValidator.java +++ b/hapi-fhir-validation/src/main/java/org/hl7/fhir/r4/validation/InstanceValidator.java @@ -2785,7 +2785,7 @@ public class InstanceValidator extends BaseValidator implements IResourceValidat List 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)) {