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: 20 elements: allowedCodeableConcept: binding: {strength: preferred, valueSet: 'http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode'} index: 21 dispenseRequest: short: Medication supply authorization index: 17 elements: numberOfRepeatsAllowed: {short: Repeated supply per medication, index: 18} quantity: {short: Number of packages, index: 19} 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, index: 14} min: 0 max: 1 structurednormal: match: {} schema: {type: Dosage, short: Structured Normal Dosing, index: 15} min: 0 max: 1 structuredsplit: match: {} schema: {type: Dosage, short: Structured Split Dsosing, array: true, index: 16} min: 0 identifier: short: Prescription item ID index: 3 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} index: 4 value: {short: identifier value as uuid, index: 5} required: [value, system] medicationReference: type: Reference short: Reference to the contained medication refers: ['http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medication'] index: 7 subject: type: Reference short: Patient refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient'] index: 8 elements: reference: {index: 9} required: [reference] package_version: emed-1.0.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: 1.0.0 required: [dosageInstruction, identifier, dispenseRequest, contained]