PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch@emed-4.0.1
    http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-composition-medicationtreatmentplan
description: Definition of the composition for the medication treatment plan document
package_name: ch.fhir.ig.ch
derivation: constraint
name: CHEMEDCompositionMedicationTreatmentPlan
type: Composition
elements:
  date: {short: The document's creation date and time, index: 5}
  section:
    index: 14
    slicing:
      slices:
        treatmentPlan:
          match: {}
          schema:
            short: Medication treatment plan
            _required: true
            index: 15
            elements:
              title:
                short: "'Medikamentöser Behandlungsplan' in german or 'Plan de traitement médicamenteux' in french or 'Piano terapeutico farmacologico' in italian or 'Medication Treatment Plan' in english\r\n                        or titles in other languages are also allowed"
                index: 16
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 77604-7, system: 'http://loinc.org'}
                index: 17
              text: {short: Human readable text of this section, index: 18}
              entry:
                type: Reference
                short: Medication statement
                refers: ['http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medicationstatement']
                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 treatment plan report (record artifact)
    constraint:
      ch-emed-comp-mtp: {human: 'If a LOINC code is additionally provided, ''77603-9'' shall be used for this document type.', source: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-composition-medicationtreatmentplan', severity: error, expression: 'coding.exists(system = ''http://loinc.org'') and (coding.exists(system = ''http://loinc.org'' and code = ''77603-9''))'}
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: '761931002', system: 'http://snomed.info/sct'}
    index: 3
  title:
    short: "'Therapieentscheid Medikation' in german or 'Décision thérapeutique relative à la médication' in french or 'Decisione terapeutica di trattamento farmacologico' in italian or 'Medication Treatment Plan' 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: emed-4.0.1
class: profile
kind: resource
url: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-composition-medicationtreatmentplan
base: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-composition-epr
version: 4.0.1
required: [section]