<MedicationRequest xmlns="http://hl7.org/fhir">
  <id value="chr-on-west-MedicationRequest-9002" />
  <meta>
    <lastUpdated value="2024-12-10T10:00:00Z" />
    <source value="urn:telus:emr:chr:on-west:123" />
    <profile value="https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwMedicationRequest" />
    <security>
      <system value="http://terminology.hl7.org/CodeSystem/v3-Confidentiality" />
      <code value="N" />
      <display value="normal" />
    </security>
  </meta>
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">Prescription for Metformin 500 mg Tablet for Sarah Marie Johnson. Prescriber: Dr. Emily Thompson. Authored: 2024-12-10. Dosage: Take 1 tablet by mouth twice daily with meals. Qty: 60 tablets, 2 repeats allowed. Indication: Type 2 Diabetes Mellitus.</div>
  </text>
  <extension url="http://prescribeit.ca/fhir/StructureDefinition/ext-rendered-dosage-instruction">
    <valueString value="Take 1 tablet by mouth twice daily with meals. Take with food to reduce GI upset." />
  </extension>
  <extension url="http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.statusChanged">
    <valueDateTime value="2024-12-10T10:00:00Z" />
  </extension>
  <extension url="https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-NoRenewalsFlag">
    <valueBoolean value="false" />
  </extension>
  <identifier>
    <system value="urn:telus:emr:chr:on-west:123:medicationrequest" />
    <value value="9002" />
  </identifier>
  <status value="active" />
  <intent value="order" />
  <reportedBoolean value="false" />
  <medicationReference>
    <reference value="Medication/chr-on-west-Medication-9001" />
  </medicationReference>
  <subject>
    <reference value="Patient/chr-on-west-Patient-12345" />
    <display value="Sarah Marie Johnson" />
  </subject>
  <authoredOn value="2024-12-10" />
  <requester>
    <reference value="Practitioner/chr-on-west-Practitioner-501" />
    <display value="Dr. Emily Thompson" />
  </requester>
  <reasonCode>
    <text value="Type 2 Diabetes Mellitus" />
  </reasonCode>
  <courseOfTherapyType>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode" />
      <code value="CHRON" />
    </coding>
    <text value="Continuous - Yes" />
  </courseOfTherapyType>
  <note>
    <text value="Monitor blood glucose regularly. Review at 3-month follow-up." />
  </note>
  <dosageInstruction>
    <text value="Take 1 tablet by mouth twice daily with meals" />
    <route>
      <coding>
        <system value="urn:telus:emr:chr:on-west:123:medication-route" />
        <code value="PO" />
        <display value="Oral" />
      </coding>
      <text value="Oral" />
    </route>
    <doseAndRate>
      <doseQuantity>
        <value value="500" />
        <unit value="mg" />
      </doseQuantity>
    </doseAndRate>
  </dosageInstruction>
  <dispenseRequest>
    <extension url="https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-TotalQuantity">
      <valueDecimal value="180" />
    </extension>
    <numberOfRepeatsAllowed value="2" />
    <quantity>
      <value value="60" />
      <unit value="Tablet" />
    </quantity>
  </dispenseRequest>
  <substitution>
    <allowedBoolean value="true" />
  </substitution>
</MedicationRequest>