fix value set validation for primitive types when an expansion is provided, and the code system is not known

This commit is contained in:
Grahame Grieve 2020-09-17 15:42:45 +10:00
parent 2e7e277c97
commit 9d22337929
1 changed files with 3 additions and 0 deletions

View File

@ -164,6 +164,9 @@ public class ValueSetCheckerSimple implements ValueSetChecker {
throw new FHIRException("Unable to evaluate based on empty code system"); throw new FHIRException("Unable to evaluate based on empty code system");
} }
res = validateCode(code, cs); 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 { } else {
// well, we didn't find a code system - try the expansion? // well, we didn't find a code system - try the expansion?
// disabled waiting for discussion // disabled waiting for discussion