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.medicationprocess9 derivation: constraint name: MpMedicationAgreement type: MedicationRequest elements: category: index: 34 slicing: rules: open discriminator: - {path: $this, type: value} min: 1 slices: medicationAgreementCode: match: coding: - {code: '33633005', system: 'http://snomed.info/sct'} schema: pattern: type: CodeableConcept value: coding: - {code: '33633005', system: 'http://snomed.info/sct'} _required: true index: 35 min: 1 max: 1 encounter: type: Reference short: RelationEncounter refers: ['http://hl7.org/fhir/StructureDefinition/Encounter', 'http://nictiz.nl/fhir/StructureDefinition/nl-core-Encounter'] index: 47 reported: choices: [] index: 37 slicing: rules: open discriminator: - {path: $this, type: type} min: null slices: reportedBoolean: match: {} schema: short: CopyIndicator choices: [reportedBoolean] index: 39 reasonCode: short: ReasonModificationOrDiscontinuation binding: {strength: required, valueSet: 'http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.20.77.11.42--20221114132525'} index: 50 authoredOn: {short: MedicationAgreementDateTime, index: 48} note: index: 58 elements: text: {short: Comment, index: 59} extension: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.MedicationAgreementAdditionalInformation index: 0 slicing: slices: medicationAgreementAdditionalInformation: match: {} schema: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.MedicationAgreementAdditionalInformation index: 0 elements: value: choices: [] index: 2 renderedDosageInstruction: match: {} schema: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-RenderedDosageInstruction index: 3 elements: value: short: Description choices: [] index: 5 periodOfUse: match: {} schema: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval.Period index: 6 elements: value: extensions: {} elements: extension: elements: value: choices: [] index: 12 valuePeriod: {type: Period, short: PeriodOfUse, choiceOf: value, index: 9} value[x]: extensions: condition: {url: 'http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.PeriodOfUse.Condition', type: Extension, index: 10} elements: extension: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.PeriodOfUse.Condition index: 10 slicing: slices: condition: match: {} schema: {type: Extension, url: 'http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.PeriodOfUse.Condition', index: 10} pharmaceuticalTreatmentIdentifier: match: {} schema: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-PharmaceuticalTreatment.Identifier index: 13 elements: value: choices: [] index: 15 relationEpisodeOfCare: match: {} schema: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-Context-EpisodeOfCare index: 16 elements: value: short: RelationEpisodeOfCare choices: [] index: 18 nextPractitioner: match: {} schema: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.NextPractitioner index: 19 elements: value: choices: [] index: 21 registrationDateTime: match: {} schema: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-RegistrationDateTime index: 22 elements: value: choices: [] index: 24 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/nl-core-HealthProfessional-PractitionerRole'] index: 49 status: {index: 32} dosageInstruction: {type: Dosage, short: DosingInstructions / InstructionsForUse, index: 60} reportedBoolean: short: CopyIndicator type: boolean choiceOf: reported index: 40 slicing: slices: reportedBoolean: match: {} schema: {short: CopyIndicator, type: boolean, choiceOf: reported, index: 40} identifier: {short: Identification, index: 31} intent: {index: 33} basedOn: extensions: relationAdministrationAgreement: url: http://nictiz.nl/fhir/StructureDefinition/ext-RelationAdministrationAgreement type: Extension index: 52 elements: value: choices: [] index: 54 relationMedicationUse: url: http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.RelationMedicationUse type: Extension index: 55 elements: value: choices: [] index: 57 elements: extension: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-RelationAdministrationAgreement index: 52 slicing: slices: relationAdministrationAgreement: match: {} schema: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-RelationAdministrationAgreement index: 52 elements: value: choices: [] index: 54 relationMedicationUse: match: {} schema: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.RelationMedicationUse index: 55 elements: value: choices: [] index: 57 priorPrescription: type: Reference short: RelationMedicationAgreement refers: ['http://hl7.org/fhir/StructureDefinition/MedicationRequest', 'http://nictiz.nl/fhir/StructureDefinition/mp-MedicationAgreement'] index: 61 medicationReference: short: AgreedMedicine refers: ['http://hl7.org/fhir/StructureDefinition/Medication', 'http://nictiz.nl/fhir/StructureDefinition/mp-PharmaceuticalProduct'] type: Reference choiceOf: medication index: 45 slicing: slices: medicationReference: match: {} schema: short: AgreedMedicine refers: ['http://hl7.org/fhir/StructureDefinition/Medication', 'http://nictiz.nl/fhir/StructureDefinition/mp-PharmaceuticalProduct'] type: Reference choiceOf: medication index: 45 subject: type: Reference refers: ['http://hl7.org/fhir/StructureDefinition/Group', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://nictiz.nl/fhir/StructureDefinition/nl-core-Patient'] index: 46 modifierExtension: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-StopType index: 25 slicing: slices: stopType: match: {} schema: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-StopType index: 25 elements: value: short: MedicationAgreementStopType choices: [] index: 27 repeatPeriodCyclicalSchedule: match: {} schema: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-InstructionsForUse.RepeatPeriodCyclicalSchedule index: 28 elements: value: choices: [] index: 30 medication: choices: [] index: 42 slicing: rules: open discriminator: - {path: $this, type: type} min: null slices: medicationReference: match: {} schema: short: AgreedMedicine choices: [medicationReference] index: 44 reasonReference: short: PrescriptionReason refers: ['http://hl7.org/fhir/StructureDefinition/Condition', 'http://hl7.org/fhir/StructureDefinition/Observation', 'http://nictiz.nl/fhir/StructureDefinition/nl-core-Problem'] type: Reference index: 51 package_version: 2.0.0-beta.5 extensions: medicationAgreementAdditionalInformation: url: http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.MedicationAgreementAdditionalInformation type: Extension index: 0 elements: value: choices: [] index: 2 renderedDosageInstruction: url: http://nictiz.nl/fhir/StructureDefinition/ext-RenderedDosageInstruction type: Extension index: 3 elements: value: short: Description choices: [] index: 5 periodOfUse: url: http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval.Period type: Extension index: 6 elements: value: extensions: {} elements: extension: elements: value: choices: [] index: 12 valuePeriod: {type: Period, short: PeriodOfUse, choiceOf: value, index: 9} value[x]: extensions: condition: {url: 'http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.PeriodOfUse.Condition', type: Extension, index: 10} elements: extension: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.PeriodOfUse.Condition index: 10 slicing: slices: condition: match: {} schema: {type: Extension, url: 'http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.PeriodOfUse.Condition', index: 10} pharmaceuticalTreatmentIdentifier: url: http://nictiz.nl/fhir/StructureDefinition/ext-PharmaceuticalTreatment.Identifier type: Extension index: 13 elements: value: choices: [] index: 15 relationEpisodeOfCare: url: http://nictiz.nl/fhir/StructureDefinition/ext-Context-EpisodeOfCare type: Extension index: 16 elements: value: short: RelationEpisodeOfCare choices: [] index: 18 nextPractitioner: url: http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.NextPractitioner type: Extension index: 19 elements: value: choices: [] index: 21 registrationDateTime: url: http://nictiz.nl/fhir/StructureDefinition/ext-RegistrationDateTime type: Extension index: 22 elements: value: choices: [] index: 24 class: profile kind: resource url: http://nictiz.nl/fhir/StructureDefinition/mp-MedicationAgreement base: http://hl7.org/fhir/StructureDefinition/MedicationRequest version: 2.0.0-beta.5 required: [category]