Skip to content

Composition Block Data Extension

Canonical../StructureDefinition/composition-block-data
Statusdraft · 1.26.0
BaseExtension (constraint)
ContextComposition.section (element)
SourceFSH · JSON

One section's structured value, for a render kind whose value is more than the narrative beside it.

Elements / Details

Every element this profile touches, with its full definition. Element names in the tables link here.

Extension

Short Composition Block Data Extension
Definition One section's structured value, for a render kind whose value is more than the narrative beside it. An Attachment, whose contentType says what the payload is -- typically application/json -- because the shape belongs to the render kind rather than to this specification and R4 has no element typed for it. This is the section's own structured value, NOT its structured clinical content: Composition.section.entry is that, and the two are expected to coexist on one section. REACH FOR SDC FIRST. Where a render kind is really a FORM -- a screening instrument, an intake questionnaire -- the modelled answer already exists and is not this extension: a Questionnaire plus a QuestionnaireResponse, which is the problem SDC was written to solve and which gets you section.entry for free. The test is what the block's values ARE, not how the block looks. A block whose values are answers to its own questions is a form, and belongs in SDC however plain it renders. A block that writes each value to the chart record that owns it as the value is recorded -- an Observation, a vital, a Procedure -- is not a form however form-like it renders: those values are clinical facts in the record already, and what the block stores here is that visit's account of them. Use this extension for a payload that is genuinely a render kind's own state and not a set of answers to questions. Why an Attachment and not a bare string. A JSON string in a valueString is self-describing to nobody: a reader cannot tell what it holds without recognising the render kind first, and no published international IG carries editor state that way. Attachment is what R4 already provides for an opaque payload, and contentType makes the envelope readable even where the contents are not. A text section needs none of this at all. The narrative is authoritative for reading. A consumer that has never heard of the render kind renders section.text and is not missing clinical content, so nothing a reader needs may live only in here. A value that cannot be parsed reads as no structured value rather than as an error: one malformed section must not put a whole clinical document out of reach. Unreadable is not absent -- a writer that cannot parse a stored value must round-trip it untouched rather than drop it. FIRST PASS. The canonical is settled on the same terms as composition-block-type. One design question is not: whether a render kind's structured value belongs in an extension at all, or in Composition.section.entry, which this guide already nominates as a section's structured counterpart. They hold different things today, for the reasons given above. The evidence that would settle it is a render kind that promotes its own facts to entry on save -- a vitals block is the obvious first -- because that is the case where the two would genuinely overlap.
Cardinality 0..*
Invariants ele-1, ext-1

Extension.id

Short Unique id for inter-element referencing
Definition Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Cardinality 0..1
Type http://hl7.org/fhirpath/System.String

Extension.extension

Short Additional content defined by implementations
Definition May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
Comments There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
Cardinality 0..0
Type Extension
Invariants ele-1, ext-1
Also called extensions, user content

Extension.url

Short identifies the meaning of the extension
Definition Source of the definition for the extension code - a logical name or a URL.
Comments The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
Cardinality 1..1
Type http://hl7.org/fhirpath/System.String
Fixed value ../StructureDefinition/composition-block-data

Extension.value[x]

Short The render kind's own structured value, as a typed attachment
Definition The section's own structured value. contentType says what the payload is -- application/json for a kind carrying a JSON object -- so the envelope is readable even where the contents are not described here. Readers that do not recognise the render kind ignore this element and render the section narrative instead; a reader that cannot PARSE it must still write it back unchanged, because unreadable and absent are different facts.
Cardinality 1..1
Type Attachment
Must Support yes
Invariants ele-1

Extension.value[x].id

Short Unique id for inter-element referencing
Definition Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Cardinality 0..1
Type http://hl7.org/fhirpath/System.String

Extension.value[x].extension

Short Additional content defined by implementations
Definition May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
Comments There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
Cardinality 0..*
Type Extension
Invariants ele-1, ext-1
Also called extensions, user content

Extension.value[x].contentType

Short What the payload is; application/json for a JSON kind
Definition Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.
Requirements Processors of the data need to be able to know how to interpret the data.
Cardinality 1..1
Type code
Must Support yes
Binding mimetypes (required)
Invariants ele-1

Extension.value[x].language

Short Human language of the content (BCP-47)
Definition The human language of the content. The value can be any valid value according to BCP 47.
Requirements Users need to be able to choose between the languages in a set of attachments.
Cardinality 0..1
Type code
Binding languages (preferred)
Invariants ele-1

Extension.value[x].data

Short The payload itself, base64-encoded per R4
Definition The actual data of the attachment - a sequence of bytes, base64 encoded.
Requirements The data needs to able to be transmitted inline.
Comments The base64-encoded data SHALL be expressed in the same character set as the base resource XML or JSON.
Cardinality 0..1
Type base64Binary
Must Support yes
Invariants ele-1

Extension.value[x].url

Short Uri where the data can be found
Definition A location where the data can be accessed.
Requirements The data needs to be transmitted by reference.
Comments If both data and url are provided, the url SHALL point to the same content as the data contains. Urls may be relative references or may reference transient locations such as a wrapping envelope using cid: though this has ramifications for using signatures. Relative URLs are interpreted relative to the service url, like a resource reference, rather than relative to the resource itself. If a URL is provided, it SHALL resolve to actual data.
Cardinality 0..1
Type url
Invariants ele-1

Extension.value[x].size

Short Number of bytes of content (if url provided)
Definition The number of bytes of data that make up this attachment (before base64 encoding, if that is done).
Requirements Representing the size allows applications to determine whether they should fetch the content automatically in advance, or refuse to fetch it at all.
Comments The number of bytes is redundant if the data is provided as a base64binary, but is useful if the data is provided as a url reference.
Cardinality 0..1
Type unsignedInt
Invariants ele-1

Extension.value[x].hash

Short Hash of the data (sha-1, base64ed)
Definition The calculated hash of the data using SHA-1. Represented using base64.
Requirements Included so that applications can verify that the contents of a location have not changed due to technical failures (e.g., storage rot, transport glitch, incorrect version).
Comments The hash is calculated on the data prior to base64 encoding, if the data is based64 encoded. The hash is not intended to support digital signatures. Where protection against malicious threats a digital signature should be considered, see Provenance.signature for mechanism to protect a resource with a digital signature.
Cardinality 0..1
Type base64Binary
Invariants ele-1

Extension.value[x].title

Short Label to display in place of the data
Definition A label or set of text to display in place of the data.
Requirements Applications need a label to display to a human user in place of the actual data if the data cannot be rendered or perceived by the viewer.
Cardinality 0..1
Type string
Invariants ele-1

Extension.value[x].creation

Short Date attachment was first created
Definition The date that the attachment was first created.
Requirements This is often tracked as an integrity issue for use of the attachment.
Cardinality 0..1
Type dateTime
Invariants ele-1