From e4292f6830070d31d4a0817e742170d9158be851 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Mon, 18 May 2020 06:18:49 +1000 Subject: [PATCH] fix rendering of exclusions --- .../java/org/hl7/fhir/r5/renderers/ValueSetRenderer.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/ValueSetRenderer.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/ValueSetRenderer.java index 24754790a..4f40913f8 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/ValueSetRenderer.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/ValueSetRenderer.java @@ -687,8 +687,13 @@ public class ValueSetRenderer extends TerminologyRenderer { for (ConceptSetComponent inc : vs.getCompose().getInclude()) { hasExtensions = genInclude(ul, inc, "Include", langs, maps) || hasExtensions; } - for (ConceptSetComponent exc : vs.getCompose().getExclude()) { - hasExtensions = genInclude(ul, exc, "Exclude", langs, maps) || hasExtensions; + if (vs.getCompose().hasExclude()) { + p = x.para(); + p.tx("This value set excludes codes based on the following rules:"); + ul = x.ul(); + for (ConceptSetComponent exc : vs.getCompose().getExclude()) { + hasExtensions = genInclude(ul, exc, "Exclude", langs, maps) || hasExtensions; + } } }