description: Definition of the medication dispense package_name: ch.fhir.ig.ch derivation: constraint name: CHEMEDMedicationDispense type: MedicationDispense elements: whenHandedOver: {short: When product was given out, index: 14} substitution: short: Whether a substitution was performed on the dispense index: 20 elements: wasSubstituted: {short: Whether a substitution was or was not performed on the dispense, index: 21} type: short: Code signifying whether a different drug was dispensed from what was prescribed binding: {strength: preferred, valueSet: 'http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode'} index: 22 required: [type] note: {short: Annotation, index: 15} extension: index: 1 slicing: rules: open discriminator: - {path: url, type: value} min: null slices: treatmentReason: match: {url: null} schema: {type: Extension, short: Treatment reason, url: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentreason', index: 2} min: 0 max: 1 prescription: match: {url: null} schema: {type: Extension, short: Reference to the medication prescription, url: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-prescription', index: 3} min: 0 max: 1 pharmaceuticalAdvice: match: {url: null} schema: {type: Extension, short: Reference to the pharmaceutical advice, url: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-pharmaceuticaladvice', index: 4} min: 0 max: 1 treatmentPlan: match: {url: null} schema: {type: Extension, short: Reference to the medication treatment plan, url: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentplan', index: 5} min: 0 max: 1 contained: {short: Medication inline resource, index: 0} status: pattern: {type: Code, value: completed} index: 9 dosageInstruction: short: How the medication should be taken index: 16 slicing: rules: open discriminator: - {path: $this, type: profile} min: 1 slices: nonstructured: match: {} schema: {type: Dosage, short: Free text dosage instructions, index: 17} min: 0 max: 1 structurednormal: match: {} schema: {type: Dosage, short: Structured Normal Dosing, index: 18} min: 0 max: 1 structuredsplit: match: {} schema: {type: Dosage, short: Structured Split Dosing, array: true, index: 19} min: 0 identifier: short: MedicationDispense Identifier index: 6 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} index: 7 value: {short: Identifier value as UUID, index: 8} required: [value, system] medicationReference: type: Reference short: Reference to the contained medication refers: ['http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medication-medicationdispense'] index: 10 quantity: {short: Number of packages, index: 13} subject: type: Reference short: Patient refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient'] index: 11 elements: reference: {index: 12} required: [reference] package_version: emed-2.0.0 extensions: treatmentReason: {url: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentreason', min: 0, max: 1, type: Extension, short: Treatment reason, index: 2} prescription: {url: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-prescription', min: 0, max: 1, type: Extension, short: Reference to the medication prescription, index: 3} pharmaceuticalAdvice: {url: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-pharmaceuticaladvice', min: 0, max: 1, type: Extension, short: Reference to the pharmaceutical advice, index: 4} treatmentPlan: {url: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentplan', min: 0, max: 1, type: Extension, short: Reference to the medication treatment plan, index: 5} class: profile kind: resource url: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medicationdispense base: http://hl7.org/fhir/StructureDefinition/MedicationDispense version: 2.0.0 required: [dosageInstruction, quantity, identifier, contained]