Handle missing terminology server better

This commit is contained in:
Grahame Grieve 2020-03-03 07:39:41 +11:00
parent d6018f26c8
commit 4bc81c0e0c
1 changed files with 6 additions and 1 deletions

View File

@ -669,7 +669,12 @@ public abstract class BaseWorkerContext implements IWorkerContext {
if (expParameters == null)
throw new Error("No ExpansionProfile provided");
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;
if (vs == null)
pOut = txClient.validateCS(pin);