From 6d2e2075c934c4088c60c43daf6a0bf3f2dd7b1e Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Tue, 29 Jan 2019 21:46:02 +1100 Subject: [PATCH] fix bug validating unknown code system --- .../hl7/fhir/r4/context/BaseWorkerContext.java | 3 ++- r4 test resources.lnk | Bin 0 -> 1683 bytes validation test resources.lnk | Bin 0 -> 1757 bytes 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 r4 test resources.lnk create mode 100644 validation test resources.lnk diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/context/BaseWorkerContext.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/context/BaseWorkerContext.java index e2fdf9c86..cee43d1ff 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/context/BaseWorkerContext.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/context/BaseWorkerContext.java @@ -39,6 +39,7 @@ import org.hl7.fhir.r4.conformance.ProfileUtilities; import org.hl7.fhir.r4.context.TerminologyCache.CacheToken; import org.hl7.fhir.r4.model.BooleanType; import org.hl7.fhir.r4.model.CodeSystem; +import org.hl7.fhir.r4.model.CodeSystem.CodeSystemContentMode; import org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionComponent; import org.hl7.fhir.r4.model.CodeableConcept; import org.hl7.fhir.r4.model.Coding; @@ -285,7 +286,7 @@ public abstract class BaseWorkerContext implements IWorkerContext { @Override public boolean supportsSystem(String system) throws TerminologyServiceException { synchronized (lock) { - if (codeSystems.containsKey(system)) + if (codeSystems.containsKey(system) && codeSystems.get(system).getContent() != CodeSystemContentMode.NOTPRESENT) return true; else if (supportedCodeSystems.contains(system)) return true; diff --git a/r4 test resources.lnk b/r4 test resources.lnk new file mode 100644 index 0000000000000000000000000000000000000000..9a6787c01a59be073a6ab99ef19689882dbf1cab GIT binary patch literal 1683 zcmc&!ZAg<*6h2Ootf<#qVWPPtKcbuy%%!!O&X2X$JK0nUU%|BxH*>x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