This page is part of the FHIR Specification (v3.2.0: R4 Ballot 1). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2
(No assigned work group) | Maturity Level: 1 | Informative | Use Context: Any |
The official URL for this profile is:
http://hl7.org/fhir/StructureDefinition/clinicaldocument
The base Composition is a general resource for compositions or documents about any kind of subject that might be encountered in healthcare including such things as guidelines, medicines, etc. A clinical document is focused on documents related to the provision of care process, where the subject is a patient, a group of patients, or a closely related concept. A clinical document has additional reqiurements around confidentiality that do not apply in the same way to other kinds of documents
This profile was published on Tue, Mar 17, 2015 00:00+1100 as a draft by Health Level Seven, Inc. - Structured Documents WG.
Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.
This structure is derived from Composition.
This structure is derived from Composition.
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Composition | I | 0..* | A set of resources composed into a single coherent clinical statement with clinical attestation | |
id | Σ | 0..1 | id | Logical id of this artifact |
meta | Σ | 0..1 | Meta | Metadata about the resource |
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created |
language | 0..1 | code | Language of the resource content Binding: Common Languages (extensible) | |
text | I | 0..1 | Narrative | Text summary of the resource, for human interpretation |
contained | 0..* | Resource | Contained, inline Resources | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored |
identifier | Σ | 0..1 | Identifier | Logical identifier of composition (version-independent) |
status | ?!Σ | 1..1 | code | preliminary | final | amended | entered-in-error Binding: CompositionStatus (required) |
type | Σ | 1..1 | CodeableConcept | Kind of composition (LOINC if possible) Binding: FHIR Document Type Codes (preferred) |
class | Σ | 0..1 | CodeableConcept | Categorization of Composition Binding: FHIR Document Class Codes (example) |
subject | Σ | 0..1 | Reference(Patient), Reference(Practitioner), Reference(Group), Reference(Device), Reference(Location) | Who and/or what the composition is about |
encounter | Σ | 0..1 | Reference(Encounter) | Context of the Composition |
date | Σ | 1..1 | dateTime | Composition editing time |
author | Σ | 1..* | Reference(Practitioner), Reference(PractitionerRole), Reference(Device), Reference(Patient), Reference(RelatedPerson), Reference(Organization) | Who and/or what authored the composition |
title | Σ | 1..1 | string | Human Readable name/title |
confidentiality | ?!Σ | 0..1 | code | As defined by affinity domain Binding: ConfidentialityClassification (required) |
attester | ΣI | 0..* | BackboneElement | Attests to accuracy of composition |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
mode | Σ | 1..* | code | personal | professional | legal | official Binding: CompositionAttestationMode (required) |
time | Σ | 0..1 | dateTime | When the composition was attested |
party | Σ | 0..1 | Reference(Patient), Reference(Practitioner), Reference(PractitionerRole), Reference(Organization) | Who attested the composition |
custodian | Σ | 0..1 | Reference(Organization) | Organization which maintains the composition |
relatesTo | ΣI | 0..* | BackboneElement | Relationships to other compositions/documents |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
code | Σ | 1..1 | code | replaces | transforms | signs | appends Binding: DocumentRelationshipType (required) |
target[x] | Σ | 1..1 | Identifier, Reference(Composition) | Target of the relationship |
event | ΣI | 0..* | BackboneElement | The clinical service(s) being documented |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
code | Σ | 0..* | CodeableConcept | Code(s) that apply to the event being documented Binding: v3 Code System ActCode (example) |
period | Σ | 0..1 | Period | The period covered by the documentation |
detail | Σ | 0..* | Reference(Resource) | The event(s) being documented |
section | I | 0..* | BackboneElement | Composition is broken into sections cmp-1: A section must contain at least one of text, entries, or sub-sections cmp-2: A section can only have an emptyReason if it is empty |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
title | 0..1 | string | Label for section (e.g. for ToC) | |
code | 0..1 | CodeableConcept | Classification of section (recommended) Binding: Document Section Codes (example) | |
text | I | 0..1 | Narrative | Text summary of the section, for human interpretation |
mode | ?!Σ | 0..1 | code | working | snapshot | changes Binding: ListMode (required) |
orderedBy | 0..1 | CodeableConcept | Order of section entries Binding: List Order Codes (preferred) | |
entry | I | 0..* | Reference(Resource) | A reference to data that supports this section |
emptyReason | I | 0..1 | CodeableConcept | Why the section is empty Binding: List Empty Reasons (preferred) |
section | I | 0..* | Unknown reference to #Composition.section Nested Section | |
Documentation for this format |
<!-- Clinical Document Profile for Composition --> <Composition xmlns="http://hl7.org/fhir" > <!-- from Element: extension --> <id value="[id]"/><!-- 0..1 Logical id of this artifact --> <meta><!-- 0..1 Meta Metadata about the resource --></meta> <implicitRules value="[uri]"/><!-- 0..1 A set of rules under which this content was created --> <language value="[code]"/><!-- 0..1 Language of the resource content --> <text><!-- 0..1 Narrative Text summary of the resource, for human interpretation --></text> <contained><!-- 0..* Resource Contained, inline Resources --></contained> <modifierExtension><!-- 0..* Extension Extensions that cannot be ignored --></modifierExtension> <identifier><!-- 0..1 Identifier Logical identifier of composition (version-independent) --></identifier> <status value="[code]"/><!-- 1..1 preliminary | final | amended | entered-in-error --> <type><!-- 1..1 CodeableConcept Kind of composition (LOINC if possible) --></type> <class><!-- 0..1 CodeableConcept Categorization of Composition --></class> <subject><!-- 0..1 Reference(Patient)|Reference(Practitioner)|Reference(Group)|Reference(Device)| Reference(Location) Who and/or what the composition is about --></subject> <encounter><!-- 0..1 Reference(Encounter) Context of the Composition --></encounter> <date value="[dateTime]"/><!-- 1..1 Composition editing time --> <author><!-- 1..* Reference(Practitioner)|Reference(PractitionerRole)|Reference(Device)|Reference(Patient)|Reference(RelatedPerson)| Reference(Organization) Who and/or what authored the composition --></author> <title value="[string]"/><!-- 1..1 Human Readable name/title --> <confidentiality value="[code]"/><!-- 0..1 As defined by affinity domain --> <attester> 0..* BackboneElement <!-- 0..* Attests to accuracy of composition --> <modifierExtension><!-- 0..* Extension Extensions that cannot be ignored --></modifierExtension> <mode value="[code]"/><!-- 1..* personal | professional | legal | official --> <time value="[dateTime]"/><!-- 0..1 When the composition was attested --> <party><!-- 0..1 Reference(Patient)|Reference(Practitioner)|Reference(PractitionerRole)|Reference(Organization) Who attested the composition --></party> </attester> <custodian><!-- 0..1 Reference(Organization) Organization which maintains the composition --></custodian> <relatesTo> 0..* BackboneElement <!-- 0..* Relationships to other compositions/documents --> <modifierExtension><!-- 0..* Extension Extensions that cannot be ignored --></modifierExtension> <code value="[code]"/><!-- 1..1 replaces | transforms | signs | appends --> <target[x]><!-- 1..1 Identifier|Reference(Composition) Target of the relationship --></target[x]> </relatesTo> <event> 0..* BackboneElement <!-- 0..* The clinical service(s) being documented --> <modifierExtension><!-- 0..* Extension Extensions that cannot be ignored --></modifierExtension> <code><!-- 0..* CodeableConcept Code(s) that apply to the event being documented --></code> <period><!-- 0..1 Period The period covered by the documentation --></period> <detail><!-- 0..* Reference(Resource) The event(s) being documented --></detail> </event> <section> 0..* BackboneElement <!-- 0..* Composition is broken into sections --> <modifierExtension><!-- 0..* Extension Extensions that cannot be ignored --></modifierExtension> <title value="[string]"/><!-- 0..1 Label for section (e.g. for ToC) --> <code><!-- 0..1 CodeableConcept Classification of section (recommended) --></code> <text><!-- 0..1 Narrative Text summary of the section, for human interpretation --></text> <mode value="[code]"/><!-- 0..1 working | snapshot | changes --> <orderedBy><!-- 0..1 CodeableConcept Order of section entries --></orderedBy> <entry><!-- 0..* Reference(Resource) A reference to data that supports this section --></entry> <emptyReason><!-- 0..1 CodeableConcept Why the section is empty --></emptyReason> <section><!-- See #Composition.section Nested Section --></section> </section> </Composition>
{ // Clinical Document Profile for Composition // from Element: extension "meta" : { Meta }, //Metadata about the resource "implicitRules" : "<uri>", //A set of rules under which this content was created "language" : "<code>", //Language of the resource content "text" : { Narrative }, //Text summary of the resource, for human interpretation "contained" : [{ Resource }], //Contained, inline Resources "modifierExtension" : [{ Extension }], //Extensions that cannot be ignored "identifier" : { Identifier }, //Logical identifier of composition (version-independent) "status" : "<code>", // R! preliminary | final | amended | entered-in-error "type" : { CodeableConcept }, // R! Kind of composition (LOINC if possible) "class" : { CodeableConcept }, //Categorization of Composition // value[x]: Who and/or what the composition is about. One of these 5: "subject" : { Reference(Patient) }, //Who and/or what the composition is about "subject" : { Reference(Practitioner) }, //Who and/or what the composition is about "subject" : { Reference(Group) }, //Who and/or what the composition is about "subject" : { Reference(Device) }, //Who and/or what the composition is about "subject" : { Reference(Location) }, //Who and/or what the composition is about "encounter" : { Reference(Encounter) }, //Context of the Composition "date" : "<dateTime>", // R! Composition editing time // value[x]: Who and/or what authored the composition. One of these 6: "author" : [{ Reference(Practitioner) }], // R! Who and/or what authored the composition "author" : [{ Reference(PractitionerRole) }], // R! Who and/or what authored the composition "author" : [{ Reference(Device) }], // R! Who and/or what authored the composition "author" : [{ Reference(Patient) }] // R! Who and/or what authored the composition "author" : [{ Reference(RelatedPerson) }], // R! Who and/or what authored the composition "author" : [{ Reference(Organization) }], // R! Who and/or what authored the composition "title" : "<string>", // R! Human Readable name/title "confidentiality" : "<code>", //As defined by affinity domain "attester" : [{ BackboneElement }], // C?Attests to accuracy of composition "custodian" : { Reference(Organization) }, //Organization which maintains the composition "relatesTo" : [{ BackboneElement }], // C?Relationships to other compositions/documents "event" : [{ BackboneElement }], // C?The clinical service(s) being documented "section" : [{ BackboneElement }], // C?Composition is broken into sections }
This structure is derived from Composition.
Differential View
This structure is derived from Composition.
Snapshot View
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Composition | I | 0..* | A set of resources composed into a single coherent clinical statement with clinical attestation | |
id | Σ | 0..1 | id | Logical id of this artifact |
meta | Σ | 0..1 | Meta | Metadata about the resource |
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created |
language | 0..1 | code | Language of the resource content Binding: Common Languages (extensible) | |
text | I | 0..1 | Narrative | Text summary of the resource, for human interpretation |
contained | 0..* | Resource | Contained, inline Resources | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored |
identifier | Σ | 0..1 | Identifier | Logical identifier of composition (version-independent) |
status | ?!Σ | 1..1 | code | preliminary | final | amended | entered-in-error Binding: CompositionStatus (required) |
type | Σ | 1..1 | CodeableConcept | Kind of composition (LOINC if possible) Binding: FHIR Document Type Codes (preferred) |
class | Σ | 0..1 | CodeableConcept | Categorization of Composition Binding: FHIR Document Class Codes (example) |
subject | Σ | 0..1 | Reference(Patient), Reference(Practitioner), Reference(Group), Reference(Device), Reference(Location) | Who and/or what the composition is about |
encounter | Σ | 0..1 | Reference(Encounter) | Context of the Composition |
date | Σ | 1..1 | dateTime | Composition editing time |
author | Σ | 1..* | Reference(Practitioner), Reference(PractitionerRole), Reference(Device), Reference(Patient), Reference(RelatedPerson), Reference(Organization) | Who and/or what authored the composition |
title | Σ | 1..1 | string | Human Readable name/title |
confidentiality | ?!Σ | 0..1 | code | As defined by affinity domain Binding: ConfidentialityClassification (required) |
attester | ΣI | 0..* | BackboneElement | Attests to accuracy of composition |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
mode | Σ | 1..* | code | personal | professional | legal | official Binding: CompositionAttestationMode (required) |
time | Σ | 0..1 | dateTime | When the composition was attested |
party | Σ | 0..1 | Reference(Patient), Reference(Practitioner), Reference(PractitionerRole), Reference(Organization) | Who attested the composition |
custodian | Σ | 0..1 | Reference(Organization) | Organization which maintains the composition |
relatesTo | ΣI | 0..* | BackboneElement | Relationships to other compositions/documents |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
code | Σ | 1..1 | code | replaces | transforms | signs | appends Binding: DocumentRelationshipType (required) |
target[x] | Σ | 1..1 | Identifier, Reference(Composition) | Target of the relationship |
event | ΣI | 0..* | BackboneElement | The clinical service(s) being documented |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
code | Σ | 0..* | CodeableConcept | Code(s) that apply to the event being documented Binding: v3 Code System ActCode (example) |
period | Σ | 0..1 | Period | The period covered by the documentation |
detail | Σ | 0..* | Reference(Resource) | The event(s) being documented |
section | I | 0..* | BackboneElement | Composition is broken into sections cmp-1: A section must contain at least one of text, entries, or sub-sections cmp-2: A section can only have an emptyReason if it is empty |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
title | 0..1 | string | Label for section (e.g. for ToC) | |
code | 0..1 | CodeableConcept | Classification of section (recommended) Binding: Document Section Codes (example) | |
text | I | 0..1 | Narrative | Text summary of the section, for human interpretation |
mode | ?!Σ | 0..1 | code | working | snapshot | changes Binding: ListMode (required) |
orderedBy | 0..1 | CodeableConcept | Order of section entries Binding: List Order Codes (preferred) | |
entry | I | 0..* | Reference(Resource) | A reference to data that supports this section |
emptyReason | I | 0..1 | CodeableConcept | Why the section is empty Binding: List Empty Reasons (preferred) |
section | I | 0..* | Unknown reference to #Composition.section Nested Section | |
Documentation for this format |
XML Template
<!-- Clinical Document Profile for Composition --> <Composition xmlns="http://hl7.org/fhir" > <!-- from Element: extension --> <id value="[id]"/><!-- 0..1 Logical id of this artifact --> <meta><!-- 0..1 Meta Metadata about the resource --></meta> <implicitRules value="[uri]"/><!-- 0..1 A set of rules under which this content was created --> <language value="[code]"/><!-- 0..1 Language of the resource content --> <text><!-- 0..1 Narrative Text summary of the resource, for human interpretation --></text> <contained><!-- 0..* Resource Contained, inline Resources --></contained> <modifierExtension><!-- 0..* Extension Extensions that cannot be ignored --></modifierExtension> <identifier><!-- 0..1 Identifier Logical identifier of composition (version-independent) --></identifier> <status value="[code]"/><!-- 1..1 preliminary | final | amended | entered-in-error --> <type><!-- 1..1 CodeableConcept Kind of composition (LOINC if possible) --></type> <class><!-- 0..1 CodeableConcept Categorization of Composition --></class> <subject><!-- 0..1 Reference(Patient)|Reference(Practitioner)|Reference(Group)|Reference(Device)| Reference(Location) Who and/or what the composition is about --></subject> <encounter><!-- 0..1 Reference(Encounter) Context of the Composition --></encounter> <date value="[dateTime]"/><!-- 1..1 Composition editing time --> <author><!-- 1..* Reference(Practitioner)|Reference(PractitionerRole)|Reference(Device)|Reference(Patient)|Reference(RelatedPerson)| Reference(Organization) Who and/or what authored the composition --></author> <title value="[string]"/><!-- 1..1 Human Readable name/title --> <confidentiality value="[code]"/><!-- 0..1 As defined by affinity domain --> <attester> 0..* BackboneElement <!-- 0..* Attests to accuracy of composition --> <modifierExtension><!-- 0..* Extension Extensions that cannot be ignored --></modifierExtension> <mode value="[code]"/><!-- 1..* personal | professional | legal | official --> <time value="[dateTime]"/><!-- 0..1 When the composition was attested --> <party><!-- 0..1 Reference(Patient)|Reference(Practitioner)|Reference(PractitionerRole)|Reference(Organization) Who attested the composition --></party> </attester> <custodian><!-- 0..1 Reference(Organization) Organization which maintains the composition --></custodian> <relatesTo> 0..* BackboneElement <!-- 0..* Relationships to other compositions/documents --> <modifierExtension><!-- 0..* Extension Extensions that cannot be ignored --></modifierExtension> <code value="[code]"/><!-- 1..1 replaces | transforms | signs | appends --> <target[x]><!-- 1..1 Identifier|Reference(Composition) Target of the relationship --></target[x]> </relatesTo> <event> 0..* BackboneElement <!-- 0..* The clinical service(s) being documented --> <modifierExtension><!-- 0..* Extension Extensions that cannot be ignored --></modifierExtension> <code><!-- 0..* CodeableConcept Code(s) that apply to the event being documented --></code> <period><!-- 0..1 Period The period covered by the documentation --></period> <detail><!-- 0..* Reference(Resource) The event(s) being documented --></detail> </event> <section> 0..* BackboneElement <!-- 0..* Composition is broken into sections --> <modifierExtension><!-- 0..* Extension Extensions that cannot be ignored --></modifierExtension> <title value="[string]"/><!-- 0..1 Label for section (e.g. for ToC) --> <code><!-- 0..1 CodeableConcept Classification of section (recommended) --></code> <text><!-- 0..1 Narrative Text summary of the section, for human interpretation --></text> <mode value="[code]"/><!-- 0..1 working | snapshot | changes --> <orderedBy><!-- 0..1 CodeableConcept Order of section entries --></orderedBy> <entry><!-- 0..* Reference(Resource) A reference to data that supports this section --></entry> <emptyReason><!-- 0..1 CodeableConcept Why the section is empty --></emptyReason> <section><!-- See #Composition.section Nested Section --></section> </section> </Composition>
JSON Template
{ // Clinical Document Profile for Composition // from Element: extension "meta" : { Meta }, //Metadata about the resource "implicitRules" : "<uri>", //A set of rules under which this content was created "language" : "<code>", //Language of the resource content "text" : { Narrative }, //Text summary of the resource, for human interpretation "contained" : [{ Resource }], //Contained, inline Resources "modifierExtension" : [{ Extension }], //Extensions that cannot be ignored "identifier" : { Identifier }, //Logical identifier of composition (version-independent) "status" : "<code>", // R! preliminary | final | amended | entered-in-error "type" : { CodeableConcept }, // R! Kind of composition (LOINC if possible) "class" : { CodeableConcept }, //Categorization of Composition // value[x]: Who and/or what the composition is about. One of these 5: "subject" : { Reference(Patient) }, //Who and/or what the composition is about "subject" : { Reference(Practitioner) }, //Who and/or what the composition is about "subject" : { Reference(Group) }, //Who and/or what the composition is about "subject" : { Reference(Device) }, //Who and/or what the composition is about "subject" : { Reference(Location) }, //Who and/or what the composition is about "encounter" : { Reference(Encounter) }, //Context of the Composition "date" : "<dateTime>", // R! Composition editing time // value[x]: Who and/or what authored the composition. One of these 6: "author" : [{ Reference(Practitioner) }], // R! Who and/or what authored the composition "author" : [{ Reference(PractitionerRole) }], // R! Who and/or what authored the composition "author" : [{ Reference(Device) }], // R! Who and/or what authored the composition "author" : [{ Reference(Patient) }] // R! Who and/or what authored the composition "author" : [{ Reference(RelatedPerson) }], // R! Who and/or what authored the composition "author" : [{ Reference(Organization) }], // R! Who and/or what authored the composition "title" : "<string>", // R! Human Readable name/title "confidentiality" : "<code>", //As defined by affinity domain "attester" : [{ BackboneElement }], // C?Attests to accuracy of composition "custodian" : { Reference(Organization) }, //Organization which maintains the composition "relatesTo" : [{ BackboneElement }], // C?Relationships to other compositions/documents "event" : [{ BackboneElement }], // C?The clinical service(s) being documented "section" : [{ BackboneElement }], // C?Composition is broken into sections }
Alternate definitions: Master Definition (XML, JSON), Schematron
Path | Name | Conformance | ValueSet |
Composition.language | Common Languages | extensible | Common Languages |
Composition.status | CompositionStatus | required | CompositionStatus |
Composition.type | FHIR Document Type Codes | preferred | FHIR Document Type Codes |
Composition.class | FHIR Document Class Codes | example | FHIR Document Class Codes |
Composition.confidentiality | ConfidentialityClassification | required | ConfidentialityClassification |
Composition.attester.mode | CompositionAttestationMode | required | CompositionAttestationMode |
Composition.relatesTo.code | DocumentRelationshipType | required | DocumentRelationshipType |
Composition.event.code | v3 Code System ActCode | example | v3 Code System ActCode |
Composition.section.code | Document Section Codes | example | Document Section Codes |
Composition.section.mode | ListMode | required | ListMode |
Composition.section.orderedBy | List Order Codes | preferred | List Order Codes |
Composition.section.emptyReason | List Empty Reasons | preferred | List Empty Reasons |
Id | Path | Details | Requirements |
cmp-1 | Composition.section | A section must contain at least one of text, entries, or sub-sections Expression : text.exists() or entry.exists() or section.exists() | |
cmp-2 | Composition.section | A section can only have an emptyReason if it is empty Expression : emptyReason.empty() or entry.empty() |