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

# consent

A record of a healthcare consumer's choices, which permits or denies identified recipient(s) or recipient role(s) to perform one or more actions within a given policy context, for specific purposes and periods of time. See the [HL7 FHIR R4 spec](https://hl7.org/fhir/R4/consent.html) for full details.

**Tables in this resource:**

* **consent** – Main consent record (this page)
* [consent\_scope\_coding](/medical-api/handling-data/schema-v100/consent/scope_coding)
* [consent\_policyrule\_coding](/medical-api/handling-data/schema-v100/consent/policyrule_coding)
* [consent\_category](/medical-api/handling-data/schema-v100/consent/category) – Backbone for category
* [consent\_category\_coding](/medical-api/handling-data/schema-v100/consent/category_coding)
* [consent\_provision\_code](/medical-api/handling-data/schema-v100/consent/provision_code) – Backbone for provision code
* [consent\_provision\_code\_coding](/medical-api/handling-data/schema-v100/consent/provision_code_coding)
* [consent\_extension](/medical-api/handling-data/schema-v100/consent/extension)
* [consent\_extension\_vcc\_coding](/medical-api/handling-data/schema-v100/consent/extension_vcc_coding)
* **consent\_references** – Normalized references; see [Reference Tables](/medical-api/handling-data/schema-v100/reference_tables)

**Primary Keys:**

* consent\_id

**Foreign Keys:**

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

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

| Column | Data Type | Description |
| - | - | - |
| consent\_id | varchar | Unique identifier for the consent |
| patient\_id | varchar | Unique identifier for the patient |
| status | varchar | Status of the consent |
| datetime | datetime | When the consent was communicated (FHIR Consent.dateTime) |
| scope\_text | varchar | Free-text scope of the consent |
| scope\_hl7\_code† | varchar | Scope: HL7 code (consentscope) |
| scope\_hl7\_display† | varchar | Scope: HL7 display |
| category\_hl7\_code† | varchar | Category: HL7 code (consentcategorycodes) |
| category\_hl7\_display† | varchar | Category: HL7 display |
| policyrule\_text | varchar | Free-text policy rule |
| policyrule\_hl7\_code† | varchar | Policy rule: HL7 code (consentpolicycodes) |
| policyrule\_hl7\_display† | varchar | Policy rule: HL7 display |
| meta\_source | varchar | Source document filename from FHIR meta.source |
| data\_source\_ext† | varchar | Integration source of the data, derived from FHIR extension |

**Related Tables:**

**Parent:**

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

**Child:**

* [consent\_category](/medical-api/handling-data/schema-v100/consent/category)
* [consent\_category\_coding](/medical-api/handling-data/schema-v100/consent/category_coding)
* [consent\_extension](/medical-api/handling-data/schema-v100/consent/extension)
* [consent\_policyrule\_coding](/medical-api/handling-data/schema-v100/consent/policyrule_coding)
* [consent\_provision\_code](/medical-api/handling-data/schema-v100/consent/provision_code)
* [consent\_scope\_coding](/medical-api/handling-data/schema-v100/consent/scope_coding)


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