http://hl7.org/fhir/StructureDefinition/Composition|4.0.1

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.).
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.).
derivation: specialization
name: Composition
type: Composition
elements:
  category:
    short: Categorization of Composition
    array: true
    binding: {strength: example, valueSet: 'http://hl7.org/fhir/ValueSet/document-classcodes'}
    isSummary: true
    index: 3
  date: {short: Composition editing time, isSummary: true, index: 6}
  encounter: {short: Context of the Composition, isSummary: true, index: 5}
  section:
    constraint:
      cmp-1: {human: 'A section must contain at least one of text, entries, or sub-sections', 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, severity: error, expression: emptyReason.empty() or entry.empty()}
    short: Composition is broken into sections
    array: true
    index: 23
    elements:
      orderedBy:
        short: Order of section entries
        binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/list-order'}
        index: 30
      section:
        elementReference: ['http://hl7.org/fhir/StructureDefinition/Composition', elements, section]
        short: Nested Section
        array: true
        index: 33
      mode:
        short: working | snapshot | changes
        binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/list-mode|4.0.1'}
        index: 29
      title: {short: Label for section (e.g. for ToC), index: 24}
      emptyReason:
        short: Why the section is empty
        binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/list-empty-reason'}
        index: 32
      author: {short: Who and/or what authored the section, array: true, index: 26}
      code:
        short: Classification of section (recommended)
        binding: {strength: example, valueSet: 'http://hl7.org/fhir/ValueSet/doc-section-codes'}
        index: 25
      focus: {short: 'Who/what the section is about, when it is not about the subject of composition', index: 27}
      entry: {short: A reference to data that supports this section, array: true, index: 31}
      text: {short: 'Text summary of the section, for human interpretation', index: 28}
  attester:
    short: Attests to accuracy of composition
    array: true
    index: 10
    elements:
      mode:
        short: personal | professional | legal | official
        binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/composition-attestation-mode|4.0.1'}
        index: 11
      time: {short: When the composition was attested, index: 12}
      party: {short: Who attested the composition, index: 13}
    required: [mode]
  type:
    short: Kind of composition (LOINC if possible)
    binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/doc-typecodes'}
    isSummary: true
    index: 2
  title: {short: Human Readable name/title, isSummary: true, index: 8}
  author: {min: 1, short: Who and/or what authored the composition, array: true, isSummary: true, index: 7}
  event:
    short: The clinical service(s) being documented
    array: true
    isSummary: true
    index: 19
    elements:
      code:
        short: Code(s) that apply to the event being documented
        array: true
        binding: {strength: example, valueSet: 'http://terminology.hl7.org/ValueSet/v3-ActCode'}
        isSummary: true
        index: 20
      period: {short: The period covered by the documentation, isSummary: true, index: 21}
      detail: {short: The event(s) being documented, array: true, isSummary: true, index: 22}
  custodian: {short: Organization which maintains the composition, isSummary: true, index: 14}
  status:
    isModifier: true
    short: preliminary | final | amended | entered-in-error
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/composition-status|4.0.1'}
    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, isSummary: true, index: 0}
  relatesTo:
    short: Relationships to other compositions/documents
    array: true
    index: 15
    elements:
      code:
        short: replaces | transforms | signs | appends
        binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1'}
        index: 16
      target:
        short: Target of the relationship
        choices: []
        index: 18
    required: [target, code]
  subject: {short: Who and/or what the composition is about, isSummary: true, index: 4}
  confidentiality:
    short: As defined by affinity domain
    binding: {strength: required, valueSet: 'http://terminology.hl7.org/ValueSet/v3-ConfidentialityClassification|2014-03-26'}
    isSummary: true
    index: 9
class: resource
kind: resource
url: http://hl7.org/fhir/StructureDefinition/Composition
base: http://hl7.org/fhir/StructureDefinition/DomainResource
version: 4.0.1
required: [author, status, title, type, date]