description: Definition of the medication request package_name: ch.fhir.ig.ch derivation: constraint name: CHEMEDMedicationRequest type: MedicationRequest elements: substitution: short: Any restrictions on medication substitution index: 19 elements: allowedCodeableConcept: binding: {strength: preferred, valueSet: 'http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode'} index: 20 dispenseRequest: short: Medication supply authorization index: 16 elements: numberOfRepeatsAllowed: {short: Repeated supply per medication, index: 17} quantity: {short: Number of packages, index: 18} required: [numberOfRepeatsAllowed] reasonCode: short: Treatment reason index: 10 elements: text: {index: 11} note: {short: Annotation, index: 12} extension: index: 1 slicing: rules: open discriminator: - {path: url, type: value} min: null slices: 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: 2} min: 0 max: 1 contained: {short: Medication inline resource, index: 0} status: pattern: {type: Code, value: completed} index: 6 dosageInstruction: short: How the medication should be taken index: 13 slicing: rules: open discriminator: - {path: $this, type: profile} min: 1 slices: nonstructured: match: {} schema: {type: Dosage, short: Free text dosage instructions, _required: true, index: 14} min: 1 max: 1 structured: match: {} schema: {type: Dosage, short: Structured dosage instructions, index: 15} identifier: short: Prescription item ID index: 3 elements: system: {index: 4} value: {index: 5} medicationReference: type: Reference short: Reference to the contained medication refers: ['http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medication-medicationrequest'] index: 7 subject: type: Reference short: Patient refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-composition-patient-epr'] index: 8 elements: reference: {index: 9} required: [reference] package_version: emed-0.1.0 extensions: 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: 2} class: profile kind: resource url: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medicationrequest base: http://hl7.org/fhir/StructureDefinition/MedicationRequest version: 0.1.0 required: [dosageInstruction, dispenseRequest, contained]