<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="mp-MedicationAgreement" />
  <url value="http://nictiz.nl/fhir/StructureDefinition/mp-MedicationAgreement" />
  <version value="2.0.0-rc.7" />
  <name value="MpMedicationAgreement" />
  <title value="mp MedicationAgreement" />
  <status value="active" />
  <publisher value="Nictiz" />
  <contact>
    <name value="Nictiz" />
    <telecom>
      <system value="url" />
      <value value="https://www.nictiz.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="A medication agreement is an agreement between the prescriber and the patient regarding the use of medication by that patient. An agreement to stop or change medication use is also a medication agreement." />
  <purpose value="This MedicationRequest resource represents the MedicationAgreement building block for implementations following the information standard [MP9](https://informatiestandaarden.nictiz.nl/wiki/Landingspagina_Medicatieproces). This profile is based on the Dutch zib ('Zorginformatiebouwsteen', i.e. Health and Care Information Model) MedicationAgreement, but has no dependency on the corresponding nl-core profile because it contains non-compatible changes. Where compatible, mappings to zib concepts are defined. Additional concepts or concepts that are not compatible with their zib counterparts contain a mapping to the MP9 data set." />
  <copyright value="Copyright and related rights waived via CC0, https://creativecommons.org/publicdomain/zero/1.0/. This does not apply to information from third parties, for example a medical terminology system. The implementer alone is responsible for identifying and obtaining any necessary licenses or authorizations to utilize third party IP in connection with the specification or otherwise." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="zib-medicationagreement-v1.2-2020EN" />
    <uri value="https://zibs.nl/wiki/MedicationAgreement-v1.2(2020EN)" />
    <name value="zib MedicationAgreement-v1.2(2020EN)" />
  </mapping>
  <mapping>
    <identity value="zib-instructionsforuse-v1.2.1-2020EN" />
    <uri value="https://zibs.nl/wiki/InstructionsForUse-v1.2.1(2020EN)" />
    <name value="zib InstructionsForUse-v1.2.1(2020EN)" />
  </mapping>
  <mapping>
    <identity value="mp-dataset-mp9-300-rc1-20250522" />
    <uri value="https://decor.nictiz.nl/pub/medicatieproces/mp-html-20250522T132618/ds-2.16.840.1.113883.2.4.3.11.60.20.77.1.4-2022-06-30T000000.html" />
    <name value="ART-DECOR Dataset MP9 3.0.0-rc.1 20250522" />
  </mapping>
  <mapping>
    <identity value="mp-dataset-mp9-300-rc2-20260213" />
    <uri value="https://decor.nictiz.nl/pub/medicatieproces/mp-html-20260213T112547/ds-2.16.840.1.113883.2.4.3.11.60.20.77.1.4-2022-06-30T000000.html" />
    <name value="ART-DECOR Dataset MP9 3.0.0-rc.2 20260213" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="MedicationRequest" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
  <derivation value="constraint" />
  <differential>
    <element id="MedicationRequest">
      <path value="MedicationRequest" />
      <short value="MedicationAgreement" />
      <alias value="Medicatieafspraak" />
      <mapping>
        <identity value="zib-medicationagreement-v1.2-2020EN" />
        <map value="NL-CM:9.6.9580" />
        <comment value="MedicationAgreement" />
      </mapping>
      <mapping>
        <identity value="zib-medicationagreement-v1.2-2020EN" />
        <map value="NL-CM:9.6.23240" />
        <comment value="InstructionsForUse" />
      </mapping>
    </element>
    <element id="MedicationRequest.extension:medicationAgreementAdditionalInformation">
      <path value="MedicationRequest.extension" />
      <sliceName value="medicationAgreementAdditionalInformation" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.MedicationAgreementAdditionalInformation" />
      </type>
    </element>
    <element id="MedicationRequest.extension:medicationAgreementAdditionalInformation.value[x]">
      <path value="MedicationRequest.extension.value[x]" />
      <mapping>
        <identity value="mp-dataset-mp9-300-rc1-20250522" />
        <map value="mp-dataelement9x-90" />
        <comment value="MedicationAgreementAdditionalInformation" />
      </mapping>
      <mapping>
        <identity value="mp-dataset-mp9-300-rc2-20260213" />
        <map value="mp-dataelement9x-90" />
        <comment value="MedicationAgreementAdditionalInformation" />
      </mapping>
    </element>
    <element id="MedicationRequest.extension:renderedDosageInstruction">
      <path value="MedicationRequest.extension" />
      <sliceName value="renderedDosageInstruction" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/ext-RenderedDosageInstruction" />
      </type>
    </element>
    <element id="MedicationRequest.extension:renderedDosageInstruction.value[x]">
      <path value="MedicationRequest.extension.value[x]" />
      <short value="Description" />
      <definition value="Textual description of the complete instructions for use." />
      <alias value="Omschrijving" />
      <mapping>
        <identity value="zib-instructionsforuse-v1.2.1-2020EN" />
        <map value="NL-CM:9.12.9581" />
        <comment value="Description" />
      </mapping>
    </element>
    <element id="MedicationRequest.extension:periodOfUse">
      <path value="MedicationRequest.extension" />
      <sliceName value="periodOfUse" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval.Period" />
      </type>
    </element>
    <element id="MedicationRequest.extension:periodOfUse.value[x]">
      <path value="MedicationRequest.extension.value[x]" />
      <short value="PeriodOfUse" />
      <definition value="**Start date**: This is the time at which the agreement was to take effect (or took effect or will take effect). This is the time at which the instructions for use in this agreement start. In the case of an agreement to discontinue use, this is the start date of the original medication agreement. The end date indicates from when the medication is to be discontinued.&#xD;&#xA;&#xD;&#xA;**Duration**: The intended duration of use. E.g. 5 days or 8 weeks. It is not allowed to indicate the duration in months, because different months have a variable duration in days.&#xD;&#xA;&#xD;&#xA;**End date**: The time at which the period of use ends (or ended or will end). In the case of an agreement to discontinue use, this is the time at which the medication is to be discontinued. To avoid confusion between 'to' and 'up to', the submission of time is always mandatory for the end date.&#xD;&#xA;&#xD;&#xA;With medication for an indefinite period only a start date is indicated." />
      <alias value="Gebruiksperiode" />
      <type>
        <code value="Period" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-TimeInterval" />
      </type>
      <mapping>
        <identity value="zib-medicationagreement-v1.2-2020EN" />
        <map value="NL-CM:9.6.19936" />
        <comment value="PeriodOfUse" />
      </mapping>
    </element>
    <element id="MedicationRequest.extension:periodOfUse.value[x].extension:condition">
      <path value="MedicationRequest.extension.value[x].extension" />
      <sliceName value="condition" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/ext-PeriodOfUse.Condition" />
      </type>
    </element>
    <element id="MedicationRequest.extension:periodOfUse.value[x].extension:condition.value[x]">
      <path value="MedicationRequest.extension.value[x].extension.value[x]" />
      <definition value="Element to indicate that the start or end date is uncertain.&#xD;&#xA;&#xD;&#xA;In certain situations the start or end date can depend on another piece of information. This is, for example, the case when a patient has to start or stop medication a few days before hospital admission. In that case this element is used to indicate (in free text): ‘start X days before hospital admission’ or ‘stop X days before hospital admission’. By doing this, it is clear that the entered start or end date is uncertain when the MedicationAgreement is being exchanged." />
      <mapping>
        <identity value="mp-dataset-mp9-300-rc1-20250522" />
        <map value="mp-dataelement9x-1365" />
        <comment value="Condition" />
      </mapping>
      <mapping>
        <identity value="mp-dataset-mp9-300-rc2-20260213" />
        <map value="mp-dataelement9x-1365" />
        <comment value="Condition" />
      </mapping>
    </element>
    <element id="MedicationRequest.extension:pharmaceuticalTreatmentIdentifier">
      <path value="MedicationRequest.extension" />
      <sliceName value="pharmaceuticalTreatmentIdentifier" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/ext-PharmaceuticalTreatment.Identifier" />
      </type>
    </element>
    <element id="MedicationRequest.extension:pharmaceuticalTreatmentIdentifier.value[x]">
      <path value="MedicationRequest.extension.value[x]" />
      <mapping>
        <identity value="mp-dataset-mp9-300-rc1-20250522" />
        <map value="mp-dataelement9x-42" />
        <comment value="Identification" />
      </mapping>
      <mapping>
        <identity value="mp-dataset-mp9-300-rc2-20260213" />
        <map value="mp-dataelement9x-42" />
        <comment value="Identification" />
      </mapping>
    </element>
    <element id="MedicationRequest.extension:relationEpisodeOfCare">
      <path value="MedicationRequest.extension" />
      <sliceName value="relationEpisodeOfCare" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/ext-Context-EpisodeOfCare" />
      </type>
    </element>
    <element id="MedicationRequest.extension:relationEpisodeOfCare.value[x]">
      <path value="MedicationRequest.extension.value[x]" />
      <short value="RelationEpisodeOfCare" />
      <alias value="RelatieZorgepisode" />
      <mapping>
        <identity value="mp-dataset-mp9-300-rc1-20250522" />
        <map value="mp-dataelement9x-843" />
        <comment value="RelationEpisodeOfCare" />
      </mapping>
      <mapping>
        <identity value="mp-dataset-mp9-300-rc2-20260213" />
        <map value="mp-dataelement9x-843" />
        <comment value="RelationEpisodeOfCare" />
      </mapping>
    </element>
    <element id="MedicationRequest.extension:nextPractitioner">
      <path value="MedicationRequest.extension" />
      <sliceName value="nextPractitioner" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.NextPractitioner" />
      </type>
    </element>
    <element id="MedicationRequest.extension:nextPractitioner.value[x]">
      <path value="MedicationRequest.extension.value[x]" />
      <mapping>
        <identity value="mp-dataset-mp9-300-rc1-20250522" />
        <map value="mp-dataelement9x-1382" />
        <comment value="NextPractitioner" />
      </mapping>
      <mapping>
        <identity value="mp-dataset-mp9-300-rc2-20260213" />
        <map value="mp-dataelement9x-1382" />
        <comment value="NextPractitioner" />
      </mapping>
    </element>
    <element id="MedicationRequest.extension:registrationDateTime">
      <path value="MedicationRequest.extension" />
      <sliceName value="registrationDateTime" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/ext-RegistrationDateTime" />
      </type>
    </element>
    <element id="MedicationRequest.extension:registrationDateTime.value[x]">
      <path value="MedicationRequest.extension.value[x]" />
      <definition value="The date and time when the MedicationAgreement was recorded. RegistrationDateTime is used to accurately determine the chronological order of agreements. Therefore, the date and time are mandatory. These values are immutable. When consulting or receiving this MedicationAgreement, the original RegistrationDateTime remains unchanged.&#xA;&#xA;Note: This data element differs from the data element RegistrationDateTime in zib RegistratieGegevens-v1.1.1 (2024NL). In zib RegistratieGegevens-v1.1.1 (2024NL), RegistrationDateTime refers to the date and time when the data was recorded. This may be the initial registration or the date and time when data was transferred. The zib concept RegistrationDateTime is not applied in MP9." />
      <mapping>
        <identity value="mp-dataset-mp9-300-rc1-20250522" />
        <map value="mp-dataelement9x-1480" />
        <comment value="RegistrationDateTime" />
      </mapping>
      <mapping>
        <identity value="mp-dataset-mp9-300-rc2-20260213" />
        <map value="mp-dataelement9x-1480" />
        <comment value="RegistrationDateTime" />
      </mapping>
    </element>
    <element id="MedicationRequest.modifierExtension:stopType">
      <path value="MedicationRequest.modifierExtension" />
      <sliceName value="stopType" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/ext-StopType" />
      </type>
    </element>
    <element id="MedicationRequest.modifierExtension:stopType.value[x]">
      <path value="MedicationRequest.modifierExtension.value[x]" />
      <short value="MedicationAgreementStopType" />
      <alias value="MedicatieafspraakStopType" />
      <mapping>
        <identity value="zib-medicationagreement-v1.2-2020EN" />
        <map value="NL-CM:9.6.19954" />
        <comment value="MedicationAgreementStopType [DEPRECATED]" />
      </mapping>
      <mapping>
        <identity value="mp-dataset-mp9-300-rc1-20250522" />
        <map value="mp-dataelement9x-88" />
        <comment value="MedicationAgreementStopType" />
      </mapping>
      <mapping>
        <identity value="mp-dataset-mp9-300-rc2-20260213" />
        <map value="mp-dataelement9x-88" />
        <comment value="MedicationAgreementStopType" />
      </mapping>
    </element>
    <element id="MedicationRequest.modifierExtension:repeatPeriodCyclicalSchedule">
      <path value="MedicationRequest.modifierExtension" />
      <sliceName value="repeatPeriodCyclicalSchedule" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/ext-InstructionsForUse.RepeatPeriodCyclicalSchedule" />
      </type>
    </element>
    <element id="MedicationRequest.modifierExtension:repeatPeriodCyclicalSchedule.value[x]">
      <path value="MedicationRequest.modifierExtension.value[x]" />
      <mapping>
        <identity value="zib-instructionsforuse-v1.2.1-2020EN" />
        <map value="NL-CM:9.12.22505" />
        <comment value="RepeatPeriodCyclicalSchedule" />
      </mapping>
    </element>
    <element id="MedicationRequest.identifier">
      <path value="MedicationRequest.identifier" />
      <short value="Identification" />
      <alias value="Identificatie" />
      <mapping>
        <identity value="mp-dataset-mp9-300-rc1-20250522" />
        <map value="mp-dataelement9x-194" />
        <comment value="Identification" />
      </mapping>
      <mapping>
        <identity value="mp-dataset-mp9-300-rc2-20260213" />
        <map value="mp-dataelement9x-194" />
        <comment value="Identification" />
      </mapping>
    </element>
    <element id="MedicationRequest.status">
      <path value="MedicationRequest.status" />
      <comment value="This element is implictly mapped to the zib concept NL-CM:9.6.19936 (PeriodOfUse) and the concept mp-dataelement9x-88 (MedicationAgreementStopType).&#xD;&#xA;Unless the status is explicitly recorded, the following guidance applies:&#xD;&#xA;&#xD;&#xA;* When the value of PeriodOfUse.startDateTime is in the future, `.status` will usually be set to _active_.&#xD;&#xA;* When the value of PeriodOfUse.startDateTime is in the past and PeriodOfUse.endDateTime exists and its value is in the future, `.status` will usually be set to _active_.&#xD;&#xA;* When PeriodOfUse.endDateTime exists and its value is in the past and MedicationAgreementStopType has no value, `.status` will usually be set to _completed_.&#xD;&#xA;* When PeriodOfUse.endDateTime exists and its value is in the past and MedicationAgreementStopType is _385655000_, `.status` will usually be set to _on-hold_.&#xD;&#xA;* When PeriodOfUse.endDateTime exists and its value is in the past, and the value of MedicationAgreementStopType is _410546004_, `.status` will usually be set to _stopped_.&#xD;&#xA;* When the value of PeriodOfUse.startDateTime is in the future, the value of PeriodOfUse.endDateTime equals the value of PeriodOfUse.startDateTime and the value of MedicationAgreementStopType is _89925002_, `.status` will usually be set to _cancelled_.&#xD;&#xA;* When PeriodOfUse.Duration and PeriodOfUse.startDateTime are known, PeriodOfUse.endDateTime can be deduced and the previous rules apply. &#xD;&#xA;* When a system is unable to infer the status, `.status` will be set to _unknown_. The _unknown_ code is not to be used to convey other statuses. The _unknown_ code should be used when one of the statuses applies, but the authoring system doesn't know the current state of the MedicationAgreement." />
      <mapping>
        <identity value="zib-medicationagreement-v1.2-2020EN" />
        <map value="NL-CM:9.6.19936" />
        <comment value="PeriodOfUse (implicit, main mapping is on the extensions ext-TimeInterval.Period and ext-TimeInterval.Duration)" />
      </mapping>
      <mapping>
        <identity value="zib-medicationagreement-v1.2-2020EN" />
        <map value="NL-CM:9.6.19954" />
        <comment value="MedicationAgreementStopType (implicit, main mapping is on the modifier extension ext-StopType) [DEPRECATED]" />
      </mapping>
      <mapping>
        <identity value="mp-dataset-mp9-300-rc1-20250522" />
        <map value="mp-dataelement9x-88" />
        <comment value="MedicationAgreementStopType (implicit, main mapping is on the modifier extension ext-StopType)" />
      </mapping>
      <mapping>
        <identity value="mp-dataset-mp9-300-rc2-20260213" />
        <map value="mp-dataelement9x-88" />
        <comment value="MedicationAgreementStopType (implicit, main mapping is on the modifier extension ext-StopType)" />
      </mapping>
    </element>
    <element id="MedicationRequest.intent">
      <path value="MedicationRequest.intent" />
      <definition value="Unless `.intent` is explicitly recorded and a more appropriate code is known, the value can be set to _order_ because a MedicationAgreement should authorize an action for a patient, pharmacist, professional administrator et cetera." />
    </element>
    <element id="MedicationRequest.category">
      <path value="MedicationRequest.category" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="MedicationRequest.category:medicationAgreementCode">
      <path value="MedicationRequest.category" />
      <sliceName value="medicationAgreementCode" />
      <min value="1" />
      <max value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="33633005" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="MedicationRequest.reported[x]">
      <path value="MedicationRequest.reported[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="MedicationRequest.reported[x]:reportedBoolean">
      <path value="MedicationRequest.reported[x]" />
      <sliceName value="reportedBoolean" />
      <short value="CopyIndicator" />
      <definition value="An indication whether the resource is original (false) or a copy from a different source (true)." />
      <alias value="KopieIndicator" />
      <type>
        <code value="boolean" />
      </type>
      <mapping>
        <identity value="mp-dataset-mp9-300-rc1-20250522" />
        <map value="mp-dataelement9x-273" />
        <comment value="CopyIndicator" />
      </mapping>
      <mapping>
        <identity value="mp-dataset-mp9-300-rc2-20260213" />
        <map value="mp-dataelement9x-273" />
        <comment value="CopyIndicator" />
      </mapping>
    </element>
    <element id="MedicationRequest.medication[x]">
      <path value="MedicationRequest.medication[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="MedicationRequest.medication[x]:medicationReference">
      <path value="MedicationRequest.medication[x]" />
      <sliceName value="medicationReference" />
      <short value="AgreedMedicine" />
      <definition value="The medicine agreed upon to be used." />
      <alias value="AfgesprokenGeneesmiddel" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Medication" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/mp-PharmaceuticalProduct" />
      </type>
      <mapping>
        <identity value="zib-medicationagreement-v1.2-2020EN" />
        <map value="NL-CM:9.6.19925" />
        <comment value="AgreedMedicine" />
      </mapping>
    </element>
    <element id="MedicationRequest.subject">
      <path value="MedicationRequest.subject" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-Patient" />
      </type>
    </element>
    <element id="MedicationRequest.encounter">
      <path value="MedicationRequest.encounter" />
      <short value="RelationEncounter" />
      <alias value="RelatieContact" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-Encounter" />
      </type>
      <mapping>
        <identity value="mp-dataset-mp9-300-rc1-20250522" />
        <map value="mp-dataelement9x-199" />
        <comment value="RelationEncounter" />
      </mapping>
      <mapping>
        <identity value="mp-dataset-mp9-300-rc2-20260213" />
        <map value="mp-dataelement9x-199" />
        <comment value="RelationEncounter" />
      </mapping>
    </element>
    <element id="MedicationRequest.authoredOn">
      <path value="MedicationRequest.authoredOn" />
      <short value="MedicationAgreementDateTime" />
      <definition value="The time at which the agreement was made. Appointment date + time are required (order of the appointments must be clear in cases with multiple appointments on one day)" />
      <alias value="MedicatieafspraakDatumTijd" />
      <mapping>
        <identity value="zib-medicationagreement-v1.2-2020EN" />
        <map value="NL-CM:9.6.19757" />
        <comment value="MedicationAgreementDateTime" />
      </mapping>
    </element>
    <element id="MedicationRequest.requester">
      <path value="MedicationRequest.requester" />
      <short value="Prescriber" />
      <definition value="The health professional that entered the medication agreement with the patient." />
      <alias value="Voorschrijver" />
      <type>
        <code value="Reference" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/pattern-NlCoreHealthProfessionalReference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-HealthProfessional-PractitionerRole" />
      </type>
      <mapping>
        <identity value="zib-medicationagreement-v1.2-2020EN" />
        <map value="NL-CM:9.6.1030" />
        <comment value="Prescriber" />
      </mapping>
    </element>
    <element id="MedicationRequest.reasonCode">
      <path value="MedicationRequest.reasonCode" />
      <short value="ReasonModificationOrDiscontinuation" />
      <definition value="Reason for modification or discontinuation of the medication agreement." />
      <alias value="RedenWijzigenOfStaken" />
      <max value="1" />
      <binding>
        <strength value="required" />
        <valueSet value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.20.77.11.42--20221114132525" />
      </binding>
      <mapping>
        <identity value="mp-dataset-mp9-300-rc1-20250522" />
        <map value="mp-dataelement9x-89" />
        <comment value="ReasonModificationOrDiscontinuation" />
      </mapping>
      <mapping>
        <identity value="mp-dataset-mp9-300-rc2-20260213" />
        <map value="mp-dataelement9x-89" />
        <comment value="ReasonModificationOrDiscontinuation" />
      </mapping>
    </element>
    <element id="MedicationRequest.reasonReference">
      <path value="MedicationRequest.reasonReference" />
      <short value="PrescriptionReason" />
      <definition value="The medical reason for the prescription or for use of the medication. This can be used to enter a medical indication which was the direct cause for prescription or for use of the medication in question. It can concern every type of problem (or condition) of the patient, almost all diagnoses, complaints or symptoms. Please note: The file 401 of the G standard contains a “special reference” to indicate that “exchange of the reason for prescription is essential”. This concerns the special characteristic with number 85." />
      <alias value="RedenVanVoorschrijven" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-Problem" />
      </type>
      <mapping>
        <identity value="zib-medicationagreement-v1.2-2020EN" />
        <map value="NL-CM:9.6.23133" />
        <comment value="PrescriptionReason [DEPRECATED]" />
      </mapping>
      <mapping>
        <identity value="mp-dataset-mp9-300-rc2-20260213" />
        <map value="mp-dataelement9x-46" />
        <comment value="PrescriptionReason" />
      </mapping>
    </element>
    <element id="MedicationRequest.basedOn.extension:relationAdministrationAgreement">
      <path value="MedicationRequest.basedOn.extension" />
      <sliceName value="relationAdministrationAgreement" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/ext-RelationAdministrationAgreement" />
      </type>
    </element>
    <element id="MedicationRequest.basedOn.extension:relationAdministrationAgreement.value[x]">
      <path value="MedicationRequest.basedOn.extension.value[x]" />
      <mapping>
        <identity value="mp-dataset-mp9-300-rc1-20250522" />
        <map value="mp-dataelement9x-1328" />
        <comment value="RelationAdministrationAgreement" />
      </mapping>
      <mapping>
        <identity value="mp-dataset-mp9-300-rc2-20260213" />
        <map value="mp-dataelement9x-1328" />
        <comment value="RelationAdministrationAgreement" />
      </mapping>
    </element>
    <element id="MedicationRequest.basedOn.extension:relationMedicationUse">
      <path value="MedicationRequest.basedOn.extension" />
      <sliceName value="relationMedicationUse" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/ext-MedicationAgreement.RelationMedicationUse" />
      </type>
    </element>
    <element id="MedicationRequest.basedOn.extension:relationMedicationUse.value[x]">
      <path value="MedicationRequest.basedOn.extension.value[x]" />
      <mapping>
        <identity value="mp-dataset-mp9-300-rc1-20250522" />
        <map value="mp-dataelement9x-1327" />
        <comment value="RelationMedicationUse" />
      </mapping>
      <mapping>
        <identity value="mp-dataset-mp9-300-rc2-20260213" />
        <map value="mp-dataelement9x-1327" />
        <comment value="RelationMedicationUse" />
      </mapping>
    </element>
    <element id="MedicationRequest.note">
      <path value="MedicationRequest.note" />
      <max value="1" />
    </element>
    <element id="MedicationRequest.note.text">
      <path value="MedicationRequest.note.text" />
      <short value="Comment" />
      <definition value="Comments regarding to the medication agreement. For example: in consultation with the medical specialist." />
      <alias value="Toelichting" />
      <mapping>
        <identity value="zib-medicationagreement-v1.2-2020EN" />
        <map value="NL-CM:9.6.22273" />
        <comment value="Comment" />
      </mapping>
    </element>
    <element id="MedicationRequest.dosageInstruction">
      <path value="MedicationRequest.dosageInstruction" />
      <short value="DosingInstructions / InstructionsForUse" />
      <definition value="Instructions for the use of the medication, e.g. dose and route of administration." />
      <alias value="Gebruiksinstructie" />
      <type>
        <code value="Dosage" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/mp-InstructionsForUse.DosageInstructions" />
      </type>
    </element>
    <element id="MedicationRequest.priorPrescription">
      <path value="MedicationRequest.priorPrescription" />
      <short value="RelationMedicationAgreement" />
      <definition value="A link to a medication agreement that is altered or canceled." />
      <alias value="RelatieMedicatieafspraak" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/mp-MedicationAgreement" />
      </type>
      <mapping>
        <identity value="mp-dataset-mp9-300-rc1-20250522" />
        <map value="mp-dataelement9x-195" />
        <comment value="RelationMedicationAgreement" />
      </mapping>
      <mapping>
        <identity value="mp-dataset-mp9-300-rc2-20260213" />
        <map value="mp-dataelement9x-195" />
        <comment value="RelationMedicationAgreement" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>