description: A medication agreement is a prescriber’s proposal for a patient to use medication. An agreement to discontinue the use of medication is also a medication agreement. package_name: nictiz.fhir.nl.r4.zib2020 derivation: constraint name: ZibMedicationAgreement abstract: true type: MedicationRequest elements: category: index: 15 slicing: rules: open discriminator: - {path: $this, type: value} min: 1 slices: medicationAgreementCode: match: coding: - {code: '16076005', system: 'http://snomed.info/sct'} schema: pattern: type: CodeableConcept value: coding: - {code: '16076005', system: 'http://snomed.info/sct'} _required: true index: 16 min: 1 max: 1 reasonCode: short: ReasonMedicationAgreement binding: {strength: required, valueSet: 'http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.9.6.2--20200901000000'} index: 24 authoredOn: {short: MedicationAgreementDateTime, index: 22} note: index: 26 elements: text: {short: Comment, index: 27} extension: index: 0 slicing: rules: open discriminator: - {path: url, type: value} min: 0 slices: medicationAgreementAdditionalInformation: match: {url: null} schema: {type: Extension, url: 'http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.MedicationAgreementAdditionalInformation', index: 1} min: 0 renderedDosageInstruction: match: {url: null} schema: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-RenderedDosageInstruction index: 2 elements: value: short: Description choices: [] index: 4 periodOfUse: match: {url: null} schema: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval.Period index: 5 elements: value: short: PeriodOfUse choices: [] index: 7 requester: type: Reference short: Prescriber refers: ['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://nictiz.nl/fhir/StructureDefinition/zib-HealthProfessional-PractitionerRole'] index: 23 status: {index: 13} dosageInstruction: {type: Dosage, short: DosingInstructions / InstructionsForUse, index: 28} intent: {index: 14} medicationReference: short: AgreedMedicine refers: ['http://hl7.org/fhir/StructureDefinition/Medication', 'http://nictiz.nl/fhir/StructureDefinition/zib-PharmaceuticalProduct'] type: Reference choiceOf: medication index: 21 slicing: slices: medicationReference: match: {} schema: short: AgreedMedicine refers: ['http://hl7.org/fhir/StructureDefinition/Medication', 'http://nictiz.nl/fhir/StructureDefinition/zib-PharmaceuticalProduct'] type: Reference choiceOf: medication index: 21 modifierExtension: index: 8 slicing: rules: open discriminator: - {path: url, type: value} min: 0 slices: stopType: match: {url: null} schema: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-StopType index: 9 elements: value: short: MedicationAgreementStopType choices: [] index: 11 repeatPeriodCyclicalSchedule: match: {url: null} schema: {type: Extension, url: 'http://nictiz.nl/fhir/StructureDefinition/ext-InstructionsForUse.RepeatPeriodCyclicalSchedule', index: 12} min: 0 medication: choices: [] index: 18 slicing: rules: open discriminator: - {path: $this, type: type} min: null slices: medicationReference: match: {} schema: short: AgreedMedicine choices: [medicationReference] index: 20 reasonReference: short: PrescriptionReason refers: ['http://hl7.org/fhir/StructureDefinition/Condition', 'http://hl7.org/fhir/StructureDefinition/Observation', 'http://nictiz.nl/fhir/StructureDefinition/zib-Problem'] type: Reference index: 25 package_version: 0.2.0-beta1 extensions: medicationAgreementAdditionalInformation: {url: 'http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.MedicationAgreementAdditionalInformation', min: 0, type: Extension, index: 1} renderedDosageInstruction: url: http://nictiz.nl/fhir/StructureDefinition/ext-RenderedDosageInstruction type: Extension index: 2 elements: value: short: Description choices: [] index: 4 periodOfUse: url: http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval.Period type: Extension index: 5 elements: value: short: PeriodOfUse choices: [] index: 7 class: profile kind: resource url: http://nictiz.nl/fhir/StructureDefinition/zib-MedicationAgreement base: http://hl7.org/fhir/StructureDefinition/MedicationRequest version: null required: [category]