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 abstract: true type: MedicationRequest elements: category: pattern: type: CodeableConcept value: coding: - {code: '33633005', system: 'http://snomed.info/sct'} type: CodeableConcept index: 31 encounter: type: Reference short: RelationContact refers: ['http://hl7.org/fhir/StructureDefinition/Encounter', 'http://nictiz.nl/fhir/StructureDefinition/nl-core-Encounter'] index: 43 reported: choices: [] index: 33 slicing: rules: open discriminator: - {path: $this, type: type} min: null slices: reportedBoolean: match: {} schema: short: CopyIndicator choices: [reportedBoolean] index: 35 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--20220222180251'} index: 46 authoredOn: {short: MedicationAgreementDateTime, index: 44} note: index: 55 elements: text: {short: Comment, index: 56} 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 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: 45 status: {short: CanceledIndicator, index: 29} dosageInstruction: type: Dosage short: DosingInstructions / InstructionsForUse index: 57 elements: additionalInstruction: {index: 58} reportedBoolean: short: CopyIndicator type: boolean choiceOf: reported index: 36 slicing: slices: reportedBoolean: match: {} schema: {short: CopyIndicator, type: boolean, choiceOf: reported, index: 36} identifier: {short: Identification, index: 28} intent: {index: 30} basedOn: extensions: relationAdministrationAgreement: url: http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.RelationAdministrationAgreement type: Extension index: 49 elements: value: choices: [] index: 51 relationMedicationUse: url: http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.RelationMedicationUse type: Extension index: 52 elements: value: choices: [] index: 54 elements: extension: index: 48 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-MedicationAgreement.RelationAdministrationAgreement index: 49 elements: value: choices: [] index: 51 relationMedicationUse: match: {url: null} schema: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.RelationMedicationUse index: 52 elements: value: choices: [] index: 54 priorPrescription: type: Reference short: RelationMedicationAgreement refers: ['http://hl7.org/fhir/StructureDefinition/MedicationRequest', 'http://nictiz.nl/fhir/StructureDefinition/mp-MedicationAgreement'] index: 59 medicationReference: short: AgreedMedicine refers: ['http://hl7.org/fhir/StructureDefinition/Medication', 'http://nictiz.nl/fhir/StructureDefinition/nl-core-PharmaceuticalProduct'] type: Reference choiceOf: medication index: 41 slicing: slices: medicationReference: match: {} schema: short: AgreedMedicine refers: ['http://hl7.org/fhir/StructureDefinition/Medication', 'http://nictiz.nl/fhir/StructureDefinition/nl-core-PharmaceuticalProduct'] type: Reference choiceOf: medication index: 41 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: 42 modifierExtension: index: 21 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: 22 elements: value: short: MedicationAgreementStopType choices: [] index: 24 repeatPeriodCyclicalSchedule: match: {url: null} schema: type: Extension url: http://nictiz.nl/fhir/StructureDefinition/ext-InstructionsForUse.RepeatPeriodCyclicalSchedule index: 25 elements: value: choices: [] index: 27 medication: choices: [] index: 38 slicing: rules: open discriminator: - {path: $this, type: type} min: null slices: medicationReference: match: {} schema: short: AgreedMedicine choices: [medicationReference] index: 40 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: 47 package_version: 1.0.0 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 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]