PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch@emed-0.1.1
    http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-composition-medicationlist
description: Definition of the composition for the medication list document
package_name: ch.fhir.ig.ch
derivation: constraint
name: CHEMEDCompositionMedicationList
type: Composition
elements:
  date: {short: The document's creation date and time, index: 13}
  section:
    short: Medication list
    index: 28
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: code, type: pattern}
      min: 1
      slices:
        list:
          match:
            code:
              coding:
              - {code: 10160-0, system: 'http://loinc.org', display: History of medication use}
          schema:
            short: Medication list
            _required: true
            index: 29
            extensions:
              sectionId: {url: null, index: 31}
            elements:
              extension:
                index: 30
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    sectionId:
                      match: {url: null}
                      schema: {index: 31}
              title: {short: '''Medikamentenliste'' in german or ''Liste de médicaments'' in french or ''Lista farmaci'' in italian or ''Medication List'' in english                         or titles in other languages are also allowed', index: 32}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 10160-0, system: 'http://loinc.org', display: History of medication use}
                index: 33
              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-composition-patient-epr', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-organization-epr', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitioner-epr', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitionerrole', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
                index: 34
                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: 35}
                  reference: {index: 36}
                required: [reference]
              text: {short: Human readable text of this section, index: 37}
              entry:
                index: 38
                slicing:
                  rules: open
                  discriminator:
                  - {path: $this.resolve(), type: profile}
                  min: null
                  slices:
                    medicationTreatmentPlan:
                      match: {}
                      schema:
                        type: Reference
                        short: Medication treatment plan
                        refers: ['http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medicationstatement-treatmentplan']
                        array: true
                        index: 39
                        elements:
                          reference: {index: 40}
                        required: [reference]
                    medicationPrescription:
                      match: {}
                      schema:
                        type: Reference
                        short: Medication prescription
                        refers: ['http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medicationrequest']
                        array: true
                        index: 41
                        elements:
                          reference: {index: 42}
                        required: [reference]
                    medicationDispense:
                      match: {}
                      schema:
                        type: Reference
                        short: Medication dispense
                        refers: ['http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medicationdispense']
                        array: true
                        index: 43
                        elements:
                          reference: {index: 44}
                        required: [reference]
                    pharmaceuticalAdvice:
                      match: {}
                      schema:
                        type: Reference
                        short: Pharmaceutical advice
                        refers: ['http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-observation']
                        array: true
                        index: 45
                        elements:
                          reference: {index: 46}
                        required: [reference]
              section: {index: 47}
            required: [text, title, code]
  attester:
    short: The authenticator of the document (person)
    index: 21
    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: 22
            elements:
              mode: {index: 23}
              time: {short: Timestamp of the signature, index: 24}
              party: {short: Who attested the composition, index: 25}
  type:
    short: Document type
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: '721912009', system: 'http://snomed.info/sct', display: Medication summary document (record artifact)}
    index: 10
  title: {short: '''Medikationsliste'' in german or ''Liste de médication'' in french or ''Elenco delle terapie farmacologiche'' in italian or ''Medication List'' in english                         or titles in other languages are also allowed', index: 17}
  author:
    short: The author of the document (person or device)
    index: 14
    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: 15}
      reference: {index: 16}
  extension:
    index: 1
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        setId:
          match: {url: null}
          schema: {short: Set ID, index: 2}
        versionNumber:
          match: {url: null}
          schema: {short: Version number, index: 3}
        informationRecipient:
          match: {url: null}
          schema: {short: A recipient of this document (person or organization), index: 4}
        dataEnterer:
          match: {url: null}
          schema: {short: Person who entered information into this document if it is a person other than the author, index: 5}
  custodian:
    short: The organization in whose name the document has been created
    index: 26
    elements:
      reference: {index: 27}
  status:
    pattern: {type: Code, value: final}
    index: 9
  language: {short: Language of the document, index: 0}
  identifier:
    short: Identification number of the document
    index: 6
    elements:
      system: {index: 7}
      value: {index: 8}
  subject:
    short: A patient for whom this document instance was created
    index: 11
    elements:
      reference: {index: 12}
  confidentiality:
    index: 18
    extensions:
      confidentialityCode: {url: null, short: Swiss realm of confidentiality code according to the Swiss EPR regulation, index: 20}
    elements:
      extension:
        index: 19
        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: 20}
package_version: emed-0.1.1
extensions:
  setId: {url: null, short: Set ID, index: 2}
  versionNumber: {url: null, short: Version number, index: 3}
  informationRecipient: {url: null, short: A recipient of this document (person or organization), index: 4}
  dataEnterer: {url: null, short: Person who entered information into this document if it is a person other than the author, index: 5}
class: profile
kind: resource
url: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-composition-medicationlist
base: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-composition-epr
version: 0.1.1
required: [section]