> ## 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.

# Medication

> Schema documentation for the Medication table in the Metriport data model

A medication resource is used for the identification and definition of a medication for the purposes of prescribing, dispensing, and administering a medication as well as for making statements about medication use.

**Primary Keys:**

* medication\_id

| Column | Data Type | Description |
| - | - | - |
| medication\_id | varchar | Unique identifier for the medication |
| status | varchar | Status of the medication. Possible values:<br />– <code>active</code>: The medication is currently in use.<br />– <code>inactive</code>: The medication is not currently in use.<br />– <code>entered-in-error</code>: The medication record was entered in error. Refer to <a href="https://hl7.org/fhir/R4/valueset-medication-status.html" target="_blank" rel="noopener noreferrer">HL7 FHIR Medication Status</a> for more details. |
| rxnorm\_code | varchar | RxNorm code for the medication |
| rxnorm\_display | varchar | Human-readable description from RxNorm |
| ndc\_code | varchar | National Drug Code for the medication |
| ndc\_display | varchar | Human-readable description from NDC |
| meta\_source | varchar | Source document filename from FHIR meta.source |
| data\_source | varchar | **Deprecated.** Use `meta_source` instead. |
| data\_source\_ext | varchar | Integration source of the data, derived from FHIR extension |

**Related Tables:**

* [Medication Administration](/medical-api/handling-data/schema-v000/medication-administration) - Records of medication administration
* [Medication Dispense](/medical-api/handling-data/schema-v000/medication-dispense) - Records of medication dispensing
* [Medication Request](/medical-api/handling-data/schema-v000/medication-request) - Records of medication requests
* [Medication Statement](/medical-api/handling-data/schema-v000/medication-statement) - Records of medication statements


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