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.TranslationServicesNested 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 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 StringdescribeSystem(String system) static StringdescribeVersion(String version) static Stringdisplay(IWorkerContext context, DataType type) displayBase(Base b) displayCoding(List<Coding> list) static StringdisplayContactPoint(ContactPoint contact) protected voiddisplayContactPoint(org.hl7.fhir.utilities.xhtml.XhtmlNode p, ContactPoint c) static StringdisplayHumanName(HumanName name) protected 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.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 voidrenderSampledData(org.hl7.fhir.utilities.xhtml.XhtmlNode x, SampledData sampledData) protected voidrenderTiming(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Timing s) protected voidprotected voidrenderUri(org.hl7.fhir.utilities.xhtml.XhtmlNode x, UriType uri, String path, String id, Resource src) resolveCode(String system, String code) resolveCode(CodeableConcept code) protected voidsmartAddText(org.hl7.fhir.utilities.xhtml.XhtmlNode p, String text) protected StringsystemFromCanonical(String system) protected Stringprotected StringversionFromCanonical(String system) Methods inherited from class org.hl7.fhir.r5.renderers.Renderer
formatMessageMethods inherited from class org.hl7.fhir.r5.utils.TranslatingUtilities
egtMethods 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.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
-
describeSystem
-
displaySystem
-
makeAnchor
-
describeLang
-
translate
- Overrides:
translatein classorg.hl7.fhir.utilities.TranslatingUtilities
-
gt
- Overrides:
gtin 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.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
-
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
-
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
-
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.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
-