From 2f3ac9d7340263488284d8f0f90fc594688f721b Mon Sep 17 00:00:00 2001 From: patrick-werner Date: Sat, 30 Mar 2019 15:21:01 +0100 Subject: [PATCH] added missing method --- .../hapi/validation/ValidationSupportChain.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hapi-fhir-validation/src/main/java/org/hl7/fhir/dstu3/hapi/validation/ValidationSupportChain.java b/hapi-fhir-validation/src/main/java/org/hl7/fhir/dstu3/hapi/validation/ValidationSupportChain.java index c4a87b4f8d5..1d7fb84585b 100644 --- a/hapi-fhir-validation/src/main/java/org/hl7/fhir/dstu3/hapi/validation/ValidationSupportChain.java +++ b/hapi-fhir-validation/src/main/java/org/hl7/fhir/dstu3/hapi/validation/ValidationSupportChain.java @@ -5,6 +5,7 @@ import org.hl7.fhir.dstu3.hapi.ctx.IValidationSupport; import org.hl7.fhir.dstu3.model.CodeSystem; import org.hl7.fhir.dstu3.model.StructureDefinition; import org.hl7.fhir.dstu3.model.UriType; +import org.hl7.fhir.dstu3.model.ValueSet; import org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent; import org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent; import org.hl7.fhir.instance.model.api.IBaseResource; @@ -101,6 +102,17 @@ public class ValidationSupportChain implements IValidationSupport { return null; } + @Override + public ValueSet fetchValueSet(FhirContext theCtx, String uri) { + for (IValidationSupport next : myChain) { + ValueSet retVal = next.fetchValueSet(theCtx, uri); + if (retVal != null) { + return retVal; + } + } + return null; + } + @Override public T fetchResource(FhirContext theContext, Class theClass, String theUri) { for (IValidationSupport next : myChain) {