<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ee-tis-medication-request" />
  <url value="https://fhir.ee/StructureDefinition/ee-tis-medication-request" />
  <version value="1.0.0" />
  <name value="EETISMedicationRequest" />
  <status value="draft" />
  <date value="2024-02-21T13:56:50.8906817+00:00" />
  <description value="Retsept. This is a prescription of a medicine." />
  <fhirVersion value="5.0.0" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="MedicationRequest" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
  <derivation value="constraint" />
  <differential>
    <element id="MedicationRequest.meta">
      <path value="MedicationRequest.meta" />
    </element>
    <element id="MedicationRequest.meta.lastUpdated">
      <path value="MedicationRequest.meta.lastUpdated" />
      <example>
        <label value="ajanäidis" />
        <valueInstant value="2023-09-25T12:12:12+00:01" />
      </example>
    </element>
    <element id="MedicationRequest.contained">
      <path value="MedicationRequest.contained" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.extension:prescriptionAuthorization">
      <path value="MedicationRequest.extension" />
      <sliceName value="prescriptionAuthorization" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.ee/StructureDefinition/ee-tis-prescription-authorization" />
      </type>
    </element>
    <element id="MedicationRequest.extension:lockStatus">
      <path value="MedicationRequest.extension" />
      <sliceName value="lockStatus" />
      <short value="Broneeritud müügiloata ravimi taotluse jaoks." />
      <definition value="Kasutatakse AINULT müügiloata ravimi taotluse retsepti broneerimise puhul." />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.ee/StructureDefinition/ee-tis-lock-status" />
      </type>
    </element>
    <element id="MedicationRequest.extension:extensionEETISMarketingRequest">
      <path value="MedicationRequest.extension" />
      <sliceName value="extensionEETISMarketingRequest" />
      <short value="Müügiloata ravimi taotluse tarvis." />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.ee/StructureDefinition/ee-tis-marketing-request" />
      </type>
    </element>
    <element id="MedicationRequest.extension:extensionEETISTotalPrescribedAmount">
      <path value="MedicationRequest.extension" />
      <sliceName value="extensionEETISTotalPrescribedAmount" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.ee/StructureDefinition/ee-tis-total-prescribed-amount" />
      </type>
    </element>
    <element id="MedicationRequest.extension:extensionEETISReimbursementRate">
      <path value="MedicationRequest.extension" />
      <sliceName value="extensionEETISReimbursementRate" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.ee/StructureDefinition/ee-tis-reimbursement-rate" />
      </type>
    </element>
    <element id="MedicationRequest.identifier">
      <path value="MedicationRequest.identifier" />
      <short value="Retsepti number." />
      <definition value="Retsepti unikaalne identifikaator. Identifiers associated with this medication request that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. They are business identifiers assigned to this resource by the performer or other systems and remain constant as the resource is updated and propagates from server to server." />
      <max value="1" />
    </element>
    <element id="MedicationRequest.identifier.assigner">
      <path value="MedicationRequest.identifier.assigner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.ee/StructureDefinition/ee-tis-organization" />
      </type>
    </element>
    <element id="MedicationRequest.basedOn">
      <path value="MedicationRequest.basedOn" />
      <max value="1" />
    </element>
    <element id="MedicationRequest.priorPrescription">
      <path value="MedicationRequest.priorPrescription" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.status">
      <path value="MedicationRequest.status" />
      <definition value="Kui tegemist on müügiloata ravimi taotlusega, on status &quot;on-hold&quot; ning extension lockStatus alt täpsustus, milline apteek retesepti broneeris. &#xD;&#xA;&#xD;&#xA;A code specifying the current state of the order.  Generally, this will be active or completed state." />
    </element>
    <element id="MedicationRequest.statusReason">
      <path value="MedicationRequest.statusReason" />
      <short value="ANNULLEERIMISE PÕHJUS. LOEND. Reason for current status" />
      <definition value="Kui retsept annulleeritakse, kasutatakse statust &quot;cancelled&quot; ning valitakse põhjus loendist &quot;Annulleerimise põhjuse&quot;.&#xD;&#xA;&#xD;&#xA;Captures the reason for the current state of the MedicationRequest." />
      <binding>
        <strength value="required" />
        <description value="Annulleerimise põhjus" />
        <valueSet value="https://fhir.ee/CodeSystem/retsepti-annulleerimise-pohjus" />
      </binding>
    </element>
    <element id="MedicationRequest.intent">
      <path value="MedicationRequest.intent" />
      <definition value="Tavaline retsept on &quot;order&quot;, müügiloata ravimi retsept on alguses &quot;proposal&quot;. &#xD;&#xA;&#xD;&#xA;Whether the request is a proposal, plan, or an original order." />
    </element>
    <element id="MedicationRequest.category">
      <path value="MedicationRequest.category" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="coding" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <short value="RETSEPTI LIIK/DOK TYYP. Grouping or category of medication request" />
      <max value="1" />
    </element>
    <element id="MedicationRequest.category:prescriptionCategory">
      <path value="MedicationRequest.category" />
      <sliceName value="prescriptionCategory" />
      <short value="tavaretsept | narkootilise ravimi retsept | meditsiiniseadme retsept" />
      <definition value="RETSEPTI LIIK. An arbitrary categorization or grouping of the medication request.  It could be used for indicating where meds are intended to be administered, eg. in an inpatient setting or in a patient's home, or a legal category of the medication." />
      <max value="1" />
      <binding>
        <strength value="required" />
        <description value="RETSEPTI LIIK. LOEND." />
        <valueSet value="https://fhir.ee/CodeSystem/retsepti-liik" />
      </binding>
    </element>
    <element id="MedicationRequest.category:repeatCategory">
      <path value="MedicationRequest.category" />
      <sliceName value="repeatCategory" />
      <short value="1-kordne | 2-kordne | 3-kordne| 6-kordne" />
      <definition value="KORDSUS. LOEND.  An arbitrary categorization or grouping of the medication request.  It could be used for indicating where meds are intended to be administered, eg. in an inpatient setting or in a patient's home, or a legal category of the medication." />
      <max value="1" />
      <binding>
        <strength value="required" />
        <description value="Retsepti kordsuse loend" />
        <valueSet value="https://fhir.ee/CodeSystem/retsepti-kordsus" />
      </binding>
    </element>
    <element id="MedicationRequest.priority">
      <path value="MedicationRequest.priority" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.doNotPerform">
      <path value="MedicationRequest.doNotPerform" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.medication">
      <path value="MedicationRequest.medication" />
      <type>
        <code value="CodeableReference" />
        <targetProfile value="https://fhir.ee/StructureDefinition/ee-tis-medication-epc" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="MedicationRequest.medication.concept">
      <path value="MedicationRequest.medication.concept" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.medication.reference">
      <path value="MedicationRequest.medication.reference" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.ee/StructureDefinition/ee-tis-medication-epc" />
      </type>
    </element>
    <element id="MedicationRequest.subject">
      <path value="MedicationRequest.subject" />
      <short value="Patsient, kellele retsept on välja kirjutatud" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.ee/StructureDefinition/ee-tis-patient" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="MedicationRequest.informationSource">
      <path value="MedicationRequest.informationSource" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.ee/StructureDefinition/ee-tis-patient" />
        <targetProfile value="https://fhir.ee/StructureDefinition/ee-tis-practitioner" />
        <targetProfile value="https://fhir.ee/StructureDefinition/ee-tis-practitioner-role" />
        <targetProfile value="https://fhir.ee/StructureDefinition/ee-tis-organization" />
        <targetProfile value="https://fhir.ee/StructureDefinition/ee-tis-related-person" />
      </type>
    </element>
    <element id="MedicationRequest.encounter">
      <path value="MedicationRequest.encounter" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.authoredOn">
      <path value="MedicationRequest.authoredOn" />
      <short value="Koostamise aeg" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.requester">
      <path value="MedicationRequest.requester" />
      <short value="Kes tegi retsepti." />
      <definition value="Who/What requested the Request. The individual, organization, or device that initiated the request and has responsibility for its activation." />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.ee/StructureDefinition/ee-tis-practitioner-role" />
        <targetProfile value="https://fhir.ee/StructureDefinition/ee-tis-practitioner" />
        <aggregation value="contained" />
      </type>
    </element>
    <element id="MedicationRequest.reported">
      <path value="MedicationRequest.reported" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.performerType">
      <path value="MedicationRequest.performerType" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.performer">
      <path value="MedicationRequest.performer" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.device">
      <path value="MedicationRequest.device" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.recorder">
      <path value="MedicationRequest.recorder" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.reason">
      <path value="MedicationRequest.reason" />
      <short value="DIAGNOOS. Reason or indication for ordering or not ordering the medication" />
      <definition value="Diagnoosikood RHK-10 järgi. &#xD;&#xA;&#xD;&#xA;The reason or the indication for ordering or not ordering the medication." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="MedicationRequest.reason.concept">
      <path value="MedicationRequest.reason.concept" />
      <binding>
        <strength value="preferred" />
        <description value="RHK-10" />
        <valueSet value="https://fhir.ee/CodeSystem/rhk10" />
      </binding>
    </element>
    <element id="MedicationRequest.reason.reference">
      <path value="MedicationRequest.reason.reference" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.courseOfTherapyType">
      <path value="MedicationRequest.courseOfTherapyType" />
      <short value="pidev | fikseeritud | vajadusel | muutuv | ühekordne" />
      <definition value="Loend retseptikeskusest, mis kirjeldab ravikuuri tüüpi. &#xD;&#xA;&#xD;&#xA;The description of the overall pattern of the administration of the medication to the patient." />
      <binding>
        <strength value="required" />
        <description value="RAVIKUURI TÜÜP" />
        <valueSet value="https://fhir.ee/CodeSystem/ravikuuri-tyyp" />
      </binding>
    </element>
    <element id="MedicationRequest.courseOfTherapyType.coding">
      <path value="MedicationRequest.courseOfTherapyType.coding" />
      <short value="pidev | fikseeritud | vajadusel | muutuv | ühekordne" />
    </element>
    <element id="MedicationRequest.insurance">
      <path value="MedicationRequest.insurance" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.note">
      <path value="MedicationRequest.note" />
      <short value="Kommentaar" />
      <definition value="Kommentaari saab lisada ainult sama inimene, kes koostas retsepti.&#xD;&#xA;&#xD;&#xA;Extra information about the prescription that could not be conveyed by the other attributes." />
      <max value="1" />
    </element>
    <element id="MedicationRequest.note.author[x]">
      <path value="MedicationRequest.note.author[x]" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.note.time">
      <path value="MedicationRequest.note.time" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.renderedDosageInstruction">
      <path value="MedicationRequest.renderedDosageInstruction" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.effectiveDosePeriod">
      <path value="MedicationRequest.effectiveDosePeriod" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction">
      <path value="MedicationRequest.dosageInstruction" />
      <short value="ANNUSTAMINE. Specific instructions for how the medication should be taken" />
      <definition value="Täpne annustamisjuhis, kuidas määratud ravimit tuleb võtta.&#xD;&#xA;&#xD;&#xA;Indicates how the medication is/was taken or should be taken by the patient." />
      <min value="1" />
      <type>
        <code value="Dosage" />
        <profile value="https://fhir.ee/StructureDefinition/ee-tis-dosage" />
      </type>
    </element>
    <element id="MedicationRequest.dosageInstruction.sequence">
      <path value="MedicationRequest.dosageInstruction.sequence" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.additionalInstruction">
      <path value="MedicationRequest.dosageInstruction.additionalInstruction" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.event">
      <path value="MedicationRequest.dosageInstruction.timing.event" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.countMax">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.countMax" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.duration">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.duration" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.durationMax">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.durationMax" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.frequency">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.frequency" />
      <short value="Mitu korda (ajaühikus). Indicates the number of repetitions that should occur within a period. I.e. Event occurs frequency times per period" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.frequencyMax">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.frequencyMax" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.period">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.period" />
      <short value="(mitu korda) aja(ühikus). The duration to which the frequency applies. I.e. Event occurs frequency times per period" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.periodMax">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.periodMax" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.periodUnit">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.periodUnit" />
      <definition value="T(mitu korda aja)ühikus. he units of time for the period in UCUM units&#xA;Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence." />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.dayOfWeek">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.dayOfWeek" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.when">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.when" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.repeat.offset">
      <path value="MedicationRequest.dosageInstruction.timing.repeat.offset" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.timing.code">
      <path value="MedicationRequest.dosageInstruction.timing.code" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.asNeeded">
      <path value="MedicationRequest.dosageInstruction.asNeeded" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.site">
      <path value="MedicationRequest.dosageInstruction.site" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.route">
      <path value="MedicationRequest.dosageInstruction.route" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.method">
      <path value="MedicationRequest.dosageInstruction.method" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.doseAndRate">
      <path value="MedicationRequest.dosageInstruction.doseAndRate" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction.doseAndRate.type">
      <path value="MedicationRequest.dosageInstruction.doseAndRate.type" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.doseAndRate.dose[x]">
      <path value="MedicationRequest.dosageInstruction.doseAndRate.dose[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <type>
        <code value="Quantity" />
      </type>
    </element>
    <element id="MedicationRequest.dosageInstruction.doseAndRate.dose[x]:doseQuantity">
      <path value="MedicationRequest.dosageInstruction.doseAndRate.dose[x]" />
      <sliceName value="doseQuantity" />
      <short value="RAVIMI KOGUS ÜHE KASUTUSKORRA AJAL. Amount of medication per dose" />
      <type>
        <code value="Quantity" />
      </type>
    </element>
    <element id="MedicationRequest.dosageInstruction.doseAndRate.dose[x]:doseQuantity.value">
      <path value="MedicationRequest.dosageInstruction.doseAndRate.dose[x].value" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction.doseAndRate.dose[x]:doseQuantity.unit">
      <path value="MedicationRequest.dosageInstruction.doseAndRate.dose[x].unit" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.doseAndRate.dose[x]:doseQuantity.system">
      <path value="MedicationRequest.dosageInstruction.doseAndRate.dose[x].system" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction.doseAndRate.dose[x]:doseQuantity.code">
      <path value="MedicationRequest.dosageInstruction.doseAndRate.dose[x].code" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction.doseAndRate.dose[x]:doseRange">
      <path value="MedicationRequest.dosageInstruction.doseAndRate.dose[x]" />
      <sliceName value="doseRange" />
      <max value="0" />
      <type>
        <code value="Range" />
      </type>
    </element>
    <element id="MedicationRequest.dosageInstruction.doseAndRate.rate[x]">
      <path value="MedicationRequest.dosageInstruction.doseAndRate.rate[x]" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.maxDosePerPeriod">
      <path value="MedicationRequest.dosageInstruction.maxDosePerPeriod" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.maxDosePerAdministration">
      <path value="MedicationRequest.dosageInstruction.maxDosePerAdministration" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.maxDosePerLifetime">
      <path value="MedicationRequest.dosageInstruction.maxDosePerLifetime" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest">
      <path value="MedicationRequest.dispenseRequest" />
      <definition value="Täpne info ravimi väljamüügi kohta. &#xD;&#xA;&#xD;&#xA;Indicates the specific details for the dispense or medication supply part of a medication request (also known as a Medication Prescription or Medication Order).  Note that this information is not always sent with the order.  There may be in some settings (e.g. hospitals) institutional or system support for completing the dispense details in the pharmacy department." />
    </element>
    <element id="MedicationRequest.dispenseRequest.id">
      <path value="MedicationRequest.dispenseRequest.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.initialFill">
      <path value="MedicationRequest.dispenseRequest.initialFill" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.dispenseInterval">
      <path value="MedicationRequest.dispenseRequest.dispenseInterval" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.validityPeriod">
      <path value="MedicationRequest.dispenseRequest.validityPeriod" />
      <short value="RETSEPTI KEHTIVUS AEG. Time period supply is authorized for" />
      <definition value="Periood väljakirjutamise hetkest alates, mil on võimalik ravimit välja osta.&#xD;&#xA;&#xD;&#xA;This indicates the validity period of a prescription (stale dating the Prescription)." />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dispenseRequest.numberOfRepeatsAllowed">
      <path value="MedicationRequest.dispenseRequest.numberOfRepeatsAllowed" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.quantity">
      <path value="MedicationRequest.dispenseRequest.quantity" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.expectedSupplyDuration">
      <path value="MedicationRequest.dispenseRequest.expectedSupplyDuration" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.dispenser">
      <path value="MedicationRequest.dispenseRequest.dispenser" />
      <definition value="KASUTATAKSE AINULT MÜÜGILOATA RAVIMI APTEEGI BRONEERIMISE PUHUL. Indicates the intended performing Organization that will dispense the medication as specified by the prescriber." />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.ee/StructureDefinition/ee-tis-organization" />
        <targetProfile value="https://fhir.ee/StructureDefinition/ee-tis-pharmacy-location" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="MedicationRequest.dispenseRequest.dispenserInstruction">
      <path value="MedicationRequest.dispenseRequest.dispenserInstruction" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.doseAdministrationAid">
      <path value="MedicationRequest.dispenseRequest.doseAdministrationAid" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.substitution">
      <path value="MedicationRequest.substitution" />
      <short value="Asendamine. Any restrictions on medication substitution" />
    </element>
    <element id="MedicationRequest.substitution.allowed[x]">
      <path value="MedicationRequest.substitution.allowed[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <definition value="Kas asendamine on keelatud.&#xD;&#xA;&#xD;&#xA;True if the prescriber allows a different drug to be dispensed from what was prescribed." />
      <type>
        <code value="boolean" />
      </type>
    </element>
    <element id="MedicationRequest.substitution.allowed[x]:allowedBoolean">
      <path value="MedicationRequest.substitution.allowed[x]" />
      <sliceName value="allowedBoolean" />
      <type>
        <code value="boolean" />
      </type>
    </element>
    <element id="MedicationRequest.substitution.reason">
      <path value="MedicationRequest.substitution.reason" />
      <short value="LOEND. Why should (not) substitution be made" />
      <definition value="Asendamatuse põhjus (loend). &#xD;&#xA;&#xD;&#xA;Indicates the reason for the substitution, or why substitution must or must not be performed." />
      <binding>
        <strength value="preferred" />
        <description value="Asendamine keelatud loend" />
        <valueSet value="https://fhir.ee/CodeSystem/ravimi-asendamatuse-pohjus" />
      </binding>
    </element>
    <element id="MedicationRequest.substitution.reason.coding">
      <path value="MedicationRequest.substitution.reason.coding" />
      <binding>
        <strength value="preferred" />
        <description value="Asendamise keelamise loend" />
        <valueSet value="https://fhir.ee/CodeSystem/ravimi-asendamatuse-pohjus" />
      </binding>
    </element>
    <element id="MedicationRequest.eventHistory">
      <path value="MedicationRequest.eventHistory" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>