From 03722bf7826a77e6d0593bedf5c260fa946b013c Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Thu, 15 Sep 2022 08:59:18 +0200 Subject: [PATCH] Suppress display when generating narrative for code systems if display is always the same as the code --- .../main/java/org/hl7/fhir/r5/renderers/CodeSystemRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/CodeSystemRenderer.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/CodeSystemRenderer.java index 55151f29d..c1f3299a8 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/CodeSystemRenderer.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/CodeSystemRenderer.java @@ -284,7 +284,7 @@ public class CodeSystemRenderer extends TerminologyRenderer { } private boolean conceptsHaveDisplay(ConceptDefinitionComponent c) { - if (c.hasDisplay()) + if (c.hasDisplay() && !c.getDisplay().equals(c.getCode())) return true; for (ConceptDefinitionComponent g : c.getConcept()) if (conceptsHaveDisplay(g))