Hero EMR electronic health information export format
Format version 1.0. This page describes the files Hero EMR creates when a practice exports one patient's or all patients' electronic health information (ONC 45 CFR 170.315(b)(10)). A machine-readable copy is at format.json.
Conventions
- Each export is one .zip file containing README.txt, manifest.json, attachments.ndjson, context/ (practice, providers, locations; the whole-practice export adds staff names), data/<table>.ndjson and attachments/.
- data/<table>.ndjson holds one JSON object per line, one line per database row. Every object carries _patient_id: the patient the row belongs to.
- reference/<table>.ndjson holds the practice's own rows that the patient's rows point to (questionnaire definitions, form and agreement texts, visit types, outside providers, pharmacies, ...), limited to the rows actually referenced.
- Identifiers are UUID strings. Columns ending in _id refer to the id of the table they are named after (for example encounter_id -> encounters.id), or to context/ for staff, providers and the practice.
- Instants (date-times) are ISO 8601 in UTC with an explicit offset. Dates are YYYY-MM-DD calendar dates of the practice. Money and other exact decimals are strings. JSON columns are JSON.
- Codes are stored as recorded: ICD-10-CM, SNOMED CT, LOINC, RxNorm, CPT/HCPCS, CVX, NDC and UCUM values appear in the columns named for them.
- manifest.json lists every data file with its row count and SHA-256 checksum; attachments.ndjson lists every stored file with its status (included, missing, archived_retrieval_requested, unreadable) and checksum.
- Rows marked is_deleted or with an 'entered in error' status are included as stored; filter them when presenting the current record.
- The single-patient export leaves out psychotherapy notes and rows filed on them (45 CFR 171.102). The whole-practice export includes them.
- Sign-in secrets, one-time codes, and similar values are never exported; the tables and columns left out are listed below with the reason.
Column encodings
| Encoding | Meaning |
|---|---|
json | Plain JSON value (see conventions). |
zlib_text | Stored compressed; exported as plain text. |
zlib_json | Stored compressed; exported as JSON (rich-text document). |
base64 | Binary value as {"base64": "..."}. |
file | Stored inline; exported as a file in attachments/ and given here as {"path": "..."}. |
attachment | Stored file; copied into attachments/ and given here as {"path": "..."}. |
sensitive_identifier | Social Security number, exported as nine digits. |
Tables
Appointments and scheduling
data/appointment_series.ndjson — One patient's course of recurring care with one provider.
Linked to the patient by: appointment_series.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
physician_id | UUID | no | json | |
physician_visit_type_id | UUID | yes | json | |
visit_type | VARCHAR(50) | no | json | |
location_id | UUID | yes | json | |
duration_minutes | SMALLINT | no | json | |
template_id | UUID | yes | json | |
label | VARCHAR(120) | no | json | |
recurrence | JSONB | no | json | |
start_date | DATE | no | json | |
end_date | DATE | yes | json | |
planned_session_count | SMALLINT | no | json | |
sessions_completed_before_series | SMALLINT | no | json | |
status | VARCHAR(16) | no | json | |
paused_at | DATETIME | yes | json | |
pause_reason | TEXT | yes | json | |
resume_on | DATE | yes | json | |
completed_at | DATETIME | yes | json | |
auto_completed_at | DATETIME | yes | json | |
cancelled_at | DATETIME | yes | json | |
status_changed_by | UUID | yes | json | |
max_gap_days | SMALLINT | yes | json | |
reminder_mode | VARCHAR(24) | no | json | |
coordinator_user_id | UUID | yes | json | |
source | VARCHAR(16) | no | json | |
external_source | VARCHAR(32) | yes | json | |
external_ref | VARCHAR(128) | yes | json | |
department_id | UUID | yes | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/appointment_waitlist_entries.ndjson — A patient's standing request for an earlier appointment slot.
Linked to the patient by: appointment_waitlist_entries.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
physician_id | UUID | no | json | |
visit_type_name | VARCHAR(100) | no | json | |
physician_visit_type_id | UUID | yes | json | |
requested_duration_minutes | SMALLINT | yes | json | |
location_id | UUID | yes | json | |
anchor_scheduled_visit_id | UUID | yes | json | |
source | VARCHAR(50) | no | json | |
status | VARCHAR(20) | no | json | |
preferred_start_date | DATE | yes | json | |
preferred_end_date | DATE | yes | json | |
preferred_weekdays | JSONB | yes | json | |
preferred_time_windows | JSONB | yes | json | |
notes | TEXT | yes | json | |
joined_at | DATETIME | no | json | |
last_offered_at | DATETIME | yes | json | |
offer_count | INTEGER | no | json | |
department_id | UUID | yes | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/booking_check_decisions.ndjson
Linked to the patient by: booking_check_decisions.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
scheduled_visit_id | UUID | no | json | |
patient_id | UUID | no | json | |
insurance_policy_id | UUID | yes | json | |
trigger | VARCHAR(32) | no | json | |
mode | VARCHAR(16) | no | json | |
outcome | VARCHAR(16) | no | json | |
applied | BOOLEAN | no | json | |
not_applied_reason | VARCHAR(32) | yes | json | |
hold_reason | VARCHAR(32) | yes | json | |
due_at | DATETIME | yes | json | |
released_at | DATETIME | yes | json | |
released_by | UUID | yes | json | |
decision | JSONB | yes | json | |
facts | JSONB | no | json | |
engine_version | SMALLINT | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/followup_requests.ndjson — Tracks follow-up appointment requests from encounter completion to scheduling.
Linked to the patient by: followup_requests.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
encounter_id | UUID | no | json | |
patient_id | UUID | no | json | |
physician_id | UUID | no | json | |
organization_id | UUID | no | json | |
followup_type | VARCHAR(50) | no | json | |
timing_value | INTEGER | yes | json | |
timing_unit | VARCHAR(20) | yes | json | |
reason | TEXT | yes | json | |
instructions | TEXT | yes | json | |
earliest_date | DATE | yes | json | |
latest_date | DATE | yes | json | |
preferred_time | VARCHAR(20) | yes | json | |
status | VARCHAR(17) | no | json | |
last_contact_channel | VARCHAR(20) | yes | json | |
last_contact_at | DATETIME | yes | json | |
contact_attempts | INTEGER | no | json | |
next_contact_at | DATETIME | yes | json | |
staff_notification_due_at | DATETIME | yes | json | |
staff_notification_sent_at | DATETIME | yes | json | |
processing_failure_count | INTEGER | no | json | |
last_processing_error | TEXT | yes | json | |
processing_failed_at | DATETIME | yes | json | |
responded | BOOLEAN | no | json | |
responded_at | DATETIME | yes | json | |
response_channel | VARCHAR(20) | yes | json | |
scheduled_visit_id | UUID | yes | json | |
declined_reason | TEXT | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/group_session_attendees.ndjson — One patient in one session: their own visit, attendance and note part.
Linked to the patient by: group_session_attendees.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
group_session_id | UUID | no | json | |
patient_id | UUID | no | json | |
scheduled_visit_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
attendance | VARCHAR(16) | no | json | |
minutes_late | SMALLINT | yes | json | |
minutes_attended | SMALLINT | yes | json | |
attendance_marked_by | UUID | yes | json | |
attendance_marked_at | DATETIME | yes | json | |
individual_note | JSONB | yes | json | |
individual_note_version | INTEGER | no | json | |
diagnosis_codes | JSONB | no | json | |
interactive_complexity | BOOLEAN | no | json | |
status | VARCHAR(24) | no | json | |
needs_attention_reason | TEXT | yes | json | |
medical_note_id | UUID | yes | json | |
signed_at | DATETIME | yes | json | |
name_guard_confirmations | JSONB | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/provider_running_behind_statuses.ndjson — One "running behind" estimate a provider sent.
Linked to the patient by: provider_running_behind_statuses.trigger_visit_id -> scheduled_visits.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
physician_id | UUID | no | json | |
set_by_user_id | UUID | no | json | |
minutes_behind | SMALLINT | no | json | |
source | VARCHAR(16) | no | json | |
trigger_visit_id | UUID | yes | json | |
notify_patients | BOOLEAN | no | json | |
patient_notices_queued | INTEGER | no | json | |
created_at | DATETIME | no | json | |
expires_at | DATETIME | no | json | |
cleared_at | DATETIME | yes | json | |
cleared_by_user_id | UUID | yes | json | |
clear_reason | VARCHAR(16) | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/reschedule_requests.ndjson — A released appointment the patient is asked to re-book themselves.
Linked to the patient by: reschedule_requests.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
original_visit_id | UUID | no | json | |
physician_id | UUID | no | json | |
visit_type | VARCHAR(50) | no | json | |
physician_visit_type_id | UUID | yes | json | |
duration_minutes | SMALLINT | no | json | |
location_id | UUID | yes | json | |
original_scheduled_datetime | DATETIME | no | json | |
status | VARCHAR(16) | no | json | |
fulfilled_visit_id | UUID | yes | json | |
reason_note | TEXT | yes | json | |
created_by_user_id | UUID | no | json | |
batch_id | UUID | yes | json | |
expires_at | DATETIME | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
fulfilled_at | DATETIME | yes | json | |
department_id | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/running_behind_patient_notices.ndjson — One patient notice per visit per organization-local day (the atomic dedupe).
Linked to the patient by: running_behind_patient_notices.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
status_id | UUID | no | json | |
scheduled_visit_id | UUID | no | json | |
patient_id | UUID | no | json | |
physician_id | UUID | no | json | |
local_date | DATE | no | json | |
outbox_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/running_behind_prompt_responses.ndjson — The provider answered the automatic prompt for this visit (first answer wins).
Linked to the patient by: running_behind_prompt_responses.scheduled_visit_id -> scheduled_visits.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
physician_id | UUID | no | json | |
scheduled_visit_id | UUID | no | json | |
response | VARCHAR(16) | no | json | |
status_id | UUID | yes | json | |
created_by_user_id | UUID | no | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/scheduled_visit_events.ndjson
Linked to the patient by: scheduled_visit_events.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
scheduled_visit_id | UUID | no | json | |
patient_id | UUID | no | json | |
event_type | VARCHAR(32) | no | json | |
occurred_at | DATETIME | no | json | |
actor_type | VARCHAR(16) | no | json | |
actor_user_id | UUID | yes | json | |
source | VARCHAR(32) | yes | json | |
channel | VARCHAR(32) | yes | json | |
reason_code | VARCHAR(40) | yes | json | |
reason | TEXT | yes | json | |
previous_scheduled_datetime | DATETIME | yes | json | |
new_scheduled_datetime | DATETIME | yes | json | |
previous_physician_id | UUID | yes | json | |
new_physician_id | UUID | yes | json | |
previous_location_id | UUID | yes | json | |
new_location_id | UUID | yes | json | |
previous_duration_minutes | SMALLINT | yes | json | |
new_duration_minutes | SMALLINT | yes | json | |
related_visit_id | UUID | yes | json | |
reschedule_request_id | UUID | yes | json | |
followup_request_id | UUID | yes | json | |
dedupe_key | VARCHAR(160) | yes | json | |
details | JSONB | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/scheduled_visit_intake_deadlines.ndjson
Linked to the patient by: scheduled_visit_intake_deadlines.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
scheduled_visit_id | UUID | no | json | |
patient_id | UUID | no | json | |
booked_at | DATETIME | no | json | |
deadline_at | DATETIME | no | json | |
hours | SMALLINT | no | json | |
status | VARCHAR(16) | no | json | |
outcome_reason | VARCHAR(64) | yes | json | |
resolved_at | DATETIME | yes | json | |
kept_by_user_id | UUID | yes | json | |
kept_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/scheduled_visits.ndjson
Linked to the patient by: scheduled_visits.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
physician_id | UUID | no | json | |
organization_id | UUID | no | json | |
visit_type | VARCHAR(50) | no | json | |
physician_visit_type_id | UUID | yes | json | |
location_id | UUID | yes | json | |
service_facility_id | UUID | yes | json | |
scheduled_datetime | DATETIME | no | json | |
duration_minutes | SMALLINT | no | json | |
visit_status | VARCHAR(16) | no | json | |
visit_notes | TEXT | yes | json | |
holding_preregistration_id | UUID | yes | json | |
hold_expires_at | DATETIME | yes | json | |
hold_reason | VARCHAR(32) | yes | json | |
hold_detail | TEXT | yes | json | |
previsit_complete | BOOLEAN | no | json | |
previsit_incomplete_reason | TEXT | yes | json | |
previsit_text_summary | TEXT | yes | json | |
previsit_completed_at | DATETIME | yes | json | |
checked_in_at | DATETIME | yes | json | |
checked_in_via | VARCHAR(20) | yes | json | |
previsit_workup_status | VARCHAR(20) | yes | json | |
previsit_workup_suggestion | TEXT | yes | json | |
previsit_workup_sources | JSONB | yes | json | |
previsit_workup_generated_at | DATETIME | yes | json | |
previsit_workup_job_id | UUID | yes | json | |
previsit_workup_attempts | SMALLINT | yes | json | |
previsit_workup_model_version | VARCHAR(50) | yes | json | |
previsit_workup_prompt_version | VARCHAR(50) | yes | json | |
previsit_workup_retrieval_ids | JSONB | yes | json | |
previsit_workup_context_snapshot_at | DATETIME | yes | json | |
scheduling_source | VARCHAR(32) | yes | json | |
import_metadata | JSONB | yes | json | |
booked_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
cancelled_at | DATETIME | yes | json | |
cancellation_initiator | VARCHAR(8) | yes | json | |
cancellation_reason_code | VARCHAR(20) | yes | json | |
cancellation_note | TEXT | yes | json | |
cancelled_by_user_id | UUID | yes | json | |
previsit_auto_charge_hold | BOOLEAN | no | json | |
previsit_auto_charge_hold_reason | TEXT | yes | json | |
previsit_auto_charge_held_at | DATETIME | yes | json | |
previsit_auto_charge_held_by_user_id | UUID | yes | json | |
series_id | UUID | yes | json | |
series_makeup_for_visit_id | UUID | yes | json | |
department_id | UUID | yes | json | |
schedule_resource_id | UUID | yes | json | |
rooming_status_key | VARCHAR(40) | yes | json | |
rooming_status_base | VARCHAR(32) | yes | json | |
rooming_status_set_at | DATETIME | yes | json | |
rooming_status_set_by | UUID | yes | json | |
checked_out_at | DATETIME | yes | json | |
checked_out_by | UUID | yes | json | |
checkout_followup_visit_id | UUID | yes | json | |
additional_provider_id | UUID | yes | json | |
group_session_id | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): previsit_workup_input_hash
data/therapy_group_members.ndjson — A standing member: booked into every future session of the group.
Linked to the patient by: therapy_group_members.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
group_id | UUID | no | json | |
patient_id | UUID | no | json | |
joined_on | DATE | no | json | |
left_on | DATE | yes | json | |
added_by | UUID | no | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/video_visit_attendance.ndjson
Linked to the patient by: video_visit_attendance.encounter_id -> encounters.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
encounter_id | UUID | no | json | |
physician_id | UUID | yes | json | |
platform | VARCHAR(32) | no | json | |
external_space_id | VARCHAR(255) | yes | json | |
status | VARCHAR(16) | no | json | |
conference_count | INTEGER | no | json | |
participant_count | INTEGER | no | json | |
started_at | DATETIME | yes | json | |
ended_at | DATETIME | yes | json | |
provider_seconds | INTEGER | yes | json | |
others_seconds | INTEGER | yes | json | |
together_seconds | INTEGER | no | json | |
provider_first_joined_at | DATETIME | yes | json | |
others_first_joined_at | DATETIME | yes | json | |
participants | JSONB | yes | json | |
finalized_at | DATETIME | yes | json | |
last_checked_at | DATETIME | no | json | |
last_error | VARCHAR(500) | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Billing and payments
data/headway_session_payments.ndjson — One Headway provider appointment with its billing/payout facts (reconciliation).
Linked to the patient by: headway_session_payments.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
connection_id | UUID | no | json | |
headway_provider_appointment_id | BIGINT | no | json | |
headway_event_id | BIGINT | yes | json | |
headway_provider_id | BIGINT | yes | json | |
headway_patient_user_id | BIGINT | yes | json | |
submission_id | UUID | yes | json | |
encounter_id | UUID | yes | json | |
patient_id | UUID | yes | json | |
physician_id | UUID | yes | json | |
date_of_service | DATE | yes | json | |
start_at | DATETIME | yes | json | |
billing_type | VARCHAR(32) | yes | json | |
cpt_codes | ARRAY | no | json | |
appointment_status | VARCHAR(64) | yes | json | |
claim_status | VARCHAR(64) | yes | json | |
provider_payment_status | VARCHAR(32) | yes | json | |
provider_payment_amount | NUMERIC(12, 2) | yes | json | |
provider_payment_fees_amount | NUMERIC(12, 2) | yes | json | |
insurance_payment_amount | NUMERIC(12, 2) | yes | json | |
patient_responsibility_amount | NUMERIC(12, 2) | yes | json | |
patient_payment_status | VARCHAR(64) | yes | json | |
patient_payment_amount | NUMERIC(12, 2) | yes | json | |
provider_payment_date | DATE | yes | json | |
provider_payment_landing_date | DATE | yes | json | |
is_open_recoup | BOOLEAN | no | json | |
is_in_terminal_failure | BOOLEAN | no | json | |
reconciliation_status | VARCHAR(16) | no | json | |
expected_amount | NUMERIC(12, 2) | yes | json | |
variance_amount | NUMERIC(12, 2) | yes | json | |
last_synced_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): raw_hash
data/headway_session_submissions.ndjson — The "send to Headway" queue: one signed Hero visit confirmed on Headway.
Linked to the patient by: headway_session_submissions.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
connection_id | UUID | no | json | |
encounter_id | UUID | no | json | |
patient_id | UUID | no | json | |
physician_id | UUID | yes | json | |
scheduled_visit_id | UUID | yes | json | |
headway_provider_id | BIGINT | yes | json | |
headway_patient_user_id | BIGINT | yes | json | |
headway_event_id | BIGINT | yes | json | |
headway_event_virtual_id | VARCHAR(64) | yes | json | |
headway_provider_appointment_id | BIGINT | yes | json | |
status | VARCHAR(16) | no | json | |
origin | VARCHAR(8) | no | json | |
date_of_service | DATE | no | json | |
billing_type | VARCHAR(32) | yes | json | |
cpt_codes | ARRAY | no | json | |
diagnosis_codes | ARRAY | no | json | |
payload_preview | JSONB | no | json | |
missing_fields | JSONB | no | json | |
attachments | JSONB | no | json | |
confirmability | JSONB | no | json | |
events | JSONB | no | json | |
attempts | INTEGER | no | json | |
next_attempt_at | DATETIME | yes | json | |
last_error_code | VARCHAR(64) | yes | json | |
last_error_message | TEXT | yes | json | |
cancel_reason | TEXT | yes | json | |
queued_by_user_id | UUID | yes | json | |
approved_by_user_id | UUID | yes | json | |
approved_at | DATETIME | yes | json | |
sent_at | DATETIME | yes | json | |
confirmed_at | DATETIME | yes | json | |
canceled_at | DATETIME | yes | json | |
idempotency_key | VARCHAR(128) | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Billing, claims and payments
data/account_receivables.ndjson
Linked to the patient by: account_receivables.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
charge_id | UUID | no | json | |
original_amount | NUMERIC(10, 2) | no | json | |
current_balance | NUMERIC(10, 2) | no | json | |
patient_current_balance | NUMERIC(10, 2) | yes | json | |
due_date | DATE | no | json | |
aging_bucket | VARCHAR(13) | no | json | |
last_payment_date | DATETIME | yes | json | |
status | VARCHAR(19) | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/apcm_billing_events.ndjson
Linked to the patient by: apcm_billing_events.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
enrollment_id | UUID | no | json | |
patient_id | UUID | no | json | |
billing_month | DATE | no | json | |
billing_code | VARCHAR(10) | no | json | |
billing_amount | NUMERIC(10, 2) | no | json | |
addon_lines | JSONB | no | json | |
chronic_condition_count | INTEGER | no | json | |
qualifying_conditions | JSONB | no | json | |
is_qmb | BOOLEAN | no | json | |
status | VARCHAR(9) | no | json | |
skip_reason | VARCHAR(255) | yes | json | |
error_message | TEXT | yes | json | |
charge_id | UUID | yes | json | |
claim_id | UUID | yes | json | |
encounter_id | UUID | yes | json | |
generated_at | DATETIME | no | json | |
generated_by | VARCHAR(50) | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/apcm_care_plans.ndjson
Linked to the patient by: apcm_care_plans.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
enrollment_id | UUID | no | json | |
patient_id | UUID | no | json | |
goals | JSONB | no | json | |
interventions | JSONB | no | json | |
medications_reviewed_at | DATETIME | yes | json | |
last_updated_at | DATETIME | no | json | |
conditions | JSONB | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/apcm_enrollments.ndjson
Linked to the patient by: apcm_enrollments.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
enrolled_by | UUID | no | json | |
care_manager_user_id | UUID | yes | json | |
assigned_provider_id | UUID | no | json | |
consent_obtained_at | DATETIME | yes | json | |
consent_method | VARCHAR(14) | yes | json | |
consent_documented_by | UUID | yes | json | |
consent_signature_name | VARCHAR(255) | yes | json | |
consent_signature_blob | TEXT | yes | json | |
consent_text_version | VARCHAR(50) | yes | json | |
consent_captured_from | VARCHAR(14) | yes | json | |
consent_pdf_media_id | UUID | yes | json | |
consent_pdf_generated_at | DATETIME | yes | json | |
cost_share_informed | BOOLEAN | yes | json | |
enrollment_source | VARCHAR(13) | no | json | |
status | VARCHAR(15) | no | json | |
status_reason | VARCHAR(255) | yes | json | |
paused_at | DATETIME | yes | json | |
terminated_at | DATETIME | yes | json | |
consent_pending | BOOLEAN | no | json | |
current_tier | VARCHAR(5) | yes | json | |
tier_determined_at | DATETIME | yes | json | |
chronic_condition_count | INTEGER | yes | json | |
is_qmb | BOOLEAN | no | json | |
initiating_encounter_id | UUID | yes | json | |
initiating_visit_date | DATE | yes | json | |
last_billed_date | DATE | yes | json | |
next_billing_date | DATE | yes | json | |
first_billable_month | DATE | yes | json | |
auto_trigger_reason | VARCHAR(255) | yes | json | |
auto_triggered_at | DATETIME | yes | json | |
department_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/appeal_case_documents.ndjson — A file attached to a case: an uploaded EOB/payer letter (Media) or a generated packet (S3).
Linked to the patient by: appeal_case_documents.case_id -> appeal_cases.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
case_id | UUID | no | json | |
organization_id | UUID | no | json | |
media_id | UUID | yes | json | |
kind | VARCHAR(20) | no | json | |
label | VARCHAR(200) | yes | json | |
s3_key | VARCHAR(500) | yes | attachment | |
sha256 | VARCHAR(64) | yes | json | |
page_count | INTEGER | yes | json | |
inputs_sha256 | VARCHAR(64) | yes | json | |
evidence_ids | JSONB | yes | json | |
members | JSONB | yes | json | |
contract_rates_shown | BOOLEAN | yes | json | |
source | VARCHAR(20) | no | json | |
fax_id | UUID | yes | json | |
created_by | UUID | yes | json | |
actor_kind | VARCHAR(20) | no | json | |
created_at | DATETIME | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/appeal_cases.ndjson — One appeal effort for a denied/underpaid claim (Hero claim or outside claim).
Linked to the patient by: appeal_cases.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | yes | json | |
source | VARCHAR(16) | no | json | |
claim_id | UUID | yes | json | |
claim_issue_id | UUID | yes | json | |
outside_payer_name | VARCHAR(200) | yes | json | |
outside_payer_id | VARCHAR(50) | yes | json | |
outside_claim_number | VARCHAR(100) | yes | json | |
outside_service_date | DATE | yes | json | |
outside_denial_date | DATE | yes | json | |
outside_billed_amount | NUMERIC(12, 2) | yes | json | |
outside_paid_amount | NUMERIC(12, 2) | yes | json | |
outside_denial_codes | JSONB | no | json | |
outside_lines | JSONB | no | json | |
outside_encounter_id | UUID | yes | json | |
hero_packet | JSONB | yes | json | |
payer_directory_key | VARCHAR(80) | yes | json | |
reference_code | VARCHAR(16) | yes | json | |
status | VARCHAR(20) | no | json | |
path | VARCHAR(20) | no | json | |
level | SMALLINT | no | json | |
letter | JSONB | yes | json | |
evidence_selection | JSONB | yes | json | |
deadline | DATE | yes | json | |
follow_up_on | DATE | yes | json | |
level_deadline | DATE | yes | json | |
outcome_notes | TEXT | yes | json | |
closed_at | DATETIME | yes | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
last_actor_kind | VARCHAR(20) | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/appeal_responses.ndjson — What the insurance company sent back (decision, acknowledgment, records request).
Linked to the patient by: appeal_responses.case_id -> appeal_cases.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
case_id | UUID | no | json | |
level | SMALLINT | no | json | |
received_on | DATE | no | json | |
respond_by | DATE | yes | json | |
channel | VARCHAR(10) | no | json | |
outcome | VARCHAR(20) | no | json | |
amount_approved | NUMERIC(12, 2) | yes | json | |
payer_reference | VARCHAR(100) | yes | json | |
document_id | UUID | yes | json | |
fax_id | UUID | yes | json | |
remittance_ref | JSONB | yes | json | |
summary | TEXT | yes | json | |
extracted | JSONB | yes | json | |
match_method | VARCHAR(20) | no | json | |
match_score | SMALLINT | yes | json | |
review_status | VARCHAR(20) | no | json | |
reviewed_by | UUID | yes | json | |
reviewed_at | DATETIME | yes | json | |
actor_kind | VARCHAR(20) | no | json | |
created_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/appeal_sends.ndjson — One transmission of a packet by Hero (fax, mail) or a guided portal submission.
Linked to the patient by: appeal_sends.case_id -> appeal_cases.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
case_id | UUID | no | json | |
level | SMALLINT | no | json | |
channel | VARCHAR(10) | no | json | |
status | VARCHAR(20) | no | json | |
packet_document_id | UUID | yes | json | |
recipient | JSONB | no | json | |
recipient_source | JSONB | yes | json | |
provider | VARCHAR(10) | yes | json | |
provider_ref | VARCHAR(100) | yes | json | |
fax_id | UUID | yes | json | |
mail_service | VARCHAR(30) | yes | json | |
double_sided | BOOLEAN | yes | json | |
page_count | INTEGER | yes | json | |
sheet_count | INTEGER | yes | json | |
tracking_number | VARCHAR(64) | yes | json | |
expected_delivery_date | DATE | yes | json | |
events | JSONB | no | json | |
cost_usd | NUMERIC(12, 4) | yes | json | |
charge_usd | NUMERIC(12, 2) | yes | json | |
markup | NUMERIC(8, 4) | yes | json | |
usage_recorded_at | DATETIME | yes | json | |
submission_id | UUID | yes | json | |
proof_document_id | UUID | yes | json | |
idempotency_key | VARCHAR(100) | yes | json | |
error_code | VARCHAR(50) | yes | json | |
error_message | TEXT | yes | json | |
actor_kind | VARCHAR(20) | no | json | |
created_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
sent_at | DATETIME | yes | json | |
delivered_at | DATETIME | yes | json | |
last_polled_at | DATETIME | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/appeal_submissions.ndjson — What the person sent to the insurance company, and when (Hero never transmits it).
Linked to the patient by: appeal_submissions.case_id -> appeal_cases.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
case_id | UUID | no | json | |
organization_id | UUID | no | json | |
level | SMALLINT | no | json | |
method | VARCHAR(10) | no | json | |
submitted_on | DATE | no | json | |
payer_reference | VARCHAR(100) | yes | json | |
notes | TEXT | yes | json | |
packet_document_id | UUID | yes | json | |
claim_action_id | UUID | yes | json | |
actor_kind | VARCHAR(20) | no | json | |
created_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/billing_hero_coverage_searches.ndjson — One paid Stedi lookup for a patient's coverage: Insurance Discovery or the Medicare number (MBI) lookup.
Linked to the patient by: billing_hero_coverage_searches.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
case_id | UUID | yes | json | |
run_id | UUID | yes | json | |
proposal_id | UUID | yes | json | |
insurance_policy_id | UUID | yes | json | |
claim_id | UUID | yes | json | |
kind | VARCHAR(30) | no | json | |
status | VARCHAR(20) | no | json | |
service_date | DATE | yes | json | |
automatic | BOOLEAN | no | json | |
requested_by_user_id | UUID | yes | json | |
discovery_id | VARCHAR(100) | yes | json | |
cob_log_id | UUID | yes | json | |
trading_partner | VARCHAR(20) | yes | json | |
result_summary | JSONB | no | json | |
stedi_status | VARCHAR(20) | yes | json | |
coverages_found | INTEGER | yes | json | |
candidates | JSONB | no | json | |
errors | JSONB | no | json | |
error_code | VARCHAR(80) | yes | json | |
attempts | INTEGER | no | json | |
next_poll_at | DATETIME | yes | json | |
lease_owner | VARCHAR(80) | yes | json | |
lease_expires_at | DATETIME | yes | json | |
billable | BOOLEAN | no | json | |
price_usd | NUMERIC(8, 2) | no | json | |
requested_at | DATETIME | yes | json | |
completed_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/billing_hero_patient_first_cases.ndjson — One "ask the patient first" case: Billing Hero asked the patient itself, and when it escalates.
Linked to the patient by: billing_hero_patient_first_cases.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
run_id | UUID | yes | json | |
request_id | UUID | yes | json | |
insurance_policy_id | UUID | yes | json | |
claim_id | UUID | yes | json | |
episode_id | UUID | yes | json | |
trigger | VARCHAR(40) | no | json | |
problem | VARCHAR(40) | no | json | |
service_date | DATE | yes | json | |
card_on_file | BOOLEAN | yes | json | |
mbi_lookup_eligible | BOOLEAN | no | json | |
channels | JSONB | no | json | |
status | VARCHAR(20) | no | json | |
notify_at | DATETIME | yes | json | |
asked_at | DATETIME | yes | json | |
escalate_after | DATETIME | yes | json | |
next_appointment_at | DATETIME | yes | json | |
escalated_at | DATETIME | yes | json | |
escalation_reason | VARCHAR(20) | yes | json | |
escalation_detail | JSONB | no | json | |
rung | VARCHAR(30) | yes | json | |
proposal_id | UUID | yes | json | |
escalation_id | UUID | yes | json | |
handoff | JSONB | no | json | |
answered_at | DATETIME | yes | json | |
answered_by | VARCHAR(20) | yes | json | |
rerun_id | UUID | yes | json | |
closed_at | DATETIME | yes | json | |
close_reason | VARCHAR(40) | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/billing_hero_payer_calls.ndjson — One Hero call to a payer's provider line that Billing Hero asked for, and what the payer said.
Linked to the patient by: billing_hero_payer_calls.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
insurance_policy_id | UUID | yes | json | |
claim_id | UUID | yes | json | |
subject_id | UUID | no | json | |
run_id | UUID | yes | json | |
proposal_id | UUID | yes | json | |
question | VARCHAR(40) | no | json | |
status | VARCHAR(20) | no | json | |
automatic | BOOLEAN | no | json | |
requested_by_user_id | UUID | yes | json | |
call_user_id | UUID | yes | json | |
service_date | DATE | yes | json | |
payer_name | VARCHAR(200) | yes | json | |
payer_phone_e164 | VARCHAR(16) | no | json | |
payer_phone_source | VARCHAR(30) | no | json | |
attempt_count | INTEGER | no | json | |
next_attempt_at | DATETIME | yes | json | |
called_at | DATETIME | yes | json | |
phone_call_id | UUID | yes | json | |
answer | JSONB | no | json | |
stop_reason | VARCHAR(40) | yes | json | |
call_reference_number | VARCHAR(80) | yes | json | |
payer_rep_name | VARCHAR(120) | yes | json | |
summary | TEXT | yes | json | |
failure_reason | VARCHAR(300) | yes | json | |
follow_up_run_id | UUID | yes | json | |
escalation_id | UUID | yes | json | |
completed_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/billing_hero_provider_questions.ndjson — A structured yes/no question Billing Hero asked a claim's rendering provider (``contact_provider``).
Linked to the patient by: billing_hero_provider_questions.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | yes | json | |
claim_id | UUID | yes | json | |
run_id | UUID | yes | json | |
proposal_id | UUID | yes | json | |
escalation_id | UUID | yes | json | |
todo_id | UUID | yes | json | |
provider_user_id | UUID | yes | json | |
kind | VARCHAR(30) | no | json | |
line_ids | JSONB | no | json | |
detail | JSONB | no | json | |
status | VARCHAR(20) | no | json | |
answer | VARCHAR(10) | yes | json | |
answered_at | DATETIME | yes | json | |
answered_by_user_id | UUID | yes | json | |
follow_up_run_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/billing_service_task_follow_ups.ndjson — One thing a Billing Queue item is waiting on ("What we're waiting on").
Linked to the patient by: billing_service_task_follow_ups.task_id -> billing_service_tasks.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
task_id | UUID | no | json | |
kind | VARCHAR(32) | no | json | |
status | VARCHAR(16) | no | json | |
title | VARCHAR(200) | no | json | |
ref_type | VARCHAR(40) | yes | json | |
ref_id | UUID | yes | json | |
proposal_id | UUID | yes | json | |
expected_by | DATETIME | yes | json | |
outcome_summary | TEXT | yes | json | |
outcome | JSONB | yes | json | |
next_check_at | DATETIME | yes | json | |
dismiss_reason | VARCHAR(40) | yes | json | |
created_by_user_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
settled_at | DATETIME | yes | json | |
settled_by_user_id | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/billing_service_task_forward_links.ndjson — A to-do or staff notification a forward created: finds the forward from a completed to-do.
Linked to the patient by: billing_service_task_forward_links.forward_id -> billing_service_task_forwards.task_id -> billing_service_tasks.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
forward_id | UUID | no | json | |
link_type | VARCHAR(16) | no | json | |
link_id | UUID | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/billing_service_task_forwards.ndjson — An item's work sent to someone at the practice ("Ask someone to help").
Linked to the patient by: billing_service_task_forwards.task_id -> billing_service_tasks.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
task_id | UUID | no | json | |
channel | VARCHAR(16) | no | json | |
recipient_type | VARCHAR(8) | no | json | |
recipient_user_id | UUID | yes | json | |
recipient_pool_id | UUID | yes | json | |
recipient_label | VARCHAR(200) | no | json | |
message | TEXT | no | json | |
due_date | DATE | yes | json | |
wait | BOOLEAN | no | json | |
expected_answer | VARCHAR(300) | yes | json | |
response | VARCHAR(16) | yes | json | |
response_note | TEXT | yes | json | |
responded_by_user_id | UUID | yes | json | |
taken_by_user_id | UUID | yes | json | |
status | VARCHAR(16) | no | json | |
error | VARCHAR(300) | yes | json | |
preset_id | UUID | yes | json | |
todo_ids | JSONB | no | json | |
chat_conversation_id | UUID | yes | json | |
chat_message_id | UUID | yes | json | |
notification_ids | JSONB | no | json | |
completed_at | DATETIME | yes | json | |
completed_by_user_id | UUID | yes | json | |
last_reply_at | DATETIME | yes | json | |
created_by_user_id | UUID | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/billing_service_task_reads.ndjson — When a person last opened an item; newer activity shows the list's unread dot.
Linked to the patient by: billing_service_task_reads.task_id -> billing_service_tasks.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
task_id | UUID | no | json | |
user_id | UUID | no | json | |
seen_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/billing_visit_notes.ndjson
Linked to the patient by: billing_visit_notes.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
scheduled_visit_id | UUID | no | json | |
work_item_id | UUID | yes | json | |
body | TEXT | no | json | |
body_slate | JSONB | yes | json | |
created_by | UUID | no | json | |
created_at | DATETIME | no | json | |
updated_by | UUID | no | json | |
updated_at | DATETIME | no | json | |
deleted_by | UUID | yes | json | |
deleted_at | DATETIME | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/charges.ndjson
Linked to the patient by: charges.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | no | json | |
claim_id | UUID | yes | json | |
charge_type | VARCHAR(15) | no | json | |
amount | NUMERIC(10, 2) | no | json | |
due_date | DATETIME | no | json | |
due_at_utc | DATETIME | yes | json | |
status | VARCHAR(14) | no | json | |
description | VARCHAR(255) | yes | json | |
billing_code | VARCHAR(20) | yes | json | |
source_billing_code | VARCHAR(16) | yes | json | |
diagnosis_codes | JSONB | yes | json | |
diagnosis_order_explicit | BOOLEAN | no | json | |
code_type | VARCHAR(6) | yes | json | |
modifier_1 | VARCHAR(5) | yes | json | |
modifier_2 | VARCHAR(5) | yes | json | |
modifier_3 | VARCHAR(5) | yes | json | |
modifier_4 | VARCHAR(5) | yes | json | |
units | INTEGER | no | json | |
capture_line_uid | UUID | yes | json | |
capture_position | INTEGER | yes | json | |
suppressed_rule_modifiers | TEXT | yes | json | |
version | INTEGER | no | json | |
pricing_contract_id | UUID | yes | json | |
split_from_charge_id | UUID | yes | json | |
deposit_scheduled_visit_id | UUID | yes | json | |
split_intent_id | UUID | yes | json | |
duplicate_hold | BOOLEAN | no | json | |
ndc_code | VARCHAR(11) | yes | json | |
ndc_quantity | NUMERIC(12, 3) | yes | json | |
ndc_unit | VARCHAR(2) | yes | json | |
ndc_source | VARCHAR(16) | yes | json | |
pricing_source | VARCHAR(50) | yes | json | |
pricing_trigger | VARCHAR(32) | yes | json | |
sales_tax_rate_percent | NUMERIC(7, 4) | yes | json | |
department_id | UUID | yes | json | |
legal_entity_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): hold_state_hash
data/claim_actions.ndjson — Available actions for claims (appeals, resubmissions, etc.)
Linked to the patient by: claim_actions.claim_id -> claims.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
claim_id | UUID | no | json | |
action_type | VARCHAR(15) | no | json | |
ticket_number | VARCHAR(50) | yes | json | |
ticket_type | VARCHAR(20) | yes | json | |
ticket_status | VARCHAR(50) | yes | json | |
action_deadline | DATE | yes | json | |
required_documentation | JSON | yes | json | |
action_description | TEXT | yes | json | |
is_available | BOOLEAN | yes | json | |
is_completed | BOOLEAN | yes | json | |
completed_date | DATETIME | yes | json | |
completion_notes | TEXT | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/claim_adjustments.ndjson — Financial adjustments to claims
Linked to the patient by: claim_adjustments.claim_id -> claims.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
claim_id | UUID | no | json | |
claim_line_id | UUID | yes | json | |
adjustment_type | VARCHAR(21) | no | json | |
amount | NUMERIC(10, 2) | no | json | |
reason_code | VARCHAR(20) | yes | json | |
group_code | VARCHAR(2) | yes | json | |
reason_description | TEXT | yes | json | |
notes | TEXT | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/claim_crossover_waits.ndjson — One primary claim whose secondary payer gets the claim by crossover, and whether its payment arrived.
Linked to the patient by: claim_crossover_waits.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | no | json | |
primary_claim_id | UUID | no | json | |
insurance_policy_id | UUID | yes | json | |
payer_name | VARCHAR(255) | yes | json | |
forwarding_payer_name | VARCHAR(255) | yes | json | |
carrier_name | VARCHAR(255) | yes | json | |
carrier_identifier | VARCHAR(80) | yes | json | |
claim_status_code | VARCHAR(10) | yes | json | |
remark_code | VARCHAR(10) | yes | json | |
match_basis | VARCHAR(40) | no | json | |
known_remittance_ids | JSONB | no | json | |
expected_amount | NUMERIC(12, 2) | yes | json | |
follow_up_on | DATE | no | json | |
status | VARCHAR(20) | no | json | |
follow_up_alerted_at | DATETIME | yes | json | |
verification_requested_at | DATETIME | yes | json | |
verification_transaction_id | VARCHAR(100) | yes | json | |
verification_result | VARCHAR(20) | yes | json | |
verification_payer_id | VARCHAR(80) | yes | json | |
resolved_at | DATETIME | yes | json | |
resolved_by | UUID | yes | json | |
created_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/claim_filing_fee_ledger.ndjson — Auditable internal accrual ledger for platform claim filing fees.
Linked to the patient by: claim_filing_fee_ledger.claim_id -> claims.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
claim_id | UUID | no | json | |
submission_attempt_id | UUID | yes | json | |
eob_id | UUID | yes | json | |
payment_id | UUID | yes | json | |
era_ingestion_run_id | UUID | yes | json | |
source | VARCHAR(50) | no | json | |
basis_amount | NUMERIC(12, 2) | no | json | |
fee_bps | INTEGER | no | json | |
fee_amount | NUMERIC(12, 2) | no | json | |
status | VARCHAR(30) | no | json | |
reversal_of_id | UUID | yes | json | |
billing_period | VARCHAR(20) | yes | json | |
invoice_reference | VARCHAR(100) | yes | json | |
audit_summary | JSON | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/claim_issues.ndjson — Claim-level denials, pends, and other issues
Linked to the patient by: claim_issues.claim_id -> claims.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
claim_id | UUID | no | json | |
issue_type | VARCHAR(6) | no | json | |
issue_code | VARCHAR(10) | no | json | |
issue_description | TEXT | yes | json | |
financial_impact | NUMERIC(10, 2) | yes | json | |
is_appealable | BOOLEAN | yes | json | |
appeal_deadline | DATE | yes | json | |
is_resolved | BOOLEAN | yes | json | |
resolution_date | DATETIME | yes | json | |
resolution_notes | TEXT | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/claim_line_issues.ndjson — Line-level denials, pends, and other issues
Linked to the patient by: claim_line_issues.claim_line_id -> claim_lines.claim_id -> claims.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
claim_line_id | UUID | no | json | |
issue_type | VARCHAR(6) | no | json | |
issue_code | VARCHAR(10) | no | json | |
issue_description | TEXT | yes | json | |
financial_impact | NUMERIC(10, 2) | yes | json | |
is_appealable | BOOLEAN | yes | json | |
appeal_deadline | DATE | yes | json | |
is_resolved | BOOLEAN | yes | json | |
resolution_date | DATETIME | yes | json | |
resolution_notes | TEXT | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/claim_lines.ndjson
Linked to the patient by: claim_lines.claim_id -> claims.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
claim_id | UUID | no | json | |
cpt_code | VARCHAR(10) | no | json | |
line_number | INTEGER | no | json | |
quantity | INTEGER | no | json | |
unit_price | NUMERIC(10, 2) | no | json | |
total_billed_amount | NUMERIC(10, 2) | no | json | |
modifiers | VARCHAR(20) | yes | json | |
diagnosis_pointers | VARCHAR(20) | yes | json | |
diagnosis_pointers_explicit | BOOLEAN | no | json | |
source_charge_id | UUID | yes | json | |
version | INTEGER | no | json | |
ndc_code | VARCHAR(11) | yes | json | |
ndc_quantity | NUMERIC(12, 3) | yes | json | |
ndc_unit | VARCHAR(2) | yes | json | |
revenue_code | VARCHAR(10) | yes | json | |
allowed_amount | NUMERIC(10, 2) | yes | json | |
paid_amount | NUMERIC(10, 2) | yes | json | |
patient_responsibility | NUMERIC(10, 2) | yes | json | |
provider_write_off_amount | NUMERIC(10, 2) | yes | json | |
not_covered_amount | NUMERIC(10, 2) | yes | json | |
copay | NUMERIC(10, 2) | yes | json | |
deductible | NUMERIC(10, 2) | yes | json | |
coinsurance | NUMERIC(10, 2) | yes | json | |
processed_date | DATETIME | yes | json | |
first_service_date | DATE | yes | json | |
last_service_date | DATE | yes | json | |
network_status | VARCHAR(2) | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/claim_remittance_remarks.ndjson — Non-financial RARC evidence at claim or service-line scope.
Linked to the patient by: claim_remittance_remarks.claim_id -> claims.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
claim_id | UUID | no | json | |
claim_line_id | UUID | yes | json | |
code | VARCHAR(20) | no | json | |
description | TEXT | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/claim_status_history.ndjson — Immutable claim internal-status transition history.
Linked to the patient by: claim_status_history.claim_id -> claims.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
claim_id | UUID | no | json | |
from_status | VARCHAR(50) | yes | json | |
to_status | VARCHAR(50) | no | json | |
changed_at | DATETIME | no | json | |
changed_by | UUID | yes | json | |
source | VARCHAR(50) | no | json | |
reason | TEXT | yes | json | |
change_context | JSON | yes | json | |
sequence_no | INTEGER | yes | json | |
event_type | VARCHAR(64) | yes | json | |
kind | VARCHAR(16) | no | json | |
evidence | JSONB | yes | json | |
writer | VARCHAR(128) | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/claims.ndjson
Linked to the patient by: claims.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
encounter_id | UUID | no | json | |
patient_id | UUID | no | json | |
insurance_policy_id | UUID | no | json | |
insurance_sequence | INTEGER | no | json | |
previous_claim_id | UUID | yes | json | |
claim_number | VARCHAR(50) | no | json | |
payer_claim_number | VARCHAR(100) | yes | json | |
payer_transaction_id | VARCHAR(100) | yes | json | |
patient_account_number | VARCHAR(50) | yes | json | |
oa_claim_id | VARCHAR(100) | yes | json | |
clearinghouse_claim_number | VARCHAR(100) | yes | json | |
frequency_code | VARCHAR(1) | yes | json | |
original_reference_number | VARCHAR(50) | yes | json | |
refile_basis | VARCHAR(40) | yes | json | |
refile_member_fingerprint | VARCHAR(80) | yes | json | |
filed_amount | NUMERIC(10, 2) | no | json | |
allowed_amount | NUMERIC(10, 2) | yes | json | |
paid_amount | NUMERIC(10, 2) | yes | json | |
patient_responsibility | NUMERIC(10, 2) | yes | json | |
provider_write_off_amount | NUMERIC(10, 2) | yes | json | |
internal_status | VARCHAR(26) | no | json | |
payer_status | VARCHAR(50) | yes | json | |
payer_status_description | TEXT | yes | json | |
submission_channel | VARCHAR(50) | yes | json | |
submission_attempts | INTEGER | no | json | |
last_submission_error | TEXT | yes | json | |
submission_hold_reason | VARCHAR(40) | yes | json | |
submission_hold_note | TEXT | yes | json | |
submission_held_by | UUID | yes | json | |
submission_held_at | DATETIME | yes | json | |
submission_hold_follow_up_date | DATE | yes | json | |
submission_date | DATETIME | yes | json | |
service_date | DATE | no | json | |
payer_processed_date | DATETIME | yes | json | |
last_payer_update | DATETIME | yes | json | |
last_status_poll | DATETIME | yes | json | |
next_poll_date | DATETIME | yes | json | |
next_action_date | DATETIME | yes | json | |
diagnosis_codes | JSON | no | json | |
place_of_service | VARCHAR(2) | no | json | |
insurance_contract_id | UUID | yes | json | |
rendering_provider_id | UUID | yes | json | |
billing_provider_id | UUID | yes | json | |
department_id | UUID | yes | json | |
legal_entity_id | UUID | yes | json | |
transmitted_billing_identity | JSONB | yes | json | |
payer_name | VARCHAR(100) | yes | json | |
payer_id | VARCHAR(50) | yes | json | |
prior_system_source | VARCHAR(32) | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
version | INTEGER | no | json | |
history_seq | INTEGER | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/collections_accounts.ndjson
Linked to the patient by: collections_accounts.account_receivable_id -> account_receivables.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
account_receivable_id | UUID | no | json | |
agency_name | VARCHAR(100) | no | json | |
agency_account_number | VARCHAR(50) | yes | json | |
placement_date | DATE | no | json | |
original_balance | NUMERIC(10, 2) | no | json | |
current_balance | NUMERIC(10, 2) | no | json | |
status | VARCHAR(13) | no | json | |
commission_rate | NUMERIC(5, 2) | yes | json | |
last_activity_date | DATETIME | yes | json | |
notes | TEXT | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/denial_self_pay_applications.ndjson
Linked to the patient by: denial_self_pay_applications.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
claim_id | UUID | no | json | |
claim_line_id | UUID | no | json | |
charge_owner_claim_id | UUID | no | json | |
rule_id | UUID | yes | json | |
billing_code | VARCHAR(20) | no | json | |
modifier | VARCHAR(2) | yes | json | |
patient_price | NUMERIC(10, 2) | no | json | |
units | INTEGER | no | json | |
denied_amount | NUMERIC(10, 2) | no | json | |
patient_amount | NUMERIC(10, 2) | no | json | |
write_off_requested | NUMERIC(10, 2) | no | json | |
write_off_applied | NUMERIC(10, 2) | no | json | |
status | VARCHAR(16) | no | json | |
status_reason | VARCHAR(80) | no | json | |
source | VARCHAR(16) | no | json | |
eob_id | UUID | yes | json | |
request_id | UUID | yes | json | |
patient_billing_action_ids | JSONB | no | json | |
reversal_action_ids | JSONB | no | json | |
reversed_reason | TEXT | yes | json | |
reversed_by | UUID | yes | json | |
reversed_at | DATETIME | yes | json | |
created_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/eligibility_check_logs.ndjson — Audit log for all eligibility verification attempts.
Linked to the patient by: eligibility_check_logs.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
insurance_policy_id | UUID | no | json | |
patient_id | UUID | no | json | |
organization_id | UUID | no | json | |
trigger_type | VARCHAR(50) | no | json | |
trigger_reference_id | UUID | yes | json | |
transaction_type | VARCHAR(40) | yes | json | |
payer_key | INTEGER | yes | json | |
member_id | VARCHAR(100) | no | json | |
subscriber_first_name | VARCHAR(100) | no | json | |
subscriber_last_name | VARCHAR(100) | no | json | |
subscriber_dob | DATE | no | json | |
group_number | VARCHAR(50) | yes | json | |
payer_search_option_id | INTEGER | yes | json | |
service_date | DATE | no | json | |
transaction_id | VARCHAR(100) | yes | json | |
clearinghouse_source | VARCHAR(50) | yes | json | |
external_trace_id | VARCHAR(100) | yes | json | |
external_control_number | VARCHAR(100) | yes | json | |
external_payer_id | VARCHAR(50) | yes | json | |
status | VARCHAR(50) | no | json | |
coverage_active | BOOLEAN | yes | json | |
response_status | VARCHAR(100) | yes | json | |
error_message | VARCHAR(500) | yes | json | |
cost_cents | INTEGER | yes | json | |
vendor_billable_status | VARCHAR(20) | yes | json | |
request_payload | JSONB | yes | json | |
response_payload | JSONB | yes | json | |
identity_fingerprint | VARCHAR(80) | yes | json | |
identity_fields | JSONB | yes | json | |
coverage_start_date | DATE | yes | json | |
coverage_end_date | DATE | yes | json | |
department_id | UUID | yes | json | |
legal_entity_id | UUID | yes | json | |
requested_at | DATETIME | yes | json | |
completed_at | DATETIME | yes | json | |
duration_ms | INTEGER | yes | json | |
created_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/eligibility_failure_episodes.ndjson — One patient-level failure for (policy, submitted identity, org-local DOS).
Linked to the patient by: eligibility_failure_episodes.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
insurance_policy_id | UUID | no | json | |
service_date | DATE | no | json | |
identity_key | VARCHAR(80) | no | json | |
identity_fingerprint | VARCHAR(80) | no | json | |
identity_fields | JSONB | no | json | |
clearinghouse_source | VARCHAR(50) | yes | json | |
failure_class | VARCHAR(40) | no | json | |
aaa_codes | JSONB | no | json | |
opened_by_log_id | UUID | no | json | |
latest_log_id | UUID | yes | json | |
status | VARCHAR(20) | no | json | |
opened_at | DATETIME | no | json | |
resolved_at | DATETIME | yes | json | |
resolution_reason | VARCHAR(40) | yes | json | |
resolved_by_log_id | UUID | yes | json | |
resolved_by_user_id | UUID | yes | json | |
resolution_note | TEXT | yes | json | |
patient_alerted_at | DATETIME | yes | json | |
staff_alerted_at | DATETIME | yes | json | |
billing_hero_requested_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/encounter_billing_code_snapshots.ndjson — What the evaluator decided for one encounter, frozen at materialization.
Linked to the patient by: encounter_billing_code_snapshots.encounter_id -> encounters.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
encounter_id | UUID | no | json | |
claim_id | UUID | yes | json | |
source | VARCHAR(24) | no | json | |
fingerprint | VARCHAR(64) | no | json | |
evaluator_version | INTEGER | no | json | |
rule_revision_ids | JSONB | yes | json | |
legacy_rule_ids | JSONB | yes | json | |
billing_context_policy_id | UUID | yes | json | |
effective_payer_id | VARCHAR(50) | yes | json | |
place_of_service | VARCHAR(2) | yes | json | |
payload | JSONB | no | json | |
created_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
superseded_at | DATETIME | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/explanation_of_benefits.ndjson — EOB documents received from payers
Linked to the patient by: explanation_of_benefits.claim_id -> claims.patient_id -> patients.id; explanation_of_benefits.insurance_policy_id -> insurance_policies.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
claim_id | UUID | no | json | |
insurance_policy_id | UUID | no | json | |
eob_number | VARCHAR(50) | yes | json | |
eob_date | DATE | no | json | |
processed_date | DATETIME | no | json | |
remittance_id | UUID | yes | json | |
transferable_patient_responsibility | NUMERIC(10, 2) | yes | json | |
raw_eob_data | JSON | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/idr_case_attachments.ndjson — Selected chart or billing evidence linked to an IDR case.
Linked to the patient by: idr_case_attachments.idr_case_id -> idr_cases.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
idr_case_id | UUID | no | json | |
source_type | VARCHAR(80) | no | json | |
source_id | UUID | yes | json | |
display_name | VARCHAR(240) | no | json | |
source_date | DATETIME | yes | json | |
packet_section | VARCHAR(80) | no | json | |
include_in_submission | BOOLEAN | no | json | |
attached_by | UUID | no | json | |
attached_at | DATETIME | no | json | |
snapshot_storage_key | VARCHAR(1000) | yes | json | |
snapshot_created_at | DATETIME | yes | json | |
metadata | JSONB | yes | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): snapshot_hash
data/idr_case_lines.ndjson — Snapshot of a disputed claim line inside an IDR case.
Linked to the patient by: idr_case_lines.idr_case_id -> idr_cases.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
idr_case_id | UUID | no | json | |
claim_line_id | UUID | yes | json | |
cpt_hcpcs_code | VARCHAR(20) | yes | json | |
modifiers | VARCHAR(80) | yes | json | |
service_date_from | DATE | yes | json | |
service_date_to | DATE | yes | json | |
place_of_service | VARCHAR(20) | yes | json | |
diagnosis_codes | JSONB | yes | json | |
billed_amount | NUMERIC(12, 2) | yes | json | |
allowed_amount | NUMERIC(12, 2) | yes | json | |
paid_amount | NUMERIC(12, 2) | yes | json | |
patient_responsibility_amount | NUMERIC(12, 2) | yes | json | |
qpa_amount | NUMERIC(12, 2) | yes | json | |
qpa_source | VARCHAR(100) | yes | json | |
qpa_disclosed_at | DATETIME | yes | json | |
downcoded | BOOLEAN | yes | json | |
downcode_explanation | TEXT | yes | json | |
undowncoded_qpa_amount | NUMERIC(12, 2) | yes | json | |
provider_offer_amount | NUMERIC(12, 2) | yes | json | |
payer_offer_amount | NUMERIC(12, 2) | yes | json | |
selected_offer_amount | NUMERIC(12, 2) | yes | json | |
outcome | VARCHAR(40) | yes | json | |
metadata | JSONB | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/idr_cases.ndjson — One independent dispute resolution case tied to one billing claim.
Linked to the patient by: idr_cases.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
claim_id | UUID | no | json | |
primary_insurance_id | UUID | yes | json | |
eligibility_snapshot_id | UUID | yes | json | |
workflow_type | VARCHAR(40) | no | json | |
state_code | VARCHAR(2) | yes | json | |
funding_type | VARCHAR(40) | no | json | |
funding_type_confidence | VARCHAR(20) | no | json | |
funding_type_source | VARCHAR(80) | no | json | |
funding_type_evidence | VARCHAR(500) | yes | json | |
current_step | VARCHAR(80) | no | json | |
status | VARCHAR(40) | no | json | |
assigned_owner_user_id | UUID | yes | json | |
assigned_team_id | UUID | yes | json | |
initial_payment_or_denial_date | DATETIME | yes | json | |
open_negotiation_due_at | DATETIME | yes | json | |
open_negotiation_started_at | DATETIME | yes | json | |
open_negotiation_ends_at | DATETIME | yes | json | |
idr_initiation_due_at | DATETIME | yes | json | |
idr_filed_at | DATETIME | yes | json | |
determination_received_at | DATETIME | yes | json | |
payment_due_at | DATETIME | yes | json | |
closed_at | DATETIME | yes | json | |
closure_reason | VARCHAR(500) | yes | json | |
qpa_status | VARCHAR(40) | no | json | |
packet_status | VARCHAR(40) | no | json | |
warning_count | INTEGER | no | json | |
warnings | JSONB | yes | json | |
metadata | JSONB | yes | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/idr_documents.ndjson — Generated, uploaded, or imported document tied to an IDR case.
Linked to the patient by: idr_documents.idr_case_id -> idr_cases.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
idr_case_id | UUID | no | json | |
document_type | VARCHAR(80) | no | json | |
title | VARCHAR(240) | no | json | |
storage_key | VARCHAR(1000) | yes | attachment | |
content_type | VARCHAR(120) | yes | json | |
source_template_id | UUID | yes | json | |
source_template_version | VARCHAR(80) | yes | json | |
generated_from_packet_snapshot_id | UUID | yes | json | |
autofill_values | JSONB | yes | json | |
manual_overrides | JSONB | yes | json | |
final_field_values | JSONB | yes | json | |
warnings | JSONB | yes | json | |
status | VARCHAR(40) | no | json | |
created_by | UUID | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/idr_packet_snapshots.ndjson — Structured packet payload generated for reproducible form/document output.
Linked to the patient by: idr_packet_snapshots.idr_case_id -> idr_cases.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
idr_case_id | UUID | no | json | |
snapshot_payload | JSONB | no | json | |
warning_payload | JSONB | yes | json | |
created_by | UUID | no | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/maternity_billing_episodes.ndjson — The billing package for one pregnancy.
Linked to the patient by: maternity_billing_episodes.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
pregnancy_episode_id | UUID | no | json | |
patient_id | UUID | no | json | |
billing_physician_id | UUID | no | json | |
care_start_date | DATE | yes | json | |
transfer_in | BOOLEAN | no | json | |
transfer_in_date | DATE | yes | json | |
transfer_out | BOOLEAN | no | json | |
transfer_out_date | DATE | yes | json | |
postpartum_responsibility | VARCHAR(12) | no | json | |
delivery_type | VARCHAR(8) | yes | json | |
delivery_date | DATE | yes | json | |
delivery_encounter_id | UUID | yes | json | |
confirmed_codes | JSONB | yes | json | |
package_disposition | VARCHAR(21) | yes | json | |
recommended_disposition | VARCHAR(21) | yes | json | |
recommendation_snapshot | JSONB | yes | json | |
proposal_status | VARCHAR(21) | no | json | |
confirmed_by | UUID | yes | json | |
confirmed_at | DATETIME | yes | json | |
status | VARCHAR(9) | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/maternity_visit_links.ndjson — One completed encounter's participation in a maternity package.
Linked to the patient by: maternity_visit_links.encounter_id -> encounters.patient_id -> patients.id; maternity_visit_links.maternity_billing_episode_id -> maternity_billing_episodes.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
maternity_billing_episode_id | UUID | no | json | |
encounter_id | UUID | no | json | |
classification | VARCHAR(18) | no | json | |
classification_source | VARCHAR(6) | no | json | |
em_billable_alongside_package | BOOLEAN | no | json | |
service_date | DATE | no | json | |
ga_weeks_at_visit | NUMERIC(4, 1) | yes | json | |
extra_visit_reason | VARCHAR(255) | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/organization_not_accepted_insurance.ndjson — A payer (Stedi directory plan) the practice does not accept.
Linked to the patient by: organization_not_accepted_insurance.payer_submission_hold_rule_id -> payer_submission_hold_rules.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
stedi_payer_mapping_id | UUID | no | json | |
payer_id | VARCHAR(50) | no | json | |
payer_name | VARCHAR(200) | no | json | |
action | VARCHAR(20) | no | json | |
notes | TEXT | yes | json | |
is_active | BOOLEAN | no | json | |
payer_submission_hold_rule_id | UUID | yes | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/overpayment_cases.ndjson — A detected potential overpayment / credit balance, tracked to return.
Linked to the patient by: overpayment_cases.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | yes | json | |
claim_id | UUID | yes | json | |
source | VARCHAR(30) | no | json | |
source_key | VARCHAR(120) | no | json | |
payer_class | VARCHAR(20) | no | json | |
amount | NUMERIC(10, 2) | no | json | |
is_estimated | BOOLEAN | no | json | |
status | VARCHAR(20) | no | json | |
detected_at | DATETIME | no | json | |
identified_at | DATETIME | yes | json | |
identified_by | UUID | yes | json | |
deadline_at | DATE | yes | json | |
resolution | VARCHAR(40) | yes | json | |
resolution_reference | VARCHAR(120) | yes | json | |
resolved_at | DATETIME | yes | json | |
resolved_by | UUID | yes | json | |
notes | TEXT | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_billing_actions.ndjson
Linked to the patient by: patient_billing_actions.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
charge_id | UUID | yes | json | |
payment_id | UUID | yes | json | |
refund_id | UUID | yes | json | |
action_type | VARCHAR(64) | no | json | |
amount | NUMERIC(10, 2) | yes | json | |
reason | TEXT | yes | json | |
action_metadata | JSONB | no | json | |
created_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_billing_preferences.ndjson
Linked to the patient by: patient_billing_preferences.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
bypass_card_on_file_requirement | BOOLEAN | no | json | |
bypass_booking_collection | BOOLEAN | no | json | |
auto_file_secondary | BOOLEAN | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_charge_discounts.ndjson — One discount given on one charge; the only discount record.
Linked to the patient by: patient_charge_discounts.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
charge_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
scope_key | VARCHAR(80) | no | json | |
source | VARCHAR(16) | no | json | |
coupon_id | UUID | yes | json | |
coupon_code | VARCHAR(32) | yes | json | |
discount_type | VARCHAR(16) | no | json | |
percent_bps | INTEGER | yes | json | |
fixed_amount | NUMERIC(10, 2) | yes | json | |
basis_amount | NUMERIC(10, 2) | no | json | |
amount | NUMERIC(10, 2) | no | json | |
reason_code | VARCHAR(64) | yes | json | |
reason_label | VARCHAR(80) | yes | json | |
note | TEXT | yes | json | |
applied_via | VARCHAR(16) | no | json | |
status | VARCHAR(16) | no | json | |
applied_action_id | UUID | yes | json | |
ended_action_id | UUID | yes | json | |
request_id | UUID | no | json | |
applied_at | DATETIME | no | json | |
applied_by | UUID | yes | json | |
ended_at | DATETIME | yes | json | |
ended_by | UUID | yes | json | |
end_reason | VARCHAR(64) | yes | json | |
end_note | TEXT | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_collection_holds.ndjson — One persisted hold on (part of) a patient's share; open while ``released_at`` is NULL.
Linked to the patient by: patient_collection_holds.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
claim_id | UUID | yes | json | |
charge_id | UUID | yes | json | |
kind | VARCHAR(40) | no | json | |
placed_by | VARCHAR(16) | no | json | |
placed_by_user_id | UUID | yes | json | |
placed_at | DATETIME | no | json | |
generation | INTEGER | no | json | |
released_at | DATETIME | yes | json | |
release_basis | VARCHAR(64) | yes | json | |
released_by | VARCHAR(16) | yes | json | |
released_by_user_id | UUID | yes | json | |
evidence | JSONB | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_membership_agreements.ndjson
Linked to the patient by: patient_membership_agreements.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
plan_id | UUID | no | json | |
version_id | UUID | no | json | |
subscription_id | UUID | yes | json | |
purpose | VARCHAR(32) | no | json | |
request_key | VARCHAR(80) | no | json | |
entry_channel | VARCHAR(32) | no | json | |
facts | JSONB | no | json | |
facts_sha256 | VARCHAR(64) | no | json | |
rendered_text | TEXT | no | json | |
rendered_sha256 | VARCHAR(64) | no | json | |
organization_timezone | VARCHAR(100) | no | json | |
signer_name | VARCHAR(255) | yes | json | |
signer_role | VARCHAR(40) | yes | json | |
signer_relationship | VARCHAR(255) | yes | json | |
signer_user_id | UUID | yes | json | |
signer_account_id | UUID | yes | json | |
signer_link_id | UUID | yes | json | |
signed_at | DATETIME | yes | json | |
signature_consent_version | VARCHAR(80) | yes | json | |
signed_ip | VARCHAR(100) | yes | json | |
signed_user_agent | VARCHAR(500) | yes | json | |
applied_at | DATETIME | yes | json | |
media_id | UUID | yes | json | |
media_group_id | UUID | yes | json | |
pdf_sha256 | VARCHAR(64) | yes | json | |
document_outbox_id | UUID | yes | json | |
copy_outbox_id | UUID | yes | json | |
created_by | UUID | no | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): claim_token
data/patient_subscription_discount_invoices.ndjson — One discounted billing period: a finalized, non-zero membership invoice the discount applied to. Unique per (discount, Stripe invoice), so duplicate and out-of-order webhooks count once. A later void releases the period (`voided_at`) while the row keeps the invoice from recounting.
Linked to the patient by: patient_subscription_discount_invoices.discount_id -> patient_subscription_discounts.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
discount_id | UUID | no | json | |
stripe_invoice_id | VARCHAR(255) | no | json | |
invoice_subtotal | NUMERIC(10, 2) | yes | json | |
discount_amount | NUMERIC(10, 2) | yes | json | |
counted_at | DATETIME | no | json | |
voided_at | DATETIME | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_subscription_discounts.ndjson — A time-limited discount on one membership: a plan's introductory offer or a staff discount.
Linked to the patient by: patient_subscription_discounts.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
subscription_id | UUID | no | json | |
plan_id | UUID | yes | json | |
source | VARCHAR(16) | no | json | |
discount_type | VARCHAR(16) | no | json | |
value | NUMERIC(10, 2) | no | json | |
currency | VARCHAR(10) | no | json | |
periods_total | INTEGER | no | json | |
periods_used | INTEGER | no | json | |
stripe_account_id | VARCHAR(255) | yes | json | |
stripe_coupon_id | VARCHAR(255) | yes | json | |
stripe_discount_id | VARCHAR(255) | yes | json | |
status | VARCHAR(16) | no | json | |
applied_at | DATETIME | yes | json | |
ended_at | DATETIME | yes | json | |
end_reason | VARCHAR(40) | yes | json | |
reason | TEXT | yes | json | |
note | TEXT | yes | json | |
last_reconciled_at | DATETIME | yes | json | |
reapply_requested_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_subscription_events.ndjson
Linked to the patient by: patient_subscription_events.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
subscription_id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
event_type | VARCHAR(80) | no | json | |
event_source | VARCHAR(7) | no | json | |
status_snapshot | VARCHAR(80) | yes | json | |
stripe_invoice_id | VARCHAR(255) | yes | json | |
stripe_event_id | VARCHAR(255) | yes | json | |
amount | NUMERIC(10, 2) | yes | json | |
currency | VARCHAR(10) | yes | json | |
message | TEXT | yes | json | |
payload | JSONB | no | json | |
created_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_subscription_invoices.ndjson
Linked to the patient by: patient_subscription_invoices.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
subscription_id | UUID | no | json | |
stripe_invoice_id | VARCHAR(255) | no | json | |
stripe_account_id | VARCHAR(255) | no | json | |
stripe_customer_id | VARCHAR(255) | yes | json | |
status | VARCHAR(100) | yes | json | |
amount_due | NUMERIC(10, 2) | yes | json | |
amount_paid | NUMERIC(10, 2) | yes | json | |
amount_remaining | NUMERIC(10, 2) | yes | json | |
currency | VARCHAR(10) | yes | json | |
period_start | DATETIME | yes | json | |
period_end | DATETIME | yes | json | |
due_date | DATETIME | yes | json | |
paid_at | DATETIME | yes | json | |
attempt_count | INTEGER | yes | json | |
hosted_invoice_url | TEXT | yes | json | |
invoice_pdf | TEXT | yes | json | |
receipt_number | VARCHAR(255) | yes | json | |
billing_reason | VARCHAR(100) | yes | json | |
last_payment_error | TEXT | yes | json | |
raw_stripe_payload | JSONB | no | json | |
first_payment_failed_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_subscription_notice_preferences.ndjson
Linked to the patient by: patient_subscription_notice_preferences.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
subscription_id | UUID | no | json | |
delivery_override | VARCHAR(16) | no | json | |
include_amount_in_email | BOOLEAN | yes | json | |
version | INTEGER | no | json | |
updated_at | DATETIME | no | json | |
updated_by | UUID | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_subscription_notices.ndjson
Linked to the patient by: patient_subscription_notices.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
subscription_id | UUID | no | json | |
invoice_id | UUID | no | json | |
stripe_account_id | VARCHAR(255) | no | json | |
stage | VARCHAR(40) | no | json | |
channel | VARCHAR(16) | no | json | |
first_failure_at | DATETIME | no | json | |
due_at | DATETIME | no | json | |
generation | INTEGER | no | json | |
state | VARCHAR(20) | no | json | |
attempts | INTEGER | no | json | |
outbox_id | UUID | yes | json | |
communication_log_id | UUID | yes | json | |
sent_at | DATETIME | yes | json | |
template_revision | INTEGER | no | json | |
rendered_snapshot | JSONB | no | json | |
outcome | VARCHAR(120) | yes | json | |
masked_recipient | VARCHAR(255) | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_subscription_refunds.ndjson — Separate from visit payments: returning dues never creates patient credit.
Linked to the patient by: patient_subscription_refunds.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
subscription_id | UUID | no | json | |
invoice_id | UUID | no | json | |
billing_entity_id | UUID | yes | json | |
stripe_account_id | VARCHAR(255) | no | json | |
stripe_refund_id | VARCHAR(255) | yes | json | |
stripe_charge_id | VARCHAR(255) | yes | json | |
stripe_payment_intent_id | VARCHAR(255) | yes | json | |
request_key | VARCHAR(255) | yes | json | |
amount | NUMERIC(10, 2) | no | json | |
currency | VARCHAR(10) | no | json | |
reason | TEXT | yes | json | |
source | VARCHAR(16) | no | json | |
state | VARCHAR(32) | no | json | |
provider_status | VARCHAR(40) | yes | json | |
error_code | VARCHAR(120) | yes | json | |
requested_at | DATETIME | no | json | |
accounting_at | DATETIME | no | json | |
confirmed_at | DATETIME | yes | json | |
reconciled_at | DATETIME | yes | json | |
created_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): request_hash
data/patient_subscriptions.ndjson
Linked to the patient by: patient_subscriptions.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
plan_id | UUID | no | json | |
billing_entity_id | UUID | yes | json | |
status | VARCHAR(18) | no | json | |
stripe_subscription_id | VARCHAR(255) | yes | json | |
stripe_customer_id | VARCHAR(255) | yes | json | |
stripe_account_id | VARCHAR(255) | yes | json | |
stripe_price_id | VARCHAR(255) | yes | json | |
stripe_subscription_item_id | VARCHAR(255) | yes | json | |
default_payment_method_id | VARCHAR(255) | yes | json | |
plan_name_snapshot | VARCHAR(120) | yes | json | |
plan_description_snapshot | TEXT | yes | json | |
price_amount_snapshot | NUMERIC(10, 2) | yes | json | |
currency_snapshot | VARCHAR(10) | yes | json | |
interval_unit_snapshot | VARCHAR(5) | yes | json | |
interval_count_snapshot | INTEGER | yes | json | |
trial_days_snapshot | INTEGER | yes | json | |
signup_fee_snapshot | NUMERIC(10, 2) | yes | json | |
billing_starts_on_snapshot | DATE | yes | json | |
benefits_start_at | DATETIME | yes | json | |
terms_version | VARCHAR(64) | yes | json | |
accepted_terms_at | DATETIME | yes | json | |
accepted_terms_ip | VARCHAR(100) | yes | json | |
accepted_terms_user_agent | TEXT | yes | json | |
snapshot_source | VARCHAR(12) | yes | json | |
snapshot_needs_review | BOOLEAN | yes | json | |
snapshot_backfilled_at | DATETIME | yes | json | |
current_period_start | DATETIME | yes | json | |
current_period_end | DATETIME | yes | json | |
cancel_at_period_end | BOOLEAN | no | json | |
pause_collection_behavior | VARCHAR(32) | yes | json | |
pause_collection_resumes_at | DATETIME | yes | json | |
started_at | DATETIME | no | json | |
canceled_at | DATETIME | yes | json | |
ended_at | DATETIME | yes | json | |
grace_period_ends_at | DATETIME | yes | json | |
last_invoice_id | VARCHAR(255) | yes | json | |
last_invoice_status | VARCHAR(100) | yes | json | |
last_payment_error | TEXT | yes | json | |
cancellation_reason | TEXT | yes | json | |
last_stripe_event_created | DATETIME | yes | json | |
staff_access_override_expires_at | DATETIME | yes | json | |
staff_access_override_feature | VARCHAR(80) | yes | json | |
staff_access_override_reason | TEXT | yes | json | |
staff_access_override_at | DATETIME | yes | json | |
staff_access_override_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_visit_type_billing_rates.ndjson
Linked to the patient by: patient_visit_type_billing_rates.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
physician_visit_type_id | UUID | no | json | |
cash_price_amount | NUMERIC(10, 2) | yes | json | |
is_active | BOOLEAN | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/payment_arrangements.ndjson
Linked to the patient by: payment_arrangements.account_receivable_id -> account_receivables.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
account_receivable_id | UUID | no | json | |
arrangement_type | VARCHAR(12) | no | json | |
original_balance | NUMERIC(10, 2) | no | json | |
arranged_amount | NUMERIC(10, 2) | no | json | |
installment_amount | NUMERIC(10, 2) | yes | json | |
frequency | VARCHAR(8) | no | json | |
start_date | DATE | no | json | |
end_date | DATE | yes | json | |
status | VARCHAR(9) | no | json | |
approval_required | BOOLEAN | yes | json | |
approved_by | UUID | yes | json | |
approval_date | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
collection_mode | VARCHAR(16) | no | json | |
autopay_status | VARCHAR(16) | yes | json | |
autopay_stopped_at | DATETIME | yes | json | |
autopay_stopped_by | UUID | yes | json | |
autopay_stop_reason | VARCHAR(32) | yes | json | |
number_of_payments | INTEGER | yes | json | |
max_installment_amount | NUMERIC(10, 2) | yes | json | |
agreement_version_id | UUID | yes | json | |
agreement_text | TEXT | yes | json | |
agreement_sha256 | VARCHAR(64) | yes | json | |
autopay_authorized_at | DATETIME | yes | json | |
autopay_authorized_by | UUID | yes | json | |
autopay_authorization_reference | VARCHAR(255) | yes | json | |
autopay_card_brand | VARCHAR(32) | yes | json | |
autopay_card_last4 | VARCHAR(4) | yes | json | |
collection_day | DATE | yes | json | |
collection_day_installment_id | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/payment_card_surcharge_refunds.ndjson
Linked to the patient by: payment_card_surcharge_refunds.surcharge_id -> payment_card_surcharges.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
surcharge_id | UUID | no | json | |
refund_id | UUID | no | json | |
amount | NUMERIC(10, 2) | no | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/payment_card_surcharges.ndjson
Linked to the patient by: payment_card_surcharges.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
payment_id | UUID | no | json | |
charge_id | UUID | yes | json | |
amount | NUMERIC(10, 2) | no | json | |
principal_amount | NUMERIC(10, 2) | no | json | |
rate_bps | INTEGER | no | json | |
card_funding | VARCHAR(16) | no | json | |
card_brand | VARCHAR(32) | yes | json | |
card_wallet | VARCHAR(32) | yes | json | |
payment_method_id | VARCHAR(255) | yes | json | |
channel | VARCHAR(32) | no | json | |
disclosed_by_user_id | UUID | yes | json | |
payment_provider | VARCHAR(32) | no | json | |
provider_payment_id | VARCHAR(255) | no | json | |
provider_charge_id | VARCHAR(255) | yes | json | |
provider_account_id | VARCHAR(255) | yes | json | |
currency | VARCHAR(10) | no | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/payment_plan_charges.ndjson — A charge an automatic plan covers (D4). Stored, never inferred.
Linked to the patient by: payment_plan_charges.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
plan_id | UUID | no | json | |
charge_id | UUID | no | json | |
amount_at_start | NUMERIC(10, 2) | no | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/payment_plan_installments.ndjson — One scheduled installment of an automatic plan (D6).
Linked to the patient by: payment_plan_installments.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
plan_id | UUID | no | json | |
installment_number | INTEGER | no | json | |
due_date | DATE | no | json | |
scheduled_amount | NUMERIC(10, 2) | no | json | |
collected_amount | NUMERIC(10, 2) | no | json | |
status | VARCHAR(24) | no | json | |
status_reason | VARCHAR(64) | yes | json | |
auto_try_count | INTEGER | no | json | |
manual_try_count | INTEGER | no | json | |
next_try_on | DATE | yes | json | |
last_attempted_at | DATETIME | yes | json | |
last_failure_code | VARCHAR(64) | yes | json | |
last_failure_message | TEXT | yes | json | |
paid_at | DATETIME | yes | json | |
finalized_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/payment_plan_notices.ndjson — A required service notice about an automatic plan, with its delivery outcome (D9).
Linked to the patient by: payment_plan_notices.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
plan_id | UUID | no | json | |
installment_id | UUID | yes | json | |
kind | VARCHAR(32) | no | json | |
status | VARCHAR(16) | no | json | |
dedupe_key | VARCHAR(255) | no | json | |
details | JSONB | yes | json | |
recipient_hint | VARCHAR(255) | yes | json | |
attempts | INTEGER | no | json | |
last_error | TEXT | yes | json | |
sent_at | DATETIME | yes | json | |
created_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/payment_provider_disputes.ndjson
Linked to the patient by: payment_provider_disputes.payment_id -> payments.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
payment_provider | VARCHAR(32) | no | json | |
provider_dispute_id | VARCHAR(255) | no | json | |
provider_payment_id | VARCHAR(255) | yes | json | |
payment_id | UUID | yes | json | |
organization_id | UUID | no | json | |
billing_entity_id | UUID | yes | json | |
provider_account_id | VARCHAR(255) | yes | json | |
provider_location_id | VARCHAR(255) | yes | json | |
status | VARCHAR(64) | yes | json | |
amount | NUMERIC(10, 2) | yes | json | |
currency | VARCHAR(10) | yes | json | |
reason | TEXT | yes | json | |
evidence_due_at | DATETIME | yes | json | |
opened_at | DATETIME | yes | json | |
updated_at | DATETIME | no | json | |
provider_snapshot | JSONB | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/payment_reminders.ndjson
Linked to the patient by: payment_reminders.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
account_receivable_id | UUID | no | json | |
organization_id | UUID | yes | json | |
patient_id | UUID | yes | json | |
charge_id | UUID | yes | json | |
reminder_type | VARCHAR(19) | no | json | |
scheduled_date | DATETIME | no | json | |
sent_date | DATETIME | yes | json | |
status | VARCHAR(9) | no | json | |
cadence_day | INTEGER | yes | json | |
cadence_key | VARCHAR(160) | yes | json | |
delivery_channel | VARCHAR(20) | yes | json | |
template_used | VARCHAR(50) | yes | json | |
response | VARCHAR(50) | yes | json | |
notes | TEXT | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/payment_sales_tax_snapshots.ndjson
Linked to the patient by: payment_sales_tax_snapshots.charge_id -> charges.patient_id -> patients.id; payment_sales_tax_snapshots.payment_id -> payments.patient_id -> patients.id; payment_sales_tax_snapshots.sales_tax_event_id -> sales_tax_events.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
payment_id | UUID | no | json | |
organization_id | UUID | no | json | |
charge_id | UUID | no | json | |
sales_tax_event_id | UUID | no | json | |
captured_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/payments.ndjson
Linked to the patient by: payments.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
claim_id | UUID | yes | json | |
charge_id | UUID | yes | json | |
patient_id | UUID | no | json | |
billing_entity_id | UUID | yes | json | |
payment_type | VARCHAR(14) | no | json | |
amount | NUMERIC(10, 2) | no | json | |
currency | VARCHAR(10) | yes | json | |
payment_date | DATETIME | no | json | |
transaction_id | VARCHAR(100) | yes | json | |
remittance_id | UUID | yes | json | |
stripe_account_id | VARCHAR(255) | yes | json | |
stripe_charge_id | VARCHAR(255) | yes | json | |
payment_provider | VARCHAR(32) | yes | json | |
provider_payment_id | VARCHAR(255) | yes | json | |
provider_charge_id | VARCHAR(255) | yes | json | |
provider_account_id | VARCHAR(255) | yes | json | |
provider_location_id | VARCHAR(255) | yes | json | |
provider_order_id | VARCHAR(255) | yes | json | |
provider_payment_status | VARCHAR(64) | yes | json | |
provider_idempotency_key | VARCHAR(255) | yes | json | |
provider_environment | VARCHAR(32) | yes | json | |
notes | TEXT | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/refunds.ndjson
Linked to the patient by: refunds.payment_id -> payments.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
payment_id | UUID | no | json | |
billing_entity_id | UUID | yes | json | |
amount | NUMERIC(10, 2) | no | json | |
currency | VARCHAR(10) | yes | json | |
reason | VARCHAR(255) | no | json | |
status | VARCHAR(9) | no | json | |
refund_date | DATETIME | yes | json | |
stripe_account_id | VARCHAR(255) | yes | json | |
stripe_refund_id | VARCHAR(255) | yes | json | |
payment_provider | VARCHAR(32) | yes | json | |
provider_refund_id | VARCHAR(255) | yes | json | |
provider_payment_id | VARCHAR(255) | yes | json | |
provider_account_id | VARCHAR(255) | yes | json | |
provider_location_id | VARCHAR(255) | yes | json | |
provider_refund_status | VARCHAR(64) | yes | json | |
provider_environment | VARCHAR(32) | yes | json | |
provider_idempotency_key | VARCHAR(255) | yes | json | |
provider_failure_reason | TEXT | yes | json | |
created_at | DATETIME | no | json | |
created_by | UUID | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/sales_tax_events.ndjson
Linked to the patient by: sales_tax_events.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
sequence | BIGINT | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
charge_id | UUID | no | json | |
event_type | VARCHAR(16) | no | json | |
cause | VARCHAR(32) | no | json | |
rate_percent | NUMERIC(7, 4) | no | json | |
taxable_delta | NUMERIC(10, 2) | no | json | |
tax_delta | NUMERIC(10, 2) | no | json | |
taxable_after | NUMERIC(10, 2) | no | json | |
tax_after | NUMERIC(10, 2) | no | json | |
occurred_at | DATETIME | no | json | |
accounting_date | DATE | no | json | |
accounting_timezone | VARCHAR(64) | no | json | |
actor_user_id | UUID | yes | json | |
source_action_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/scheduled_visit_billing_snapshots.ndjson
Linked to the patient by: scheduled_visit_billing_snapshots.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
scheduled_visit_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
patient_id | UUID | no | json | |
physician_visit_type_id | UUID | yes | json | |
visit_type_billing_rule_id | UUID | yes | json | |
patient_visit_type_billing_rate_id | UUID | yes | json | |
visit_type_billing_rule_version | INTEGER | yes | json | |
practice_payment_model | VARCHAR(64) | yes | json | |
resolved_billing_path | VARCHAR(13) | no | json | |
cash_price_amount | NUMERIC(10, 2) | yes | json | |
display_price_label | VARCHAR(64) | yes | json | |
collection_policy | VARCHAR(64) | no | json | |
before_visit_hours | INTEGER | yes | json | |
deposit_type | VARCHAR(32) | no | json | |
deposit_amount | NUMERIC(10, 2) | yes | json | |
deposit_percent_bps | INTEGER | yes | json | |
required_amount_at_booking | NUMERIC(10, 2) | no | json | |
required_amount_before_visit | NUMERIC(10, 2) | no | json | |
amount_due_at_checkin | NUMERIC(10, 2) | no | json | |
amount_due_after_visit | NUMERIC(10, 2) | no | json | |
balance_amount | NUMERIC(10, 2) | no | json | |
refund_policy_scope | VARCHAR(32) | no | json | |
cancellation_grace_minutes | INTEGER | yes | json | |
cancellation_timing_mode | VARCHAR(16) | yes | json | |
cancellation_deadline_days_before | INTEGER | yes | json | |
cancellation_deadline_local_time | VARCHAR(5) | yes | json | |
cancellation_deadline_timezone | VARCHAR(64) | yes | json | |
cancellation_fee_type | VARCHAR(32) | yes | json | |
cancellation_fee_amount | NUMERIC(10, 2) | yes | json | |
cancellation_fee_percent_bps | INTEGER | yes | json | |
no_show_fee_type | VARCHAR(32) | yes | json | |
no_show_fee_amount | NUMERIC(10, 2) | yes | json | |
no_show_fee_percent_bps | INTEGER | yes | json | |
accepted_quote_version | INTEGER | yes | json | |
quote_expires_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): accepted_quote_hash
data/scheduled_visit_eligibility_overrides.ndjson — Staff booked or kept a visit despite a blocking eligibility result.
Linked to the patient by: scheduled_visit_eligibility_overrides.scheduled_visit_id -> scheduled_visits.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
scheduled_visit_id | UUID | no | json | |
episode_id | UUID | yes | json | |
kind | VARCHAR(20) | no | json | |
reason | TEXT | no | json | |
actor_user_id | UUID | no | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Care programs
data/aco_attribution_members.ndjson
Linked to the patient by: aco_attribution_members.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
roster_id | UUID | no | json | |
organization_id | UUID | no | json | |
row_number | INTEGER | no | json | |
mbi | VARCHAR(11) | yes | json | |
first_name | VARCHAR(100) | yes | json | |
last_name | VARCHAR(100) | yes | json | |
date_of_birth | DATE | yes | json | |
sex | VARCHAR(1) | yes | json | |
attributed_npi | VARCHAR(10) | yes | json | |
attributed_tin | VARCHAR(9) | yes | json | |
member_id | VARCHAR(40) | yes | json | |
original_entitlement_code | VARCHAR(1) | yes | json | |
dual_status_code | VARCHAR(2) | yes | json | |
raw | JSONB | no | json | |
match_status | VARCHAR(10) | no | json | |
match_method | VARCHAR(10) | yes | json | |
patient_id | UUID | yes | json | |
candidate_patient_ids | JSONB | no | json | |
matched_by | UUID | yes | json | |
matched_at | DATETIME | yes | json | |
review_note | TEXT | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/care_management_plans.ndjson — The patient's comprehensive care plan, shared across care programs.
Linked to the patient by: care_management_plans.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
content | JSONB | no | json | |
status | VARCHAR(10) | no | json | |
version | INTEGER | no | json | |
reviewed_by_user_id | UUID | yes | json | |
reviewed_at | DATETIME | yes | json | |
shared_with_patient_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/care_program_enrollments.ndjson — A patient's participation in one care-management program.
Linked to the patient by: care_program_enrollments.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
program | VARCHAR(10) | no | json | |
status | VARCHAR(10) | no | json | |
consent_method | VARCHAR(12) | yes | json | |
consent_date | DATE | yes | json | |
consent_documented_by | UUID | yes | json | |
cost_share_informed | BOOLEAN | no | json | |
responsible_physician_id | UUID | yes | json | |
billing_provider_id | UUID | yes | json | |
care_manager_user_id | UUID | yes | json | |
insurance_policy_id | UUID | yes | json | |
qualifying_conditions | JSONB | no | json | |
enrollment_source | VARCHAR(32) | no | json | |
consent_evidence | JSONB | no | json | |
consent_media_id | UUID | yes | json | |
pcm_high_risk_attestation | JSONB | yes | json | |
started_on | DATE | no | json | |
ended_on | DATE | yes | json | |
end_reason | TEXT | yes | json | |
notes | TEXT | yes | json | |
department_id | UUID | yes | json | |
provenance | VARCHAR(16) | no | json | |
initiating_visit | JSONB | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/care_program_month_reviews.ndjson — Month-end review decision for one patient, program and service month.
Linked to the patient by: care_program_month_reviews.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
program | VARCHAR(10) | no | json | |
service_month | DATE | no | json | |
status | VARCHAR(10) | no | json | |
note | TEXT | yes | json | |
reviewed_by | UUID | no | json | |
reviewed_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/care_time_entries.ndjson — Time actually spent on a care-management program (the billing evidence).
Linked to the patient by: care_time_entries.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
program | VARCHAR(10) | no | json | |
actor_user_id | UUID | no | json | |
actor_role | VARCHAR(16) | no | json | |
started_at | DATETIME | no | json | |
ended_at | DATETIME | no | json | |
duration_seconds | INTEGER | no | json | |
service_month | DATE | no | json | |
activities | JSONB | no | json | |
note | TEXT | yes | json | |
interactive | BOOLEAN | no | json | |
source | VARCHAR(10) | no | json | |
status | VARCHAR(10) | no | json | |
contact_type | VARCHAR(20) | yes | json | |
spoke_with | VARCHAR(24) | yes | json | |
patient_initiated | BOOLEAN | no | json | |
episode_id | UUID | yes | json | |
rpm_enrollment_id | UUID | yes | json | |
inferred_activities | JSONB | no | json | |
source_ref | VARCHAR(255) | yes | json | |
claim_item_id | UUID | yes | json | |
rpm_billing_event_id | UUID | yes | json | |
hold_reason | TEXT | yes | json | |
void_reason | TEXT | yes | json | |
voided_by | UUID | yes | json | |
voided_at | DATETIME | yes | json | |
employment_type | VARCHAR(16) | no | json | |
provenance | VARCHAR(16) | no | json | |
scale_results | JSONB | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/quality_code_dismissals.ndjson
Linked to the patient by: quality_code_dismissals.encounter_id -> encounters.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
encounter_id | UUID | no | json | |
code | VARCHAR(8) | no | json | |
reason | TEXT | no | json | |
dismissed_by | UUID | no | json | |
dismissed_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Care programs and remote monitoring
data/care_episodes.ndjson
Linked to the patient by: care_episodes.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
kind | VARCHAR(24) | no | json | |
initiated_at | DATETIME | no | json | |
source | VARCHAR(32) | no | json | |
message_thread_id | VARCHAR(100) | yes | json | |
phone_call_id | UUID | yes | json | |
rendering_user_id | UUID | no | json | |
rendering_physician_id | UUID | yes | json | |
role_lane | VARCHAR(16) | no | json | |
status | VARCHAR(32) | no | json | |
window_end | DATETIME | no | json | |
closed_at | DATETIME | yes | json | |
patient_initiated | BOOLEAN | no | json | |
clinical_purpose | VARCHAR(32) | no | json | |
diagnoses | JSONB | no | json | |
established_patient_basis | JSONB | no | json | |
hold_reasons | JSONB | no | json | |
total_seconds | INTEGER | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/care_plan_snapshots.ndjson
Linked to the patient by: care_plan_snapshots.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
plan_id | UUID | no | json | |
service_month | DATE | no | json | |
version | INTEGER | no | json | |
revision | INTEGER | no | json | |
content | JSONB | no | json | |
portal_content | JSONB | no | json | |
diff | JSONB | no | json | |
status | VARCHAR(32) | no | json | |
approved_by | UUID | yes | json | |
approved_at | DATETIME | yes | json | |
pdf_media_id | UUID | yes | json | |
delivered_at | DATETIME | yes | json | |
delivery_channel | VARCHAR(32) | yes | json | |
patient_viewed_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): content_hash
data/care_program_billing_decisions.ndjson
Linked to the patient by: care_program_billing_decisions.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
period_start | DATE | yes | json | |
period_end | DATE | yes | json | |
episode_id | UUID | yes | json | |
decision_type | VARCHAR(40) | no | json | |
choice | JSONB | no | json | |
decided_by | UUID | no | json | |
decided_at | DATETIME | no | json | |
note | TEXT | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): evidence_hash
data/care_program_claim_items.ndjson
Linked to the patient by: care_program_claim_items.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
program | VARCHAR(16) | no | json | |
period_start | DATE | no | json | |
period_end | DATE | no | json | |
episode_id | UUID | yes | json | |
status | VARCHAR(32) | no | json | |
policy | VARCHAR(32) | no | json | |
code_lines | JSONB | no | json | |
diagnoses | JSONB | no | json | |
billing_provider_id | UUID | yes | json | |
rendering_provider_id | UUID | yes | json | |
insurance_policy_id | UUID | yes | json | |
date_of_service | DATE | no | json | |
scheduled_submit_on | DATE | yes | json | |
evidence | JSONB | no | json | |
catalog_version | VARCHAR(80) | no | json | |
code_family | VARCHAR(60) | no | json | |
anchor_key | VARCHAR(255) | no | json | |
reopened_from_id | UUID | yes | json | |
encounter_id | UUID | yes | json | |
claim_id | UUID | yes | json | |
charge_ids | JSONB | no | json | |
hold_reasons | JSONB | no | json | |
error | TEXT | yes | json | |
approved_by | UUID | yes | json | |
approved_at | DATETIME | yes | json | |
late_time | JSONB | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): evidence_hash
data/care_program_import_rows.ndjson
Linked to the patient by: care_program_import_rows.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
batch_id | UUID | no | json | |
sheet | VARCHAR(24) | no | json | |
row_number | INTEGER | no | json | |
source_ref | VARCHAR(255) | yes | json | |
outcome | VARCHAR(16) | no | json | |
patient_id | UUID | yes | json | |
matched_by | VARCHAR(24) | yes | json | |
target_table | VARCHAR(64) | yes | json | |
target_id | UUID | yes | json | |
reason | TEXT | yes | json | |
warnings | JSONB | no | json | |
detail | JSONB | no | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): source_row_hash
data/care_program_imported_claims.ndjson — A care-program claim the previous system billed (plan §10.8).
Linked to the patient by: care_program_imported_claims.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
program | VARCHAR(16) | yes | json | |
code | VARCHAR(10) | no | json | |
service_month | DATE | no | json | |
status | VARCHAR(32) | no | json | |
source | VARCHAR(40) | no | json | |
source_ref | VARCHAR(255) | yes | json | |
import_batch_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): source_row_hash
data/care_program_initiating_visit_attestations.ndjson
Linked to the patient by: care_program_initiating_visit_attestations.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
program | VARCHAR(10) | yes | json | |
visit_date | DATE | no | json | |
visit_description | VARCHAR(255) | yes | json | |
encounter_id | UUID | yes | json | |
billing_provider_id | UUID | no | json | |
attested_by_user_id | UUID | no | json | |
attested_at | DATETIME | no | json | |
note | TEXT | yes | json | |
revoked_at | DATETIME | yes | json | |
revoked_by_user_id | UUID | yes | json | |
revoke_reason | TEXT | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/rpm_device_assignments.ndjson
Linked to the patient by: rpm_device_assignments.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
device_id | UUID | no | json | |
patient_id | UUID | no | json | |
rpm_enrollment_id | UUID | no | json | |
effective_from | DATETIME | no | json | |
effective_to | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/rpm_devices.ndjson
Linked to the patient by: rpm_devices.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | yes | json | |
rpm_enrollment_id | UUID | yes | json | |
vendor | VARCHAR(32) | no | json | |
vendor_device_id | VARCHAR(255) | no | json | |
hardware_uuid | VARCHAR(255) | yes | json | |
device_type | VARCHAR(80) | yes | json | |
device_name | VARCHAR(255) | yes | json | |
sensor_code | VARCHAR(80) | yes | json | |
status | VARCHAR(80) | no | json | |
shipping_status | VARCHAR(80) | yes | json | |
ordered_at | DATETIME | yes | json | |
shipped_at | DATETIME | yes | json | |
delivered_at | DATETIME | yes | json | |
connected_at | DATETIME | yes | json | |
unlinked_at | DATETIME | yes | json | |
last_reading_at | DATETIME | yes | json | |
raw | JSONB | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/rpm_vendor_events.ndjson
Linked to the patient by: rpm_vendor_events.assignment_id -> rpm_device_assignments.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
vendor | VARCHAR(32) | no | json | |
kind | VARCHAR(24) | no | json | |
dedupe_key | VARCHAR(255) | no | json | |
payload | JSONB | no | json | |
received_at | DATETIME | no | json | |
status | VARCHAR(32) | no | json | |
processed_at | DATETIME | yes | json | |
error | TEXT | yes | json | |
assignment_id | UUID | yes | json | |
vital_ids | JSONB | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Care team and outside providers
data/encounter_care_team_deliveries.ndjson — Per-encounter choice: send the signed note to this outside provider.
Linked to the patient by: encounter_care_team_deliveries.encounter_id -> encounters.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
encounter_id | UUID | no | json | |
referring_provider_id | UUID | no | json | |
care_team_role | VARCHAR(20) | no | json | |
channel | VARCHAR(10) | no | json | |
enabled | BOOLEAN | no | json | |
set_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_care_team_members.ndjson
Linked to the patient by: patient_care_team_members.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
referring_provider_id | UUID | yes | json | |
role | VARCHAR(20) | no | json | |
role_label | VARCHAR(80) | yes | json | |
is_primary | BOOLEAN | no | json | |
status | VARCHAR(20) | no | json | |
source | VARCHAR(30) | no | json | |
source_ref_type | VARCHAR(40) | yes | json | |
source_ref_id | VARCHAR(64) | yes | json | |
suggestion_snapshot | JSONB | yes | json | |
effective_from | DATE | yes | json | |
effective_to | DATE | yes | json | |
created_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_by | UUID | yes | json | |
updated_at | DATETIME | no | json | |
confirmed_by | UUID | yes | json | |
confirmed_at | DATETIME | yes | json | |
ended_by | UUID | yes | json | |
ended_at | DATETIME | yes | json | |
end_reason | VARCHAR(200) | yes | json | |
dismissed_by | UUID | yes | json | |
dismissed_at | DATETIME | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/referring_provider_communications.ndjson
Linked to the patient by: referring_provider_communications.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | yes | json | |
encounter_id | UUID | yes | json | |
referring_provider_id | UUID | no | json | |
inbound_referral_id | UUID | yes | json | |
care_team_role | VARCHAR(20) | yes | json | |
channel | VARCHAR(10) | no | json | |
direction | VARCHAR(10) | no | json | |
purpose | VARCHAR(20) | no | json | |
status | VARCHAR(20) | no | json | |
summary | VARCHAR(500) | yes | json | |
attachments | JSONB | yes | json | |
destination | VARCHAR(255) | yes | json | |
call_outcome | VARCHAR(20) | yes | json | |
note | TEXT | yes | json | |
override_reason | VARCHAR(200) | yes | json | |
fax_id | UUID | yes | json | |
communication_log_id | UUID | yes | json | |
phone_call_id | UUID | yes | json | |
message_id | UUID | yes | json | |
idempotency_key | VARCHAR(128) | yes | json | |
actor_type | VARCHAR(10) | no | json | |
actor_user_id | UUID | yes | json | |
sent_at | DATETIME | yes | json | |
delivered_at | DATETIME | yes | json | |
failed_at | DATETIME | yes | json | |
read_at | DATETIME | yes | json | |
failed_reason | VARCHAR(500) | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/referring_provider_messages.ndjson — One message in the practice ↔ outside-provider thread about a patient.
Linked to the patient by: referring_provider_messages.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
referring_provider_id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
inbound_referral_id | UUID | yes | json | |
direction | VARCHAR(20) | no | json | |
body | TEXT | no | json | |
attachments | JSONB | yes | json | |
author_user_id | UUID | yes | json | |
sent_at | DATETIME | no | json | |
provider_read_at | DATETIME | yes | json | |
staff_read_at | DATETIME | yes | json | |
staff_read_by | UUID | yes | json | |
is_deleted | BOOLEAN | no | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Clinical record: visits, notes, problems, medications, allergies, vitals, documents
data/device_inbox_items.ndjson
Linked to the patient by: device_inbox_items.filed_patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
status | VARCHAR(16) | no | json | |
match_basis | VARCHAR(32) | no | json | |
suggested_patient_id | UUID | yes | json | |
suggested_encounter_id | UUID | yes | json | |
source_upload_key | VARCHAR(500) | no | json | |
staged_s3_key | VARCHAR(500) | no | json | |
content_type | VARCHAR(100) | no | json | |
file_name | VARCHAR(255) | no | json | |
file_size | INTEGER | no | json | |
sha256 | VARCHAR(64) | no | json | |
sop_instance_uid | VARCHAR(64) | yes | json | |
study_instance_uid | VARCHAR(64) | yes | json | |
study_date | DATE | yes | json | |
study_datetime_utc | DATETIME | yes | json | |
parsed_metadata | JSONB | no | json | |
gdt | JSONB | yes | json | |
source_workstation_label | VARCHAR(255) | yes | json | |
filed_media_group_id | UUID | yes | json | |
filed_patient_id | UUID | yes | json | |
filed_at | DATETIME | yes | json | |
filed_by_user_id | UUID | yes | json | |
dismissed_at | DATETIME | yes | json | |
dismissed_by_user_id | UUID | yes | json | |
dismissal_reason | TEXT | yes | json | |
expires_at | DATETIME | no | json | |
staging_deleted_at | DATETIME | yes | json | |
created_by_user_id | UUID | yes | json | |
retired_at | DATETIME | yes | json | |
retired_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/dicom_instances.ndjson
Linked to the patient by: dicom_instances.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
media_id | UUID | no | json | |
media_group_id | UUID | no | json | |
source_upload_key | VARCHAR(500) | yes | json | |
study_instance_uid | VARCHAR(64) | no | json | |
series_instance_uid | VARCHAR(64) | no | json | |
sop_instance_uid | VARCHAR(64) | no | json | |
sop_class_uid | VARCHAR(64) | no | json | |
modality | VARCHAR(16) | yes | json | |
series_number | INTEGER | yes | json | |
series_description | VARCHAR(1024) | yes | json | |
instance_number | INTEGER | yes | json | |
number_of_frames | INTEGER | no | json | |
transfer_syntax_uid | VARCHAR(64) | no | json | |
study_date | DATE | yes | json | |
study_datetime_utc | DATETIME | yes | json | |
study_description | VARCHAR(1024) | yes | json | |
accession_number | VARCHAR(64) | yes | json | |
body_part_examined | VARCHAR(64) | yes | json | |
laterality | VARCHAR(16) | yes | json | |
view_position | VARCHAR(16) | yes | json | |
sha256 | VARCHAR(64) | no | json | |
demographics | JSONB | no | json | |
retired_at | DATETIME | yes | json | |
retired_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/dicom_study_reads.ndjson — The provider's read of one filed study: report, codes, filing and billing.
Linked to the patient by: dicom_study_reads.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
media_group_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
worklist_entry_id | UUID | yes | json | |
document_type | VARCHAR(16) | no | json | |
modality | VARCHAR(16) | yes | json | |
body_part | VARCHAR(64) | yes | json | |
laterality | VARCHAR(16) | yes | json | |
view_count | INTEGER | no | json | |
study_date | DATE | yes | json | |
study_datetime_utc | DATETIME | yes | json | |
study_description | VARCHAR(1024) | yes | json | |
accession_number | VARCHAR(64) | yes | json | |
read_status | VARCHAR(16) | no | json | |
billing_status | VARCHAR(16) | no | json | |
procedure_codes | JSONB | no | json | |
diagnosis_codes | JSONB | no | json | |
indication | TEXT | yes | json | |
technique | TEXT | yes | json | |
comparison | TEXT | yes | json | |
findings | TEXT | yes | json | |
impression | TEXT | yes | json | |
report_body | TEXT | yes | json | |
abnormal | BOOLEAN | no | json | |
reading_physician_id | UUID | yes | json | |
report_updated_at | DATETIME | yes | json | |
report_updated_by_user_id | UUID | yes | json | |
signed_at | DATETIME | yes | json | |
signed_by_user_id | UUID | yes | json | |
report_history | JSONB | no | json | |
filed_to | VARCHAR(16) | yes | json | |
radiology_image_id | UUID | yes | json | |
patient_procedure_id | UUID | yes | json | |
billed_at | DATETIME | yes | json | |
billed_by_user_id | UUID | yes | json | |
billing_mode | VARCHAR(16) | yes | json | |
billed_line_uids | JSONB | no | json | |
not_billable_reason | TEXT | yes | json | |
created_by_user_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/dicom_worklist_entries.ndjson — One scheduled exam on the office's DICOM Modality Worklist.
Linked to the patient by: dicom_worklist_entries.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
scheduled_visit_id | UUID | yes | json | |
encounter_id | UUID | yes | json | |
ordering_physician_id | UUID | yes | json | |
accession_number | VARCHAR(16) | no | json | |
study_instance_uid | VARCHAR(64) | no | json | |
procedure_code | VARCHAR(10) | yes | json | |
procedure_description | VARCHAR(64) | no | json | |
body_part | VARCHAR(16) | yes | json | |
laterality | VARCHAR(1) | yes | json | |
modality | VARCHAR(16) | no | json | |
scheduled_start_utc | DATETIME | no | json | |
scheduled_station_ae | VARCHAR(16) | yes | json | |
status | VARCHAR(16) | no | json | |
exported_at | DATETIME | yes | json | |
acquired_media_group_id | UUID | yes | json | |
acquired_at | DATETIME | yes | json | |
cancelled_at | DATETIME | yes | json | |
cancelled_by_user_id | UUID | yes | json | |
created_by_user_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/encounter_diagnoses.ndjson — Links encounters with ICD10 diagnosis codes. Enables tracking of which diagnoses were addressed during specific encounters and distinguishes between primary and secondary diagnoses for billing purposes.
Linked to the patient by: encounter_diagnoses.encounter_id -> encounters.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
encounter_id | UUID | no | json | |
icd10_code | VARCHAR(8) | no | json | |
is_primary | BOOLEAN | no | json | |
sequence_number | INTEGER | no | json | |
notes | VARCHAR(500) | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/encounter_portal_restriction_states.ndjson — Permanent concurrency row for one note and portal audience.
Linked to the patient by: encounter_portal_restriction_states.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | no | json | |
note_id | UUID | yes | json | |
audience | VARCHAR(16) | no | json | |
is_active | BOOLEAN | no | json | |
revision | INTEGER | no | json | |
current_restriction_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/encounter_portal_restrictions.ndjson — One immutable restriction determination plus optional release metadata.
Linked to the patient by: encounter_portal_restrictions.state_id -> encounter_portal_restriction_states.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
state_id | UUID | no | json | |
reason_code | VARCHAR(64) | no | json | |
justification | TEXT | yes | json | |
reason_details | JSONB | no | json | |
policy_revision_id | UUID | yes | json | |
review_notice | JSONB | yes | json | |
covered_note_ids | JSONB | no | json | |
restricted_by | UUID | yes | json | |
restricted_at | DATETIME | no | json | |
released_by | UUID | yes | json | |
released_at | DATETIME | yes | json | |
release_basis | VARCHAR(32) | yes | json | |
release_note | TEXT | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/encounter_versions.ndjson — Stores historical versions of encounters for audit trail.
Linked to the patient by: encounter_versions.encounter_id -> encounters.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
encounter_id | UUID | no | json | |
version_number | INTEGER | no | json | |
snapshot | JSONB | yes | json | |
correction_reason | TEXT | yes | json | |
created_at | DATETIME | no | json | |
created_by | UUID | no | json | |
archive_status | VARCHAR(14) | no | json | |
s3_archive_key | VARCHAR(500) | yes | attachment | |
archived_at | DATETIME | yes | json | |
retrieval_job_id | VARCHAR(200) | yes | json | |
retrieval_requested_at | DATETIME | yes | json | |
retrieval_requested_by | UUID | yes | json | |
retrieval_expires_at | DATETIME | yes | json | |
retrieval_reason | TEXT | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/encounters.ndjson
Linked to the patient by: encounters.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
encounter_type_id | UUID | no | json | |
scheduled_visit_id | UUID | yes | json | |
patient_id | UUID | no | json | |
physician_id | UUID | no | json | |
organization_id | UUID | no | json | |
active | BOOLEAN | no | json | |
active_editor_id | UUID | yes | json | |
opened_at | DATETIME | yes | json | |
lock_expires_at | DATETIME | yes | json | |
meta_chief_complaint | VARCHAR(500) | yes | json | |
meta_visit_reason | VARCHAR(500) | yes | json | |
encounter_summary | TEXT | yes | json | |
inperson_room_number | VARCHAR(20) | yes | json | |
inperson_checkin_time | DATETIME | yes | json | |
inperson_roomed_time | DATETIME | yes | json | |
inperson_provider_start | DATETIME | yes | json | |
inperson_checkout_time | DATETIME | yes | json | |
phone_number | VARCHAR(20) | yes | json | |
phone_attempts | INTEGER | yes | json | |
phone_connected_at | DATETIME | yes | json | |
phone_callback_preference | VARCHAR(50) | yes | json | |
virtual_platform | VARCHAR(50) | yes | json | |
virtual_link | VARCHAR(500) | yes | json | |
virtual_meeting_status | VARCHAR(32) | yes | json | |
virtual_meeting_external_id | VARCHAR(255) | yes | json | |
virtual_host_external_user_id | VARCHAR(255) | yes | json | |
virtual_installation_id | UUID | yes | json | |
virtual_meeting_metadata | JSONB | yes | json | |
zoom_meeting_id | VARCHAR(64) | yes | json | |
zoom_host_user_id | VARCHAR(255) | yes | json | |
zoom_installation_id | UUID | yes | json | |
zoom_meeting_status | VARCHAR(32) | yes | json | |
virtual_patient_joined_at | DATETIME | yes | json | |
virtual_provider_joined_at | DATETIME | yes | json | |
virtual_connection_issues | VARCHAR(500) | yes | json | |
telehealth_patient_location | VARCHAR(10) | yes | json | |
visit_delivery | VARCHAR(16) | yes | json | |
home_arrival_at | DATETIME | yes | json | |
home_departure_at | DATETIME | yes | json | |
home_address_verified | BOOLEAN | yes | json | |
message_thread_id | UUID | yes | json | |
message_response_required | BOOLEAN | yes | json | |
message_response_due_at | DATETIME | yes | json | |
encounter_date | DATETIME | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
status | VARCHAR(20) | no | json | |
editor_protocol_version | SMALLINT | no | json | |
signing_fencing_epoch | BIGINT | no | json | |
draft_payload | JSONB | yes | json | |
addendum_payload | JSONB | yes | json | |
addendum_metadata | JSONB | yes | json | |
physician_handoff | JSONB | yes | json | |
cash_pay_claim_override | BOOLEAN | no | json | |
cash_pay_claim_override_reason | TEXT | yes | json | |
billing_disposition | VARCHAR(32) | yes | json | |
place_of_service | VARCHAR(2) | yes | json | |
billing_context_policy_id | UUID | yes | json | |
billing_context_contract_id | UUID | yes | json | |
billing_context_frozen_at | DATETIME | yes | json | |
billing_context_source | VARCHAR(20) | yes | json | |
billing_context_plan_text | VARCHAR(255) | yes | json | |
signed_at | DATETIME | yes | json | |
signed_by | UUID | yes | json | |
digital_signature | VARCHAR(512) | yes | json | |
signature_payload | JSONB | yes | json | |
referring_provider_id | UUID | yes | json | |
referring_provider_source | VARCHAR(30) | yes | json | |
department_id | UUID | yes | json | |
current_version | INTEGER | no | json | |
last_corrected_at | DATETIME | yes | json | |
last_corrected_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): charge_state_hash
data/med_list_attestations.ndjson
Linked to the patient by: med_list_attestations.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
scheduled_visit_id | UUID | no | json | |
attested_at | DATETIME | no | json | |
changes_submitted | BOOLEAN | no | json | |
reviewed_scope | VARCHAR(16) | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): list_hash
data/media.ndjson
Linked to the patient by: media.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
organization_id | UUID | no | json | |
media_group_id | UUID | yes | json | |
page_number | INTEGER | yes | json | |
file_name | VARCHAR(255) | no | json | |
content_type | VARCHAR(100) | no | json | |
file_size | INTEGER | no | json | |
s3_key | VARCHAR(500) | no | attachment | |
description | VARCHAR(1000) | yes | json | |
document_date | DATE | yes | json | |
file_metadata | JSON | yes | json | |
status | VARCHAR(10) | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/media_groups.ndjson — Groups multiple media files (pages) into a logical document.
Linked to the patient by: media_groups.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
group_name | VARCHAR(500) | no | json | |
document_type | VARCHAR(100) | yes | json | |
document_date | DATE | yes | json | |
author_name | VARCHAR(255) | yes | json | |
facility_name | VARCHAR(255) | yes | json | |
source_category | VARCHAR(120) | yes | json | |
source_subcategory | VARCHAR(160) | yes | json | |
search_text | TEXT | yes | json | |
page_count | INTEGER | no | json | |
ai_classification_confidence | FLOAT | yes | json | |
ai_classification_summary | VARCHAR(1000) | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): document_hash
data/medical_note_cosign_events.ndjson — The feedback history of one co-sign request: comments, send-backs and their withdrawal, the author's replies and revisions, version updates and the co-signature. ``note_id``/``note_version`` are the version under review at the time; ``delivery`` is what each notification channel did (``{"team_chat": {...}, "todo": {...}}``: status, ids, a plain error).
Linked to the patient by: medical_note_cosign_events.request_id -> medical_note_cosign_requests.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
request_id | UUID | no | json | |
kind | VARCHAR(20) | no | json | |
body | TEXT | yes | json | |
actor_user_id | UUID | no | json | |
note_id | UUID | yes | json | |
note_version | INTEGER | yes | json | |
delivery | JSONB | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/medical_note_cosign_requests.ndjson
Linked to the patient by: medical_note_cosign_requests.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
note_id | UUID | no | json | |
encounter_id | UUID | no | json | |
patient_id | UUID | no | json | |
cosigner_physician_id | UUID | no | json | |
requested_by_user_id | UUID | no | json | |
assigned_by_user_id | UUID | no | json | |
assigned_at | DATETIME | no | json | |
status | VARCHAR(20) | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
completed_at | DATETIME | yes | json | |
completed_by_user_id | UUID | yes | json | |
statement_text | TEXT | yes | json | |
statement_dot_phrase_id | UUID | yes | json | |
cosigned_note_version | INTEGER | yes | json | |
cancelled_at | DATETIME | yes | json | |
cancelled_by_user_id | UUID | yes | json | |
source | VARCHAR(10) | no | json | |
rule_id | UUID | yes | json | |
rule_reason | VARCHAR(12) | yes | json | |
due_at | DATETIME | yes | json | |
bulk_batch_id | UUID | yes | json | |
review_note_id | UUID | yes | json | |
sent_back_at | DATETIME | yes | json | |
sent_back_count | INTEGER | no | json | |
returned_at | DATETIME | yes | json | |
return_kind | VARCHAR(10) | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/medical_note_versions.ndjson — Historical versions of medical notes.
Linked to the patient by: medical_note_versions.note_id -> medical_notes.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
note_id | UUID | no | json | |
version_number | INTEGER | no | json | |
content | JSONB | yes | json | |
summary | TEXT | yes | json | |
archive_status | VARCHAR(14) | no | json | |
s3_archive_key | VARCHAR(500) | yes | attachment | |
archived_at | DATETIME | yes | json | |
retrieval_job_id | VARCHAR(200) | yes | json | |
retrieval_requested_at | DATETIME | yes | json | |
retrieval_requested_by | UUID | yes | json | |
retrieval_expires_at | DATETIME | yes | json | |
retrieval_reason | TEXT | yes | json | |
note_status | VARCHAR(50) | no | json | |
note_type | VARCHAR(50) | no | json | |
version_reason | VARCHAR(13) | no | json | |
version_comment | TEXT | yes | json | |
author_physician_id | UUID | yes | json | |
author_assistant_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
note_created_at | DATETIME | no | json | |
note_signed_at | DATETIME | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/medical_notes.ndjson
Linked to the patient by: medical_notes.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | no | json | |
organization_id | UUID | no | json | |
author_physician_id | UUID | yes | json | |
author_assistant_id | UUID | yes | json | |
signed_by_user_id | UUID | yes | json | |
content | JSONB | no | json | |
summary | TEXT | yes | json | |
import_metadata | JSONB | yes | json | |
imported_author_name | VARCHAR(500) | yes | json | |
document_subtype | VARCHAR(200) | yes | json | |
note_type_id | UUID | yes | json | |
encounter_note_order | INTEGER | no | json | |
hidden_from_guardian_portal | BOOLEAN | no | json | |
hidden_from_patient_portal | BOOLEAN | no | json | |
psychiatry_psychotherapy_split_group_id | UUID | yes | json | |
psychiatry_psychotherapy_split_role | VARCHAR(20) | yes | json | |
guardian_visibility_updated_at | DATETIME | yes | json | |
guardian_visibility_updated_by | UUID | yes | json | |
guardian_visibility_reason | TEXT | yes | json | |
version | INTEGER | no | json | |
previous_version_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | yes | json | |
signed_at | DATETIME | yes | json | |
note_type | VARCHAR(31) | no | json | |
note_status | VARCHAR(17) | no | json | |
supervising_physician_id | UUID | yes | json | |
cosigned_by_physician_id | UUID | yes | json | |
cosigned_at | DATETIME | yes | json | |
amendment_reason | TEXT | yes | json | |
amendment_by_physician_id | UUID | yes | json | |
amendment_at | DATETIME | yes | json | |
void_reason | TEXT | yes | json | |
void_by_physician_id | UUID | yes | json | |
void_at | DATETIME | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/medication_change_proposals.ndjson
Linked to the patient by: medication_change_proposals.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
medication_id | UUID | no | json | |
change_type | VARCHAR(32) | no | json | |
payload | JSONB | yes | json | |
reason | TEXT | yes | json | |
proposed_by_user_id | UUID | yes | json | |
proposed_by_patient | BOOLEAN | no | json | |
proposer_display | VARCHAR(255) | no | json | |
source | VARCHAR(32) | no | json | |
medication_updated_at_snapshot | DATETIME | no | json | |
status | VARCHAR(32) | no | json | |
reviewed_by_user_id | UUID | yes | json | |
reviewed_at | DATETIME | yes | json | |
review_note | TEXT | yes | json | |
applying_encounter_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/medication_events.ndjson
Linked to the patient by: medication_events.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | yes | json | |
patient_id | UUID | no | json | |
medication_id | UUID | yes | json | |
event_type | VARCHAR(64) | no | json | |
event_time | DATETIME | no | json | |
source_event_time | DATETIME | yes | json | |
status_before | VARCHAR(32) | yes | json | |
status_after | VARCHAR(32) | yes | json | |
changed_fields | JSONB | yes | json | |
summary | TEXT | yes | json | |
clinical_context | JSONB | yes | json | |
source_type | VARCHAR(64) | yes | json | |
source_id | VARCHAR(128) | yes | json | |
idempotency_key | VARCHAR(255) | yes | json | |
medication_name_snapshot | VARCHAR(255) | yes | json | |
rxcui_snapshot | VARCHAR(32) | yes | json | |
ndc_snapshot | VARCHAR(32) | yes | json | |
prescription_id | UUID | yes | json | |
prescription_message_id | UUID | yes | json | |
patient_refill_request_id | UUID | yes | json | |
encounter_id | UUID | yes | json | |
external_import_job_id | UUID | yes | json | |
patient_medication_review_session_id | UUID | yes | json | |
actor_type | VARCHAR(32) | yes | json | |
actor_user_id | UUID | yes | json | |
actor_display | VARCHAR(255) | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/medication_reconciliations.ndjson
Linked to the patient by: medication_reconciliations.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
finalized_by_user_id | UUID | no | json | |
finalized_at | DATETIME | no | json | |
list_snapshot | JSONB | no | json | |
counts | JSONB | no | json | |
source | VARCHAR(32) | no | json | |
submission_key | VARCHAR(64) | yes | json | |
prep_visit_id | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/medications.ndjson
Linked to the patient by: medications.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
prescribing_physician_id | UUID | yes | json | |
encounter_id | UUID | yes | json | |
medication_kind | VARCHAR(16) | no | json | |
compound_snapshot | JSONB | yes | json | |
name | VARCHAR(200) | no | json | |
generic_name | VARCHAR(200) | yes | json | |
simplified_medication_id | INTEGER | yes | json | |
raw_patient_text | TEXT | yes | json | |
source | VARCHAR(50) | yes | json | |
verification_status | VARCHAR(50) | yes | json | |
rxcui | VARCHAR(8) | yes | json | |
ndc_code | VARCHAR(11) | yes | json | |
ndc_package_code | VARCHAR(11) | yes | json | |
ndc_product_code | VARCHAR(11) | yes | json | |
surescripts_id | VARCHAR(50) | yes | json | |
drug_class | VARCHAR(100) | yes | json | |
controlled_substance_schedule | VARCHAR(8) | yes | json | |
strength | VARCHAR(50) | yes | json | |
form | VARCHAR(100) | yes | json | |
route | VARCHAR(50) | yes | json | |
sig | VARCHAR(500) | yes | json | |
quantity | FLOAT | yes | json | |
days_supply | INTEGER | yes | json | |
refills_authorized | INTEGER | yes | json | |
refills_remaining | INTEGER | yes | json | |
start_date | DATETIME | yes | json | |
end_date | DATETIME | yes | json | |
status | VARCHAR(12) | no | json | |
pharmacy_name | VARCHAR(200) | yes | json | |
pharmacy_phone | VARCHAR(20) | yes | json | |
pharmacy_fax | VARCHAR(20) | yes | json | |
pharmacy_npi | VARCHAR(10) | yes | json | |
pharmacy_ncpdp | VARCHAR(7) | yes | json | |
requires_prior_auth | BOOLEAN | yes | json | |
prior_auth_status | VARCHAR(50) | yes | json | |
prior_auth_expiration | DATETIME | yes | json | |
eprescribe_status | VARCHAR(50) | yes | json | |
eprescribe_error | VARCHAR(500) | yes | json | |
eprescribe_message_id | VARCHAR(100) | yes | json | |
eprescribe_reference_id | VARCHAR(100) | yes | json | |
last_eprescribe_update | DATETIME | yes | json | |
sent_to_pharmacy_at | DATETIME | yes | json | |
sent_method | VARCHAR(50) | yes | json | |
external_rx_id | VARCHAR(100) | yes | json | |
clinical_details | VARCHAR(5000) | yes | json | |
import_prescriber_name | VARCHAR(200) | yes | json | |
import_epic_system | VARCHAR(200) | yes | json | |
import_date | DATETIME | yes | json | |
last_filled_date | DATETIME | yes | json | |
next_fill_due | DATETIME | yes | json | |
last_time_taken | DATETIME | yes | json | |
reconciled_at | DATETIME | yes | json | |
reconciled_by | UUID | yes | json | |
source_of_information | VARCHAR(100) | yes | json | |
adherence_status | VARCHAR(32) | no | json | |
adherence_reported_at | DATETIME | yes | json | |
adherence_reported_by | UUID | yes | json | |
adherence_note | VARCHAR(500) | yes | json | |
display_name | VARCHAR(255) | yes | json | |
release_class | VARCHAR(24) | yes | json | |
release_class_source | VARCHAR(32) | yes | json | |
therapy_key | VARCHAR(255) | yes | json | |
superseded_by_medication_id | UUID | yes | json | |
superseded_on | DATE | yes | json | |
concurrent_group_id | UUID | yes | json | |
needs_review_reason | VARCHAR(40) | yes | json | |
last_confirmed_at | DATETIME | yes | json | |
last_confirmed_by | UUID | yes | json | |
last_confirmed_coverage_end | DATE | yes | json | |
coverage_end_on | DATE | yes | json | |
coverage_confidence | VARCHAR(16) | yes | json | |
coverage_refreshed_at | DATETIME | yes | json | |
changes_history | JSON | yes | json | |
discontinuation_reason | VARCHAR(500) | yes | json | |
adverse_reactions | JSON | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): compound_composition_hash
data/note_images.ndjson
Linked to the patient by: note_images.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | yes | json | |
encounter_id | UUID | yes | json | |
uploaded_by | UUID | no | json | |
s3_key | VARCHAR(500) | no | attachment | |
content_type | VARCHAR(100) | no | json | |
file_size | INTEGER | no | json | |
width | INTEGER | yes | json | |
height | INTEGER | yes | json | |
original_filename | VARCHAR(255) | yes | json | |
original_file_size | INTEGER | yes | json | |
original_content_type | VARCHAR(100) | yes | json | |
created_at | DATETIME | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_allergies.ndjson
Linked to the patient by: patient_allergies.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
unii_code | VARCHAR(10) | yes | json | |
ndc_package_11 | VARCHAR(11) | yes | json | |
rxnorm_code | VARCHAR(16) | yes | json | |
snomed_code | VARCHAR(18) | yes | json | |
snomed_display | VARCHAR(255) | yes | json | |
allergen_name | VARCHAR(600) | no | json | |
allergen_type | VARCHAR(13) | no | json | |
severity | VARCHAR(8) | no | json | |
reaction_type | VARCHAR(11) | no | json | |
reaction_description | VARCHAR(500) | yes | json | |
onset_date | DATETIME | yes | json | |
verified | BOOLEAN | yes | json | |
notes | VARCHAR(5000) | yes | json | |
allergy_metadata | JSONB | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_goals.ndjson
Linked to the patient by: patient_goals.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
description | TEXT | no | json | |
code_system | VARCHAR(32) | yes | json | |
code | VARCHAR(32) | yes | json | |
code_display | VARCHAR(255) | yes | json | |
category | VARCHAR(16) | no | json | |
sdoh_domain | VARCHAR(40) | yes | json | |
lifecycle_status | VARCHAR(16) | no | json | |
achievement_status | VARCHAR(32) | yes | json | |
start_date | DATE | yes | json | |
target_date | DATE | yes | json | |
expressed_by | VARCHAR(16) | yes | json | |
addresses_concern_ids | JSONB | yes | json | |
addresses_problem_ids | JSONB | yes | json | |
source_response_id | UUID | yes | json | |
notes | TEXT | yes | json | |
is_deleted | BOOLEAN | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_health_concerns.ndjson
Linked to the patient by: patient_health_concerns.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
description | TEXT | no | json | |
snomed_code | VARCHAR(18) | yes | json | |
snomed_display | VARCHAR(255) | yes | json | |
icd10_code | VARCHAR(10) | yes | json | |
category | VARCHAR(16) | no | json | |
sdoh_domain | VARCHAR(40) | yes | json | |
status | VARCHAR(16) | no | json | |
onset_date | DATE | yes | json | |
abatement_date | DATE | yes | json | |
source_response_id | UUID | yes | json | |
notes | TEXT | yes | json | |
is_deleted | BOOLEAN | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_health_status_observations.ndjson
Linked to the patient by: patient_health_status_observations.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
kind | VARCHAR(16) | no | json | |
code | VARCHAR(32) | no | json | |
value_system | VARCHAR(32) | yes | json | |
value_code | VARCHAR(32) | yes | json | |
value_display | VARCHAR(255) | yes | json | |
value_text | TEXT | yes | json | |
effective_at | DATETIME | no | json | |
status | VARCHAR(16) | no | json | |
notes | TEXT | yes | json | |
is_deleted | BOOLEAN | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_immunizations.ndjson — Patient immunization/vaccination record.
Linked to the patient by: patient_immunizations.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
administering_provider_id | UUID | yes | json | |
ordering_provider_id | UUID | yes | json | |
cvx_code | VARCHAR(10) | no | json | |
ndc_code | VARCHAR(11) | yes | json | |
vaccine_name | VARCHAR(200) | no | json | |
administration_date | DATE | no | json | |
administration_time | DATETIME | yes | json | |
status | VARCHAR(16) | no | json | |
not_given_reason | VARCHAR(19) | yes | json | |
not_given_reason_text | VARCHAR(500) | yes | json | |
source | VARCHAR(12) | no | json | |
source_system | VARCHAR(100) | yes | json | |
lot_number | VARCHAR(50) | yes | json | |
manufacturer | VARCHAR(100) | yes | json | |
expiration_date | DATE | yes | json | |
site | VARCHAR(50) | yes | json | |
route | VARCHAR(50) | yes | json | |
dose_quantity | VARCHAR(20) | yes | json | |
dose_unit | VARCHAR(20) | yes | json | |
dose_number | INTEGER | yes | json | |
series_doses_recommended | INTEGER | yes | json | |
series_complete | BOOLEAN | yes | json | |
vis_publication_date | DATE | yes | json | |
vis_presented_date | DATE | yes | json | |
funding_source | VARCHAR(50) | yes | json | |
notes | TEXT | yes | json | |
reaction | JSONB | yes | json | |
route_code | VARCHAR(10) | yes | json | |
site_code | VARCHAR(10) | yes | json | |
mvx_code | VARCHAR(10) | yes | json | |
funding_source_code | VARCHAR(20) | yes | json | |
vfc_eligibility_code | VARCHAR(10) | yes | json | |
vis_document_type_code | VARCHAR(64) | yes | json | |
administered_at_location_code | VARCHAR(64) | yes | json | |
completion_status | VARCHAR(4) | yes | json | |
external_id | VARCHAR(100) | yes | json | |
registry_id | VARCHAR(100) | yes | json | |
registry_source_key | VARCHAR(32) | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_implantable_devices.ndjson
Linked to the patient by: patient_implantable_devices.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
udi_carrier | VARCHAR(500) | no | json | |
issuing_agency | VARCHAR(10) | yes | json | |
device_identifier | VARCHAR(80) | yes | json | |
lot_number | VARCHAR(80) | yes | json | |
serial_number | VARCHAR(80) | yes | json | |
expiration_date | DATE | yes | json | |
manufacture_date | DATE | yes | json | |
distinct_identification_code | VARCHAR(80) | yes | json | |
device_description | TEXT | yes | json | |
gmdn_pt_name | VARCHAR(500) | yes | json | |
gmdn_code | VARCHAR(20) | yes | json | |
snomed_code | VARCHAR(18) | yes | json | |
brand_name | VARCHAR(255) | yes | json | |
version_model | VARCHAR(255) | yes | json | |
company_name | VARCHAR(255) | yes | json | |
mri_safety_status | VARCHAR(120) | yes | json | |
labeled_contains_nrl | BOOLEAN | yes | json | |
labeled_no_nrl | BOOLEAN | yes | json | |
prescription_use | BOOLEAN | yes | json | |
over_the_counter | BOOLEAN | yes | json | |
gudid_retrieved_at | DATETIME | yes | json | |
gudid_payload | JSONB | yes | json | |
implant_date | DATE | yes | json | |
status | VARCHAR(20) | no | json | |
status_reason | VARCHAR(500) | yes | json | |
status_changed_at | DATETIME | yes | json | |
status_changed_by | UUID | yes | json | |
notes | TEXT | yes | json | |
is_deleted | BOOLEAN | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_procedures.ndjson — Patient procedure record.
Linked to the patient by: patient_procedures.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
performing_provider_id | UUID | yes | json | |
ordering_provider_id | UUID | yes | json | |
organization_id | UUID | no | json | |
primary_code | VARCHAR(20) | no | json | |
primary_code_system | VARCHAR(20) | no | json | |
cpt_code | VARCHAR(10) | yes | json | |
snomed_code | VARCHAR(20) | yes | json | |
hcpcs_code | VARCHAR(10) | yes | json | |
icd10_pcs_code | VARCHAR(10) | yes | json | |
procedure_name | VARCHAR(500) | no | json | |
description | TEXT | yes | json | |
category | VARCHAR(11) | yes | json | |
body_site | VARCHAR(100) | yes | json | |
laterality | VARCHAR(20) | yes | json | |
procedure_date | DATE | yes | json | |
date_precision | VARCHAR(7) | no | json | |
procedure_end_date | DATE | yes | json | |
status | VARCHAR(16) | no | json | |
source | VARCHAR(16) | no | json | |
source_system | VARCHAR(100) | yes | json | |
source_id | VARCHAR(100) | yes | json | |
indication | TEXT | yes | json | |
findings | TEXT | yes | json | |
complications | TEXT | yes | json | |
outcome | VARCHAR(100) | yes | json | |
result_status | VARCHAR(50) | yes | json | |
follow_up_needed | BOOLEAN | yes | json | |
follow_up_date | DATE | yes | json | |
modifiers | VARCHAR(20) | yes | json | |
quantity | INTEGER | yes | json | |
source_claim_line_id | UUID | yes | json | |
external_id | VARCHAR(100) | yes | json | |
notes | TEXT | yes | json | |
extra_data | JSONB | yes | json | |
verified_by | UUID | yes | json | |
verified_at | DATETIME | yes | json | |
suggested_cpt_code | VARCHAR(10) | yes | json | |
suggested_cpt_confidence | NUMERIC(3, 2) | yes | json | |
reported_by | VARCHAR(14) | yes | json | |
origin_channel | VARCHAR(8) | yes | json | |
entered_by_user_id | UUID | yes | json | |
client_entry_id | UUID | yes | json | |
row_version | INTEGER | no | json | |
catalog_entry_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): suggestion_rejected_hash
data/patient_vitals.ndjson
Linked to the patient by: patient_vitals.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
vital_type | VARCHAR(29) | no | json | |
value | FLOAT | no | json | |
unit | VARCHAR(20) | no | json | |
measurement_date | DATETIME | no | json | |
notes | VARCHAR(1000) | yes | json | |
systolic | FLOAT | yes | json | |
diastolic | FLOAT | yes | json | |
collection_source | VARCHAR(19) | yes | json | |
device_name | VARCHAR(100) | yes | json | |
device_metadata | JSONB | yes | json | |
is_implausible | BOOLEAN | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/problem_list.ndjson
Linked to the patient by: problem_list.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
icd10_code | VARCHAR(10) | no | json | |
snomed_code | VARCHAR(18) | yes | json | |
snomed_display | VARCHAR(255) | yes | json | |
severity | INTEGER | no | json | |
status | VARCHAR(8) | no | json | |
onset_date | DATETIME | no | json | |
resolution_date | DATETIME | yes | json | |
last_assessed_date | DATETIME | yes | json | |
notes | TEXT | yes | json | |
is_chronic | BOOLEAN | yes | json | |
assessing_physician_id | UUID | yes | json | |
assessment_notes | VARCHAR(1000) | yes | json | |
ai_change_type | VARCHAR(20) | yes | json | |
ai_review_status | VARCHAR(20) | yes | json | |
ai_previous_state | JSONB | yes | json | |
ai_changed_at | DATETIME | yes | json | |
ai_source_encounter_id | UUID | yes | json | |
ai_reviewed_by | UUID | yes | json | |
ai_reviewed_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Communications sent to the patient
data/communication_logs.ndjson — Log of all communications sent to patients.
Linked to the patient by: communication_logs.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | yes | json | |
reference_type | VARCHAR(50) | yes | json | |
reference_id | UUID | yes | json | |
direction | VARCHAR(10) | no | json | |
channel | VARCHAR(20) | no | json | |
message_type | VARCHAR(50) | no | json | |
template_key | VARCHAR(80) | yes | json | |
subject | VARCHAR(320) | yes | json | |
body_preview | TEXT | yes | json | |
status | VARCHAR(20) | no | json | |
sent_at | DATETIME | yes | json | |
delivered_at | DATETIME | yes | json | |
provider | VARCHAR(50) | yes | json | |
from_number_e164 | VARCHAR(20) | yes | json | |
to_number_e164 | VARCHAR(20) | yes | json | |
to_email | VARCHAR(320) | yes | json | |
recipient_relation | VARCHAR(20) | yes | json | |
external_id | VARCHAR(255) | yes | json | |
segments | INTEGER | yes | json | |
is_manual | BOOLEAN | no | json | |
initiated_by_user_id | UUID | yes | json | |
outbox_id | UUID | yes | json | |
responded | BOOLEAN | no | json | |
response_at | DATETIME | yes | json | |
response_action | VARCHAR(50) | yes | json | |
confirmation_requested | BOOLEAN | no | json | |
response_status | VARCHAR(20) | no | json | |
response_channel | VARCHAR(20) | yes | json | |
error_code | VARCHAR(50) | yes | json | |
error_message | TEXT | yes | json | |
retry_count | INTEGER | no | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Faxes
data/fax_attachments.ndjson — Fax attachment model for storing multiple files per fax
Linked to the patient by: fax_attachments.fax_id -> faxes.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
fax_id | UUID | no | json | |
file_name | VARCHAR(255) | no | json | |
s3_file_key | VARCHAR(500) | no | attachment | |
file_type | VARCHAR(50) | yes | json | |
file_size_bytes | INTEGER | yes | json | |
display_order | INTEGER | yes | json | |
created_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/faxes.ndjson — Fax model for tracking both inbound and outbound faxes
Linked to the patient by: faxes.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | yes | json | |
encounter_id | UUID | yes | json | |
direction | VARCHAR(8) | no | json | |
status | VARCHAR(9) | no | json | |
from_fax_number | VARCHAR(20) | no | json | |
to_fax_number | VARCHAR(20) | no | json | |
subject | VARCHAR(255) | yes | json | |
notes | TEXT | yes | json | |
pages | INTEGER | yes | json | |
provider | VARCHAR(16) | no | json | |
provider_fax_id | VARCHAR(100) | yes | json | |
provider_metadata | JSONB | yes | json | |
srfax_fax_id | VARCHAR(50) | yes | json | |
srfax_file_name | VARCHAR(255) | yes | json | |
srfax_status | VARCHAR(50) | yes | json | |
srfax_response | JSONB | yes | json | |
s3_file_key | VARCHAR(500) | yes | attachment | |
file_type | VARCHAR(50) | yes | json | |
file_size_bytes | INTEGER | yes | json | |
ai_category | VARCHAR(50) | yes | json | |
ai_category_confidence | FLOAT | yes | json | |
ai_summary | TEXT | yes | json | |
ai_requires_urgent | BOOLEAN | no | json | |
ai_urgency_reason | VARCHAR(255) | yes | json | |
ai_extracted_data | JSONB | yes | json | |
ai_triaged_at | DATETIME | yes | json | |
ai_model_used | VARCHAR(100) | yes | json | |
content_sha256 | VARCHAR(64) | yes | json | |
duplicate_of_fax_id | UUID | yes | json | |
triage_status | VARCHAR(20) | yes | json | |
triage_category | VARCHAR(40) | yes | json | |
triage_source | VARCHAR(20) | yes | json | |
triage_pages_read | SMALLINT | yes | json | |
triage_text_excerpt | TEXT | yes | json | |
automation | JSONB | yes | json | |
patient_match_confidence | FLOAT | yes | json | |
patient_match_method | VARCHAR(50) | yes | json | |
patient_match_candidates_json | JSONB | yes | json | |
patient_match_attempted_at | DATETIME | yes | json | |
assigned_user_id | UUID | yes | json | |
assignment_reason | VARCHAR(255) | yes | json | |
routing_status | VARCHAR(50) | no | json | |
routed_at | DATETIME | yes | json | |
reviewed_at | DATETIME | yes | json | |
reviewed_by_id | UUID | yes | json | |
review_notes | TEXT | yes | json | |
response_message_id | UUID | yes | json | |
queued_at | DATETIME | yes | json | |
sent_at | DATETIME | yes | json | |
received_at | DATETIME | yes | json | |
viewed_at | DATETIME | yes | json | |
failed_at | DATETIME | yes | json | |
error_message | TEXT | yes | json | |
error_code | VARCHAR(50) | yes | json | |
retry_count | INTEGER | yes | json | |
failure_reason | VARCHAR(64) | yes | json | |
delivery_attempts | JSONB | yes | json | |
auto_resend_at | DATETIME | yes | json | |
auto_resend_state | VARCHAR(16) | yes | json | |
handled_at | DATETIME | yes | json | |
handled_by_user_id | UUID | yes | json | |
handled_note | VARCHAR(280) | yes | json | |
is_deleted | BOOLEAN | no | json | |
deleted_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Forms and letters
data/form_request_encounters.ndjson
Linked to the patient by: form_request_encounters.encounter_id -> encounters.patient_id -> patients.id; form_request_encounters.form_request_id -> form_requests.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
form_request_id | UUID | no | json | |
encounter_id | UUID | no | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/form_request_events.ndjson
Linked to the patient by: form_request_events.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
form_request_id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
actor_user_id | UUID | yes | json | |
event_type | VARCHAR(32) | no | json | |
details | JSONB | no | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/form_requests.ndjson
Linked to the patient by: form_requests.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
request_id | VARCHAR(50) | no | json | |
patient_id | UUID | no | json | |
physician_id | UUID | yes | json | |
primary_encounter_id | UUID | no | json | |
encounter_ids | ARRAY | no | json | |
request_type | VARCHAR(100) | no | json | |
template_used | VARCHAR(255) | no | json | |
initiated_by | VARCHAR(20) | no | json | |
title | VARCHAR(255) | yes | json | |
letter_content | JSONB | yes | json | |
created_by_user_id | VARCHAR(64) | yes | json | |
requested_via | VARCHAR(20) | yes | json | |
decided_by_user_id | UUID | yes | json | |
approval_signature_mode | VARCHAR(24) | yes | json | |
status | VARCHAR(50) | no | json | |
is_approved | BOOLEAN | yes | json | |
is_read | BOOLEAN | no | json | |
is_flagged | BOOLEAN | no | json | |
has_currency_amount | BOOLEAN | yes | json | |
additional_notes | TEXT | yes | json | |
summary | TEXT | yes | json | |
error_message | TEXT | yes | json | |
download_url | TEXT | yes | json | |
s3_key | TEXT | yes | attachment | |
rejection_notes | TEXT | yes | json | |
revised_form_url | TEXT | yes | json | |
revised_form_s3_key | TEXT | yes | attachment | |
revised_at | DATETIME | yes | json | |
encounter_info | JSONB | no | json | |
all_encounters_info | JSONB | no | json | |
portal_viewer_audience | VARCHAR(16) | yes | json | |
source_encounter_ids | JSONB | yes | json | |
withheld_from_portal | BOOLEAN | yes | json | |
submitted_at | DATETIME | no | json | |
processing_started_at | DATETIME | yes | json | |
completed_at | DATETIME | yes | json | |
approved_at | DATETIME | yes | json | |
read_at | DATETIME | yes | json | |
flagged_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
is_deleted | BOOLEAN | no | json | |
rerun_status | VARCHAR(50) | yes | json | |
rerun_download_url | TEXT | yes | json | |
rerun_s3_key | TEXT | yes | attachment | |
rerun_submitted_at | DATETIME | yes | json | |
rerun_completed_at | DATETIME | yes | json | |
rerun_error_message | TEXT | yes | json | |
patient_signature_assignment_id | UUID | yes | json | |
patient_signature_requested_at | DATETIME | yes | json | |
patient_signed_at | DATETIME | yes | json | |
patient_signed_s3_key | TEXT | yes | attachment | |
patient_signed_media_id | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Forms, consents and signed paperwork
data/paperwork_assignment_documents.ndjson — A document sent to the patient to sign ("Send to patient to sign").
Linked to the patient by: paperwork_assignment_documents.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
assignment_id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
source_form_request_id | UUID | yes | json | |
document_name | VARCHAR(255) | no | json | |
s3_key | VARCHAR(500) | no | attachment | |
sha256 | VARCHAR(64) | no | json | |
page_count | INTEGER | no | json | |
pages | JSONB | no | json | |
signature_fields | JSONB | no | json | |
created_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/signed_paperwork.ndjson
Linked to the patient by: signed_paperwork.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
scheduled_visit_id | UUID | yes | json | |
assignment_id | UUID | no | json | |
template_id | UUID | no | json | |
template_version_id | UUID | no | json | |
signer_name | VARCHAR(255) | no | json | |
signer_role | VARCHAR(17) | no | json | |
signer_relationship_text | VARCHAR(255) | yes | json | |
patient_age_at_signing | INTEGER | yes | json | |
patient_age_class_at_signing | VARCHAR(30) | yes | json | |
signature_method | VARCHAR(17) | no | json | |
signing_context | VARCHAR(12) | no | json | |
signature_image_s3_key | VARCHAR(500) | yes | attachment | |
field_responses | JSONB | no | json | |
electronic_record_consent_version | VARCHAR(120) | yes | json | |
electronic_record_consent_accepted_at | DATETIME | yes | json | |
communication_preference_updates | JSONB | yes | json | |
user_agent | VARCHAR(500) | yes | json | |
signed_at | DATETIME | no | json | |
pdf_s3_key | VARCHAR(500) | yes | attachment | |
pdf_sha256 | VARCHAR(64) | yes | json | |
media_id | UUID | yes | json | |
media_group_id | UUID | yes | json | |
copy_fax_status | VARCHAR(20) | yes | json | |
copy_fax_attempt | INTEGER | yes | json | |
copy_fax_id | UUID | yes | json | |
copy_fax_recipient | VARCHAR(255) | yes | json | |
copy_fax_number | VARCHAR(30) | yes | json | |
copy_fax_requested_at | DATETIME | yes | json | |
copy_fax_finished_at | DATETIME | yes | json | |
copy_fax_error | VARCHAR(500) | yes | json | |
witnessed_by_user_id | UUID | yes | json | |
superseded_by_id | UUID | yes | json | |
is_deleted | BOOLEAN | no | json | |
void_reason | TEXT | yes | json | |
voided_at | DATETIME | yes | json | |
voided_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): ip_hash
data/visit_paperwork_assignments.ndjson
Linked to the patient by: visit_paperwork_assignments.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
scheduled_visit_id | UUID | yes | json | |
encounter_id | UUID | yes | json | |
template_id | UUID | no | json | |
template_version_id | UUID | no | json | |
status | VARCHAR(16) | no | json | |
assignment_idempotency_key | VARCHAR(255) | yes | json | |
assigned_at | DATETIME | no | json | |
due_at | DATETIME | yes | json | |
completed_signed_id | UUID | yes | json | |
assigned_by | VARCHAR(20) | no | json | |
sent_by_user_id | UUID | yes | json | |
copy_label | VARCHAR(100) | yes | json | |
patient_note | TEXT | yes | json | |
additional_copy_key | VARCHAR(64) | yes | json | |
recipient_snapshot | JSONB | yes | json | |
recipient_referring_provider_id | UUID | yes | json | |
recipient_care_team_member_id | UUID | yes | json | |
practice_responses | JSONB | yes | json | |
practice_responses_by_user_id | UUID | yes | json | |
practice_responses_at | DATETIME | yes | json | |
required_signer_role | VARCHAR(14) | yes | json | |
required_signer_account_id | UUID | yes | json | |
required_signer_email | VARCHAR(255) | yes | json | |
required_signer_patient_link_id | UUID | yes | json | |
signer_routing_reason | VARCHAR(28) | yes | json | |
draft_payload | JSONB | yes | json | |
notes | TEXT | yes | json | |
is_deleted | BOOLEAN | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Gynecologic and obstetric history
data/patient_contraception_history.ndjson — One row per contraception method the patient has used.
Linked to the patient by: patient_contraception_history.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
organization_id | UUID | no | json | |
method | VARCHAR(22) | no | json | |
method_detail | VARCHAR(100) | yes | json | |
start_date | DATE | yes | json | |
end_date | DATE | yes | json | |
is_current | BOOLEAN | no | json | |
discontinuation_reason | VARCHAR(200) | yes | json | |
notes | TEXT | yes | json | |
origin_channel | VARCHAR(8) | no | json | |
reported_by | VARCHAR(14) | no | json | |
entered_by_user_id | UUID | yes | json | |
verified_by | UUID | yes | json | |
verified_at | DATETIME | yes | json | |
client_entry_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
row_version | INTEGER | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_menopause_status.ndjson — One row per patient — staff-recorded menopause status (never portal-visible).
Linked to the patient by: patient_menopause_status.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
organization_id | UUID | no | json | |
status | VARCHAR(18) | no | json | |
age_at_menopause | SMALLINT | yes | json | |
on_hrt | BOOLEAN | yes | json | |
notes | TEXT | yes | json | |
origin_channel | VARCHAR(8) | no | json | |
reported_by | VARCHAR(14) | no | json | |
entered_by_user_id | UUID | yes | json | |
verified_by | UUID | yes | json | |
verified_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
row_version | INTEGER | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_menstrual_history.ndjson — One row per patient — the current menstrual picture.
Linked to the patient by: patient_menstrual_history.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
organization_id | UUID | no | json | |
menarche_age | SMALLINT | yes | json | |
cycle_length_days | SMALLINT | yes | json | |
cycle_length_max_days | SMALLINT | yes | json | |
flow_duration_days | SMALLINT | yes | json | |
flow_intensity | VARCHAR(10) | yes | json | |
cycle_regularity | VARCHAR(9) | yes | json | |
lmp_date | DATE | yes | json | |
dysmenorrhea_severity | VARCHAR(8) | yes | json | |
dysmenorrhea_notes | TEXT | yes | json | |
abnormal_bleeding_notes | TEXT | yes | json | |
notes | TEXT | yes | json | |
origin_channel | VARCHAR(8) | no | json | |
reported_by | VARCHAR(14) | no | json | |
entered_by_user_id | UUID | yes | json | |
verified_by | UUID | yes | json | |
verified_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
row_version | INTEGER | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_obstetric_history.ndjson — One row per PAST pregnancy (the current one lives in ``pregnancy_episodes``).
Linked to the patient by: patient_obstetric_history.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
organization_id | UUID | no | json | |
pregnancy_year | SMALLINT | yes | json | |
pregnancy_end_date | DATE | yes | json | |
outcome | VARCHAR(16) | no | json | |
gestational_weeks | SMALLINT | yes | json | |
plurality | SMALLINT | no | json | |
birth_weight_grams | INTEGER | yes | json | |
delivery_location | VARCHAR(200) | yes | json | |
complications_notes | TEXT | yes | json | |
is_living | BOOLEAN | yes | json | |
living_count | SMALLINT | yes | json | |
origin_channel | VARCHAR(8) | no | json | |
reported_by | VARCHAR(14) | no | json | |
entered_by_user_id | UUID | yes | json | |
verified_by | UUID | yes | json | |
verified_at | DATETIME | yes | json | |
client_entry_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
row_version | INTEGER | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Gynecologic screening
data/cervical_screening_events.ndjson — One discrete cervical screening / workup / treatment event.
Linked to the patient by: cervical_screening_events.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
organization_id | UUID | no | json | |
event_date | DATE | no | json | |
event_type | VARCHAR(17) | no | json | |
cytology_result | VARCHAR(14) | yes | json | |
hpv_result | VARCHAR(20) | yes | json | |
histology_result | VARCHAR(6) | yes | json | |
ecc_result | VARCHAR(12) | yes | json | |
invasion_suspected | BOOLEAN | no | json | |
margin_status | VARCHAR(13) | yes | json | |
colposcopy_adequacy | VARCHAR(12) | yes | json | |
scj_visibility | VARCHAR(17) | yes | json | |
endometrial_sampling_done | VARCHAR(13) | yes | json | |
management_decision | VARCHAR(20) | yes | json | |
referral_screen_event_id | UUID | yes | json | |
satisfies_surveillance_event_id | UUID | yes | json | |
cervix_removed | VARCHAR(7) | yes | json | |
hysterectomy_indication | VARCHAR(18) | yes | json | |
source | VARCHAR(14) | no | json | |
cytology_lab_result_id | UUID | yes | json | |
hpv_lab_result_id | UUID | yes | json | |
media_id | UUID | yes | json | |
notes | TEXT | yes | json | |
entered_by | UUID | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/cervical_screening_recommendations.ndjson — Insert-only ASCCP engine output; only ``is_current`` and overrides mutate.
Linked to the patient by: cervical_screening_recommendations.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
organization_id | UUID | no | json | |
action | VARCHAR(27) | no | json | |
due_date | DATE | yes | json | |
rationale_rule_id | VARCHAR(40) | no | json | |
rationale_text | TEXT | no | json | |
engine_version | VARCHAR(20) | no | json | |
evaluated_as_of | DATE | no | json | |
temporal_state_epoch | VARCHAR(80) | no | json | |
input_fingerprint | VARCHAR(64) | no | json | |
input_snapshot | JSONB | no | json | |
next_evaluation_date | DATE | yes | json | |
computed_at | DATETIME | no | json | |
computed_from_event_ids | JSONB | no | json | |
is_current | BOOLEAN | no | json | |
superseded_recommendation_id | UUID | yes | json | |
override_action | VARCHAR(27) | yes | json | |
override_due_date | DATE | yes | json | |
override_reason | TEXT | yes | json | |
overridden_by | UUID | yes | json | |
overridden_at | DATETIME | yes | json | |
override_version | INTEGER | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Hospital stays
data/inpatient_admission_encounters.ndjson — Encounter link plus immutable claim-driving facts captured at sign.
Linked to the patient by: inpatient_admission_encounters.admission_id -> inpatient_admissions.patient_id -> patients.id; inpatient_admission_encounters.encounter_id -> encounters.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
admission_id | UUID | no | json | |
encounter_id | UUID | no | json | |
service_date | DATE | no | json | |
visit_role | VARCHAR(24) | no | json | |
visit_role_locked | BOOLEAN | no | json | |
physician_id | UUID | no | json | |
physician_taxonomy_code | VARCHAR(10) | no | json | |
is_principal_physician | BOOLEAN | no | json | |
is_attending_physician | BOOLEAN | no | json | |
create_request_id | VARCHAR(64) | yes | json | |
create_request_fingerprint | VARCHAR(64) | yes | json | |
diagnosis_seed | JSONB | yes | json | |
billing_frozen_at | DATETIME | yes | json | |
frozen_place_of_service | VARCHAR(2) | yes | json | |
frozen_patient_class | VARCHAR(32) | yes | json | |
frozen_admission_date | DATE | yes | json | |
frozen_discharge_date | DATE | yes | json | |
frozen_admitted_at | DATETIME | yes | json | |
frozen_discharged_at | DATETIME | yes | json | |
frozen_facility | JSONB | yes | json | |
frozen_authorization_number | VARCHAR(50) | yes | json | |
frozen_coverage_mode | VARCHAR(16) | yes | json | |
frozen_insurance_policy_id | UUID | yes | json | |
frozen_payer_type | VARCHAR(24) | yes | json | |
frozen_policy_coverage_start | DATE | yes | json | |
frozen_policy_coverage_end | DATE | yes | json | |
frozen_policy_valid_for_dos | BOOLEAN | yes | json | |
frozen_is_principal_physician | BOOLEAN | yes | json | |
frozen_is_attending_physician | BOOLEAN | yes | json | |
frozen_attending_physician_id | UUID | yes | json | |
frozen_total_time_minutes | SMALLINT | yes | json | |
created_by | UUID | no | json | |
created_at | DATETIME | no | json | |
updated_by | UUID | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/inpatient_admissions.ndjson — One hospital stay grouping daily professional encounters.
Linked to the patient by: inpatient_admissions.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
hospital_facility_id | UUID | no | json | |
status | VARCHAR(10) | no | json | |
patient_class | VARCHAR(21) | no | json | |
admission_date | DATE | no | json | |
admitted_at | DATETIME | yes | json | |
discharge_date | DATE | yes | json | |
discharged_at | DATETIME | yes | json | |
discharge_disposition | VARCHAR(32) | yes | json | |
admitting_physician_id | UUID | no | json | |
attending_physician_id | UUID | no | json | |
rounding_role | VARCHAR(10) | no | json | |
admitting_diagnosis_code | VARCHAR(8) | no | json | |
secondary_diagnosis_codes | JSONB | no | json | |
coverage_mode | VARCHAR(10) | no | json | |
insurance_policy_id | UUID | yes | json | |
secondary_insurance_policy_id | UUID | yes | json | |
authorization_number | VARCHAR(50) | yes | json | |
room | VARCHAR(40) | yes | json | |
notes | TEXT | yes | json | |
source | VARCHAR(20) | no | json | |
create_request_id | VARCHAR(64) | yes | json | |
create_request_fingerprint | VARCHAR(64) | yes | json | |
discharge_request_id | VARCHAR(64) | yes | json | |
discharge_request_fingerprint | VARCHAR(64) | yes | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Imaging
data/radiology_images.ndjson
Linked to the patient by: radiology_images.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
ordering_provider_id | UUID | yes | json | |
ordering_provider_name | VARCHAR(200) | yes | json | |
encounter_id | UUID | yes | json | |
modality | VARCHAR(11) | no | json | |
body_part | VARCHAR(100) | no | json | |
contrast | VARCHAR(3) | yes | json | |
laterality | VARCHAR(3) | yes | json | |
accession_number | VARCHAR(50) | yes | json | |
imaging_vendor | VARCHAR(200) | yes | json | |
study_instance_uid | VARCHAR(100) | yes | json | |
series_instance_uid | VARCHAR(100) | yes | json | |
image_instance_uid | VARCHAR(100) | yes | json | |
status | VARCHAR(9) | no | json | |
urgency | VARCHAR(8) | yes | json | |
cpt_code | VARCHAR(10) | yes | json | |
external_order_code | VARCHAR(50) | yes | json | |
image_url | VARCHAR(1000) | no | json | |
thumbnail_url | VARCHAR(1000) | yes | json | |
file_format | VARCHAR(50) | yes | json | |
resolution | VARCHAR(50) | yes | json | |
file_size | INTEGER | yes | json | |
reason_for_study | VARCHAR(500) | yes | json | |
clinical_notes | VARCHAR(1000) | yes | json | |
diagnosis_codes | JSONB | yes | json | |
report_text | TEXT | yes | json | |
findings_summary | VARCHAR(1000) | yes | json | |
abnormal_flag | BOOLEAN | yes | json | |
critical_flag | BOOLEAN | yes | json | |
radiologist_id | UUID | yes | json | |
order_date | DATETIME | no | json | |
image_acquired_date | DATETIME | yes | json | |
report_date | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
is_deleted | BOOLEAN | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
vendor_metadata | JSON | yes | json | |
external_system_id | VARCHAR(100) | yes | json | |
results_delivery_method | VARCHAR(50) | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Immunization registry exchange
data/immunization_registry_queries.ndjson — One QBP^Q11 sent to the registry and the RSP^K11 it produced.
Linked to the patient by: immunization_registry_queries.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
registry_settings_id | UUID | no | json | |
patient_id | UUID | no | json | |
query_profile | VARCHAR(8) | no | json | |
environment | VARCHAR(16) | no | json | |
query_tag | VARCHAR(32) | no | json | |
message_control_id | VARCHAR(64) | yes | json | |
initiated_by | UUID | yes | json | |
trigger | VARCHAR(24) | no | json | |
parent_query_id | UUID | yes | json | |
status | VARCHAR(16) | no | json | |
response_profile | VARCHAR(8) | yes | json | |
qak_code | VARCHAR(4) | yes | json | |
candidate_count | INTEGER | no | json | |
staged_count | INTEGER | no | json | |
request_payload | TEXT | yes | json | |
response_payload | TEXT | yes | json | |
error_summary | TEXT | yes | json | |
duration_ms | INTEGER | yes | json | |
forecast | JSONB | yes | json | |
evaluated_history | JSONB | yes | json | |
payload_purged_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
completed_at | DATETIME | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/immunization_registry_submissions.ndjson — One VXU submission attempt-chain for one immunization.
Linked to the patient by: immunization_registry_submissions.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
sequence | BIGINT | no | json | |
organization_id | UUID | no | json | |
registry_settings_id | UUID | no | json | |
environment | VARCHAR(16) | no | json | |
patient_id | UUID | no | json | |
immunization_id | UUID | no | json | |
operation | VARCHAR(16) | no | json | |
message_control_id | VARCHAR(64) | yes | json | |
message_type | VARCHAR(16) | no | json | |
hl7_payload | TEXT | yes | json | |
status | VARCHAR(24) | no | json | |
ack_code | VARCHAR(4) | yes | json | |
zsa_code | VARCHAR(4) | yes | json | |
ack_payload | TEXT | yes | json | |
error_summary | TEXT | yes | json | |
late_ack_note | TEXT | yes | json | |
attempt_count | INTEGER | no | json | |
next_attempt_at | DATETIME | yes | json | |
claimed_at | DATETIME | yes | json | |
submitted_at | DATETIME | yes | json | |
acknowledged_at | DATETIME | yes | json | |
payload_purged_at | DATETIME | yes | json | |
registry_immunization_id | VARCHAR(100) | yes | json | |
group_leader_id | UUID | yes | json | |
released_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): content_hash, lease_token
data/patient_registry_identifiers.ndjson — The registry's own patient ID (PID-3 type ``SR``) for one patient.
Linked to the patient by: patient_registry_identifiers.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
registry_settings_id | UUID | no | json | |
registry_patient_id | VARCHAR(100) | no | json | |
environment | VARCHAR(16) | no | json | |
last_seen_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Laboratory orders and results
data/external_lab_result_items.ndjson
Linked to the patient by: external_lab_result_items.matched_patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
provider_id | VARCHAR(32) | no | json | |
external_accession | VARCHAR(64) | no | json | |
external_requisition_number | VARCHAR(64) | yes | json | |
report_status | VARCHAR(32) | yes | json | |
reported_at | DATETIME | yes | json | |
patient_name | VARCHAR(255) | yes | json | |
patient_dob | DATE | yes | json | |
suggested_patient_id | UUID | yes | json | |
matched_patient_id | UUID | yes | json | |
matched_lab_order_id | UUID | yes | json | |
status | VARCHAR(32) | no | json | |
payload | JSONB | no | json | |
resolved_at | DATETIME | yes | json | |
resolved_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/lab_instrument_messages.ndjson — One patient block of an uploaded message: the item a person may need to file.
Linked to the patient by: lab_instrument_messages.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
upload_id | UUID | no | json | |
block_index | SMALLINT | no | json | |
status | VARCHAR(16) | no | json | |
reason_code | VARCHAR(40) | yes | json | |
reason_detail | JSONB | no | json | |
instrument | VARCHAR(64) | yes | json | |
connection | VARCHAR(64) | yes | json | |
source_workstation_label | VARCHAR(100) | yes | json | |
reported | JSONB | no | json | |
matched_field | VARCHAR(16) | yes | json | |
specimen_id | VARCHAR(64) | yes | json | |
collected_at | DATETIME | yes | json | |
received_at | DATETIME | no | json | |
patient_id | UUID | yes | json | |
encounter_id | UUID | yes | json | |
resolution | VARCHAR(16) | yes | json | |
resolved_at | DATETIME | yes | json | |
resolved_by_user_id | UUID | yes | json | |
dismissal_reason | VARCHAR(200) | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): suggested_patient_id
data/lab_instrument_tests.ndjson — One test of a patient block (one ASTM O record / one HL7 OBR group).
Linked to the patient by: lab_instrument_tests.message_id -> lab_instrument_messages.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
message_id | UUID | no | json | |
test_index | SMALLINT | no | json | |
status | VARCHAR(16) | no | json | |
reason_code | VARCHAR(40) | yes | json | |
reason_detail | JSONB | no | json | |
run_key | VARCHAR(64) | no | json | |
run_key_basis | VARCHAR(16) | no | json | |
assay_key | VARCHAR(48) | yes | json | |
name | VARCHAR(200) | no | json | |
known | BOOLEAN | no | json | |
detail | JSONB | no | json | |
is_correction | BOOLEAN | no | json | |
message_time | DATETIME | yes | json | |
collected_at | DATETIME | yes | json | |
collected_at_source | VARCHAR(16) | yes | json | |
reportable | BOOLEAN | no | json | |
laboratory_order_id | UUID | yes | json | |
charge_lines | JSONB | no | json | |
charge_ref | VARCHAR(64) | yes | json | |
charge_state | VARCHAR(16) | no | json | |
supersedes_id | UUID | yes | json | |
superseded_by_id | UUID | yes | json | |
resolved_at | DATETIME | yes | json | |
resolved_by_user_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): content_hash
data/lab_requisitions.ndjson
Linked to the patient by: lab_requisitions.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
provider_id | VARCHAR(32) | no | json | |
status | VARCHAR(32) | no | json | |
collection_mode | VARCHAR(16) | no | json | |
bill_method | VARCHAR(16) | yes | json | |
external_account_number | VARCHAR(32) | yes | json | |
external_requisition_number | VARCHAR(64) | yes | json | |
external_order_key | VARCHAR(128) | yes | json | |
external_patient_id | VARCHAR(64) | yes | json | |
idempotency_key | VARCHAR(128) | no | json | |
attempt_count | INTEGER | no | json | |
last_error_code | VARCHAR(64) | yes | json | |
last_error_message | VARCHAR(1000) | yes | json | |
submitted_at | DATETIME | yes | json | |
cancelled_at | DATETIME | yes | json | |
last_status_check_at | DATETIME | yes | json | |
requisition_document_id | UUID | yes | json | |
details | JSONB | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/laboratory_orders.ndjson
Linked to the patient by: laboratory_orders.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
organization_id | UUID | no | json | |
ordering_provider_id | UUID | yes | json | |
ordering_provider_name | VARCHAR(200) | yes | json | |
encounter_id | UUID | yes | json | |
draw_appointment_id | UUID | yes | json | |
lab_requisition_id | UUID | yes | json | |
test | VARCHAR(50) | yes | json | |
requisition_test_id | UUID | yes | json | |
requisition_template_revision | INTEGER | yes | json | |
order_channel | VARCHAR(16) | yes | json | |
loinc_code | VARCHAR(20) | yes | json | |
order_number | VARCHAR(50) | no | json | |
quest_requisition_number | VARCHAR(50) | yes | json | |
accession_number | VARCHAR(50) | yes | json | |
status | VARCHAR(18) | no | json | |
priority | VARCHAR(7) | no | json | |
cancellation_reason | VARCHAR(500) | yes | json | |
cancelled_by | UUID | yes | json | |
is_standing_order | BOOLEAN | yes | json | |
standing_order_frequency | VARCHAR(50) | yes | json | |
standing_order_duration | INTEGER | yes | json | |
standing_order_end_date | DATETIME | yes | json | |
specimen_type | VARCHAR(100) | yes | json | |
specimen_volume | FLOAT | yes | json | |
specimen_collection_site | VARCHAR(100) | yes | json | |
specimen_quality | VARCHAR(100) | yes | json | |
specimen_rejection_reason | VARCHAR(19) | yes | json | |
collection_date | DATETIME | yes | json | |
collection_method | VARCHAR(100) | yes | json | |
specimen_source | VARCHAR(100) | yes | json | |
fasting_status | BOOLEAN | yes | json | |
collection_location | VARCHAR(100) | yes | json | |
collection_location_type | VARCHAR(50) | yes | json | |
performing_lab | VARCHAR(200) | yes | json | |
performing_lab_address | VARCHAR(500) | yes | json | |
performing_lab_clia | VARCHAR(50) | yes | json | |
order_date | DATETIME | no | json | |
received_date | DATETIME | yes | json | |
reported_date | DATETIME | yes | json | |
results_delivery_method | VARCHAR(50) | yes | json | |
diagnosis_codes | JSON | yes | json | |
clinical_notes | VARCHAR(1000) | yes | json | |
is_stat | BOOLEAN | yes | json | |
results_summary | VARCHAR(1000) | yes | json | |
abnormal_flag | BOOLEAN | yes | json | |
critical_flag | BOOLEAN | yes | json | |
quest_order_id | VARCHAR(50) | yes | json | |
quest_status | VARCHAR(50) | yes | json | |
quest_message_id | VARCHAR(100) | yes | json | |
quest_last_update | DATETIME | yes | json | |
quest_report_oid | VARCHAR(50) | yes | json | |
external_lab_id | VARCHAR(100) | yes | json | |
quest_submission_mode | VARCHAR(20) | yes | json | |
quest_patient_oid_copy | VARCHAR(50) | yes | json | |
quest_error | VARCHAR(10000) | yes | json | |
quest_error_code | VARCHAR(50) | yes | json | |
insurance_preauthorization | VARCHAR(100) | yes | json | |
abn_status | VARCHAR(50) | yes | json | |
abn_signed_date | DATETIME | yes | json | |
billing_status | VARCHAR(50) | yes | json | |
billing_codes | JSON | yes | json | |
copy_to_providers | JSON | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/laboratory_results.ndjson
Linked to the patient by: laboratory_results.order_id -> laboratory_orders.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
order_id | UUID | no | json | |
test_name | VARCHAR(200) | no | json | |
test_code | VARCHAR(20) | yes | json | |
test_category | VARCHAR(100) | yes | json | |
raw_test_name | VARCHAR(200) | yes | json | |
raw_panel_name | VARCHAR(200) | yes | json | |
raw_panel_code | VARCHAR(80) | yes | json | |
canonical_loinc_code | VARCHAR(20) | yes | json | |
canonical_display_name | VARCHAR(200) | yes | json | |
value | TEXT | yes | json | |
unit | VARCHAR(50) | yes | json | |
reference_range | TEXT | yes | json | |
raw_unit | VARCHAR(50) | yes | json | |
raw_reference_range | TEXT | yes | json | |
raw_flag | VARCHAR(50) | yes | json | |
canonical_ucum_unit | VARCHAR(50) | yes | json | |
normalized_numeric_value | FLOAT | yes | json | |
interpretation | VARCHAR(500) | yes | json | |
result_flag | VARCHAR(13) | yes | json | |
normalization_status | VARCHAR(50) | yes | json | |
normalization_confidence | FLOAT | yes | json | |
normalization_method | VARCHAR(100) | yes | json | |
normalization_candidates | JSON | yes | json | |
source_page | INTEGER | yes | json | |
source_section | VARCHAR(255) | yes | json | |
raw_source_text | VARCHAR(1000) | yes | json | |
source_bbox | JSON | yes | json | |
status | VARCHAR(50) | no | json | |
performed_date | DATETIME | yes | json | |
critical_notification_date | DATETIME | yes | json | |
notified_provider_id | UUID | yes | json | |
notification_method | VARCHAR(50) | yes | json | |
notification_acknowledged_date | DATETIME | yes | json | |
correction_reason | VARCHAR(500) | yes | json | |
corrected_by | UUID | yes | json | |
method | VARCHAR(200) | yes | json | |
instrument | VARCHAR(200) | yes | json | |
lab_comments | TEXT | yes | json | |
provider_notes | VARCHAR(1000) | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/speedysticks_draw_appointments.ndjson
Linked to the patient by: speedysticks_draw_appointments.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
ordering_provider_id | UUID | yes | json | |
encounter_id | UUID | yes | json | |
speedysticks_patient_id | INTEGER | yes | json | |
speedysticks_appointment_id | INTEGER | yes | json | |
service_id | INTEGER | yes | json | |
billing_type | VARCHAR(40) | yes | json | |
status | VARCHAR(11) | no | json | |
scheduled_datetime | DATETIME | yes | json | |
appointment_timezone | VARCHAR(64) | yes | json | |
price | NUMERIC(10, 2) | yes | json | |
address | VARCHAR(255) | yes | json | |
city | VARCHAR(120) | yes | json | |
state | VARCHAR(2) | yes | json | |
zip | VARCHAR(10) | yes | json | |
serviceable | BOOLEAN | yes | json | |
notes | TEXT | yes | json | |
cancellation_reason_id | INTEGER | yes | json | |
cancellation_note | TEXT | yes | json | |
cancelled_at | DATETIME | yes | json | |
cancelled_by | UUID | yes | json | |
error | TEXT | yes | json | |
error_code | VARCHAR(50) | yes | json | |
raw_response | JSONB | yes | json | |
last_synced_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Medical, family and social history
data/patient_family_history.ndjson
Linked to the patient by: patient_family_history.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
organization_id | UUID | no | json | |
relationship | VARCHAR(20) | no | json | |
relationship_detail | VARCHAR(100) | yes | json | |
icd10_code | VARCHAR(8) | yes | json | |
condition_name | VARCHAR(200) | no | json | |
snomed_code | VARCHAR(18) | yes | json | |
snomed_display | VARCHAR(255) | yes | json | |
suggested_icd10_code | VARCHAR(8) | yes | json | |
suggested_icd10_confidence | NUMERIC(3, 2) | yes | json | |
catalog_entry_id | UUID | yes | json | |
age_of_onset | INTEGER | yes | json | |
is_deceased | BOOLEAN | yes | json | |
age_at_death | INTEGER | yes | json | |
notes | TEXT | yes | json | |
family_member_id | UUID | yes | json | |
origin_channel | VARCHAR(8) | no | json | |
reported_by | VARCHAR(14) | no | json | |
entered_by_user_id | UUID | yes | json | |
verified_by | UUID | yes | json | |
verified_at | DATETIME | yes | json | |
client_entry_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
row_version | INTEGER | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): suggestion_rejected_hash
data/patient_history_category_state.ndjson
Linked to the patient by: patient_history_category_state.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
organization_id | UUID | no | json | |
category | VARCHAR(8) | no | json | |
attestation_status | VARCHAR(15) | yes | json | |
attested_reported_by | VARCHAR(14) | yes | json | |
attested_at | DATETIME | yes | json | |
revision | INTEGER | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
row_version | INTEGER | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_history_events.ndjson
Linked to the patient by: patient_history_events.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
organization_id | UUID | no | json | |
kind | VARCHAR(15) | no | json | |
record_id | UUID | no | json | |
event_type | VARCHAR(12) | no | json | |
snapshot | JSONB | no | json | |
changed_fields | JSONB | yes | json | |
actor_type | VARCHAR(7) | no | json | |
actor_user_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_medical_history.ndjson — One past medical history condition (the Other History "Medical" tab).
Linked to the patient by: patient_medical_history.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
organization_id | UUID | no | json | |
condition_name | VARCHAR(200) | no | json | |
icd10_code | VARCHAR(8) | yes | json | |
snomed_code | VARCHAR(18) | yes | json | |
snomed_display | VARCHAR(255) | yes | json | |
onset_date | DATE | yes | json | |
onset_precision | VARCHAR(7) | no | json | |
status | VARCHAR(12) | yes | json | |
notes | TEXT | yes | json | |
origin_channel | VARCHAR(8) | no | json | |
reported_by | VARCHAR(14) | no | json | |
entered_by_user_id | UUID | yes | json | |
verified_by | UUID | yes | json | |
verified_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
row_version | INTEGER | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_medical_history_summary.ndjson — One row per patient: the Medical category's state and its notes paragraph.
Linked to the patient by: patient_medical_history_summary.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
organization_id | UUID | no | json | |
attestation_status | VARCHAR(15) | yes | json | |
attested_reported_by | VARCHAR(14) | yes | json | |
attested_by_user_id | UUID | yes | json | |
attested_at | DATETIME | yes | json | |
revision | INTEGER | no | json | |
notes | TEXT | yes | json | |
notes_version | INTEGER | no | json | |
notes_origin_channel | VARCHAR(8) | yes | json | |
notes_reported_by | VARCHAR(14) | yes | json | |
notes_entered_by_user_id | UUID | yes | json | |
notes_updated_at | DATETIME | yes | json | |
notes_verified_by | UUID | yes | json | |
notes_verified_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
row_version | INTEGER | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_substance_uses.ndjson
Linked to the patient by: patient_substance_uses.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
organization_id | UUID | no | json | |
substance | VARCHAR(21) | no | json | |
substance_other | VARCHAR(100) | yes | json | |
route | VARCHAR(10) | yes | json | |
frequency | VARCHAR(17) | yes | json | |
years_used | NUMERIC(4, 1) | yes | json | |
last_use_date | DATE | yes | json | |
in_recovery | BOOLEAN | yes | json | |
notes | TEXT | yes | json | |
origin_channel | VARCHAR(8) | no | json | |
reported_by | VARCHAR(14) | no | json | |
entered_by_user_id | UUID | yes | json | |
verified_by | UUID | yes | json | |
verified_at | DATETIME | yes | json | |
client_entry_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
row_version | INTEGER | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Medications given in the office
data/medication_administration_charge_contributions.ndjson — One billing group of an encounter's administration charge plan (plan §5.3).
Linked to the patient by: medication_administration_charge_contributions.encounter_id -> encounters.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
encounter_id | UUID | no | json | |
role | VARCHAR(8) | no | json | |
group_key | VARCHAR(200) | no | json | |
code | VARCHAR(10) | no | json | |
units | INTEGER | no | json | |
modifiers | JSONB | no | json | |
ndc11 | VARCHAR(11) | yes | json | |
ndc_quantity | NUMERIC(12, 3) | yes | json | |
ndc_unit | VARCHAR(2) | yes | json | |
service_date | DATE | no | json | |
line_uids | JSONB | no | json | |
shares | JSONB | no | json | |
plan_version | INTEGER | no | json | |
status | VARCHAR(8) | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/medication_administration_components.ndjson — An injection/dose physically given within an episode (site, route, volume).
Linked to the patient by: medication_administration_components.administration_id -> medication_administrations.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
administration_id | UUID | no | json | |
sequence | INTEGER | no | json | |
component_name | VARCHAR(200) | yes | json | |
amount | NUMERIC(12, 3) | yes | json | |
unit | VARCHAR(16) | yes | json | |
volume_ml | NUMERIC(12, 3) | yes | json | |
route | VARCHAR(16) | yes | json | |
site | VARCHAR(32) | yes | json | |
site_detail | VARCHAR(200) | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/medication_administration_observations.ndjson — A post-dose observation check (vitals, sedation/dissociation, notes).
Linked to the patient by: medication_administration_observations.administration_id -> medication_administrations.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
administration_id | UUID | no | json | |
observed_at | DATETIME | no | json | |
checkpoint_minutes | INTEGER | yes | json | |
vitals | JSONB | yes | json | |
sedation_scale | INTEGER | yes | json | |
dissociation_scale | INTEGER | yes | json | |
scale_name | VARCHAR(64) | yes | json | |
notes | TEXT | yes | json | |
recorded_by | UUID | no | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/medication_administration_revisions.ndjson — Immutable full snapshot of an episode after each change (plan §13).
Linked to the patient by: medication_administration_revisions.administration_id -> medication_administrations.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
administration_id | UUID | no | json | |
revision_number | INTEGER | no | json | |
snapshot | JSONB | no | json | |
change_kind | VARCHAR(16) | no | json | |
reason | VARCHAR(500) | yes | json | |
changed_by | UUID | no | json | |
changed_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/medication_administration_sources.ndjson — A lot/vial the dose was drawn from (plan §5.2).
Linked to the patient by: medication_administration_sources.administration_id -> medication_administrations.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
administration_id | UUID | no | json | |
lot_number | VARCHAR(64) | yes | json | |
expiration_date | DATE | yes | json | |
ndc11 | VARCHAR(11) | yes | json | |
inventory_lot_id | UUID | yes | json | |
open_container_id | UUID | yes | json | |
containers_used | NUMERIC(12, 3) | yes | json | |
drug_amount_drawn | NUMERIC(12, 3) | yes | json | |
drug_amount_unit | VARCHAR(16) | yes | json | |
volume_ml_drawn | NUMERIC(12, 3) | yes | json | |
ledger_txn_id | UUID | yes | json | |
is_active | BOOLEAN | no | json | |
raw_scan | TEXT | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/medication_administrations.ndjson — One administration episode (plan §5.2).
Linked to the patient by: medication_administrations.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
scheduled_visit_id | UUID | yes | json | |
location_id | UUID | yes | json | |
template_id | UUID | yes | json | |
regimen_id | UUID | yes | json | |
idempotency_key | UUID | no | json | |
revision_number | INTEGER | no | json | |
signed_revision_number | INTEGER | yes | json | |
action | VARCHAR(16) | no | json | |
status | VARCHAR(20) | no | json | |
not_given_reason | VARCHAR(32) | yes | json | |
not_given_reason_text | VARCHAR(500) | yes | json | |
drug_name | VARCHAR(200) | no | json | |
generic_name | VARCHAR(200) | yes | json | |
ndc11 | VARCHAR(11) | yes | json | |
ndc_product_id | VARCHAR | yes | json | |
rxcui | VARCHAR(20) | yes | json | |
dosage_form | VARCHAR(100) | yes | json | |
strength_text | VARCHAR(100) | yes | json | |
dea_schedule | VARCHAR(10) | yes | json | |
manufacturer | VARCHAR(200) | yes | json | |
dose_amount | NUMERIC(12, 3) | yes | json | |
dose_unit | VARCHAR(16) | yes | json | |
dose_volume_ml | NUMERIC(12, 3) | yes | json | |
route | VARCHAR(16) | yes | json | |
container_type | VARCHAR(24) | no | json | |
container_amount | NUMERIC(12, 3) | yes | json | |
container_amount_unit | VARCHAR(16) | yes | json | |
containers_used | NUMERIC(12, 3) | yes | json | |
waste_amount | NUMERIC(12, 3) | yes | json | |
waste_volume_ml | NUMERIC(12, 3) | yes | json | |
waste_reason | VARCHAR(200) | yes | json | |
waste_witness_user_id | UUID | yes | json | |
waste_witness_attested_at | DATETIME | yes | json | |
stock_source | VARCHAR(20) | no | json | |
administered_at | DATETIME | yes | json | |
administered_by_user_id | UUID | yes | json | |
ordering_provider_id | UUID | yes | json | |
supervising_provider_id | UUID | yes | json | |
late_entry | BOOLEAN | no | json | |
indication_icd10 | VARCHAR(10) | yes | json | |
patient_response | VARCHAR(20) | yes | json | |
reaction_text | TEXT | yes | json | |
observation_status | VARCHAR(16) | no | json | |
observation_required_until | DATETIME | yes | json | |
released_at | DATETIME | yes | json | |
released_by_user_id | UUID | yes | json | |
rems_attestations | JSONB | no | json | |
consent_obtained | BOOLEAN | yes | json | |
education_given | BOOLEAN | yes | json | |
notes | TEXT | yes | json | |
billing_disposition | VARCHAR(32) | no | json | |
billing_disposition_reason | VARCHAR(500) | yes | json | |
admin_units | INTEGER | yes | json | |
billing_override | JSONB | yes | json | |
billing_profile_snapshot | JSONB | yes | json | |
drug_cost | NUMERIC(10, 2) | yes | json | |
supply_cost | NUMERIC(10, 2) | yes | json | |
voided_at | DATETIME | yes | json | |
voided_by | UUID | yes | json | |
void_reason | VARCHAR(500) | yes | json | |
void_kind | VARCHAR(32) | yes | json | |
stock_outcome | VARCHAR(20) | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): request_hash
data/medication_regimens.ndjson — Recurring in-office dose tracking (plan §5.4).
Linked to the patient by: medication_regimens.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
template_id | UUID | yes | json | |
drug_name | VARCHAR(200) | no | json | |
dose_text | VARCHAR(200) | yes | json | |
route | VARCHAR(16) | yes | json | |
interval_value | INTEGER | no | json | |
interval_unit | VARCHAR(8) | no | json | |
due_window_before_days | INTEGER | no | json | |
due_window_after_days | INTEGER | no | json | |
next_due_date | DATE | yes | json | |
next_due_override_date | DATE | yes | json | |
override_reason | VARCHAR(500) | yes | json | |
last_administration_id | UUID | yes | json | |
status | VARCHAR(8) | no | json | |
stop_reason | VARCHAR(500) | yes | json | |
responsible_provider_id | UUID | yes | json | |
notes | TEXT | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Messages
data/chat_conversations.ndjson — A staff-to-staff chat conversation, org-scoped.
Linked to the patient by: chat_conversations.topic_patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
type | VARCHAR(6) | no | json | |
title | TEXT | yes | json | |
topic_patient_id | UUID | yes | json | |
encounter_id | UUID | yes | json | |
direct_key | VARCHAR(128) | yes | json | |
change_seq | BIGINT | no | json | |
created_by | UUID | no | json | |
last_message_at | DATETIME | yes | json | |
is_archived | BOOLEAN | no | json | |
is_deleted | BOOLEAN | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/chat_message_attachments.ndjson — One file shared in a Care Team Chat conversation (staged until sent).
Linked to the patient by: chat_message_attachments.filed_patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
conversation_id | UUID | no | json | |
message_id | UUID | yes | json | |
uploader_id | UUID | no | json | |
s3_key | VARCHAR(500) | no | json | |
file_name | VARCHAR(255) | no | json | |
content_type | VARCHAR(100) | no | json | |
file_size | INTEGER | no | json | |
position | SMALLINT | no | json | |
staged_expires_at | DATETIME | yes | json | |
retention_class | VARCHAR(20) | no | json | |
filed_media_id | UUID | yes | json | |
filed_patient_id | UUID | yes | json | |
filed_by | UUID | yes | json | |
filed_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/chat_messages.ndjson — A single append-only chat message.
Linked to the patient by: chat_messages.conversation_id -> chat_conversations.topic_patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
conversation_id | UUID | no | json | |
organization_id | UUID | no | json | |
sender_id | UUID | no | json | |
seq | BIGINT | no | json | |
client_msg_id | UUID | no | json | |
body | BYTEA | no | zlib_text | |
body_type | VARCHAR(10) | no | json | |
body_slate | BYTEA | yes | zlib_json | |
reply_to_message_id | UUID | yes | json | |
also_sent_to_conversation | BOOLEAN | no | json | |
notify_user_ids | ARRAY | yes | json | |
mentions | JSONB | yes | json | |
mentioned_user_ids | ARRAY | yes | json | |
is_urgent | BOOLEAN | no | json | |
created_at | DATETIME | no | json | |
retention_class | VARCHAR(20) | no | json | |
archive_pending_at | DATETIME | yes | json | |
archive_batch_id | UUID | yes | json | |
retention_expires_at | DATETIME | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/message_attachments.ndjson
Linked to the patient by: message_attachments.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
message_id | UUID | no | json | |
media_id | UUID | yes | json | |
patient_id | UUID | yes | json | |
filename | VARCHAR(255) | no | json | |
file_type | VARCHAR(100) | no | json | |
file_size | INTEGER | no | json | |
storage_path | VARCHAR(500) | no | attachment | |
width | INTEGER | yes | json | |
height | INTEGER | yes | json | |
thumbnail_path | VARCHAR(500) | yes | json | |
created_at | DATETIME | no | json | |
created_by | UUID | no | json | |
is_deleted | BOOLEAN | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/message_inline_uploads.ndjson
Linked to the patient by: message_inline_uploads.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
uploaded_by_user_id | UUID | no | json | |
patient_id | UUID | yes | json | |
storage_path | VARCHAR(500) | no | attachment | |
filename | VARCHAR(255) | no | json | |
content_type | VARCHAR(100) | no | json | |
file_size | INTEGER | no | json | |
width | INTEGER | yes | json | |
height | INTEGER | yes | json | |
status | VARCHAR(20) | no | json | |
claimed_message_id | UUID | yes | json | |
expires_at | DATETIME | no | json | |
created_at | DATETIME | no | json | |
claimed_at | DATETIME | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/messages.ndjson
Linked to the patient by: messages.encounter_id -> encounters.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
encounter_id | UUID | no | json | |
thread_id | UUID | no | json | |
sender_id | UUID | no | json | |
recipient_id | UUID | no | json | |
subject | VARCHAR(255) | no | json | |
body | BYTEA | no | zlib_text | |
body_type | VARCHAR(10) | no | json | |
body_slate | BYTEA | yes | zlib_json | |
urgency_level | VARCHAR(6) | no | json | |
parent_message_id | UUID | yes | json | |
status | VARCHAR(9) | yes | json | |
sender_deleted | BOOLEAN | yes | json | |
recipient_deleted | BOOLEAN | yes | json | |
sender_read_at | DATETIME | yes | json | |
recipient_read_at | DATETIME | yes | json | |
current_owner_id | UUID | yes | json | |
original_recipient_id | UUID | yes | json | |
current_owner_pool_id | UUID | yes | json | |
owner_assigned_at | DATETIME | yes | json | |
backup_user_id | UUID | yes | json | |
backup_pool_id | UUID | yes | json | |
escalated_at | DATETIME | yes | json | |
viewed_at | DATETIME | yes | json | |
viewed_by_user_id | UUID | yes | json | |
sent_on_behalf_of_user_id | UUID | yes | json | |
routing_source | VARCHAR(20) | yes | json | |
triage_category | VARCHAR(80) | yes | json | |
requires_follow_up | BOOLEAN | yes | json | |
follow_up_date | DATETIME | yes | json | |
follow_up_completed_at | DATETIME | yes | json | |
follow_up_completed_by | UUID | yes | json | |
followup_request_id | UUID | yes | json | |
trigger_email_alert | BOOLEAN | no | json | |
email_alert_sent_at | DATETIME | yes | json | |
email_alert_last_error | TEXT | yes | json | |
reply_delivery_channel | VARCHAR(10) | yes | json | |
membership_access_status | VARCHAR(64) | yes | json | |
membership_access_reason_code | VARCHAR(100) | yes | json | |
membership_requires_payment_update | BOOLEAN | yes | json | |
membership_access_recorded_at | DATETIME | yes | json | |
recalled_at | DATETIME | yes | json | |
recalled_by_user_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
sent_at | DATETIME | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Other patient records
data/care_plan_outcomes.ndjson — A health status evaluation / outcome recorded for the patient's care plan ((b)(9) Health Status Evaluations and Outcomes): recorded, changed and read back where a care plan file is made.
Linked to the patient by: care_plan_outcomes.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
outcome_text | VARCHAR(500) | no | json | |
observed_on | DATE | yes | json | |
sort_order | INTEGER | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/chart_history_ai_runs.ndjson — One Chart History Hero run per signed encounter version (idempotency key).
Linked to the patient by: chart_history_ai_runs.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | no | json | |
encounter_version | INTEGER | no | json | |
note_id | UUID | yes | json | |
status | VARCHAR(16) | no | json | |
skip_reason | VARCHAR(64) | yes | json | |
model_key | VARCHAR(100) | yes | json | |
action_counts | JSONB | yes | json | |
dropped_counts | JSONB | yes | json | |
error_class | VARCHAR(100) | yes | json | |
created_at | DATETIME | no | json | |
completed_at | DATETIME | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/delegated_order_alerts.ndjson — One alert (to-do) for one recipient about one send; never repeated.
Linked to the patient by: delegated_order_alerts.send_id -> delegated_order_sends.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
send_id | UUID | no | json | |
recipient_user_id | UUID | no | json | |
kind | VARCHAR(20) | no | json | |
todo_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/delegated_order_sends.ndjson — One order a staff member transmitted on a physician's order.
Linked to the patient by: delegated_order_sends.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
order_kind | VARCHAR(20) | no | json | |
order_id | UUID | no | json | |
batch_key | VARCHAR(160) | no | json | |
client_request_key | VARCHAR(200) | no | json | |
sent_by_user_id | UUID | no | json | |
authorization_id | UUID | no | json | |
sender_role | VARCHAR(8) | no | json | |
sender_license | VARCHAR(80) | yes | json | |
physician_id | UUID | no | json | |
source_type | VARCHAR(20) | no | json | |
order_given_at | DATETIME | yes | json | |
read_back_attested | BOOLEAN | no | json | |
protocol_id | UUID | yes | json | |
protocol_version | INTEGER | yes | json | |
criteria_confirmations | JSONB | yes | json | |
order_snapshot | JSONB | no | json | |
order_fingerprint | VARCHAR(64) | no | json | |
entered_by_line | VARCHAR(500) | no | json | |
sent_at | DATETIME | no | json | |
cosign_due_at | DATETIME | no | json | |
status | VARCHAR(20) | no | json | |
cosigned_at | DATETIME | yes | json | |
cosigned_by_physician_id | UUID | yes | json | |
cosigned_by_user_id | UUID | yes | json | |
rejected_at | DATETIME | yes | json | |
rejected_by_physician_id | UUID | yes | json | |
rejected_by_user_id | UUID | yes | json | |
reject_reason | VARCHAR(500) | yes | json | |
dispatch_status | VARCHAR(16) | no | json | |
dispatch_attempts | INTEGER | no | json | |
next_dispatch_at | DATETIME | yes | json | |
dispatched_at | DATETIME | yes | json | |
dispatch_error | VARCHAR(500) | yes | json | |
dispatch_reference | VARCHAR(100) | yes | json | |
cancel_status | VARCHAR(16) | no | json | |
cancel_detail | VARCHAR(500) | yes | json | |
cancel_task_id | UUID | yes | json | |
cancel_requested_at | DATETIME | yes | json | |
cancel_updated_at | DATETIME | yes | json | |
overdue_at | DATETIME | yes | json | |
version | INTEGER | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/direct_messages.ndjson — The transport record of one Direct message, sent or received.
Linked to the patient by: direct_messages.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
direction | VARCHAR(16) | no | json | |
message_id | VARCHAR(998) | no | json | |
in_reply_to | VARCHAR(998) | yes | json | |
from_address | VARCHAR(320) | no | json | |
to_addresses | JSONB | no | json | |
subject | VARCHAR(998) | yes | json | |
body_text | TEXT | yes | json | |
transport | VARCHAR(16) | no | json | |
status | VARCHAR(16) | no | json | |
status_detail | VARCHAR(64) | yes | json | |
initiated_by | VARCHAR(16) | no | json | |
actor_user_id | UUID | yes | json | |
patient_id | UUID | yes | json | |
attachment_count | INTEGER | no | json | |
request_delivery_notification | BOOLEAN | no | json | |
remote_uid | VARCHAR(64) | yes | json | |
sent_at | DATETIME | yes | json | |
processed_at | DATETIME | yes | json | |
delivered_at | DATETIME | yes | json | |
failed_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/education_assignments.ndjson
Linked to the patient by: education_assignments.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
assigned_by_user_id | UUID | no | json | |
assigned_at | DATETIME | no | json | |
material_snapshot | JSONB | no | json | |
attachment_id | UUID | yes | json | |
revoked_at | DATETIME | yes | json | |
revoked_by_user_id | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/epcs_otp_code_attempts.ndjson — One try at approving a signing session with an authenticator code + password.
Linked to the patient by: epcs_otp_code_attempts.session_id -> epcs_signing_sessions.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
physician_id | UUID | no | json | |
session_id | UUID | no | json | |
status | VARCHAR(16) | no | json | |
created_at | DATETIME | no | json | |
finished_at | DATETIME | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/epcs_otp_tokens.ndjson — An authenticator app or hardware OTP token a prescriber added for EPCS signing.
Linked to the patient by: epcs_otp_tokens.binding_session_id -> epcs_signing_sessions.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
physician_id | UUID | no | json | |
user_id | UUID | no | json | |
kind | VARCHAR(16) | no | json | |
label | VARCHAR(80) | no | json | |
serial_number | VARCHAR(64) | yes | json | |
algorithm | VARCHAR(8) | no | json | |
digits | INTEGER | no | json | |
period_seconds | INTEGER | no | json | |
status | VARCHAR(16) | no | json | |
pending_expires_at | DATETIME | yes | json | |
confirm_attempt_count | INTEGER | no | json | |
code_verified_at | DATETIME | yes | json | |
binding_session_id | UUID | yes | json | |
last_used_step | BIGINT | yes | json | |
activated_at | DATETIME | yes | json | |
last_used_at | DATETIME | yes | json | |
revoked_at | DATETIME | yes | json | |
revoked_by_user_id | UUID | yes | json | |
revoke_reason | VARCHAR(64) | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): secret_ciphertext, secret_fingerprint, secret_key_id, secret_source
data/erx_transaction_messages.ndjson
Linked to the patient by: erx_transaction_messages.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | yes | json | |
transaction | VARCHAR(40) | no | json | |
direction | VARCHAR(8) | no | json | |
message_id | VARCHAR(100) | yes | json | |
relates_to_message_id | VARCHAR(100) | yes | json | |
subject_type | VARCHAR(30) | yes | json | |
subject_id | UUID | yes | json | |
transport_mode | VARCHAR(16) | no | json | |
raw_xml | TEXT | yes | json | |
parsed | JSONB | yes | json | |
is_successful | BOOLEAN | yes | json | |
error_code | VARCHAR(40) | yes | json | |
error_message | TEXT | yes | json | |
created_at | DATETIME | no | json | |
sender_id | VARCHAR(35) | no | json | |
processing_state | VARCHAR(12) | no | json | |
applied_at | DATETIME | yes | json | |
processing_error | TEXT | yes | json | |
attempts | INTEGER | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/formulary_checks.ndjson
Linked to the patient by: formulary_checks.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
coverage_id | UUID | yes | json | |
eligibility_check_id | UUID | yes | json | |
prescriber_id | UUID | yes | json | |
requested_by_user_id | UUID | yes | json | |
cache_key | VARCHAR(64) | no | json | |
request_kind | VARCHAR(16) | no | json | |
parent_check_id | UUID | yes | json | |
ndcs | JSONB | no | json | |
status | VARCHAR(24) | no | json | |
result | JSONB | yes | json | |
message_id | VARCHAR(100) | yes | json | |
response_message_id | VARCHAR(100) | yes | json | |
transport_mode | VARCHAR(16) | no | json | |
error_code | VARCHAR(40) | yes | json | |
error_message | TEXT | yes | json | |
expires_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/fullscript_recommendations.ndjson
Linked to the patient by: fullscript_recommendations.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
treatment_plan_id | UUID | no | json | |
patient_id | UUID | yes | json | |
kind | VARCHAR(16) | no | json | |
fullscript_variant_id | VARCHAR(64) | yes | json | |
fullscript_product_id | VARCHAR(64) | yes | json | |
fullscript_lab_recommendation_id | VARCHAR(64) | yes | json | |
fullscript_lab_order_id | VARCHAR(64) | yes | json | |
product_name | VARCHAR(255) | yes | json | |
brand_name | VARCHAR(255) | yes | json | |
variant_label | VARCHAR(255) | yes | json | |
image_url | TEXT | yes | json | |
units_to_purchase | INTEGER | yes | json | |
refill | BOOLEAN | yes | json | |
take_with | VARCHAR(32) | yes | json | |
dosage | JSONB | yes | json | |
sig | TEXT | yes | json | |
lab_name | VARCHAR(255) | yes | json | |
lab_tests | JSONB | yes | json | |
requires_fasting | BOOLEAN | yes | json | |
instructions | TEXT | yes | json | |
lab_state | VARCHAR(32) | yes | json | |
medication_id | UUID | yes | json | |
laboratory_order_id | UUID | yes | json | |
fulfillment_status | VARCHAR(32) | no | json | |
ordered_at | DATETIME | yes | json | |
fullscript_order_id | VARCHAR(64) | yes | json | |
fullscript_order_number | VARCHAR(32) | yes | json | |
quantity_ordered | INTEGER | yes | json | |
payload | JSONB | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/fullscript_treatment_plans.ndjson
Linked to the patient by: fullscript_treatment_plans.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | yes | json | |
physician_id | UUID | yes | json | |
encounter_id | UUID | yes | json | |
created_by_connection_id | UUID | yes | json | |
fullscript_treatment_plan_id | VARCHAR(64) | no | json | |
fullscript_patient_id | VARCHAR(64) | yes | json | |
fullscript_practitioner_id | VARCHAR(64) | yes | json | |
fullscript_clinic_id | VARCHAR(64) | yes | json | |
state | VARCHAR(16) | no | json | |
source | VARCHAR(16) | yes | json | |
resolution_status | VARCHAR(16) | no | json | |
available_at | DATE | yes | json | |
activated_at | DATETIME | yes | json | |
cancelled_at | DATETIME | yes | json | |
invitation_url | TEXT | yes | json | |
checkout_url | TEXT | yes | json | |
practitioner_pay_url | TEXT | yes | json | |
lab_checkout_status | VARCHAR(32) | yes | json | |
patient_lab_fields_needed | JSONB | yes | json | |
personal_message | TEXT | yes | json | |
treatment_plan_text | TEXT | yes | json | |
payload | JSONB | yes | json | |
last_synced_at | DATETIME | yes | json | |
sync_error | TEXT | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/health_exchange_documents.ndjson — One health record file sent or received (C-CDA or another attachment).
Linked to the patient by: health_exchange_documents.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | yes | json | |
direct_message_id | UUID | yes | json | |
direction | VARCHAR(16) | no | json | |
source | VARCHAR(16) | no | json | |
document_type | VARCHAR(32) | no | json | |
cda_release | VARCHAR(8) | yes | json | |
file_name | VARCHAR(255) | yes | json | |
content_type | VARCHAR(128) | yes | json | |
size_bytes | INTEGER | no | json | |
s3_key | VARCHAR(1024) | yes | attachment | |
media_id | UUID | yes | json | |
import_job_id | UUID | yes | json | |
title | VARCHAR(512) | yes | json | |
document_time | DATETIME | yes | json | |
sender_summary | JSONB | no | json | |
patient_demographics | JSONB | no | json | |
match_status | VARCHAR(16) | no | json | |
match_candidates | JSONB | no | json | |
validation_status | VARCHAR(16) | no | json | |
validation_report | JSONB | no | json | |
error_count | INTEGER | no | json | |
warning_count | INTEGER | no | json | |
parsed_summary | JSONB | no | json | |
review_status | VARCHAR(16) | no | json | |
reviewed_by | UUID | yes | json | |
reviewed_at | DATETIME | yes | json | |
dismiss_reason | VARCHAR(255) | yes | json | |
created_by | UUID | yes | json | |
encounter_id | UUID | yes | json | |
referral_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): content_digest
data/health_exchange_events.ndjson — The exchange ledger: one row per summary of care sent, received, or reconciled.
Linked to the patient by: health_exchange_events.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
event_type | VARCHAR(32) | no | json | |
outcome | VARCHAR(16) | no | json | |
patient_id | UUID | yes | json | |
encounter_id | UUID | yes | json | |
referral_id | UUID | yes | json | |
physician_id | UUID | yes | json | |
actor_user_id | UUID | yes | json | |
transport | VARCHAR(16) | no | json | |
document_id | UUID | yes | json | |
direct_message_id | UUID | yes | json | |
document_type | VARCHAR(32) | yes | json | |
counterpart_address | VARCHAR(320) | yes | json | |
counterpart_name | VARCHAR(255) | yes | json | |
reconciled_lists | JSONB | no | json | |
occurred_at | DATETIME | no | json | |
completed_at | DATETIME | yes | json | |
details | JSONB | no | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): content_digest
data/hep_check_ins.ndjson — A patient's "done" / "couldn't do it" tap for one exercise on one organization-local date. ``event_id`` is the client's id (idempotent).
Linked to the patient by: hep_check_ins.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
program_id | UUID | no | json | |
version | INTEGER | no | json | |
item_key | VARCHAR(48) | no | json | |
local_date | DATE | no | json | |
status | VARCHAR(8) | no | json | |
sets_done | SMALLINT | yes | json | |
pain | SMALLINT | yes | json | |
effort | VARCHAR(8) | yes | json | |
skip_reason | VARCHAR(16) | yes | json | |
note | TEXT | yes | json | |
source | VARCHAR(8) | no | json | |
recorded_by_user_id | UUID | no | json | |
event_id | UUID | no | json | |
created_at | DATETIME | no | json | |
voided_at | DATETIME | yes | json | |
voided_by_user_id | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/hep_program_versions.ndjson — One immutable publication: items with dose, provenance and the exercise content snapshot the patient saw.
Linked to the patient by: hep_program_versions.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
program_id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
version | INTEGER | no | json | |
items | JSONB | no | json | |
effective_date | DATE | no | json | |
source | VARCHAR(16) | no | json | |
encounter_id | UUID | yes | json | |
note_id | UUID | yes | json | |
published_at | DATETIME | no | json | |
published_by_user_id | UUID | no | json | |
request_id | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/hep_programs.ndjson — At most one ACTIVE program per patient per organization; an ended program is never revived (a new program is a new row).
Linked to the patient by: hep_programs.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
status | VARCHAR(16) | no | json | |
current_version | INTEGER | no | json | |
start_date | DATE | no | json | |
created_at | DATETIME | no | json | |
created_by_user_id | UUID | no | json | |
last_published_at | DATETIME | no | json | |
last_published_by_user_id | UUID | no | json | |
ended_at | DATETIME | yes | json | |
ended_by_user_id | UUID | yes | json | |
end_date | DATE | yes | json | |
end_request_id | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/hep_publication_issues.ndjson — A signed `.pt` home program that sign-time publishing could not send (another version went live, the program ended, or the feature was off). Durable and shown to the therapist; never a silent success.
Linked to the patient by: hep_publication_issues.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | no | json | |
note_id | UUID | no | json | |
encounter_version | INTEGER | yes | json | |
reason | VARCHAR(24) | no | json | |
proposed_items | JSONB | no | json | |
created_at | DATETIME | no | json | |
resolved_at | DATETIME | yes | json | |
resolved_by_user_id | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): base_token
data/hep_reminder_preferences.ndjson — The patient's own daily reminder (opt-in) at an organization-local minute.
Linked to the patient by: hep_reminder_preferences.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
patient_id | UUID | no | json | |
organization_id | UUID | no | json | |
enabled | BOOLEAN | no | json | |
local_minutes | SMALLINT | no | json | |
channel | VARCHAR(8) | no | json | |
updated_at | DATETIME | no | json | |
updated_by_user_id | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/hep_reminder_sends.ndjson — Dedupe and send log: one row per patient per organization-local day, inserted BEFORE anything is queued (RPM-reminder style).
Linked to the patient by: hep_reminder_sends.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
local_date | DATE | no | json | |
status | VARCHAR(16) | no | json | |
channel | VARCHAR(8) | yes | json | |
detail | VARCHAR(255) | yes | json | |
outbox_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
sent_at | DATETIME | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/hero_mail_pieces.ndjson
Linked to the patient by: hero_mail_pieces.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
source_type | VARCHAR(40) | no | json | |
source_id | UUID | no | json | |
patient_id | UUID | yes | json | |
title | VARCHAR(200) | yes | json | |
status | VARCHAR(20) | no | json | |
recipient | JSONB | no | json | |
sender | JSONB | no | json | |
document_s3_key | VARCHAR(512) | yes | attachment | |
page_count | INTEGER | no | json | |
sheet_count | INTEGER | no | json | |
color | BOOLEAN | no | json | |
double_sided | BOOLEAN | no | json | |
mail_service | VARCHAR(30) | no | json | |
provider | VARCHAR(10) | yes | json | |
provider_ref | VARCHAR(100) | yes | json | |
tracking_number | VARCHAR(64) | yes | json | |
expected_delivery_date | DATE | yes | json | |
events | JSONB | no | json | |
cost_usd | NUMERIC(12, 4) | yes | json | |
markup | NUMERIC(8, 4) | yes | json | |
charge_usd | NUMERIC(12, 2) | yes | json | |
usage_recorded_at | DATETIME | yes | json | |
idempotency_key | VARCHAR(100) | yes | json | |
error_code | VARCHAR(50) | yes | json | |
error_message | TEXT | yes | json | |
created_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
sent_at | DATETIME | yes | json | |
delivered_at | DATETIME | yes | json | |
last_polled_at | DATETIME | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/homework_assignments.ndjson
Linked to the patient by: homework_assignments.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
assigned_by_user_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
practice_id | VARCHAR(80) | no | json | |
catalog_version | INTEGER | no | json | |
practice_snapshot | JSONB | no | json | |
instructions | TEXT | no | json | |
target_sessions | INTEGER | no | json | |
sessions_per_week | INTEGER | no | json | |
due_date | DATE | yes | json | |
status | VARCHAR(20) | no | json | |
request_id | UUID | no | json | |
assigned_at | DATETIME | no | json | |
reviewed_at | DATETIME | yes | json | |
reviewed_by_user_id | UUID | yes | json | |
clinician_check_in | TEXT | no | json | |
parameters | JSONB | yes | json | |
window_days | INTEGER | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/homework_check_ins.ndjson
Linked to the patient by: homework_check_ins.assignment_id -> homework_assignments.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
assignment_id | UUID | no | json | |
request_id | UUID | no | json | |
completed_at | DATETIME | no | json | |
seconds | INTEGER | no | json | |
feeling | INTEGER | yes | json | |
feedback | VARCHAR(20) | no | json | |
note | TEXT | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/inbox_auto_pend_extractions.ndjson
Linked to the patient by: inbox_auto_pend_extractions.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
message_id | UUID | no | json | |
thread_id | UUID | no | json | |
encounter_id | UUID | no | json | |
patient_id | UUID | no | json | |
sender_user_id | UUID | no | json | |
status | VARCHAR(20) | no | json | |
result | JSONB | yes | json | |
summary | JSONB | yes | json | |
error_code | VARCHAR(64) | yes | json | |
attempts | INTEGER | no | json | |
claimed_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
started_at | DATETIME | yes | json | |
extracted_at | DATETIME | yes | json | |
applied_at | DATETIME | yes | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): claim_token
data/inquiry_registration_links.ndjson — A new-patient registration link sent to an inquiry's sender, or why none was.
Linked to the patient by: inquiry_registration_links.preregistration_id -> preregistrations.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
inquiry_id | UUID | no | json | |
preregistration_id | UUID | yes | json | |
origin | VARCHAR(20) | no | json | |
channel | VARCHAR(10) | yes | json | |
recipient | VARCHAR(255) | yes | json | |
status | VARCHAR(20) | no | json | |
skip_reason | VARCHAR(40) | yes | json | |
error | VARCHAR(255) | yes | json | |
email_message_id | UUID | yes | json | |
sms_message_id | UUID | yes | json | |
sent_by_user_id | UUID | yes | json | |
sent_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/inquiry_sms_messages.ndjson — One text in an SMS inquiry conversation (a sender no chart could take).
Linked to the patient by: inquiry_sms_messages.sms_webhook_event_id -> sms_webhook_events.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
inquiry_id | UUID | no | json | |
organization_id | UUID | no | json | |
direction | VARCHAR(10) | no | json | |
body | TEXT | no | json | |
from_number_e164 | VARCHAR(20) | no | json | |
to_number_e164 | VARCHAR(20) | no | json | |
provider | VARCHAR(50) | yes | json | |
provider_message_id | VARCHAR(255) | yes | json | |
sms_webhook_event_id | UUID | yes | json | |
matched_patient_ids | JSONB | no | json | |
sent_by_user_id | UUID | yes | json | |
delivery_status | VARCHAR(20) | no | json | |
delivery_error | TEXT | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/intake_review_items.ndjson
Linked to the patient by: intake_review_items.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
scheduled_visit_id | UUID | yes | json | |
visit_link | VARCHAR(16) | no | json | |
item_type | VARCHAR(24) | no | json | |
questionnaire_response_id | UUID | yes | json | |
questionnaire_assignment_id | UUID | yes | json | |
paperwork_assignment_id | UUID | yes | json | |
status | VARCHAR(20) | no | json | |
review_required | BOOLEAN | no | json | |
review_reason | VARCHAR(24) | yes | json | |
has_safety_flag | BOOLEAN | no | json | |
is_elevated | BOOLEAN | no | json | |
decided_at | DATETIME | no | json | |
reviewed_by_user_id | UUID | yes | json | |
reviewed_at | DATETIME | yes | json | |
flag_note | TEXT | yes | json | |
flagged_by_user_id | UUID | yes | json | |
flagged_at | DATETIME | yes | json | |
flag_recipient_user_id | UUID | yes | json | |
flag_todo_id | UUID | yes | json | |
flag_acknowledged_by_user_id | UUID | yes | json | |
flag_acknowledged_at | DATETIME | yes | json | |
sent_back_by_user_id | UUID | yes | json | |
sent_back_at | DATETIME | yes | json | |
sent_back_message | TEXT | yes | json | |
replacement_questionnaire_assignment_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/medication_history_entries.ndjson
Linked to the patient by: medication_history_entries.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
request_id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
source_kind | VARCHAR(24) | no | json | |
drug_description | VARCHAR(255) | no | json | |
rxcui | VARCHAR(16) | yes | json | |
ndc | VARCHAR(20) | yes | json | |
simplified_medication_id | INTEGER | yes | json | |
quantity_value | VARCHAR(20) | yes | json | |
quantity_unit_code | VARCHAR(20) | yes | json | |
days_supply | INTEGER | yes | json | |
written_date | DATE | yes | json | |
last_fill_date | DATE | yes | json | |
sig_text | TEXT | yes | json | |
refills | VARCHAR(10) | yes | json | |
diagnoses | JSONB | yes | json | |
pharmacy_name | VARCHAR(255) | yes | json | |
pharmacy_ncpdp | VARCHAR(20) | yes | json | |
pharmacy_phone | VARCHAR(30) | yes | json | |
prescriber_name | VARCHAR(255) | yes | json | |
prescriber_npi | VARCHAR(20) | yes | json | |
added_medication_id | UUID | yes | json | |
added_at | DATETIME | yes | json | |
added_by_user_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
record_source | VARCHAR(16) | yes | json | |
source_description | VARCHAR(255) | yes | json | |
payment_type | VARCHAR(40) | yes | json | |
rx_number | VARCHAR(50) | yes | json | |
fill_number | VARCHAR(10) | yes | json | |
refills_remaining | VARCHAR(10) | yes | json | |
sold_date | DATE | yes | json | |
pa_number | VARCHAR(50) | yes | json | |
pa_status | VARCHAR(10) | yes | json | |
dea_schedule | VARCHAR(10) | yes | json | |
note | TEXT | yes | json | |
raw | JSONB | yes | json | |
group_key | VARCHAR(100) | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/medication_history_requests.ndjson
Linked to the patient by: medication_history_requests.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
requested_by_user_id | UUID | no | json | |
prescriber_id | UUID | no | json | |
status | VARCHAR(20) | no | json | |
consent_attested | BOOLEAN | no | json | |
period_start | DATE | no | json | |
period_end | DATE | no | json | |
message_id | VARCHAR(100) | yes | json | |
transport_mode | VARCHAR(16) | no | json | |
denial_reason | TEXT | yes | json | |
error_message | TEXT | yes | json | |
entry_count | INTEGER | no | json | |
created_at | DATETIME | no | json | |
completed_at | DATETIME | yes | json | |
eligibility_check_id | UUID | yes | json | |
coverage_id | UUID | yes | json | |
consent_code | VARCHAR(1) | yes | json | |
central_day | DATE | yes | json | |
trigger | VARCHAR(40) | yes | json | |
interaction | JSONB | yes | json | |
encounter_id | UUID | yes | json | |
scheduled_visit_id | UUID | yes | json | |
prescription_id | UUID | yes | json | |
continuation_of_id | UUID | yes | json | |
outcome_reason_code | VARCHAR(10) | yes | json | |
outcome_note | TEXT | yes | json | |
attempt | INTEGER | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/meditation_sessions.ndjson
Linked to the patient by: meditation_sessions.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
started_at | DATETIME | no | json | |
next_turn_at | DATETIME | no | json | |
turn_count | INTEGER | no | json | |
status | VARCHAR(20) | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/nutrition_care_targets.ndjson
Linked to the patient by: nutrition_care_targets.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
set_by_user_id | UUID | no | json | |
preset | VARCHAR(40) | no | json | |
targets | JSONB | no | json | |
numbers_mode_floor | VARCHAR(16) | yes | json | |
note_to_patient | VARCHAR(1000) | no | json | |
resolved_weight_kg | NUMERIC(6, 2) | yes | json | |
weight_vital_id | UUID | yes | json | |
active | BOOLEAN | no | json | |
created_at | DATETIME | no | json | |
superseded_at | DATETIME | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/nutrition_consents.ndjson
Linked to the patient by: nutrition_consents.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
scope | VARCHAR(32) | no | json | |
assignment_id | UUID | yes | json | |
granted | BOOLEAN | no | json | |
actor_user_id | UUID | no | json | |
actor_relationship | VARCHAR(16) | no | json | |
consent_version | INTEGER | no | json | |
revision | BIGINT | no | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/nutrition_custom_foods.ndjson
Linked to the patient by: nutrition_custom_foods.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
created_by_user_id | UUID | no | json | |
name | VARCHAR(200) | no | json | |
brand | VARCHAR(200) | yes | json | |
basis | VARCHAR(2) | no | json | |
nutrients | JSONB | no | json | |
portions | JSONB | no | json | |
serving_label | VARCHAR(120) | yes | json | |
serving_amount | NUMERIC(10, 2) | yes | json | |
gtin | VARCHAR(14) | yes | json | |
origin | VARCHAR(16) | no | json | |
revision | BIGINT | no | json | |
deleted_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/nutrition_day_marks.ndjson
Linked to the patient by: nutrition_day_marks.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
local_date | DATE | no | json | |
complete | BOOLEAN | no | json | |
revision | BIGINT | no | json | |
updated_by_user_id | UUID | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/nutrition_entry_mutations.ndjson — Remembered mutation results so a replayed ``mutation_id`` returns the original answer. Pruned after 7 days.
Linked to the patient by: nutrition_entry_mutations.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
mutation_id | UUID | no | json | |
entry_id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
result | JSONB | no | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/nutrition_log_entries.ndjson
Linked to the patient by: nutrition_log_entries.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
created_by_user_id | UUID | no | json | |
updated_by_user_id | UUID | no | json | |
local_date | DATE | no | json | |
tz | VARCHAR(64) | no | json | |
logged_at | DATETIME | no | json | |
meal | VARCHAR(16) | no | json | |
kind | VARCHAR(16) | no | json | |
food_id | UUID | yes | json | |
custom_food_id | UUID | yes | json | |
food_snapshot | JSONB | no | json | |
amount | NUMERIC(12, 3) | yes | json | |
unit | VARCHAR(2) | yes | json | |
portion_label | VARCHAR(120) | yes | json | |
quantity | NUMERIC(10, 3) | yes | json | |
nutrients | JSONB | no | json | |
estimated | BOOLEAN | no | json | |
confidence | NUMERIC(4, 3) | yes | json | |
method | VARCHAR(16) | no | json | |
note | VARCHAR(500) | no | json | |
context | JSONB | yes | json | |
revision | BIGINT | no | json | |
deleted_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/nutrition_profiles.ndjson
Linked to the patient by: nutrition_profiles.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
numbers_mode | VARCHAR(16) | no | json | |
goals | JSONB | no | json | |
body | JSONB | no | json | |
units | VARCHAR(8) | no | json | |
sharing | BOOLEAN | no | json | |
sharing_changed_at | DATETIME | yes | json | |
sharing_consent_version | INTEGER | yes | json | |
revision | BIGINT | no | json | |
last_revision | BIGINT | no | json | |
tombstones_purged_through | BIGINT | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/nutrition_saved_meals.ndjson
Linked to the patient by: nutrition_saved_meals.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
created_by_user_id | UUID | no | json | |
name | VARCHAR(120) | no | json | |
items | JSONB | no | json | |
use_count | INTEGER | no | json | |
last_used_at | DATETIME | yes | json | |
revision | BIGINT | no | json | |
deleted_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/order_diagnosis_association_events.ndjson — One signed visit's (diagnosis, order) pair, counted once in the aggregate.
Linked to the patient by: order_diagnosis_association_events.encounter_id -> encounters.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
encounter_id | UUID | no | json | |
diagnosis_code | VARCHAR(16) | no | json | |
order_key | VARCHAR(255) | no | json | |
order_type | VARCHAR(16) | no | json | |
recorded_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/order_set_visit_items.ndjson — A form, handout or outside order form an order set placed on a visit.
Linked to the patient by: order_set_visit_items.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | no | json | |
order_set_id | UUID | yes | json | |
order_set_name | VARCHAR(160) | yes | json | |
source_item_id | UUID | yes | json | |
item_type | VARCHAR(20) | no | json | |
display_name | VARCHAR(255) | no | json | |
payload | JSONB | no | json | |
diagnoses | JSONB | no | json | |
dedup_key | VARCHAR(200) | no | json | |
status | VARCHAR(16) | no | json | |
result_id | UUID | yes | json | |
sent_at | DATETIME | yes | json | |
sent_by | UUID | yes | json | |
failure_reason | TEXT | yes | json | |
attempts | INTEGER | no | json | |
cancelled_at | DATETIME | yes | json | |
cancelled_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/order_signature_requests.ndjson
Linked to the patient by: order_signature_requests.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
order_kind | VARCHAR(20) | no | json | |
order_id | UUID | no | json | |
requested_by_user_id | UUID | no | json | |
signer_physician_id | UUID | no | json | |
status | VARCHAR(20) | no | json | |
signer_changes | JSONB | yes | json | |
decision_reason_text | TEXT | yes | json | |
decided_by_user_id | UUID | yes | json | |
decided_at | DATETIME | yes | json | |
signed_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/outside_order_requisitions.ndjson
Linked to the patient by: outside_order_requisitions.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
order_kind | VARCHAR(16) | no | json | |
facility_id | UUID | yes | json | |
facility | JSONB | no | json | |
ordering_provider_id | UUID | no | json | |
tracking_number | VARCHAR(32) | no | json | |
priority | VARCHAR(16) | no | json | |
order_ids | JSONB | no | json | |
status | VARCHAR(16) | no | json | |
signed_at | DATETIME | yes | json | |
signed_by_user_id | UUID | yes | json | |
document_id | UUID | yes | json | |
idempotency_key | VARCHAR(128) | yes | json | |
details | JSONB | no | json | |
shared_with_patient_at | DATETIME | yes | json | |
shared_with_patient_by_user_id | UUID | yes | json | |
cancelled_at | DATETIME | yes | json | |
cancelled_by | UUID | yes | json | |
cancellation_reason | VARCHAR(500) | yes | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): request_hash
data/parsed_records.ndjson — Individual record parsed from an external document.
Linked to the patient by: parsed_records.import_job_id -> external_record_import_jobs.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
import_job_id | UUID | no | json | |
record_type | VARCHAR(13) | no | json | |
sequence_number | INTEGER | no | json | |
parsed_data | JSON | no | json | |
normalized_data | JSON | yes | json | |
source_page | INTEGER | yes | json | |
source_section | VARCHAR(255) | yes | json | |
source_text | TEXT | yes | json | |
confidence | FLOAT | yes | json | |
status | VARCHAR(9) | no | json | |
is_duplicate | BOOLEAN | no | json | |
duplicate_of_id | UUID | yes | json | |
duplicate_of_type | VARCHAR(50) | yes | json | |
committed_record_id | UUID | yes | json | |
committed_record_type | VARCHAR(50) | yes | json | |
committed_at | DATETIME | yes | json | |
review_notes | TEXT | yes | json | |
modified_data | JSON | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_history_ai_changes.ndjson — The review ledger: one row per AI-changed history record while it awaits review.
Linked to the patient by: patient_history_ai_changes.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
section | VARCHAR(16) | no | json | |
item_kind | VARCHAR(32) | no | json | |
record_id | UUID | yes | json | |
change_type | VARCHAR(16) | no | json | |
previous_state | JSONB | yes | json | |
changed_fields | JSONB | no | json | |
new_state | JSONB | no | json | |
evidence | JSONB | no | json | |
psych_base_revision | INTEGER | yes | json | |
psych_ai_revision | INTEGER | yes | json | |
status_before | VARCHAR(32) | yes | json | |
attestation_before | JSONB | yes | json | |
review_status | VARCHAR(16) | no | json | |
source_encounter_id | UUID | yes | json | |
source_encounter_version | INTEGER | yes | json | |
source_note_id | UUID | yes | json | |
source_visit_date | DATE | yes | json | |
run_id | UUID | yes | json | |
changed_at | DATETIME | no | json | |
reviewed_by | UUID | yes | json | |
reviewed_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_pharmacy_recommendations.ndjson
Linked to the patient by: patient_pharmacy_recommendations.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
pharmacy_id | VARCHAR(50) | no | json | |
rank | INTEGER | no | json | |
distance_miles | FLOAT | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_preferences.ndjson
Linked to the patient by: patient_preferences.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
preference_type | VARCHAR(100) | no | json | |
preference_value | JSONB | no | json | |
description | TEXT | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_result_releases.ndjson
Linked to the patient by: patient_result_releases.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
source_type | VARCHAR(40) | no | json | |
source_id | UUID | no | json | |
held_at | DATETIME | no | json | |
auto_release_at | DATETIME | yes | json | |
kept_held_reason | VARCHAR(40) | yes | json | |
kept_held_note | VARCHAR(500) | yes | json | |
kept_held_by_user_id | UUID | yes | json | |
kept_held_at | DATETIME | yes | json | |
released_at | DATETIME | yes | json | |
released_by_user_id | UUID | yes | json | |
release_method | VARCHAR(20) | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/persistent_dot_phrase_values.ndjson
Linked to the patient by: persistent_dot_phrase_values.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
definition_id | UUID | no | json | |
value_text | TEXT | no | json | |
value_content | JSONB | yes | json | |
version | INTEGER | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/pharmacy_coverages.ndjson
Linked to the patient by: pharmacy_coverages.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
check_id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
rank | INTEGER | no | json | |
coverage_level | VARCHAR(3) | yes | json | |
status | VARCHAR(4) | yes | json | |
pbm_name | VARCHAR(80) | yes | json | |
pbm_participant_id | VARCHAR(80) | yes | json | |
plan_name | VARCHAR(100) | yes | json | |
insurance_type_code | VARCHAR(3) | yes | json | |
plan_id | VARCHAR(80) | yes | json | |
group_id | VARCHAR(80) | yes | json | |
group_name | VARCHAR(80) | yes | json | |
iin | VARCHAR(80) | yes | json | |
pcn | VARCHAR(80) | yes | json | |
pbm_member_id | VARCHAR(80) | yes | json | |
cardholder_id | VARCHAR(80) | yes | json | |
person_code | VARCHAR(10) | yes | json | |
relationship_code | VARCHAR(4) | yes | json | |
formulary_status_id | VARCHAR(80) | yes | json | |
coverage_list_id | VARCHAR(80) | yes | json | |
copay_list_id | VARCHAR(80) | yes | json | |
alternatives_list_id | VARCHAR(80) | yes | json | |
v60_file_ids | JSONB | yes | json | |
benefit_types | JSONB | yes | json | |
contracted_providers | JSONB | yes | json | |
coverage_start | DATE | yes | json | |
coverage_end | DATE | yes | json | |
oop_amount | VARCHAR(20) | yes | json | |
returned_demographics | JSONB | yes | json | |
demographics_changed | BOOLEAN | no | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/pharmacy_eligibility_checks.ndjson
Linked to the patient by: pharmacy_eligibility_checks.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
prescriber_id | UUID | no | json | |
requested_by_user_id | UUID | yes | json | |
trigger | VARCHAR(40) | no | json | |
interaction | JSONB | yes | json | |
encounter_id | UUID | yes | json | |
scheduled_visit_id | UUID | yes | json | |
prescription_id | UUID | yes | json | |
prior_authorization_id | UUID | yes | json | |
service_date | DATE | yes | json | |
central_day | DATE | yes | json | |
request_isa13 | VARCHAR(9) | yes | json | |
request_bht03 | VARCHAR(50) | yes | json | |
sent_at | DATETIME | yes | json | |
response_isa13 | VARCHAR(20) | yes | json | |
received_at | DATETIME | yes | json | |
reuse_until | DATETIME | yes | json | |
status | VARCHAR(24) | no | json | |
response_kind | VARCHAR(8) | yes | json | |
rejections | JSONB | yes | json | |
hint | TEXT | yes | json | |
any_demographics_changed | BOOLEAN | no | json | |
selected_coverage_id | UUID | yes | json | |
selected_by_user_id | UUID | yes | json | |
selected_at | DATETIME | yes | json | |
transport_mode | VARCHAR(16) | no | json | |
error_code | VARCHAR(40) | yes | json | |
error_message | TEXT | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): request_demographics_hash
data/pharmacy_history_consents.ndjson
Linked to the patient by: pharmacy_history_consents.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
consent_code | VARCHAR(1) | no | json | |
recorded_by_user_id | UUID | no | json | |
recorded_at | DATETIME | no | json | |
withdrawn_at | DATETIME | yes | json | |
withdrawn_by_user_id | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/physician_patient_notes.ndjson
Linked to the patient by: physician_patient_notes.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
physician_id | UUID | yes | json | |
author_user_id | UUID | yes | json | |
patient_id | UUID | no | json | |
organization_id | UUID | no | json | |
content | TEXT | yes | json | |
visibility | VARCHAR(20) | no | json | |
position_x | INTEGER | yes | json | |
position_y | INTEGER | yes | json | |
shared_at | DATETIME | yes | json | |
shared_by_user_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/prescription_benefit_checks.ndjson
Linked to the patient by: prescription_benefit_checks.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
requested_by_user_id | UUID | no | json | |
cache_key | VARCHAR(64) | no | json | |
request | JSONB | no | json | |
status | VARCHAR(20) | no | json | |
result | JSONB | yes | json | |
message_id | VARCHAR(100) | yes | json | |
transport_mode | VARCHAR(16) | no | json | |
created_at | DATETIME | no | json | |
eligibility_check_id | UUID | yes | json | |
coverage_id | UUID | yes | json | |
response_message_id | VARCHAR(100) | yes | json | |
business_error | JSONB | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/problem_list_encounters.ndjson
Linked to the patient by: problem_list_encounters.encounter_id -> encounters.patient_id -> patients.id; problem_list_encounters.problem_id -> problem_list.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
problem_id | UUID | no | json | |
encounter_id | UUID | no | json | |
created_at | DATETIME | no | json | |
created_by | UUID | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/refill_center_items.ndjson
Linked to the patient by: refill_center_items.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
medication_id | UUID | yes | json | |
source_prescription_id | UUID | yes | json | |
kind | VARCHAR(16) | no | json | |
status | VARCHAR(16) | no | json | |
status_changed_at | DATETIME | no | json | |
proposal | JSONB | yes | json | |
assigned_prescriber_id | UUID | yes | json | |
created_by_user_id | UUID | no | json | |
created_role | VARCHAR(32) | yes | json | |
pend_note | VARCHAR(1000) | yes | json | |
decline_reason | VARCHAR(1000) | yes | json | |
decided_by_user_id | UUID | yes | json | |
pender_acknowledged_at | DATETIME | yes | json | |
prescription_id | UUID | yes | json | |
encounter_id | UUID | yes | json | |
note_id | UUID | yes | json | |
staged_message | JSONB | yes | json | |
epcs_batch_id | UUID | yes | json | |
epcs_session_id | UUID | yes | json | |
finalize_stage | VARCHAR(24) | yes | json | |
finalize_error | TEXT | yes | json | |
snooze_until | DATE | yes | json | |
snooze_reason | VARCHAR(32) | yes | json | |
not_refilling_reason | VARCHAR(32) | yes | json | |
signoff_due_at | DATETIME | yes | json | |
signoff_overdue_at | DATETIME | yes | json | |
signed_off_at | DATETIME | yes | json | |
signed_off_by_physician_id | UUID | yes | json | |
protocol_checklist | JSONB | yes | json | |
protocol_authorization_id | UUID | yes | json | |
patient_refill_request_id | UUID | yes | json | |
previous_cancel_state | VARCHAR(16) | yes | json | |
previous_cancel | JSONB | yes | json | |
client_request_id | VARCHAR(128) | yes | json | |
version | INTEGER | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/refill_center_patient_notes.ndjson
Linked to the patient by: refill_center_patient_notes.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
author_user_id | UUID | no | json | |
body | TEXT | no | json | |
client_request_id | VARCHAR(128) | yes | json | |
created_at | DATETIME | no | json | |
deleted_at | DATETIME | yes | json | |
deleted_by_user_id | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/refill_center_safety_checks.ndjson
Linked to the patient by: refill_center_safety_checks.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
requested_by_user_id | UUID | no | json | |
mode | VARCHAR(16) | no | json | |
medication_ids | JSONB | no | json | |
input_fingerprints | JSONB | no | json | |
context_fingerprint | VARCHAR(64) | no | json | |
safety_config_key | VARCHAR(128) | no | json | |
ai_status | VARCHAR(16) | no | json | |
results | JSONB | no | json | |
created_at | DATETIME | no | json | |
expires_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/reputation_review_click_throughs.ndjson — One row per survey response per review link the patient opened (Practice Health's "sent to a review site"). ``record_review_click`` upserts it next to the raw ``review_clicks`` list, so double taps and retries bump ``click_count`` instead of counting the patient twice.
Linked to the patient by: reputation_review_click_throughs.invite_id -> reputation_survey_invites.patient_id -> patients.id; reputation_review_click_throughs.response_id -> reputation_survey_responses.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
response_id | UUID | no | json | |
invite_id | UUID | no | json | |
physician_id | UUID | yes | json | |
target_key | VARCHAR(80) | no | json | |
target_label | VARCHAR(200) | yes | json | |
target_url | VARCHAR(2048) | yes | json | |
site_key | VARCHAR(32) | no | json | |
target_scope | VARCHAR(16) | no | json | |
first_clicked_at | DATETIME | no | json | |
last_clicked_at | DATETIME | no | json | |
click_count | INTEGER | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/result_forwards.ndjson
Linked to the patient by: result_forwards.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
source_type | VARCHAR(40) | no | json | |
source_id | UUID | no | json | |
result_inbox_entry_id | UUID | yes | json | |
forwarded_by_user_id | UUID | no | json | |
recipient_user_id | UUID | no | json | |
note | VARCHAR(2000) | yes | json | |
in_reply_to_id | UUID | yes | json | |
todo_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/result_nurse_reviews.ndjson
Linked to the patient by: result_nurse_reviews.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
source_type | VARCHAR(40) | no | json | |
source_id | UUID | no | json | |
reviewed_by_user_id | UUID | no | json | |
reviewed_at | DATETIME | no | json | |
note | VARCHAR(1000) | yes | json | |
result_completed_at | DATETIME | yes | json | |
result_version | VARCHAR(300) | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/scheduled_messages.ndjson — A user-authored message queued for delivery at a future instant.
Linked to the patient by: scheduled_messages.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
created_by_user_id | UUID | no | json | |
kind | VARCHAR | no | json | |
patient_id | UUID | yes | json | |
conversation_id | UUID | yes | json | |
payload | JSONB | yes | json | |
subject_preview | TEXT | yes | json | |
body_preview | TEXT | yes | json | |
send_at | DATETIME | no | json | |
status | VARCHAR | no | json | |
claimed_at | DATETIME | yes | json | |
failure_kind | VARCHAR | yes | json | |
attempts | INTEGER | no | json | |
last_error | TEXT | yes | json | |
sent_message_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/scheduled_orders.ndjson — Release queue: one row per pending future release of one order item.
Linked to the patient by: scheduled_orders.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
provider_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
order_set_id | UUID | yes | json | |
order_set_item_id | UUID | yes | json | |
order_set_name | VARCHAR(160) | yes | json | |
pregnancy_episode_id | UUID | yes | json | |
ga_week_min | INTEGER | yes | json | |
ga_week_max | INTEGER | yes | json | |
ga_milestone_key | VARCHAR(60) | yes | json | |
item_type | VARCHAR(20) | no | json | |
display_name | VARCHAR(255) | no | json | |
payload | JSONB | no | json | |
diagnoses | JSONB | no | json | |
scheduled_date | DATE | no | json | |
status | VARCHAR(20) | no | json | |
released_at | DATETIME | yes | json | |
released_order_type | VARCHAR(20) | yes | json | |
released_order_id | UUID | yes | json | |
failure_reason | TEXT | yes | json | |
cancelled_at | DATETIME | yes | json | |
cancelled_by | UUID | yes | json | |
is_standing | BOOLEAN | no | json | |
interval_value | INTEGER | yes | json | |
interval_unit | VARCHAR(10) | yes | json | |
occurrences_remaining | INTEGER | yes | json | |
series_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/staff_message_attachments.ndjson
Linked to the patient by: staff_message_attachments.thread_id -> staff_message_threads.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
uploader_id | UUID | no | json | |
thread_id | UUID | yes | json | |
entry_id | UUID | yes | json | |
s3_key | VARCHAR(512) | no | attachment | |
file_name | VARCHAR(255) | no | json | |
content_type | VARCHAR(100) | no | json | |
file_size | INTEGER | no | json | |
position | INTEGER | no | json | |
staged_expires_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/staff_message_entries.ndjson
Linked to the patient by: staff_message_entries.thread_id -> staff_message_threads.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
thread_id | UUID | no | json | |
organization_id | UUID | no | json | |
seq | INTEGER | no | json | |
kind | VARCHAR(10) | no | json | |
sender_id | UUID | yes | json | |
body | TEXT | yes | json | |
event_type | VARCHAR(32) | yes | json | |
event_data | JSONB | yes | json | |
ai_drafted | BOOLEAN | no | json | |
ai_modified | BOOLEAN | no | json | |
client_msg_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/staff_message_threads.ndjson
Linked to the patient by: staff_message_threads.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
subject | VARCHAR(200) | no | json | |
priority | VARCHAR(10) | no | json | |
patient_id | UUID | yes | json | |
encounter_id | UUID | yes | json | |
source_type | VARCHAR(32) | yes | json | |
source_id | UUID | yes | json | |
created_by | UUID | no | json | |
client_msg_id | UUID | no | json | |
last_seq | INTEGER | no | json | |
last_message_at | DATETIME | no | json | |
message_count | INTEGER | no | json | |
sole_author_id | UUID | yes | json | |
last_sender_id | UUID | yes | json | |
snippet | VARCHAR(160) | yes | json | |
has_attachments | BOOLEAN | no | json | |
chat_conversation_id | UUID | yes | json | |
chat_message_id | UUID | yes | json | |
chat_escalated_at | DATETIME | yes | json | |
chat_escalated_by | UUID | yes | json | |
chat_escalation_claimed_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/staff_notifications.ndjson
Linked to the patient by: staff_notifications.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
recipient_user_id | UUID | no | json | |
event_key | VARCHAR(64) | no | json | |
event_id | VARCHAR(200) | no | json | |
patient_id | UUID | yes | json | |
subject_type | VARCHAR(40) | yes | json | |
subject_id | UUID | yes | json | |
provider_physician_id | UUID | yes | json | |
title | VARCHAR(300) | no | json | |
body | TEXT | no | json | |
link_path | VARCHAR(500) | yes | json | |
severity | VARCHAR(20) | yes | json | |
occurred_at | DATETIME | no | json | |
created_at | DATETIME | no | json | |
show_in_inbox | BOOLEAN | no | json | |
read_at | DATETIME | yes | json | |
dismissed_at | DATETIME | yes | json | |
deliveries | JSONB | no | json | |
delivery_open | BOOLEAN | no | json | |
note | TEXT | yes | json | |
note_updated_at | DATETIME | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/todo_items.ndjson — A soft-deletable todo owned by one organization.
Linked to the patient by: todo_items.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
creator_user_id | UUID | no | json | |
assignee_user_id | UUID | no | json | |
patient_id | UUID | yes | json | |
delegated_by_user_id | UUID | yes | json | |
assigned_by_user_id | UUID | yes | json | |
assigned_at | DATETIME | yes | json | |
title | TEXT | no | json | |
notes | TEXT | yes | json | |
checklist | JSONB | yes | json | |
priority | VARCHAR | no | json | |
status | VARCHAR | no | json | |
due_at | DATETIME | yes | json | |
surface_at | DATETIME | yes | json | |
reminder_acknowledged_at | DATETIME | yes | json | |
reminder_push_sent_at | DATETIME | yes | json | |
completed_at | DATETIME | yes | json | |
completed_by_user_id | UUID | yes | json | |
sort_order | FLOAT | no | json | |
deleted_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/urgent_care_queue_entries.ndjson
Linked to the patient by: urgent_care_queue_entries.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
scheduled_visit_id | UUID | no | json | |
kiosk_session_id | UUID | yes | json | |
encounter_id | UUID | yes | json | |
charge_id | UUID | yes | json | |
status | VARCHAR(24) | no | json | |
arrival_mode | VARCHAR(16) | no | json | |
ticket_number | INTEGER | no | json | |
service_date | DATE | no | json | |
chief_complaint_category | VARCHAR(64) | no | json | |
chief_complaint_text | TEXT | yes | json | |
acuity | SMALLINT | yes | json | |
acuity_suggested | BOOLEAN | no | json | |
red_flag_answers | JSONB | no | json | |
red_flag_triggered | BOOLEAN | no | json | |
er_advice_shown_at | DATETIME | yes | json | |
er_advice_acknowledged_at | DATETIME | yes | json | |
identity_review | BOOLEAN | no | json | |
identity_review_note | TEXT | yes | json | |
is_minor | BOOLEAN | no | json | |
guardian_name | VARCHAR(200) | yes | json | |
guardian_relationship | VARCHAR(64) | yes | json | |
self_pay | BOOLEAN | no | json | |
insurance_policy_id | UUID | yes | json | |
eligibility_snapshot_id | UUID | yes | json | |
eligibility_status | VARCHAR(32) | no | json | |
copay_amount | NUMERIC(10, 2) | yes | json | |
copay_source | VARCHAR(24) | no | json | |
copay_status | VARCHAR(24) | no | json | |
copay_collected_via | VARCHAR(20) | yes | json | |
copay_deferred_by_user_id | UUID | yes | json | |
assigned_provider_id | UUID | yes | json | |
room_key | VARCHAR(64) | yes | json | |
joined_at | DATETIME | no | json | |
arrived_at | DATETIME | yes | json | |
triaged_at | DATETIME | yes | json | |
roomed_at | DATETIME | yes | json | |
provider_started_at | DATETIME | yes | json | |
discharged_at | DATETIME | yes | json | |
left_at | DATETIME | yes | json | |
removed_at | DATETIME | yes | json | |
removed_reason | VARCHAR(200) | yes | json | |
called_at | DATETIME | yes | json | |
sms_updates_opt_in | BOOLEAN | no | json | |
phone_masked | VARCHAR(40) | yes | json | |
phone_verified_at | DATETIME | yes | json | |
estimated_wait_low_minutes | INTEGER | yes | json | |
estimated_wait_high_minutes | INTEGER | yes | json | |
estimate_unavailable | BOOLEAN | no | json | |
last_estimate_at | DATETIME | yes | json | |
last_notified_estimate_minutes | INTEGER | yes | json | |
wait_shift_pending | BOOLEAN | no | json | |
next_up_notified_at | DATETIME | yes | json | |
manual_priority | INTEGER | no | json | |
intake_challenge_id | UUID | yes | json | |
created_by_user_id | UUID | yes | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): phone_e164_ciphertext, phone_e164_hash, resume_token_hash, status_token_expires_at, status_token_hash
Patient access and sharing
data/patient_restriction_requests.ndjson — A patient's (or representative's) request to restrict how part of their record is used or shared ((e)(1)(iii), HIPAA 164.522).
Linked to the patient by: patient_restriction_requests.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
requested_by_user_id | UUID | no | json | |
requester_display_name | VARCHAR(255) | no | json | |
requester_relationship | VARCHAR(50) | no | json | |
data_classes | JSONB | no | json | |
details | TEXT | yes | json | |
restriction_type | VARCHAR(40) | no | json | |
recipient_description | TEXT | yes | json | |
reason | TEXT | yes | json | |
status | VARCHAR(16) | no | json | |
decided_by_user_id | UUID | yes | json | |
decided_at | DATETIME | yes | json | |
decision_note | TEXT | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Patient demographics, insurance and contacts
data/insurance_benefit_check_procedures.ndjson — One CPT/HCPCS code asked about on a check (1 to 10 per check).
Linked to the patient by: insurance_benefit_check_procedures.benefit_check_id -> insurance_benefit_checks.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
benefit_check_id | UUID | no | json | |
position | SMALLINT | no | json | |
cpt_code | VARCHAR(5) | no | json | |
modifier | VARCHAR(2) | yes | json | |
units | INTEGER | no | json | |
coverage_percent | NUMERIC(5, 2) | yes | json | |
copay_cents | INTEGER | yes | json | |
auth_required | VARCHAR(10) | yes | json | |
auth_reference | VARCHAR(80) | yes | json | |
notes | VARCHAR(500) | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/insurance_benefit_checks.ndjson
Linked to the patient by: insurance_benefit_checks.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
insurance_policy_id | UUID | no | json | |
scheduled_visit_id | UUID | yes | json | |
source | VARCHAR(20) | no | json | |
status | VARCHAR(20) | no | json | |
date_of_service | DATE | yes | json | |
place_of_service_code | VARCHAR(2) | yes | json | |
service_facility_id | UUID | yes | json | |
location_id | UUID | yes | json | |
facility_name | VARCHAR(200) | yes | json | |
facility_npi | VARCHAR(10) | yes | json | |
rendering_physician_id | UUID | yes | json | |
diagnosis_codes | JSONB | yes | json | |
extra_question | VARCHAR(500) | yes | json | |
payer_phone_e164 | VARCHAR(20) | yes | json | |
payer_phone_source | VARCHAR(30) | yes | json | |
called_at | DATETIME | yes | json | |
payer_rep_name | VARCHAR(120) | yes | json | |
call_reference_number | VARCHAR(80) | yes | json | |
plan_name | VARCHAR(200) | yes | json | |
in_network | VARCHAR(10) | yes | json | |
deductible_applies | VARCHAR(10) | yes | json | |
deductible_remaining_cents | INTEGER | yes | json | |
oop_applies | VARCHAR(10) | yes | json | |
oop_remaining_cents | INTEGER | yes | json | |
estimated_patient_responsibility_cents | INTEGER | yes | json | |
notes | TEXT | yes | json | |
phone_call_id | UUID | yes | json | |
attempt_count | INTEGER | no | json | |
next_attempt_at | DATETIME | yes | json | |
failure_reason | VARCHAR(300) | yes | json | |
ai_summary | TEXT | yes | json | |
requested_by_user_id | UUID | yes | json | |
entered_by_user_id | UUID | yes | json | |
updated_by_user_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
completed_at | DATETIME | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/insurance_policies.ndjson
Linked to the patient by: insurance_policies.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
provider_name | VARCHAR(100) | no | json | |
policy_number | VARCHAR(50) | no | json | |
member_id_source | VARCHAR(20) | yes | json | |
group_number | VARCHAR(50) | yes | json | |
payer_id | VARCHAR(30) | yes | json | |
eligibility_payer_id | VARCHAR(30) | yes | json | |
plan_name | VARCHAR(100) | yes | json | |
plan_product_code | VARCHAR(50) | yes | json | |
requires_referral | BOOLEAN | yes | json | |
pcp_assigned | BOOLEAN | yes | json | |
pharmacy_bin | VARCHAR(10) | yes | json | |
pharmacy_pcn | VARCHAR(10) | yes | json | |
pharmacy_group | VARCHAR(20) | yes | json | |
coordination_order | INTEGER | yes | json | |
timely_filing_limit_days | INTEGER | yes | json | |
prior_system_copay_amount | NUMERIC(10, 2) | yes | json | |
last_verified_at | DATETIME | yes | json | |
verification_source | VARCHAR(50) | yes | json | |
payer_mapping_id | UUID | yes | json | |
officeally_payer_key | INTEGER | yes | json | |
officeally_payer_id | VARCHAR(50) | yes | json | |
officeally_payer_name | VARCHAR(200) | yes | json | |
officeally_search_option_id | INTEGER | yes | json | |
insurance_carrier_id | UUID | yes | json | |
payer_source_identifier_id | UUID | yes | json | |
stedi_payer_mapping_id | UUID | yes | json | |
stedi_payer_source_identifier_id | UUID | yes | json | |
payer_match_status | VARCHAR(30) | no | json | |
payer_match_confidence | NUMERIC(5, 4) | yes | json | |
clearinghouse_hold_reason | VARCHAR(40) | yes | json | |
eligibility_last_transaction_id | VARCHAR(100) | yes | json | |
eligibility_coverage_active | BOOLEAN | yes | json | |
eligibility_effective_date | DATE | yes | json | |
eligibility_termination_date | DATE | yes | json | |
eligibility_status | VARCHAR(100) | yes | json | |
eligibility_check_required | BOOLEAN | yes | json | |
eligibility_check_failed_at | DATETIME | yes | json | |
eligibility_check_error | VARCHAR(500) | yes | json | |
eligibility_check_error_code | VARCHAR(128) | yes | json | |
eligibility_check_error_category | VARCHAR(60) | yes | json | |
eligibility_check_error_retryable | BOOLEAN | yes | json | |
eligibility_check_error_recommended_action | VARCHAR(500) | yes | json | |
cob_last_checked_at | DATETIME | yes | json | |
cob_last_determination | VARCHAR(40) | yes | json | |
medicare_secondary_payer_type | VARCHAR(2) | yes | json | |
is_qmb | BOOLEAN | no | json | |
qmb_verified_at | DATETIME | yes | json | |
qmb_verification_source | VARCHAR(50) | yes | json | |
qmb_periods | JSONB | yes | json | |
plan_type | VARCHAR(5) | yes | json | |
coverage_start_date | DATE | yes | json | |
coverage_end_date | DATE | yes | json | |
is_primary | BOOLEAN | yes | json | |
policyholder_first_name | VARCHAR(50) | yes | json | |
policyholder_last_name | VARCHAR(50) | yes | json | |
policyholder_date_of_birth | DATE | yes | json | |
policyholder_address_line1 | VARCHAR(100) | yes | json | |
policyholder_address_line2 | VARCHAR(100) | yes | json | |
policyholder_city | VARCHAR(50) | yes | json | |
policyholder_state | VARCHAR(2) | yes | json | |
policyholder_zip_code | VARCHAR(10) | yes | json | |
policyholder_sex | VARCHAR(1) | yes | json | |
relationship_to_patient | VARCHAR(6) | yes | json | |
client_request_id | UUID | yes | json | |
insurance_phone | VARCHAR(20) | yes | json | |
claims_address_line1 | VARCHAR(100) | yes | json | |
claims_address_line2 | VARCHAR(100) | yes | json | |
claims_city | VARCHAR(50) | yes | json | |
claims_state | VARCHAR(2) | yes | json | |
claims_zip_code | VARCHAR(10) | yes | json | |
copay_amount | VARCHAR(100) | yes | json | |
deductible_amount | VARCHAR(20) | yes | json | |
notes | VARCHAR(500) | yes | json | |
card_front_media_id | UUID | yes | json | |
card_back_media_id | UUID | yes | json | |
pcp_name | VARCHAR(100) | yes | json | |
pcp_phone | VARCHAR(20) | yes | json | |
provider_services_phone | VARCHAR(20) | yes | json | |
copay_pcp | VARCHAR(20) | yes | json | |
copay_specialist | VARCHAR(20) | yes | json | |
copay_er | VARCHAR(20) | yes | json | |
copay_urgent_care | VARCHAR(20) | yes | json | |
copay_virtual | VARCHAR(20) | yes | json | |
deductible_out_of_network | VARCHAR(40) | yes | json | |
oop_max_in_network | VARCHAR(40) | yes | json | |
oop_max_out_of_network | VARCHAR(40) | yes | json | |
status | VARCHAR(8) | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/insurance_policy_cob_snapshots.ndjson
Linked to the patient by: insurance_policy_cob_snapshots.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
insurance_policy_id | UUID | no | json | |
patient_id | UUID | no | json | |
checked_at | DATETIME | no | json | |
checked_by | UUID | yes | json | |
source | VARCHAR(50) | yes | json | |
external_transaction_id | VARCHAR(100) | yes | json | |
trace_id | VARCHAR(100) | yes | json | |
application_mode | VARCHAR(20) | yes | json | |
classification | VARCHAR(40) | yes | json | |
coverage_overlap | BOOLEAN | yes | json | |
benefit_overlap | BOOLEAN | yes | json | |
instance_exists | BOOLEAN | yes | json | |
primacy_determined | BOOLEAN | yes | json | |
determination | VARCHAR(40) | yes | json | |
recommended_coordination_order | INTEGER | yes | json | |
effective_date | DATE | yes | json | |
termination_date | DATE | yes | json | |
discovered_payers | JSONB | yes | json | |
raw_payload | JSONB | yes | json | |
parsed_summary | JSONB | yes | json | |
notes | TEXT | yes | json | |
order_applied_at | DATETIME | yes | json | |
order_applied_by | UUID | yes | json | |
applied_order | JSONB | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/insurance_policy_eligibility_snapshots.ndjson
Linked to the patient by: insurance_policy_eligibility_snapshots.insurance_policy_id -> insurance_policies.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
insurance_policy_id | UUID | no | json | |
checked_at | DATETIME | no | json | |
checked_by | UUID | yes | json | |
effective_start | DATE | yes | json | |
effective_end | DATE | yes | json | |
plan_subtype | VARCHAR(50) | yes | json | |
copay_urgent_care | NUMERIC(10, 2) | yes | json | |
service_type_codes | JSONB | yes | json | |
copay_primary | NUMERIC(10, 2) | yes | json | |
copay_specialist | NUMERIC(10, 2) | yes | json | |
copay_virtual | NUMERIC(10, 2) | yes | json | |
deductible_remaining | NUMERIC(10, 2) | yes | json | |
oop_remaining | NUMERIC(10, 2) | yes | json | |
oop_max | NUMERIC(10, 2) | yes | json | |
network_status | VARCHAR(20) | yes | json | |
coinsurance_percent | NUMERIC(5, 2) | yes | json | |
authorization_required | BOOLEAN | yes | json | |
referral_required | BOOLEAN | yes | json | |
telehealth_covered | BOOLEAN | yes | json | |
place_of_service_notes | TEXT | yes | json | |
frequency_limits | TEXT | yes | json | |
attachments_required | TEXT | yes | json | |
coordination_notes | TEXT | yes | json | |
raw_payload | JSONB | yes | json | |
source | VARCHAR(50) | yes | json | |
external_transaction_id | VARCHAR(100) | yes | json | |
trace_id | VARCHAR(100) | yes | json | |
parsed_summary | JSONB | yes | json | |
notes | TEXT | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/insurance_policy_previous_card_images.ndjson
Linked to the patient by: insurance_policy_previous_card_images.insurance_policy_id -> insurance_policies.patient_id -> patients.id; insurance_policy_previous_card_images.media_id -> media.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
insurance_policy_id | UUID | no | json | |
side | VARCHAR(5) | no | json | |
media_id | UUID | no | json | |
replaced_at | DATETIME | no | json | |
replaced_by | UUID | no | json | |
replaced_by_capture_session_id | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/insurance_policy_questionnaires.ndjson
Linked to the patient by: insurance_policy_questionnaires.insurance_policy_id -> insurance_policies.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
insurance_policy_id | UUID | no | json | |
questionnaire_type | VARCHAR(12) | no | json | |
response_data | JSONB | yes | json | |
collected_at | DATETIME | no | json | |
collected_by | UUID | yes | json | |
notes | TEXT | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/low_friction_bookings.ndjson
Linked to the patient by: low_friction_bookings.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
physician_id | UUID | no | json | |
physician_visit_type_id | UUID | no | json | |
location_id | UUID | yes | json | |
scheduled_visit_id | UUID | yes | json | |
patient_id | UUID | yes | json | |
patient_match_status | VARCHAR(32) | no | json | |
portal_invitation_preregistration_id | UUID | yes | json | |
full_name | VARCHAR(160) | no | json | |
first_name | VARCHAR(50) | no | json | |
last_name | VARCHAR(50) | no | json | |
email | VARCHAR(255) | no | json | |
phone_encryption_key_id | VARCHAR(64) | no | json | |
masked_phone | VARCHAR(40) | no | json | |
scheduled_datetime | DATETIME | no | json | |
duration_minutes | SMALLINT | no | json | |
status | VARCHAR(32) | no | json | |
registration_status | VARCHAR(32) | no | json | |
verification_challenge_id | UUID | no | json | |
idempotency_key | VARCHAR(255) | yes | json | |
source_url | TEXT | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): created_ip_hash, created_ua_hash, email_normalized_hash, phone_e164_ciphertext, phone_e164_hash
data/new_patient_funnel_submissions.ndjson
Linked to the patient by: new_patient_funnel_submissions.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
funnel_config_id | UUID | yes | json | |
config_version | INTEGER | yes | json | |
answers | JSONB | no | json | |
first_name | VARCHAR(50) | yes | json | |
last_name | VARCHAR(50) | yes | json | |
date_of_birth | DATE | yes | json | |
masked_email | VARCHAR(255) | yes | json | |
masked_phone | VARCHAR(40) | yes | json | |
triage_outcome | VARCHAR(32) | no | json | |
triage_reasons | JSONB | no | json | |
is_urgent | BOOLEAN | no | json | |
is_minor | BOOLEAN | no | json | |
safety_notice | BOOLEAN | no | json | |
response_snapshot | JSONB | yes | json | |
status | VARCHAR(32) | no | json | |
inquiry_id | UUID | yes | json | |
low_friction_booking_id | UUID | yes | json | |
patient_id | UUID | yes | json | |
scheduled_visit_id | UUID | yes | json | |
idempotency_key | VARCHAR(255) | yes | json | |
embed_origin | TEXT | yes | json | |
source_url | TEXT | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): email_hash, phone_ciphertext, phone_e164_hash, request_ip_hash, user_agent_hash
data/patient_address_history.ndjson — A previous (or additional) address of the patient (USCDI Previous Address).
Linked to the patient by: patient_address_history.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
use | VARCHAR(16) | no | json | |
address_line1 | VARCHAR(160) | yes | json | |
address_line2 | VARCHAR(160) | yes | json | |
city | VARCHAR(80) | yes | json | |
state | VARCHAR(2) | yes | json | |
postal_code | VARCHAR(10) | yes | json | |
country | VARCHAR(2) | yes | json | |
period_start | DATE | yes | json | |
period_end | DATE | yes | json | |
is_deleted | BOOLEAN | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_amendment_requests.ndjson
Linked to the patient by: patient_amendment_requests.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
source | VARCHAR(16) | no | json | |
requested_by_user_id | UUID | yes | json | |
requester_relationship | VARCHAR(32) | yes | json | |
received_at | DATETIME | no | json | |
record_area | VARCHAR(32) | no | json | |
target_resource_type | VARCHAR(32) | yes | json | |
target_resource_id | UUID | yes | json | |
target_label | VARCHAR(120) | yes | json | |
record_description | VARCHAR(120) | yes | json | |
requested_change | TEXT | no | json | |
reason | TEXT | yes | json | |
status | VARCHAR(16) | no | json | |
due_at | DATETIME | no | json | |
extended_until | DATETIME | yes | json | |
extension_reason | TEXT | yes | json | |
extended_by_user_id | UUID | yes | json | |
extended_at | DATETIME | yes | json | |
decided_by_user_id | UUID | yes | json | |
decided_at | DATETIME | yes | json | |
decision_note | TEXT | yes | json | |
denial_basis | VARCHAR(40) | yes | json | |
disagreement_statement | TEXT | yes | json | |
disagreement_at | DATETIME | yes | json | |
disagreement_by_user_id | UUID | yes | json | |
rebuttal | TEXT | yes | json | |
rebuttal_at | DATETIME | yes | json | |
rebuttal_by_user_id | UUID | yes | json | |
patient_notified_at | DATETIME | yes | json | |
withdrawn_at | DATETIME | yes | json | |
withdrawn_by_user_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_chart_alerts.ndjson
Linked to the patient by: patient_chart_alerts.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
alert_type | VARCHAR(32) | no | json | |
severity | VARCHAR(16) | no | json | |
title | VARCHAR(200) | no | json | |
body | TEXT | yes | json | |
source | VARCHAR(32) | no | json | |
status | VARCHAR(16) | no | json | |
dedupe_key | TEXT | yes | json | |
source_refs | JSONB | yes | json | |
resolved_at | DATETIME | yes | json | |
resolved_by_user_id | UUID | yes | json | |
resolution_note | TEXT | yes | json | |
created_by_user_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_communication_preference_changes.ndjson — One change to one communication preference: who, when, how, from -> to.
Linked to the patient by: patient_communication_preference_changes.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
field | VARCHAR(64) | no | json | |
old_value | JSONB | yes | json | |
new_value | JSONB | yes | json | |
source | VARCHAR(32) | no | json | |
actor_user_id | UUID | yes | json | |
on_patient_request | BOOLEAN | no | json | |
request_method | VARCHAR(16) | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_communication_preferences.ndjson — Per-patient communication settings.
Linked to the patient by: patient_communication_preferences.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
preferred_channels | ARRAY | no | json | |
sms_opt_out | BOOLEAN | no | json | |
email_care_messages_enabled | BOOLEAN | no | json | |
email_scheduling_enabled | BOOLEAN | no | json | |
email_billing_reminders_enabled | BOOLEAN | no | json | |
push_opt_out | BOOLEAN | no | json | |
voice_opt_out | BOOLEAN | no | json | |
email_marketing_opt_out | BOOLEAN | no | json | |
sms_marketing_consent | BOOLEAN | no | json | |
sms_opt_out_reason | VARCHAR(32) | yes | json | |
preferred_contact_times | ARRAY | no | json | |
do_not_disturb_start | TIME | yes | json | |
do_not_disturb_end | TIME | yes | json | |
reminder_days_before | ARRAY | no | json | |
timezone | VARCHAR(50) | yes | json | |
preferred_language | VARCHAR(10) | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_contacts.ndjson — One additional contact of a patient (a person, their relationship to the patient, phones and emails).
Linked to the patient by: patient_contacts.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
first_name | VARCHAR(100) | yes | json | |
middle_name | VARCHAR(100) | yes | json | |
last_name | VARCHAR(100) | yes | json | |
relationship | VARCHAR(100) | yes | json | |
is_emergency_contact | BOOLEAN | no | json | |
is_parent_guardian | BOOLEAN | no | json | |
is_billing_responsible | BOOLEAN | no | json | |
date_of_birth | DATE | yes | json | |
phones | JSONB | no | json | |
emails | JSONB | no | json | |
notes | TEXT | yes | json | |
sort_order | INTEGER | no | json | |
source | VARCHAR(16) | no | json | |
source_system | VARCHAR(100) | yes | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): source_key_digest
data/patient_demographic_profiles.ndjson
Linked to the patient by: patient_demographic_profiles.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
race_codes | JSONB | yes | json | |
race_null_flavor | VARCHAR(8) | yes | json | |
ethnicity_codes | JSONB | yes | json | |
ethnicity_null_flavor | VARCHAR(8) | yes | json | |
preferred_language_code | VARCHAR(16) | yes | json | |
preferred_language_null_flavor | VARCHAR(8) | yes | json | |
sex_code | VARCHAR(32) | yes | json | |
sex_null_flavor | VARCHAR(8) | yes | json | |
sexual_orientation_code | VARCHAR(32) | yes | json | |
sexual_orientation_null_flavor | VARCHAR(8) | yes | json | |
sexual_orientation_other_text | VARCHAR(200) | yes | json | |
gender_identity_code | VARCHAR(32) | yes | json | |
gender_identity_null_flavor | VARCHAR(8) | yes | json | |
gender_identity_other_text | VARCHAR(200) | yes | json | |
sex_parameter_code | VARCHAR(32) | yes | json | |
sex_parameter_comment | VARCHAR(500) | yes | json | |
pronoun_codes | JSONB | yes | json | |
pronouns_other_text | VARCHAR(100) | yes | json | |
pronouns_null_flavor | VARCHAR(8) | yes | json | |
name_prefix | VARCHAR(40) | yes | json | |
name_suffix | VARCHAR(40) | yes | json | |
date_of_death | DATE | yes | json | |
tribal_affiliation_code | VARCHAR(16) | yes | json | |
tribal_enrolled | BOOLEAN | yes | json | |
occupation_code | VARCHAR(32) | yes | json | |
occupation_text | VARCHAR(200) | yes | json | |
industry_code | VARCHAR(32) | yes | json | |
industry_text | VARCHAR(200) | yes | json | |
phone_primary_use | VARCHAR(16) | yes | json | |
phone_secondary_use | VARCHAR(16) | yes | json | |
mirrored_legacy | JSONB | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
row_version | INTEGER | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_disclosures.ndjson
Linked to the patient by: patient_disclosures.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
disclosed_at | DATETIME | no | json | |
recipient_name | VARCHAR(200) | no | json | |
recipient_detail | VARCHAR(300) | yes | json | |
method | VARCHAR(16) | no | json | |
purpose | VARCHAR(24) | no | json | |
purpose_note | VARCHAR(500) | yes | json | |
description | TEXT | no | json | |
recorded_by_user_id | UUID | yes | json | |
source | VARCHAR(16) | no | json | |
source_type | VARCHAR(40) | yes | json | |
source_ref | VARCHAR(100) | yes | json | |
voided_at | DATETIME | yes | json | |
voided_by_user_id | UUID | yes | json | |
void_reason | VARCHAR(500) | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_guardian_visibility_overrides.ndjson
Linked to the patient by: patient_guardian_visibility_overrides.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
labs | VARCHAR(16) | yes | json | |
medications | VARCHAR(16) | yes | json | |
diagnoses | VARCHAR(16) | yes | json | |
vitals | VARCHAR(16) | yes | json | |
billing | VARCHAR(16) | yes | json | |
questionnaires | VARCHAR(16) | yes | json | |
homework | VARCHAR(16) | yes | json | |
questionnaire_drafts | VARCHAR(16) | yes | json | |
teen_self_questionnaires | VARCHAR(16) | yes | json | |
hidden_appointments | VARCHAR(16) | yes | json | |
revision | INTEGER | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_legal_representatives.ndjson
Linked to the patient by: patient_legal_representatives.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
representative_type | VARCHAR(32) | no | json | |
full_name | VARCHAR(200) | no | json | |
relationship | VARCHAR(120) | yes | json | |
phone | VARCHAR(40) | yes | json | |
email | VARCHAR(255) | yes | json | |
document_on_file | BOOLEAN | no | json | |
document_note | TEXT | yes | json | |
verification_status | VARCHAR(16) | no | json | |
verified_at | DATETIME | yes | json | |
verified_by_user_id | UUID | yes | json | |
effective_date | DATE | yes | json | |
expiration_date | DATE | yes | json | |
notes | TEXT | yes | json | |
source | VARCHAR(32) | no | json | |
is_active | BOOLEAN | no | json | |
dedupe_key | TEXT | yes | json | |
created_by_user_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_name_history.ndjson — A previous (or other) name of the patient (USCDI Previous Name).
Linked to the patient by: patient_name_history.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
use | VARCHAR(16) | no | json | |
prefix | VARCHAR(40) | yes | json | |
first_name | VARCHAR(100) | yes | json | |
middle_name | VARCHAR(100) | yes | json | |
last_name | VARCHAR(100) | yes | json | |
suffix | VARCHAR(40) | yes | json | |
period_start | DATE | yes | json | |
period_end | DATE | yes | json | |
is_deleted | BOOLEAN | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_photos.ndjson
Linked to the patient by: patient_photos.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
s3_key | VARCHAR(500) | no | attachment | |
byte_size | INTEGER | no | json | |
source | VARCHAR(20) | no | json | |
source_media_id | UUID | yes | json | |
crop | JSONB | yes | json | |
external_source | VARCHAR(40) | yes | json | |
external_id | VARCHAR(120) | yes | json | |
created_at | DATETIME | no | json | |
created_by | UUID | no | json | |
removed_at | DATETIME | yes | json | |
removed_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_profile_change_requests.ndjson
Linked to the patient by: patient_profile_change_requests.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
requested_by_user_id | UUID | yes | json | |
requested | JSONB | no | json | |
previous | JSONB | no | json | |
status | VARCHAR(16) | no | json | |
decided_by_user_id | UUID | yes | json | |
decided_at | DATETIME | yes | json | |
decision_reason | VARCHAR(300) | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_record_section_reviews.ndjson
Linked to the patient by: patient_record_section_reviews.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
scheduled_visit_id | UUID | yes | json | |
section_key | VARCHAR(32) | no | json | |
source | VARCHAR(16) | no | json | |
review_kind | VARCHAR(16) | no | json | |
reviewed_by_user_id | UUID | yes | json | |
reviewed_at | DATETIME | no | json | |
voided_at | DATETIME | yes | json | |
voided_by_user_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_registration_requests.ndjson — PHI-minimized record of a registration transaction.
Linked to the patient by: patient_registration_requests.created_patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
request_id | UUID | no | json | |
actor_user_id | UUID | no | json | |
request_fingerprint | VARCHAR(64) | no | json | |
status | VARCHAR(20) | no | json | |
created_patient_id | UUID | yes | json | |
result_metadata | JSONB | yes | json | |
created_at | DATETIME | no | json | |
completed_at | DATETIME | yes | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patient_sensitive_identifiers.ndjson — Encrypted, minimized patient identifiers that must not enter ordinary demographics payloads.
Linked to the patient by: patient_sensitive_identifiers.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
identifier_type | VARCHAR(32) | no | json | |
value_encrypted | TEXT | no | sensitive_identifier | |
last4 | VARCHAR(4) | yes | json | |
source | VARCHAR(64) | yes | json | |
verified_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/patients.ndjson
Linked to the patient by: patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
user_id | UUID | yes | json | |
organization_id | UUID | no | json | |
mrn | VARCHAR(20) | no | json | |
first_name | VARCHAR(50) | no | json | |
preferred_name | VARCHAR(100) | yes | json | |
pronouns | VARCHAR(50) | yes | json | |
middle_name | VARCHAR(50) | yes | json | |
last_name | VARCHAR(50) | no | json | |
date_of_birth | DATE | no | json | |
sex | VARCHAR(1) | no | json | |
gender_identity | VARCHAR(50) | yes | json | |
email | VARCHAR(255) | yes | json | |
phone_primary | VARCHAR(20) | yes | json | |
phone_secondary | VARCHAR(20) | yes | json | |
marital_status | VARCHAR(20) | yes | json | |
address_line1 | VARCHAR(100) | yes | json | |
address_line2 | VARCHAR(100) | yes | json | |
city | VARCHAR(50) | yes | json | |
state | VARCHAR(2) | yes | json | |
zip_code | VARCHAR(10) | yes | json | |
pharmacy_recommendation_status | VARCHAR(20) | yes | json | |
pharmacy_recommendation_refreshed_at | DATETIME | yes | json | |
pharmacy_recommendation_source | VARCHAR(50) | yes | json | |
pharmacy_recommendation_error | VARCHAR(500) | yes | json | |
primary_physician_id | UUID | yes | json | |
emergency_contact_name | VARCHAR(100) | yes | json | |
emergency_contact_relationship | VARCHAR(50) | yes | json | |
emergency_contact_phone | VARCHAR(20) | yes | json | |
primary_insurance_provider | VARCHAR(100) | yes | json | |
primary_insurance_id | VARCHAR(50) | yes | json | |
primary_insurance_group | VARCHAR(50) | yes | json | |
primary_insurance_carrier_code | VARCHAR(20) | yes | json | |
secondary_insurance_provider | VARCHAR(100) | yes | json | |
secondary_insurance_id | VARCHAR(50) | yes | json | |
bypass_insurance_cash_pay | BOOLEAN | no | json | |
billing_type | VARCHAR(80) | yes | json | |
billing_type_id | UUID | yes | json | |
billing_type_assignment_source | VARCHAR(20) | no | json | |
billing_type_assigned_at | DATETIME | yes | json | |
billing_type_assigned_by | UUID | yes | json | |
current_photo_id | UUID | yes | json | |
parent_first_name | VARCHAR(50) | yes | json | |
parent_middle_name | VARCHAR(50) | yes | json | |
parent_last_name | VARCHAR(50) | yes | json | |
parent_date_of_birth | DATE | yes | json | |
parent_phone | VARCHAR(20) | yes | json | |
parent_email | VARCHAR(255) | yes | json | |
parent_sex | VARCHAR(1) | yes | json | |
guarantor_relationship | VARCHAR(50) | no | json | |
guarantor_first_name | VARCHAR(50) | yes | json | |
guarantor_last_name | VARCHAR(50) | yes | json | |
guarantor_email | VARCHAR(255) | yes | json | |
guarantor_date_of_birth | DATE | yes | json | |
guarantor_phone | VARCHAR(20) | yes | json | |
guarantor_address_line1 | VARCHAR(100) | yes | json | |
guarantor_address_line2 | VARCHAR(100) | yes | json | |
guarantor_city | VARCHAR(50) | yes | json | |
guarantor_state | VARCHAR(2) | yes | json | |
guarantor_zip_code | VARCHAR(10) | yes | json | |
guarantor_statements_enabled | BOOLEAN | no | json | |
guarantor_statements_consent_method | VARCHAR(12) | yes | json | |
guarantor_statements_consent_date | DATE | yes | json | |
guarantor_statements_consent_recorded_by | UUID | yes | json | |
guarantor_statements_consent_recorded_by_name | VARCHAR(120) | yes | json | |
guarantor_statements_consent_recorded_at | DATETIME | yes | json | |
quest_patient_oid | VARCHAR(50) | yes | json | |
status | VARCHAR(15) | no | json | |
portal_status | VARCHAR(7) | no | json | |
preferred_language | VARCHAR(50) | yes | json | |
referral_source | VARCHAR(100) | yes | json | |
referral_source_detail | VARCHAR(255) | yes | json | |
self_scheduling_blocked | BOOLEAN | no | json | |
race_code | VARCHAR(32) | yes | json | |
ethnicity_code | VARCHAR(32) | yes | json | |
mother_maiden_last_name | VARCHAR(50) | yes | json | |
mother_maiden_first_name | VARCHAR(50) | yes | json | |
county | VARCHAR(60) | yes | json | |
county_fips | VARCHAR(5) | yes | json | |
multiple_birth_indicator | BOOLEAN | yes | json | |
birth_order | INTEGER | yes | json | |
immunization_registry_opt_out | BOOLEAN | no | json | |
immunization_registry_opt_out_at | DATETIME | yes | json | |
immunization_registry_opt_out_by | UUID | yes | json | |
primary_care_elsewhere | BOOLEAN | no | json | |
pharmacy_preferences | JSONB | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): pharmacy_recommendation_address_hash, stripe_customer_id
data/preregistrations.ndjson
Linked to the patient by: preregistrations.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
physician_id | UUID | no | json | |
first_name | VARCHAR(50) | no | json | |
last_name | VARCHAR(50) | no | json | |
phone_number | VARCHAR(20) | no | json | |
email | VARCHAR(255) | yes | json | |
desired_appointment_time | DATETIME | no | json | |
location_id | UUID | yes | json | |
physician_visit_type_id | UUID | yes | json | |
display_quote_expires_at | DATETIME | yes | json | |
hold_expires_at | DATETIME | no | json | |
referral_source | VARCHAR(100) | yes | json | |
referral_source_detail | VARCHAR(255) | yes | json | |
verification_code | VARCHAR(6) | no | json | |
status | VARCHAR(9) | no | json | |
sms_sent_at | DATETIME | yes | json | |
sms_attempts | INTEGER | no | json | |
email_sent_at | DATETIME | yes | json | |
patient_id | UUID | yes | json | |
source | VARCHAR(50) | yes | json | |
account_mode | VARCHAR(32) | yes | json | |
teen_email | VARCHAR(255) | yes | json | |
parent_guardian_email | VARCHAR(255) | yes | json | |
locked_at | DATETIME | yes | json | |
completed_at | DATETIME | yes | json | |
completed_patient_id | UUID | yes | json | |
completion_method | VARCHAR(6) | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): deeplink_token, display_quote_hash
data/prior_auth_letter_reviews.ndjson
Linked to the patient by: prior_auth_letter_reviews.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
media_group_id | UUID | yes | json | |
media_id | UUID | yes | json | |
status | VARCHAR(20) | no | json | |
read_status | VARCHAR(20) | no | json | |
read_attempts | INTEGER | no | json | |
read_claimed_at | DATETIME | yes | json | |
read_not_before | DATETIME | yes | json | |
read_at | DATETIME | yes | json | |
extraction_id | UUID | yes | json | |
prior_authorization_id | UUID | yes | json | |
origin | VARCHAR(20) | no | json | |
created_by | UUID | yes | json | |
reviewed_by | UUID | yes | json | |
reviewed_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/registration_insurance_capture_sessions.ndjson
Linked to the patient by: registration_insurance_capture_sessions.promoted_capture_session_id -> insurance_card_capture_sessions.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_first_name | VARCHAR(255) | yes | json | |
status | VARCHAR(20) | no | json | |
extracted_fields | JSONB | yes | json | |
extraction_model | VARCHAR(64) | yes | json | |
error | VARCHAR(500) | yes | json | |
expires_at | DATETIME | no | json | |
consumed_at | DATETIME | yes | json | |
promoted_capture_session_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): firebase_uid, token
data/remote_monitoring_enrollments.ndjson
Linked to the patient by: remote_monitoring_enrollments.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
organization_id | UUID | no | json | |
program_type | VARCHAR(23) | no | json | |
status | VARCHAR(10) | no | json | |
adherence_status | VARCHAR(8) | no | json | |
enrolled_at | DATETIME | no | json | |
activated_at | DATETIME | yes | json | |
initial_setup_completed_at | DATETIME | yes | json | |
last_data_transmission_at | DATETIME | yes | json | |
last_communication_at | DATETIME | yes | json | |
last_alert_generated_at | DATETIME | yes | json | |
readings_reviewed_through_at | DATETIME | yes | json | |
readings_reviewed_through_id | UUID | yes | json | |
last_clinician_touch_at | DATETIME | yes | json | |
last_escalation_sent_at | DATETIME | yes | json | |
last_risk_assessed_at | DATETIME | yes | json | |
last_billing_reviewed_at | DATETIME | yes | json | |
assigned_physician_id | UUID | yes | json | |
care_coordinator_id | UUID | yes | json | |
last_reviewed_by_id | UUID | yes | json | |
device_name | VARCHAR(120) | yes | json | |
device_identifier | VARCHAR(120) | yes | json | |
device_metadata | JSONB | yes | json | |
rolling_period_start | DATETIME | yes | json | |
rolling_period_end | DATETIME | yes | json | |
required_transmission_days | INTEGER | no | json | |
transmission_days_in_period | INTEGER | no | json | |
requires_contact | BOOLEAN | no | json | |
urgent_alert_pending | BOOLEAN | no | json | |
billing_cycle_start | DATETIME | yes | json | |
billing_cycle_end | DATETIME | yes | json | |
billing_last_submitted_at | DATETIME | yes | json | |
notes | VARCHAR(2000) | yes | json | |
consent_pending | BOOLEAN | no | json | |
needs_reconsent | BOOLEAN | no | json | |
consent_obtained_at | DATETIME | yes | json | |
consent_method | VARCHAR(30) | yes | json | |
consent_documented_by | UUID | yes | json | |
consent_signature_name | VARCHAR(255) | yes | json | |
consent_signature_blob | TEXT | yes | json | |
consent_text_version | VARCHAR(80) | yes | json | |
consent_captured_from | VARCHAR(30) | yes | json | |
consent_pdf_media_id | UUID | yes | json | |
consent_pdf_generated_at | DATETIME | yes | json | |
agreement_template_id | UUID | yes | json | |
agreement_assignment_id | UUID | yes | json | |
agreement_signed_id | UUID | yes | json | |
diagnosis_codes | JSONB | yes | json | |
alert_thresholds | JSONB | yes | json | |
reminders_enabled | BOOLEAN | no | json | |
last_reminder_sent_at | DATETIME | yes | json | |
setup_billed_at | DATETIME | yes | json | |
status_reason | VARCHAR(255) | yes | json | |
discharged_at | DATETIME | yes | json | |
time_minutes_current_month | INTEGER | no | json | |
latest_reading | JSONB | yes | json | |
open_alert_count | INTEGER | no | json | |
period_number | INTEGER | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
plan_of_care_certified_on | DATE | yes | json | |
plan_of_care_certified_through | DATE | yes | json | |
plan_of_care_certified_by_id | UUID | yes | json | |
plan_of_care_media_id | UUID | yes | json | |
department_id | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/scheduled_visit_prep_notes.ndjson
Linked to the patient by: scheduled_visit_prep_notes.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
scheduled_visit_id | UUID | yes | json | |
body | TEXT | no | json | |
author_user_id | UUID | no | json | |
client_request_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
deleted_at | DATETIME | yes | json | |
deleted_by_user_id | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Phone calls and voicemail
data/phone_call_inbox.ndjson
Linked to the patient by: phone_call_inbox.phone_call_id -> phone_calls.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
phone_call_id | UUID | no | json | |
seq | INTEGER | no | json | |
source | VARCHAR(20) | no | json | |
event_type | VARCHAR(80) | no | json | |
telnyx_event_id | VARCHAR(255) | yes | json | |
actor_principal | VARCHAR(255) | yes | json | |
request_key | VARCHAR(255) | yes | json | |
engine_key | VARCHAR(255) | yes | json | |
payload | JSONB | no | json | |
timer_key | VARCHAR(255) | yes | json | |
due_at | DATETIME | yes | json | |
status | VARCHAR(20) | no | json | |
defer_reason | VARCHAR(255) | yes | json | |
retry_count | INTEGER | no | json | |
next_attempt_at | DATETIME | yes | json | |
occurred_at | DATETIME | no | json | |
processed_at | DATETIME | yes | json | |
id | UUID | no | json | |
organization_id | UUID | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): payload_hash
data/phone_call_notes.ndjson — Transcript and AI summary of one recorded staff call.
Linked to the patient by: phone_call_notes.phone_call_id -> phone_calls.patient_id -> patients.id; phone_call_notes.recording_asset_id -> phone_recording_assets.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
phone_call_id | UUID | no | json | |
recording_asset_id | UUID | no | json | |
status | VARCHAR(20) | no | json | |
transcript | TEXT | yes | json | |
summary | TEXT | yes | json | |
follow_ups | JSONB | no | json | |
failure_stage | VARCHAR(20) | yes | json | |
error | VARCHAR(200) | yes | json | |
skip_reason | VARCHAR(40) | yes | json | |
attempts | INTEGER | no | json | |
next_attempt_at | DATETIME | yes | json | |
lease_owner | VARCHAR(255) | yes | json | |
lease_expires_at | DATETIME | yes | json | |
transcription_engine | VARCHAR(20) | yes | json | |
transcribed_at | DATETIME | yes | json | |
model_key | VARCHAR(80) | yes | json | |
used_deployment | VARCHAR(120) | yes | json | |
completed_at | DATETIME | yes | json | |
id | UUID | no | json | |
organization_id | UUID | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/phone_call_queue_entries.ndjson — One caller's stay in a call queue: history and today's counts only.
Linked to the patient by: phone_call_queue_entries.phone_call_id -> phone_calls.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
group_id | UUID | no | json | |
phone_call_id | UUID | no | json | |
entered_at | DATETIME | no | json | |
ended_at | DATETIME | yes | json | |
outcome | VARCHAR(20) | no | json | |
answered_by_user_id | UUID | yes | json | |
wait_sec | INTEGER | yes | json | |
id | UUID | no | json | |
organization_id | UUID | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/phone_call_transcript_meta.ndjson
Linked to the patient by: phone_call_transcript_meta.phone_call_id -> phone_calls.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
phone_call_id | UUID | no | json | |
last_display_order | INTEGER | no | json | |
complete | BOOLEAN | no | json | |
summary | TEXT | yes | json | |
search_text | TEXT | no | json | |
search_tsv | TSVECTOR | yes | json | |
redaction_level | VARCHAR(40) | no | json | |
retention_class | VARCHAR(80) | no | json | |
id | UUID | no | json | |
organization_id | UUID | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/phone_call_turns.ndjson
Linked to the patient by: phone_call_turns.phone_call_id -> phone_calls.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
phone_call_id | UUID | no | json | |
realtime_session_id | VARCHAR(255) | no | json | |
provider_item_id | VARCHAR(255) | no | json | |
display_order | INTEGER | no | json | |
role | VARCHAR(20) | no | json | |
text | TEXT | no | json | |
tool_name | VARCHAR(120) | yes | json | |
tool_payload | JSONB | yes | json | |
at | DATETIME | no | json | |
id | UUID | no | json | |
organization_id | UUID | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/phone_calls.ndjson
Linked to the patient by: phone_calls.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
phone_number_id | UUID | yes | json | |
direction | VARCHAR(10) | no | json | |
telnyx_session_id | VARCHAR(255) | yes | json | |
from_e164 | VARCHAR(20) | no | json | |
to_e164 | VARCHAR(20) | no | json | |
patient_id | UUID | yes | json | |
started_at | DATETIME | no | json | |
anchor_answered_at | DATETIME | yes | json | |
first_handled_at | DATETIME | yes | json | |
ended_at | DATETIME | yes | json | |
state | VARCHAR(64) | no | json | |
state_version | INTEGER | no | json | |
state_data | JSONB | no | json | |
routing_snapshot | JSONB | no | json | |
disposition | VARCHAR(64) | yes | json | |
end_context | JSONB | yes | json | |
handled_by | VARCHAR(32) | no | json | |
answered_by_user_id | UUID | yes | json | |
ai_engaged | BOOLEAN | no | json | |
transfer_outcome | VARCHAR(20) | no | json | |
failover_routed | BOOLEAN | no | json | |
ownership_epoch | INTEGER | no | json | |
recording_asset_id | UUID | yes | json | |
voicemail_id | UUID | yes | json | |
hangup_cause | VARCHAR(80) | yes | json | |
total_duration_sec | INTEGER | yes | json | |
talk_duration_sec | INTEGER | yes | json | |
ai_duration_sec | INTEGER | yes | json | |
error | TEXT | yes | json | |
id | UUID | no | json | |
organization_id | UUID | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/phone_recording_assets.ndjson
Linked to the patient by: phone_recording_assets.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
kind | VARCHAR(30) | no | json | |
purpose_ref | UUID | no | json | |
s3_key | VARCHAR(1024) | yes | attachment | |
telnyx_recording_id | VARCHAR(255) | yes | json | |
phone_call_id | UUID | yes | json | |
leg_id | UUID | yes | json | |
duration_sec | INTEGER | yes | json | |
status | VARCHAR(30) | no | json | |
patient_id | UUID | yes | json | |
retention_class | VARCHAR(80) | no | json | |
id | UUID | no | json | |
organization_id | UUID | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/phone_voicemails.ndjson
Linked to the patient by: phone_voicemails.phone_call_id -> phone_calls.patient_id -> patients.id; phone_voicemails.recording_asset_id -> phone_recording_assets.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
box_id | UUID | no | json | |
phone_call_id | UUID | no | json | |
recording_asset_id | UUID | no | json | |
transcription | TEXT | yes | json | |
duration_sec | INTEGER | yes | json | |
status | VARCHAR(30) | no | json | |
step_attempts | JSONB | no | json | |
lease_owner | VARCHAR(255) | yes | json | |
lease_expires_at | DATETIME | yes | json | |
next_attempt_at | DATETIME | yes | json | |
id | UUID | no | json | |
organization_id | UUID | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Practice reference data the record points to
reference/billing_coupons.ndjson — Discounts applied to the patient's charges.
Linked to the patient by: referenced by patient_charge_discounts.coupon_id -> billing_coupons.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
code | VARCHAR(32) | no | json | |
code_normalized | VARCHAR(32) | no | json | |
description | VARCHAR(255) | yes | json | |
discount_type | VARCHAR(16) | no | json | |
percent_bps | INTEGER | yes | json | |
amount | NUMERIC(10, 2) | yes | json | |
valid_from | DATE | yes | json | |
valid_through | DATE | yes | json | |
max_uses | INTEGER | yes | json | |
max_uses_per_patient | INTEGER | yes | json | |
applies_to | VARCHAR(24) | no | json | |
first_visit_only | BOOLEAN | no | json | |
portal_enabled | BOOLEAN | no | json | |
is_active | BOOLEAN | no | json | |
deactivated_at | DATETIME | yes | json | |
deactivated_by | UUID | yes | json | |
version | INTEGER | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json |
reference/care_gap_definitions.ndjson — Preventive care measures named by the patient's care gaps.
Linked to the patient by: referenced by care_gap_instances.definition_id -> care_gap_definitions.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
slug | VARCHAR(100) | no | json | |
display_name | VARCHAR(200) | no | json | |
description | TEXT | yes | json | |
category | VARCHAR(13) | no | json | |
priority | INTEGER | no | json | |
population_logic | JSONB | no | json | |
numerator_logic | JSONB | no | json | |
applies_to_problem_codes | JSONB | yes | json | |
default_interval_months | INTEGER | yes | json | |
sources | JSONB | yes | json | |
reference_links | JSONB | yes | json | |
default_enabled | BOOLEAN | no | json | |
owner_scope | VARCHAR(6) | no | json | |
organization_id | UUID | yes | json | |
created_by | UUID | yes | json | |
visibility | VARCHAR(6) | no | json | |
version | INTEGER | no | json | |
effective_start | DATETIME | no | json | |
effective_end | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json |
reference/compound_formula_versions.ndjson — Compounded medication formulas prescribed to the patient.
Linked to the patient by: referenced by prescriptions.compound_formula_version_id -> compound_formula_versions.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
formula_id | UUID | no | json | |
organization_id | UUID | no | json | |
version | INTEGER | no | json | |
definition | JSONB | no | json | |
review_status | VARCHAR(16) | no | json | |
change_note | VARCHAR(500) | yes | json | |
created_at | DATETIME | no | json | |
created_by | UUID | no | json |
Not exported (secrets or internal checksums): composition_hash
reference/departments.ndjson — Practice departments named by the patient's records.
Linked to the patient by: referenced by apcm_enrollments.department_id -> departments.id; referenced by appointment_series.department_id -> departments.id; referenced by appointment_waitlist_entries.department_id -> departments.id; referenced by care_program_enrollments.department_id -> departments.id; referenced by charges.department_id -> departments.id; referenced by claims.department_id -> departments.id; referenced by eligibility_check_logs.department_id -> departments.id; referenced by encounters.department_id -> departments.id; referenced by remote_monitoring_enrollments.department_id -> departments.id; referenced by reschedule_requests.department_id -> departments.id; referenced by scheduled_visits.department_id -> departments.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
name | VARCHAR(100) | no | json | |
description | TEXT | yes | json | |
short_name | VARCHAR(30) | yes | json | |
legal_entity_id | UUID | yes | json | |
default_location_id | UUID | yes | json | |
specialty | VARCHAR(100) | yes | json | |
display_name | VARCHAR(120) | yes | json | |
phone | VARCHAR(20) | yes | json | |
sms_display_name | VARCHAR(20) | yes | json | |
logo_asset_id | VARCHAR(500) | yes | json | |
letterhead_address_line1 | VARCHAR(100) | yes | json | |
letterhead_address_line2 | VARCHAR(100) | yes | json | |
letterhead_city | VARCHAR(50) | yes | json | |
letterhead_state | VARCHAR(2) | yes | json | |
letterhead_zip | VARCHAR(10) | yes | json | |
letterhead_fax | VARCHAR(20) | yes | json | |
is_default | BOOLEAN | no | json | |
sensitive_by_default | BOOLEAN | no | json | |
sort_order | INTEGER | no | json | |
start_time_grid | VARCHAR(16) | yes | json | |
is_active | BOOLEAN | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json |
reference/education_attachments.ndjson — Education files assigned to the patient (the file itself is included).
Linked to the patient by: referenced by education_assignments.attachment_id -> education_attachments.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
data | BLOB | no | file | |
created_by_user_id | UUID | no | json | |
created_at | DATETIME | no | json |
reference/encounter_types.ndjson — Visit types named by the patient's visits.
Linked to the patient by: referenced by encounters.encounter_type_id -> encounter_types.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | yes | json | |
code | VARCHAR(50) | no | json | |
name | VARCHAR(100) | no | json | |
requires_scheduling | BOOLEAN | no | json | |
requires_checkin | BOOLEAN | no | json | |
requires_documentation | BOOLEAN | no | json | |
default_duration | INTEGER | yes | json | |
is_billable | BOOLEAN | no | json | |
is_active | BOOLEAN | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json |
reference/family_condition_catalog.ndjson — Conditions named in the patient's family history.
Linked to the patient by: referenced by patient_family_history.catalog_entry_id -> family_condition_catalog.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
lay_term | VARCHAR(200) | no | json | |
synonyms | JSONB | no | json | |
search_text | TEXT | no | json | |
sort_rank | INTEGER | no | json | |
is_active | BOOLEAN | no | json | |
icd10_code | VARCHAR(8) | no | json |
reference/fax_contacts.ndjson — Outside labs and imaging facilities the patient's outside orders were sent to.
Linked to the patient by: referenced by outside_order_requisitions.facility_id -> fax_contacts.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
name | VARCHAR(120) | no | json | |
fax_number | VARCHAR(10) | yes | json | |
notes | VARCHAR(255) | yes | json | |
facility_type | VARCHAR(16) | yes | json | |
address_line1 | VARCHAR(200) | yes | json | |
address_line2 | VARCHAR(200) | yes | json | |
city | VARCHAR(100) | yes | json | |
state | VARCHAR(2) | yes | json | |
zip_code | VARCHAR(10) | yes | json | |
phone | VARCHAR(10) | yes | json | |
npi | VARCHAR(10) | yes | json | |
contact_type | VARCHAR(24) | yes | json | |
attention | VARCHAR(120) | yes | json | |
email | VARCHAR(254) | yes | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
is_deleted | BOOLEAN | no | json | |
deleted_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json |
reference/hospital_facilities.ndjson — Hospitals and outside facilities named by the patient's records.
Linked to the patient by: referenced by inpatient_admissions.hospital_facility_id -> hospital_facilities.id; referenced by insurance_benefit_checks.service_facility_id -> hospital_facilities.id; referenced by scheduled_visits.service_facility_id -> hospital_facilities.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
name | VARCHAR(200) | no | json | |
npi | VARCHAR(10) | yes | json | |
npi_confirmed_at | DATETIME | yes | json | |
npi_confirmed_by | UUID | yes | json | |
npi_enumeration_type | VARCHAR(8) | yes | json | |
npi_status | VARCHAR(1) | yes | json | |
address_line1 | VARCHAR(160) | yes | json | |
address_line2 | VARCHAR(160) | yes | json | |
city | VARCHAR(80) | yes | json | |
state | VARCHAR(2) | yes | json | |
postal_code | VARCHAR(9) | yes | json | |
location_key | VARCHAR(64) | no | json | |
phone | VARCHAR(30) | yes | json | |
fax | VARCHAR(30) | yes | json | |
source | VARCHAR(20) | no | json | |
epic_endpoint_id | UUID | yes | json | |
nppes_snapshot | JSONB | yes | json | |
is_active | BOOLEAN | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
is_deleted | BOOLEAN | no | json |
reference/inquiries.ndjson — Website inquiries that became the patient's referral or registration.
Linked to the patient by: referenced by inbound_referrals.source_inquiry_id -> inquiries.id; referenced by inquiry_registration_links.inquiry_id -> inquiries.id; referenced by inquiry_sms_messages.inquiry_id -> inquiries.id; referenced by new_patient_funnel_submissions.inquiry_id -> inquiries.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
physician_id | UUID | yes | json | |
inquirer_name | VARCHAR(255) | no | json | |
inquirer_email | VARCHAR(255) | no | json | |
inquirer_phone | VARCHAR(20) | yes | json | |
subject | VARCHAR(500) | no | json | |
message | TEXT | no | json | |
status | VARCHAR(11) | no | json | |
priority | VARCHAR(6) | no | json | |
ai_processed | BOOLEAN | no | json | |
ai_suggested_response | TEXT | yes | json | |
responded_at | DATETIME | yes | json | |
responded_by | UUID | yes | json | |
response_content | TEXT | yes | json | |
email_sent | BOOLEAN | no | json | |
source_url | VARCHAR(500) | yes | json | |
source_channel | VARCHAR(20) | no | json | |
email_to_address | VARCHAR(255) | yes | json | |
last_inbound_rfc_message_id | VARCHAR(255) | yes | json | |
last_outbound_rfc_message_id | VARCHAR(255) | yes | json | |
last_provider_message_id | VARCHAR(255) | yes | json | |
is_flagged | BOOLEAN | no | json | |
is_read | BOOLEAN | no | json | |
is_archived | BOOLEAN | no | json | |
is_deleted | BOOLEAN | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | yes | json | |
read_at | DATETIME | yes | json |
Not exported (secrets or internal checksums): email_thread_token
reference/inquiry_email_messages.ndjson — The inquiry email that sent the patient their registration link.
Linked to the patient by: referenced by inquiry_registration_links.email_message_id -> inquiry_email_messages.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
inquiry_id | UUID | no | json | |
organization_id | UUID | no | json | |
direction | VARCHAR(10) | no | json | |
from_email | VARCHAR(255) | no | json | |
to_email | VARCHAR(255) | no | json | |
subject | VARCHAR(500) | no | json | |
body | TEXT | no | json | |
rfc_message_id | VARCHAR(255) | yes | json | |
in_reply_to | VARCHAR(255) | yes | json | |
references | JSONB | no | json | |
provider_message_id | VARCHAR(255) | yes | json | |
sent_by_user_id | UUID | yes | json | |
delivery_status | VARCHAR(20) | no | json | |
delivery_error | TEXT | yes | json | |
created_at | DATETIME | no | json |
reference/insurance_carriers.ndjson — Insurance companies on the patient's policies.
Linked to the patient by: referenced by insurance_policies.insurance_carrier_id -> insurance_carriers.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
canonical_name | VARCHAR(160) | no | json | |
canonical_name_normalized | VARCHAR(180) | no | json | |
display_name | VARCHAR(160) | yes | json | |
brand_family | VARCHAR(120) | yes | json | |
parent_carrier_id | UUID | yes | json | |
carrier_type | VARCHAR(40) | no | json | |
state | VARCHAR(2) | yes | json | |
naic_company_code | VARCHAR(20) | yes | json | |
cms_issuer_id | VARCHAR(30) | yes | json | |
website | VARCHAR(255) | yes | json | |
notes | TEXT | yes | json | |
source | VARCHAR(40) | no | json | |
confidence_score | NUMERIC(5, 4) | yes | json | |
is_active | BOOLEAN | no | json | |
is_popular | BOOLEAN | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json |
reference/membership_agreement_versions.ndjson — The membership agreement text the patient accepted.
Linked to the patient by: referenced by patient_membership_agreements.version_id -> membership_agreement_versions.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
version | INTEGER | no | json | |
practice_text | TEXT | no | json | |
created_by | UUID | no | json | |
created_at | DATETIME | no | json |
reference/nutrition_foods.ndjson — Foods (USDA FoodData Central entries) named in the patient's food log.
Linked to the patient by: referenced by nutrition_log_entries.food_id -> nutrition_foods.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
source | VARCHAR(32) | no | json | |
source_id | VARCHAR(32) | no | json | |
source_version | VARCHAR(16) | no | json | |
gtin | VARCHAR(14) | yes | json | |
name | VARCHAR(500) | no | json | |
brand | VARCHAR(255) | yes | json | |
category | VARCHAR(255) | yes | json | |
basis | VARCHAR(2) | no | json | |
nutrients | JSONB | no | json | |
portions | JSONB | no | json | |
serving_label | VARCHAR(255) | yes | json | |
serving_amount | NUMERIC(10, 2) | yes | json | |
popularity | INTEGER | no | json | |
search_vector | TSVECTOR | yes | json | |
imported_at | DATETIME | no | json |
reference/order_set_items.ndjson — Order set items used for the patient's scheduled orders.
Linked to the patient by: referenced by scheduled_orders.order_set_item_id -> order_set_items.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
order_set_id | UUID | no | json | |
sort_order | INTEGER | no | json | |
item_type | VARCHAR(20) | no | json | |
display_name | VARCHAR(255) | no | json | |
payload | JSONB | no | json | |
diagnoses | JSONB | no | json | |
default_selected | BOOLEAN | no | json | |
timing_mode | VARCHAR(20) | no | json | |
offset_value | INTEGER | yes | json | |
offset_unit | VARCHAR(10) | yes | json | |
is_standing | BOOLEAN | no | json | |
interval_value | INTEGER | yes | json | |
interval_unit | VARCHAR(10) | yes | json | |
occurrence_count | INTEGER | yes | json | |
ga_week_min | INTEGER | yes | json | |
ga_week_max | INTEGER | yes | json | |
ga_milestone_key | VARCHAR(60) | yes | json | |
ga_dedup_scope | VARCHAR(20) | yes | json | |
notes | TEXT | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json |
reference/order_sets.ndjson — Order sets used for the patient's scheduled orders.
Linked to the patient by: referenced by order_set_visit_items.order_set_id -> order_sets.id; referenced by scheduled_orders.order_set_id -> order_sets.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
name | VARCHAR(160) | no | json | |
description | TEXT | yes | json | |
specialty | VARCHAR(100) | yes | json | |
scope | VARCHAR(20) | no | json | |
owner_user_id | UUID | yes | json | |
is_active | BOOLEAN | no | json | |
preset_key | VARCHAR(80) | yes | json | |
usage_count | INTEGER | no | json | |
last_used_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json |
reference/organization_note_types.ndjson — Note types named by the patient's notes.
Linked to the patient by: referenced by medical_notes.note_type_id -> organization_note_types.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
name | VARCHAR(120) | no | json | |
base_note_type | VARCHAR(64) | no | json | |
is_default | BOOLEAN | no | json | |
is_active | BOOLEAN | no | json | |
sort_order | INTEGER | no | json | |
is_system | BOOLEAN | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json |
reference/organization_subscription_plans.ndjson — Membership plans the patient was enrolled in.
Linked to the patient by: referenced by patient_membership_agreements.plan_id -> organization_subscription_plans.id; referenced by patient_subscription_discounts.plan_id -> organization_subscription_plans.id; referenced by patient_subscriptions.plan_id -> organization_subscription_plans.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
billing_entity_id | UUID | yes | json | |
name | VARCHAR(120) | no | json | |
description | TEXT | yes | json | |
amount | NUMERIC(10, 2) | no | json | |
currency | VARCHAR(10) | no | json | |
interval_unit | VARCHAR(5) | no | json | |
interval_count | INTEGER | no | json | |
trial_days | INTEGER | yes | json | |
status | VARCHAR(9) | no | json | |
stripe_product_id | VARCHAR(255) | yes | json | |
stripe_price_id | VARCHAR(255) | yes | json | |
version | INTEGER | yes | json | |
replaced_by_plan_id | UUID | yes | json | |
effective_from | DATETIME | yes | json | |
effective_until | DATETIME | yes | json | |
price_locked_at | DATETIME | yes | json | |
display_order | INTEGER | yes | json | |
plan_family_key | VARCHAR(120) | yes | json | |
is_featured | BOOLEAN | yes | json | |
published_at | DATETIME | yes | json | |
archived_at | DATETIME | yes | json | |
intro_discount_type | VARCHAR(16) | yes | json | |
intro_discount_value | NUMERIC(10, 2) | yes | json | |
intro_discount_periods | INTEGER | yes | json | |
intro_offer_starts_on | DATE | yes | json | |
intro_offer_ends_on | DATE | yes | json | |
intro_discount_stripe_coupon_id | VARCHAR(255) | yes | json | |
signup_fee_amount | NUMERIC(10, 2) | yes | json | |
signup_fee_stripe_product_id | VARCHAR(255) | yes | json | |
billing_starts_on | DATE | yes | json | |
access_before_billing_start | BOOLEAN | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json |
reference/paperwork_template_versions.ndjson — The exact version of each form or consent the patient was sent or signed.
Linked to the patient by: referenced by signed_paperwork.template_version_id -> paperwork_template_versions.id; referenced by visit_paperwork_assignments.template_version_id -> paperwork_template_versions.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
template_id | UUID | no | json | |
version_number | INTEGER | no | json | |
content | JSONB | no | json | |
content_sha256 | VARCHAR(64) | no | json | |
effective_from | DATETIME | yes | json | |
effective_until | DATETIME | yes | json | |
published_by | UUID | yes | json | |
published_at | DATETIME | yes | json | |
notes | TEXT | yes | json | |
created_at | DATETIME | no | json |
reference/paperwork_templates.ndjson — Forms and consents the patient was sent or signed.
Linked to the patient by: referenced by remote_monitoring_enrollments.agreement_template_id -> paperwork_templates.id; referenced by signed_paperwork.template_id -> paperwork_templates.id; referenced by visit_paperwork_assignments.template_id -> paperwork_templates.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | yes | json | |
name | VARCHAR(255) | no | json | |
slug | VARCHAR(120) | no | json | |
document_type | VARCHAR(30) | no | json | |
description | TEXT | yes | json | |
applies_to | VARCHAR(17) | no | json | |
age_scope | VARCHAR(10) | no | json | |
requires_adult_resign_on_age_out | BOOLEAN | no | json | |
visit_type_names | ARRAY | yes | json | |
state_scope | ARRAY | yes | json | |
resign_cadence | VARCHAR(17) | no | json | |
is_required | BOOLEAN | no | json | |
assign_at_registration | BOOLEAN | no | json | |
skip_imported_patients | BOOLEAN | no | json | |
first_treatment_only | BOOLEAN | no | json | |
allow_multiple_open_copies | BOOLEAN | no | json | |
signed_copy_fax_provider_id | UUID | yes | json | |
signed_copy_fax_contact_id | UUID | yes | json | |
signed_copy_fax_condition_field_id | VARCHAR(120) | yes | json | |
signed_copy_fax_condition_value | VARCHAR(100) | yes | json | |
enforcement_mode | VARCHAR(10) | no | json | |
is_active | BOOLEAN | no | json | |
current_version_id | UUID | yes | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json |
reference/patient_billing_types.ndjson — The patient's billing type.
Linked to the patient by: referenced by patients.billing_type_id -> patient_billing_types.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
code | VARCHAR(80) | no | json | |
name | VARCHAR(100) | no | json | |
description | VARCHAR(255) | yes | json | |
is_active | BOOLEAN | no | json | |
is_deleted | BOOLEAN | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json |
reference/payment_plan_agreement_versions.ndjson — The payment plan agreement text the patient accepted.
Linked to the patient by: referenced by payment_arrangements.agreement_version_id -> payment_plan_agreement_versions.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
version | INTEGER | no | json | |
practice_text | TEXT | no | json | |
created_by | UUID | yes | json | |
created_at | DATETIME | no | json |
reference/persistent_dot_phrase_definitions.ndjson — Definitions of the saved values recorded for the patient.
Linked to the patient by: referenced by persistent_dot_phrase_values.definition_id -> persistent_dot_phrase_definitions.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | yes | json | |
owner_user_id | UUID | yes | json | |
shortcut | VARCHAR(64) | no | json | |
shortcut_normalized | VARCHAR(64) | no | json | |
description | VARCHAR(255) | yes | json | |
placeholder_label | VARCHAR(100) | yes | json | |
template_content | JSONB | yes | json | |
is_system | BOOLEAN | no | json | |
is_active | BOOLEAN | no | json | |
is_deleted | BOOLEAN | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json |
reference/pharmacies.ndjson — Pharmacies the patient's prescriptions went to.
Linked to the patient by: referenced by patient_pharmacy_recommendations.pharmacy_id -> pharmacies.internal_id; referenced by prescriptions.pharmacy_id -> pharmacies.internal_id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
internal_id | VARCHAR(50) | no | json | |
npi_number | VARCHAR(50) | yes | json | |
name | VARCHAR(255) | no | json | |
address_line1 | VARCHAR(255) | yes | json | |
address_line2 | VARCHAR(255) | yes | json | |
city | VARCHAR(100) | yes | json | |
state | VARCHAR(2) | yes | json | |
zip_code | VARCHAR(20) | yes | json | |
country | VARCHAR(2) | yes | json | |
mail_address_line1 | VARCHAR(255) | yes | json | |
mail_address_line2 | VARCHAR(255) | yes | json | |
mail_city | VARCHAR(100) | yes | json | |
mail_state | VARCHAR(2) | yes | json | |
mail_zip_code | VARCHAR(20) | yes | json | |
phone | VARCHAR(20) | yes | json | |
fax | VARCHAR(20) | yes | json | |
email | VARCHAR(255) | yes | json | |
website | VARCHAR(255) | yes | json | |
service_level | TEXT | yes | json | |
is_retail | BOOLEAN | yes | json | |
is_mail_order | BOOLEAN | yes | json | |
is_in_house_dispensing | BOOLEAN | yes | json | |
dispenses_for_humans | BOOLEAN | yes | json | |
is_24hour | BOOLEAN | yes | json | |
is_compounding | BOOLEAN | yes | json | |
is_dme | BOOLEAN | yes | json | |
is_kiosk | BOOLEAN | yes | json | |
is_long_term_care | BOOLEAN | yes | json | |
is_specialty | BOOLEAN | yes | json | |
supports_digital_signature | BOOLEAN | yes | json | |
uses_fax_gateway | BOOLEAN | yes | json | |
supports_veterinary | BOOLEAN | yes | json | |
dispenses_pet_meds | BOOLEAN | yes | json | |
dispenses_human_meds_for_pets | BOOLEAN | yes | json | |
pharmacy_type | TEXT | yes | json | |
dea_number | VARCHAR(50) | yes | json | |
ncpdp_number | VARCHAR(50) | yes | json | |
latitude | FLOAT | yes | json | |
longitude | FLOAT | yes | json | |
location_id | VARCHAR(50) | yes | json | |
is_active | BOOLEAN | yes | json | |
created_at | DATETIME | yes | json | |
updated_at | DATETIME | yes | json | |
active_start_date | DATETIME | yes | json | |
active_end_date | DATETIME | yes | json | |
additional_info | TEXT | yes | json |
reference/physician_visit_types.ndjson — Appointment types named by the patient's appointments and requests.
Linked to the patient by: referenced by appointment_series.physician_visit_type_id -> physician_visit_types.id; referenced by appointment_waitlist_entries.physician_visit_type_id -> physician_visit_types.id; referenced by inbound_referrals.requested_visit_type_id -> physician_visit_types.id; referenced by low_friction_bookings.physician_visit_type_id -> physician_visit_types.id; referenced by patient_visit_type_billing_rates.physician_visit_type_id -> physician_visit_types.id; referenced by preregistrations.physician_visit_type_id -> physician_visit_types.id; referenced by reschedule_requests.physician_visit_type_id -> physician_visit_types.id; referenced by scheduled_visit_billing_snapshots.physician_visit_type_id -> physician_visit_types.id; referenced by scheduled_visits.physician_visit_type_id -> physician_visit_types.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
physician_id | UUID | no | json | |
encounter_type_id | UUID | no | json | |
name | VARCHAR(100) | no | json | |
description | VARCHAR(500) | yes | json | |
default_duration | SMALLINT | no | json | |
color | VARCHAR(7) | yes | json | |
requires_previsit | BOOLEAN | no | json | |
requires_med_rec_check | BOOLEAN | no | json | |
previsit_interview_enabled | BOOLEAN | no | json | |
previsit_paperwork_enabled | BOOLEAN | no | json | |
is_telehealth | BOOLEAN | no | json | |
is_travel_visit | BOOLEAN | no | json | |
is_group | BOOLEAN | no | json | |
care_setting | VARCHAR(24) | no | json | |
duration_mode | VARCHAR(16) | no | json | |
default_place_of_service | VARCHAR(2) | yes | json | |
service_facility_id | UUID | yes | json | |
is_default | BOOLEAN | no | json | |
max_per_day | SMALLINT | yes | json | |
buffer_time | SMALLINT | no | json | |
hold_after_minutes | SMALLINT | no | json | |
hold_before_minutes | SMALLINT | no | json | |
on_call_only | BOOLEAN | no | json | |
on_call_shift_type_ids | JSONB | no | json | |
on_call_weekdays | JSONB | no | json | |
available_for_online | BOOLEAN | no | json | |
patient_self_schedulable | BOOLEAN | no | json | |
online_booking_audience | VARCHAR(16) | no | json | |
online_booking_patient_list_ref | VARCHAR(140) | yes | json | |
min_schedule_notice | SMALLINT | no | json | |
max_schedule_days | SMALLINT | yes | json | |
default_start_offset_value | SMALLINT | yes | json | |
default_start_offset_unit | VARCHAR(8) | yes | json | |
online_booking_window_mode | VARCHAR(32) | no | json | |
online_booking_windows | JSONB | no | json | |
date_range_availability_mode | VARCHAR(32) | no | json | |
availability_date_ranges | JSONB | no | json | |
staff_start_time_mode | VARCHAR(24) | no | json | |
staff_start_time_interval_minutes | SMALLINT | yes | json | |
staff_start_times_follow_online_windows | BOOLEAN | no | json | |
is_active | BOOLEAN | no | json | |
organization_visit_type_id | UUID | yes | json | |
customized_fields | JSONB | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json |
reference/questionnaire_definitions.ndjson — Questionnaires (questions and scoring) the patient was given or answered.
Linked to the patient by: referenced by questionnaire_assignments.questionnaire_definition_id -> questionnaire_definitions.id; referenced by questionnaire_recurring_enrollments.questionnaire_definition_id -> questionnaire_definitions.id; referenced by questionnaire_responses.questionnaire_definition_id -> questionnaire_definitions.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
slug | VARCHAR(100) | no | json | |
display_name | VARCHAR(200) | no | json | |
short_name | VARCHAR(80) | no | json | |
description | TEXT | yes | json | |
category | VARCHAR(13) | no | json | |
questions | JSONB | no | json | |
scoring_config | JSONB | yes | json | |
estimated_minutes | INTEGER | yes | json | |
default_frequency_days | INTEGER | yes | json | |
owner_scope | VARCHAR(6) | no | json | |
organization_id | UUID | yes | json | |
created_by | UUID | yes | json | |
version | INTEGER | no | json | |
effective_start | DATETIME | no | json | |
effective_end | DATETIME | yes | json | |
is_active | BOOLEAN | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json |
reference/referring_providers.ndjson — Outside providers on the patient's care team, referrals and messages.
Linked to the patient by: referenced by encounter_care_team_deliveries.referring_provider_id -> referring_providers.id; referenced by encounters.referring_provider_id -> referring_providers.id; referenced by inbound_referrals.referring_provider_id -> referring_providers.id; referenced by patient_care_team_members.referring_provider_id -> referring_providers.id; referenced by referring_provider_communications.referring_provider_id -> referring_providers.id; referenced by referring_provider_messages.referring_provider_id -> referring_providers.id; referenced by visit_paperwork_assignments.recipient_referring_provider_id -> referring_providers.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
npi | VARCHAR(10) | yes | json | |
nppes_snapshot | JSONB | yes | json | |
first_name | VARCHAR(100) | no | json | |
last_name | VARCHAR(100) | no | json | |
credential | VARCHAR(50) | yes | json | |
specialty | VARCHAR(120) | yes | json | |
practice_name | VARCHAR(160) | yes | json | |
practice_address_line1 | VARCHAR(160) | yes | json | |
practice_address_line2 | VARCHAR(160) | yes | json | |
practice_city | VARCHAR(80) | yes | json | |
practice_state | VARCHAR(2) | yes | json | |
practice_postal_code | VARCHAR(10) | yes | json | |
practice_phone | VARCHAR(30) | yes | json | |
practice_fax | VARCHAR(30) | yes | json | |
email | VARCHAR(255) | yes | json | |
phone_encryption_key_id | VARCHAR(64) | yes | json | |
masked_phone | VARCHAR(40) | yes | json | |
source | VARCHAR(30) | no | json | |
portal_status | VARCHAR(20) | no | json | |
portal_invited_at | DATETIME | yes | json | |
portal_invited_by | UUID | yes | json | |
portal_invite_expires_at | DATETIME | yes | json | |
portal_enrolled_at | DATETIME | yes | json | |
preferred_contact_method | VARCHAR(20) | yes | json | |
office_contact_notes | TEXT | yes | json | |
direct_address | VARCHAR(255) | yes | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
merged_into_id | UUID | yes | json | |
verification_status | VARCHAR(20) | no | json | |
verified_by | UUID | yes | json | |
verified_at | DATETIME | yes | json | |
wants_updates | BOOLEAN | no | json | |
notify_by_email | BOOLEAN | no | json | |
notify_by_sms | BOOLEAN | no | json | |
last_login_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
is_deleted | BOOLEAN | no | json |
Not exported (secrets or internal checksums): enrollment_ip_hash, phone_e164_ciphertext, phone_e164_hash, portal_invite_token_hash
reference/remittances.ndjson — Insurance payment remittances (ERA) the patient's payments and statements came from.
Linked to the patient by: referenced by explanation_of_benefits.remittance_id -> remittances.id; referenced by payments.remittance_id -> remittances.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
source | VARCHAR(32) | no | json | |
trace_number | VARCHAR(50) | no | json | |
payer_name | VARCHAR(255) | yes | json | |
payer_identifier | VARCHAR(80) | yes | json | |
payment_method | VARCHAR(10) | yes | json | |
payment_date | DATE | no | json | |
check_amount | NUMERIC(12, 2) | yes | json | |
originator_company_id | VARCHAR(20) | yes | json | |
receiver_account_last4 | VARCHAR(4) | yes | json | |
source_filename | VARCHAR(255) | yes | json | |
claim_payment_total | NUMERIC(12, 2) | yes | json | |
provider_adjustment_total | NUMERIC(12, 2) | yes | json | |
balance_status | VARCHAR(16) | yes | json | |
balance_difference | NUMERIC(12, 2) | yes | json | |
era_ingestion_run_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json |
Not exported (secrets or internal checksums): file_hash
reference/standing_order_protocols.ndjson — Standing order protocols under which orders for the patient were sent.
Linked to the patient by: referenced by delegated_order_sends.protocol_id -> standing_order_protocols.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
series_id | UUID | no | json | |
version | INTEGER | no | json | |
name | VARCHAR(200) | no | json | |
lab_channel | VARCHAR(16) | no | json | |
tests | JSONB | no | json | |
diagnosis_codes | JSONB | no | json | |
priority | VARCHAR(16) | no | json | |
instructions | TEXT | yes | json | |
inclusion_criteria | JSONB | no | json | |
exclusion_criteria | JSONB | no | json | |
review_due_on | DATE | no | json | |
status | VARCHAR(16) | no | json | |
created_by_user_id | UUID | no | json | |
signed_by_physician_id | UUID | yes | json | |
signed_by_user_id | UUID | yes | json | |
signed_at | DATETIME | yes | json | |
content_sha256 | VARCHAR(64) | yes | json | |
retired_at | DATETIME | yes | json | |
retired_by_user_id | UUID | yes | json | |
retire_reason | VARCHAR(500) | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json |
reference/surgical_procedure_catalog.ndjson — Procedures named in the patient's surgical history.
Linked to the patient by: referenced by patient_procedures.catalog_entry_id -> surgical_procedure_catalog.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
lay_term | VARCHAR(200) | no | json | |
synonyms | JSONB | no | json | |
search_text | TEXT | no | json | |
sort_rank | INTEGER | no | json | |
is_active | BOOLEAN | no | json | |
cpt_code | VARCHAR(10) | no | json | |
default_body_site | VARCHAR(100) | yes | json | |
laterality_applicable | BOOLEAN | no | json |
Pregnancy care
data/pregnancy_episodes.ndjson — A single pregnancy for a patient, at most one `active` per patient.
Linked to the patient by: pregnancy_episodes.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
status | VARCHAR(9) | no | json | |
lmp_date | DATE | yes | json | |
edd_by_lmp | DATE | yes | json | |
edd_by_ultrasound | DATE | yes | json | |
edd_method | VARCHAR(10) | no | json | |
edd_final | DATE | no | json | |
gravida | SMALLINT | yes | json | |
para_term | SMALLINT | yes | json | |
para_preterm | SMALLINT | yes | json | |
abortions | SMALLINT | yes | json | |
living | SMALLINT | yes | json | |
blood_type | VARCHAR(8) | yes | json | |
outcome | VARCHAR(16) | yes | json | |
outcome_date | DATE | yes | json | |
delivery_method | VARCHAR(17) | yes | json | |
dating_notes | TEXT | yes | json | |
outcome_notes | TEXT | yes | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/prenatal_flowsheet_entries.ndjson — One prenatal visit's OB observations, keyed to a single encounter.
Linked to the patient by: prenatal_flowsheet_entries.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
pregnancy_episode_id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | no | json | |
fundal_height_cm | NUMERIC(4, 1) | yes | json | |
fetal_heart_rate | SMALLINT | yes | json | |
fht_method | VARCHAR(16) | yes | json | |
urine_protein | VARCHAR(8) | yes | json | |
urine_glucose | VARCHAR(8) | yes | json | |
edema | VARCHAR(8) | yes | json | |
presentation | VARCHAR(12) | yes | json | |
note | VARCHAR(1000) | yes | json | |
collected_at | DATETIME | yes | json | |
entered_by | UUID | no | json | |
updated_by | UUID | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Prescription drug monitoring checks
data/pdmp_check_events.ndjson — Append-only timeline for PDMP checks.
Linked to the patient by: pdmp_check_events.pdmp_check_id -> pdmp_checks.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
pdmp_check_id | UUID | no | json | |
event_type | VARCHAR(64) | no | json | |
actor_user_id | UUID | yes | json | |
metadata_json | JSONB | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/pdmp_checks.ndjson — One Bamboo patient request / PDMP check artifact.
Linked to the patient by: pdmp_checks.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
physician_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
prescription_id | UUID | yes | json | |
trigger_source | VARCHAR(64) | no | json | |
idempotency_key | VARCHAR(128) | yes | json | |
request_fingerprint | VARCHAR(128) | yes | json | |
licensee_request_id | VARCHAR(128) | yes | json | |
bamboo_request_id | VARCHAR(128) | yes | json | |
environment | VARCHAR(32) | no | json | |
status | VARCHAR(64) | no | json | |
requested_states_json | JSONB | yes | json | |
response_destinations_json | JSONB | yes | json | |
policy_rule_ids_json | JSONB | yes | json | |
policy_decision_json | JSONB | yes | json | |
satisfies_prescription_gate | BOOLEAN | no | json | |
checked_at | DATETIME | yes | json | |
fresh_until | DATETIME | yes | json | |
manual_report_review_required | BOOLEAN | no | json | |
report_viewed_by_clinician_at | DATETIME | yes | json | |
report_viewed_by_user_id | UUID | yes | json | |
narx_scores_json | JSONB | yes | json | |
mandatory_review_json | JSONB | yes | json | |
home_pmp_message | TEXT | yes | json | |
report_request_url_expires_at | DATETIME | yes | json | |
last_report_request_id | VARCHAR(128) | yes | json | |
last_error_code | VARCHAR(128) | yes | json | |
last_error_message | TEXT | yes | json | |
last_error_source | VARCHAR(128) | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): report_request_url_encrypted
data/prescription_pdmp_checks.ndjson — Join table connecting prescriptions to PDMP checks or waivers.
Linked to the patient by: prescription_pdmp_checks.prescription_id -> prescriptions.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
prescription_id | UUID | no | json | |
pdmp_check_id | UUID | yes | json | |
requirement_status | VARCHAR(32) | no | json | |
waiver_reason | TEXT | yes | json | |
created_at | DATETIME | no | json | |
created_by | UUID | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Prescriptions
data/patient_prescription_refill_requests.ndjson — Patient-portal initiated medication refill request.
Linked to the patient by: patient_prescription_refill_requests.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
medication_id | UUID | yes | json | |
source_prescription_id | UUID | yes | json | |
prescribing_physician_id | UUID | yes | json | |
assigned_physician_id | UUID | yes | json | |
status | VARCHAR(32) | no | json | |
source | VARCHAR(32) | no | json | |
medication_name_snapshot | VARCHAR(255) | no | json | |
rxcui_snapshot | VARCHAR(32) | yes | json | |
ndc_snapshot | VARCHAR(32) | yes | json | |
dea_schedule_snapshot | VARCHAR(16) | yes | json | |
sig_snapshot | TEXT | yes | json | |
quantity_snapshot | FLOAT | yes | json | |
quantity_unit_snapshot | VARCHAR(50) | yes | json | |
days_supply_snapshot | INTEGER | yes | json | |
refills_authorized_snapshot | INTEGER | yes | json | |
refills_remaining_snapshot | INTEGER | yes | json | |
last_filled_date_snapshot | DATETIME | yes | json | |
next_fill_due_snapshot | DATETIME | yes | json | |
pharmacy_name_snapshot | VARCHAR(255) | yes | json | |
pharmacy_ncpdp_snapshot | VARCHAR(16) | yes | json | |
patient_notes | TEXT | yes | json | |
patient_reported_remaining_supply | INTEGER | yes | json | |
patient_confirmed_pharmacy | BOOLEAN | no | json | |
patient_attestation | BOOLEAN | no | json | |
settings_snapshot | JSONB | yes | json | |
eligibility_result | JSONB | yes | json | |
block_reason_code | VARCHAR(64) | yes | json | |
block_reason_message | TEXT | yes | json | |
reviewed_by_id | UUID | yes | json | |
reviewed_at | DATETIME | yes | json | |
denial_reason_code | VARCHAR(32) | yes | json | |
denial_reason_text | TEXT | yes | json | |
resulting_prescription_id | UUID | yes | json | |
triage_owner_user_id | UUID | yes | json | |
triage_started_at | DATETIME | yes | json | |
ready_for_provider_at | DATETIME | yes | json | |
triage_completed_by_id | UUID | yes | json | |
triage_checklist | JSONB | yes | json | |
patient_facing_message | TEXT | yes | json | |
prescribing_user_id | UUID | yes | json | |
prescribing_started_at | DATETIME | yes | json | |
request_visit_with_prescription | BOOLEAN | no | json | |
patient_notification_state | VARCHAR(16) | yes | json | |
patient_notified_at | DATETIME | yes | json | |
sla_escalated_at | DATETIME | yes | json | |
cancelled_at | DATETIME | yes | json | |
message_isread | BOOLEAN | no | json | |
message_isflagged | BOOLEAN | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): prescribing_lease_token
data/patient_refill_request_activities.ndjson
Linked to the patient by: patient_refill_request_activities.refill_request_id -> patient_prescription_refill_requests.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
refill_request_id | UUID | no | json | |
actor_user_id | UUID | yes | json | |
activity_type | VARCHAR(32) | no | json | |
note | TEXT | yes | json | |
details | JSONB | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/prescription_messages.ndjson
Linked to the patient by: prescription_messages.prescription_id -> prescriptions.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
prescription_id | UUID | yes | json | |
message_type | VARCHAR(17) | no | json | |
message_id | VARCHAR(100) | no | json | |
relates_to_message_id | VARCHAR(100) | yes | json | |
from_qualifier | VARCHAR(2) | yes | json | |
from_value | VARCHAR(20) | yes | json | |
to_qualifier | VARCHAR(2) | yes | json | |
to_value | VARCHAR(20) | yes | json | |
sent_time | DATETIME | yes | json | |
raw_request | TEXT | yes | json | |
raw_response | TEXT | yes | json | |
parsed_request | JSON | yes | json | |
parsed_response | JSON | yes | json | |
is_outbound | BOOLEAN | yes | json | |
is_successful | BOOLEAN | yes | json | |
error_code | VARCHAR(50) | yes | json | |
error_message | VARCHAR(10000) | yes | json | |
timestamp | DATETIME | no | json | |
response_timestamp | DATETIME | yes | json | |
archive_status | VARCHAR(14) | no | json | |
s3_archive_key | VARCHAR(500) | yes | attachment | |
archived_at | DATETIME | yes | json | |
retrieval_job_id | VARCHAR(200) | yes | json | |
retrieval_requested_at | DATETIME | yes | json | |
retrieval_expires_at | DATETIME | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/prescription_signature_requests.ndjson
Linked to the patient by: prescription_signature_requests.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
prescription_id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
requested_by_physician_id | UUID | no | json | |
requested_by_user_id | UUID | no | json | |
signer_physician_id | UUID | no | json | |
status | VARCHAR(20) | no | json | |
requester_note | TEXT | yes | json | |
routed_snapshot | JSONB | no | json | |
signer_changes | JSONB | yes | json | |
decision_reason_code | VARCHAR(40) | yes | json | |
decision_reason_text | TEXT | yes | json | |
decided_by_user_id | UUID | yes | json | |
decided_at | DATETIME | yes | json | |
message_isread | BOOLEAN | no | json | |
message_isflagged | BOOLEAN | no | json | |
requester_acknowledged_at | DATETIME | yes | json | |
claimed_at | DATETIME | yes | json | |
signed_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/prescriptions.ndjson
Linked to the patient by: prescriptions.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
prescriber_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
pharmacy_id | VARCHAR | yes | json | |
medication_kind | VARCHAR(16) | no | json | |
compound_formula_version_id | UUID | yes | json | |
compound_snapshot | JSONB | yes | json | |
compound_directions_reviewed | BOOLEAN | no | json | |
signature_payload_version | INTEGER | no | json | |
inbound_compound | JSONB | yes | json | |
ndc_product_code | VARCHAR | yes | json | |
ndc_package_code | VARCHAR | yes | json | |
rxcui | VARCHAR(8) | yes | json | |
drug_description | VARCHAR(1000) | no | json | |
dea_schedule | VARCHAR(10) | yes | json | |
sig | VARCHAR(1000) | no | json | |
quantity | FLOAT | no | json | |
quantity_unit | VARCHAR(50) | no | json | |
quantity_code_qualifier | VARCHAR(2) | yes | json | |
quantity_unit_of_measure_code | VARCHAR(20) | yes | json | |
days_supply | INTEGER | yes | json | |
refills_authorized | INTEGER | no | json | |
refills_remaining | INTEGER | no | json | |
prescription_mode | VARCHAR(10) | no | json | |
dosage_value | FLOAT | yes | json | |
dosage_unit | VARCHAR(50) | yes | json | |
dose_form | VARCHAR(4) | yes | json | |
route | VARCHAR(13) | yes | json | |
route_description | VARCHAR(100) | yes | json | |
frequency | VARCHAR(8) | yes | json | |
frequency_description | VARCHAR(100) | yes | json | |
doses_per_day | INTEGER | yes | json | |
specific_times | JSON | yes | json | |
is_prn | BOOLEAN | no | json | |
prn_reason | VARCHAR(255) | yes | json | |
max_doses_per_day | INTEGER | yes | json | |
action | VARCHAR(50) | yes | json | |
with_food | BOOLEAN | yes | json | |
with_water | BOOLEAN | yes | json | |
special_instructions | TEXT | yes | json | |
duration_value | INTEGER | yes | json | |
duration_unit | VARCHAR(20) | yes | json | |
application_site | VARCHAR(100) | yes | json | |
dispense_as_written | BOOLEAN | yes | json | |
substitutions_allowed | BOOLEAN | yes | json | |
substitution_code | VARCHAR(1) | yes | json | |
rx_fill_indicator | VARCHAR(33) | yes | json | |
prescriber_checked_rems | VARCHAR(1) | yes | json | |
status | VARCHAR(21) | no | json | |
is_immutable | BOOLEAN | no | json | |
made_immutable_at | DATETIME | yes | json | |
made_immutable_by | UUID | yes | json | |
prescriber_agent_user_id | UUID | yes | json | |
authorization_basis | VARCHAR(32) | yes | json | |
cosigned_by_physician_id | UUID | yes | json | |
cosigned_at | DATETIME | yes | json | |
signed_at | DATETIME | yes | json | |
signed_by_provider_id | UUID | yes | json | |
epcs_verification_required | BOOLEAN | no | json | |
epcs_verified_at | DATETIME | yes | json | |
epcs_verified_by_passkey_id | UUID | yes | json | |
epcs_device_name | VARCHAR(100) | yes | json | |
prescriber_dea_number | VARCHAR(9) | yes | json | |
prescriber_dea_state | VARCHAR(2) | yes | json | |
prescriber_dea_selection_reason | VARCHAR(24) | yes | json | |
prescriber_service_address_line_1 | VARCHAR(100) | yes | json | |
prescriber_service_address_line_2 | VARCHAR(100) | yes | json | |
prescriber_service_address_city | VARCHAR(50) | yes | json | |
prescriber_service_address_state | VARCHAR(2) | yes | json | |
prescriber_service_address_zip | VARCHAR(10) | yes | json | |
version | INTEGER | no | json | |
previous_prescription_id | UUID | yes | json | |
superseded_by_prescription_id | UUID | yes | json | |
replaced_by_prescription_id | UUID | yes | json | |
replaces_prescription_id | UUID | yes | json | |
medication_intent | VARCHAR(16) | yes | json | |
intent_target_medication_id | UUID | yes | json | |
written_date | DATETIME | no | json | |
effective_date | DATETIME | yes | json | |
expiration_date | DATETIME | yes | json | |
transmission_method | VARCHAR(10) | yes | json | |
transmission_date | DATETIME | yes | json | |
last_status_update | DATETIME | yes | json | |
message_isread | BOOLEAN | yes | json | |
message_isflagged | BOOLEAN | yes | json | |
refill_request_date | DATETIME | yes | json | |
refill_response_date | DATETIME | yes | json | |
refill_request_status | VARCHAR(50) | yes | json | |
change_request_date | DATETIME | yes | json | |
change_response_date | DATETIME | yes | json | |
change_request_status | VARCHAR(50) | yes | json | |
cancel_request_date | DATETIME | yes | json | |
cancel_response_date | DATETIME | yes | json | |
cancel_request_status | VARCHAR(50) | yes | json | |
request_type | VARCHAR(7) | no | json | |
current_message_id | VARCHAR(100) | yes | json | |
cancel_rx_message_id | VARCHAR(100) | yes | json | |
related_message_id | VARCHAR(100) | yes | json | |
prescriber_order_number | VARCHAR(35) | yes | json | |
message_request_code | VARCHAR(5) | yes | json | |
surescripts_status | VARCHAR(50) | yes | json | |
surescripts_error | VARCHAR(10000) | yes | json | |
response_dispatch | JSONB | yes | json | |
sent_time | DATETIME | yes | json | |
diagnosis_codes | JSON | yes | json | |
notes_to_pharmacy | TEXT | yes | json | |
ai_summary | TEXT | yes | json | |
last_filled_date | DATETIME | yes | json | |
next_fill_due | DATETIME | yes | json | |
total_fills_completed | INTEGER | yes | json | |
fill_status_type | VARCHAR(50) | yes | json | Dispensed, PartiallyDispensed, Transferred, NotDispensed |
fill_status_note | TEXT | yes | json | Pharmacy notes about fill status |
fill_status_reason_code | VARCHAR(10) | yes | json | Reason code for partial/not dispensed |
quantity_dispensed | FLOAT | yes | json | Actual quantity dispensed (may differ from prescribed) |
dispensed_ndc | VARCHAR(11) | yes | json | Actual NDC dispensed (for substitutions) |
dispensed_drug_description | VARCHAR(255) | yes | json | What was actually dispensed |
transferred_to_pharmacy_ncpdp | VARCHAR(7) | yes | json | If transferred, which pharmacy NCPDP |
fill_status_received_at | DATETIME | yes | json | When we received the fill status message |
pharmacy_reference_number | VARCHAR(35) | yes | json | RxReferenceNumber from pharmacy |
pharmacy_coverage_id | UUID | yes | json | |
pharmacy_eligibility_check_id | UUID | yes | json | |
benefit_response_message_id | VARCHAR(100) | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): compound_composition_hash, compound_reviewed_hash, digital_signature_hash
data/supervision_physician_evaluations.ndjson
Linked to the patient by: supervision_physician_evaluations.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
physician_id | UUID | no | json | |
evaluation_date | DATE | no | json | |
note | TEXT | yes | json | |
recorded_by_user_id | UUID | no | json | |
created_at | DATETIME | no | json | |
voided_at | DATETIME | yes | json | |
voided_by_user_id | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/supervision_reminders.ndjson
Linked to the patient by: supervision_reminders.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
due_date | DATE | no | json | |
recipient_user_id | UUID | no | json | |
todo_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Preventive care gaps
data/care_gap_instance_history.ndjson — Audit trail for care gap instance changes.
Linked to the patient by: care_gap_instance_history.instance_id -> care_gap_instances.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
instance_id | UUID | no | json | |
event_type | VARCHAR(15) | no | json | |
from_status | VARCHAR(50) | yes | json | |
to_status | VARCHAR(50) | yes | json | |
evidence | JSONB | yes | json | |
note | TEXT | yes | json | |
created_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/care_gap_instances.ndjson — A specific care gap instance for a patient.
Linked to the patient by: care_gap_instances.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
definition_id | UUID | no | json | |
organization_id | UUID | no | json | |
problem_id | UUID | yes | json | |
status | VARCHAR(14) | no | json | |
priority | INTEGER | no | json | |
due_date | DATE | yes | json | |
last_seen_date | DATE | no | json | |
evidence | JSONB | yes | json | |
source_version | INTEGER | no | json | |
notes | TEXT | yes | json | |
resolved_at | DATETIME | yes | json | |
resolved_by | UUID | yes | json | |
deferred_until | DATE | yes | json | |
deferred_reason | VARCHAR(500) | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Psychiatric history
data/patient_psychiatric_history_versions.ndjson
Linked to the patient by: patient_psychiatric_history_versions.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
patient_id | UUID | no | json | |
organization_id | UUID | no | json | |
revision | INTEGER | no | json | |
content | JSONB | no | json | |
reviewed_by | UUID | yes | json | |
reviewed_at | DATETIME | yes | json | |
created_by | UUID | no | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Public health reporting (syndromic surveillance and case reports)
data/public_health_case_reports.ndjson
Linked to the patient by: public_health_case_reports.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | no | json | |
connection_id | UUID | yes | json | |
set_id | UUID | no | json | |
version_number | INTEGER | no | json | |
status | VARCHAR(24) | no | json | |
triggers | JSONB | no | json | |
last_message_id | UUID | yes | json | |
last_document_id | VARCHAR(64) | yes | json | |
rr_document_id | VARCHAR(128) | yes | json | |
rr_received_at | DATETIME | yes | json | |
rr_processing_status | VARCHAR(16) | yes | json | |
rr_determination | VARCHAR(16) | yes | json | |
rr_conditions | JSONB | yes | json | |
rr_summary | TEXT | yes | json | |
reviewed_at | DATETIME | yes | json | |
reviewed_by | UUID | yes | json | |
first_detected_at | DATETIME | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): reported_trigger_hash, trigger_hash
data/public_health_messages.ndjson
Linked to the patient by: public_health_messages.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
sequence | BIGINT | no | json | |
organization_id | UUID | no | json | |
connection_id | UUID | no | json | |
kind | VARCHAR(24) | no | json | |
patient_id | UUID | yes | json | |
encounter_id | UUID | yes | json | |
source_type | VARCHAR(32) | no | json | |
source_id | UUID | yes | json | |
case_report_id | UUID | yes | json | |
trigger_event | VARCHAR(24) | no | json | |
message_type | VARCHAR(32) | no | json | |
message_control_id | VARCHAR(64) | yes | json | |
environment | VARCHAR(16) | no | json | |
is_test | BOOLEAN | no | json | |
status | VARCHAR(24) | no | json | |
attempt_count | INTEGER | no | json | |
next_attempt_at | DATETIME | yes | json | |
claimed_at | DATETIME | yes | json | |
payload | TEXT | yes | json | |
response_payload | TEXT | yes | json | |
ack_code | VARCHAR(8) | yes | json | |
error_summary | TEXT | yes | json | |
details | JSONB | no | json | |
sent_at | DATETIME | yes | json | |
acknowledged_at | DATETIME | yes | json | |
payload_purged_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): content_hash, lease_token
Quality reporting data (quality measure inputs, incl. imported quality files)
data/quality_patients.ndjson
Linked to the patient by: quality_patients.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
source | VARCHAR(8) | no | json | |
patient_id | UUID | yes | json | |
given_names | VARCHAR(200) | no | json | |
family_name | VARCHAR(200) | no | json | |
birth_date | DATE | yes | json | |
sex_code | VARCHAR(32) | yes | json | |
race_codes | ARRAY | no | json | |
ethnicity_codes | ARRAY | no | json | |
payer_codes | ARRAY | no | json | |
medicare_beneficiary_identifier | VARCHAR(11) | yes | json | |
identity_key | VARCHAR(64) | no | json | |
qdm | JSONB | no | json | |
providers | JSONB | no | json | |
document_ids | ARRAY | no | json | |
identifiers | ARRAY | no | json | |
review_status | VARCHAR(20) | no | json | |
possible_duplicate_of | UUID | yes | json | |
last_import_batch_id | UUID | yes | json | |
chart_extracted_at | DATETIME | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Questionnaires and screenings
data/questionnaire_assignment_rules.ndjson
Linked to the patient by: questionnaire_assignment_rules.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
slug | VARCHAR(120) | no | json | |
version | INTEGER | no | json | |
owner_scope | VARCHAR(12) | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | yes | json | |
owner_physician_id | UUID | yes | json | |
display_name | VARCHAR(200) | no | json | |
description | TEXT | yes | json | |
priority | INTEGER | no | json | |
is_active | BOOLEAN | no | json | |
active_start | DATETIME | yes | json | |
active_end | DATETIME | yes | json | |
trigger_contexts | JSONB | no | json | |
conditions | JSONB | yes | json | |
action | JSONB | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/questionnaire_assignments.ndjson
Linked to the patient by: questionnaire_assignments.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
questionnaire_definition_id | UUID | no | json | |
scheduled_visit_id | UUID | yes | json | |
encounter_id | UUID | yes | json | |
source_rule_id | UUID | yes | json | |
campaign_run_id | UUID | yes | json | |
assigned_by_user_id | UUID | yes | json | |
assignment_idempotency_key | VARCHAR(120) | yes | json | |
assignment_metadata | JSONB | yes | json | |
assignment_source | VARCHAR(17) | no | json | |
status | VARCHAR(11) | no | json | |
assigned_at | DATETIME | no | json | |
started_at | DATETIME | yes | json | |
due_at | DATETIME | yes | json | |
opens_at | DATETIME | yes | json | |
completed_at | DATETIME | yes | json | |
skipped_reason | TEXT | yes | json | |
is_deleted | BOOLEAN | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/questionnaire_recurring_enrollments.ndjson
Linked to the patient by: questionnaire_recurring_enrollments.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
questionnaire_definition_id | UUID | no | json | |
cadence_days | INTEGER | no | json | |
is_active | BOOLEAN | no | json | |
last_sent_at | DATETIME | yes | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/questionnaire_responses.ndjson
Linked to the patient by: questionnaire_responses.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
assignment_id | UUID | no | json | |
questionnaire_definition_id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
responses | JSONB | no | json | |
total_score | INTEGER | yes | json | |
score_interpretation | VARCHAR(200) | yes | json | |
score_details | JSONB | yes | json | |
photo_analysis | JSONB | yes | json | |
completed_by | VARCHAR(7) | no | json | |
completed_at | DATETIME | no | json | |
reviewed_by_user_id | UUID | yes | json | |
reviewed_at | DATETIME | yes | json | |
medical_note_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Records shared with others
Referrals
data/inbound_referral_events.ndjson — Append-only audit trail (submission, triage actions, views, OTP fails).
Linked to the patient by: inbound_referral_events.inbound_referral_id -> inbound_referrals.linked_patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
inbound_referral_id | UUID | no | json | |
organization_id | UUID | no | json | |
event_type | VARCHAR(40) | no | json | |
description | TEXT | yes | json | |
actor_type | VARCHAR(20) | no | json | |
actor_id | UUID | yes | json | |
metadata_json | JSONB | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): ip_hash
data/inbound_referral_updates.ndjson
Linked to the patient by: inbound_referral_updates.inbound_referral_id -> inbound_referrals.linked_patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
inbound_referral_id | UUID | no | json | |
organization_id | UUID | no | json | |
milestone | VARCHAR(20) | no | json | |
note_to_referrer | TEXT | yes | json | |
release_state | VARCHAR(20) | no | json | |
released_by | UUID | yes | json | |
released_at | DATETIME | yes | json | |
email_sent_at | DATETIME | yes | json | |
sms_sent_at | DATETIME | yes | json | |
first_viewed_at | DATETIME | yes | json | |
view_count | INTEGER | no | json | |
created_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): token_expires_at, view_token
data/inbound_referrals.ndjson
Linked to the patient by: inbound_referrals.linked_patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
referring_provider_id | UUID | yes | json | |
source | VARCHAR(10) | no | json | |
source_fax_id | UUID | yes | json | |
source_inquiry_id | UUID | yes | json | |
source_voicemail_id | UUID | yes | json | |
intake_extraction | JSONB | yes | json | |
referrer_name | VARCHAR(160) | yes | json | |
referrer_practice_name | VARCHAR(160) | yes | json | |
referrer_npi | VARCHAR(20) | yes | json | |
referrer_fax_number | VARCHAR(30) | yes | json | |
referrer_phone | VARCHAR(30) | yes | json | |
patient_first_name | VARCHAR(80) | no | json | |
patient_last_name | VARCHAR(80) | no | json | |
patient_date_of_birth | DATE | yes | json | |
patient_phone | VARCHAR(30) | yes | json | |
patient_email | VARCHAR(255) | yes | json | |
patient_sex | VARCHAR(1) | yes | json | |
guardian_first_name | VARCHAR(80) | yes | json | |
guardian_last_name | VARCHAR(80) | yes | json | |
guardian_phone | VARCHAR(30) | yes | json | |
guardian_email | VARCHAR(255) | yes | json | |
reason | TEXT | yes | json | |
urgency | VARCHAR(10) | no | json | |
clinical_notes | TEXT | yes | json | |
insurance_payer_name | VARCHAR(160) | yes | json | |
insurance_member_id | VARCHAR(80) | yes | json | |
insurance_group_number | VARCHAR(80) | yes | json | |
insurance_payer_mapping_id | UUID | yes | json | |
insurance_stedi_payer_mapping_id | UUID | yes | json | |
insurance_relationship_to_patient | VARCHAR(10) | yes | json | |
insurance_policyholder_first_name | VARCHAR(80) | yes | json | |
insurance_policyholder_last_name | VARCHAR(80) | yes | json | |
insurance_policyholder_date_of_birth | DATE | yes | json | |
insurance_eligibility_status | VARCHAR(20) | yes | json | |
insurance_eligibility_checked_at | DATETIME | yes | json | |
insurance_eligibility_summary | JSONB | yes | json | |
status | VARCHAR(20) | no | json | |
status_updated_at | DATETIME | yes | json | |
linked_patient_id | UUID | yes | json | |
accepted_by | UUID | yes | json | |
accepted_at | DATETIME | yes | json | |
declined_reason | TEXT | yes | json | |
scheduled_visit_id | UUID | yes | json | |
seen_encounter_id | UUID | yes | json | |
auto_updates_enabled | BOOLEAN | no | json | |
requested_physician_id | UUID | yes | json | |
requested_visit_type_id | UUID | yes | json | |
patient_outreach_at | DATETIME | yes | json | |
source_url | TEXT | yes | json | |
submission_fingerprint | VARCHAR(64) | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): created_ip_hash, created_ua_hash
data/referrals.ndjson
Linked to the patient by: referrals.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
encounter_id | UUID | yes | json | |
referring_physician_id | UUID | no | json | |
referred_to_npi | VARCHAR(10) | yes | json | |
referred_to_name | VARCHAR(200) | yes | json | |
referred_to_first_name | VARCHAR(100) | yes | json | |
referred_to_last_name | VARCHAR(100) | yes | json | |
referred_to_credentials | VARCHAR(50) | yes | json | |
referred_to_specialty | VARCHAR(100) | no | json | |
referred_to_taxonomy_code | VARCHAR(20) | yes | json | |
referred_to_phone | VARCHAR(20) | yes | json | |
referred_to_fax | VARCHAR(20) | yes | json | |
referred_to_email | VARCHAR(255) | yes | json | |
referred_to_address_line1 | VARCHAR(200) | yes | json | |
referred_to_address_line2 | VARCHAR(200) | yes | json | |
referred_to_city | VARCHAR(100) | yes | json | |
referred_to_state | VARCHAR(2) | yes | json | |
referred_to_postal_code | VARCHAR(10) | yes | json | |
referred_to_provider_data | JSONB | yes | json | |
reason | TEXT | no | json | |
clinical_notes | TEXT | yes | json | |
urgency | VARCHAR(7) | no | json | |
diagnosis_codes | JSONB | yes | json | |
include_in_patient_instructions | BOOLEAN | no | json | |
patient_instructions_text | TEXT | yes | json | |
packet_includes | JSONB | yes | json | |
referral_form | JSONB | yes | json | |
referral_pdf_s3_key | VARCHAR(500) | yes | attachment | |
referral_pdf_generated_at | DATETIME | yes | json | |
fax_id | UUID | yes | json | |
transmission_method | VARCHAR(14) | yes | json | |
status | VARCHAR(21) | no | json | |
status_updated_at | DATETIME | yes | json | |
status_updated_by | UUID | yes | json | |
appointment_scheduled_date | DATETIME | yes | json | |
appointment_notes | TEXT | yes | json | |
patient_seen_date | DATETIME | yes | json | |
specialist_report_received | BOOLEAN | no | json | |
specialist_report_date | DATETIME | yes | json | |
specialist_recommendations | TEXT | yes | json | |
valid_until | DATETIME | yes | json | |
requires_authorization | BOOLEAN | no | json | |
authorization_number | VARCHAR(100) | yes | json | |
authorization_obtained | BOOLEAN | no | json | |
authorization_obtained_date | DATETIME | yes | json | |
authorization_status | VARCHAR(20) | yes | json | |
authorization_requested_on | DATE | yes | json | |
authorization_decided_on | DATE | yes | json | |
authorization_expires_on | DATE | yes | json | |
queued_at | DATETIME | yes | json | |
send_reserved_at | DATETIME | yes | json | |
send_reserved_by | UUID | yes | json | |
patient_notice_queued_at | DATETIME | yes | json | |
cancelled_at | DATETIME | yes | json | |
cancelled_by | UUID | yes | json | |
cancellation_reason | TEXT | yes | json | |
is_immutable | BOOLEAN | no | json | |
made_immutable_at | DATETIME | yes | json | |
made_immutable_by | UUID | yes | json | |
message_isread | BOOLEAN | yes | json | |
message_isflagged | BOOLEAN | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Not exported (secrets or internal checksums): send_reservation_token
Remote patient monitoring
data/remote_monitoring_alerts.ndjson
Linked to the patient by: remote_monitoring_alerts.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
enrollment_id | UUID | no | json | |
patient_id | UUID | no | json | |
vital_id | UUID | yes | json | |
alert_type | VARCHAR(40) | no | json | |
severity | VARCHAR(10) | no | json | |
message | VARCHAR(500) | no | json | |
reading_snapshot | JSONB | yes | json | |
status | VARCHAR(20) | no | json | |
acknowledged_by | UUID | yes | json | |
acknowledged_at | DATETIME | yes | json | |
resolved_by | UUID | yes | json | |
resolved_at | DATETIME | yes | json | |
resolution_note | TEXT | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/remote_monitoring_billing_events.ndjson
Linked to the patient by: remote_monitoring_billing_events.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
enrollment_id | UUID | no | json | |
patient_id | UUID | no | json | |
billing_code | VARCHAR(10) | no | json | |
billing_month | DATE | no | json | |
period_start | DATE | no | json | |
period_end | DATE | no | json | |
date_of_service | DATE | no | json | |
units | INTEGER | no | json | |
billing_amount | NUMERIC(10, 2) | yes | json | |
transmission_days | INTEGER | yes | json | |
total_minutes | INTEGER | yes | json | |
interactive_communication | BOOLEAN | no | json | |
status | VARCHAR(20) | no | json | |
skip_reason | VARCHAR(255) | yes | json | |
error_message | TEXT | yes | json | |
charge_id | UUID | yes | json | |
claim_id | UUID | yes | json | |
encounter_id | UUID | yes | json | |
diagnosis_codes | JSONB | yes | json | |
modifiers | JSONB | yes | json | |
insurance_policy_id | UUID | yes | json | |
generated_at | DATETIME | yes | json | |
generated_by | VARCHAR(50) | no | json | |
reviewed_by | UUID | yes | json | |
reviewed_at | DATETIME | yes | json | |
reopened_at | DATETIME | yes | json | |
reopened_by | UUID | yes | json | |
reopen_reason | VARCHAR(255) | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/remote_monitoring_status_intervals.ndjson
Linked to the patient by: remote_monitoring_status_intervals.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
enrollment_id | UUID | no | json | |
patient_id | UUID | no | json | |
status | VARCHAR(16) | no | json | |
started_at | DATETIME | no | json | |
ended_at | DATETIME | yes | json | |
reason | VARCHAR(255) | yes | json | |
created_at | DATETIME | no | json | |
created_by | UUID | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/remote_monitoring_therapy_logs.ndjson
Linked to the patient by: remote_monitoring_therapy_logs.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
enrollment_id | UUID | no | json | |
patient_id | UUID | no | json | |
kind | VARCHAR(32) | no | json | |
value | NUMERIC(10, 2) | yes | json | |
unit | VARCHAR(20) | yes | json | |
note | TEXT | yes | json | |
source | VARCHAR(16) | no | json | |
occurred_at | DATETIME | no | json | |
service_date | DATE | no | json | |
vendor_event_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/remote_monitoring_time_entries.ndjson
Linked to the patient by: remote_monitoring_time_entries.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
enrollment_id | UUID | no | json | |
patient_id | UUID | no | json | |
user_id | UUID | no | json | |
activity_type | VARCHAR(40) | no | json | |
minutes | INTEGER | no | json | |
interactive_communication | BOOLEAN | no | json | |
note | TEXT | yes | json | |
occurred_at | DATETIME | no | json | |
service_month | DATE | no | json | |
billing_event_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | no | json | |
updated_by | UUID | no | json | |
is_deleted | BOOLEAN | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Spravato and ketamine program records
data/spravato_program_enrollments.ndjson
Linked to the patient by: spravato_program_enrollments.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
patient_id | UUID | no | json | |
program | VARCHAR(16) | no | json | |
stage | VARCHAR(32) | no | json | |
outcome | VARCHAR(24) | yes | json | |
outcome_date | DATE | yes | json | |
referral_date | DATE | no | json | |
consult_date | DATE | yes | json | |
start_date | DATE | yes | json | |
physician_id | UUID | yes | json | |
coordinator_user_id | UUID | yes | json | |
payer_category | VARCHAR(16) | yes | json | |
supply_source | VARCHAR(24) | yes | json | |
specialty_pharmacy_name | VARCHAR(120) | yes | json | |
pa_handled_by | VARCHAR(24) | yes | json | |
rems_patient_id | VARCHAR(40) | yes | json | |
rems_status | VARCHAR(16) | no | json | |
dose_mg | SMALLINT | yes | json | |
loading_dose_mg | SMALLINT | yes | json | |
loading_dose_56 | BOOLEAN | yes | json | |
safety_priority | BOOLEAN | no | json | |
checklist | JSONB | no | json | |
closed_at | DATETIME | yes | json | |
is_deleted | BOOLEAN | no | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
created_by | UUID | yes | json | |
updated_by | UUID | yes | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/spravato_program_events.ndjson
Linked to the patient by: spravato_program_events.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
enrollment_id | UUID | no | json | |
patient_id | UUID | no | json | |
kind | VARCHAR(16) | no | json | |
body | TEXT | yes | json | |
changes | JSONB | yes | json | |
author_user_id | UUID | yes | json | |
created_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
data/spravato_session_marks.ndjson — The REMS Patient Monitoring Form for one Spravato session was submitted.
Linked to the patient by: spravato_session_marks.patient_id -> patients.id
| Column | Type | Can be empty | Encoding | Notes |
|---|---|---|---|---|
id | UUID | no | json | |
organization_id | UUID | no | json | |
scheduled_visit_id | UUID | no | json | |
patient_id | UUID | no | json | |
pmf_submitted_at | DATETIME | no | json | |
pmf_submitted_by | UUID | yes | json | |
created_at | DATETIME | no | json | |
updated_at | DATETIME | no | json | |
_patient_id | UUID | no | json | The patient this row belongs to. |
Patient-linked tables not exported
| Table | Why |
|---|---|
ai_call_playbook_revisions | Usage metering, AI working data or search indexes derived from the record. |
ai_call_playbook_runs | Usage metering, AI working data or search indexes derived from the record. |
ambient_dictation_usage | Usage metering, AI working data or search indexes derived from the record. |
appointment_reminder_dispatches | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
appointment_series_alerts | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
appointment_series_operations | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
appointment_sms_reply_contexts | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
appointment_waitlist_offers | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
appointment_waitlist_opportunities | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
billing_claim_work_items | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
billing_hero_eligibility_probes | Usage metering, AI working data or search indexes derived from the record. |
billing_hero_escalations | Usage metering, AI working data or search indexes derived from the record. |
billing_hero_patient_requests | Usage metering, AI working data or search indexes derived from the record. |
billing_hero_proposals | Usage metering, AI working data or search indexes derived from the record. |
billing_hero_runs | Usage metering, AI working data or search indexes derived from the record. |
billing_inbox_item_user_states | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
billing_inbox_items | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
billing_service_task_events | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
billing_service_tasks | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
billing_visit_work_items | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
care_gap_runs | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
care_program_claim_item_events | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
care_team_events | Audit trail of who did what; reported through the practice's audit log report, not part of the record. |
care_time_active_timers | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
cervical_screening_audit | Audit trail of who did what; reported through the practice's audit log report, not part of the record. |
charge_duplicate_ack_bindings | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
charge_duplicate_ack_events | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
charge_jw_jz_exemption_bindings | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
charge_jw_jz_exemption_events | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
charge_split_intents | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
chart_share_access_events | Audit trail of who did what; reported through the practice's audit log report, not part of the record. |
chat_message_reactions | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
chat_participants | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
claim_api_transactions | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
claim_eligibility_blocks | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
claim_reroute_authorizations | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
claim_submission_attempt_events | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
claim_submission_attempts | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
claim_submission_generations | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
claim_submission_ownerships | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
clearinghouse_claim_line_refs | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
clearinghouse_transactions | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
coding_edit_overrides | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
communication_campaign_events | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
communication_campaign_recipients | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
communication_outbox | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
delegate_inbox_messages | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
drug_inventory_alerts | Practice drug-stock bookkeeping; the dose given (drug, NDC, lot) is exported with the administration. |
drug_inventory_transactions | Practice drug-stock bookkeeping; the dose given (drug, NDC, lot) is exported with the administration. |
dsi_feedback | Clinicians' feedback on reminders and suggestions (practice quality improvement), not part of the patient's record. |
ehi_export_jobs | Bookkeeping of the export itself. |
encounter_audit | Audit trail of who did what; reported through the practice's audit log report, not part of the record. |
encounter_collaboration_metadata | Live note-editing operations; the saved notes and every saved version are exported. |
encounter_collaboration_operations | Live note-editing operations; the saved notes and every saved version are exported. |
encounter_collaboration_sessions | Live note-editing operations; the saved notes and every saved version are exported. |
encounter_eligibility_sign_decisions | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
encounter_sign_runs | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
epcs_security_alert_events | Sign-in, verification and session records (credentials and one-time codes), not health information. |
epcs_security_alert_notifications | Sign-in, verification and session records (credentials and one-time codes), not health information. |
epcs_security_alerts | Sign-in, verification and session records (credentials and one-time codes), not health information. |
epcs_signing_batch_events | Sign-in, verification and session records (credentials and one-time codes), not health information. |
epcs_signing_session_events | Sign-in, verification and session records (credentials and one-time codes), not health information. |
epcs_signing_sessions | Sign-in, verification and session records (credentials and one-time codes), not health information. |
epic_import_jobs | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
external_record_import_jobs | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
fax_inbox_entries | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
fax_triage_audit_logs | Audit trail of who did what; reported through the practice's audit log report, not part of the record. |
fhir_bulk_export_jobs | Bookkeeping of an app's FHIR bulk export; the data it exported is exported here. |
guardian_portal_access_events | Audit trail of who did what; reported through the practice's audit log report, not part of the record. |
guardian_portal_invitations | Patient portal sign-in accounts, invitations and access links (who may sign in), not health information. |
guardian_visibility_policy_events | Audit trail of who did what; reported through the practice's audit log report, not part of the record. |
hcc_suspects | Usage metering, AI working data or search indexes derived from the record. |
idr_candidates | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
idr_events | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
idr_tasks | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
immunization_registry_candidates | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
immunization_registry_reconciliation_items | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
inbound_email_events | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
inpatient_admission_audit | Audit trail of who did what; reported through the practice's audit log report, not part of the record. |
insurance_card_capture_sessions | Sign-in, verification and session records (credentials and one-time codes), not health information. |
intake_review_events | Audit trail of who did what; reported through the practice's audit log report, not part of the record. |
kiosk_checkin_sessions | Sign-in, verification and session records (credentials and one-time codes), not health information. |
laboratory_audit | Audit trail of who did what; reported through the practice's audit log report, not part of the record. |
llm_usage_events | Usage metering, AI working data or search indexes derived from the record. |
maternity_billing_events | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
medical_note_copy_forward_events | Live note-editing operations; the saved notes and every saved version are exported. |
message_email_threads | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
message_recalls | Audit trail of who did what; reported through the practice's audit log report, not part of the record. |
message_sms_threads | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
note_collaboration_metadata | Live note-editing operations; the saved notes and every saved version are exported. |
note_embeddings | Usage metering, AI working data or search indexes derived from the record. |
note_operations | Live note-editing operations; the saved notes and every saved version are exported. |
note_sessions | Live note-editing operations; the saved notes and every saved version are exported. |
notifications | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
online_payment_attempts | Payment-processor customer, card and attempt identifiers; the payments themselves are exported. |
paperwork_audit_events | Audit trail of who did what; reported through the practice's audit log report, not part of the record. |
patient_age_transition_events | Audit trail of who did what; reported through the practice's audit log report, not part of the record. |
patient_auth_email_challenges | Sign-in, verification and session records (credentials and one-time codes), not health information. |
patient_auth_sessions | Sign-in, verification and session records (credentials and one-time codes), not health information. |
patient_auth_trusted_devices | Sign-in, verification and session records (credentials and one-time codes), not health information. |
patient_document_extractions | Usage metering, AI working data or search indexes derived from the record. |
patient_list_cell_values | Usage metering, AI working data or search indexes derived from the record. |
patient_list_members | Usage metering, AI working data or search indexes derived from the record. |
patient_phone_factors | Sign-in, verification and session records (credentials and one-time codes), not health information. |
patient_phone_index | Usage metering, AI working data or search indexes derived from the record. |
patient_phone_otp_challenges | Sign-in, verification and session records (credentials and one-time codes), not health information. |
patient_portal_account_patient_links | Patient portal sign-in accounts, invitations and access links (who may sign in), not health information. |
patient_portal_identities | Patient portal sign-in accounts, invitations and access links (who may sign in), not health information. |
patient_portal_paperwork_routing | Patient portal sign-in accounts, invitations and access links (who may sign in), not health information. |
patient_record_activity | Audit trail of who did what; reported through the practice's audit log report, not part of the record. |
patient_square_cards | Payment-processor customer, card and attempt identifiers; the payments themselves are exported. |
patient_square_customers | Payment-processor customer, card and attempt identifiers; the payments themselves are exported. |
patient_stripe_customers | Payment-processor customer, card and attempt identifiers; the payments themselves are exported. |
payer_rate_observations | Usage metering, AI working data or search indexes derived from the record. |
payer_submission_hold_rule_claims | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
payer_submission_hold_rule_events | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
payer_submission_hold_rules | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
payment_plan_collection_operations | Payment-processor customer, card and attempt identifiers; the payments themselves are exported. |
payment_plan_installment_attempts | Payment-processor customer, card and attempt identifiers; the payments themselves are exported. |
pdmp_ai_summaries | Usage metering, AI working data or search indexes derived from the record. |
persistent_dot_phrase_value_events | Audit trail of who did what; reported through the practice's audit log report, not part of the record. |
phone_call_ai_reviews | Usage metering, AI working data or search indexes derived from the record. |
phone_call_commands | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
phone_call_legs | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
phone_call_transfer_attempts | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
phone_mobile_delivery_events | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
phone_provider_calls | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
phone_user_reservations | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
phone_voicemail_hero_runs | Usage metering, AI working data or search indexes derived from the record. |
photo_id_capture_sessions | Sign-in, verification and session records (credentials and one-time codes), not health information. |
physician_patient_note_audits | Audit trail of who did what; reported through the practice's audit log report, not part of the record. |
physician_recent_patients | Usage metering, AI working data or search indexes derived from the record. |
portal_access_grants | Patient portal sign-in accounts, invitations and access links (who may sign in), not health information. |
portal_access_requests | Patient portal sign-in accounts, invitations and access links (who may sign in), not health information. |
portal_caregiver_invitations | Patient portal sign-in accounts, invitations and access links (who may sign in), not health information. |
pregnancy_episode_audit | Audit trail of who did what; reported through the practice's audit log report, not part of the record. |
pregnancy_order_set_applications | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
prescription_audit | Audit trail of who did what; reported through the practice's audit log report, not part of the record. |
previsit_auto_charge_hold_events | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
quality_measure_results | Quality measure results calculated from the record (re-calculable); the data they were calculated from is exported. |
quest_result_reconciliation_items | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
questionnaire_assignment_rule_runs | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
questionnaire_photo_capture_sessions | Sign-in, verification and session records (credentials and one-time codes), not health information. |
referral_audit | Audit trail of who did what; reported through the practice's audit log report, not part of the record. |
refill_center_doc_approvals | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
refill_center_group_finalizations | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
refill_center_item_events | Audit trail of who did what; reported through the practice's audit log report, not part of the record. |
registration_email_proofs | Sign-in, verification and session records (credentials and one-time codes), not health information. |
remote_monitoring_reminders | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
reputation_alert_notifications | Practice satisfaction-survey and reputation records, not part of the medical or billing record. |
reputation_alerts | Practice satisfaction-survey and reputation records, not part of the medical or billing record. |
reputation_survey_invites | Practice satisfaction-survey and reputation records, not part of the medical or billing record. |
reputation_survey_responses | Practice satisfaction-survey and reputation records, not part of the medical or billing record. |
result_ai_responses | Usage metering, AI working data or search indexes derived from the record. |
result_inbox_entries | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
saved_payment_method_authorizations | Payment-processor customer, card and attempt identifiers; the payments themselves are exported. |
schedule_shuffle_batch_items | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
scheduled_visit_override_events | Audit trail of who did what; reported through the practice's audit log report, not part of the record. |
sftp_batch_claims | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
smart_authorization_requests | Which apps were authorized to read the record through the FHIR API, and their launch, sign-in and token bookkeeping (access control), not health information. |
smart_grants | Which apps were authorized to read the record through the FHIR API, and their launch, sign-in and token bookkeeping (access control), not health information. |
smart_launch_contexts | Which apps were authorized to read the record through the FHIR API, and their launch, sign-in and token bookkeeping (access control), not health information. |
smart_tokens | Which apps were authorized to read the record through the FHIR API, and their launch, sign-in and token bookkeeping (access control), not health information. |
sms_webhook_events | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
staff_message_participants | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
staff_message_todo_links | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
staff_message_user_states | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
todo_audit_events | Audit trail of who did what; reported through the practice's audit log report, not part of the record. |
todo_item_tags | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
unsigned_note_dismissals | Live note-editing operations; the saved notes and every saved version are exported. |
upload_batches | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
urgent_care_queue_events | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
user_recent_patients | Usage metering, AI working data or search indexes derived from the record. |
visit_billing_policy_events | Audit trail of who did what; reported through the practice's audit log report, not part of the record. |
visit_readiness_alert_notifications | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
visit_readiness_alert_todos | Staff work-queue, routing or delivery bookkeeping; the clinical or billing record it serves is exported. |
website_phone_verification_challenges | Sign-in, verification and session records (credentials and one-time codes), not health information. |