From 50d7e0e879508e073516fa656170a6f12f4a0116 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Wed, 22 Apr 2020 16:44:13 +1000 Subject: [PATCH] Suppress errors associated with http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version in R4 --- .../org/hl7/fhir/validation/instance/InstanceValidator.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/InstanceValidator.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/InstanceValidator.java index 4720ed306..c78a161f8 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/InstanceValidator.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/InstanceValidator.java @@ -1613,6 +1613,9 @@ public class InstanceValidator extends BaseValidator implements IResourceValidat if ("http://hl7.org/fhir/StructureDefinition/regex".equals(extUrl)) { list.get(1).setExpression("ElementDefinition.type"); } + if ("http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version".equals(extUrl)) { + list.get(0).setExpression("Element"); // well, it can't be used anywhere but the list of places it can be used is quite long + } return list; }