From fe188da8bdc6df074b37551ec5cba14739af3e97 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Fri, 6 Mar 2020 16:14:00 +1100 Subject: [PATCH] fix rendering of slicing in profiles --- .../java/org/hl7/fhir/r5/conformance/ProfileUtilities.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/ProfileUtilities.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/ProfileUtilities.java index a467929b7..7813013a9 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/ProfileUtilities.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/ProfileUtilities.java @@ -3329,8 +3329,10 @@ public class ProfileUtilities extends TranslatingUtilities { s = "@"+s; String hint = ""; hint = checkAdd(hint, (element.hasSliceName() ? translate("sd.table", "Slice")+" "+element.getSliceName() : "")); - hint = checkAdd(hint, (hasDef && element.hasSliceName() ? ": " : "")); - hint = checkAdd(hint, !hasDef ? null : gt(element.getDefinitionElement())); + if (hasDef && element.hasDefinition()) { + hint = checkAdd(hint, (hasDef && element.hasSliceName() ? ": " : "")); + hint = checkAdd(hint, !hasDef ? null : gt(element.getDefinitionElement())); + } Cell left = gen.new Cell(null, ref, s, hint, null); row.getCells().add(left); Cell gc = gen.new Cell();