From a736979d09f97ce23166a8caa47a967281437c41 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Wed, 8 Mar 2023 09:10:52 +1100 Subject: [PATCH] fix patch urls with regard to contentReference --- .../org/hl7/fhir/convertors/loaders/loaderR5/BaseLoaderR5.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/BaseLoaderR5.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/BaseLoaderR5.java index 938fbf3bb..65b1ab300 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/BaseLoaderR5.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/BaseLoaderR5.java @@ -170,6 +170,9 @@ public abstract class BaseLoaderR5 implements IContextResourceLoader { if (ed.hasBinding()) { ed.getBinding().setValueSet(patchUrl(ed.getBinding().getValueSet(), "ValueSet")); } + if (ed.hasContentReference()) { + ed.setContentReference(patchUrl(ed.getContentReference(), "StructureDefinition")); + } } }