> ## Documentation Index
> Fetch the complete documentation index at: https://docs.metriport.com/llms.txt
> Use this file to discover all available pages before exploring further.

# medicationrequest

An order or request for both supply of the medication and the instructions for administration of the medication to a patient. See the [HL7 FHIR R4 spec](https://hl7.org/fhir/R4/medicationrequest.html) for full details.

**Previous version:** [medication\_request](/medical-api/handling-data/schema-v000/medication-request)

**Tables in this resource:**

* **medicationrequest** – Main medication request record (this page)
* [medicationrequest\_extension](/medical-api/handling-data/schema-v100/medicationrequest/extension)
* [medicationrequest\_extension\_vcc\_coding](/medical-api/handling-data/schema-v100/medicationrequest/extension_vcc_coding)
* **medicationrequest\_references** – Normalized references; see [Reference Tables](/medical-api/handling-data/schema-v100/reference_tables)

**Reference Table:**

The `medicationrequest_references` table contains normalized references from the medication request to other entities. It supports the following reference properties:

* **medication\_reference** (required): links to the medication that was requested
* **subject** (required): links to the patient for whom the medication was requested
* **encounter**: links to the encounter where the request was made
* **requester**: links to the practitioner who made the request
* **reasonReference**: links to conditions or other reasons for the medication request

For detailed information about reference table structure and indexing, see the [Reference Tables documentation](/medical-api/handling-data/schema-v100/reference_tables).

**Primary Keys:**

* medicationrequest\_id

**Foreign Keys:**

* patient\_id – links to the [patient](/medical-api/handling-data/schema-v100/patient/base) table (subject)
* medication\_id – links to the [medication](/medical-api/handling-data/schema-v100/medication/base) table

<div style={{textAlign: 'right'}}><sub>† Metriport Platform added</sub></div>

| Column | Data Type | Description |
| - | - | - |
| medicationrequest\_id | varchar | Unique identifier for the medication request |
| patient\_id | varchar | Unique identifier for the patient (subject) |
| medication\_id | varchar | Reference to the requested medication |
| status | varchar | Status of the request (e.g. active, completed, cancelled) |
| authoredon | datetime | Date/time the request was authored |
| dosageinstruction\_doseandrate\_dosequantity\_unit | varchar | Unit for the prescribed dose quantity |
| dosageinstruction\_doseandrate\_dosequantity\_amount | varchar | Prescribed dose quantity |
| intent | varchar | Intent of the request (e.g. order, plan) |
| note\_text† | varchar | Additional notes about the request (first note) |
| meta\_source | varchar | Source document filename from FHIR meta.source |
| data\_source\_ext† | varchar | Integration source derived from FHIR extension |

**Related Tables:**

**Parent:**

* [medication](/medical-api/handling-data/schema-v100/medication/base)
* [patient](/medical-api/handling-data/schema-v100/patient/base)

**Child:**

* [medicationrequest\_extension](/medical-api/handling-data/schema-v100/medicationrequest/extension)

## Version diff

**Renamed**

* `medication_request_id` → `medicationrequest_id`
* `authored_on` → `authoredon`
* `data_source` → `meta_source`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.