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

# binary

A resource that represents the data of a single raw artifact as digital content accessible in its native format. A Binary resource can contain any content, whether text, image, pdf, zip archive, etc. See the [HL7 FHIR R4 spec](https://hl7.org/fhir/R4/binary.html) for full details.

**Previous version:** [binary](/medical-api/handling-data/schema-v000/binary)

**Tables in this resource:** **binary** – Binary content (this page).

**Primary Keys:**

* binary\_id

**Foreign Keys:**

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

| Column            | Data Type | Description                                      |
| ----------------- | --------- | ------------------------------------------------ |
| binary\_id        | varchar   | Unique identifier for the binary resource        |
| patient\_id       | varchar   | Unique identifier for the patient                |
| contenttype       | varchar   | MIME type of the binary data (e.g., text/plain)  |
| data              | varchar   | Base64-encoded binary data                       |
| meta\_source      | varchar   | Data source (e.g., metriport:ai-generated-brief) |
| meta\_lastupdated | datetime  | Last update timestamp from FHIR meta             |

**Related Tables:**

**Parent:**

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

## Version diff

**Renamed**

* `content_type` → `contenttype`
* `meta_last_updated` → `meta_lastupdated`
