From 2edc09d297d35113f5b7e1e383b029f9210bc38b Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Tue, 25 Feb 2020 08:10:57 +1100 Subject: [PATCH] calculate URL when possible --- .../main/java/org/hl7/fhir/utilities/cache/PackageClient.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/cache/PackageClient.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/cache/PackageClient.java index 220a1bb40..df04013bb 100644 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/cache/PackageClient.java +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/cache/PackageClient.java @@ -38,6 +38,9 @@ public class PackageClient { this.fhirVersion = fhirVersion; this.description = description; this.url = url; + if (url == null && id != null && version != null) { + url = Utilities.pathURL(address, id, version); + } this.canonical = canonical; } public String getId() {