PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch-emed@4.0.1
    http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-composition-medicationdispense
description: Definition of the composition for the medication dispense document
package_name: ch.fhir.ig.ch-emed
derivation: constraint
name: CHEMEDCompositionMedicationDispense
type: Composition
elements:
  date: {short: The document's creation date and time, index: 5}
  section:
    index: 14
    slicing:
      slices:
        dispense:
          match: {}
          schema:
            short: Medication dispense
            _required: true
            index: 15
            elements:
              title:
                short: "'Abgabe eines Medikaments' in german or 'Dispensation d'un médicament' in french or 'Dispensazione di un medicamento' in italian or 'Medication dispensed' in english\r\n                        or titles in other languages are also allowed"
                index: 16
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 60590-7, system: 'http://loinc.org'}
                index: 17
              text: {short: Human readable text of this section, index: 18}
              entry:
                type: Reference
                short: Medication dispense or administration
                refers: ['http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medicationadministration', 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medicationdispense']
                index: 19
                elements:
                  reference: {index: 20}
                required: [reference]
              section: {index: 21}
            required: [entry, text, title, code]
        annotation:
          match: {}
          schema:
            short: Annotation
            index: 22
            elements:
              title:
                short: "'Kommentar' in german or 'Commentaire' in french or 'Osservazione' in italian or 'Comment' in english\r\n                        or titles in other languages are also allowed"
                index: 23
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 48767-8, system: 'http://loinc.org'}
                index: 24
              text: {short: Human readable text of this section, index: 25}
              section: {index: 26}
            required: [text, title, code]
  attester:
    short: The authenticator of the document (person)
    index: 11
    slicing:
      slices:
        legalAuthenticator:
          match: {}
          schema:
            short: The legal authenticator of the document (person)
            index: 12
            elements:
              time: {short: Timestamp of the signature, index: 13}
  type:
    short: Medication dispense document (record artifact)
    constraint:
      ch-emed-comp-dis: {human: 'If a LOINC code is additionally provided, ''60593-1'' shall be used for this document type.', source: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-composition-medicationdispense', severity: error, expression: 'coding.exists(system = ''http://loinc.org'') and (coding.exists(system = ''http://loinc.org'' and code = ''60593-1''))'}
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: '82291000195104', system: 'http://snomed.info/sct', version: 'http://snomed.info/sct/2011000195101'}
    index: 3
  title:
    short: "'Abgabe' in german or 'Remise' in french or 'Dispensazione' in italian or 'Dispense' in english\r\n                        or titles in other languages are also allowed"
    index: 9
  author:
    index: 6
    slicing:
      rules: closed
      discriminator:
      - {path: resolve(), type: profile}
      min: null
      slices:
        person:
          match: {}
          schema:
            type: Reference
            short: The author of the document (person)
            refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient-epr', 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-practitionerrole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
            array: true
            min: 1
            _required: true
            index: 7
          min: 1
        device:
          match: {}
          schema:
            type: Reference
            short: The device that created the document
            refers: ['http://hl7.org/fhir/StructureDefinition/Device']
            array: true
            index: 8
          min: 0
  status:
    pattern: {type: Code, value: final}
    index: 2
  language: {short: Language of the document, index: 0}
  identifier:
    elements:
      value: {index: 1}
  subject: {short: A patient for whom this document instance was created, index: 4}
  confidentiality:
    extensions:
      confidentialityCode: {url: null, short: Swiss realm of confidentiality code according to the Swiss EPR regulation, index: 10}
    elements:
      extension:
        short: Swiss realm of confidentiality code according to the Swiss EPR regulation
        index: 10
        slicing:
          slices:
            confidentialityCode:
              match: {}
              schema: {short: Swiss realm of confidentiality code according to the Swiss EPR regulation, index: 10}
package_version: 4.0.1
class: profile
kind: resource
url: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-composition-medicationdispense
base: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-composition-epr
version: 4.0.1
required: [section]