From cdbca15a7ae2e9661f977ef4ba2ddeb9433aefdb Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Wed, 24 Feb 2021 15:03:03 +1100 Subject: [PATCH] Issue #441 - problem with value set validation when value set doesn't have a version --- .../main/java/org/hl7/fhir/r5/context/BaseWorkerContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/BaseWorkerContext.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/BaseWorkerContext.java index b7d506839..4826c9e85 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/BaseWorkerContext.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/BaseWorkerContext.java @@ -978,7 +978,7 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte } if (vs != null) { if (isTxCaching && cacheId != null && cached.contains(vs.getUrl()+"|"+vs.getVersion())) { - pin.addParameter().setName("url").setValue(new UriType(vs.getUrl()+"|"+vs.getVersion())); + pin.addParameter().setName("url").setValue(new UriType(vs.getUrl()+(vs.hasVersion() ? "|"+vs.getVersion() : ""))); } else { pin.addParameter().setName("valueSet").setResource(vs); cached.add(vs.getUrl()+"|"+vs.getVersion());