PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch-core@5.0.0
    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
  medication:
    choices: [medicationCodeableConcept, medicationReference]
    index: 3
  medicationCodeableConcept: {type: CodeableConcept, choiceOf: medication, index: 4}
  medicationReference:
    type: Reference
    choiceOf: medication
    refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-medication']
    index: 5
  subject:
    type: Reference
    refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient', 'http://hl7.org/fhir/StructureDefinition/Group']
    index: 6
  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://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
        index: 7
  dosageInstruction: {type: Dosage, index: 8}
  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: 9
    elements:
      wasSubstituted: {short: Whether a substitution was (true) or was not (false) performed on the dispense, index: 10}
      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: 11
package_version: 5.0.0
extensions:
  treatmentReason: {url: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentreason', min: 0, type: Extension, index: 1}
class: profile
kind: resource
url: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-medicationdispense
base: http://hl7.org/fhir/StructureDefinition/MedicationDispense
version: 5.0.0