description: Definition of the medication request for the medication prescription document package_name: ch.fhir.ig.ch derivation: constraint name: CHEMEDMedicationRequest type: MedicationRequest elements: substitution: index: 20 elements: allowedCodeableConcept: binding: {strength: preferred, valueSet: 'http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode'} index: 21 dispenseRequest: short: Medication supply authorization index: 14 elements: validityPeriod: short: Period of validity of the prescription index: 15 elements: start: {index: 16} end: {index: 17} numberOfRepeatsAllowed: {short: Repeated supply per medication (without initial dispense), index: 18} quantity: {short: Number of packages, index: 19} reasonCode: short: Treatment reason index: 9 elements: text: {index: 10} 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} dosageInstruction: short: How the medication should be taken index: 11 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: 12} min: 1 max: 1 additionalEntry: match: {} schema: {type: Dosage, short: Additional entry of the dosage instruction, array: true, index: 13} min: 0 identifier: short: MedicationRequest Identifier 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: 6 subject: type: Reference short: Patient refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient'] index: 7 elements: reference: {index: 8} required: [reference] package_version: emed-3.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: 3.0.0 required: [dosageInstruction, identifier, contained]