From 7512347c40c9c131511c1d5bba669d5054fe16ff Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Sat, 1 Jun 2024 23:39:49 +1000 Subject: [PATCH] fix issue resolving contained resource --- .../main/java/org/hl7/fhir/r5/renderers/ResourceRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/ResourceRenderer.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/ResourceRenderer.java index 69dc03af7..f35b0c8f0 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/ResourceRenderer.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/ResourceRenderer.java @@ -494,7 +494,7 @@ public abstract class ResourceRenderer extends DataRenderer { if (url.startsWith("#") && res != null) { for (ResourceWrapper r : res.getContained()) { if (r.getId().equals(url.substring(1))) - return new ResourceWithReference(ResourceReferenceKind.CONTAINED, null, r); + return new ResourceWithReference(ResourceReferenceKind.CONTAINED, url, r); } return null; }