<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="6ad5d72d-c011-4f6a-bcbf-00722b1d1be2" />
  <meta>
    <lastUpdated value="2022-02-14T19:22:20.06+00:00" />
  </meta>
  <text>
    <status value="empty" />
    <div xmlns="http://www.w3.org/1999/xhtml">No human-readable text provided in this case.</div>
  </text>
  <url value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-MedicationRequest" />
  <version value="3.0.0" />
  <name value="MedicationRequestPrescription" />
  <status value="active" />
  <date value="2022-01-19T18:53:15.8800587Z" />
  <description value="Ordering of medication for patient" />
  <fhirVersion value="4.0.1" />
  <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" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.id">
      <path value="MedicationRequest.id" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.identifier">
      <path value="MedicationRequest.identifier" />
      <definition value="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.&#xD;&#xA;&#xD;&#xA;DHDR: Identifier assigned by the ordering facility - this is an identifier assigned outside FHIR." />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.identifier.system">
      <path value="MedicationRequest.identifier.system" />
      <comment value="Identifier.system is always case sensitive.&#xD;&#xA;Refer to https://simplifier.net/CanadianURIRegistry" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.identifier.value">
      <path value="MedicationRequest.identifier.value" />
      <definition value="The portion of the identifier typically relevant to the user and which is unique within the context of the system.&#xD;&#xA;&#xD;&#xA;DHDR: Source system Original Rx Number (e.g. assigned by EMR or ePrescribing)." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.status">
      <path value="MedicationRequest.status" />
      <fixedCode value="unknown" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.intent">
      <path value="MedicationRequest.intent" />
      <fixedCode value="original-order" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.medication[x]">
      <path value="MedicationRequest.medication[x]" />
      <type>
        <code value="Reference" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.medication[x].reference">
      <path value="MedicationRequest.medication[x].reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.subject">
      <path value="MedicationRequest.subject" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Patient-dispense" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.subject.reference">
      <path value="MedicationRequest.subject.reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.requester">
      <path value="MedicationRequest.requester" />
      <definition value="Prescriber. The individual, organization, or device that initiated the request and has responsibility for its activation." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Practitioner-prescriber" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.requester.reference">
      <path value="MedicationRequest.requester.reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.reasonCode">
      <path value="MedicationRequest.reasonCode" />
      <definition value="The reason or the indication for ordering or not ordering the medication.&#xD;&#xA;&#xD;&#xA;Subset Defining URL https://tgateway.infoway-inforoute.ca/vs/prescriptionodbreasonforuse" />
      <max value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="Reason or indication for writing the prescription." />
        <valueSet value="https://fhir.infoway-inforoute.ca/ValueSet/prescriptionodbreasonforuse" />
      </binding>
    </element>
    <element id="MedicationRequest.reasonCode.coding">
      <path value="MedicationRequest.reasonCode.coding" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.reasonCode.coding.system">
      <path value="MedicationRequest.reasonCode.coding.system" />
      <comment value="The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.&#xD;&#xA;&#xD;&#xA;DHDR: e.g. &quot;http://snomed.info/sct&quot; or “[code-system-local-base]/ca-on-drug-odb-prescription-reason”" />
      <min value="1" />
      <fixedUri value="http://ehealthontario.ca/fhir/NamingSystem/ca-on-drug-odb-prescription-reason" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.reasonCode.coding.code">
      <path value="MedicationRequest.reasonCode.coding.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.reasonCode.coding.display">
      <path value="MedicationRequest.reasonCode.coding.display" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>