Guidance for FHIR IG Creation
0.1.0 - CI Build
Guidance for FHIR IG Creation, published by HL7 International - FHIR Management Group. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/FHIR/ig-guidance/ and changes regularly. See the Directory of published versions
Each resource might contain a Narrative, which is a pair of attributes:
Many implementations either leave the narrative out, or ignore it, but particularly in the context of documents, profiles and implementation guides care about the content of the narrative and want to exert control over it.
Here are some of the aspects of the narrative that implementation guides might want to control:
These are of interest to specify common user experience requirements, allow for safe and consistent presentation and translation of documents, and to enforce minimum clinical safety expectations.
A narrative might be divided into a series of language sections, where the root elements of the div are all divs with a language attribute. The extension [[[http://hl7.org/fhir/StructureDefinition/narrative-language-control]]] can be used to control this.
The extension may be present one or more times, and can have one of the following values:
_no
: the xhtml is not to contain one or more language sections_yes
: the xhtml is to contain one or more language sections, but there is no rules about what languages_resource
: the xhtml is to contain a section with the same language as the resourceOtherwise, the extension can contain a language code, and means that a section with the the specified language is required.
Note: either of the the values _no
and _yes
only make sense if there is no other value present.
The source of a narrative element can be indicated using a specific class name associated with the status codes. Specifically, an XHTML element can have one of the following class names:
boilerplate
: The text in the element is not associated with data in the instance. This is typically used for headings, and introductory text that is always presentgenerated
: The text in the element is associated with a data element in the resource, or a related resource. The content might be copied directly, or transformed somewhat, or could be entirely generated but how it is generated depends on resource content, and it introduces no new conceptsextension
: the text in the element is associate with an extension in the resource or a related resourceadditional
: the text in the element does not come from any source in the resource, and it is only in the narrativeNotes:
additional
unless tight control is exerted over the author, or the author is trusted to populate the content correctly (e.g. an IG author)The extension [[[http://hl7.org/fhir/StructureDefinition/narrative-source-control]]] is used to tell validators to check that any text in the narrative has been labelled to indicate it's source, and to specify the severity of the message associated with the check - hint, warning, or error.
Note that indicating the class of the element does not indicate a where the data can be found, but can help drive intelligent display of the resource, and selecting areas of the display to highlight and/or treat differently when translating, depending on the context of use.
There are two ways to establish links between the narrative parts and the
associated data. The first is using id alignment, where elements in the data
and the xhtml have linked id
values that establish the relationship, and
using the extension [[[http://hl7.org/fhir/StructureDefinition/textLink]]]
that explicitly links between elements in the narrative and the data portions
of the resource and it's related resources.