PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch@emed-2.1.0
    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
derivation: constraint
name: CHEMEDCompositionMedicationDispense
type: Composition
elements:
  date: {short: The document's creation date and time, index: 12}
  section:
    index: 27
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: code, type: pattern}
      min: 1
      slices:
        dispense:
          match:
            code:
              coding:
              - {code: 60590-7, system: 'http://loinc.org', display: Medication dispensed.brief}
          schema:
            short: Medication dispense
            _required: true
            index: 28
            extensions:
              sectionId: {url: null, index: 30}
            elements:
              extension:
                index: 29
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    sectionId:
                      match: {url: null}
                      schema: {index: 30}
              title:
                constraint:
                  ch-emed-sect-dis: {human: '''Abgabe eines Medikaments'' in german or ''Dispensation d''un médicament'' in french or ''Dispensazione di un medicamento'' in talian or ''Medication dispensed'' in english                         or titles in other languages are also allowed', severity: error, expression: ($this='Abgabe eines Medikaments' and %resource.language.startsWith('de')) or ($this='Dispensation d\'un médicament' and %resource.language.startsWith('fr')) or ($this='Dispensazione di un medicamento' and %resource.language.startsWith('it')) or ($this='Medication dispensed' and %resource.language.startsWith('en'))}
                index: 31
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 60590-7, system: 'http://loinc.org', display: Medication dispensed.brief}
                index: 32
              author:
                type: Reference
                short: The author of the section (person or device) if different from the author/timestamp of the document
                refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-organization-epr', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient-epr', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitioner-epr', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitionerrole-epr', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
                index: 33
                extensions: {}
                elements:
                  extension: {type: Extension, short: Timestamp of the authorship/data input, url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-time', index: 34}
                  reference: {index: 35}
                required: [reference]
              text: {short: Human readable text of this section, index: 36}
              entry:
                type: Reference
                short: Medication dispense
                refers: ['http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medicationdispense']
                index: 37
                elements:
                  reference: {index: 38}
                required: [reference]
              section: {index: 39}
            required: [entry, text, title, code]
        annotation:
          match:
            code:
              coding:
              - {code: 48767-8, system: 'http://loinc.org', display: Annotation comment}
          schema:
            short: Annotation
            index: 40
            elements:
              title:
                constraint:
                  ch-emed-sect-annoot: {human: '''Kommentar'' in german or ''Commentaire'' in french or ''Osservazione'' in talian or ''Comment'' in english                         or titles in other languages are also allowed', severity: error, expression: ($this='Kommentar' and %resource.language.startsWith('de')) or ($this='Commentaire' and %resource.language.startsWith('fr')) or ($this='Osservazione' and %resource.language.startsWith('it')) or ($this='Comment' and %resource.language.startsWith('en'))}
                index: 41
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 48767-8, system: 'http://loinc.org', display: Annotation comment}
                index: 42
              text: {short: Human readable text of this section, index: 43}
            required: [text, title, code]
  attester:
    short: The authenticator of the document (person)
    index: 20
    slicing:
      rules: open
      discriminator:
      - {path: mode, type: value}
      min: null
      slices:
        legalAuthenticator:
          match: {mode: null}
          schema:
            short: The legal authenticator of the document (person)
            index: 21
            elements:
              mode: {index: 22}
              time: {short: Timestamp of the signature, index: 23}
              party: {short: Who attested the composition, index: 24}
  type:
    short: Record artifact
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: '419891008', system: 'http://snomed.info/sct'}
    index: 9
  title:
    constraint:
      ch-emed-title-dis: {human: '''Abgabe'' in german or ''Remise'' in french or ''Dispensazione'' in talian or ''Dispense'' in english                         or titles in other languages are also allowed', severity: error, expression: ($this='Abgabe' and %resource.language.startsWith('de')) or ($this='Remise' and %resource.language.startsWith('fr')) or ($this='Dispensazione' and %resource.language.startsWith('it')) or ($this='Dispense' and %resource.language.startsWith('en'))}
    index: 16
  author:
    type: Reference
    short: The author of the document (person or device)
    refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-organization-epr', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient-epr', 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-practitioner', 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-practitionerrole', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
    index: 13
    extensions: {}
    elements:
      extension: {short: Timestamp of the authorship/data input, index: 14}
      reference: {index: 15}
  extension:
    index: 1
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        versionNumber:
          match: {url: null}
          schema: {short: Version number, index: 2}
        informationRecipient:
          match: {url: null}
          schema: {short: A recipient of this document (person or organization), index: 3}
        dataEnterer:
          match: {url: null}
          schema: {short: Person who entered information into this document if it is a person other than the author, index: 4}
  custodian:
    short: The organization in whose name the document has been created
    index: 25
    elements:
      reference: {index: 26}
  status:
    pattern: {type: Code, value: final}
    index: 8
  language: {short: Language of the document, index: 0}
  identifier:
    index: 5
    elements:
      system: {index: 6}
      value: {index: 7}
    required: [value, system]
  subject:
    short: A patient for whom this document instance was created
    index: 10
    elements:
      reference: {index: 11}
  confidentiality:
    index: 17
    extensions:
      confidentialityCode: {url: null, short: Swiss realm of confidentiality code according to the Swiss EPR regulation, index: 19}
    elements:
      extension:
        index: 18
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            confidentialityCode:
              match: {url: null}
              schema: {short: Swiss realm of confidentiality code according to the Swiss EPR regulation, index: 19}
package_version: emed-2.1.0
extensions:
  versionNumber: {url: null, short: Version number, index: 2}
  informationRecipient: {url: null, short: A recipient of this document (person or organization), index: 3}
  dataEnterer: {url: null, short: Person who entered information into this document if it is a person other than the author, index: 4}
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: 2.1.0
required: [section, custodian]