PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch@emed-4.0.0-ballot
    http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-substitution
description: This extension is used to indicate whether the medication can be substituted for this patient, i.e. whether it is allowed. \n                        (For a prescription, MedicationRequest.substitution is used to record whether a substitution is allowed or not. \n                        When dispensing, a performed substitution is recorded in MedicationDispense.substitution.)
package_name: ch.fhir.ig.ch
derivation: constraint
name: CHEMEDExtSubstitution
type: Extension
elements:
  extension: {index: 0}
  url:
    pattern: {type: Uri, value: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-substitution'}
    index: 1
  value:
    choices: []
    index: 3
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: type}
      min: 1
      slices:
        valueCodeableConcept:
          match: {}
          schema:
            short: Whether substitution is allowed or not
            choices: [valueCodeableConcept]
            _required: true
            index: 5
          min: 1
          max: 1
  valueCodeableConcept:
    type: CodeableConcept
    short: Whether substitution is allowed or not
    choiceOf: value
    index: 6
    slicing:
      slices:
        valueCodeableConcept:
          match: {}
          schema: {type: CodeableConcept, short: Whether substitution is allowed or not, choiceOf: value, _required: true, index: 6}
          min: 1
          max: 1
package_version: emed-4.0.0-ballot
extensions: {}
class: extension
kind: complex-type
url: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-substitution
base: http://hl7.org/fhir/StructureDefinition/Extension
version: 4.0.0-ballot
required: [value, valueCodeableConcept]