Package org.hl7.fhir.r5.renderers
Class DataRenderer
java.lang.Object
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.renderers.Renderer
Renderer.RenderingStatus
Nested classes/interfaces inherited from interface org.hl7.fhir.r5.renderers.CodeResolver
CodeResolver.CodeResolution
-
Field Summary
-
Constructor Summary
-
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, ResourceWrapper c) boolean
canRenderDataType
(String type) protected void
checkRenderExtensions
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper element) protected String
describeLang
(String lang) static String
describeVersion
(String version) static String
display
(IWorkerContext context, DataType type) displayBase
(Base b) displayCoding
(List<Coding> list) displayContactDetail
(ResourceWrapper contact) displayContactPoint
(ResourceWrapper contact) protected void
displayContactPoint
(org.hl7.fhir.utilities.xhtml.XhtmlNode p, ContactPoint c) displayDataType
(DataType type) protected String
static String
protected String
protected String
protected String
displaySystem
(String system) protected String
getLinkForCode
(String system, String version, String code) protected String
getLocalizedBigDecimalValue
(BigDecimal input, Currency c) gt
(PrimitiveType value) gt
(ResourceWrapper value) boolean
hasRenderableExtensions
(BackboneType element) boolean
hasRenderableExtensions
(DataType element) boolean
hasRenderableExtensions
(ResourceWrapper 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) protected void
renderAddress
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper address) protected void
renderAnnotation
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper a) void
renderBase
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, Base b) protected void
renderCanonical
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper type) protected void
renderCodeableConcept
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper cc) protected void
renderCodeableReference
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper e) protected void
renderCoding
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper c) protected void
renderCoding
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper c, boolean details) 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.HierarchicalTableGenerator gen, List<org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Piece> pieces, ResourceWrapper c) protected void
renderCodingWithDetails
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper c) protected void
renderContactPoint
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper contact) void
renderDataRequirement
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper dr) boolean
renderDataType
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper type) boolean
renderDataType
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode parent, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper type) protected void
renderExpression
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper expr) void
renderExtensionsInList
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode ul, ResourceWrapper element) void
renderExtensionsInText
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper element, String sep) protected void
renderHumanName
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper name) protected void
renderIdentifier
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper ii) protected void
renderMoney
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper money) void
renderPeriod
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper p) protected boolean
renderPrimitiveWithNoValue
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, PrimitiveType<?> prim) protected boolean
renderPrimitiveWithNoValue
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper prim) protected void
renderQuantity
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper q) protected void
renderQuantity
(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, List<org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Piece> pieces, Quantity q, boolean showCodeDetails) protected void
renderQuantity
(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, List<org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Piece> pieces, ResourceWrapper q, boolean showCodeDetails) protected void
renderRange
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper q) protected void
renderReference
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper ref) this is overriden in ResourceRenderer where a better rendering is performedprotected void
renderSampledData
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper sampledData) protected void
renderTiming
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper s) void
renderTriggerDefinition
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper td) protected void
renderUri
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper uri) void
renderUsageContext
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper u) resolveCode
(String system, String code) resolveCode
(CodeableConcept code) resolveCode
(Coding code) protected void
smartAddText
(org.hl7.fhir.utilities.xhtml.XhtmlNode p, String text) protected String
systemFromCanonical
(String system) protected String
protected String
protected String
versionFromCanonical
(String system) Methods inherited from class org.hl7.fhir.r5.renderers.Renderer
egt, formatPhrase, genStandardsStatus, getTranslatedCode, renderStatus, renderStatusDiv, renderStatusRow, renderStatusSummary, toStr, toStr, wrap, wrapNC, wrapWC
-
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
-
displaySystem
-
makeAnchor
-
describeLang
-
gt
-
gt
-
hasRenderableExtensions
-
hasRenderableExtensions
-
hasRenderableExtensions
-
renderExtensionsInList
public void renderExtensionsInList(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode ul, ResourceWrapper 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(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper 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
-
checkRenderExtensions
protected void checkRenderExtensions(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper 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
-
display
-
displayBase
-
displayDataType
-
displayDataType
-
displayReference
-
displayDateTime
-
renderBase
public void renderBase(Renderer.RenderingStatus status, 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
-
canRenderDataType
-
renderDataType
public boolean renderDataType(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper 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
-
renderDataType
public boolean renderDataType(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode parent, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper 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
-
renderCanonical
protected void renderCanonical(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper 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
-
renderReference
protected void renderReference(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper ref) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException this is overriden in ResourceRenderer where a better rendering is performed- Parameters:
status
-x
-ref
-- Throws:
IOException
org.hl7.fhir.exceptions.DefinitionException
org.hl7.fhir.exceptions.FHIRFormatError
-
renderPrimitiveWithNoValue
protected boolean renderPrimitiveWithNoValue(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, PrimitiveType<?> prim) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
-
renderPrimitiveWithNoValue
protected boolean renderPrimitiveWithNoValue(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper prim) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
-
tail
-
utail
-
renderUri
protected void renderUri(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper uri) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
-
renderAnnotation
protected void renderAnnotation(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper a) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
displayCoding
-
displayCoding
-
renderCoding
protected void renderCoding(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, List<org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Piece> pieces, Coding c) -
renderCoding
protected void renderCoding(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, List<org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Piece> pieces, ResourceWrapper c) -
getLinkForCode
-
resolveCode
- Specified by:
resolveCode
in interfaceCodeResolver
-
resolveCode
-
resolveCode
- Specified by:
resolveCode
in interfaceCodeResolver
-
resolveCode
- Specified by:
resolveCode
in interfaceCodeResolver
-
renderCodingWithDetails
protected void renderCodingWithDetails(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper c) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
-
renderCoding
protected void renderCoding(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper c) -
renderCoding
protected void renderCoding(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper c, boolean details) -
displayCodeableConcept
-
renderCodeableReference
protected void renderCodeableReference(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper e) 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(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper 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
-
displayIdentifier
-
renderIdentifier
protected void renderIdentifier(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper ii) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
-
displayHumanName
-
renderHumanName
protected void renderHumanName(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper name) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
-
renderAddress
protected void renderAddress(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper address) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
-
displayContactPoint
-
displayContactDetail
-
getLocalizedBigDecimalValue
-
renderMoney
protected void renderMoney(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper money) -
renderExpression
protected void renderExpression(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper expr) -
renderContactPoint
protected void renderContactPoint(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper contact) -
displayContactPoint
-
addTelecom
-
displayQuantity
-
renderQuantity
protected void renderQuantity(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper q) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
-
renderQuantity
protected void renderQuantity(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, List<org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Piece> pieces, ResourceWrapper q, boolean showCodeDetails) -
renderQuantity
protected void renderQuantity(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, List<org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Piece> pieces, Quantity q, boolean showCodeDetails) -
displayRange
-
renderRange
protected void renderRange(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper q) -
displayPeriod
-
renderPeriod
public void renderPeriod(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper p) -
renderUsageContext
public void renderUsageContext(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper u) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
-
renderTriggerDefinition
public void renderTriggerDefinition(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper td) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
-
renderDataRequirement
public void renderDataRequirement(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper 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(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper s) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
renderSampledData
protected void renderSampledData(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper sampledData) -
getContext
-
makeExceptionXhtml
-
versionFromCanonical
-
systemFromCanonical
-