<MedicationStatement xmlns="http://hl7.org/fhir">
  <id value="chr-on-west-MedicationStatement-9003" />
  <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/DwMedicationStatement" />
    <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">Active medication: Metformin 500 mg Tablet. Dosage: Take 1 tablet by mouth twice daily with meals. Ongoing treatment for type 2 diabetes.</div>
  </text>
  <extension url="http://prescribeit.ca/fhir/StructureDefinition/ext-rendered-dosage-instruction">
    <valueString value="Take 1 tablet by mouth twice daily with meals" />
  </extension>
  <identifier>
    <system value="urn:telus:emr:chr:on-west:123:medicationstatement" />
    <value value="9003" />
  </identifier>
  <status value="active" />
  <statusReason>
    <text value="Ongoing treatment for type 2 diabetes" />
  </statusReason>
  <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>
  <effectivePeriod>
    <start value="2024-10-01" />
  </effectivePeriod>
  <dosage>
    <sequence value="1" />
    <asNeededBoolean value="false" />
    <route>
      <coding>
        <system value="http://snomed.info/sct" />
        <code value="26643006" />
        <display value="Oral route" />
      </coding>
      <text value="Oral" />
    </route>
    <doseAndRate>
      <doseQuantity>
        <value value="500" />
        <unit value="mg" />
      </doseQuantity>
    </doseAndRate>
  </dosage>
</MedicationStatement>