
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
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionegt(Enumeration<? extends Enum> value) protected StringformatPhrase(String theMessage, Object... theMessageArguments) voidgenStandardsStatus(org.hl7.fhir.utilities.xhtml.XhtmlNode td, org.hl7.fhir.utilities.StandardsStatus ss) protected StringgetTranslatedCode(ResourceWrapper child) org.hl7.fhir.utilities.xhtml.XhtmlNodemarkBoilerplate(org.hl7.fhir.utilities.xhtml.XhtmlNode x) org.hl7.fhir.utilities.xhtml.XhtmlNodemarkGenerated(org.hl7.fhir.utilities.xhtml.XhtmlNode x) protected org.hl7.fhir.utilities.xhtml.XhtmlNoderenderStatus(Base b, org.hl7.fhir.utilities.xhtml.XhtmlNode x) protected org.hl7.fhir.utilities.xhtml.XhtmlNoderenderStatusDiv(Base b, org.hl7.fhir.utilities.xhtml.XhtmlNode x) protected org.hl7.fhir.utilities.xhtml.XhtmlNoderenderStatusRow(Base b, org.hl7.fhir.utilities.xhtml.XhtmlNode tbl, org.hl7.fhir.utilities.xhtml.XhtmlNode tr) static booleanrenderStatusSummary(RenderingContext context, Base base, org.hl7.fhir.utilities.xhtml.XhtmlNode x, String version, String... metadataFields) return true if there's any actual changesorg.hl7.fhir.utilities.xhtml.XhtmlNodespanIfTracking(org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper v) toStr(int value) protected ResourceWrapperprotected ResourceWrapperprotected ResourceWrapperwrapWC(ResourceWrapper resource, DataType type) org.hl7.fhir.utilities.xhtml.XhtmlNodexlinkNarrative(org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper type)
-
Field Details
-
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 boolean renderStatusSummary(RenderingContext context, Base base, org.hl7.fhir.utilities.xhtml.XhtmlNode x, String version, String... metadataFields) return true if there's any actual changes- Parameters:
context-base-x-version-metadataFields-- Returns:
-
egt
-
toStr
-
toStr
-
wrapNC
-
wrap
-
wrapWC
-
getTranslatedCode
-
xlinkNarrative
public org.hl7.fhir.utilities.xhtml.XhtmlNode xlinkNarrative(org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper type) -
markBoilerplate
public org.hl7.fhir.utilities.xhtml.XhtmlNode markBoilerplate(org.hl7.fhir.utilities.xhtml.XhtmlNode x) -
markGenerated
public org.hl7.fhir.utilities.xhtml.XhtmlNode markGenerated(org.hl7.fhir.utilities.xhtml.XhtmlNode x) -
spanIfTracking
public org.hl7.fhir.utilities.xhtml.XhtmlNode spanIfTracking(org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper v)
-