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 interface org.hl7.fhir.r5.renderers.CodeResolver
CodeResolver.CodeResolution -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddMarkdown(org.hl7.fhir.utilities.xhtml.XhtmlNode x, String text) protected voidaddMarkdown(org.hl7.fhir.utilities.xhtml.XhtmlNode x, String text, String path) protected voidaddTelecom(org.hl7.fhir.utilities.xhtml.XhtmlNode p, ContactPoint c) protected StringdescribeLang(String lang) static StringdescribeVersion(String version) static Stringdisplay(IWorkerContext context, DataType type) displayBase(Base b) displayCoding(List<Coding> list) static StringdisplayContactDetail(ContactDetail contact) static StringdisplayContactPoint(ContactPoint contact) protected voiddisplayContactPoint(org.hl7.fhir.utilities.xhtml.XhtmlNode p, ContactPoint c) protected Stringstatic StringdisplayHumanName(HumanName name) protected Stringprotected StringdisplaySystem(String system) protected StringgetLinkForCode(String system, String version, String code) protected StringgetLocalizedBigDecimalValue(BigDecimal input, Currency c) gt(PrimitiveType value) booleanhasRenderableExtensions(BackboneType element) booleanhasRenderableExtensions(DataType element) protected StringmakeAnchor(String codeSystem, String code) org.hl7.fhir.utilities.xhtml.XhtmlNodemakeExceptionXhtml(Exception e, String function) static StringprocessRelativeUrls(String markdown, String path) voidvoidrender(org.hl7.fhir.utilities.xhtml.XhtmlNode x, BaseWrappers.BaseWrapper type) protected voidrenderAddress(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Address address) protected voidrenderAnnotation(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Annotation annot) protected voidrenderAnnotation(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Annotation a, boolean showCodeDetails) voidrenderBase(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Base b) protected voidrenderCodeableConcept(org.hl7.fhir.utilities.xhtml.XhtmlNode x, CodeableConcept cc) protected voidrenderCodeableConcept(org.hl7.fhir.utilities.xhtml.XhtmlNode x, CodeableConcept cc, boolean showCodeDetails) protected voidrenderCodeableReference(org.hl7.fhir.utilities.xhtml.XhtmlNode x, CodeableReference e, boolean showCodeDetails) protected voidrenderCoding(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, List<org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Piece> pieces, Coding c) protected voidrenderCoding(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Coding c) protected voidrenderCoding(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Coding c, boolean showCodeDetails) protected voidrenderCodingWithDetails(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Coding c) protected voidrenderContactPoint(org.hl7.fhir.utilities.xhtml.XhtmlNode x, ContactPoint contact) voidrenderDataRequirement(org.hl7.fhir.utilities.xhtml.XhtmlNode x, DataRequirement dr) voidrenderDate(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Base e) voidrenderDateTime(org.hl7.fhir.utilities.xhtml.XhtmlNode x, String s) voidrenderDateTime(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Base e) protected voidrenderExpression(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Expression expr) voidrenderExtensionsInList(org.hl7.fhir.utilities.xhtml.XhtmlNode ul, BackboneType element) voidrenderExtensionsInList(org.hl7.fhir.utilities.xhtml.XhtmlNode div, BackboneType element, String sep) voidrenderExtensionsInList(org.hl7.fhir.utilities.xhtml.XhtmlNode ul, DataType element) voidrenderExtensionsInText(org.hl7.fhir.utilities.xhtml.XhtmlNode div, DataType element, String sep) protected voidrenderHumanName(org.hl7.fhir.utilities.xhtml.XhtmlNode x, HumanName name) protected voidrenderIdentifier(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Identifier ii) protected voidrenderMoney(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Money money) voidrenderPeriod(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Period p) protected voidrenderQuantity(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, List<org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Piece> pieces, Quantity q, boolean showCodeDetails) protected voidrenderQuantity(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Quantity q) protected voidrenderQuantity(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Quantity q, boolean showCodeDetails) protected voidrenderRange(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Range q) protected voidrenderReference(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Reference ref) protected voidrenderSampledData(org.hl7.fhir.utilities.xhtml.XhtmlNode x, SampledData sampledData) protected voidrenderTiming(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Timing s) voidrenderTriggerDefinition(org.hl7.fhir.utilities.xhtml.XhtmlNode x, TriggerDefinition td) protected voidprotected voidrenderUri(org.hl7.fhir.utilities.xhtml.XhtmlNode x, UriType uriD, String path, String id, Resource src) voidrenderUsageContext(org.hl7.fhir.utilities.xhtml.XhtmlNode x, UsageContext u) resolveCode(String system, String code) resolveCode(CodeableConcept code) protected voidsmartAddText(org.hl7.fhir.utilities.xhtml.XhtmlNode p, String text) protected StringsystemFromCanonical(String system) protected StringversionFromCanonical(String system) Methods inherited from class org.hl7.fhir.r5.renderers.Renderer
egt, formatPhrase, genStandardsStatus, renderStatus, renderStatusDiv, renderStatusRow, renderStatusSummary, toStr, toStr
-
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.FHIRFormatErrorIOExceptionorg.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.FHIRFormatErrorIOExceptionorg.hl7.fhir.exceptions.DefinitionException
-
smartAddText
-
describeVersion
-
displaySystem
-
makeAnchor
-
describeLang
-
gt
-
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.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionIOException
-
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.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionIOException
-
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.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionIOException
-
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.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionIOException
-
display
-
displayBase
-
display
-
displayDateTime
-
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.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionIOException
-
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.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionIOException
-
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.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionIOException
-
renderReference
-
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:
resolveCodein interfaceCodeResolver
-
resolveCode
- Specified by:
resolveCodein interfaceCodeResolver
-
resolveCode
- Specified by:
resolveCodein 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.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionIOException
-
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.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionIOException
-
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.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionIOException
-
displayIdentifier
-
renderIdentifier
-
displayHumanName
-
renderHumanName
-
renderAddress
-
displayContactPoint
-
displayContactDetail
-
getLocalizedBigDecimalValue
-
renderMoney
-
renderExpression
-
renderContactPoint
-
displayContactPoint
-
addTelecom
-
displayQuantity
-
renderQuantity
-
renderQuantity
protected void renderQuantity(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Quantity 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
-
displayPeriod
-
renderPeriod
-
renderUsageContext
public void renderUsageContext(org.hl7.fhir.utilities.xhtml.XhtmlNode x, UsageContext u) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionIOException
-
renderTriggerDefinition
public void renderTriggerDefinition(org.hl7.fhir.utilities.xhtml.XhtmlNode x, TriggerDefinition td) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionIOException
-
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.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionIOException
-
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
-