From 8f838d164f099840d1d205d80bdee92484e65ab2 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Wed, 10 Jun 2020 22:08:04 +1000 Subject: [PATCH] fix bug with category --- .../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 f14ebd14d..665bc9c45 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 @@ -48,7 +48,11 @@ public class DiagnosticReportRenderer extends ResourceRenderer { PropertyWrapper pw = getProperty(dr, "category"); if (valued(pw)) { h2.tx("("); - render(h2, pw.value()); + boolean first = true; + for (BaseWrapper b : pw.getValues()) { + if (first) first = false; else h2.tx(", "); + render(h2, b); + } h2.tx(") "); } if (dr.has("issued")) {