From 01430d8d988888b1e07763c2322709d72b6a8307 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Thu, 5 Nov 2020 14:11:54 +1100 Subject: [PATCH] fix parameters renderer to create proper anchors --- .../org/hl7/fhir/r5/renderers/ParametersRenderer.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/ParametersRenderer.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/ParametersRenderer.java index d6fcf528e..571e7fa57 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/ParametersRenderer.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/ParametersRenderer.java @@ -118,8 +118,13 @@ public class ParametersRenderer extends ResourceRenderer { if (p.hasValue()) { render(tr.td(), p.getValue()); } else if (p.hasResource()) { - ResourceRenderer rr = RendererFactory.factory(p.getResource(), context); - rr.render(tr.td(), p.getResource()); + Resource r = p.getResource(); + td = tr.td(); + XhtmlNode para = td.para(); + para.tx(r.fhirType()+"/"+r.getId()); + para.an(r.fhirType()+"_"+r.getId()).tx(" "); + ResourceRenderer rr = RendererFactory.factory(r, context); + rr.render(td, r); } else if (p.hasPart()) { tr.td(); params(tbl, p.getPart(), 1);