Suppress display when generating narrative for code systems if display is always the same as the code

This commit is contained in:
Grahame Grieve 2022-09-15 08:59:18 +02:00
parent f4aed6f2a2
commit 03722bf782
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ public class CodeSystemRenderer extends TerminologyRenderer {
} }
private boolean conceptsHaveDisplay(ConceptDefinitionComponent c) { private boolean conceptsHaveDisplay(ConceptDefinitionComponent c) {
if (c.hasDisplay()) if (c.hasDisplay() && !c.getDisplay().equals(c.getCode()))
return true; return true;
for (ConceptDefinitionComponent g : c.getConcept()) for (ConceptDefinitionComponent g : c.getConcept())
if (conceptsHaveDisplay(g)) if (conceptsHaveDisplay(g))