From 9b2917e3e78038ef85c6e11755787561a98d7a89 Mon Sep 17 00:00:00 2001 From: Oliver Egger Date: Sat, 21 Dec 2019 22:22:32 +0100 Subject: [PATCH] reference should return string --- .../main/java/org/hl7/fhir/r5/utils/StructureMapUtilities.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/StructureMapUtilities.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/StructureMapUtilities.java index 01862546f..11827832b 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/StructureMapUtilities.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/StructureMapUtilities.java @@ -1922,7 +1922,7 @@ public class StructureMapUtilities { id = UUID.randomUUID().toString().toLowerCase(); b.setIdBase(id); } - return new Reference().setReference(b.fhirType()+"/"+id); + return new StringType(b.fhirType()+"/"+id); } case DATEOP : throw new Error("Rule \""+ruleId+"\": Transform "+tgt.getTransform().toCode()+" not supported yet");