mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-07 21:38:15 +00:00
Fix NPE processing code system supplements
This commit is contained in:
parent
9506a93056
commit
502a90263f
@ -5,6 +5,7 @@
|
||||
* Make sure all validation messages have a message id
|
||||
* Validator enforce version-set-specific value for Extension and Extension context
|
||||
* Specific Error when ValueSet.compose.include.system refers to a ValueSet
|
||||
* Fix NPE processing code system supplements
|
||||
|
||||
## Other code changes
|
||||
|
||||
|
@ -1966,20 +1966,27 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte
|
||||
cache = checkAddToParams(tc, pin, cs) || cache;
|
||||
}
|
||||
for (CodeSystem supp : codeSystems.getSupplements(cs)) {
|
||||
opCtxt.seeSupplement(supp);
|
||||
if (opCtxt != null) {
|
||||
opCtxt.seeSupplement(supp);
|
||||
}
|
||||
cache = checkAddToParams(tc, pin, supp) || cache;
|
||||
}
|
||||
if (sys != null) {
|
||||
// we also have to look at this by version because the resource might not be versioned or we might not have a copy
|
||||
for (CodeSystem supp : codeSystems.getSupplements(sys)) {
|
||||
opCtxt.seeSupplement(supp);
|
||||
|
||||
if (opCtxt != null) {
|
||||
opCtxt.seeSupplement(supp);
|
||||
}
|
||||
cache = checkAddToParams(tc, pin, supp) || cache;
|
||||
}
|
||||
if (!sys.contains("!")) {
|
||||
sys = getFixedVersion(sys, pin);
|
||||
if (sys != null) {
|
||||
for (CodeSystem supp : codeSystems.getSupplements(sys)) {
|
||||
opCtxt.seeSupplement(supp);
|
||||
if (opCtxt != null) {
|
||||
opCtxt.seeSupplement(supp);
|
||||
}
|
||||
cache = checkAddToParams(tc, pin, supp) || cache;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user