From 9d223379299020c071b4ba10ebce9794158c622c Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Thu, 17 Sep 2020 15:42:45 +1000 Subject: [PATCH] fix value set validation for primitive types when an expansion is provided, and the code system is not known --- .../org/hl7/fhir/r5/terminologies/ValueSetCheckerSimple.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/ValueSetCheckerSimple.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/ValueSetCheckerSimple.java index e8f89e701..cbb70ea89 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/ValueSetCheckerSimple.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/ValueSetCheckerSimple.java @@ -164,6 +164,9 @@ public class ValueSetCheckerSimple implements ValueSetChecker { throw new FHIRException("Unable to evaluate based on empty code system"); } res = validateCode(code, cs); + } else if (cs == null && valueset.hasExpansion() && inExpansion) { + // we just take the value set as face value then + res = new ValidationResult(IssueSeverity.INFORMATION, null); } else { // well, we didn't find a code system - try the expansion? // disabled waiting for discussion