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…
Reference in New Issue