From 97f4de553a5abb25f1b9f0c5a202f67d8bcf72fe Mon Sep 17 00:00:00 2001 From: Ken Stevens Date: Wed, 30 Oct 2019 15:24:43 -0400 Subject: [PATCH] fix test. this is better --- hapi-fhir-base/src/main/java/ca/uhn/fhir/util/MetaUtil.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/util/MetaUtil.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/util/MetaUtil.java index 9d20c195c57..fb438fef49f 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/util/MetaUtil.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/util/MetaUtil.java @@ -26,10 +26,14 @@ import ca.uhn.fhir.context.FhirContext; import ca.uhn.fhir.context.FhirVersionEnum; import ca.uhn.fhir.rest.api.Constants; import org.hl7.fhir.instance.model.api.*; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import java.util.List; + public class MetaUtil { + private static final Logger ourLog = LoggerFactory.getLogger(MetaUtil.class); private MetaUtil() { // non-instantiable @@ -91,6 +95,8 @@ public class MetaUtil { IPrimitiveType value = (IPrimitiveType) theContext.getElementDefinition("uri").newInstance(); value.setValue(theValue); sourceExtension.setValue(value); + } else { + ourLog.error(MetaUtil.class.getSimpleName() + ".setSource() not supported on FHIR Version " + theContext.getVersion().getVersion()); } }