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

# composition

A set of healthcare-related information that is assembled together into a single logical package that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. See the [HL7 FHIR R4 spec](https://hl7.org/fhir/R4/composition.html) for full details.

**Tables in this resource:**

* **composition** – Main composition record (this page)
* [composition\_type\_coding](/medical-api/handling-data/schema-v100/composition/type_coding)
* [composition\_section](/medical-api/handling-data/schema-v100/composition/section) – Sections within the document
* [composition\_section\_code\_coding](/medical-api/handling-data/schema-v100/composition/section_code_coding)
* [composition\_attester](/medical-api/handling-data/schema-v100/composition/attester) – Attestation information
* [composition\_event](/medical-api/handling-data/schema-v100/composition/event) – Event/period
* [composition\_section\_entry](/medical-api/handling-data/schema-v100/composition/section_entry) – Section entries
* [composition\_extension](/medical-api/handling-data/schema-v100/composition/extension)
* [composition\_extension\_vcc\_coding](/medical-api/handling-data/schema-v100/composition/extension_vcc_coding)
* **composition\_references** – [Reference Tables](/medical-api/handling-data/schema-v100/reference_tables)

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

**Primary Keys:**

* composition\_id

**Foreign Keys:**

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

| Column                | Data Type | Description                                                     |
| --------------------- | --------- | --------------------------------------------------------------- |
| composition\_id       | varchar   | Unique identifier for the composition                           |
| patient\_id           | varchar   | Unique identifier for the patient (`Composition.subject`)       |
| status                | varchar   | Status of the composition                                       |
| date                  | datetime  | Composition date (`Composition.date`)                           |
| type\_text            | varchar   | Free-text type of the composition (`Composition.type.text`)     |
| type\_loinc\_code†    | varchar   | LOINC type code (`Composition.type.coding` preferred binding)   |
| type\_loinc\_display† | varchar   | Human-readable description of LOINC type                        |
| title                 | varchar   | Title of the composition (`Composition.title`)                  |
| identifier\_use       | varchar   | Identifier use (`Composition.identifier.use`)                   |
| identifier\_value     | varchar   | Identifier value (`Composition.identifier.value`)               |
| confidentiality       | varchar   | Confidentiality code (`Composition.confidentiality`)            |
| meta\_source          | varchar   | Source document filename from FHIR meta.source                  |
| data\_source\_ext†    | varchar   | Integration source derived from Metriport data-source extension |

**Related Tables:**

**Parent:**

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

**Child:**

* [composition\_attester](/medical-api/handling-data/schema-v100/composition/attester)
* [composition\_event](/medical-api/handling-data/schema-v100/composition/event)
* [composition\_extension](/medical-api/handling-data/schema-v100/composition/extension)
* [composition\_section](/medical-api/handling-data/schema-v100/composition/section)
* [composition\_type\_coding](/medical-api/handling-data/schema-v100/composition/type_coding)
