mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-07 21:38:15 +00:00
Handle missing terminology server better
This commit is contained in:
parent
d6018f26c8
commit
4bc81c0e0c
@ -669,7 +669,12 @@ public abstract class BaseWorkerContext implements IWorkerContext {
|
|||||||
if (expParameters == null)
|
if (expParameters == null)
|
||||||
throw new Error("No ExpansionProfile provided");
|
throw new Error("No ExpansionProfile provided");
|
||||||
pin.addParameter().setName("profile").setResource(expParameters);
|
pin.addParameter().setName("profile").setResource(expParameters);
|
||||||
txLog.clearLastId();
|
if (txLog != null) {
|
||||||
|
txLog.clearLastId();
|
||||||
|
}
|
||||||
|
if (txClient == null) {
|
||||||
|
throw new FHIRException("Attempt to use Terminology server when no Terminology server is available");
|
||||||
|
}
|
||||||
Parameters pOut;
|
Parameters pOut;
|
||||||
if (vs == null)
|
if (vs == null)
|
||||||
pOut = txClient.validateCS(pin);
|
pOut = txClient.validateCS(pin);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user