From 4aaa9b18b9c46640b6ba0f28c643be2ff6181992 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Thu, 19 Sep 2019 10:38:22 +1000 Subject: [PATCH] fix narrative generation --- .../main/java/org/hl7/fhir/r5/utils/NarrativeGenerator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/NarrativeGenerator.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/NarrativeGenerator.java index c6658828d..db49343cd 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/NarrativeGenerator.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/NarrativeGenerator.java @@ -2285,7 +2285,9 @@ public class NarrativeGenerator implements INarrativeGenerator { x.br(); CodeSystem cs = context.fetchCodeSystem("http://hl7.org/fhir/concept-map-relationship"); - String eqpath = cs.getUserString("path"); + if (cs == null) + cs = context.fetchCodeSystem("http://hl7.org/fhir/ValueSet/concept-map-equivalence"); + String eqpath = cs == null ? null : cs.getUserString("path"); for (ConceptMapGroupComponent grp : cm.getGroup()) { String src = grp.getSource();