Current Build

Extensions for rendering data elements

FHIR Infrastructure Work GroupMaturity Level: N/ABallot Status: Informative

Scope and Usage

This profile defines extensions governing how data elements should be rendered when presented to a user, printed, etc.

XHTML-based extensions

These extensions make use of XHTML capabilities to influence the rendering of data elements. In theory, systems displaying data using a technology other than XHTML could parse the information in the style string and attempt to map it to their own internal display syntax. However, it is likely that not all of the markup instructions would map well. Support for these extensions by software using mechanisms other than XHTML for rendering is therefore unlikely.

When generating narrative that includes elements with one of these extensions, the narrative covering these elements SHOULD apply the guidance provided by these extensions to how the element appears in the narrative.

Note: Implementers should be cautious around the use of sophisticated formatting capabilities. Not all browsers and other XHTML rendering tools support all styles and XHTML capabilities, or at least don't support them well. This is particularly true for mobile solutions. Limiting to simple capabilities increases the likelihood of interoperability and consistent rendering across devices.

Content

Extensions:
rendering-stylestyle :

Identifies how the specified element should be rendered when displayed.

rendering-xhtmlxhtml :

This is an equivalent of the string on which the extension is sent, but includes additional XHTML markup, such as bold, italics, styles, tables, etc. Existing restrictions on XHTML content apply. Note that using markdown allows for greater flexibility of display.

rendering-markdownmarkdown :

This is an equivalent of the string on which the extension is sent, but includes additional markdown (see documentation about markdown. Note that using HTML xhtml can allow for greater precision of display.

rendering-styleSensitivestyleSensitive :

Indicates that the style extensions (style, markdown) and xhtml) in this resource are essential to the interpretation of the styled text and that it cannot be rendered without the style without losing essential information.