From 1b86b29d1fbf6f26f4c3399cadcef2abc02ea6ce Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Sat, 18 Feb 2023 15:13:37 +1100 Subject: [PATCH] fix bug caused by changing DiagnosticReport.conclusion to markdown --- .../org/hl7/fhir/r5/renderers/DiagnosticReportRenderer.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/DiagnosticReportRenderer.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/DiagnosticReportRenderer.java index 863395783..13680d5aa 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/DiagnosticReportRenderer.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/DiagnosticReportRenderer.java @@ -125,7 +125,11 @@ public class DiagnosticReportRenderer extends ResourceRenderer { pw = getProperty(dr, "conclusion"); if (valued(pw)) { - render(x.para(), pw.value()); + if (pw.fhirType().equals("markdown")) { + render(x, pw.value()); + } else { + render(x.para(), pw.value()); + } } pw = getProperty(dr, "conclusionCode");