Package org.hl7.fhir.r5.renderers
Class Renderer
java.lang.Object
org.hl7.fhir.r5.renderers.Renderer
- Direct Known Subclasses:
DataRenderer
,ObligationsRenderer
Rendering framework:
* boolean render(DomainResource) : produce an HTML representation suitable for runtime / documentation, and insert it into the resource. Return true of any extensions encountered
* boolean render(XhtmlNode, Resource: produce an HTML representation, and fill out the provided node with it. Return true of any extensions encountered
* XhtmlNode build(DomainResource): same as render(DomainResource) but also return the XHtmlNode
* String display(Base) : produce a plan text concise representation that serves to describe the resource
* void display(XhtmlNode, Base) : produce a plan text concise representation that serves to describe the resource
* void describe(XhtmlNode, Resource) : produce a short summary of the resource with key details presented (potentially more verbose than display, but still suitable for a single line)
if not specific code for rendering a resource has been provided, and there's no liquid script to guide it, a generic rendering based onthe profile will be performed
- Author:
- graha
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionegt
(Enumeration<? extends Enum> value) protected String
formatPhrase
(String theMessage, Object... theMessageArguments) void
genStandardsStatus
(org.hl7.fhir.utilities.xhtml.XhtmlNode td, org.hl7.fhir.utilities.StandardsStatus ss) protected String
getTranslatedCode
(ResourceWrapper child) protected org.hl7.fhir.utilities.xhtml.XhtmlNode
renderStatus
(Base b, org.hl7.fhir.utilities.xhtml.XhtmlNode x) protected org.hl7.fhir.utilities.xhtml.XhtmlNode
renderStatusDiv
(Base b, org.hl7.fhir.utilities.xhtml.XhtmlNode x) protected org.hl7.fhir.utilities.xhtml.XhtmlNode
renderStatusRow
(Base b, org.hl7.fhir.utilities.xhtml.XhtmlNode tbl, org.hl7.fhir.utilities.xhtml.XhtmlNode tr) static void
renderStatusSummary
(RenderingContext context, Base base, org.hl7.fhir.utilities.xhtml.XhtmlNode x, String version, String... metadataFields) toStr
(int value) protected ResourceWrapper
protected ResourceWrapper
protected ResourceWrapper
wrapWC
(ResourceWrapper resource, DataType type)
-
Field Details
-
DEBUG
- See Also:
-
context
-
-
Constructor Details
-
Renderer
-
Renderer
-
-
Method Details
-
formatPhrase
-
genStandardsStatus
public void genStandardsStatus(org.hl7.fhir.utilities.xhtml.XhtmlNode td, org.hl7.fhir.utilities.StandardsStatus ss) -
renderStatus
protected org.hl7.fhir.utilities.xhtml.XhtmlNode renderStatus(Base b, org.hl7.fhir.utilities.xhtml.XhtmlNode x) -
renderStatusDiv
protected org.hl7.fhir.utilities.xhtml.XhtmlNode renderStatusDiv(Base b, org.hl7.fhir.utilities.xhtml.XhtmlNode x) -
renderStatusRow
protected org.hl7.fhir.utilities.xhtml.XhtmlNode renderStatusRow(Base b, org.hl7.fhir.utilities.xhtml.XhtmlNode tbl, org.hl7.fhir.utilities.xhtml.XhtmlNode tr) -
renderStatusSummary
public static void renderStatusSummary(RenderingContext context, Base base, org.hl7.fhir.utilities.xhtml.XhtmlNode x, String version, String... metadataFields) -
egt
-
toStr
-
toStr
-
wrapNC
-
wrap
-
wrapWC
-
getTranslatedCode
-