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: healthdata.be.r4.cbb derivation: constraint name: HdBeMedicationAgreement type: MedicationRequest elements: category: index: 17 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: 18 min: 1 max: 1 reasonCode: short: ReasonMedicationAgreement binding: {strength: required, valueSet: 'https://fhir.healthdata.be/ValueSet/MedicationReason'} index: 27 authoredOn: {short: MedicationAgreementDateTime, index: 25} note: index: 29 elements: text: {short: Comment, index: 30} extension: type: Extension url: https://fhir.healthdata.be/StructureDefinition/ext-MedicationAgreement.MedicationAgreementAdditionalInformation index: 0 slicing: slices: medicationAgreementAdditionalInformation: match: {} schema: type: Extension url: https://fhir.healthdata.be/StructureDefinition/ext-MedicationAgreement.MedicationAgreementAdditionalInformation index: 0 elements: value: choices: [] index: 2 renderedDosageInstruction: match: {} schema: type: Extension url: https://fhir.healthdata.be/StructureDefinition/ext-RenderedDosageInstruction index: 3 elements: value: short: Description choices: [] index: 5 periodOfUse: match: {} schema: type: Extension url: https://fhir.healthdata.be/StructureDefinition/ext-TimeInterval.Period index: 6 elements: value: short: PeriodOfUse choices: [] index: 8 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', 'https://fhir.healthdata.be/StructureDefinition/HdBe-HealthProfessional-PractitionerRole'] index: 26 status: {index: 15} dosageInstruction: {type: Dosage, short: DosingInstructions / InstructionsForUse, index: 31} intent: {index: 16} medicationReference: short: AgreedMedicine refers: ['http://hl7.org/fhir/StructureDefinition/Medication', 'https://fhir.healthdata.be/StructureDefinition/HdBe-PharmaceuticalProduct'] type: Reference choiceOf: medication index: 23 slicing: slices: medicationReference: match: {} schema: short: AgreedMedicine refers: ['http://hl7.org/fhir/StructureDefinition/Medication', 'https://fhir.healthdata.be/StructureDefinition/HdBe-PharmaceuticalProduct'] type: Reference choiceOf: medication index: 23 subject: type: Reference refers: ['http://hl7.org/fhir/StructureDefinition/Group', 'https://fhir.healthdata.be/StructureDefinition/HdBe-Patient'] index: 24 modifierExtension: type: Extension url: https://fhir.healthdata.be/StructureDefinition/ext-StopType index: 9 slicing: slices: stopType: match: {} schema: type: Extension url: https://fhir.healthdata.be/StructureDefinition/ext-StopType index: 9 elements: value: short: MedicationAgreementStopType choices: [] index: 11 repeatPeriodCyclicalSchedule: match: {} schema: type: Extension url: https://fhir.healthdata.be/StructureDefinition/ext-InstructionsForUse.RepeatPeriodCyclicalSchedule index: 12 elements: value: choices: [] index: 14 medication: choices: [] index: 20 slicing: rules: open discriminator: - {path: $this, type: type} min: null slices: medicationReference: match: {} schema: short: AgreedMedicine choices: [medicationReference] index: 22 reasonReference: short: PrescriptionReason refers: ['http://hl7.org/fhir/StructureDefinition/Condition', 'http://hl7.org/fhir/StructureDefinition/Observation', 'https://fhir.healthdata.be/StructureDefinition/HdBe-Problem'] type: Reference index: 28 package_version: 0.13.0-beta extensions: medicationAgreementAdditionalInformation: url: https://fhir.healthdata.be/StructureDefinition/ext-MedicationAgreement.MedicationAgreementAdditionalInformation type: Extension index: 0 elements: value: choices: [] index: 2 renderedDosageInstruction: url: https://fhir.healthdata.be/StructureDefinition/ext-RenderedDosageInstruction type: Extension index: 3 elements: value: short: Description choices: [] index: 5 periodOfUse: url: https://fhir.healthdata.be/StructureDefinition/ext-TimeInterval.Period type: Extension index: 6 elements: value: short: PeriodOfUse choices: [] index: 8 class: profile kind: resource url: https://fhir.healthdata.be/StructureDefinition/HdBe-MedicationAgreement base: http://hl7.org/fhir/StructureDefinition/MedicationRequest version: null required: [category]