
Package org.hl7.fhir.r5.renderers
Class DataRenderer
java.lang.Object
org.hl7.fhir.utilities.TranslatingUtilities
org.hl7.fhir.r5.utils.TranslatingUtilities
org.hl7.fhir.r5.renderers.Renderer
org.hl7.fhir.r5.renderers.DataRenderer
- All Implemented Interfaces:
CodeResolver
- Direct Known Subclasses:
ResourceRenderer
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hl7.fhir.r5.utils.TranslatingUtilities
TranslatingUtilities.TranslationServices
Nested classes/interfaces inherited from interface org.hl7.fhir.r5.renderers.CodeResolver
CodeResolver.CodeResolution
-
Field Summary
Fields inherited from class org.hl7.fhir.r5.renderers.Renderer
context, RENDER_BUNDLE_DOCUMENT_CONTENT, RENDER_BUNDLE_ETAG, RENDER_BUNDLE_HEADER_DOC_ENTRY_RD, RENDER_BUNDLE_HEADER_DOC_ENTRY_U, RENDER_BUNDLE_HEADER_DOC_ENTRY_URD, RENDER_BUNDLE_HEADER_ENTRY, RENDER_BUNDLE_HEADER_ENTRY_URL, RENDER_BUNDLE_HEADER_ROOT, RENDER_BUNDLE_IF_MATCH, RENDER_BUNDLE_IF_MOD, RENDER_BUNDLE_IF_NON_MATCH, RENDER_BUNDLE_IF_NONE, RENDER_BUNDLE_LAST_MOD, RENDER_BUNDLE_LOCATION, RENDER_BUNDLE_REQUEST, RENDER_BUNDLE_RESOURCE, RENDER_BUNDLE_RESPONSE, RENDER_BUNDLE_SEARCH, RENDER_BUNDLE_SEARCH_MODE, RENDER_BUNDLE_SEARCH_SCORE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addMarkdown
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, String text) protected void
addMarkdown
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, String text, String path) protected void
addTelecom
(org.hl7.fhir.utilities.xhtml.XhtmlNode p, ContactPoint c) protected String
describeLang
(String lang) static String
describeSystem
(String system) static String
describeVersion
(String version) static String
display
(IWorkerContext context, DataType type) displayBase
(Base b) displayCoding
(List<Coding> list) static String
displayContactPoint
(ContactPoint contact) protected void
displayContactPoint
(org.hl7.fhir.utilities.xhtml.XhtmlNode p, ContactPoint c) static String
displayHumanName
(HumanName name) protected String
displaySystem
(String system) protected String
getLinkForCode
(String system, String version, String code) protected String
getLocalizedBigDecimalValue
(BigDecimal input, Currency c) gt
(PrimitiveType value) boolean
hasRenderableExtensions
(BackboneType element) boolean
hasRenderableExtensions
(DataType element) protected String
makeAnchor
(String codeSystem, String code) org.hl7.fhir.utilities.xhtml.XhtmlNode
makeExceptionXhtml
(Exception e, String function) static String
processRelativeUrls
(String markdown, String path) void
void
render
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, BaseWrappers.BaseWrapper type) protected void
renderAddress
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Address address) protected void
renderAnnotation
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Annotation annot) protected void
renderAnnotation
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Annotation a, boolean showCodeDetails) void
renderBase
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Base b) protected void
renderCodeableConcept
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, CodeableConcept cc) protected void
renderCodeableConcept
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, CodeableConcept cc, boolean showCodeDetails) protected void
renderCodeableReference
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, CodeableReference e, boolean showCodeDetails) protected void
renderCoding
(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, List<org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Piece> pieces, Coding c) protected void
renderCoding
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Coding c) protected void
renderCoding
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Coding c, boolean showCodeDetails) protected void
renderCodingWithDetails
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Coding c) protected void
renderContactPoint
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, ContactPoint contact) void
renderDataRequirement
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, DataRequirement dr) void
renderDate
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Base e) void
renderDateTime
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, String s) void
renderDateTime
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Base e) protected void
renderExpression
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Expression expr) void
renderExtensionsInList
(org.hl7.fhir.utilities.xhtml.XhtmlNode ul, BackboneType element) void
renderExtensionsInList
(org.hl7.fhir.utilities.xhtml.XhtmlNode div, BackboneType element, String sep) void
renderExtensionsInList
(org.hl7.fhir.utilities.xhtml.XhtmlNode ul, DataType element) void
renderExtensionsInText
(org.hl7.fhir.utilities.xhtml.XhtmlNode div, DataType element, String sep) protected void
renderHumanName
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, HumanName name) protected void
renderIdentifier
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Identifier ii) protected void
renderMoney
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Money money) void
renderPeriod
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Period p) protected void
renderQuantity
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Quantity q) protected void
renderQuantity
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Quantity q, boolean showCodeDetails) protected void
renderRange
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Range q) protected void
renderSampledData
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, SampledData sampledData) protected void
renderTiming
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Timing s) protected void
protected void
renderUri
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, UriType uri, String path, String id, Resource src) resolveCode
(String system, String code) resolveCode
(CodeableConcept code) protected void
smartAddText
(org.hl7.fhir.utilities.xhtml.XhtmlNode p, String text) protected String
systemFromCanonical
(String system) protected String
protected String
versionFromCanonical
(String system) Methods inherited from class org.hl7.fhir.r5.renderers.Renderer
formatMessage, genStandardsStatus
Methods inherited from class org.hl7.fhir.r5.utils.TranslatingUtilities
egt
Methods inherited from class org.hl7.fhir.utilities.TranslatingUtilities
getTranslator, hasTranslator, setTranslator, toStr, toStr, translate
-
Constructor Details
-
DataRenderer
-
DataRenderer
-
-
Method Details
-
processRelativeUrls
-
addMarkdown
protected void addMarkdown(org.hl7.fhir.utilities.xhtml.XhtmlNode x, String text, String path) throws org.hl7.fhir.exceptions.FHIRFormatError, IOException, org.hl7.fhir.exceptions.DefinitionException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
IOException
org.hl7.fhir.exceptions.DefinitionException
-
addMarkdown
protected void addMarkdown(org.hl7.fhir.utilities.xhtml.XhtmlNode x, String text) throws org.hl7.fhir.exceptions.FHIRFormatError, IOException, org.hl7.fhir.exceptions.DefinitionException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
IOException
org.hl7.fhir.exceptions.DefinitionException
-
smartAddText
-
describeVersion
-
describeSystem
-
displaySystem
-
makeAnchor
-
describeLang
-
translate
- Overrides:
translate
in classorg.hl7.fhir.utilities.TranslatingUtilities
-
gt
- Overrides:
gt
in classTranslatingUtilities
-
hasRenderableExtensions
-
hasRenderableExtensions
-
renderExtensionsInList
public void renderExtensionsInList(org.hl7.fhir.utilities.xhtml.XhtmlNode ul, DataType element) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
-
renderExtensionsInList
public void renderExtensionsInList(org.hl7.fhir.utilities.xhtml.XhtmlNode ul, BackboneType element) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
-
renderExtensionsInText
public void renderExtensionsInText(org.hl7.fhir.utilities.xhtml.XhtmlNode div, DataType element, String sep) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
-
renderExtensionsInList
public void renderExtensionsInList(org.hl7.fhir.utilities.xhtml.XhtmlNode div, BackboneType element, String sep) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
-
display
-
displayBase
-
display
-
display
-
render
public void render(org.hl7.fhir.utilities.xhtml.XhtmlNode x, BaseWrappers.BaseWrapper type) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
-
renderBase
public void renderBase(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Base b) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
-
render
public void render(org.hl7.fhir.utilities.xhtml.XhtmlNode x, DataType type) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
-
renderDateTime
-
renderDate
-
renderDateTime
-
renderUri
-
renderUri
-
renderAnnotation
-
renderAnnotation
protected void renderAnnotation(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Annotation a, boolean showCodeDetails) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
displayCoding
-
displayCoding
-
renderCoding
-
renderCoding
protected void renderCoding(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, List<org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Piece> pieces, Coding c) -
getLinkForCode
-
resolveCode
- Specified by:
resolveCode
in interfaceCodeResolver
-
resolveCode
- Specified by:
resolveCode
in interfaceCodeResolver
-
resolveCode
- Specified by:
resolveCode
in interfaceCodeResolver
-
renderCodingWithDetails
-
renderCoding
protected void renderCoding(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Coding c, boolean showCodeDetails) -
displayCodeableConcept
-
renderCodeableConcept
protected void renderCodeableConcept(org.hl7.fhir.utilities.xhtml.XhtmlNode x, CodeableConcept cc) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
-
renderCodeableReference
protected void renderCodeableReference(org.hl7.fhir.utilities.xhtml.XhtmlNode x, CodeableReference e, boolean showCodeDetails) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
-
renderCodeableConcept
protected void renderCodeableConcept(org.hl7.fhir.utilities.xhtml.XhtmlNode x, CodeableConcept cc, boolean showCodeDetails) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
-
renderIdentifier
-
displayHumanName
-
renderHumanName
-
renderAddress
-
displayContactPoint
-
getLocalizedBigDecimalValue
-
renderMoney
-
renderExpression
-
renderContactPoint
-
displayContactPoint
-
addTelecom
-
displayQuantity
-
renderQuantity
-
renderQuantity
protected void renderQuantity(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Quantity q, boolean showCodeDetails) -
displayRange
-
renderRange
-
displayPeriod
-
renderPeriod
-
renderDataRequirement
public void renderDataRequirement(org.hl7.fhir.utilities.xhtml.XhtmlNode x, DataRequirement dr) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
-
renderTiming
protected void renderTiming(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Timing s) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
renderSampledData
-
getContext
-
makeExceptionXhtml
-
versionFromCanonical
-
systemFromCanonical
-