diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/ResourceRenderer.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/ResourceRenderer.java index 72555c999..e1e92825d 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/ResourceRenderer.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/ResourceRenderer.java @@ -48,6 +48,12 @@ public abstract class ResourceRenderer extends DataRenderer { this.rcontext = rcontext; } + public XhtmlNode build(DomainResource dr) throws FHIRFormatError, DefinitionException, FHIRException, IOException, EOperationOutcome { + XhtmlNode x = new XhtmlNode(NodeType.Element, "div"); + render(x, dr); + return x; + + } /** * given a resource, update it's narrative with the best rendering available *