From 0c609448f4fb80fd655efc5eb20daed89e8d5987 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Tue, 15 Jun 2021 08:38:01 +1000 Subject: [PATCH] Fix rendering of slices so type on slicer is not hidden --- .../java/org/hl7/fhir/r5/conformance/ProfileUtilities.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 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 6aefc6650..222732365 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 @@ -4044,6 +4044,9 @@ public class ProfileUtilities extends TranslatingUtilities { hint = checkAdd(hint, (hasDef && element.hasSliceName() ? ": " : "")); hint = checkAdd(hint, !hasDef ? null : gt(element.getDefinitionElement())); } + if (element.hasSlicing()) { + sName = "Slices for "+sName; + } Cell left = gen.new Cell(null, ref, sName, hint, null); row.getCells().add(left); return left; @@ -4102,9 +4105,7 @@ public class ProfileUtilities extends TranslatingUtilities { } } else { res.add(genCardinality(gen, element, row, hasDef, used, null)); - if (element.hasSlicing()) - res.add(addCell(row, gen.new Cell(null, corePath+"profiling.html#slicing", "(Slice Definition)", null, null))); - else if (hasDef && !"0".equals(element.getMax()) && typesRow == null) + if (hasDef && !"0".equals(element.getMax()) && typesRow == null) res.add(genTypes(gen, row, element, profileBaseFileName, profile, corePath, imagePath, root, mustSupport)); else res.add(addCell(row, gen.new Cell()));