PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch-emr@1.0.0-ballot
    http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-medicationstatement
description: Medication Statement for the Swiss Emergency Record. Captures a medication the patient is taking with a treatment reason, a dose quantity, and a dosing schedule expressed using the CH EMED dosage pattern.
package_name: ch.fhir.ig.ch-emr
derivation: constraint
name: ChEmrMedicationStatement
type: MedicationStatement
elements:
  medication:
    choices: []
    index: 1
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: type}
      min: null
      slices:
        medicationReference:
          match: {}
          schema:
            choices: [medicationReference]
            index: 3
          min: 0
          max: 1
  medicationReference:
    type: Reference
    choiceOf: medication
    refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-medication']
    index: 4
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            type: Reference
            choiceOf: medication
            refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-medication']
            index: 4
          min: 0
          max: 1
  reasonCode:
    constraint:
      ch-emr-reasoncode-content: {human: A reasonCode must carry at least text or one coding., source: 'http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-medicationstatement', severity: error, expression: text.exists() or coding.exists()}
    mustSupport: true
    index: 5
  reasonReference:
    type: Reference
    mustSupport: true
    refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-condition']
    index: 6
  dosage:
    mustSupport: true
    index: 7
    slicing:
      rules: closed
      discriminator:
      - {path: $this, type: profile}
      min: null
      slices:
        baseEntry:
          match: {}
          schema: {type: Dosage, mustSupport: true, index: 8}
          min: 0
          max: 1
        additionalEntry:
          match: {}
          schema: {type: Dosage, mustSupport: true, array: true, index: 9}
          min: 0
package_version: 1.0.0-ballot
class: profile
kind: resource
url: http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-medicationstatement
base: http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-medicationstatement
version: 1.0.0-ballot