{
  "resourceType": "MedicationRequest",
  "id": "chr-on-west-MedicationRequest-9002",
  "meta": {
    "lastUpdated": "2024-12-10T10:00:00Z",
    "source": "urn:telus:emr:chr:on-west:123",
    "profile": [
      "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwMedicationRequest"
    ]
  },
  "text": {
    "status": "generated",
    "div": "<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>"
  },
  "extension": [
    {
      "url": "http://prescribeit.ca/fhir/StructureDefinition/ext-rendered-dosage-instruction",
      "valueString": "Take 1 tablet by mouth twice daily with meals. Take with food to reduce GI upset."
    }
  ],
  "identifier": [
    {
      "system": "urn:telus:emr:chr:on-west:123:medicationrequest",
      "value": "9002"
    }
  ],
  "status": "active",
  "intent": "order",
  "medicationReference": {
    "reference": "Medication/chr-on-west-Medication-9001"
  },
  "subject": {
    "reference": "Patient/chr-on-west-Patient-12345",
    "display": "Sarah Marie Johnson"
  },
  "authoredOn": "2024-12-10",
  "requester": {
    "reference": "Practitioner/chr-on-west-Practitioner-501",
    "display": "Dr. Emily Thompson"
  },
  "reasonCode": [
    {
      "coding": [
        {
          "system": "http://snomed.info/sct",
          "code": "44054006",
          "display": "Diabetes mellitus type 2"
        }
      ],
      "text": "Type 2 Diabetes Mellitus"
    }
  ],
  "note": [
    {
      "text": "Monitor blood glucose regularly. Review at 3-month follow-up."
    }
  ],
  "dosageInstruction": [
    {
      "text": "Take 1 tablet by mouth twice daily with meals"
    }
  ],
  "dispenseRequest": {
    "validityPeriod": {
      "start": "2024-12-10",
      "end": "2025-06-10"
    },
    "numberOfRepeatsAllowed": 2,
    "quantity": {
      "value": 60,
      "unit": "Tablet"
    }
  }
}