description: Definition of the medication request for the medication prescription document package_name: ch.fhir.ig.ch-emed derivation: constraint name: CHEMEDMedicationRequest type: MedicationRequest elements: substitution: elements: allowed: choices: [allowedCodeableConcept] index: 22 slicing: slices: allowedCodeableConcept: match: {} schema: choices: [allowedCodeableConcept] index: 22 allowedCodeableConcept: type: CodeableConcept choiceOf: allowed index: 23 slicing: slices: allowedCodeableConcept: match: {} schema: {type: CodeableConcept, choiceOf: allowed, index: 23} dispenseRequest: elements: validityPeriod: {short: Period of validity of the prescription, index: 18} numberOfRepeatsAllowed: {short: Repeated supply per medication (without initial dispense), index: 19} quantity: {short: Number of packages, index: 20} reasonCode: {short: Treatment reason, index: 14} authoredOn: {index: 11} 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: {index: 0} requester: type: Reference short: The author of the medical decision, see also 'Guidance - Authorship' refers: ['http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-practitionerrole'] index: 12 elements: reference: {index: 13} required: [reference] dosageInstruction: index: 15 slicing: rules: closed discriminator: - {path: $this, type: profile} min: 1 slices: baseEntry: match: {} schema: {type: Dosage, short: Base entry of the dosage instruction, _required: true, index: 16} min: 1 max: 1 additionalEntry: match: {} schema: {type: Dosage, short: Additional entry of the dosage instruction, array: true, index: 17} min: 0 identifier: {type: Identifier, short: MedicationRequest Identifier, index: 3} medicationReference: short: Reference to the contained medication refers: ['http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medication'] type: Reference choiceOf: medication index: 8 slicing: slices: medicationReference: match: {} schema: short: Reference to the contained medication refers: ['http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medication'] type: Reference choiceOf: medication index: 8 min: 0 max: 1 subject: type: Reference short: Patient refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient'] index: 9 elements: reference: {index: 10} required: [reference] medication: choices: [] index: 5 slicing: rules: open ordered: false discriminator: - {path: $this, type: type} min: null slices: medicationReference: match: {} schema: short: Reference to the contained medication choices: [medicationReference] index: 7 min: 0 max: 1 package_version: 6.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://fhir.ch/ig/ch-core/StructureDefinition/ch-core-medicationrequest version: 6.0.0 required: [authoredOn, dosageInstruction, requester, identifier, contained]