description: A set of healthcare-related information that is assembled together into a single logical package that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. A Composition defines the structure and narrative content necessary for a document. However, a Composition alone does not constitute a document. Rather, the Composition must be the first entry in a Bundle where Bundle.type=document, and any other resources referenced from Composition must be included as subsequent entries in the Bundle (for example Patient, Practitioner, Encounter, etc.). package_name: hl7.fhir.r5.examples derivation: specialization name: Composition type: Composition elements: category: short: Categorization of Composition type: CodeableConcept array: true binding: {strength: example, valueSet: 'http://hl7.org/fhir/ValueSet/document-classcodes'} isSummary: true index: 3 date: {short: Composition editing time, type: dateTime, isSummary: true, index: 6} encounter: short: Context of the Composition refers: ['http://hl7.org/fhir/StructureDefinition/Encounter'] type: Reference isSummary: true index: 5 section: constraint: cmp-1: {human: 'A section must contain at least one of text, entries, or sub-sections', source: 'http://hl7.org/fhir/StructureDefinition/Composition', severity: error, expression: text.exists() or entry.exists() or section.exists()} cmp-2: {human: A section can only have an emptyReason if it is empty, source: 'http://hl7.org/fhir/StructureDefinition/Composition', severity: error, expression: emptyReason.empty() or entry.empty()} short: Composition is broken into sections type: BackboneElement array: true index: 25 elements: orderedBy: short: Order of section entries type: CodeableConcept binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/list-order'} index: 32 section: elementReference: ['http://hl7.org/fhir/StructureDefinition/Composition', elements, section] short: Nested Section array: true index: 35 mode: short: working | snapshot | changes type: code binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/list-mode|4.5.0'} index: 31 title: {short: Label for section (e.g. for ToC), type: string, index: 26} emptyReason: short: Why the section is empty type: CodeableConcept binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/list-empty-reason'} index: 34 author: short: Who and/or what authored the section refers: ['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'] type: Reference array: true index: 28 code: short: Classification of section (recommended) type: CodeableConcept binding: {strength: example, valueSet: 'http://hl7.org/fhir/ValueSet/doc-section-codes'} index: 27 focus: short: Who/what the section is about, when it is not about the subject of composition refers: ['http://hl7.org/fhir/StructureDefinition/Resource'] type: Reference index: 29 entry: short: A reference to data that supports this section refers: ['http://hl7.org/fhir/StructureDefinition/Resource'] type: Reference array: true index: 33 text: {short: 'Text summary of the section, for human interpretation', type: Narrative, index: 30} attester: short: Attests to accuracy of composition type: BackboneElement array: true index: 10 elements: mode: short: personal | professional | legal | official type: code binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/composition-attestation-mode|4.5.0'} index: 11 time: {short: When the composition was attested, type: dateTime, index: 12} party: short: Who attested the composition refers: ['http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'] type: Reference index: 13 required: [mode] type: short: Kind of composition (LOINC if possible) type: CodeableConcept binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/doc-typecodes'} isSummary: true index: 2 title: {short: Human Readable name/title, type: string, isSummary: true, index: 8} author: min: 1 short: Who and/or what authored the composition refers: ['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'] type: Reference array: true isSummary: true index: 7 event: short: The clinical service(s) being documented type: BackboneElement array: true isSummary: true index: 21 elements: code: short: Code(s) that apply to the event being documented type: CodeableConcept array: true binding: {strength: example, valueSet: 'http://terminology.hl7.org/ValueSet/v3-ActCode'} isSummary: true index: 22 period: {short: The period covered by the documentation, type: Period, isSummary: true, index: 23} detail: short: The event(s) being documented refers: ['http://hl7.org/fhir/StructureDefinition/Resource'] type: Reference array: true isSummary: true index: 24 custodian: short: Organization which maintains the composition refers: ['http://hl7.org/fhir/StructureDefinition/Organization'] type: Reference isSummary: true index: 14 status: isModifier: true short: preliminary | final | amended | entered-in-error type: code binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/composition-status|4.5.0'} isModifierReason: This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid isSummary: true index: 1 identifier: {short: Version-independent identifier for the Composition, type: Identifier, isSummary: true, index: 0} relatesTo: short: Relationships to other compositions/documents type: BackboneElement array: true index: 15 elements: code: short: replaces | transforms | signs | appends type: code binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/document-relationship-type|4.5.0'} index: 16 target: short: Target of the relationship choices: [targetIdentifier, targetReference] index: 18 targetIdentifier: {short: Target of the relationship, type: Identifier, choiceOf: target, index: 19} targetReference: short: Target of the relationship refers: ['http://hl7.org/fhir/StructureDefinition/Composition'] type: Reference choiceOf: target index: 20 required: [targetReference, target, targetIdentifier, code] subject: short: Who and/or what the composition is about refers: ['http://hl7.org/fhir/StructureDefinition/Resource'] type: Reference isSummary: true index: 4 confidentiality: short: As defined by affinity domain type: code binding: {strength: required, valueSet: 'http://terminology.hl7.org/ValueSet/v3-Confidentiality|2.0.0'} isSummary: true index: 9 package_version: 4.5.0 class: resource kind: resource url: http://hl7.org/fhir/StructureDefinition/Composition base: http://hl7.org/fhir/StructureDefinition/DomainResource version: 4.5.0 required: [author, status, title, type, date]