{
  "resourceType": "MedicationRequest",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">empty</div>"
  },
  "meta": {
    "profile": [
      "http://healthpei.ca/fhir/StructureDefinition/ca-pei-profile-MedicationRequest"
    ]
  },
  "identifier": [
    {
      "system": "http://healthpei.ca/fhir/NamingSystem/id-pharmacy-system-med-order",
      "value": "84562"
    }
  ],
  "status": "active",
  "intent": "order",
  "medicationReference": {
    "reference": "urn:uuid:2d4054c9-e02b-4cd3-a0b6-41b598cbe7ad"
  },
  "subject": {
    "reference": "Patient/PEIMedicationRequest"
  },
  "requester": {
    "reference": "urn:uuid:048ac416-e2d9-43e2-a41d-f797490b6ac5"
  },
  "category": [
    {
      "coding": [
        {
          "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
          "code": "community",
          "display": "community"
        }
      ]
    }
  ],
  "authoredOn": "2025-03-15",
  "dosageInstruction": [
    {
      "text": "Take 2 tablets by mouth 3 times a day"
    }
  ],
  "dispenseRequest": {
    "initialFill": {
      "quantity": {
        "value": 30,
        "unit": "mg",
        "system": "http://unitsofmeasure.org",
        "code": "mg"
      },
      "duration": {
        "value": 30,
        "unit": "d",
        "system": "http://unitsofmeasure.org"
      }
    },
    "validityPeriod": {
      "start": "2025-04-01",
      "end": "2025-04-30"
    },
    "numberOfRepeatsAllowed": 1
  }
}