From 86e84a024a4e983664f0a5896437f5ae07519f36 Mon Sep 17 00:00:00 2001 From: Oliver Egger Date: Wed, 30 Oct 2019 14:50:45 +0100 Subject: [PATCH] validator support for absolute type definitions --- .../java/org/hl7/fhir/r5/validation/InstanceValidator.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/r5/validation/InstanceValidator.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/r5/validation/InstanceValidator.java index d9aabc531..fbab508a9 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/r5/validation/InstanceValidator.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/r5/validation/InstanceValidator.java @@ -3989,7 +3989,11 @@ private boolean isAnswerRequirementFulfilled(QuestionnaireItemComponent qItem, L if (childDefinitions.isEmpty()) { if (actualType == null) return; // there'll be an error elsewhere in this case, and we're going to stop. - StructureDefinition dt = this.context.fetchResource(StructureDefinition.class, "http://hl7.org/fhir/StructureDefinition/" + actualType); + StructureDefinition dt = null; + if (isAbsolute(actualType)) + dt = this.context.fetchResource(StructureDefinition.class, actualType); + else + dt = this.context.fetchResource(StructureDefinition.class, "http://hl7.org/fhir/StructureDefinition/" + actualType); if (dt == null) throw new DefinitionException("Unable to resolve actual type " + actualType);