{
  "resourceType": "MedicationRequest",
  "id": "ma-ma-schema-1-MedicationRequest-8002",
  "meta": {
    "source": "urn:telus:emr:ma:ma-schema-1",
    "lastUpdated": "2023-12-18T23:07:47Z",
    "security": [
      {
        "code": "N",
        "system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
        "display": "normal"
      }
    ],
    "profile": [
      "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwMedicationRequest"
    ]
  },
  "intent": "order",
  "courseOfTherapyType": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code": "CHRON"
      }
    ],
    "text": "Continuous/chronic"
  },
  "dispenseRequest": {
    "expectedSupplyDuration": {
      "system": "http://unitsofmeasure.org",
      "unit": "days",
      "code": "d",
      "value": 30
    },
    "extension": [
      {
        "url": "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-DispenseTrial",
        "valueBoolean": false
      }
    ],
    "numberOfRepeatsAllowed": 5,
    "quantity": {
      "value": 30,
      "unit": "Tablet",
      "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
      "code": "TAB"
    },
    "validityPeriod": {
      "start": "2023-12-18",
      "end": "2024-06-18"
    },
    "performer": {
      "display": "Main Street Pharmacy"
    }
  },
  "identifier": [
    {
      "system": "urn:telus:emr:ma:ma-schema-1:MedicationRequest",
      "use": "official",
      "value": "8002"
    }
  ],
  "status": "active",
  "medicationReference": {
    "reference": "Medication/ma-ma-schema-1-Medication-8001",
    "display": "Amlodipine 5 mg Tablet",
    "type": "Medication"
  },
  "subject": {
    "reference": "Patient/ma-ma-schema-1-Patient-12345",
    "display": "John Michael Smith",
    "type": "Patient"
  },
  "encounter": {
    "reference": "Encounter/ma-ma-schema-1-Encounter-2001",
    "type": "Encounter"
  },
  "authoredOn": "2023-12-18T10:35:00Z",
  "requester": {
    "reference": "Practitioner/ma-ma-schema-1-Practitioner-789",
    "display": "Dr. Sarah Johnson",
    "type": "Practitioner"
  },
  "reasonCode": [
    {
      "text": "Essential Hypertension"
    }
  ],
  "reportedBoolean": false,
  "note": [
    {
      "text": "Take once daily in the morning. Monitor blood pressure regularly."
    }
  ],
  "dosageInstruction": [
    {
      "sequence": 1,
      "text": "Take 1 tablet by mouth once daily",
      "timing": {
        "repeat": {
          "frequency": 1,
          "period": 1,
          "periodUnit": "d"
        },
        "code": {
          "coding": [
            {
              "system": "urn:telus:emr:ma:ma-schema-1:medication-frequency",
              "code": "QD",
              "display": "Once daily"
            }
          ]
        }
      },
      "route": {
        "coding": [
          {
            "system": "urn:telus:emr:ma:ma-schema-1:medication-route",
            "code": "PO",
            "display": "Oral"
          }
        ],
        "text": "Oral"
      },
      "doseAndRate": [
        {
          "type": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                "code": "ordered",
                "display": "Ordered"
              }
            ]
          },
          "doseQuantity": {
            "value": 1,
            "unit": "Tablet",
            "system": "urn:telus:emr:ma:ma-schema-1:medication-dose-unit",
            "code": "TAB"
          }
        }
      ]
    }
  ],
  "substitution": {
    "allowedBoolean": true,
    "reason": {
      "coding": [
        {
          "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
          "code": "FP",
          "display": "formulary policy"
        }
      ]
    }
  },
  "priority": "routine",
  "supportingInformation": [
    {
      "reference": "Observation/ma-ma-schema-1-Observation-vitals-bp-5001",
      "display": "Blood Pressure: 120/80 mmHg",
      "type": "Observation"
    }
  ]
}