mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-03-02 01:19:14 +00:00
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:
parent
552ef55ada
commit
c11312de78
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user