From 25103f3653d6c1dd4ec8581b6dcffd2edb55c229 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Fri, 13 Nov 2020 14:43:11 +1100 Subject: [PATCH] * fix case problem with icons in questionnaire rendering --- .../java/org/hl7/fhir/r5/renderers/QuestionnaireRenderer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/QuestionnaireRenderer.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/QuestionnaireRenderer.java index 5d0d4a1ad..ead0cf012 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/QuestionnaireRenderer.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/QuestionnaireRenderer.java @@ -142,7 +142,7 @@ public class QuestionnaireRenderer extends TerminologyRenderer { rows.add(r); boolean hasExt = false; - r.setIcon("icon-q-"+i.getType().toCode()+".png", i.getType().getDisplay()); + r.setIcon("icon-q-"+i.getType().toCode().toLowerCase()+".png", i.getType().getDisplay()); r.getCells().add(gen.new Cell(null, context.getDefinitionsTarget() == null ? "" : context.getDefinitionsTarget()+"#item."+i.getLinkId(), i.getLinkId(), null, null)); String txt = (i.hasPrefix() ? i.getPrefix() + ". " : "") + i.getText(); r.getCells().add(gen.new Cell(null, null, txt, null, null)); @@ -361,7 +361,7 @@ public class QuestionnaireRenderer extends TerminologyRenderer { rows.add(r); boolean hasExt = false; - r.setIcon("icon-q-"+i.getType().toCode()+".png", i.getType().getDisplay()); + r.setIcon("icon-q-"+i.getType().toCode().toLowerCase()+".png", i.getType().getDisplay()); r.getCells().add(gen.new Cell(null, context.getDefinitionsTarget() == null ? "" : context.getDefinitionsTarget()+"#item."+i.getLinkId(), i.getLinkId(), null, null)); Cell defn = gen.new Cell(); r.getCells().add(defn);