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: rs/nictiz.fhir.nl.r4.medicationprocess9 derivation: constraint name: MpMedicationAgreement type: MedicationRequest elements: category: pattern: type: CodeableConcept value: coding: - {code: '33633005', system: 'http://snomed.info/sct'} type: CodeableConcept index: 34 encounter: type: Reference short: RelationContact refers: ['http://hl7.org/fhir/StructureDefinition/Encounter', 'http://nictiz.nl/fhir/StructureDefinition/nl-core-Encounter'] index: 46 reported: choices: [] index: 36 slicing: rules: open discriminator: - {path: $this, type: type} min: null slices: reportedBoolean: match: {} schema: short: CopyIndicator choices: [reportedBoolean] index: 38 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: 49 authoredOn: {short: MedicationAgreementDateTime, index: 47} note: index: 58 elements: text: {short: Comment, index: 59} 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 elements: value: choices: [] index: 3 renderedDosageInstruction: match: {url: null} schema: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-RenderedDosageInstruction index: 4 elements: value: short: Description choices: [] index: 6 periodOfUse: match: {url: null} schema: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval.Period index: 7 elements: value: extensions: {} elements: extension: elements: value: choices: [] index: 14 valuePeriod: {type: Period, short: PeriodOfUse, choiceOf: value, index: 10} value[x]: extensions: condition: {url: 'http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.PeriodOfUse.Condition', min: 0, type: Extension, index: 12} elements: extension: index: 11 slicing: rules: open discriminator: - {path: url, type: value} min: 0 slices: condition: match: {url: null} schema: {type: Extension, url: 'http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.PeriodOfUse.Condition', index: 12} min: 0 pharmaceuticalTreatmentIdentifier: match: {url: null} schema: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-PharmaceuticalTreatment.Identifier index: 15 elements: value: choices: [] index: 17 relationEpisodeOfCare: match: {url: null} schema: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-Context-EpisodeOfCare index: 18 elements: value: short: RelationEpisodeOfCare choices: [] index: 20 nextPractitioner: match: {url: null} schema: type: Extension isModifier: false url: http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.NextPractitioner index: 21 elements: value: choices: [] index: 23 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: 48 status: {index: 32} dosageInstruction: {type: Dosage, short: DosingInstructions / InstructionsForUse, index: 60} reportedBoolean: short: CopyIndicator type: boolean choiceOf: reported index: 39 slicing: slices: reportedBoolean: match: {} schema: {short: CopyIndicator, type: boolean, choiceOf: reported, index: 39} 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: index: 51 slicing: rules: open discriminator: - {path: url, type: value} min: 0 slices: relationAdministrationAgreement: match: {url: null} schema: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-RelationAdministrationAgreement index: 52 elements: value: choices: [] index: 54 relationMedicationUse: match: {url: null} 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: 44 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: 44 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: 45 modifierExtension: index: 24 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: 25 elements: value: short: MedicationAgreementStopType choices: [] index: 27 repeatPeriodCyclicalSchedule: match: {url: null} schema: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-InstructionsForUse.RepeatPeriodCyclicalSchedule index: 28 elements: value: choices: [] index: 30 medication: choices: [] index: 41 slicing: rules: open discriminator: - {path: $this, type: type} min: null slices: medicationReference: match: {} schema: short: AgreedMedicine choices: [medicationReference] index: 43 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: 50 package_version: 2.0.0-beta.1 extensions: medicationAgreementAdditionalInformation: url: http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.MedicationAgreementAdditionalInformation type: Extension index: 1 elements: value: choices: [] index: 3 renderedDosageInstruction: url: http://nictiz.nl/fhir/StructureDefinition/ext-RenderedDosageInstruction type: Extension index: 4 elements: value: short: Description choices: [] index: 6 periodOfUse: url: http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval.Period type: Extension index: 7 elements: value: extensions: {} elements: extension: elements: value: choices: [] index: 14 valuePeriod: {type: Period, short: PeriodOfUse, choiceOf: value, index: 10} value[x]: extensions: condition: {url: 'http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.PeriodOfUse.Condition', min: 0, type: Extension, index: 12} elements: extension: index: 11 slicing: rules: open discriminator: - {path: url, type: value} min: 0 slices: condition: match: {url: null} schema: {type: Extension, url: 'http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.PeriodOfUse.Condition', index: 12} min: 0 pharmaceuticalTreatmentIdentifier: url: http://nictiz.nl/fhir/StructureDefinition/ext-PharmaceuticalTreatment.Identifier type: Extension index: 15 elements: value: choices: [] index: 17 relationEpisodeOfCare: url: http://nictiz.nl/fhir/StructureDefinition/ext-Context-EpisodeOfCare type: Extension index: 18 elements: value: short: RelationEpisodeOfCare choices: [] index: 20 nextPractitioner: url: http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.NextPractitioner type: Extension isModifier: false index: 21 elements: value: choices: [] index: 23 class: profile kind: resource url: http://nictiz.nl/fhir/StructureDefinition/mp-MedicationAgreement base: http://hl7.org/fhir/StructureDefinition/MedicationRequest version: 1.0.0 required: [category]