PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch-core@7.0.0-ballot
    http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-medicationdispense
description: Base definition of the MedicationDispense resource for use in Swiss specific use cases.
package_name: ch.fhir.ig.ch-core
derivation: constraint
name: CHCoreMedicationDispense
type: MedicationDispense
elements:
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        treatmentReason:
          match: {url: null}
          schema: {type: Extension, url: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentreason', index: 1}
          min: 0
        indicationCode:
          match: {url: null}
          schema: {type: Extension, url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epl-regulated-authorization-limitation-indication-code', index: 2}
          min: 0
          max: 1
  medication:
    choices: [medicationCodeableConcept, medicationReference]
    index: 4
  medicationCodeableConcept: {type: CodeableConcept, choiceOf: medication, index: 5}
  medicationReference:
    type: Reference
    choiceOf: medication
    refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-medication']
    index: 6
  subject:
    type: Reference
    refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient', 'http://hl7.org/fhir/StructureDefinition/Group']
    index: 7
  performer:
    elements:
      actor:
        type: Reference
        refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-organization', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitioner', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitionerrole', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-relatedperson', 'http://hl7.org/fhir/StructureDefinition/Device']
        index: 8
  dosageInstruction: {type: Dosage, index: 9}
  substitution:
    constraint:
      ch-meddis-1: {human: 'If no substitution was performed, no type is expected.', source: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-medicationdispense', severity: warning, expression: wasSubstituted = true or (wasSubstituted = false and type.exists().not())}
    index: 10
    elements:
      wasSubstituted: {short: Whether a substitution was (true) or was not (false) performed on the dispense, index: 11}
      type:
        short: If 'wasSubstituted = true', the type can be defined in addition (optional). If 'wasSubstituted = false', no type is expected.
        binding: {strength: preferred, valueSet: 'http://fhir.ch/ig/ch-term/ValueSet/ActSubstanceAdminSubstitutionCode'}
        index: 12
package_version: 7.0.0-ballot
extensions:
  treatmentReason: {url: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentreason', min: 0, type: Extension, index: 1}
  indicationCode: {url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epl-regulated-authorization-limitation-indication-code', min: 0, max: 1, type: Extension, index: 2}
class: profile
kind: resource
url: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-medicationdispense
base: http://hl7.org/fhir/StructureDefinition/MedicationDispense
version: 7.0.0-ballot