Suppress display when generating narrative for code systems if display is always the same as the code
This commit is contained in:
parent
f4aed6f2a2
commit
03722bf782
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue