From 24b0cc2ee414fcfc6b85c96f702b775fd09ad070 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Sat, 6 May 2023 00:55:50 -0500 Subject: [PATCH] Fixes for kindling --- .../client/TerminologyClientContext.java | 16 ++++++++-------- .../terminologies/providers/URICodeSystem.java | 11 +++++------ 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/client/TerminologyClientContext.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/client/TerminologyClientContext.java index 0e20b83fd..9133fe9be 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/client/TerminologyClientContext.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/client/TerminologyClientContext.java @@ -10,7 +10,7 @@ public class TerminologyClientContext { private boolean isTxCaching; private int serverQueryCount = 0; private final Set cached = new HashSet<>(); -// protected String tsServer; + protected String server; private ITerminologyClient client; private TerminologyCapabilities txcaps; @@ -42,13 +42,13 @@ public class TerminologyClientContext { return cached; } -// public String getTsServer() { -// return tsServer; -// } -// -// public void setTsServer(String tsServer) { -// this.tsServer = tsServer; -// } + public String getServer() { + return server; + } + + public void setServer(String server) { + this.server = server; + } public ITerminologyClient getClient() { return client; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/providers/URICodeSystem.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/providers/URICodeSystem.java index fe073698e..8deb9897e 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/providers/URICodeSystem.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/providers/URICodeSystem.java @@ -8,12 +8,11 @@ public class URICodeSystem extends SpecialCodeSystem { @Override public ConceptDefinitionComponent findConcept(Coding code) { - throw new Error("This is used"); -// if (Utilities.isAbsoluteUrl(code.getCode())) { -// return new ConceptDefinitionComponent(code.getCode()); -// } else { -// return null; -// } + if (Utilities.isAbsoluteUrl(code.getCode())) { + return new ConceptDefinitionComponent(code.getCode()); + } else { + return null; + } } } \ No newline at end of file