Fixed issue where when validating with no terminology server and a value set with only an expansion (no compose), the 'inferred' code system wasn't being populated and validation was then failing on a coding with no specified code system

This commit is contained in:
Lloyd McKenzie 2021-06-01 23:35:58 -06:00
parent 552ef55ada
commit c11312de78
1 changed files with 9 additions and 0 deletions

View File

@ -488,6 +488,15 @@ public class ValueSetCheckerSimple extends ValueSetWorker implements ValueSetChe
}
}
}
} else if (valueset.hasExpansion()) {
for (ValueSetExpansionContainsComponent c: valueset.getExpansion().getContains()) {
if (c.getCode().equals(code)) {
if (sys == null)
sys = c.getSystem();
else
return null;
}
}
}
return sys;