diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ElementDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ElementDefinition.java index 3d365914f..c2e96faa6 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ElementDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ElementDefinition.java @@ -2336,7 +2336,7 @@ public class ElementDefinition extends BackboneType implements ICompositeType { if (hasTargetProfile()) { res = res + "->("; boolean first = true; - for (CanonicalType s : getProfile()) { + for (CanonicalType s : getTargetProfile()) { if (first) first = false; else res = res + "|"; res = res + s.getValue(); }