Handle missing terminology server better

This commit is contained in:
Grahame Grieve 2020-03-03 07:39:41 +11:00
parent d6018f26c8
commit 4bc81c0e0c

View File

@ -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);