PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch@emed-5.0.0-ballot
    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: 5}
  section:
    short: Medication list
    index: 12
    slicing:
      slices:
        list:
          match: {}
          schema:
            _required: true
            index: 13
            elements:
              title:
                short: "'Medikamentenliste' in german or 'Liste de médicaments' in french or 'Lista farmaci' in italian or 'Medication List' in english\r\n                        or titles in other languages are also allowed"
                index: 14
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 10160-0, system: 'http://loinc.org'}
                index: 15
              text: {short: Human readable text of this section, index: 16}
              entry:
                index: 17
                slicing:
                  rules: open
                  discriminator:
                  - {path: $this.resolve(), type: profile}
                  min: null
                  slices:
                    medicationStatement:
                      match: {}
                      schema:
                        type: Reference
                        short: MedicationStatement (from MTP)
                        refers: ['http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medicationstatement-list']
                        array: true
                        index: 18
                        elements:
                          reference: {index: 19}
                        required: [reference]
                    medicationRequest:
                      match: {}
                      schema:
                        type: Reference
                        short: MedicationRequest (from PRE)
                        refers: ['http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medicationrequest-list']
                        array: true
                        index: 20
                        elements:
                          reference: {index: 21}
                        required: [reference]
                    medicationDispense:
                      match: {}
                      schema:
                        type: Reference
                        short: MedicationDispense or MedicationAdministration (from DIS)
                        refers: ['http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medicationadministration-list', 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medicationdispense-list']
                        array: true
                        index: 22
                        elements:
                          reference: {index: 23}
                        required: [reference]
                    observation:
                      match: {}
                      schema:
                        type: Reference
                        short: Observation (from PADV)
                        refers: ['http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-observation-list']
                        array: true
                        index: 24
                        elements:
                          reference: {index: 25}
                        required: [reference]
              section: {index: 26}
            required: [text, title, code]
        annotation:
          match: {}
          schema:
            short: Annotation
            index: 27
            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: 28
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 48767-8, system: 'http://loinc.org'}
                index: 29
              text: {short: Human readable text of this section, index: 30}
              section: {index: 31}
            required: [text, title, code]
  attester:
    short: The authenticator of the document (person)
    index: 9
    slicing:
      slices:
        legalAuthenticator:
          match: {}
          schema:
            short: The legal authenticator of the document (person)
            index: 10
            elements:
              time: {short: Timestamp of the signature, index: 11}
  type:
    short: Medication summary document (record artifact)
    constraint:
      ch-emed-comp-list: {human: 'If a LOINC code is additionally provided, ''56445-0'' shall be used for this document type.', source: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-composition-medicationlist', severity: error, expression: 'coding.exists(system = ''http://loinc.org'') implies (coding.exists(system = ''http://loinc.org'' and code = ''56445-0''))'}
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: '721912009', system: 'http://snomed.info/sct'}
    index: 3
  title:
    short: "'Medikationsliste' in german or 'Liste de médication' in french or 'Elenco delle terapie farmacologiche' in italian or Medication List' in english\r\n                        or titles in other languages are also allowed"
    index: 7
  author:
    type: Reference
    short: The author of the document (device, which dynamically generates the document)
    refers: ['http://hl7.org/fhir/StructureDefinition/Device']
    index: 6
  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: 8}
    elements:
      extension:
        short: Swiss realm of confidentiality code according to the Swiss EPR regulation
        index: 8
        slicing:
          slices:
            confidentialityCode:
              match: {}
              schema: {short: Swiss realm of confidentiality code according to the Swiss EPR regulation, index: 8}
package_version: emed-5.0.0-ballot
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: 5.0.0-ballot
required: [section]