Mira EMR electronic health information export format
Format version: 2. This page documents the structure and syntax of the file the Mira EMR produces when a practice exports electronic health information for one patient or for its whole patient population (45 CFR 170.315(b)(10)). Every export carries a link back to this page.
File layout
An export is one ZIP archive, or for a large practice several ("volumes", each a complete ZIP of at most about 256 MB of content, named …-part<n>of<m>.zip). manifest.json is in the last volume and says which volume holds each file.
manifest.json what the export holds, every file with its volume and SHA-256, and everything left out with the reason
README.txt a short pointer to this page
tables/<table>.ndjson one file per database table that has rows in scope (tables/<table>.<n>.ndjson when a table is split)
documents/<documentId>-<title> the bytes of each filed document, as the chart serves it
documents/originals/... organization exports: the unedited original of a document with page edits
attachments/<kind>/... portal message attachments, pre-check uploads, intake documents, form PDFs, inbound email
organization/<kind>/... organization exports: report runs, education assets, form templates, signatures, letters, contracts
notes/<noteId>.json every signed version of each clinical note
images/index.json every imaging study (DICOM StudyInstanceUID) and whether its pixels are included
images/<StudyInstanceUID>.zip the DICOM study, when included
fhir/<ResourceType>.ndjson US Core 6.1 FHIR R4 resources (FHIR Bulk Data NDJSON)
manifest.json
{
"format": "mira-ehi-export",
"formatVersion": 2,
"formatDocumentation": "https://miraemr.com/legal/ehi-export",
"exportId": "uuid",
"scope": "patient | organization",
"patientId": "uuid (patient scope only)",
"organizationId": "uuid",
"generatedAt": "ISO 8601 instant",
"volumes": 1,
"complete": true,
"tables": [
{
"table": "patient_allergies",
"rows": 3,
"files": [
"tables/patient_allergies.ndjson"
]
}
],
"files": [
{
"path": "documents/…",
"volume": 1,
"bytes": 1234,
"sha256": "hex"
}
],
"documents": {
"included": 4,
"unavailable": [
{
"kind": "document",
"table": "documents",
"id": "uuid",
"reason": "bytes_unavailable"
}
]
},
"otherFiles": {
"unavailable": []
},
"notes": {
"included": 2,
"unavailable": [
{
"kind": "note",
"id": "string",
"reason": "note_store_unavailable_after_retries"
}
]
},
"images": {
"studies": 1,
"included": 0,
"unavailable": [
{
"kind": "imaging",
"id": "1.2.3",
"reason": "imaging_store_not_connected"
}
]
},
"fhir": {
"included": true,
"patients": 1,
"resourceTypes": [
"AllergyIntolerance",
"Patient"
],
"unavailable": []
},
"textThreadsWithheld": [
{
"kind": "text_thread",
"id": "uuid",
"reason": "thread_attribution_unresolved"
}
],
"incomplete": [
"every item above that could not be included"
],
"absentTables": [
"tables classified as EHI that this database does not have"
]
}
complete is false when anything the export should hold could not be included; incomplete names each item and why. A document retired because its file was never stored (retired_without_file) is listed in documents.unavailable and does not make the export incomplete: there are no bytes to hold, and its record is in tables/documents.ndjson. tables[].rows counts the lines across that table's files. Every path in the archive except manifest.json itself appears in files with its volume, byte length and SHA-256, so a reader can verify the export is whole.
Reading the NDJSON tables
Each tables/<table>.ndjson file is UTF-8 newline-delimited JSON: one JSON object per line, one line per database row. Keys are the database column names exactly as listed in the dictionary below. Values are JSON-typed:
- text, uuid, enum-like text → JSON string
- integer, smallint, real, double precision, boolean → JSON number / boolean
- bigint and numeric → JSON string (exact decimal, no rounding)
- date →
YYYY-MM-DDstring; timestamp / timestamptz → ISO 8601 string in UTC (2026-10-12T15:04:05.000Z) - jsonb / json → the JSON value as stored
- arrays → JSON arrays
- bytea →
{"base64": "…"} - SQL NULL → JSON
null
Rows reference one another by id: a column ending in _id holds the id of a row in another table (encounter_id → encounters.id, patient_id → patients.id). The traversal that decided which rows belong to a patient is published with each table in the inventory below.
Any NDJSON reader works. In Python: [json.loads(line) for line in open("tables/patient_allergies.ndjson")]. In a shell: jq -c . tables/patient_allergies.ndjson. In a spreadsheet, import each file through a JSON-lines importer.
Scope
- Single patient: every row the inventory's ownership traversals reach for that patient, the patient's documents, notes and imaging. Nothing about another patient is included.
- Organization: every row of every table that holds the practice's patient records or its configuration, all documents, notes and imaging.
Tables that hold no patient information (sign-in sessions, job queues, caches, global code sets) are not exported; the inventory lists each one with its reason.
Column dictionary
569 tables can appear in an export. The dictionary is generated from the database schema on every release.
admissions
Patient-owned directly: admissions.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
facility_id | uuid | yes |
case_id | uuid | |
attending_provider_id | uuid | yes |
admit_at | timestamp with time zone | yes |
expected_discharge_at | timestamp with time zone | |
discharged_at | timestamp with time zone | |
admission_type | text | yes |
bed_room_id | uuid | |
status | text | yes |
discharge_disposition | text | |
point_of_origin | text | |
discharge_status_code | text | |
ms_drg | text | |
visit_number | text | |
service_code | text | |
arrival_mode | text | |
admit_condition | text | |
level_of_care | text | |
triage_level | text | |
encounter_code | text | |
ed_arrival_at | timestamp with time zone | |
ed_departure_at | timestamp with time zone | |
observation_start_at | timestamp with time zone | |
observation_end_at | timestamp with time zone | |
discharge_disposition_snomed | text | |
admit_reason | text | |
admission_diagnosis_ids | uuid[] | yes |
discharge_diagnosis_ids | uuid[] | yes |
discharge_medication_ids | uuid[] | yes |
discharge_instructions | text | |
discharge_late_entry_reason | text |
agent_activity
Patient-owned directly: agent_activity.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | |
event_id | uuid | |
playbook | text | yes |
step | text | yes |
command | text | |
receipt | jsonb | |
summary_safe | text | |
status | text | yes |
principal_type | text | yes |
on_behalf_of | text | |
dedupe_key | text | |
facility_id | uuid | |
created_at | timestamp with time zone | yes |
agent_proposals
Patient-owned directly: agent_proposals.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | |
review_item_id | uuid | |
command | text | yes |
schema_version | integer | yes |
input | jsonb | yes |
basis_hash | text | yes |
proposal_key | text | yes |
revision | integer | yes |
superseded_by_id | uuid | |
summary_safe | text | yes |
status | text | yes |
kind | text | yes |
channel | text | |
encounter_id | uuid | |
dismiss_reason | text | |
created_by_principal | text | yes |
on_behalf_of | text | |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
created_at | timestamp with time zone | yes |
anesthesia_record_entries
Patient-owned directly: anesthesia_record_entries.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
record_id | uuid | yes |
case_id | uuid | yes |
kind | text | yes |
performed_at | timestamp with time zone | yes |
entered_at | timestamp with time zone | yes |
entered_by | text | yes |
detail | jsonb | yes |
note | text | |
amends_entry_id | uuid | |
amendment_reason | text |
anesthesia_records
Patient-owned directly: anesthesia_records.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
case_id | uuid | yes |
status | text | yes |
anesthesia_provider_id | uuid | |
evaluation_status | text | yes |
evaluation_delivery_id | uuid | |
evaluation_submission_id | uuid | |
evaluation_signed_by | text | |
evaluation_signed_at | timestamp with time zone | |
signed_by | text | |
signed_at | timestamp with time zone | |
sign_attestation | text | |
handoff | jsonb | |
techniques | text[] | |
techniques_attested_by | text | |
techniques_attested_at | timestamp with time zone | |
intentional_hypothermia | boolean | yes |
intentional_hypothermia_documented_by | text | |
intentional_hypothermia_documented_at | timestamp with time zone | |
intentional_hypothermia_provider_id | uuid |
appointment_blocks
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
ecw_block_id | text | yes |
provider_ecw_id | text | |
provider_name | text | |
title | text | yes |
start_at | timestamp | yes |
end_at | timestamp | yes |
block_date | date | yes |
all_day | boolean | yes |
block_type | text | |
sync_status | text | yes |
provider_id | uuid | |
reason | text | |
note | text | |
created_by | text | |
source | text | yes |
series_id | uuid | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
appointment_holds
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
provider_id | uuid | yes |
weekday | integer | yes |
start_time | time | yes |
end_time | time | yes |
release_hours_before | integer | yes |
facility_id | uuid | |
label | text | |
active | boolean | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
appointment_reminders
Patient-owned through a foreign-key path: appointment_reminders .appointment_id → appointments.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
appointment_id | uuid | yes |
label | text | yes |
scheduled_at | timestamp with time zone | yes |
status | text | yes |
recipient_hash | text | yes |
arrive_early | boolean | yes |
claimed_at | timestamp with time zone | |
sent_at | timestamp with time zone | |
attempts | integer | yes |
reason | text | |
provider_message_id | text | |
created_at | timestamp with time zone | yes |
appointment_types
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
name | text | yes |
duration_minutes | integer | yes |
is_new_patient | boolean | yes |
channel | text | yes |
same_day_eligible | boolean | yes |
color | text | |
active | boolean | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
appointments
Patient-owned directly: appointments.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
call_id | uuid | |
organization_id | uuid | yes |
patient_name | text | yes |
patient_dob | text | |
patient_phone | text | |
patient_id | uuid | |
provider_id | uuid | |
encounter_id | uuid | |
appointment_date | date | yes |
appointment_time | time | yes |
appointment_type | appointment_type | yes |
insurance_name | text | |
is_hmo | boolean | |
ecw_appointment_id | text | |
ecw_patient_id | text | |
sync_status | text | yes |
provider_name | text | |
reason | text | |
status | appointment_status | yes |
source | appointment_source | yes |
confirmation_status | appointment_confirmation_status | yes |
confirmed_at | timestamp | |
confirmed_by | text | |
cancelled_by | text | |
cancelled_at | timestamp | |
cancellation_initiator | text | |
cancellation_reason_code | text | |
appointment_type_id | uuid | |
facility_id | uuid | |
duration_minutes | integer | |
arrived_at | timestamp with time zone | |
roomed_at | timestamp with time zone | |
with_provider_at | timestamp with time zone | |
checked_out_at | timestamp with time zone | |
xray_pending_at | timestamp with time zone | |
xray_done_at | timestamp with time zone | |
room_id | uuid | |
overbook | boolean | yes |
created_at | timestamp | yes |
updated_at | timestamp | yes |
billing_claim_attachments
Patient-owned through a foreign-key path: billing_claim_attachments .claim_id → billing_claims.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
claim_id | uuid | yes |
organization_id | uuid | yes |
file_name | text | yes |
file_size | integer | yes |
mime_type | text | yes |
category | text | yes |
uploaded_by | text | |
created_at | timestamp | yes |
billing_claim_policy_refs
Patient-owned through a foreign-key path: billing_claim_policy_refs .claim_id → billing_claims.id or billing_claim_policy_refs .prior_auth_id → billing_prior_auths.id or billing_claim_policy_refs .denial_id → billing_denials.id .claim_id → billing_claims.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
org_id | uuid | yes |
claim_id | uuid | |
denial_id | uuid | |
prior_auth_id | uuid | |
policy_id | text | yes |
policy_title | text | |
policy_version_date | date | |
policybot_plan_id | text | |
context | text | yes |
cited_excerpt | text | |
long_lived_source_url | text | |
cited_at | timestamp | yes |
cited_by_user_id | text |
billing_claims
Patient-owned directly: billing_claims.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
billing_provider_id | uuid | yes |
rendering_provider_id | uuid | |
referring_provider_id | uuid | |
payer_id | text | yes |
payer_name | text | yes |
transcript_id | text | |
encounter_id | text | |
note_content | text | yes |
note_date | timestamp | |
date_of_service | date | yes |
place_of_service | text | |
diagnosis_codes | jsonb | yes |
service_lines | jsonb | yes |
charge_amount | numeric | yes |
paid_amount | numeric | |
paid_date | timestamp | |
adjustment_amount | numeric | |
patient_responsibility | numeric | |
scrubber_score | integer | yes |
scrubber_issues | jsonb | |
status | text | yes |
stedi_transaction_id | text | |
submission_date | timestamp | |
submission_response | jsonb | |
acknowledgment_date | timestamp | |
acknowledgment_status | jsonb | |
prior_auth_number | text | |
injury_date | date | |
accident_type | text | |
accident_claim_number | text | |
denial_count | integer | yes |
reviewed_by | text | |
reviewed_at | timestamp | |
notes | text | |
claim_type | text | yes |
admission_id | uuid | |
facility_id | uuid | |
type_of_bill | text | |
admission_date | date | |
admission_hour | text | |
admission_type | text | |
admission_source | text | |
discharge_hour | text | |
patient_status | text | |
statement_from | date | |
statement_to | date | |
attending_npi | text | |
operating_npi | text | |
principal_dx | text | |
principal_dx_poa | text | |
other_dx | jsonb | |
principal_procedure | text | |
principal_procedure_date | date | |
other_procedures | jsonb | |
condition_codes | jsonb | |
occurrence_codes | jsonb | |
value_codes | jsonb | |
validation_issues | jsonb | |
pcs_release | text | |
submission_key | text | |
payer_sequence | text | yes |
prior_claim_id | uuid | |
revision | integer | yes |
claim_frequency | text | yes |
replaces_claim_id | uuid | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
billing_contract_rates
Organization configuration and reference: billing_contract_rates .contract_id → billing_contracts.id (organization).
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
contract_id | uuid | yes |
cpt_code | text | yes |
description | text | |
negotiated_rate | numeric | yes |
national_avg_rate | numeric | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
billing_contracts
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
payer_id | text | yes |
payer_name | text | yes |
effective_date_start | date | yes |
effective_date_end | date | |
contract_document_url | text | |
notes | text | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
billing_denials
Patient-owned through a foreign-key path: billing_denials .claim_id → billing_claims.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
claim_id | uuid | yes |
denial_date | date | yes |
denial_reason | text | yes |
denial_category | text | yes |
denial_code | text | |
carc_code | text | |
rarc_code | text | |
recommended_path | text | |
appeal_deadline | text | |
p2p_deadline | text | |
p2p_outcome | text | |
escalation_level | integer | |
recovered_amount | numeric | |
denial_insights | jsonb | |
appeal_letter | text | |
appeal_status | text | yes |
supporting_documents | jsonb | |
resolution_notes | text | |
resolved_at | timestamp | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
billing_eligibility_checks
Patient-owned directly: billing_eligibility_checks.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | |
patient_name | text | |
patient_dob | date | |
subscriber_id | text | |
payer_id | text | |
payer_name | text | |
check_date | timestamp | yes |
stedi_response | jsonb | |
eligible | boolean | |
plan_name | text | |
deductible | numeric | |
deductible_remaining | numeric | |
out_of_pocket_max | numeric | |
out_of_pocket_remaining | numeric | |
copay | numeric | |
coinsurance_percent | numeric | |
plan_begin_date | date | |
plan_end_date | date | |
created_at | timestamp | yes |
billing_enrollments
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
provider_id | uuid | yes |
payer_id | text | yes |
payer_name | text | yes |
enrollment_status | text | yes |
stedi_enrollment_id | text | |
enrolled_date | date | |
notes | text | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
billing_patient_ledger
Patient-owned directly: billing_patient_ledger.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
claim_id | uuid | |
remittance_id | uuid | |
remittance_line_id | uuid | |
statement_id | uuid | |
entry_type | text | yes |
amount_cents | integer | yes |
payer_sequence | text | |
payer_name | text | |
source_type | text | yes |
source_ref | text | yes |
reverses_entry_id | uuid | |
entry_date | date | yes |
memo_safe | text | |
posted_by | text | yes |
posted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
cost_center_id | uuid | |
revenue_code | text | |
patient_class | text | |
facility_id | uuid | |
service_date | date | |
posting_date | date | |
source_event_id | text | |
financial_class | text | |
payer_id | uuid | |
supply_category | text | |
payer_class | text | |
lien_case_ref | text | |
expected_allowed_cents | integer | |
expected_basis | text | |
expected_contract_id | uuid |
billing_prior_auths
Patient-owned directly: billing_prior_auths.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
provider_id | uuid | |
payer_id | text | yes |
payer_name | text | yes |
cpt_codes | jsonb | yes |
icd_codes | jsonb | |
status | text | yes |
auth_number | text | |
auth_expiration_date | text | |
scheduled_dos | text | |
facility_name | text | |
requested_date | text | |
expected_response_date | text | |
submission_channel | text | |
denial_reason | text | |
p2p_deadline | text | |
p2p_outcome | text | |
surgeon_brief | text | |
documentation_checklist | jsonb | |
documents | jsonb | |
notes | text | |
claim_id | uuid | |
stedi_transaction_id | text | |
submission_date | timestamp | |
submission_response | jsonb | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
billing_provider_adjustments
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
remittance_id | uuid | yes |
plb_index | integer | yes |
reason_code | text | yes |
reference_id | text | |
fiscal_period_date | date | |
amount_cents | integer | yes |
disposition | text | yes |
disposition_note | text | |
ledger_entry_id | uuid | |
decided_by | text | |
decided_at | timestamp with time zone | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
billing_remittance_lines
Patient-owned directly: billing_remittance_lines.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
remittance_id | uuid | yes |
line_index | integer | yes |
claim_index | integer | yes |
claim_id | uuid | |
patient_id | uuid | |
claim_service_line_index | integer | |
is_claim_level | boolean | yes |
patient_control_number | text | yes |
payer_claim_control_number | text | |
claim_status_code | text | |
service_date | date | |
procedure_code | text | |
modifiers | text[] | |
units | numeric | |
billed_cents | integer | yes |
allowed_cents | integer | |
paid_cents | integer | yes |
patient_responsibility_cents | integer | yes |
contractual_adjustment_cents | integer | yes |
adjustments | jsonb | yes |
carc_codes | text[] | yes |
rarc_codes | text[] | yes |
is_denial | boolean | yes |
is_takeback | boolean | yes |
match_method | text | yes |
posting_status | text | yes |
exception_code | text | |
exception_detail | text | |
denial_id | uuid | |
expected_payer_liability_cents | integer | |
variance_cents | integer | |
variance_kind | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
billing_remittances
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
source | text | yes |
external_transaction_id | text | yes |
usage_mode | text | yes |
control_number | text | |
payer_name | text | yes |
payer_id | text | |
payee_name | text | |
payee_npi | text | |
payment_method | text | |
trace_number | text | |
payment_date | date | |
production_date | date | |
total_paid_cents | integer | yes |
posted_cents | integer | yes |
plb_cents | integer | yes |
suspense_cents | integer | yes |
status | text | yes |
claim_count | integer | yes |
line_count | integer | yes |
exception_count | integer | yes |
denial_count | integer | yes |
payload | jsonb | yes |
posting_receipt | jsonb | |
reconciliation | jsonb | |
received_at | timestamp with time zone | yes |
posted_at | timestamp with time zone | |
reconciled_at | timestamp with time zone | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
billing_statements
Patient-owned directly: billing_statements.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
statement_number | text | yes |
run_kind | text | yes |
run_key | text | yes |
statement_date | date | yes |
due_date | date | |
balance_cents | integer | yes |
held_cents | integer | yes |
collectible_cents | integer | yes |
paid_cents | integer | yes |
basis | jsonb | yes |
status | text | yes |
delivery_channel | text | |
delivered_at | timestamp with time zone | |
payment_provider | text | |
payment_provider_ref | text | |
payment_link_url | text | |
payment_link_status | text | |
payment_link_expires_at | timestamp with time zone | |
paid_at | timestamp with time zone | |
superseded_by_id | uuid | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
call_reviews
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
call_id | uuid | yes |
verdict | call_review_verdict | yes |
category | text | |
notes | text | |
reviewed_by | text | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
calls
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
retell_call_id | text | |
organization_id | uuid | yes |
from_number | text | |
to_number | text | |
agent_id | text | |
status | call_status | yes |
intent_category | intent_category | |
duration_ms | integer | |
transcript | text | |
transcript_with_tool_calls | jsonb | |
call_summary | text | |
user_sentiment | text | |
disconnection_reason | text | |
recording_url | text | |
call_successful | boolean | |
appointment_booked | boolean | |
transfer_requested | boolean | |
insurance_name | text | |
referral_source | text | |
surgical_indicator | boolean | |
not_booked_reason | text | |
acuity_level | text | |
caller_name | text | |
patient_id | uuid | |
caller_type | text | |
patient_phone | text | |
phone_linked | boolean | |
post_call_data | jsonb | |
turn_latencies | jsonb | |
started_at | timestamp | |
ended_at | timestamp | |
created_at | timestamp | yes |
card_checks
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
created_by_user_id | uuid | |
patient_name | text | |
patient_dob | text | |
input | jsonb | yes |
provider_name | text | |
provider_npi | text | |
cpt_codes | jsonb | |
surgery_date | text | |
facility | text | |
verdict | text | yes |
confidence | text | yes |
reasoning | jsonb | yes |
status | text | yes |
verification_note | text | |
overridden_verdict | text | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
care_episodes
Patient-owned directly: care_episodes.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
canonical_region_code | text | yes |
region_code_system | text | yes |
region_map_version | text | yes |
raw_body_site_codings | jsonb | |
laterality | text | yes |
label | text | |
period_start | date | |
period_end | date | |
status | text | yes |
case_approvals
Patient-owned directly: case_approvals.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
kind | text | yes |
version_hash | text | yes |
decision | text | yes |
conditions | text | |
decided_by | text | yes |
decided_at | timestamp with time zone | yes |
request_key | uuid | yes |
case_change_requests
Patient-owned directly: case_change_requests.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
kind | text | yes |
base_hash | text | yes |
target_hash | text | yes |
before_values | jsonb | yes |
after_values | jsonb | yes |
reason | text | yes |
initiator_type | text | |
reason_code | text | |
clinical_change | boolean | yes |
status | text | yes |
requested_by | text | yes |
requested_at | timestamp with time zone | yes |
request_key | uuid | yes |
surgeon_approved_by | text | |
surgeon_approved_at | timestamp with time zone | |
decided_by | text | |
decided_at | timestamp with time zone |
case_creation_receipts
Patient-owned directly: case_creation_receipts.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
actor_id | text | yes |
client_request_id | uuid | yes |
payload_hash | text | yes |
created_at | timestamp with time zone | yes |
case_family_update_notices
Patient-owned directly: case_family_update_notices.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
recipient_id | uuid | yes |
notice_kind | text | yes |
channel | text | yes |
source_key | text | yes |
status | text | yes |
hold_reason | text | |
skip_reason | text | |
attempts | integer | yes |
available_at | timestamp with time zone | yes |
expires_at | timestamp with time zone | yes |
lease_expires_at | timestamp with time zone | |
lease_token | uuid | |
sent_at | timestamp with time zone | |
last_error_code | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
case_family_update_recipients
Patient-owned directly: case_family_update_recipients.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
display_name | text | yes |
relationship | text | |
channel | text | yes |
destination | text | yes |
legal_basis | text | yes |
recorded_via | text | yes |
basis_note | text | |
recorded_by | text | yes |
recorded_at | timestamp with time zone | yes |
verification_state | text | yes |
verify_code_hash | text | |
verify_code_expires_at | timestamp with time zone | |
verify_attempts | integer | yes |
verify_sends | integer | yes |
verified_at | timestamp with time zone | |
verified_by | text | |
expires_at | timestamp with time zone | yes |
revoked_at | timestamp with time zone | |
revoked_by | text | |
revoke_reason | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
case_implants
Patient-owned directly: case_implants.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
case_id | uuid | yes |
udi | text | |
device_display | text | |
manufacturer | text | |
lot_number | text | |
serial_number | text | |
laterality | text | |
recorded_by | text | |
recorded_at | timestamp with time zone | |
implant_system | text | |
placed_at | timestamp with time zone | |
placed_by_provider_id | uuid | |
inv_lot_id | uuid | |
inv_movement_id | uuid | |
inv_match_status | text | yes |
expiration_date | date | |
expiration_confirmed_by | text | |
expiration_confirmed_at | timestamp with time zone | |
label_state | text | |
label_missing_reason | text | |
body_site | text | |
surgeon_decision_id | uuid |
case_notification_preferences
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
user_id | uuid | yes |
channels | text[] | yes |
digest_low_priority | boolean | yes |
event_rules | jsonb | |
cadence | text | yes |
updated_at | timestamp with time zone | yes |
case_participants
Patient-owned through a foreign-key path: case_participants .case_id → surgical_cases.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
case_id | uuid | yes |
provider_id | uuid | |
role | text | yes |
display_name | text | |
created_at | timestamp with time zone | yes |
case_resource_grants
Patient-owned directly: case_resource_grants.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
resource_request_id | uuid | yes |
revision | integer | yes |
token_hash | text | yes |
expires_at | timestamp with time zone | yes |
used_at | timestamp with time zone | |
decision | text | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
case_resource_requests
Patient-owned directly: case_resource_requests.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
kind | text | yes |
vendor_name | text | yes |
contact_channel | text | yes |
contact_address | text | yes |
details | text | |
required | boolean | yes |
status | text | yes |
revision | integer | yes |
version_hash | text | yes |
requested_by | text | yes |
requested_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
updated_at | timestamp with time zone | yes |
request_key | uuid | yes |
vendor_group_id | uuid | |
contact_id | uuid | |
group_request_key | uuid | |
completed_by | text | |
completed_at | timestamp with time zone | |
replaces_request_id | uuid |
case_surgeon_confirmations
Patient-owned directly: case_surgeon_confirmations.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
surgeon_provider_id | uuid | yes |
revision | text | yes |
procedure_code | text | |
procedure_display | text | |
laterality | text | yes |
body_site | text | |
levels | text[] | |
basis | text | yes |
confirmed_by | text | yes |
confirmed_at | timestamp with time zone | yes |
source_ref | text | |
invalidated_at | timestamp with time zone | |
invalidated_reason | text |
case_workflow_notices
Patient-owned directly: case_workflow_notices.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
event_key | text | yes |
kind | text | yes |
recipient_kind | text | yes |
recipient_id | uuid | yes |
channel | text | yes |
urgency | text | yes |
status | text | yes |
available_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
lease_until | timestamp with time zone | |
lease_token | uuid | |
sent_at | timestamp with time zone | |
attempts | integer | yes |
provider_receipt | text | |
last_error_code | text | |
read_at | timestamp with time zone |
case_workflow_settings
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
schedule_approvals | text[] | yes |
or_approvals | text[] | yes |
require_resources | boolean | yes |
turnover_minutes | integer | yes |
closed_dates | date[] | yes |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
charge_lines
Patient-owned directly: charge_lines.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
case_id | uuid | |
facility_id | uuid | yes |
setting | text | yes |
rendering_provider_id | uuid | |
cpt | text | yes |
modifiers | text[] | |
icd10_codes | text[] | |
units | integer | yes |
fee_cents | integer | |
pricing_strategy | text | yes |
status | text | yes |
rationale_safe | text | |
cost_center_id | uuid | |
revenue_code | text | |
patient_class | text | |
service_date | date | |
posting_date | date | |
source_event_id | text | |
place_of_service | text | |
financial_class | text | |
payer_id | uuid | |
payer_name | text | |
unit_cost_cents | integer | |
cost_source | text | |
supply_category | text | |
payer_class | text | |
icd10_categories | text[] | |
coder_review_state | text | yes |
coder_reviewed_by | text | |
coder_reviewed_at | timestamp with time zone | |
code_origin | text | |
expected_allowed_cents | integer | |
expected_basis | text | |
expected_contract_id | uuid | |
expected_rate_id | uuid | |
expected_unknown_reason | text | |
contribution_id | text | |
contribution_source | text | |
ndc11 | char(11) | |
ndc_quantity | numeric(12, 3) | |
ndc_unit | text |
chart_review_items
Patient-owned directly: chart_review_items.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | |
reason_code | text | yes |
status | text | yes |
priority | text | yes |
assignee_type | text | |
assignee_id | text | |
resource_type | text | |
resource_id | text | |
review_key | text | yes |
safe_summary | text | |
received_at | timestamp with time zone | yes |
due_at | timestamp with time zone | |
resolved_at | timestamp with time zone | |
created_by_principal | text | |
resolved_by | text | |
disposition | text | |
response_document_id | uuid | |
lease_owner | text | |
lease_expires_at | timestamp with time zone | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
clinical_note_documents
Patient-owned directly: clinical_note_documents.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
encounter_id | uuid | yes |
patient_id | uuid | |
provider_id | uuid | |
source_system | text | yes |
source_environment | text | yes |
source_key | text | yes |
source_user_id | text | yes |
source_encounter_id | text | |
source_transcription_id | text | |
document_type | text | |
title | text | |
note_date | date | |
patient_name | text | |
patient_dob | text | |
note_text | text | yes |
text_hash | text | yes |
search_vector | tsvector | |
clinical_core | jsonb | |
core_text_hash | text | |
core_model | text | |
core_extracted_at | timestamp | |
case_id | uuid | |
case_core_hash | text | |
source_updated_at | timestamp | |
indexed_at | timestamp | yes |
created_at | timestamp | yes |
updated_at | timestamp | yes |
coding_analyses
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
created_by_user_id | uuid | |
title | text | yes |
specialty | text | |
client_key | text | yes |
payload | jsonb | yes |
created_at | timestamp | yes |
updated_at | timestamp | yes |
coding_billing_rules
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
created_by_user_id | uuid | |
client_key | text | yes |
title | text | yes |
payload | jsonb | yes |
created_at | timestamp | yes |
updated_at | timestamp | yes |
coding_estimates
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
created_by_user_id | uuid | |
title | text | yes |
client_key | text | yes |
payload | jsonb | yes |
created_at | timestamp | yes |
updated_at | timestamp | yes |
coding_fee_schedules
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
created_by_user_id | uuid | |
payer_key | text | yes |
code | text | yes |
modifier | text | yes |
rate | numeric | yes |
description | text | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
coding_feedback
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
created_by_user_id | uuid | |
analysis_client_key | text | |
thread_id | text | |
kind | text | yes |
role | text | |
code | text | |
context | text | |
content | text | yes |
created_at | timestamp | yes |
coding_org_domains
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
domain | text | yes |
organization_id | uuid | yes |
role | text | yes |
created_at | timestamp | yes |
composed_document_templates
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
title | text | yes |
description | text | |
content | jsonb | yes |
settings | jsonb | yes |
purpose | text | yes |
created_by | uuid | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
composed_documents
Patient-owned directly: composed_documents.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
template_id | uuid | |
organization_id | uuid | yes |
patient_id | uuid | yes |
values | jsonb | yes |
status | text | yes |
output_ref | text | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
concierge_sms
Patient-owned directly: concierge_sms.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
call_id | uuid | |
patient_id | uuid | |
direction | text | yes |
from_number | text | yes |
to_number | text | yes |
body | text | yes |
purpose | text | |
provider | text | yes |
provider_message_id | text | |
created_at | timestamp | yes |
consent_signatures
Patient-owned directly: consent_signatures.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
submission_id | uuid | yes |
patient_id | uuid | |
signer_role | text | yes |
signer_name | text | yes |
principal_id | text | |
method | text | yes |
signed_at | timestamp with time zone | yes |
form_version_id | text | |
form_content_hash | text | yes |
witness_staff_id | text | |
affirmation_text | text | |
device_ip | text | |
user_agent | text | |
created_at | timestamp with time zone | yes |
conservative_care_events
Patient-owned directly: conservative_care_events.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
episode_id | uuid | |
modality | text | yes |
start_date | date | yes |
end_date | date | |
duration_days | integer | |
visit_count | integer | |
evidence_document_id | uuid | |
outcome | text | |
failure_reason | text |
contact_consents
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
contact_point_id | uuid | yes |
scope | contact_consent_scope | yes |
status | contact_consent_status | yes |
method | contact_consent_method | |
provenance | jsonb | |
granted_at | timestamp | |
revoked_at | timestamp | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
contact_points
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
system | contact_point_system | yes |
value | text | yes |
label | text | |
verification_state | contact_verification_state | yes |
verification_method | text | |
verified_at | timestamp | |
summary | text | |
summary_updated_at | timestamp | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
conversation_documents
Patient-owned through a foreign-key path: conversation_documents .document_id → documents.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
document_id | uuid | yes |
conversation_id | uuid | yes |
contact_point_id | uuid | yes |
source_message_id | uuid | |
caption | text | |
created_at | timestamp | yes |
conversation_form_requests
Patient-owned through a foreign-key path: conversation_form_requests .submission_ref → form_submissions.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
conversation_id | uuid | yes |
contact_point_id | uuid | yes |
form_ref | uuid | yes |
submission_ref | uuid | |
status | form_request_status | yes |
sent_message_id | uuid | |
completed_at | timestamp | |
created_by_user_id | uuid | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
copilot_sessions
Patient-owned directly: copilot_sessions.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
principal_id | text | yes |
patient_id | uuid | |
encounter_id | uuid | |
scope_label | text | |
messages | jsonb | yes |
created_at | timestamp with time zone | yes |
last_active_at | timestamp with time zone | yes |
expires_at | timestamp with time zone | yes |
diagnostic_reports
Patient-owned directly: diagnostic_reports.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
service_request_id | uuid | |
category | text | yes |
code | text | |
code_system | text | |
codings | jsonb | |
status | text | yes |
performed_at | timestamp with time zone | |
issued_at | timestamp with time zone | |
accession_number | text | |
source_facility | text | |
facility_id | uuid | |
abnormal_flag | boolean | yes |
interpretation | text | |
result_document_id | uuid | |
display_name | text | |
collected_at | timestamp with time zone | |
attributed_provider_id | uuid | |
review_status | text | yes |
reviewed_by | text | |
reviewed_at | timestamp with time zone | |
supersedes_id | uuid | |
external | boolean | yes |
foreign_accession | text | |
outside_facility | text |
document_email_deliveries
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
endpoint_id | uuid | yes |
provider | text | yes |
message_id | text | yes |
raw_storage_ref | text | yes |
event_sha256 | text | yes |
raw_sha256 | text | |
verdicts | jsonb | yes |
status | text | yes |
error_code | text | |
attempts | integer | yes |
lease_token | uuid | |
lease_until | timestamp with time zone | |
received_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
document_email_parts
Patient-owned through a foreign-key path: document_email_parts .document_id → documents.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
delivery_id | uuid | yes |
ordinal | integer | yes |
filename | text | yes |
mime_type | text | yes |
content_sha256 | text | yes |
size_bytes | integer | yes |
status | text | yes |
document_id | uuid | |
error_code | text | |
resolution_reason | text | |
attempts | integer | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
document_extractions
Patient-owned through a foreign-key path: document_extractions .document_id → documents.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
document_id | uuid | yes |
extractor | text | yes |
extractor_version | text | yes |
status | text | yes |
classified_type | text | |
classification_confidence | numeric | |
facts | jsonb | |
normalized_text_sha256 | text | |
started_at | timestamp with time zone | yes |
completed_at | timestamp with time zone | |
error_code | text |
document_packets
Patient-owned directly: document_packets.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
template_id | uuid | |
name | text | yes |
status | document_packet_status | yes |
triggered_by | text | yes |
case_id | uuid | |
encounter_id | uuid | |
service_request_id | uuid | |
checklist_item_key | text | |
created_by | uuid | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
document_receipts
Patient-owned through a foreign-key path: document_receipts .document_id → documents.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
document_id | uuid | yes |
channel | text | yes |
provider | text | |
external_receipt_id | text | |
original_filename | text | |
source_contact_point | text | |
received_at | timestamp with time zone | yes |
received_by_principal | text | yes |
metadata | jsonb | |
referral_urgency | text | |
referral_urgency_reason | text | |
referral_urgency_set_by | text | |
referral_urgency_set_at | timestamp with time zone | |
created_at | timestamp with time zone | yes |
document_scan_batches
Patient-owned through a foreign-key path: document_scan_batches .source_document_id → documents.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
source_document_id | uuid | yes |
source_sha256 | text | yes |
page_edits_hash | text | yes |
page_count | integer | yes |
separator_pages | jsonb | yes |
plan_hash | text | yes |
confirmation_key | text | yes |
status | text | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
document_scan_segments
Patient-owned through a foreign-key path: document_scan_segments .document_id → documents.id or document_scan_segments .batch_id → document_scan_batches.id .source_document_id → documents.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
batch_id | uuid | yes |
ordinal | integer | yes |
from_page | integer | yes |
to_page | integer | yes |
title | text | yes |
document_type | text | yes |
status | text | yes |
document_id | uuid | |
error_code | text | |
attempts | integer | yes |
lease_until | timestamp with time zone | |
lease_token | uuid | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
document_signature_attestations
Patient-owned directly: document_signature_attestations.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
task_id | uuid | yes |
preparation_id | uuid | yes |
patient_id | uuid | yes |
provider_id | uuid | yes |
signer_user_id | uuid | yes |
signer_principal_id | text | yes |
signed_at | timestamp with time zone | yes |
manifest_sha256 | text | yes |
affirmation | text | yes |
confirmation_key | text | yes |
document_signature_fax_attempts
Patient-owned directly: document_signature_fax_attempts.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
attestation_id | uuid | yes |
recipient_name | text | yes |
recipient_fax | text | yes |
recipient_state | text | |
policy_fingerprint | text | yes |
idempotency_key | text | yes |
status | text | yes |
initiated_by | text | yes |
provider_ref | text | |
last_error_code | text | |
last_checked_at | timestamp with time zone | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
document_signature_fax_events
Patient-owned through a foreign-key path: document_signature_fax_events .attempt_id → document_signature_fax_attempts.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
attempt_id | uuid | yes |
kind | text | yes |
receipt | jsonb | yes |
event_key | text | yes |
created_at | timestamp with time zone | yes |
document_signature_preparations
Patient-owned directly: document_signature_preparations.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
task_id | uuid | yes |
patient_id | uuid | yes |
provider_id | uuid | yes |
signer_user_id | uuid | yes |
signer_principal_id | text | yes |
artifact_document_id | uuid | yes |
artifact_sha256 | text | yes |
source_sha256 | text | yes |
page_edits_hash | text | yes |
signature_sha256 | text | yes |
placements | jsonb | yes |
manifest_sha256 | text | yes |
confirmation_key | text | yes |
prepared_at | timestamp with time zone | yes |
document_signature_tasks
Patient-owned directly: document_signature_tasks.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
document_id | uuid | yes |
provider_id | uuid | yes |
review_item_id | uuid | yes |
source_sha256 | text | yes |
page_edits_hash | text | yes |
category | text | yes |
status | text | yes |
request_key | text | yes |
requested_by | text | yes |
requested_at | timestamp with time zone | yes |
completed_at | timestamp with time zone | |
resolution_reason | text |
documents
Patient-owned directly: documents.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | |
encounter_id | uuid | |
type | text | yes |
title | text | |
storage_url | text | yes |
mime_type | text | |
file_size | integer | |
source | text | |
uploaded_by | uuid | |
content_hash | text | |
status | document_status | yes |
error | text | |
page_count | integer | |
summary | text | |
ai_type | text | |
ai_confidence | integer | |
ai_fields | jsonb | |
version | integer | yes |
replaces_document_id | uuid | |
is_active | boolean | yes |
progress | jsonb | |
tables | jsonb | |
s3_key_tables | text | |
search_tsv | tsvector | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
content_sha256 | text | |
hash_algorithm | text | |
service_date | date | |
source_document_date | date | |
patient_match_status | text | |
patient_match_method | text | |
patient_match_confidence | numeric | |
possible_duplicate_of_id | uuid | |
extraction_status | text | |
created_by_principal | text | |
archived_at | timestamp with time zone | |
archived_by_principal | text |
ecw_ma_queue
Patient-owned through a foreign-key path: ecw_ma_queue .appointment_id → appointments.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
appointment_id | uuid | |
action | ecw_ma_queue_action | yes |
status | ecw_ma_queue_status | yes |
payload | jsonb | yes |
matched_ecw_appointment_id | text | |
matched_at | timestamp | |
match_method | text | |
matched_by_user_id | text | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
ecw_organization_config
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
organization_id | uuid | yes |
tenant_host | text | yes |
cloudcruise_workflow_id | text | yes |
cloudcruise_vault_user_id | text | yes |
session_did | text | yes |
tr_user_id | text | yes |
provider_id | text | yes |
provider_name | text | yes |
resource_id | text | |
additional_provider_ids | text[] | yes |
additional_provider_names | text[] | yes |
sync_enabled | boolean | yes |
sync_window_days | integer | yes |
created_at | timestamp | yes |
updated_at | timestamp | yes |
eligibility_checks
Patient-owned through a foreign-key path: eligibility_checks .form_submission_id → form_submissions.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
form_submission_id | uuid | yes |
organization_id | uuid | yes |
status | eligibility_status | yes |
trading_partner_service_id | text | |
request_snapshot | jsonb | |
parsed_summary | jsonb | |
response_json | jsonb | |
aaa_error_codes | text[] | |
error_message | text | |
checked_at | timestamp | yes |
next_recheck_at | timestamp | |
stedi_trace_id | text |
emr_accounting_periods
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
period_key | text | yes |
starts_on | date | yes |
ends_on | date | yes |
status | text | yes |
closed_at | timestamp with time zone | |
closed_by | text | |
reopened_at | timestamp with time zone | |
reopened_by | text | |
reopen_reason | text | |
close_note | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_advance_directives
Patient-owned directly: emr_advance_directives.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
status | text | yes |
directive_kind | text | |
document_id | uuid | |
recorded_by | text | yes |
recorded_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_agent_task_events
Patient-owned directly: emr_agent_task_events.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
task_id | uuid | yes |
seq | bigserial | yes |
kind | text | yes |
step_id | text | |
summary | text | yes |
detail | jsonb | |
dedupe_key | text | |
patient_id | uuid | |
created_at | timestamp with time zone | yes |
emr_agent_task_notices
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
task_id | uuid | yes |
occasion | text | yes |
notice | text | yes |
words | text | yes |
status | text | yes |
attempts | integer | yes |
available_at | timestamp with time zone | yes |
lease_until | timestamp with time zone | |
last_error | text | |
created_at | timestamp with time zone | yes |
delivered_at | timestamp with time zone |
emr_agent_task_operations
Patient-owned directly: emr_agent_task_operations.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
task_id | uuid | yes |
op_key | text | yes |
kind | text | yes |
patient_id | uuid | |
payload | jsonb | yes |
status | text | yes |
result | jsonb | |
error_code | text | |
error | text | |
created_at | timestamp with time zone | yes |
decided_at | timestamp with time zone |
emr_agent_tasks
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
created_by_user_id | uuid | yes |
owner_user_id | uuid | yes |
kind | text | yes |
title | text | yes |
goal | text | yes |
status | text | yes |
params | jsonb | yes |
plan | jsonb | yes |
memory | jsonb | yes |
waiting_on | jsonb | |
next_check_at | timestamp with time zone | yes |
paused_at | timestamp with time zone | |
subject_patient_ids | uuid[] | yes |
subject_case_ids | uuid[] | yes |
subject_encounter_ids | uuid[] | yes |
watch_thread_ids | uuid[] | yes |
watch_proposal_ids | uuid[] | yes |
step_count | integer | yes |
step_budget | integer | yes |
model_calls | integer | yes |
model_tokens | integer | yes |
token_budget | integer | yes |
summary | text | |
last_error | text | |
lease_owner | text | |
lease_expires_at | timestamp with time zone | |
version | integer | yes |
request_key | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
finished_at | timestamp with time zone |
emr_annotations
Patient-owned directly: emr_annotations.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
document_id | uuid | yes |
source | text | yes |
study_instance_uid | text | |
label | text | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
emr_appointment_bindings
Patient-owned directly: emr_appointment_bindings.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
appointment_id | uuid | yes |
patient_id | uuid | yes |
provider_id | uuid | |
facility_id | uuid | |
resolution_method | text | yes |
created_at | timestamp with time zone | yes |
emr_appointment_reschedule_flags
Patient-owned through a foreign-key path: emr_appointment_reschedule_flags .appointment_id → appointments.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
appointment_id | uuid | yes |
block_id | uuid | yes |
series_id | uuid | |
reason | text | yes |
flagged_by | text | yes |
flagged_at | timestamp with time zone | yes |
cleared_at | timestamp with time zone | |
cleared_by | text | |
cleared_reason | text |
emr_asc_followup_attempts
Patient-owned directly: emr_asc_followup_attempts.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
followup_id | uuid | yes |
attempted_at | timestamp with time zone | yes |
method | text | yes |
outcome | text | yes |
concerns_raised | boolean | |
infection_finding | text | |
note | text | |
late_entry_reason | text | |
recorded_by | text | yes |
recorded_at | timestamp with time zone | yes |
request_key | uuid | yes |
emr_asc_followups
Patient-owned directly: emr_asc_followups.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
kind | text | yes |
due_on | date | yes |
status | text | yes |
task_id | uuid | |
escalated_at | timestamp with time zone | |
escalation_reason | text | |
escalation_task_id | uuid | |
outcome | text | |
close_reason | text | |
closed_by | text | |
closed_at | timestamp with time zone | |
filed_by | text | yes |
filed_at | timestamp with time zone | yes |
version | integer | yes |
emr_asc_transfer_contact_attempts
Patient-owned directly: emr_asc_transfer_contact_attempts.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
transfer_id | uuid | yes |
attempted_at | timestamp with time zone | yes |
contact_name | text | |
contact_relationship | text | |
method | text | yes |
outcome | text | yes |
late_entry_reason | text | |
recorded_by | text | yes |
recorded_at | timestamp with time zone | yes |
request_key | uuid | yes |
emr_asc_transfers
Patient-owned directly: emr_asc_transfers.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
reason | text | yes |
decided_at | timestamp with time zone | yes |
receiving_hospital | text | |
receiving_listed | boolean | |
destination_type | text | yes |
planned_inpatient_admission | boolean | yes |
transport_mode | text | |
transport_called_at | timestamp with time zone | |
report_called_at | timestamp with time zone | |
report_given_to | text | |
record_copy_sent_at | timestamp with time zone | |
record_copy_method | text | |
late_entry_reason | text | |
version | integer | yes |
recorded_by | text | yes |
recorded_at | timestamp with time zone | yes |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
emr_board_note_events
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
note_id | uuid | yes |
revision | integer | yes |
kind | text | yes |
request_key | uuid | yes |
before_snapshot | jsonb | |
snapshot | jsonb | yes |
actor_id | text | yes |
actor_type | text | yes |
source_ref | text | |
occurred_at | timestamp with time zone | yes |
emr_board_notes
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
day | date | yes |
room_id | uuid | |
body | text | yes |
revision | integer | yes |
request_key | uuid | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
emr_care_team_roles
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
key | text | yes |
label | text | yes |
category | text | yes |
can_own_tasks | boolean | yes |
member_user_ids | text[] | yes |
active | boolean | yes |
sort | integer | yes |
revision | integer | yes |
created_by | text | yes |
updated_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_case_check_reviews
Patient-owned directly: emr_case_check_reviews.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
check_key | text | yes |
fingerprint | text | yes |
reason | text | yes |
note | text | |
reviewed_by | text | yes |
reviewed_at | timestamp with time zone | yes |
request_key | uuid | yes |
emr_case_notes
Patient-owned directly: emr_case_notes.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
body | text | yes |
authored_by | text | yes |
authored_at | timestamp with time zone | yes |
request_key | uuid | yes |
shared_with_vendors | boolean | yes |
emr_case_pathway_assignments
Patient-owned directly: emr_case_pathway_assignments.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
pathway_id | uuid | yes |
pathway_revision | integer | yes |
status | text | yes |
request_key | text | yes |
preop_request_key | text | |
assigned_by | text | yes |
assigned_at | timestamp with time zone | yes |
replaced_at | timestamp with time zone |
emr_case_patient_item_overrides
Patient-owned directly: emr_case_patient_item_overrides.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
item_id | uuid | yes |
due_on | date | yes |
time_of_day | text | |
reason | text | yes |
basis | text | yes |
status | text | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
ended_by | text | |
ended_at | timestamp with time zone |
emr_case_request_comments
Patient-owned directly: emr_case_request_comments.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
resource_request_id | uuid | yes |
body | text | yes |
author_kind | text | yes |
authored_by | text | yes |
authored_at | timestamp with time zone | yes |
request_key | uuid | yes |
emr_case_request_events
Patient-owned directly: emr_case_request_events.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
request_id | uuid | yes |
kind | text | yes |
body | text | |
assignee | text | |
actor | text | yes |
occurred_at | timestamp with time zone | yes |
request_key | uuid | yes |
emr_case_specimens
Patient-owned directly: emr_case_specimens.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
sequence | integer | yes |
label_code | text | yes |
description | text | yes |
source_site | text | |
laterality | text | yes |
specimen_kind | text | yes |
preservation | text | yes |
destination | text | yes |
read_back_to_surgeon | boolean | yes |
observed_at | timestamp with time zone | yes |
recorded_at | timestamp with time zone | yes |
collected_by | text | yes |
late_entry_reason | text | |
request_key | uuid | yes |
emr_case_tracking_acceptances
Patient-owned directly: emr_case_tracking_acceptances.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
case_id | uuid | yes |
patient_id | uuid | yes |
observation_id | uuid | yes |
room_event | text | yes |
observed_at | timestamp with time zone | yes |
recorded_at | timestamp with time zone | yes |
amended | boolean | yes |
amend_reason | text | |
accepted_by | text | yes |
accepted_at | timestamp with time zone | yes |
request_key | uuid | yes |
input_digest | text | yes |
emr_case_tracking_conflicts
Patient-owned directly: emr_case_tracking_conflicts.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
case_id | uuid | yes |
patient_id | uuid | yes |
milestone | text | yes |
observation_id | uuid | yes |
clinical_at | timestamp with time zone | yes |
observed_at | timestamp with time zone | yes |
delta_ms | bigint | yes |
detected_at | timestamp with time zone | yes |
emr_case_tracking_observations
Patient-owned directly: emr_case_tracking_observations.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
case_id | uuid | yes |
patient_id | uuid | yes |
facility_id | uuid | yes |
source | text | yes |
connection_id | uuid | yes |
event_id | uuid | yes |
source_event_id | text | yes |
revision | bigint | yes |
milestone | text | yes |
room | text | |
observed_at | timestamp with time zone | yes |
received_at | timestamp with time zone | yes |
mapping_id | uuid | yes |
receipt_id | uuid | yes |
status | text | yes |
superseded_at | timestamp with time zone | |
superseded_reason | text | |
created_at | timestamp with time zone | yes |
emr_case_tracking_status
Patient-owned directly: emr_case_tracking_status.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
case_id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
facility_id | uuid | yes |
location_milestone | text | |
location_room | text | |
location_at | timestamp with time zone | |
effective | jsonb | yes |
open_conflicts | integer | yes |
recomputed_at | timestamp with time zone | yes |
version | integer | yes |
emr_ccda_reconciliations
Patient-owned directly: emr_ccda_reconciliations.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
document_id | uuid | yes |
exchange_document_id | uuid | yes |
content_sha256 | text | yes |
request_key | uuid | yes |
completed_by | text | yes |
completed_at | timestamp with time zone | yes |
decisions | jsonb | yes |
summary | jsonb | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_charge_code_decisions
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
anchor_key | text | yes |
setting | text | yes |
cpt | text | yes |
decision | text | yes |
contribution_id | text | |
decided_by | text | yes |
decided_at | timestamp with time zone | yes |
emr_charge_contribution_exclusions
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
anchor_key | text | yes |
contribution_id | text | yes |
excluded_by | text | yes |
excluded_at | timestamp with time zone | yes |
lifted_by | text | |
lifted_at | timestamp with time zone |
emr_charge_kept_pairs
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
anchor_key | text | yes |
contribution_a | text | yes |
contribution_b | text | yes |
decided_by | text | yes |
decided_at | timestamp with time zone | yes |
emr_charge_master
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
item_code | text | yes |
description | text | yes |
item_kind | text | yes |
unit | text | yes |
price_cents | integer | |
cost_cents | integer | |
revenue_code | text | |
cost_center_code | text | |
device_match | text | |
supply_category | text | yes |
version | integer | yes |
active | boolean | yes |
source | text | yes |
effective_from | date | yes |
effective_to | date | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_chart_audits
Patient-owned directly: emr_chart_audits.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
scope_kind | text | yes |
scope_id | uuid | yes |
outcome | text | yes |
audited_by | text | yes |
audited_at | timestamp with time zone | yes |
checklist_version | text | yes |
items | jsonb | yes |
open_items | integer | yes |
flagged_items | integer | yes |
note | text | |
request_key | uuid | yes |
created_at | timestamp with time zone | yes |
emr_chart_exports
Patient-owned directly: emr_chart_exports.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
requested_by | text | yes |
scope | jsonb | yes |
status | text | yes |
state | jsonb | yes |
document_id | uuid | |
content_sha256 | text | |
page_count | integer | |
error_code | text | |
lease_until | timestamp with time zone | |
lease_token | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_chart_note_reviews
Patient-owned through a foreign-key path: emr_chart_note_reviews .note_id → emr_chart_notes.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
note_id | uuid | yes |
reviewed_by | text | yes |
reviewed_at | timestamp with time zone | yes |
comment | text |
emr_chart_notes
Patient-owned directly: emr_chart_notes.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
kind | text | yes |
body | text | yes |
authored_by | text | yes |
author_role | text | |
authored_at | timestamp with time zone | yes |
provider_id | uuid | |
requires_review | boolean | yes |
supersedes_id | uuid | |
correction_reason | text | |
request_key | uuid | yes |
emr_checklist_definitions
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
version | integer | yes |
content_hash | text | yes |
status | text | yes |
definition | jsonb | yes |
approved_task_keys | text[] | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
published_by | text | |
published_at | timestamp with time zone | |
retired_at | timestamp with time zone |
emr_claim_copies
Patient-owned through a foreign-key path: emr_claim_copies .claim_id → billing_claims.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
destination_id | uuid | yes |
claim_id | uuid | yes |
claim_type | text | yes |
transaction_id | text | yes |
submitted_at | timestamp with time zone | yes |
remote_filename | text | yes |
status | text | yes |
attempts | integer | yes |
next_attempt_at | timestamp with time zone | yes |
lease_token | uuid | |
last_error | text | |
sha256 | text | |
byte_size | integer | |
delivered_at | timestamp with time zone | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_claim_copy_destinations
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
name | text | yes |
host | text | yes |
port | integer | yes |
username | text | yes |
auth_method | text | yes |
secret_set_at | timestamp with time zone | |
remote_folder | text | yes |
file_name_pattern | text | yes |
schedule | text | yes |
daily_at | text | |
claim_types | text[] | yes |
payer_ids | text[] | yes |
include_test_claims | boolean | yes |
enabled | boolean | yes |
enabled_at | timestamp with time zone | |
enabled_windows | tstzmultirange | yes |
host_key_sha256 | text | |
host_key_pinned_at | timestamp with time zone | |
host_key_pinned_by | text | |
created_by | text | yes |
updated_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_clinic_drug_batches
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | |
product_name | text | yes |
ndc | text | |
ndc11 | char(11) | |
lot_number | text | yes |
expires_on | date | yes |
container | text | yes |
opened_at | timestamp with time zone | yes |
beyond_use_date | date | |
inv_lot_id | uuid | |
ndc_unit | text | |
ndc_unit_amount | numeric(12, 4) | |
entered_by | text | yes |
created_at | timestamp with time zone | yes |
retired_at | timestamp with time zone | |
retired_by | text |
emr_clinic_procedure_candidates
Patient-owned directly: emr_clinic_procedure_candidates.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | yes |
setup_id | uuid | yes |
setup_version | integer | yes |
phrase_id | text | yes |
status | text | yes |
opened_by | text | yes |
opened_at | timestamp with time zone | yes |
resolved_by | text | |
resolved_at | timestamp with time zone | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_consent_kiosk_sessions
Patient-owned directly: emr_consent_kiosk_sessions.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
packet_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
token_sha256 | text | yes |
handed_by | text | yes |
handed_at | timestamp with time zone | yes |
expires_at | timestamp with time zone | yes |
identity_confirmed_at | timestamp with time zone | |
identity_attempts | integer | yes |
finished_at | timestamp with time zone | |
returned_at | timestamp with time zone | |
returned_by | text | |
status | text | yes |
return_path | text | |
device_user_agent | text | |
returned_proof_sha256 | text | |
returned_auth_at | timestamp with time zone | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_consent_packet_items
Patient-owned directly: emr_consent_packet_items.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
packet_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
form_definition_id | uuid | yes |
form_slug | text | yes |
title | text | yes |
role | text | yes |
required | boolean | yes |
countersign_required | boolean | yes |
sort_order | integer | yes |
status | text | yes |
hold_reason | text | |
form_version_id | uuid | |
delivery_id | uuid | |
submission_id | uuid | |
facts_hash | text | yes |
prefill_sources | jsonb | yes |
patient_signed_at | timestamp with time zone | |
patient_signed_via | text | |
kiosk_session_id | uuid | |
handed_by | text | |
countersigned_at | timestamp with time zone | |
countersigned_by | text | |
countersigner_name | text | |
countersign_method | text | |
countersign_statement | text | |
document_id | uuid | |
declined_at | timestamp with time zone | |
declined_by | text | |
decline_reason | text | |
voided_at | timestamp with time zone | |
voided_by | text | |
void_reason | text | |
prepared_at | timestamp with time zone | |
prepared_by | text | |
preparer_name | text | |
prepared_via | text | |
presented_sha256 | text | |
discussion_requested_at | timestamp with time zone | |
discussion_sections | jsonb | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_consent_packets
Patient-owned directly: emr_consent_packets.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
template_key | text | yes |
template_version | integer | yes |
status | text | yes |
facts | jsonb | yes |
facts_hash | text | yes |
assigned_by | text | yes |
assigned_via | text | yes |
completed_at | timestamp with time zone | |
voided_at | timestamp with time zone | |
voided_by | text | |
void_reason | text | |
missing_forms | text[] | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_consent_prints
Patient-owned directly: emr_consent_prints.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
packet_id | uuid | yes |
item_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
submission_id | uuid | yes |
form_version_id | uuid | yes |
presented_sha256 | text | yes |
facts_hash | text | yes |
print_ref | text | yes |
purpose | text | yes |
printed_by | text | yes |
printed_at | timestamp with time zone | yes |
returned_document_id | uuid | |
returned_at | timestamp with time zone | |
returned_by | text | |
signed_at | timestamp with time zone | |
signer_role | text | |
signer_name | text | |
signer_relationship | text | |
snapshot | jsonb | |
snapshot_sha256 | text | |
returned_scan_sha256 | text | |
returned_page_edits | jsonb | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_contacts
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
kind | text | yes |
name | text | yes |
organization_name | text | |
npi | text | |
specialty | text | |
phone | text | |
fax | text | |
email | text | |
address_line1 | text | |
address_line2 | text | |
city | text | |
state | text | |
zip | text | |
notes | text | |
direct_address | text | |
preferred_delivery | text | |
preferred_channel | text | |
aliases | text[] | yes |
active | boolean | yes |
provenance | text | yes |
referring_provider_id | uuid | |
title | text | |
supplier_company_id | uuid | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_coordination_care_team
Patient-owned directly: emr_coordination_care_team.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
coordination_id | uuid | yes |
role_key | text | yes |
ordinal | integer | yes |
user_id | text | |
provider_id | uuid | |
contact_id | uuid | |
updated_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_coordination_cohort_intervals
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
provider_id | uuid | yes |
mode | text | yes |
default_scheduler_user_id | text | |
from_at | timestamp with time zone | yes |
to_at | timestamp with time zone | |
set_by | text | yes |
closed_by | text | |
created_at | timestamp with time zone | yes |
emr_coordination_diagnoses
Patient-owned directly: emr_coordination_diagnoses.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
coordination_id | uuid | yes |
clinical_version | integer | yes |
position | integer | yes |
icd10 | text | yes |
provenance | text | yes |
active | boolean | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_coordination_events
Patient-owned directly: emr_coordination_events.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
coordination_id | uuid | yes |
event_id | text | yes |
kind | text | yes |
occurrence | integer | yes |
reason_code | text | |
detail | jsonb | yes |
actor | text | yes |
occurred_at | timestamp with time zone | yes |
emr_coordination_order_links
Patient-owned directly: emr_coordination_order_links.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
coordination_id | uuid | yes |
service_request_id | uuid | yes |
lineage_root_id | uuid | yes |
role | text | yes |
state | text | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_coordination_procedures
Patient-owned directly: emr_coordination_procedures.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
coordination_id | uuid | yes |
clinical_version | integer | yes |
position | integer | yes |
cpt | text | yes |
modifiers | text[] | yes |
side | text | |
body_part | text | |
levels | text[] | yes |
print_text | text | |
performed | boolean | yes |
provenance | text | yes |
approved | boolean | yes |
active | boolean | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_coordination_routing
Patient-owned directly: emr_coordination_routing.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
service_request_id | uuid | yes |
provider_id | uuid | |
decision | text | yes |
reason | text | yes |
mode | text | |
interval_id | uuid | |
order_confirmed_at | timestamp with time zone | yes |
decided_at | timestamp with time zone | yes |
decided_by_command | text | yes |
decided_by | text | yes |
app_revision | text | |
coordination_id | uuid | |
released_at | timestamp with time zone | |
released_by | text |
emr_coordination_source_keys
Patient-owned directly: emr_coordination_source_keys.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
coordination_id | uuid | yes |
kind | text | yes |
key | text | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
emr_coordination_task_events
Patient-owned directly: emr_coordination_task_events.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
coordination_id | uuid | yes |
task_id | uuid | yes |
kind | text | yes |
from_value | text | |
to_value | text | |
note_length | integer | |
cause | text | |
actor | text | yes |
occurred_at | timestamp with time zone | yes |
emr_coordination_tasks
Patient-owned directly: emr_coordination_tasks.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
coordination_id | uuid | yes |
task_key | text | yes |
occurrence | integer | yes |
section_key | text | yes |
section_label | text | yes |
section_scope | text | yes |
section_order | integer | yes |
task_order | integer | yes |
class | text | yes |
label | text | yes |
role_key | text | |
assignee_user_id | text | |
due_on | date | |
due_rule | jsonb | |
due_overridden | boolean | yes |
na_allowed | boolean | yes |
decision | text | yes |
decided_by | text | |
decided_at | timestamp with time zone | |
lifecycle | text | yes |
condition_applies | boolean | yes |
note | text | |
custom | boolean | yes |
generated_by | text | yes |
version | integer | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_cost_center_crosswalk
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
system | text | yes |
entity | text | yes |
cost_center_code | text | yes |
external_class | text | |
external_cost_center | text | |
external_partner | text | |
updated_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_cost_centers
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
code | text | yes |
name | text | yes |
department | text | yes |
facility_id | uuid | |
room_rate_cents_per_minute | integer | |
anesthesia_rate_cents_per_minute | integer | |
center_type | text | |
default_revenue_code | text | |
rate_eligible | boolean | yes |
version | integer | yes |
active | boolean | yes |
source | text | yes |
effective_from | date | yes |
effective_to | date | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_cures_checks
Patient-owned directly: emr_cures_checks.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
prescriber_provider_id | uuid | yes |
service_request_id | uuid | |
kind | text | yes |
checked_at | timestamp with time zone | |
pulled_by | text | |
evidence_document_id | uuid | |
cures_request_ref | text | |
case_id | uuid | |
facility_id | uuid | |
days_supply | integer | |
refills | integer | |
licensure_path | text | |
prescription_facts_hash | text | |
recorded_by | text | yes |
recorded_at | timestamp with time zone | yes |
request_key | uuid | yes |
emr_dashboards
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
owner_user_id | uuid | yes |
name | text | yes |
visibility | text | yes |
audience | text[] | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_direct_accounts
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
direct_address | text | yes |
provider_id | uuid | |
hisp | text | yes |
secret_name | text | |
status | text | yes |
last_polled_at | timestamp with time zone | |
poll_lease_until | timestamp with time zone | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_direct_messages
Patient-owned directly: emr_direct_messages.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
account_id | uuid | yes |
direction | text | yes |
message_id | text | |
from_address | text | yes |
to_addresses | text[] | yes |
subject | text | yes |
status | text | yes |
mdn_status | text | |
error_code | text | |
error_detail | text | |
document_ids | uuid[] | yes |
patient_id | uuid | |
sha256 | text | |
payload | jsonb | |
request_reference | text | |
requested_by | text | |
portal_transmission_id | uuid | |
attachment_names | text[] | yes |
final_delivery | boolean | yes |
sent_at | timestamp with time zone | |
mdn_at | timestamp with time zone | |
mdn_detail | text | |
acknowledged_at | timestamp with time zone | |
mime_storage_url | text | |
mime_sha256 | text | |
attempts | integer | yes |
next_attempt_at | timestamp with time zone | yes |
lease_token | uuid | |
lease_until | timestamp with time zone | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_discharge_authorizations
Patient-owned directly: emr_discharge_authorizations.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
responsible_provider_id | uuid | yes |
written_instructions | boolean | yes |
teach_back | boolean | yes |
overnight_supplies | text | yes |
follow_up | text | yes |
informed_prescriptions | boolean | yes |
informed_instructions | boolean | yes |
informed_contact | boolean | yes |
responsible_adult_name | text | |
responsible_adult_relationship | text | |
escort_exemption_id | uuid | |
acknowledged_by | text | yes |
acknowledged_name | text | |
acknowledged_relationship | text | |
evidence | jsonb | yes |
authorized_at | timestamp with time zone | yes |
authorized_by | text | yes |
revoked_at | timestamp with time zone | |
revoked_by | text | |
revoke_reason | text | |
request_key | uuid | yes |
emr_discharge_escort_exemptions
Patient-owned directly: emr_discharge_escort_exemptions.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
attending_provider_id | uuid | yes |
reason | text | yes |
recorded_at | timestamp with time zone | yes |
recorded_by | text | yes |
request_key | uuid | yes |
emr_document_packet_context
Patient-owned directly: emr_document_packet_context.patient_id.
| Column | Postgres type | Required |
|---|---|---|
packet_id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
requires_provider_signature | boolean | yes |
signed_by | text | |
signer_name | text | |
signed_at | timestamp with time zone | |
signed_content_sha256 | text | |
recipient_evidence | jsonb | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_document_page_edits
Patient-owned through a foreign-key path: adapter document-page-edits.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
document_id | uuid | yes |
page | integer | yes |
rotation | integer | yes |
split_to_document_id | uuid | |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
emr_document_security_classes
Patient-owned through a foreign-key path: emr_document_security_classes .document_id → documents.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
document_id | uuid | yes |
organization_id | uuid | yes |
classification | text | yes |
owner_analysis_id | uuid | yes |
set_by | text | yes |
set_at | timestamp with time zone | yes |
emr_document_tags
Patient-owned through a foreign-key path: emr_document_tags .document_id → documents.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
document_id | uuid | yes |
tag | text | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
emr_document_translations
Patient-owned directly: emr_document_translations.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
document_id | uuid | yes |
source_document_id | uuid | |
target_language | text | yes |
method | text | yes |
critical | boolean | yes |
status | text | yes |
reviewed_at | timestamp with time zone | |
reviewed_by | text | |
reviewer_name | text | |
reviewer_identifier | text | |
released_at | timestamp with time zone | |
released_by | text | |
recorded_by | text | yes |
recorded_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_downtime_episodes
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
started_at | timestamp with time zone | yes |
ended_at | timestamp with time zone | |
reason | text | yes |
recorded_by | text | yes |
recorded_at | timestamp with time zone | yes |
ended_recorded_by | text | |
ended_recorded_at | timestamp with time zone | |
reconciled_by | text | |
reconciled_at | timestamp with time zone | |
reconciliation_note | text |
emr_downtime_reentries
Patient-owned directly: emr_downtime_reentries.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
episode_id | uuid | yes |
patient_id | uuid | yes |
administration_id | uuid | |
nursing_observation_id | uuid | |
patient_observation_id | uuid | |
care_at | timestamp with time zone | yes |
entered_at | timestamp with time zone | yes |
entered_by | text | yes |
duplicate_checked_ids | uuid[] | yes |
emr_downtime_reports
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
trigger | text | yes |
generated_by | text | yes |
generated_at | timestamp with time zone | yes |
as_of | timestamp with time zone | yes |
content | jsonb | yes |
content_hash | text | yes |
patient_ids | uuid[] | yes |
patient_count | integer | yes |
emr_drug_billing_settings
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
waste_modifiers | text | yes |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
emr_drug_prices
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
hcpcs | text | yes |
fee_cents_per_unit | integer | yes |
label | text | |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
retired_at | timestamp with time zone |
emr_dsi_feedback
Patient-owned directly: emr_dsi_feedback.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | |
intervention_key | text | yes |
intervention_title | text | yes |
intervention_kind | text | yes |
action | text | yes |
override_reason | text | |
feedback_text | text | |
rating | smallint | |
user_id | text | yes |
user_name | text | |
facility_id | uuid | |
location | text | yes |
created_at | timestamp with time zone | yes |
emr_dsi_interventions
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
intervention_key | text | yes |
kind | text | yes |
source_attributes | jsonb | yes |
additional_attributes | jsonb | yes |
active | boolean | yes |
updated_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_dsi_rules
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
seed_key | text | |
title | text | yes |
data_class | text | yes |
criteria | jsonb | yes |
message | text | yes |
source_attributes | jsonb | yes |
enabled | boolean | yes |
created_by | text | yes |
updated_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_ecqm_imports
Patient-owned directly: emr_ecqm_imports.matched_patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
file_name | text | yes |
sha256 | text | yes |
qdm_patient | jsonb | yes |
warnings | jsonb | yes |
matched_patient_id | uuid | |
matched_by | text | |
matched_at | timestamp with time zone | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
emr_ecqm_patient_results
Patient-owned through a foreign-key path: emr_ecqm_patient_results .patient_id → patients.id or emr_ecqm_patient_results .import_id → emr_ecqm_imports.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
run_id | uuid | yes |
subject_id | uuid | yes |
patient_id | uuid | |
import_id | uuid | |
measure_id | text | yes |
cms_id | text | yes |
population_set_id | text | yes |
stratum_id | text | |
populations | jsonb | yes |
episode_results | jsonb | yes |
observations | jsonb | yes |
emr_ecqm_run_subjects
Patient-owned through a foreign-key path: emr_ecqm_run_subjects .patient_id → patients.id or emr_ecqm_run_subjects .import_id → emr_ecqm_imports.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
run_id | uuid | yes |
patient_id | uuid | |
import_id | uuid | |
qdm_patient | jsonb | yes |
emr_ecqm_runs
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
measures | text[] | yes |
period_start | timestamp with time zone | yes |
period_end | timestamp with time zone | yes |
include_imports | boolean | yes |
status | text | yes |
requested_by | text | yes |
requested_at | timestamp with time zone | yes |
request_key | uuid | yes |
lease_until | timestamp with time zone | |
attempts | integer | yes |
started_at | timestamp with time zone | |
finished_at | timestamp with time zone | |
engine_generation | text | |
bundle_version | text | |
subject_count | integer | |
error_code | text | |
summary | jsonb | |
time_zone | text |
emr_education_assets
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
kind | text | yes |
storage_key | text | yes |
content_type | text | yes |
byte_size | integer | yes |
file_name | text | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
emr_education_shares
Patient-owned directly: emr_education_shares.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
sheet_id | uuid | yes |
document_id | uuid | yes |
shared_to_portal | boolean | yes |
printed | boolean | yes |
shared_by | text | yes |
shared_at | timestamp with time zone | yes |
emr_education_sheets
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | |
slug | text | yes |
title | text | yes |
body_markdown | text | yes |
body_html | text | |
attachments | jsonb | yes |
procedure_tags | text[] | yes |
language | text | yes |
video_links | jsonb | yes |
kind | text | yes |
active | boolean | yes |
owner_user_id | text | |
updated_by | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_eligibility_results
Patient-owned directly: emr_eligibility_results.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | |
organization_id | uuid | |
patient_id | uuid | |
source | text | |
status | text | |
payer_name | text | |
trading_partner_service_id | text | |
member_id | text | |
copay_cents | integer | |
coinsurance_percent | numeric | |
deductible_cents | integer | |
deductible_remaining_cents | integer | |
oop_max_cents | integer | |
oop_max_remaining_cents | integer | |
plan_begin | date | |
plan_end | date | |
parsed_summary | jsonb | |
response_snapshot | jsonb | |
aaa_error_codes | text[] | |
error_message | text | |
stedi_trace_id | text | |
checked_by | text | |
checked_at | timestamp | |
expires_at | timestamp | |
created_at | timestamp |
emr_encounter_abstracts
Patient-owned directly: emr_encounter_abstracts.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
facility_id | uuid | yes |
kind | text | yes |
case_id | uuid | |
admission_id | uuid | |
status | text | yes |
principal_diagnosis | jsonb | |
other_diagnoses | jsonb | yes |
external_causes | jsonb | yes |
principal_procedure | jsonb | |
other_procedures | jsonb | yes |
absorbed_cases | jsonb | yes |
no_bill_generated | boolean | yes |
type_of_care | text | |
route_of_admission | text | |
code_status_attestation | text | |
seeded_from | text | |
seeded_at | timestamp with time zone | |
revision | integer | yes |
reviewed_by | text | |
reviewed_at | timestamp with time zone | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
emr_erx_attempts
Patient-owned directly: emr_erx_attempts.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
attempt_key | text | yes |
organization_id | uuid | yes |
binding_id | uuid | yes |
service_request_id | uuid | yes |
patient_id | uuid | yes |
prescriber_provider_id | uuid | yes |
vendor_clinician_id | text | yes |
vendor_patient_id | text | |
vendor_prescription_id | text | |
op | text | yes |
phase | text | yes |
return_to | text | yes |
lease_token | uuid | |
lease_until | timestamp with time zone | |
version | integer | yes |
uncertain_since | timestamp with time zone | |
last_vendor_status | text | |
last_checked_at | timestamp with time zone | |
next_check_at | timestamp with time zone | yes |
signer | jsonb | |
final | jsonb | |
conflict | jsonb | |
abandoned_by | text | |
abandoned_at | timestamp with time zone | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_erx_clinic_bindings
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
vendor | text | yes |
vendor_env | text | yes |
clinic_id | text | yes |
status | text | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
emr_erx_launches
Patient-owned directly: emr_erx_launches.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
binding_id | uuid | yes |
attempt_id | uuid | |
patient_id | uuid | |
login_uid | text | yes |
view | text | yes |
launched_at | timestamp with time zone | yes |
emr_erx_patient_provisioning
Patient-owned directly: emr_erx_patient_provisioning.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
binding_id | uuid | yes |
patient_id | uuid | yes |
state | text | yes |
vendor_patient_id | text | |
lease_token | uuid | |
lease_until | timestamp with time zone | |
version | integer | yes |
uncertain_since | timestamp with time zone | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_erx_prescribers
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
binding_id | uuid | yes |
provider_id | uuid | yes |
vendor_clinician_id | text | |
npi | text | |
first_name | text | |
last_name | text | |
license_number | text | |
license_state | text | |
license_expires_on | date | |
dea_number | text | |
dea_state | text | |
dea_expires_on | date | |
credential_hash | text | |
nppes_checked_at | timestamp with time zone | |
nppes_snapshot | jsonb | |
dea_verified_by | text | |
dea_verified_at | timestamp with time zone | |
license_verified_by | text | |
license_verified_at | timestamp with time zone | |
license_verification_source | text | |
date_of_birth | date | |
epcs_requested | boolean | yes |
enrollment_state | text | yes |
registration_status | text | |
registration_checked_at | timestamp with time zone | |
enabled_by | text | |
enabled_at | timestamp with time zone | |
disabled_at | timestamp with time zone | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_erx_vendor_imports
Patient-owned directly: emr_erx_vendor_imports.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
binding_id | uuid | yes |
vendor_prescription_id | text | yes |
patient_id | uuid | yes |
outcome | text | yes |
method | text | |
imported_at | timestamp with time zone | yes |
patient_medication_id | uuid | |
linked_service_request_id | uuid |
emr_erx_webhook_events
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
binding_id | uuid | yes |
body_hash | text | yes |
event_type | text | yes |
vendor_patient_id | text | |
vendor_prescription_id | text | |
vendor_clinic_id | text | |
received_at | timestamp with time zone | yes |
processed_at | timestamp with time zone | |
outcome | text |
emr_esignature_acceptances
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
user_id | uuid | yes |
statement_version | text | yes |
statement_sha256 | text | yes |
accepted_at | timestamp with time zone | yes |
auth_time | timestamp with time zone |
emr_estimates
Patient-owned directly: emr_estimates.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | |
organization_id | uuid | |
patient_id | uuid | |
encounter_id | uuid | |
case_id | uuid | |
status | text | |
lines | jsonb | |
professional_total_cents | integer | |
facility_total_cents | integer | |
facility_pending | boolean | |
eligibility_result_id | uuid | |
basis | jsonb | |
created_by | text | |
created_at | timestamp | |
updated_at | timestamp |
emr_external_case_ids
Patient-owned directly: emr_external_case_ids.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
connection_id | uuid | yes |
vendor | text | yes |
vendor_tenant | text | yes |
source_facility | text | yes |
assigning_system | text | yes |
external_id | text | yes |
case_id | uuid | yes |
patient_id | uuid | yes |
version | integer | yes |
status | text | yes |
basis | text | yes |
supersedes_id | uuid | |
superseded_at | timestamp with time zone | |
reason | text | |
episode_reason | text | |
mapped_by | text | yes |
mapped_at | timestamp with time zone | yes |
emr_facility_notice_versions
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
kind | text | yes |
language | text | yes |
version | integer | yes |
title | text | yes |
body | text | yes |
complaint_agency_name | text | |
complaint_agency_address | text | |
complaint_agency_phone | text | |
ombudsman_url | text | |
has_physician_owners | boolean | |
physician_owners | jsonb | |
form_number | text | |
emergency_coverage | text | |
translates_version_id | uuid | |
verification_source | text | yes |
content_hash | text | yes |
published_by | text | yes |
published_at | timestamp with time zone | yes |
emr_family_caregiver_events
Patient-owned directly: emr_family_caregiver_events.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
admission_id | uuid | yes |
facility_id | uuid | yes |
event | text | yes |
occurred_at | timestamp with time zone | yes |
answer | text | |
caregiver_name | text | |
caregiver_relationship | text | |
caregiver_contact | text | |
designation_id | uuid | |
method | text | |
reached | boolean | |
language | text | |
interpreter_used | boolean | |
medications_covered | boolean | |
questions_invited | boolean | |
late_entry_reason | text | |
recorded_by | text | yes |
recorded_at | timestamp with time zone | yes |
entered_in_error_at | timestamp with time zone | |
entered_in_error_by | text | |
entered_in_error_reason | text | |
request_key | uuid | yes |
emr_fee_schedule_charge_prices
Patient-owned through a foreign-key path: emr_fee_schedule_charge_prices .charge_line_id → charge_lines.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
charge_line_id | uuid | yes |
schedule_line_id | uuid | yes |
created_at | timestamp with time zone | yes |
emr_fee_schedule_lines
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
version_id | uuid | yes |
code_system | text | yes |
code | text | yes |
modifier | text | yes |
description | text | yes |
amount_cents | integer | yes |
revenue_account | text |
emr_fee_schedule_versions
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
schedule_id | uuid | yes |
version | integer | yes |
effective_start | date | yes |
effective_end | date | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
emr_fee_schedules
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
name | text | yes |
type | text | yes |
payer_id | uuid | |
financial_class | text | |
is_default | boolean | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
emr_fhir_projects
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
medplum_project_id | uuid | yes |
sync_client_id | uuid | yes |
secret_name | text | yes |
base_url | text | yes |
status | text | yes |
patient_policy_id | uuid | |
practitioner_policy_id | uuid | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
emr_follow_up_links
Patient-owned directly: emr_follow_up_links.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
appointment_type_id | uuid | yes |
provider_id | uuid | yes |
window_from | date | yes |
window_to | date | yes |
token_sha256 | text | yes |
expires_at | timestamp with time zone | yes |
revoked_at | timestamp with time zone | |
revoked_reason | text | |
dob_failures | integer | yes |
locked_at | timestamp with time zone | |
verified_at | timestamp with time zone | |
session_sha256 | text | |
session_expires_at | timestamp with time zone | |
used_at | timestamp with time zone | |
appointment_id | uuid | |
booking_request_key | text | |
request_key | text | yes |
text_status | text | |
text_reason | text | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_form_assignments
Patient-owned directly: emr_form_assignments.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
form_version_id | uuid | yes |
request_key | uuid | yes |
request_hash | text | yes |
label | text | yes |
anchor | text | yes |
offset_value | integer | yes |
offset_unit | text | yes |
time_zone | text | yes |
anchor_at | timestamp with time zone | |
due_at | timestamp with time zone | |
status | text | yes |
delivery_id | uuid | |
cancelled_reason | text | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_form_definitions
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
slug | text | yes |
title | text | yes |
status | text | yes |
pdf_backed | boolean | yes |
current_version_id | uuid | |
source_form_id | uuid | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_form_deliveries
Patient-owned directly: emr_form_deliveries.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
form_version_id | uuid | yes |
patient_id | uuid | yes |
channel | text | yes |
status | text | yes |
sent_by | text | yes |
sent_at | timestamp with time zone | yes |
opened_at | timestamp with time zone | |
completed_at | timestamp with time zone | |
expires_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_form_field_bindings
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
form_version_id | uuid | yes |
field_key | text | yes |
fact_key | text | yes |
source | text | yes |
confidence | numeric | |
set_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_form_outcomes
Patient-owned directly: emr_form_outcomes.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
submission_id | uuid | yes |
form_version_id | uuid | yes |
group_key | text | yes |
instrument_id | text | yes |
scorer_version | text | yes |
schema_hash | text | yes |
answers_hash | text | yes |
snapshot | jsonb | yes |
effective_at | timestamp with time zone | yes |
status | text | yes |
reviewed_by | text | |
reviewed_at | timestamp with time zone | |
created_at | timestamp with time zone | yes |
emr_form_submissions
Patient-owned directly: emr_form_submissions.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
delivery_id | uuid | yes |
form_version_id | uuid | yes |
patient_id | uuid | yes |
answers | jsonb | yes |
status | text | yes |
submitted_at | timestamp with time zone | |
signed_document_id | uuid | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_form_versions
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
form_id | uuid | yes |
version | integer | yes |
schema | jsonb | yes |
pdf_template | jsonb | |
published_at | timestamp with time zone | |
source_form_version_id | uuid | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
emr_gl_account_crosswalk
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
system | text | yes |
entity | text | yes |
account_number | text | yes |
external_account_name | text | yes |
external_class | text | |
external_account_number | text | |
parent_account_name | text | |
external_cost_center | text | |
external_partner | text | |
updated_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_gl_accounts
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
account_number | text | yes |
name | text | yes |
kind | text | yes |
version | integer | yes |
active | boolean | yes |
source | text | yes |
effective_from | date | yes |
effective_to | date | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_gl_batch_lines
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
batch_id | uuid | yes |
ledger_entry_id | uuid | |
journal_line_id | uuid | |
journal_entry_id | uuid | |
source_type | text | yes |
source_ref | text | yes |
entry_type | text | yes |
account_number | text | yes |
side | text | yes |
amount_cents | integer | yes |
cost_center_code | text | |
partner_code | text | |
revenue_code | text | |
patient_class | text | |
entry_date | date | yes |
posted_date | date | yes |
late_entry | boolean | yes |
memo_safe | text | |
entity | text | yes |
resolved_class | text | |
resolved_cost_center | text | |
resolved_partner | text |
emr_gl_batches
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
period_id | uuid | yes |
batch_number | text | yes |
status | text | yes |
debit_total_cents | integer | yes |
credit_total_cents | integer | yes |
entry_count | integer | yes |
late_entry_count | integer | yes |
control_totals | jsonb | yes |
built_by | text | yes |
built_at | timestamp with time zone | yes |
exported_at | timestamp with time zone | |
export_format | text |
emr_gl_exports
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
system | text | yes |
period_key | text | yes |
batch_ids | uuid[] | yes |
format | text | yes |
file_hash | text | yes |
line_count | integer | yes |
debit_total_cents | integer | yes |
credit_total_cents | integer | yes |
unmapped_accounts | text[] | yes |
re_export_reason | text | |
exported_by | text | yes |
exported_at | timestamp with time zone | yes |
file_body | text |
emr_gl_mappings
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
cost_center_code | text | yes |
entry_type | text | yes |
revenue_code | text | |
financial_class | text | |
supply_category | text | |
payer_class | text | |
debit_account | text | yes |
credit_account | text | yes |
version | integer | yes |
active | boolean | yes |
source | text | yes |
effective_from | date | yes |
effective_to | date | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_hcai_payer_map_revisions
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
version | integer | yes |
saved_by | text | yes |
saved_at | timestamp with time zone | yes |
changes | jsonb | yes |
entries | jsonb | yes |
emr_homeless_discharge_items
Patient-owned directly: emr_homeless_discharge_items.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
admission_id | uuid | yes |
facility_id | uuid | yes |
item | text | yes |
answer | text | yes |
detail | text | |
occurred_at | timestamp with time zone | yes |
late_entry_reason | text | |
recorded_by | text | yes |
recorded_at | timestamp with time zone | yes |
entered_in_error_at | timestamp with time zone | |
entered_in_error_by | text | |
entered_in_error_reason | text | |
request_key | uuid | yes |
emr_implant_decisions
Patient-owned directly: emr_implant_decisions.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
concern | text | yes |
decision | text | yes |
udi | text | yes |
lot_number | text | |
expiration_date | date | |
rationale | text | yes |
decided_by | text | yes |
decided_at | timestamp with time zone | yes |
request_key | uuid | yes |
emr_injury_case_surgeries
Patient-owned directly: emr_injury_case_surgeries.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
surgical_case_id | uuid | yes |
injury_case_id | uuid | |
linked_by | text | yes |
linked_at | timestamp with time zone | yes |
emr_injury_case_visits
Patient-owned directly: emr_injury_case_visits.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | yes |
injury_case_id | uuid | |
linked_by | text | yes |
linked_at | timestamp with time zone | yes |
emr_injury_cases
Patient-owned directly: emr_injury_cases.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
kind | text | yes |
related_cause | text | yes |
billing_basis | text | yes |
status | text | yes |
injury_date | date | yes |
state | text | |
claim_number | text | |
payer_id | uuid | |
carrier_name | text | |
employer_name | text | |
adjuster_name | text | |
adjuster_phone | text | |
adjuster_email | text | |
adjuster_fax | text | |
attorney_name | text | |
attorney_firm | text | |
attorney_phone | text | |
body_parts | text[] | yes |
accepted_diagnoses | text[] | yes |
authorization_status | text | yes |
authorization_number | text | |
created_by | text | yes |
updated_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
request_key | uuid | yes |
emr_interpreter_uses
Patient-owned directly: emr_interpreter_uses.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
case_id | uuid | |
language | text | yes |
interpreter_kind | text | yes |
interpreter_name | text | |
interpreter_identifier | text | |
modality | text | yes |
purpose | text | |
used_at | timestamp with time zone | yes |
ended_at | timestamp with time zone | |
recorded_by | text | yes |
recorded_at | timestamp with time zone | yes |
entered_in_error_at | timestamp with time zone | |
entered_in_error_by | text | |
entered_in_error_reason | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_inventory_valuation_snapshot_lines
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
snapshot_id | uuid | yes |
item_id | uuid | yes |
item_code | text | yes |
item_description | text | yes |
location_id | uuid | yes |
location_name | text | yes |
facility_id | uuid | yes |
cost_center_code | text | |
supply_category | text | yes |
category | text | yes |
units | integer | yes |
unknown_units | integer | yes |
unit_cost_cents | integer | |
value_cents | integer | yes |
emr_inventory_valuation_snapshots
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
period_id | uuid | yes |
period_key | text | yes |
as_of | date | yes |
method | text | yes |
units | integer | yes |
unknown_units | integer | yes |
value_cents | integer | yes |
layer_value_cents | integer | |
layer_unknown_units | integer | yes |
gl_account_number | text | |
gl_balance_cents | integer | |
difference_cents | integer | |
taken_by | text | yes |
taken_at | timestamp with time zone | yes |
source_event_key | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_journal_entries
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
entry_type | text | yes |
effective_date | date | yes |
recorded_at | timestamp with time zone | yes |
period_key | text | yes |
late_entry | boolean | yes |
status | text | yes |
source_type | text | yes |
source_ref | text | yes |
reversal_of_id | uuid | |
reversed_by_id | uuid | |
revision_of_entry_id | uuid | |
posted_by | text | yes |
approved_by | text | |
memo_safe | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_journal_lines
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
entry_id | uuid | yes |
line_no | integer | yes |
account_number | text | yes |
side | text | yes |
amount_cents | integer | yes |
cost_center_code | text | |
memo_safe | text | |
external_ref | text | |
superseded_at | timestamp with time zone |
emr_journal_pending
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
source_type | text | yes |
source_ref | text | yes |
entry_type | text | yes |
amount_cents | integer | |
cost_center_code | text | |
reason | text | yes |
resolved_at | timestamp with time zone | |
resolved_entry_id | uuid | |
created_at | timestamp with time zone | yes |
emr_lab_compendium
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
interface_id | uuid | yes |
version | integer | yes |
order_code | text | yes |
display | text | yes |
loinc | text | |
cpt | text | |
specimen | text | |
container | text | |
aoe | jsonb | yes |
active | boolean | yes |
imported_at | timestamp with time zone | yes |
emr_lab_interfaces
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
lab_id | text | yes |
vendor | text | yes |
transport | text | yes |
hl7_version | text | yes |
sending_application | text | yes |
sending_facility | text | yes |
receiving_application | text | yes |
receiving_facility | text | yes |
processing_id | text | yes |
timezone | text | yes |
secret_name | text | yes |
status | text | yes |
allow_cpt_fallback | boolean | yes |
ack_deadline_minutes | integer | yes |
last_outbound_at | timestamp with time zone | |
last_inbound_at | timestamp with time zone | |
last_error_code | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_lab_messages
Patient-owned directly: emr_lab_messages.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
interface_id | uuid | yes |
direction | text | yes |
message_type | text | yes |
control_id | text | yes |
binding_id | uuid | |
delivery_id | uuid | |
patient_id | uuid | |
diagnostic_report_ids | uuid[] | yes |
document_id | uuid | |
content_sha256 | text | yes |
file_name | text | |
status | text | yes |
archived_at | timestamp with time zone | |
attempts | integer | yes |
next_attempt_at | timestamp with time zone | |
lease_token | uuid | |
lease_until | timestamp with time zone | |
version | integer | yes |
ack_due_at | timestamp with time zone | |
error_code | text | |
error_detail | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_lab_order_bindings
Patient-owned directly: emr_lab_order_bindings.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
interface_id | uuid | yes |
service_request_id | uuid | yes |
patient_id | uuid | yes |
placer_order_number | text | yes |
compendium_item | jsonb | |
created_at | timestamp with time zone | yes |
emr_letter_drafts
Patient-owned directly: emr_letter_drafts.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | yes |
case_id | uuid | |
source | text | yes |
source_item_id | text | |
source_item_type | text | |
source_text | text | |
template_id | uuid | |
template_version | text | |
template_snapshot | jsonb | |
title | text | yes |
recipient | text | |
content | jsonb | yes |
filled_values | jsonb | yes |
computed_dates | jsonb | yes |
revision | integer | yes |
edited | boolean | yes |
basis_note_hash | text | |
status | text | yes |
filing_claimed_at | timestamp with time zone | |
signed_at | timestamp with time zone | |
signed_by | text | |
filed_document_id | uuid | |
filed_at | timestamp with time zone | |
filed_by | text | |
discarded_at | timestamp with time zone | |
discarded_by | text | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
emr_medication_dispenses
Patient-owned directly: emr_medication_dispenses.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
service_request_id | uuid | yes |
status | text | yes |
fill_type | text | |
handed_over_at | timestamp with time zone | |
quantity_value | numeric | |
quantity_unit | text | |
days_supply | integer | |
pharmacy_name | text | |
pharmacy_ncpdp_id | text | |
status_reason | text |
emr_medication_equivalence
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
product_code_system | text | yes |
formulary_product_id | text | yes |
ndc11 | char(11) | yes |
approved_by | text | yes |
approved_at | timestamp with time zone | yes |
retired_at | timestamp with time zone | |
retired_by | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_medication_waste
Patient-owned directly: emr_medication_waste.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
administration_id | uuid | yes |
service_request_id | uuid | yes |
quantity | numeric | yes |
unit | text | yes |
reason | text | |
wasted_at | timestamp with time zone | yes |
recorded_at | timestamp with time zone | yes |
recorded_by | text | yes |
witnessed_by | text | yes |
late_entry_reason | text | |
corrects_id | uuid | |
correction_reason | text | |
entered_in_error | boolean | yes |
source_event_key | text | yes |
emr_member_access
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
organization_id | uuid | yes |
user_id | uuid | yes |
preset | text | |
presets | text[] | |
version | integer | yes |
updated_at | timestamp with time zone | yes |
updated_by | text |
emr_memory_rules
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
scope | text | yes |
provider_id | uuid | |
kind | text | yes |
text | text | yes |
structured | jsonb | |
active | boolean | yes |
source | text | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
last_applied_at | timestamp with time zone |
emr_note_context_snapshots
Patient-owned directly: emr_note_context_snapshots.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | yes |
snapshot_id | text | yes |
preview_snapshot_id | text | |
format_version | integer | yes |
purpose | text | yes |
chart_context_sent | boolean | yes |
prior_notes_mode | text | yes |
clinical_cutoff | timestamp with time zone | yes |
since_at | timestamp with time zone | |
sources | jsonb | yes |
exclusions | jsonb | yes |
statements | jsonb | yes |
text_sha256 | text | yes |
token_estimate | integer | yes |
recorded_by | text | yes |
recorded_at | timestamp with time zone | yes |
idempotency_key | text | yes |
emr_note_drafts
Patient-owned directly: emr_note_drafts.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | |
encounter_id | uuid | yes |
transcription_id | text | yes |
source_owner_uid | text | |
generation_encounter_id | text | |
html | text | yes |
plain_text | text | yes |
content_sha256 | text | yes |
revision | integer | yes |
status | text | yes |
document_type | text | |
note_display_name | text | |
generation_id | text | |
upstream_text_updated_at | text | |
generation_requested_at | timestamp with time zone | |
upstream_synced_revision | integer | |
engine_signed_version | integer | |
generation_attempt | text | |
generation_handed_off_at | timestamp with time zone | |
engine_metadata | jsonb | |
engine_lease_owner | text | |
engine_lease_until | timestamp with time zone | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
emr_note_versions
Patient-owned directly: emr_note_versions.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | |
encounter_id | uuid | yes |
transcription_id | text | yes |
version | integer | yes |
html | text | yes |
plain_text | text | yes |
content_sha256 | text | yes |
finalized_by | text | yes |
finalized_at | timestamp with time zone | yes |
amendment_reason | text | |
source_owner_uid | text | |
upstream_key | text | |
origin | text | yes |
draft_revision | integer | |
idempotency_key | text | yes |
created_at | timestamp with time zone | yes |
emr_nursing_risk_scores
Patient-owned directly: emr_nursing_risk_scores.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
admission_id | uuid | yes |
instrument | text | yes |
instrument_version | integer | yes |
components | jsonb | |
observed_at | timestamp with time zone | yes |
recorded_at | timestamp with time zone | yes |
recorded_by | text | yes |
late_entry_reason | text | |
corrects_id | uuid | |
correction_reason | text | |
request_key | uuid | yes |
emr_office_members
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
office_id | uuid | yes |
user_id | uuid | yes |
active | boolean | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
emr_office_surgeons
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
office_id | uuid | yes |
provider_id | uuid | yes |
active | boolean | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
emr_offices
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
name | text | yes |
active | boolean | yes |
revision | integer | yes |
request_key | uuid | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
emr_or_count_attestations
Patient-owned directly: emr_or_count_attestations.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
count_id | uuid | yes |
role | text | yes |
attested_by | text | yes |
attested_at | timestamp with time zone | yes |
request_key | uuid | yes |
emr_or_count_conclusions
Patient-owned directly: emr_or_count_conclusions.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
conclusion | text | yes |
state_hash | text | yes |
observed_at | timestamp with time zone | yes |
recorded_at | timestamp with time zone | yes |
recorded_by | text | yes |
late_entry_reason | text | |
request_key | uuid | yes |
emr_or_count_discrepancy_steps
Patient-owned directly: emr_or_count_discrepancy_steps.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
item_class | text | yes |
step | text | yes |
opened_step_id | uuid | |
reason | text | |
outcome | text | |
note | text | |
observed_at | timestamp with time zone | yes |
recorded_at | timestamp with time zone | yes |
recorded_by | text | yes |
late_entry_reason | text | |
request_key | uuid | yes |
emr_or_counts
Patient-owned directly: emr_or_counts.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
item_class | text | yes |
count_phase | text | yes |
quantity | integer | |
observed_at | timestamp with time zone | yes |
recorded_at | timestamp with time zone | yes |
recorded_by | text | yes |
recorded_role | text | yes |
late_entry_reason | text | |
corrects_id | uuid | |
correction_reason | text | |
request_key | uuid | yes |
emr_order_acknowledgments
Patient-owned directly: emr_order_acknowledgments.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
service_request_id | uuid | yes |
version_hash | text | yes |
acknowledged_by | text | yes |
acknowledged_at | timestamp with time zone | yes |
emr_order_countersigns
Patient-owned directly: emr_order_countersigns.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
service_request_id | uuid | yes |
facility_id | uuid | yes |
origin | text | yes |
ordering_provider_id | uuid | yes |
entered_by | text | yes |
entered_at | timestamp with time zone | yes |
received_role | text | |
received_at | timestamp with time zone | |
read_back_at | timestamp with time zone | |
standing_order_version_id | uuid | |
countersign_hours | integer | yes |
countersign_basis | text | yes |
countersign_rule_key | text | |
countersign_due_at | timestamp with time zone | yes |
state | text | yes |
decided_by | text | |
decided_at | timestamp with time zone | |
rejection_reason | text | |
flagged_administration_ids | uuid[] | yes |
request_key | text | yes |
emr_order_deliveries
Patient-owned directly: emr_order_deliveries.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
service_request_id | uuid | yes |
method | text | yes |
destination_contact_id | uuid | |
artifact_document_id | uuid | |
state | text | yes |
attempts | integer | yes |
provider_job_id | text | |
error | text | |
requested_by | text | yes |
sent_at | timestamp with time zone | |
delivered_at | timestamp with time zone | |
failed_at | timestamp with time zone | |
last_checked_at | timestamp with time zone | |
released_at | timestamp with time zone | |
released_by | text | |
fax_number | text | |
packet_document_id | uuid | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_order_print_choices
Patient-owned directly: emr_order_print_choices.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
confirmation_key | text | yes |
print_on_sign | boolean | yes |
set_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_order_set_legacy_keys
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
legacy_key | text | yes |
order_set_id | uuid | yes |
created_at | timestamp with time zone | yes |
emr_order_set_revisions
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
order_set_id | uuid | yes |
revision | integer | yes |
content | jsonb | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
emr_order_sets
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
scope | text | yes |
owner_user_id | text | |
name | text | yes |
category | text | yes |
setting | text | yes |
order_class | text | yes |
match | jsonb | |
match_priority | integer | yes |
outpatient_alternative_id | uuid | |
description | text | |
sections | jsonb | yes |
status | text | yes |
revision | integer | yes |
published_revision | integer | |
source | text | yes |
source_key | text | |
needs_review | boolean | yes |
has_unresolved | boolean | yes |
forked_from | jsonb | |
created_by | text | yes |
updated_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_order_tracking_events
Patient-owned directly: emr_order_tracking_events.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
service_request_id | uuid | yes |
kind | text | yes |
requirement | text | |
code | text | |
document_id | uuid | |
occurred_on | date | |
reason | text | |
recorded_by | text | yes |
request_key | uuid | yes |
seq | integer | |
created_at | timestamp with time zone | yes |
emr_order_usage
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
user_id | text | yes |
kind | text | yes |
code | text | yes |
code_system | text | yes |
fields_hash | text | yes |
fields | text | yes |
destination_contact_id | text | yes |
count | integer | yes |
last_used_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
emr_ospitek_connections
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
enabled | boolean | yes |
vendor_tenant | text | yes |
source_facility | text | yes |
case_id_system | text | yes |
mrn_authority | text | |
delegate_user_id | uuid | |
config_version | integer | yes |
retired_at | timestamp with time zone | |
retired_by | text | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
emr_ospitek_feed_channels
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
connection_id | uuid | yes |
channel | text | yes |
enabled | boolean | yes |
config_version | integer | yes |
s3_bucket | text | |
s3_prefix | text | |
webhook_endpoint_id | uuid | |
webhook_config | jsonb | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
emr_ospitek_review_item_patients
Patient-owned directly: emr_ospitek_review_item_patients.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
review_item_id | uuid | yes |
patient_id | uuid | yes |
created_at | timestamp with time zone | yes |
emr_ospitek_review_items
Patient-owned directly: emr_ospitek_review_items.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
connection_id | uuid | yes |
kind | text | yes |
receipt_id | uuid | |
row_index | integer | |
event_id | uuid | |
external_case_id | text | |
case_id | uuid | |
patient_id | uuid | |
other_case_id | uuid | |
other_patient_id | uuid | |
candidate_case_ids | uuid[] | yes |
status | text | yes |
resolution | text | |
resolution_note | text | |
resolved_by | text | |
resolved_at | timestamp with time zone | |
dedupe_key | text | yes |
service_date | date | |
created_at | timestamp with time zone | yes |
emr_ospitek_staff_ids
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
connection_id | uuid | yes |
external_staff_id | text | yes |
user_id | uuid | yes |
status | text | yes |
mapped_by | text | yes |
mapped_at | timestamp with time zone | yes |
retired_by | text | |
retired_at | timestamp with time zone |
emr_ospitek_webhook_keys
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
channel_id | uuid | yes |
key_id | text | yes |
status | text | yes |
activated_by | text | yes |
activated_at | timestamp with time zone | yes |
retired_by | text | |
retired_at | timestamp with time zone |
emr_packet_template_rules
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
template_id | uuid | yes |
organization_id | uuid | yes |
requires_provider_signature | boolean | yes |
updated_by | text | |
updated_at | timestamp with time zone | yes |
emr_pacu_scores
Patient-owned directly: emr_pacu_scores.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
instrument | text | yes |
instrument_version | integer | yes |
components | jsonb | |
observed_at | timestamp with time zone | yes |
recorded_at | timestamp with time zone | yes |
recorded_by | text | yes |
late_entry_reason | text | |
corrects_id | uuid | |
correction_reason | text | |
request_key | uuid | yes |
emr_partners
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
code | text | yes |
name | text | yes |
kind | text | yes |
provider_id | uuid | |
entity | text | yes |
active | boolean | yes |
source | text | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_pathway_patient_items
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
pathway_id | uuid | yes |
item_key | text | yes |
item_kind | text | yes |
body | text | |
sheet_id | uuid | |
anchor | text | yes |
timing | text | yes |
offset_days | integer | yes |
offset_minutes | integer | yes |
time_of_day | text | |
until_days | integer | |
patient_facing | boolean | yes |
owner_user_id | text | |
owner_name | text | |
phase_label | text | |
restrictions | text | |
sort_order | integer | yes |
revision | integer | yes |
status | text | yes |
source | jsonb | |
needs_review | boolean | yes |
sheet_snapshot | jsonb | |
approved_by | text | |
approved_at | timestamp with time zone | |
created_by | text | yes |
updated_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_pathway_revisions
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
pathway_id | uuid | yes |
revision | integer | yes |
content | jsonb | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
emr_pathways
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
scope | text | yes |
owner_user_id | text | |
name | text | yes |
specialty | text | yes |
setting | text | yes |
match | jsonb | yes |
match_priority | integer | yes |
phases | jsonb | yes |
instructions | text | yes |
follow_ups | jsonb | yes |
status | text | yes |
revision | integer | yes |
published_revision | integer | |
source | text | yes |
source_key | text | |
needs_review | boolean | yes |
forked_from | jsonb | |
created_by | text | yes |
updated_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_patient_amendments
Patient-owned directly: emr_patient_amendments.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
review_item_id | uuid | yes |
affected_kind | text | yes |
affected_id | text | |
affected_label | text | yes |
requested_change | text | yes |
decision | text | yes |
amendment_text | text | |
denial_reason | text | |
disagreement_statement | text | |
disagreement_at | timestamp with time zone | |
disagreement_by | text | |
decided_by | text | yes |
decided_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_patient_care_team
Patient-owned directly: emr_patient_care_team.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
role | text | yes |
referring_provider_id | uuid | |
display_name | text | yes |
set_by | text | yes |
set_at | timestamp with time zone | yes |
emr_patient_care_team_members
Patient-owned directly: emr_patient_care_team_members.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
name | text | yes |
function_system | text | yes |
function_code | text | yes |
function_display | text | yes |
npi | text | |
practice_name | text | |
phone | text | |
email | text | |
added_by | text | yes |
added_at | timestamp with time zone | yes |
emr_patient_grievances
Patient-owned directly: emr_patient_grievances.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
facility_id | uuid | yes |
case_id | uuid | |
received_at | timestamp with time zone | yes |
received_by | text | yes |
received_via | text | yes |
submitted_by | text | yes |
category | text | yes |
abuse_or_neglect | boolean | yes |
summary | text | yes |
late_entry_reason | text | |
acknowledge_due_at | timestamp with time zone | yes |
decision_due_at | timestamp with time zone | yes |
authority_report_due_at | timestamp with time zone | |
status | text | yes |
acknowledged_at | timestamp with time zone | |
acknowledged_by | text | |
acknowledgment_method | text | |
authority_reported_at | timestamp with time zone | |
authority_reported_by | text | |
authority_person | text | |
investigation_started_at | timestamp with time zone | |
investigation_started_by | text | |
investigation_steps | text | |
substantiated | boolean | |
state_reported_at | timestamp with time zone | |
state_reported_by | text | |
state_agency | text | |
resolved_at | timestamp with time zone | |
resolved_by | text | |
resolution_results | text | |
contact_person | text | |
completed_on | date | |
written_notice_sent_at | timestamp with time zone | |
written_notice_method | text | |
decision_document_id | uuid | |
version | integer | yes |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
request_key | uuid | yes |
emr_patient_guarantors
Patient-owned directly: emr_patient_guarantors.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
relationship | text | yes |
same_as_patient | boolean | yes |
name | text | |
date_of_birth | text | |
phone | text | |
address_line1 | text | |
address_line2 | text | |
city | text | |
state | text | |
zip | text | |
set_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_patient_identity_events
Patient-owned directly: emr_patient_identity_events.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
candidate_id | uuid | |
document_id | uuid | |
source_event_id | uuid | |
actor_id | text | yes |
request_key | uuid | yes |
event_key | text | yes |
request_hash | text | yes |
kind | text | yes |
reason | text | yes |
details | jsonb | yes |
created_at | timestamp with time zone | yes |
emr_patient_language
Patient-owned directly: emr_patient_language.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
preferred_language | text | |
dialect | text | |
interpreter_needed | text | yes |
language_declined | boolean | yes |
recorded_by | text | yes |
recorded_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_patient_messaging_preferences
Patient-owned directly: emr_patient_messaging_preferences.patient_id.
| Column | Postgres type | Required |
|---|---|---|
organization_id | uuid | yes |
patient_id | uuid | yes |
secure_default | boolean | yes |
version | integer | yes |
set_by | text | |
set_at | timestamp with time zone | |
standing_portal_thread_id | uuid | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_patient_notice_deliveries
Patient-owned directly: emr_patient_notice_deliveries.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | |
admission_id | uuid | |
facility_id | uuid | yes |
kind | text | yes |
notice_version_id | uuid | yes |
recipient | text | yes |
representative_relationship | text | |
verbal_at | timestamp with time zone | |
verbal_language | text | |
interpreter_used | boolean | |
written_at | timestamp with time zone | yes |
written_method | text | yes |
acknowledgment_document_id | uuid | |
understood_confirmed | boolean | yes |
im_copy | text | |
signature | text | |
late_entry_reason | text | |
recorded_by | text | yes |
recorded_at | timestamp with time zone | yes |
entered_in_error_at | timestamp with time zone | |
entered_in_error_by | text | |
entered_in_error_reason | text | |
request_key | uuid | yes |
emr_patient_pharmacies
Patient-owned directly: emr_patient_pharmacies.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
binding_id | uuid | yes |
vendor_pharmacy_id | text | yes |
name | text | yes |
address | jsonb | yes |
phone | text | |
fax | text | |
ncpdp_id | text | |
is_preferred | boolean | yes |
status | text | yes |
added_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_patient_readiness_items
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
item_key | text | yes |
patient_facing | boolean | yes |
updated_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_patient_registration_receipts
Patient-owned directly: emr_patient_registration_receipts.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
actor_id | text | yes |
request_key | uuid | yes |
request_hash | text | yes |
patient_id | uuid | yes |
created | boolean | yes |
created_at | timestamp with time zone | yes |
emr_patient_restriction_requests
Patient-owned directly: emr_patient_restriction_requests.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
request_reference | text | yes |
review_item_id | uuid | |
requested_by_principal | text | yes |
requested_by_grant_id | uuid | |
requested_by_relationship | text | yes |
data_scope | text | yes |
recipient | text | yes |
reason | text | |
status | text | yes |
decided_by | text | |
decided_at | timestamp with time zone | |
decision_reason | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_payer_contract_rates
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
contract_id | uuid | yes |
code_system | text | yes |
code | text | yes |
modifier | text | yes |
allowed_cents | integer | yes |
units_basis | text | yes |
effective_start | date | yes |
effective_end | date | |
review_state | text | yes |
origin | text | yes |
confidence | numeric(4, 3) | |
source_line_text | text | |
reviewed_by | text | |
reviewed_at | timestamp with time zone | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_payer_contracts
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
organization_payer_id | uuid | yes |
name | text | yes |
basis | text | yes |
percent | numeric(7, 3) | |
rate_cents | integer | |
multiple_procedure_percent | numeric(7, 3) | |
bilateral_percent | numeric(7, 3) | |
setting | text | yes |
status | text | yes |
effective_start | date | yes |
effective_end | date | |
source_document_id | uuid | |
source_ref | text | |
notes_safe | text | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_phone_calls
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
credential_id | uuid | yes |
room_name | text | yes |
sip_call_id | text | yes |
sip_trunk_id | text | yes |
caller_number | text | |
dialed_number | text | yes |
metadata_sha256 | text | yes |
started_at | timestamp with time zone | yes |
ended_at | timestamp with time zone | |
end_reason | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_phone_grants
Patient-owned directly: emr_phone_grants.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
call_id | uuid | yes |
kind | text | yes |
actor | text | yes |
patient_id | uuid | |
referral_id | uuid | |
attempt_id | uuid | |
appointment_id | uuid | |
operations | text[] | yes |
proxy_name | text | |
proxy_relationship | text | |
handle_sha256 | text | yes |
issued_at | timestamp with time zone | yes |
expires_at | timestamp with time zone | yes |
revoked_at | timestamp with time zone | |
revoke_reason | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_phone_identity_failures
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
scope | text | yes |
key | text | yes |
failures | integer | yes |
window_started_at | timestamp with time zone | yes |
last_failed_at | timestamp with time zone | |
cooloff_until | timestamp with time zone | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_phone_offer_sets
Patient-owned through a foreign-key path: emr_phone_offer_sets .grant_id → emr_phone_grants.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
call_id | uuid | yes |
grant_id | uuid | |
options | jsonb | yes |
expires_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
emr_phone_operations
Patient-owned through a foreign-key path: emr_phone_operations .grant_id → emr_phone_grants.id or emr_phone_operations .appointment_id → appointments.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
call_id | uuid | yes |
operation_key | text | yes |
operation | text | yes |
request_sha256 | text | yes |
grant_id | uuid | |
credential_id | uuid | yes |
appointment_id | uuid | |
result | jsonb | yes |
dispatch_lease_until | timestamp with time zone | |
dispatch_lease_token | uuid | |
created_at | timestamp with time zone | yes |
emr_phone_provenance
Patient-owned directly: emr_phone_provenance.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
phone_digits | text | yes |
source | text | yes |
source_ref | text | |
recorded_by | text | yes |
recorded_at | timestamp with time zone | yes |
emr_phone_requests
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
credential_id | uuid | yes |
call_id | text | yes |
item_ref | text | yes |
revision | integer | yes |
amended_at | timestamp with time zone | |
correction_of | text | |
correction_of_request_id | uuid | |
request_sha256 | text | yes |
hash_version | integer | yes |
kind | text | yes |
caller_phone | text | |
callback_phone | text | |
reason | text | yes |
preferred_location | text | |
preferred_time | text | |
caller_name | text | |
stated_is_patient | boolean | |
stated_is_new_patient | boolean | |
received_at | timestamp with time zone | yes |
transcript_url | text | |
status | text | yes |
outcome | text | |
outcome_note | text | |
handled_at | timestamp with time zone | |
handled_by | text | |
assignee_type | text | |
assignee_id | text | |
assigned_at | timestamp with time zone | |
assigned_by | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_portal_transmissions
Patient-owned directly: emr_portal_transmissions.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
request_reference | text | yes |
requested_by_principal | text | yes |
requested_by_grant_id | uuid | |
method | text | yes |
to_address | text | yes |
subject | text | yes |
range_from | date | |
range_to | date | |
attachments | jsonb | yes |
status | text | yes |
status_detail | text | |
transport | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_practice_phrases
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
trigger | text | yes |
label | text | yes |
category | text | |
expansion | text | yes |
html | text | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
retired_at | timestamp with time zone | |
retired_by | text |
emr_privacy_policies
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
version | integer | yes |
settings | jsonb | yes |
reviewed_by | text | yes |
reviewed_at | timestamp with time zone | yes |
emr_privacy_reviews
Patient-owned directly: emr_privacy_reviews.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
revision | bigserial | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
resource_type | text | yes |
resource_id | text | yes |
content_version | text | yes |
sources | jsonb | yes |
outside_record | boolean | yes |
identity_verified | boolean | yes |
minor_reviewed | boolean | yes |
reviewed_by | text | yes |
reviewed_at | timestamp with time zone | yes |
emr_procedure_setups
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
scope | text | yes |
owner_id | text | |
phrase_id | text | yes |
version | integer | yes |
active | boolean | yes |
label | text | yes |
kind | text | yes |
cpt | text | yes |
modifiers | text[] | yes |
units | integer | yes |
body_site | text | yes |
laterality | text | yes |
guidance | text | yes |
drugs | jsonb | yes |
frequency | jsonb | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
emr_provider_coverage
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
provider_id | uuid | yes |
covering_provider_id | uuid | yes |
starts_at | timestamp with time zone | yes |
ends_at | timestamp with time zone | yes |
scope | text | yes |
note | text | |
cancelled_at | timestamp with time zone | |
cancelled_by | text | |
created_by | text | yes |
updated_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
request_key | uuid | yes |
emr_reason_codes
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
list | text | yes |
code | text | yes |
label | text | yes |
semantics | jsonb | yes |
active | boolean | yes |
sort | integer | yes |
revision | integer | yes |
created_by | text | yes |
updated_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_record_drs_exceptions
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
record_table | text | yes |
record_id | uuid | yes |
entity_key | text | yes |
revision | integer | yes |
in_drs | boolean | |
reason | text | yes |
approved_by | text | yes |
approved_at | timestamp with time zone | yes |
request_key | uuid | yes |
emr_record_governance_policies
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
version | integer | yes |
settings | jsonb | yes |
approved_by | text | yes |
approved_at | timestamp with time zone | yes |
request_key | uuid | yes |
emr_record_governance_requests
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
organization_id | uuid | yes |
request_key | uuid | yes |
command | text | yes |
actor_id | text | yes |
input_sha256 | text | yes |
result | jsonb | yes |
created_at | timestamp with time zone | yes |
emr_record_provenance
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
record_table | text | yes |
record_id | uuid | yes |
authoring_facility_id | uuid | |
custodial_facility_id | uuid | |
provenance_status | text | yes |
derivation | text | yes |
revision | integer | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_record_provenance_history
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
provenance_id | uuid | yes |
record_table | text | yes |
record_id | uuid | yes |
revision | integer | yes |
authoring_facility_id | uuid | |
custodial_facility_id | uuid | |
provenance_status | text | yes |
derivation | text | yes |
reason | text | |
actor_id | text | |
request_key | uuid | |
created_at | timestamp with time zone | yes |
emr_recording_sessions
Patient-owned directly: emr_recording_sessions.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
case_id | uuid | |
admission_id | uuid | |
recorder | text | yes |
mode | text | yes |
status | text | yes |
paperwork_submission_id | uuid | |
paperwork_signed_at | timestamp with time zone | |
participants | jsonb | |
consent_revision | integer | yes |
started_at | timestamp with time zone | yes |
started_by | text | yes |
confirmed_at | timestamp with time zone | |
paused_at | timestamp with time zone | |
pause_reason | text | |
ended_at | timestamp with time zone | |
ended_by | text | |
revoked_at | timestamp with time zone | |
revoked_by | text | |
revoke_reason | text | |
request_key | uuid | yes |
consent_basis | text | |
attestation_version | text | |
attestation_sha256 | text | |
attested_at | timestamp with time zone |
emr_referral_booking_links
Patient-owned directly: emr_referral_booking_links.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
referral_id | uuid | yes |
token_sha256 | text | yes |
generation | integer | yes |
created_via | text | yes |
expires_at | timestamp with time zone | yes |
revoked_at | timestamp with time zone | |
revoked_reason | text | |
texted_at | timestamp with time zone | |
text_status | text | |
text_reason | text | |
provider_message_id | text | |
verified_at | timestamp with time zone | |
session_sha256 | text | |
session_expires_at | timestamp with time zone | |
used_at | timestamp with time zone | |
appointment_id | uuid | |
patient_id | uuid | |
booking_request_key | text | |
booking_request_hash | text | |
contact_email | text | |
request_key | text | |
texted_to | text | |
text_body | text | |
offers_call | boolean | yes |
replaced_link_id | uuid | |
dispatch_started_at | timestamp with time zone | |
reply_reviewed_through_seq | integer | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_referral_call_consents
Patient-owned through a foreign-key path: emr_referral_call_consents .link_id → emr_referral_booking_links.id or emr_referral_call_consents .referral_id → emr_referrals.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
referral_id | uuid | yes |
link_id | uuid | yes |
phone_e164 | text | yes |
replied_to_text | text | yes |
text_sent_at | timestamp with time zone | yes |
text_sent_by | text | yes |
reply_text | text | yes |
replied_at | timestamp with time zone | yes |
source | text | yes |
inbound_message_id | uuid | |
recorded_by | text | yes |
recorded_at | timestamp with time zone | yes |
review_item_id | uuid | |
withdrawn_at | timestamp with time zone | |
withdrawn_reason | text | |
withdrawn_by | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_referrals
Patient-owned directly: emr_referrals.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
document_id | uuid | yes |
routing_status | text | yes |
classification | text | |
evidence | jsonb | yes |
face_sheet | jsonb | yes |
face_sheet_flags | text[] | yes |
proposed_date_of_birth | date | |
face_sheet_phone_digits | text | |
face_sheet_phone_role | text | |
face_sheet_phone_provenance | text | yes |
external_mrn_issuer | text | |
external_mrn_value | text | |
referrer_zip | text | |
referrer_zip_source | text | |
region | text | |
patient_id | uuid | |
identity_settled_via | text | |
identity_settled_at | timestamp with time zone | |
identity_settled_by | text | |
identity_receipt | jsonb | |
fax_filed_at | timestamp with time zone | |
review_item_id | uuid | |
hold_for_review | boolean | yes |
hold_released_at | timestamp with time zone | |
hold_released_by | text | |
status | text | yes |
close_reason | text | |
closed_at | timestamp with time zone | |
closed_by | text | |
fulfillment_appointment_id | uuid | |
booked_via | text | |
contact_outcome | text | |
contact_at | timestamp with time zone | |
contact_by | text | |
contact_attempts | integer | yes |
dob_failures | integer | yes |
dob_locked_at | timestamp with time zone | |
call_consent_cutoff_at | timestamp with time zone | |
outreach_status | text | yes |
outreach_reason | text | |
version | integer | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_referring_providers
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
name | text | yes |
npi | text | |
specialty | text | |
practice_name | text | |
phone | text | |
fax | text | |
address_line1 | text | |
city | text | |
state | text | |
zip | text | |
active | boolean | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_release_governance_reviews
Patient-owned through a foreign-key path: emr_release_governance_reviews .request_id → him_record_requests.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
request_id | uuid | yes |
manifest_sha256 | text | yes |
reason | text | yes |
record_table | text | yes |
record_id | uuid | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
emr_report_deliveries
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
definition_id | text | yes |
owner_user_id | uuid | yes |
occurrence_key | text | yes |
occurrence_at | timestamp with time zone | yes |
schedule_sha256 | text | yes |
report_snapshot | jsonb | yes |
recipient_count | integer | yes |
status | text | yes |
created_at | timestamp with time zone | yes |
completed_at | timestamp with time zone | |
read_at | timestamp with time zone |
emr_report_delivery_recipients
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
delivery_id | uuid | yes |
recipient_email | text | yes |
recipient_user_id | uuid | |
status | text | yes |
export_job_id | uuid | |
run_id | uuid | |
reason_code | text | |
provider_receipt | text | |
lease_owner | uuid | |
lease_expires_at | timestamp with time zone | |
attempts | integer | yes |
available_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_report_export_jobs
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
user_id | uuid | yes |
definition_id | text | yes |
request_key | uuid | yes |
report_snapshot | jsonb | yes |
format | text | yes |
surface | text | yes |
status | text | yes |
phase | text | yes |
snapshot | jsonb | |
row_count | integer | yes |
cursor | integer | yes |
byte_count | integer | yes |
pending_csv | text | yes |
upload_id | text | |
parts | jsonb | yes |
lease_owner | uuid | |
lease_expires_at | timestamp with time zone | |
attempts | integer | yes |
available_at | timestamp with time zone | yes |
run_id | uuid | |
error_code | text | |
read_at | timestamp with time zone | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
expires_at | timestamp with time zone | yes |
emr_report_refresh_grants
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
definition_id | text | yes |
user_id | uuid | yes |
token_sha256 | text | yes |
created_at | timestamp with time zone | yes |
expires_at | timestamp with time zone | yes |
revoked_at | timestamp with time zone |
emr_report_runs
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
definition_id | text | yes |
run_by | uuid | yes |
trigger | text | yes |
plan | jsonb | yes |
plan_sha256 | text | yes |
content_sha256 | text | yes |
artifact_sha256 | text | |
facility_scope | jsonb | yes |
required_capabilities | jsonb | yes |
as_of | timestamp with time zone | yes |
resolved_from | text | |
resolved_to | text | |
date_basis | text | |
watermark | text | |
control_totals | jsonb | yes |
row_count | integer | yes |
format | text | yes |
storage_ref | text | |
executor_version | text | yes |
dataset_version | text | yes |
status | text | yes |
expires_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
emr_restraint_checks
Patient-owned directly: emr_restraint_checks.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
episode_id | uuid | yes |
observed_at | timestamp with time zone | yes |
recorded_at | timestamp with time zone | yes |
recorded_by | text | yes |
findings | jsonb | yes |
note | text | |
late_entry_reason | text | |
request_key | uuid | yes |
emr_restraint_death_reports
Patient-owned directly: emr_restraint_death_reports.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
episode_id | uuid | yes |
died_at | timestamp with time zone | yes |
relation | text | yes |
contributed | boolean | |
obligation | text | yes |
due_at | timestamp with time zone | yes |
death_recorded_by | text | yes |
death_recorded_at | timestamp with time zone | yes |
reported_at | timestamp with time zone | |
reported_by | text | |
report_reference | text | |
report_recorded_at | timestamp with time zone | |
request_key | uuid | yes |
emr_restraint_episodes
Patient-owned directly: emr_restraint_episodes.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
admission_id | uuid | yes |
category | text | yes |
devices | text[] | yes |
age_band | text | yes |
started_at | timestamp with time zone | yes |
started_by | text | yes |
recorded_at | timestamp with time zone | yes |
late_entry_reason | text | |
ended_at | timestamp with time zone | |
ended_by | text | |
end_reason | text | |
end_note | text | |
end_recorded_at | timestamp with time zone | |
request_key | uuid | yes |
emr_restraint_face_to_face
Patient-owned directly: emr_restraint_face_to_face.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
episode_id | uuid | yes |
evaluator_role | text | yes |
evaluator_provider_id | uuid | |
training_attested | boolean | yes |
evaluated_at | timestamp with time zone | yes |
immediate_situation | text | yes |
reaction | text | yes |
condition | text | yes |
decision | text | yes |
attending_provider_id | uuid | |
attending_consulted_at | timestamp with time zone | |
attending_consult_recorded_by | text | |
recorded_at | timestamp with time zone | yes |
recorded_by | text | yes |
late_entry_reason | text | |
request_key | uuid | yes |
emr_restraint_orders
Patient-owned directly: emr_restraint_orders.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
episode_id | uuid | yes |
order_id | uuid | yes |
authorized_from | timestamp with time zone | yes |
authorized_until | timestamp with time zone | yes |
limit_hours | integer | yes |
in_person_assessed_at | timestamp with time zone | |
linked_by | text | yes |
linked_at | timestamp with time zone | yes |
emr_restricted_chart_access_requests
Patient-owned directly: emr_restricted_chart_access_requests.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
requester_user_id | uuid | yes |
reason | text | yes |
status | text | yes |
requested_at | timestamp with time zone | yes |
expires_at | timestamp with time zone | yes |
decided_by_user_id | uuid | |
decided_at | timestamp with time zone | |
grant_id | uuid | |
grant_expires_at | timestamp with time zone | |
updated_at | timestamp with time zone | yes |
emr_restricted_chart_grants
Patient-owned directly: emr_restricted_chart_grants.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
user_id | uuid | yes |
granted_by | text | yes |
granted_at | timestamp with time zone | yes |
revoked_at | timestamp with time zone | |
revoked_by | text | |
expires_at | timestamp with time zone |
emr_room_block_series
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
room_id | uuid | yes |
provider_id | uuid | yes |
pattern | text | yes |
weekday | smallint | yes |
week_of_month | smallint | |
start_time | time | yes |
end_time | time | yes |
first_day | date | yes |
last_day | date | yes |
time_zone | text | yes |
note | text | |
status | text | yes |
revision | integer | yes |
request_key | uuid | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
emr_room_blocks
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
room_id | uuid | yes |
starts_at | timestamp with time zone | yes |
ends_at | timestamp with time zone | yes |
time_zone | text | yes |
status | text | yes |
revision | integer | yes |
request_key | uuid | yes |
change_reason | text | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
provider_id | uuid | yes |
series_id | uuid | |
note | text | |
release_reason | text |
emr_room_capacity_events
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
room_id | uuid | yes |
owner_kind | text | yes |
block_id | uuid | |
staffed_interval_id | uuid | |
revision | integer | yes |
kind | text | yes |
request_key | uuid | yes |
reason | text | yes |
before_snapshot | jsonb | |
snapshot | jsonb | yes |
actor_id | text | yes |
actor_type | text | yes |
source_ref | text | |
occurred_at | timestamp with time zone | yes |
emr_room_hold_events
Patient-owned through a foreign-key path: adapter room-hold-events.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
room_id | uuid | yes |
hold_id | uuid | yes |
revision | integer | yes |
kind | text | yes |
request_key | uuid | yes |
before_snapshot | jsonb | |
snapshot | jsonb | yes |
actor_id | text | yes |
actor_type | text | yes |
source_ref | text | |
occurred_at | timestamp with time zone | yes |
emr_room_holds
Patient-owned directly: emr_room_holds.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
room_id | uuid | yes |
provider_id | uuid | |
patient_id | uuid | |
starts_at | timestamp with time zone | yes |
ends_at | timestamp with time zone | yes |
time_zone | text | yes |
reason | text | yes |
note | text | |
visibility | text | yes |
expires_at | timestamp with time zone | yes |
status | text | yes |
revision | integer | yes |
request_key | uuid | yes |
change_reason | text | |
requested_case_id | uuid | |
converted_case_id | uuid | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
emr_specimen_events
Patient-owned directly: emr_specimen_events.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
specimen_id | uuid | yes |
kind | text | yes |
recorded_by | text | yes |
observed_at | timestamp with time zone | yes |
recorded_at | timestamp with time zone | yes |
copies | integer | |
reprint_reason | text | |
recipient_kind | text | |
recipient_name | text | |
handoff_id | uuid | |
reason | text | |
late_entry_reason | text | |
request_key | uuid | yes |
emr_staff_cost_allocation_inputs
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
run_id | uuid | yes |
interval_id | uuid | yes |
revision_id | uuid | yes |
staff_user_id | uuid | yes |
role_code | text | yes |
case_id | uuid | |
case_mapping_id | uuid | |
clipped_start | timestamp with time zone | yes |
clipped_end | timestamp with time zone | yes |
emr_staff_cost_allocation_lines
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
run_id | uuid | yes |
staff_user_id | uuid | yes |
role_code | text | yes |
case_id | uuid | |
allocated_seconds | integer | yes |
shared_seconds | integer | yes |
rate_id | uuid | |
hourly_rate_cents | integer | |
cost_cents | bigint |
emr_staff_cost_allocation_rules
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
version | integer | yes |
overlap_rule | text | yes |
rate_basis | text | yes |
effective_from | date | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
emr_staff_cost_allocation_runs
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
period_start | date | yes |
period_end | date | yes |
rule_id | uuid | yes |
interval_count | integer | yes |
observed_seconds | bigint | yes |
allocated_seconds | bigint | yes |
unrated_seconds | bigint | yes |
cost_cents | bigint | yes |
input_digest | text | yes |
request_key | uuid | yes |
request_digest | text | yes |
computed_by | text | yes |
computed_at | timestamp with time zone | yes |
emr_staff_cost_rates
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | |
subject_kind | text | yes |
staff_user_id | uuid | |
role_code | text | |
effective_from | date | yes |
effective_to | date | |
hourly_rate_cents | integer | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
closed_by | text | |
closed_at | timestamp with time zone |
emr_staff_cost_run_exclusions
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
run_id | uuid | yes |
interval_id | uuid | yes |
reason | text | yes |
emr_staff_cost_run_flags
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
run_id | uuid | yes |
interval_id | uuid | yes |
reason | text | yes |
created_at | timestamp with time zone | yes |
emr_staff_credentials
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
user_id | uuid | yes |
kind | text | yes |
credential_label | text | |
identifier | text | |
issuing_state | text | |
expires_on | date | yes |
verification_method | text | yes |
verified_by | text | yes |
verified_at | timestamp with time zone | yes |
recorded_by | text | yes |
recorded_at | timestamp with time zone | yes |
retired_at | timestamp with time zone | |
retired_by | text | |
retire_reason | text |
emr_staff_handoffs
Patient-owned through a foreign-key path: emr_staff_handoffs .thread_id → emr_staff_threads.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
thread_id | uuid | yes |
message_seq | integer | yes |
service_inbox_id | uuid | yes |
from_user_id | uuid | yes |
to_user_id | uuid | yes |
request_key | uuid | yes |
request_hash | text | yes |
status | text | yes |
accepted_by | uuid | |
accepted_at | timestamp with time zone | |
batch_id | uuid | |
declined_at | timestamp with time zone | |
declined_by | uuid | |
decline_note_seq | integer | |
created_at | timestamp with time zone | yes |
emr_staff_mentions
Patient-owned directly: emr_staff_mentions.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
thread_id | uuid | yes |
message_seq | integer | yes |
patient_id | uuid | |
mentioned_user_id | uuid | yes |
author_user_id | uuid | yes |
position | smallint | yes |
added_as_recipient | boolean | yes |
created_at | timestamp with time zone | yes |
read_at | timestamp with time zone | |
cleared_at | timestamp with time zone |
emr_staff_message_agent_origins
Patient-owned through a foreign-key path: emr_staff_message_agent_origins .message_id → emr_staff_messages.id .thread_id → emr_staff_threads.id.
| Column | Postgres type | Required |
|---|---|---|
message_id | uuid | yes |
organization_id | uuid | yes |
thread_id | uuid | yes |
task_id | uuid | yes |
on_behalf_of_user_id | uuid | yes |
agent | text | yes |
created_at | timestamp with time zone | yes |
emr_staff_messages
Patient-owned through a foreign-key path: emr_staff_messages .thread_id → emr_staff_threads.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
thread_id | uuid | yes |
seq | integer | yes |
author_user_id | uuid | yes |
client_key | uuid | yes |
body | text | yes |
tier | text | yes |
created_at | timestamp with time zone | yes |
emr_staff_notification_outbox
Patient-owned through a foreign-key path: emr_staff_notification_outbox .thread_id → emr_staff_threads.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
thread_id | uuid | yes |
message_seq | integer | yes |
recipient_user_id | uuid | yes |
kind | text | yes |
status | text | yes |
available_at | timestamp with time zone | yes |
lease_token | uuid | |
lease_until | timestamp with time zone | |
attempts | integer | yes |
accepted_at | timestamp with time zone | |
last_error_code | text | |
created_at | timestamp with time zone | yes |
emr_staff_notification_preferences
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
user_id | uuid | yes |
push_enabled | boolean | yes |
digest_routine | boolean | yes |
quiet_start | integer | yes |
quiet_end | integer | yes |
urgent_during_quiet | boolean | yes |
escalation_minutes | integer | yes |
sms_enabled | boolean | yes |
sms_include_message | boolean | yes |
sms_phone | text | |
sms_verified_phone | text | |
sms_phone_verified_at | timestamp with time zone | |
updated_at | timestamp with time zone | yes |
emr_staff_thread_receipts
Patient-owned through a foreign-key path: emr_staff_thread_receipts .thread_id → emr_staff_threads.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
thread_id | uuid | yes |
user_id | uuid | yes |
read_seq | integer | yes |
presence | text | yes |
last_seen_at | timestamp with time zone | yes |
emr_staff_thread_recipients
Patient-owned through a foreign-key path: emr_staff_thread_recipients .thread_id → emr_staff_threads.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
thread_id | uuid | yes |
kind | text | yes |
user_id | uuid | |
inbox_id | uuid | |
added_at | timestamp with time zone | yes |
via_mention | boolean | yes |
emr_staff_threads
Patient-owned directly: emr_staff_threads.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | |
subject | text | yes |
urgency | text | yes |
status | text | yes |
assigned_inbox_id | uuid | |
assigned_user_id | uuid | |
created_by_user_id | uuid | yes |
request_key | uuid | yes |
request_hash | text | yes |
last_seq | integer | yes |
version | integer | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
resolved_at | timestamp with time zone |
emr_staff_time_case_links
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
interval_id | uuid | yes |
revision_id | uuid | yes |
external_case_id | text | yes |
case_id | uuid | |
linked_by | text | yes |
reason | text | yes |
linked_at | timestamp with time zone | yes |
emr_staff_time_conflict_adjudications
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
interval_id | uuid | yes |
adopted_revision_id | uuid | yes |
adjudicated_by | text | yes |
reason | text | yes |
adjudicated_at | timestamp with time zone | yes |
emr_staff_time_interval_revisions
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
interval_id | uuid | yes |
revision | bigint | yes |
disposition | text | yes |
external_staff_id | text | |
external_case_id | text | |
staff_user_id | uuid | |
case_id | uuid | |
role_code | text | yes |
started_at | timestamp with time zone | yes |
ended_at | timestamp with time zone | |
voided | boolean | yes |
content_hash | text | yes |
receipt_id | uuid | |
row_index | integer | |
recorded_by | text | yes |
reason | text | |
recorded_at | timestamp with time zone | yes |
emr_staff_time_interval_subjects
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
interval_id | uuid | yes |
subject_kind | text | yes |
subject_id | uuid | yes |
first_seen_at | timestamp with time zone | yes |
emr_staff_time_intervals
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
source | text | yes |
connection_id | uuid | |
source_interval_id | text | yes |
current_revision_id | uuid | |
current_revision | bigint | |
status | text | yes |
staff_user_id | uuid | |
role_code | text | |
case_id | uuid | |
started_at | timestamp with time zone | |
ended_at | timestamp with time zone | |
resolution | text | yes |
case_resolution | text | yes |
case_mapping_id | uuid | |
candidate_case_id | uuid | |
has_conflict | boolean | yes |
review_required | boolean | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
version | integer | yes |
emr_staff_time_receipt_rows
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
receipt_id | uuid | yes |
row_index | integer | yes |
interval_id | uuid | |
outcome | text | yes |
reason | text | |
original_reason | text | |
routed_connection_id | uuid | |
decided_by | text | |
updated_at | timestamp with time zone | yes |
emr_staffed_room_intervals
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
room_id | uuid | yes |
starts_at | timestamp with time zone | yes |
ends_at | timestamp with time zone | yes |
time_zone | text | yes |
status | text | yes |
revision | integer | yes |
request_key | uuid | yes |
change_reason | text | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
emr_standing_order_approvals
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
version_id | uuid | yes |
domain | text | yes |
approved_by | text | yes |
approved_at | timestamp with time zone | yes |
emr_standing_order_versions
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
protocol_key | text | yes |
version | integer | yes |
title | text | yes |
order_template | jsonb | yes |
template_hash | text | yes |
effective_at | timestamp with time zone | yes |
review_due_at | timestamp with time zone | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
retired_at | timestamp with time zone | |
retired_by | text | |
retired_reason | text |
emr_surgery_coordinations
Patient-owned directly: emr_surgery_coordinations.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
status | text | yes |
surgeon_provider_id | uuid | yes |
dos | date | |
start_time | text | |
arrival_time | text | |
facility_id | uuid | |
outside_facility_contact_id | uuid | |
case_length_minutes | integer | |
admission_type | text | |
emergency | boolean | yes |
priority | text | |
insurance_type | text | |
preop_tests | text[] | yes |
description | text | |
draft_reason_code | text | |
draft_follow_up_on | date | |
draft_note | text | |
blocker_code | text | |
cancel_reason_code | text | |
canceled_at | timestamp with time zone | |
canceled_by | text | |
performed_at | timestamp with time zone | |
performed_by | text | |
completed_at | timestamp with time zone | |
completed_by | text | |
source | text | yes |
confirmed_by | text | |
surgical_case_id | uuid | |
checklist_definition_id | uuid | |
delivery_mode | text | yes |
clinical_version | integer | yes |
row_version | integer | yes |
created_by | text | yes |
updated_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_time_out_attestations
Patient-owned directly: emr_time_out_attestations.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
role | text | yes |
attested_by | text | yes |
attested_at | timestamp with time zone | yes |
time_out_at | timestamp with time zone | yes |
statement_hash | text | yes |
late_entry_reason | text | |
request_key | uuid | yes |
emr_transfusion_determinations
Patient-owned directly: emr_transfusion_determinations.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
provider_id | uuid | yes |
determined_by | text | yes |
determined_at | timestamp with time zone | yes |
transfusion_possible | boolean | yes |
predonation_exception | text | |
suggested_possible | boolean | yes |
suggestion_basis | text | |
supersedes_id | uuid | |
request_key | uuid | yes |
emr_transfusion_notices
Patient-owned directly: emr_transfusion_notices.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
determination_id | uuid | yes |
kind | text | yes |
recipient | text | yes |
occurred_at | timestamp with time zone | yes |
summary_edition | text | |
document_id | uuid | |
given_by_provider_id | uuid | |
recorded_by | text | yes |
recorded_at | timestamp with time zone | yes |
request_key | uuid | yes |
emr_unit_intake_nurses
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
unit | text | yes |
user_id | uuid | yes |
designated_by | text | yes |
designated_at | timestamp with time zone | yes |
ended_at | timestamp with time zone | |
ended_by | text |
emr_unit_transfers
Patient-owned directly: emr_unit_transfers.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
facility_id | uuid | yes |
from_phase | text | yes |
destination | text | yes |
destination_note | text | |
unit | text | |
receiver_user_id | uuid | |
handoff_id | uuid | |
status | text | yes |
requested_by | text | yes |
requested_at | timestamp with time zone | yes |
accepted_by | text | |
accepted_at | timestamp with time zone | |
admission_id | uuid | |
bed_room_id | uuid | |
returned_by | text | |
returned_at | timestamp with time zone | |
cancelled_by | text | |
cancelled_at | timestamp with time zone | |
cancel_reason | text | |
notice_thread_id | uuid | |
request_key | uuid | yes |
emr_user_facility_grants
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
user_id | uuid | yes |
facility_id | uuid | yes |
granted_by | text | yes |
granted_at | timestamp with time zone | yes |
revoked_at | timestamp with time zone | |
revoked_by | text |
emr_user_links
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
firebase_uid | text | yes |
provider_id | uuid | |
display_name | text | |
active | boolean | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_vendor_group_members
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
group_id | uuid | yes |
contact_id | uuid | yes |
contact_channel | text | yes |
active | boolean | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
emr_vendor_groups
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
name | text | yes |
active | boolean | yes |
revision | integer | yes |
request_key | uuid | yes |
purpose | text | yes |
supplier_company_id | uuid | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
emr_vendor_users
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
user_id | uuid | yes |
contact_id | uuid | yes |
active | boolean | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
emr_visit_confirmations
Patient-owned directly: emr_visit_confirmations.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
appointment_id | uuid | yes |
patient_id | uuid | yes |
state | text | yes |
missing | text[] | yes |
identity_document_id | uuid | |
coverage_id | uuid | |
eligibility_result_id | uuid | |
payment_basis | text | |
payment_basis_by | text | |
payment_basis_at | timestamp with time zone | |
override_reason | text | |
override_by | text | |
override_at | timestamp with time zone | |
confirmed_at | timestamp with time zone | |
frozen_at | timestamp with time zone | |
computed_at | timestamp with time zone | yes |
revision | integer | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_visit_links
Patient-owned directly: emr_visit_links.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
appointment_id | uuid | yes |
patient_id | uuid | yes |
token_sha256 | text | yes |
generation | integer | yes |
expires_at | timestamp with time zone | yes |
revoked_at | timestamp with time zone | |
revoked_reason | text | |
dob_failures | integer | yes |
locked_at | timestamp with time zone | |
verified_at | timestamp with time zone | |
session_sha256 | text | |
session_expires_at | timestamp with time zone | |
documents_received | jsonb | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
emr_visit_signoffs
Patient-owned directly: emr_visit_signoffs.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | yes |
signed_by | text | yes |
signed_by_provider_id | uuid | yes |
signed_at | timestamp with time zone | yes |
basis | jsonb | yes |
created_at | timestamp with time zone | yes |
emr_visit_text_sends
Patient-owned directly: emr_visit_text_sends.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
appointment_id | uuid | yes |
patient_id | uuid | yes |
link_id | uuid | |
kind | text | yes |
trigger | text | yes |
client_key | text | yes |
status | text | yes |
reason | text | |
provider_message_id | text | |
recipient_sha256 | text | |
channel | text | yes |
sent_by | text | yes |
created_at | timestamp with time zone | yes |
emr_web_booking_requests
Patient-owned directly: emr_web_booking_requests.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
idempotency_key | text | yes |
request_hash | text | yes |
confirmation_code | text | yes |
patient_id | uuid | |
appointment_id | uuid | |
patient_created | boolean | yes |
contact_email | text | |
created_at | timestamp with time zone | yes |
emr_wristbands
Patient-owned directly: emr_wristbands.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
admission_id | uuid | |
case_id | uuid | |
token | char(10) | yes |
issued_at | timestamp with time zone | yes |
issued_by | text | yes |
revoked_at | timestamp with time zone | |
revoked_by | text | |
revoke_reason | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
encounter_policy_evaluations
Patient-owned through a foreign-key path: encounter_policy_evaluations .encounter_id → encounters.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
encounter_id | uuid | yes |
organization_payer_id | uuid | yes |
requested_by_user_id | uuid | yes |
status | text | yes |
selection_method | text | yes |
policybot_plan_id | text | yes |
policybot_plan_name | text | |
policybot_company_name | text | |
plan_state | text | |
line_of_business | text | |
result | jsonb | |
evaluator_version | text | yes |
error_code | text | |
error_message | text | |
guidance | jsonb | |
started_at | timestamp | yes |
completed_at | timestamp | |
created_at | timestamp | yes |
encounter_policy_note_assists
Patient-owned through a foreign-key path: encounter_policy_note_assists .encounter_id → encounters.id or encounter_policy_note_assists .evaluation_id → encounter_policy_evaluations.id .encounter_id → encounters.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
encounter_id | uuid | yes |
evaluation_id | uuid | yes |
inserted_by_user_id | uuid | yes |
procedure_id | text | yes |
criterion_id | text | yes |
criterion_label | text | yes |
policy_title | text | |
policy_version_date | text | |
transcript_evidence | jsonb | yes |
inserted_html | text | yes |
before_note_html | text | yes |
after_note_html | text | yes |
created_at | timestamp | yes |
encounters
Patient-owned directly: encounters.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | |
provider_id | uuid | |
encounter_date | date | |
type | text | |
status | text | yes |
reason | text | |
dynamo_encounter_id | text | |
source | text | |
period_start | timestamp with time zone | |
period_end | timestamp with time zone | |
facility_id | uuid | |
late_entry_reason | text | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
erp_ap_invoice_lines
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
invoice_id | uuid | yes |
line_no | integer | yes |
description | text | yes |
quantity | integer | yes |
unit_price_cents | integer | yes |
amount_cents | integer | yes |
po_line_id | uuid | |
receipt_line_id | uuid | |
gl_account_number | text | |
cost_center_code | text | |
item_id | uuid |
erp_ap_invoices
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
supplier_id | uuid | yes |
invoice_number | text | yes |
invoice_date | date | yes |
due_date | date | yes |
status | text | yes |
subtotal_cents | integer | yes |
tax_cents | integer | yes |
freight_cents | integer | yes |
total_cents | integer | yes |
paid_cents | integer | yes |
po_id | uuid | |
match_status | text | yes |
match_exceptions | jsonb | yes |
matched_at | timestamp with time zone | |
approved_by | text | |
approved_at | timestamp with time zone | |
override_reason | text | |
scheduled_run_id | uuid | |
document_id | uuid | |
journal_entry_id | uuid | |
memo | text | |
void_reason | text | |
voided_at | timestamp with time zone | |
voided_by | text | |
source_event_key | text | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
erp_bank_accounts
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
name | text | yes |
gl_account_number | text | yes |
last4 | text | |
active | boolean | yes |
opening_balance_cents | integer | yes |
opening_balance_on | date | |
source_event_key | text | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
erp_bank_match_allocations
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
statement_line_id | uuid | yes |
cash_movement_id | uuid | yes |
amount_cents | integer | yes |
matched_by | text | yes |
matched_at | timestamp with time zone | yes |
erp_bank_statement_lines
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
statement_id | uuid | yes |
line_no | integer | yes |
posted_on | date | yes |
amount_cents | integer | yes |
description | text | |
reference | text | |
match_status | text | yes |
match_method | text | |
matched_by | text | |
matched_at | timestamp with time zone | |
exclude_reason | text | |
resolved_at | timestamp with time zone | |
resolved_by | text | |
resolve_reason | text |
erp_bank_statements
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
bank_account_id | uuid | yes |
statement_date | date | yes |
opening_cents | integer | yes |
closing_cents | integer | yes |
format | text | yes |
imported_by | text | yes |
file_document_id | uuid | |
status | text | yes |
reconciled_by | text | |
reconciled_at | timestamp with time zone | |
reconciliation | jsonb | |
source_event_key | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
erp_budget_lines
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
budget_id | uuid | yes |
period_key | text | yes |
cost_center_code | text | yes |
gl_account_number | text | yes |
amount_cents | integer | yes |
erp_budgets
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
fiscal_year | integer | yes |
name | text | yes |
status | text | yes |
approved_by | text | |
approved_at | timestamp with time zone | |
locked_by | text | |
locked_at | timestamp with time zone | |
source_event_key | text | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
erp_cash_movements
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
bank_account_id | uuid | |
occurred_on | date | yes |
amount_cents | integer | yes |
kind | text | yes |
source_type | text | yes |
source_ref | text | yes |
journal_entry_id | uuid | |
reference | text | |
memo_safe | text | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
erp_depreciation_entries
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
asset_id | uuid | yes |
period_key | text | yes |
amount_cents | integer | yes |
journal_entry_id | uuid | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
erp_fixed_assets
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
asset_number | text | yes |
description | text | yes |
category | text | yes |
acquired_on | date | yes |
in_service_on | date | yes |
cost_cents | integer | yes |
salvage_cents | integer | yes |
useful_life_months | integer | yes |
method | text | yes |
cost_center_code | text | |
asset_gl_account | text | yes |
accumulated_gl_account | text | yes |
expense_gl_account | text | yes |
po_id | uuid | |
ap_invoice_id | uuid | |
serial_number | text | |
location_id | uuid | |
status | text | yes |
disposed_on | date | |
disposal_proceeds_cents | integer | |
disposal_journal_entry_id | uuid | |
source_event_key | text | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
erp_invoice_receipt_allocations
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
invoice_line_id | uuid | yes |
receipt_line_id | uuid | |
po_line_id | uuid | |
quantity | integer | yes |
unit_cost_cents | integer | yes |
created_at | timestamp with time zone | yes |
erp_par_levels
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
location_id | uuid | yes |
item_id | uuid | yes |
min_qty | integer | yes |
max_qty | integer | yes |
reorder_qty | integer | |
preferred_supplier_id | uuid | |
source_event_key | text | yes |
version | integer | yes |
active | boolean | yes |
source | text | yes |
effective_from | date | yes |
effective_to | date | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
erp_payment_runs
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
run_number | text | yes |
status | text | yes |
pay_date | date | yes |
method | text | yes |
bank_account_id | uuid | yes |
total_cents | integer | yes |
approved_by | text | |
approved_at | timestamp with time zone | |
check_start_number | integer | |
recorded_by | text | |
recorded_at | timestamp with time zone | |
void_reason | text | |
voided_at | timestamp with time zone | |
memo | text | |
source_event_key | text | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
erp_payments
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
run_id | uuid | yes |
invoice_id | uuid | yes |
supplier_id | uuid | yes |
amount_cents | integer | yes |
method | text | yes |
reference | text | |
paid_at | date | yes |
journal_entry_id | uuid | |
cash_movement_id | uuid | |
void_reason | text | |
voided_at | timestamp with time zone | |
voided_by | text | |
void_journal_entry_id | uuid | |
created_at | timestamp with time zone | yes |
erp_payroll_hours
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
entry_id | uuid | |
provider | text | yes |
pay_date | date | yes |
employee_ref | text | |
department | text | |
position | text | |
hours_regular | numeric(8, 2) | yes |
hours_overtime | numeric(8, 2) | yes |
hours_double | numeric(8, 2) | yes |
hours_shift | numeric(8, 2) | yes |
hours_pto | numeric(8, 2) | yes |
hours_holiday | numeric(8, 2) | yes |
hours_sick | numeric(8, 2) | yes |
hours_other_leave | numeric(8, 2) | yes |
row_hash | text | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
erp_purchase_order_lines
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
po_id | uuid | yes |
line_no | integer | yes |
item_id | uuid | yes |
supplier_item_id | uuid | |
quantity_ordered | integer | yes |
quantity_received | integer | yes |
unit_price_cents | integer | yes |
unit_of_measure | text | yes |
cost_center_code | text | |
gl_account_number | text | |
requisition_line_id | uuid | |
source_event_key | text | yes |
erp_purchase_orders
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
po_number | text | yes |
supplier_id | uuid | yes |
status | text | yes |
ship_to_location_id | uuid | yes |
ordered_at | timestamp with time zone | |
expected_at | date | |
subtotal_cents | integer | yes |
tax_cents | integer | yes |
freight_cents | integer | yes |
total_cents | integer | yes |
approved_by | text | |
approved_at | timestamp with time zone | |
sent_at | timestamp with time zone | |
sent_via | text | |
sent_document_id | uuid | |
sent_reference | text | |
closed_at | timestamp with time zone | |
cancelled_at | timestamp with time zone | |
cancel_reason | text | |
note | text | |
created_by | text | yes |
source_event_key | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
erp_receipt_lines
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
receipt_id | uuid | yes |
po_line_id | uuid | yes |
item_id | uuid | yes |
lot_id | uuid | yes |
lot_number | text | yes |
serial_number | text | |
expires_on | date | |
quantity | integer | yes |
unit_cost_cents | integer | yes |
location_id | uuid | yes |
movement_id | uuid | yes |
reversal_movement_id | uuid | |
variance_reason | text | |
source_event_key | text | yes |
erp_receipts
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
receipt_number | text | yes |
po_id | uuid | yes |
received_by | text | yes |
received_at | timestamp with time zone | yes |
packing_slip | text | |
status | text | yes |
reversed_by | text | |
reversed_at | timestamp with time zone | |
reversal_reason | text | |
source_event_key | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
erp_requisition_lines
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
requisition_id | uuid | yes |
line_no | integer | yes |
item_id | uuid | yes |
quantity | integer | yes |
unit_of_measure | text | yes |
note | text | |
supplier_item_id | uuid | |
po_line_id | uuid | |
source_event_key | text | yes |
erp_requisitions
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
requisition_number | text | yes |
requested_by | text | yes |
location_id | uuid | yes |
status | text | yes |
needed_by | date | |
note | text | |
submitted_at | timestamp with time zone | |
approved_by | text | |
approved_at | timestamp with time zone | |
rejection_reason | text | |
source_event_key | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
erp_supplier_companies
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
key | text | yes |
name | text | yes |
aliases | text[] | yes |
active | boolean | yes |
revision | integer | yes |
source | text | yes |
source_event_key | text | yes |
created_by | text | yes |
updated_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
erp_supplier_items
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
supplier_id | uuid | yes |
item_id | uuid | yes |
supplier_catalog_number | text | |
unit_of_measure | text | yes |
pack_size | integer | yes |
unit_price_cents | integer | |
lead_time_days | integer | |
preferred | boolean | yes |
source_event_key | text | yes |
version | integer | yes |
active | boolean | yes |
source | text | yes |
effective_from | date | yes |
effective_to | date | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
erp_suppliers
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
code | text | yes |
name | text | yes |
contact | jsonb | yes |
remit_to | jsonb | yes |
payment_terms_days | integer | yes |
tax_id_last4 | text | |
w9_on_file | boolean | yes |
is_1099 | boolean | yes |
company_id | uuid | |
source_event_key | text | yes |
version | integer | yes |
active | boolean | yes |
source | text | yes |
effective_from | date | yes |
effective_to | date | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
exchange_connections
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
vendor | text | yes |
status | text | yes |
public_id | uuid | yes |
credential_id | uuid | |
vendor_organization_id | text | |
facility_map | jsonb | yes |
settings | jsonb | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
exchange_contributions
Patient-owned directly: exchange_contributions.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
source_kind | text | yes |
source_ref | text | yes |
content_sha256 | text | yes |
status | text | yes |
hold_reason | text | |
vendor_document_id | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
exchange_documents
Patient-owned directly: exchange_documents.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
query_id | uuid | |
vendor | text | yes |
vendor_document_id | text | yes |
document_id | uuid | |
source_org_name | text | |
source_org_oid | text | |
loinc | text | |
type_label | text | |
title | text | |
service_start | text | |
service_end | text | |
authored_at | text | |
mime_type | text | |
size_bytes | integer | |
status | text | yes |
attempts | integer | yes |
lease_owner | text | |
lease_expires_at | timestamp with time zone | |
retry_at | timestamp with time zone | |
last_error_code | text | |
identity_check | jsonb | |
identity_binding | jsonb | |
source_header | jsonb | |
content_sha256 | text | |
identity_confirmed_by | text | |
identity_confirmed_at | timestamp with time zone | |
identity_basis | text | |
confidentiality | jsonb | yes |
ccda_validation | jsonb | |
first_seen_at | timestamp with time zone | yes |
seen_by | text | |
seen_at | timestamp with time zone | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
exchange_patient_preferences
Patient-owned directly: exchange_patient_preferences.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
query_opt_out | boolean | yes |
share_opt_out | boolean | yes |
recorded_by_principal | text | yes |
recorded_at | timestamp with time zone | yes |
basis | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
exchange_queries
Patient-owned directly: exchange_queries.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
connection_id | uuid | yes |
facility_id | uuid | yes |
trigger | text | yes |
treatment_basis | jsonb | |
purpose_of_use | text | yes |
requested_by_principal | text | yes |
idempotency_key | text | yes |
vendor_patient_id | text | |
vendor_request_id | text | |
status | text | yes |
ingest_status | text | yes |
send_attempt | integer | yes |
poll_errors | integer | yes |
lease_owner | text | |
lease_expires_at | timestamp with time zone | |
policy_version | text | yes |
refusal_code | text | |
documents_listed | integer | yes |
documents_new | integer | yes |
queued_at | timestamp with time zone | yes |
sent_at | timestamp with time zone | |
completed_at | timestamp with time zone | |
last_polled_at | timestamp with time zone | |
error_code | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
exchange_readiness_requests
Patient-owned directly: exchange_readiness_requests.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
item_key | text | yes |
request_id | uuid | yes |
channel | text | yes |
contact_source | text | |
contact_id | uuid | |
contact_label | text | yes |
needed_by | date | |
status | text | yes |
sent_at | timestamp with time zone | |
reply_document_id | uuid | |
reply_matched_by | text | |
reply_at | timestamp with time zone | |
satisfied_at | timestamp with time zone | |
satisfied_by | text | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
exchange_record_request_emails
Patient-owned directly: exchange_record_request_emails.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
request_id | uuid | yes |
actor_id | text | yes |
request_key | uuid | yes |
request_hash | text | yes |
policy_fingerprint | text | yes |
status | text | yes |
lease_until | timestamp with time zone | |
provider_ref | text | |
last_error_code | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
exchange_record_request_events
Patient-owned directly: exchange_record_request_events.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
request_id | uuid | yes |
actor_id | text | yes |
request_key | uuid | yes |
request_hash | text | yes |
kind | text | yes |
exchange_document_id | uuid | |
source_event_id | uuid | |
content_sha256 | text | |
reason | text | yes |
created_at | timestamp with time zone | yes |
exchange_record_request_faxes
Patient-owned directly: exchange_record_request_faxes.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
request_id | uuid | yes |
actor_id | text | yes |
request_key | uuid | yes |
request_hash | text | yes |
policy_fingerprint | text | yes |
status | text | yes |
lease_until | timestamp with time zone | |
provider_ref | text | |
last_error_code | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
exchange_record_requests
Patient-owned directly: exchange_record_requests.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
actor_id | text | yes |
request_key | uuid | yes |
request_hash | text | yes |
source_organization | text | yes |
recipient_fax | text | |
recipient_email | text | |
channel | text | yes |
contact_source | text | |
contact_id | uuid | |
recipient_state | text | yes |
requested_scope | text | yes |
basis | text | yes |
authorization_id | uuid | |
authorization_sha256 | text | |
artifact_document_id | uuid | yes |
artifact_sha256 | text | yes |
created_at | timestamp with time zone | yes |
external_resource_links
Patient-owned through a foreign-key path: adapter external-resource-links.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
resource_type | text | yes |
resource_id | text | yes |
system | text | yes |
external_id | text | yes |
external_mrn | text | |
identifier_type | text | yes |
source_instance | text | |
assigning_authority | text | |
source_scope_key | text | yes |
status | text | yes |
superseded_at | timestamp | |
connection_id | uuid | |
verified_by | text | |
verified_at | timestamp | |
source | text | yes |
notes | text | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
facilities
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
slug | text | yes |
name | text | yes |
kind | text | yes |
time_zone | text | yes |
billing_provider_id | uuid | |
active | boolean | yes |
regulatory_profile | text | |
cms_certified | boolean | |
accreditor | text | |
ca_licensure_path | text | |
settings | jsonb | yes |
profile_updated_at | timestamp with time zone | |
profile_updated_by | text | |
reporting_ids | jsonb | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
facility_licensing_surveys
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
survey_kind | text | yes |
surveyed_on | date | yes |
recorded_by | text | yes |
recorded_at | timestamp with time zone | yes |
form_bundles
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
name | text | yes |
form_ids | jsonb | yes |
mode | form_send_mode | yes |
note | text | |
created_by | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
form_data_templates
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
form_id | uuid | yes |
organization_id | uuid | yes |
name | text | yes |
description | text | |
data | jsonb | yes |
created_by | text | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
form_events
Patient-owned through a foreign-key path: form_events .submission_id → form_submissions.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
form_id | uuid | yes |
submission_id | uuid | |
message_log_id | uuid | |
client_nonce | text | |
kind | form_event_kind | yes |
meta | jsonb | |
at | timestamp | yes |
form_fill_templates
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | |
library_key | text | |
source_template_id | uuid | |
content_hash | text | yes |
title | text | yes |
category | text | yes |
file_ref | text | yes |
mime_type | text | |
page_count | integer | yes |
kind | text | yes |
fields | jsonb | yes |
pages | jsonb | yes |
detect_model | text | |
last_used_at | timestamp | |
created_at | timestamp | yes |
form_fills
Patient-owned directly: form_fills.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
template_id | uuid | yes |
created_by | uuid | |
status | text | yes |
values | jsonb | yes |
extra_stamps | jsonb | yes |
context_notes | text | |
context_refs | jsonb | |
output_ref | text | |
chargeable | boolean | yes |
error | text | |
created_at | timestamp | yes |
completed_at | timestamp | |
downloaded_at | timestamp |
form_folders
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
name | text | yes |
sort_order | integer | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
form_message_log
Patient-owned through a foreign-key path: form_message_log .submission_id → form_submissions.id or form_message_log .reminder_id → form_reminders.id .submission_id → form_submissions.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
submission_id | uuid | yes |
organization_id | uuid | yes |
reminder_id | uuid | |
channel | text | yes |
recipient | text | yes |
subject | text | |
body | text | yes |
status | text | yes |
provider_message_id | text | |
sent_at | timestamp with time zone | yes |
error_message | text |
form_practice_assets
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
organization_id | uuid | yes |
object_key | text | yes |
recorded_by | text | yes |
created_at | timestamp with time zone | yes |
form_published_versions
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
form_id | uuid | yes |
version | integer | yes |
source_version | integer | yes |
title | text | yes |
description | text | |
category | text | yes |
schema | jsonb | yes |
settings | jsonb | |
blocks | jsonb | |
content_hash | text | yes |
published_by | text | yes |
published_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
form_reminders
Patient-owned through a foreign-key path: form_reminders .submission_id → form_submissions.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
submission_id | uuid | yes |
organization_id | uuid | yes |
channel | text | yes |
recipient_hash | text | yes |
scheduled_at | timestamp with time zone | yes |
status | text | yes |
reason | text | |
label | text | |
sent_at | timestamp with time zone | |
created_at | timestamp with time zone | yes |
form_renewals
Patient-owned directly: form_renewals.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
source_form_id | uuid | |
source_submission_id | uuid | |
due_form_id | uuid | yes |
due_at | timestamp with time zone | yes |
status | form_renewal_status | yes |
sent_submission_id | uuid | |
sent_at | timestamp with time zone | |
closed_at | timestamp with time zone | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
form_sends
Patient-owned directly: form_sends.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | |
created_by | text | |
mode | form_send_mode | yes |
status | form_send_status | yes |
form_ids | jsonb | yes |
next_position | integer | yes |
patient_name | text | yes |
contact | text | yes |
channel | text | yes |
date_of_birth | text | |
appointment_at | timestamp with time zone | |
cadence | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
form_short_links
Patient-owned through a foreign-key path: form_short_links .submission_id → form_submissions.id.
| Column | Postgres type | Required |
|---|---|---|
token | text | yes |
submission_id | uuid | yes |
created_at | timestamp with time zone | yes |
expires_at | timestamp with time zone |
form_submission_signing_evidence
Patient-owned through a foreign-key path: form_submission_signing_evidence .submission_id → form_submissions.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
submission_id | uuid | yes |
signed | boolean | yes |
signature_lines | text[] | yes |
schema_had_signature | boolean | yes |
basis | text | yes |
recorded_at | timestamp with time zone | yes |
form_submissions
Patient-owned directly: form_submissions.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
form_id | uuid | yes |
form_version | integer | yes |
patient_id | uuid | |
submitted_by | uuid | |
respondent_name | text | |
respondent_email | text | |
respondent_phone | text | |
data | jsonb | yes |
status | submission_status | yes |
starred | boolean | yes |
pdf_url | text | |
source | submission_source | yes |
metadata | jsonb | |
generated_chart_note | text | |
generated_chart_note_at | timestamp | |
send_id | uuid | |
send_position | integer | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
completed_at | timestamp |
form_upload_receipts
Patient-owned directly: form_upload_receipts.patient_id.
| Column | Postgres type | Required |
|---|---|---|
ref | text | yes |
organization_id | uuid | |
uploaded_by | text | yes |
patient_id | uuid | |
submission_id | uuid | |
created_at | timestamp with time zone | yes |
claimed_at | timestamp with time zone |
forms
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
created_by | text | |
title | text | yes |
description | text | |
category | form_category | yes |
schema | jsonb | yes |
version | integer | yes |
status | form_status | yes |
settings | jsonb | |
sort_order | integer | |
folder_id | uuid | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
him_authorizations
Patient-owned directly: him_authorizations.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
document_id | uuid | |
form_version | text | |
signed_by_role | text | yes |
representative_authority | text | |
representative_authority_document_id | uuid | |
signed_at | timestamp with time zone | |
expires_at | timestamp with time zone | |
expiration_event | text | |
information_described | text | |
recipient_name | text | |
recipient_org | text | |
purpose | text | |
sensitive_categories_named | text[] | |
checklist | jsonb | |
validated_by | text | |
validated_at | timestamp with time zone | |
revoked_at | timestamp with time zone | |
revoked_by | text | |
revocation_document_id | uuid | |
known_falsity_flag | boolean | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
him_completeness_rules
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
rule_key | text | yes |
version | integer | yes |
applies_to | jsonb | yes |
items | jsonb | yes |
active | boolean | yes |
created_by | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
him_deficiencies
Patient-owned directly: him_deficiencies.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
scope_kind | text | yes |
scope_id | uuid | yes |
rule_key | text | yes |
rule_version | integer | yes |
rule_item_key | text | yes |
label | text | yes |
state | text | yes |
responsible_provider_id | uuid | |
responsible_role | text | |
due_at | timestamp with time zone | |
status | text | yes |
resolved_by_ref | jsonb | |
resolved_at | timestamp with time zone | |
waived_by | text | |
waive_reason | text | |
task_id | uuid | |
occurrence_key | text | yes |
first_detected_at | timestamp with time zone | yes |
last_evaluated_at | timestamp with time zone | yes |
last_reminded_at | timestamp with time zone | |
reminder_count | integer | yes |
escalated_at | timestamp with time zone | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
him_delivery_attempts
Patient-owned through a foreign-key path: him_delivery_attempts .request_id → him_record_requests.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
request_id | uuid | yes |
approval_id | uuid | |
attempt_key | text | yes |
channel | text | yes |
destination | jsonb | yes |
destination_verified_by | text | |
status | text | yes |
provider_ref | text | |
sent_at | timestamp with time zone | |
failed_at | timestamp with time zone | |
last_error_code | text | |
lease_until | timestamp with time zone | |
lease_token | text | |
last_checked_at | timestamp with time zone | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
him_disclosure_events
Patient-owned through a foreign-key path: him_disclosure_events .disclosure_id → him_disclosures.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
disclosure_id | uuid | yes |
at | timestamp with time zone | yes |
kind | text | yes |
detail | jsonb | |
created_at | timestamp with time zone | yes |
him_disclosures
Patient-owned directly: him_disclosures.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
request_id | uuid | |
disclosed_at | timestamp with time zone | yes |
disclosed_by_principal | text | yes |
recipient_name | text | yes |
recipient_org | text | |
recipient_address | text | |
purpose | text | |
basis | text | yes |
accountable | boolean | yes |
description | text | |
channel | text | yes |
delivery_attempt_id | uuid | |
approval_id | uuid | |
packet_sha256 | text | |
created_at | timestamp with time zone | yes |
him_packet_grants
Patient-owned through a foreign-key path: him_packet_grants .request_id → him_record_requests.id or him_packet_grants .packet_document_id → documents.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
request_id | uuid | yes |
approval_id | uuid | |
packet_document_id | uuid | yes |
packet_sha256 | text | yes |
recipient_name | text | yes |
recipient_channel | text | yes |
recipient_address | text | yes |
second_channel | text | yes |
second_address | text | yes |
token_hash | text | yes |
delivery_attempt_id | uuid | |
code_hash | text | |
code_expires_at | timestamp with time zone | |
code_verified_at | timestamp with time zone | |
pickup_session_hash | text | |
notification_state | text | yes |
notification_receipts | jsonb | |
expires_at | timestamp with time zone | yes |
max_downloads | integer | yes |
download_count | integer | yes |
failed_code_count | integer | yes |
locked_at | timestamp with time zone | |
revoked_at | timestamp with time zone | |
revoked_by | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
him_record_requests
Patient-owned directly: him_record_requests.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
request_number | text | yes |
patient_id | uuid | |
requester_type | text | yes |
requester_name | text | yes |
requester_org | text | |
requester_contact | jsonb | |
purpose | text | yes |
received_via | text | yes |
received_at | timestamp with time zone | yes |
due_at | timestamp with time zone | |
due_basis | text | |
scope | jsonb | yes |
authorization_id | uuid | |
authorization_status | text | yes |
request_class | text | yes |
identity_verified_by | text | |
identity_verified_at | timestamp with time zone | |
identity_method | text | |
status | text | yes |
denial_reason | text | |
sensitive_flags | jsonb | |
fee_cents | integer | |
fee_basis | text | |
assigned_to | text | |
packet_id | uuid | |
release_build | jsonb | |
release_reviews | jsonb | |
approved_by | text | |
approved_at | timestamp with time zone | |
source_document_id | uuid | |
site | text | yes |
service_line | text | yes |
triage_provenance | jsonb | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
him_release_approvals
Patient-owned through a foreign-key path: him_release_approvals .request_id → him_record_requests.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
request_id | uuid | yes |
manifest | jsonb | yes |
manifest_sha256 | text | yes |
approved_by | text | yes |
approved_at | timestamp with time zone | yes |
invalidated_at | timestamp with time zone | |
invalidated_reason | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
him_request_attachments
Patient-owned through a foreign-key path: him_request_attachments .request_id → him_record_requests.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
request_id | uuid | yes |
delivery_id | uuid | yes |
submission_id | uuid | |
proposed_patient_id | uuid | |
status | text | yes |
sent_at | timestamp with time zone | yes |
sent_by | text | yes |
received_at | timestamp with time zone | |
has_photo_id | boolean | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
authorization_id | uuid | |
rejected_reason | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
him_request_events
Patient-owned through a foreign-key path: him_request_events .request_id → him_record_requests.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
request_id | uuid | yes |
at | timestamp with time zone | yes |
actor_principal | text | yes |
kind | text | yes |
detail | jsonb | |
created_at | timestamp with time zone | yes |
idr_determination_letters
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
created_by_user_id | uuid | |
file_name | text | yes |
s3_key | text | |
mime_type | text | |
payer_name | text | |
service_codes | jsonb | |
determination_date | text | |
idre_name | text | |
prevailing_party | text | |
award_amount | double precision | |
award_pct_qpa | double precision | |
extracted | jsonb | |
notes | text | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
idr_payer_dossiers
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
payer_name | text | yes |
negotiation_history | text | |
contracted_rates | jsonb | |
notes | text | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
idr_surgeon_profiles
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
surgeon_name | text | yes |
npi | text | |
credentials | text | |
experience | text | |
outcomes | text | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
imaging_report_details
Patient-owned directly: imaging_report_details.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
report_id | uuid | yes |
modality | text | yes |
body_part | text | |
laterality | text | yes |
report_text | text | |
impression | text |
inv_case_picks
Patient-owned directly: inv_case_picks.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
case_id | uuid | yes |
patient_id | uuid | yes |
item_id | uuid | yes |
lot_id | uuid | |
location_id | uuid | |
card_id | uuid | |
planned_quantity | integer | yes |
reserved_quantity | integer | yes |
picked_quantity | integer | yes |
used_quantity | integer | yes |
returned_quantity | integer | yes |
wasted_quantity | integer | yes |
source_event_key | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
inv_count_lines
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
session_id | uuid | yes |
lot_id | uuid | yes |
expected_quantity | integer | yes |
counted_quantity | integer | |
counted_by | text | |
counted_at | timestamp with time zone | |
recount_quantity | integer | |
recount_by | text | |
recount_at | timestamp with time zone | |
adjustment_movement_id | uuid | |
approved_by | text | |
approved_at | timestamp with time zone | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
inv_count_sessions
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
location_id | uuid | yes |
status | text | yes |
blind | boolean | yes |
opened_by | text | yes |
opened_at | timestamp with time zone | yes |
closed_by | text | |
closed_at | timestamp with time zone | |
note | text | |
source_event_key | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
inv_items
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
internal_code | text | yes |
manufacturer | text | |
catalog_number | text | |
gtin | text | |
description | text | yes |
category | text | yes |
unit_of_measure | text | yes |
is_implant | boolean | yes |
lot_tracked | boolean | yes |
serial_tracked | boolean | yes |
is_medication | boolean | yes |
supply_category | text | yes |
par_threshold | integer | |
reorder_qty | integer | |
cost_basis_cents | integer | |
cost_effective_from | date | |
version | integer | yes |
active | boolean | yes |
source | text | yes |
effective_from | date | yes |
effective_to | date | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
inv_locations
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
kind | text | yes |
name | text | yes |
bin | text | |
owner | text | yes |
active | boolean | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
inv_lots
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
item_id | uuid | yes |
lot_number | text | yes |
serial_number | text | |
expires_on | date | |
quarantined | boolean | yes |
quarantine_reason | text | |
recall_reference | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
inv_movement_allocations
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
movement_id | uuid | yes |
layer_id | uuid | yes |
quantity | integer | yes |
unit_cost_cents | integer | |
created_at | timestamp with time zone | yes |
inv_movements
Patient-owned directly: inv_movements.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
kind | text | yes |
item_id | uuid | yes |
lot_id | uuid | yes |
from_location_id | uuid | |
to_location_id | uuid | |
quantity | integer | yes |
reason | text | |
supply_category | text | |
case_id | uuid | |
patient_id | uuid | |
reverses_id | uuid | |
journal_entry_id | uuid | |
actor_id | text | yes |
occurred_at | timestamp with time zone | yes |
source_ref | text | |
source_event_key | text | yes |
created_at | timestamp with time zone | yes |
inv_preference_card_items
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
card_id | uuid | yes |
item_id | uuid | yes |
planned_quantity | integer | yes |
optional | boolean | yes |
note | text |
inv_preference_cards
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
surgeon_provider_id | uuid | yes |
procedure_code | text | yes |
procedure_display | text | yes |
note | text | |
version | integer | yes |
active | boolean | yes |
source | text | yes |
effective_from | date | yes |
effective_to | date | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
inv_receipt_layers
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
lot_id | uuid | yes |
receipt_line_id | uuid | |
movement_id | uuid | yes |
source | text | yes |
quantity | integer | yes |
remaining_quantity | integer | yes |
unit_cost_cents | integer | |
received_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
inv_stock
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
location_id | uuid | yes |
lot_id | uuid | yes |
on_hand | integer | yes |
reserved | integer | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
knowledge_base_sources
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
retell_source_id | text | |
category | kb_category | yes |
source_type | kb_source_type | yes |
mime_type | text | |
title | text | yes |
file_name | text | |
file_size | integer | |
file_url | text | |
content | text | |
always_load | boolean | yes |
status | kb_status | yes |
created_at | timestamp | yes |
updated_at | timestamp | yes |
lab_result_observations
Patient-owned directly: lab_result_observations.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
report_id | uuid | yes |
panel | text | |
analyte_display | text | yes |
analyte_code | text | |
code_system | text | |
value_type | text | yes |
value_numeric | numeric | |
value_text | text | |
unit | text | |
reference_low | numeric | |
reference_high | numeric | |
reference_text | text | |
abnormal_flag | text | |
status | text | yes |
raw_flag | text | |
sub_id | text | |
notes | text[] | yes |
collected_at | timestamp with time zone | |
resulted_at | timestamp with time zone | |
position | integer | yes |
medication_administrations
Patient-owned directly: medication_administrations.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
service_request_id | uuid | yes |
admission_id | uuid | |
due_at | timestamp with time zone | |
administered_at | timestamp with time zone | yes |
recorded_at | timestamp with time zone | yes |
status | text | yes |
dose_quantity | numeric | |
dose_unit | text | |
route | text | |
site | text | |
administered_by | text | yes |
recorded_by | text | |
administered_by_role | text | |
administering_attestation | text | |
administering_attested_at | timestamp with time zone | |
case_id | uuid | |
care_phase | text | |
prn | boolean | |
prn_indication | text | |
prn_indication_score | numeric | |
witnessed_by | text | |
reason | text | |
scanned_code | text | |
scanned_band_token | text | |
scanned_ndc11 | char(11) | |
scanned_lot | text | |
scanned_expiry | date | |
scan_result | text | yes |
scan_findings | jsonb | |
scan_override_reason | text | |
scan_override_by | text | |
verification_override_by | text | |
verification_override_reason | text | |
reassessment_due_at | timestamp with time zone | |
reassessment_at | timestamp with time zone | |
reassessment_note | text | |
reassessment_interval_minutes | integer | |
reassessment_score | numeric | |
reassessment_effect | text | |
reassessed_by | text | |
dose_check | jsonb | |
dose_deviation_reason | text | |
late_entry_reason | text | |
corrects_id | uuid | |
correction_reason | text | |
procedure_event_id | uuid | |
clinic_drug_batch_id | uuid |
medication_reconciliation_items
Patient-owned directly: medication_reconciliation_items.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
reconciliation_id | uuid | yes |
source_medication_id | uuid | yes |
medication_text | text | yes |
dose_text | text | |
route_text | text | |
frequency_text | text | |
captured_source_type | text | yes |
captured_asserted_at | timestamp with time zone | yes |
decision | text | |
decision_reason | text | |
resume_condition | text | |
substitution | text | |
formulary_version | text | |
formulary_product_id | text | |
formulary_generic | text | |
formulary_brand | text | |
formulary_strength | text | |
formulary_form | text | |
inpatient_sig | text | |
service_request_id | uuid | |
decided_by | text | |
decided_at | timestamp with time zone |
medication_reconciliations
Patient-owned directly: medication_reconciliations.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
admission_id | uuid | yes |
status | text | yes |
home_list_state | text | yes |
formulary_version | text | yes |
started_by | text | yes |
started_at | timestamp with time zone | yes |
completed_by | text | |
completed_at | timestamp with time zone |
medication_transition_reconciliation_items
Patient-owned directly: medication_transition_reconciliation_items.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
reconciliation_id | uuid | yes |
source_medication_id | uuid | |
service_request_id | uuid | |
medication_text | text | yes |
dose_text | text | |
route_text | text | |
frequency_text | text | |
captured_at | timestamp with time zone | yes |
decision | text | |
decision_reason | text | |
resume_condition | text | |
last_dose_at | timestamp with time zone | |
decided_by | text | |
decided_at | timestamp with time zone | |
removed_at | timestamp with time zone | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
medication_transition_reconciliations
Patient-owned directly: medication_transition_reconciliations.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
kind | text | yes |
case_id | uuid | |
admission_id | uuid | |
home_list_state | text | yes |
status | text | yes |
started_by | text | yes |
started_at | timestamp with time zone | yes |
completed_by | text | |
completed_at | timestamp with time zone | |
source_event_key | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
message_drafts
Patient-owned through a foreign-key path: adapter text-message-drafts.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
conversation_id | uuid | yes |
body | text | yes |
model_meta | jsonb | |
superseded_at | timestamp | |
used_in_message_id | uuid | |
created_at | timestamp | yes |
messages
Patient-owned directly: messages.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
call_id | uuid | |
organization_id | uuid | yes |
patient_name | text | |
patient_dob | text | |
patient_phone | text | |
patient_id | uuid | |
provider_id | uuid | |
category | message_category | yes |
summary | text | |
details | text | |
metadata | jsonb | |
medication_name | text | |
medication_dosage | text | |
medication_frequency | text | |
pharmacy_name | text | |
urgency | urgency | yes |
status | action_status | yes |
assigned_to | text | |
notes | text | |
notes_by | text | |
notes_at | timestamp | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
messaging_call_offers
Patient-owned through a foreign-key path: messaging_call_offers .conversation_id → messaging_conversations.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
conversation_id | uuid | yes |
call_ref | text | yes |
first_name | text | yes |
reason | text | yes |
caller_id | text | yes |
status | text | yes |
call_at | timestamp with time zone | |
silence_until | timestamp with time zone | |
cutoff_at | timestamp with time zone | |
kind | text | yes |
result | jsonb | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
messaging_conversations
Patient-owned directly: messaging_conversations.subject_patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
messaging_line_id | uuid | yes |
contact_point_id | uuid | yes |
subject_patient_id | uuid | |
status | text | yes |
urgency | messaging_urgency | yes |
automation_state | messaging_automation_state | yes |
last_message_at | timestamp | |
last_patient_message_at | timestamp | |
last_seq | integer | yes |
resolved_at | timestamp | |
subject | text | |
topic | messaging_topic | |
topic_set_by | text | |
topic_triaged_seq | integer | |
claims_extracted_seq | integer | |
flagged_at | timestamp with time zone | |
assigned_inbox_id | uuid | |
assigned_user_id | uuid | |
assigned_at | timestamp | |
assigned_by_user_id | uuid | |
assignment_version | integer | yes |
created_at | timestamp | yes |
updated_at | timestamp | yes |
messaging_delivery_events
Patient-owned through a foreign-key path: adapter text-message-events.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | |
message_id | uuid | |
aws_message_id | text | yes |
event_type | text | yes |
payload | jsonb | |
occurred_at | timestamp | yes |
dedupe_key | text | |
created_at | timestamp | yes |
messaging_inboxes
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
name | text | yes |
kind | messaging_inbox_kind | yes |
provider_user_id | uuid | |
provider_id | uuid | |
slug | text | |
settings | jsonb | yes |
created_at | timestamp | yes |
deleted_at | timestamp |
messaging_lines
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
phone_number | text | yes |
aws_origination_id | text | |
active | boolean | yes |
shared | boolean | yes |
created_at | timestamp | yes |
messaging_mention_outbox
Patient-owned through a foreign-key path: messaging_mention_outbox .text_mention_id → messaging_text_mentions.id or messaging_mention_outbox .staff_mention_id → emr_staff_mentions.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
source_kind | text | yes |
text_mention_id | uuid | |
staff_mention_id | uuid | |
recipient_user_id | uuid | yes |
event_key | text | yes |
status | text | yes |
available_at | timestamp with time zone | yes |
lease_token | uuid | |
lease_until | timestamp with time zone | |
attempts | integer | yes |
accepted_at | timestamp with time zone | |
last_error_code | text | |
created_at | timestamp with time zone | yes |
messaging_messages
Patient-owned through a foreign-key path: adapter text-messages.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
conversation_id | uuid | yes |
direction | messaging_direction | yes |
seq | integer | |
client_key | text | |
body | text | yes |
message_purpose | message_purpose | yes |
sender_type | messaging_sender_type | yes |
sender_user_id | uuid | |
sender_label | text | |
ai_involvement | ai_involvement | yes |
reviewed_by_user_id | uuid | |
reviewer_license_snapshot | jsonb | |
ai_draft_body | text | |
tier | message_tier | yes |
delivery_status | messaging_delivery_status | |
aws_message_id | text | |
delivery_channel | text | |
inbound_provider_message_id | text | |
created_at | timestamp | yes |
messaging_portal_attachments
Patient-owned directly: messaging_portal_attachments.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
thread_id | uuid | |
message_id | uuid | |
uploaded_by_grant_id | uuid | |
uploaded_by_kind | text | yes |
uploaded_by | text | yes |
storage_ref | text | |
content_sha256 | text | |
byte_size | integer | |
document_ref | uuid | |
declared_type | text | |
content_type | text | |
state | text | yes |
scan_state | text | yes |
reject_reason | text | |
created_at | timestamp with time zone | yes |
validated_at | timestamp with time zone | |
bound_at | timestamp with time zone |
messaging_portal_messages
Patient-owned through a foreign-key path: messaging_portal_messages .thread_id → messaging_portal_threads.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
thread_id | uuid | yes |
seq | integer | yes |
client_key | text | yes |
purpose | text | yes |
author_kind | text | yes |
author_grant_id | uuid | |
author_user_id | uuid | |
author_principal | text | yes |
body | text | yes |
payload_fingerprint | text | |
created_at | timestamp with time zone | yes |
messaging_portal_participants
Patient-owned through a foreign-key path: messaging_portal_participants .grant_id → patient_identity_links.id or messaging_portal_participants .thread_id → messaging_portal_threads.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
thread_id | uuid | yes |
grant_id | uuid | yes |
relationship | text | yes |
first_seq | integer | yes |
added_at | timestamp with time zone | yes |
messaging_portal_reads
Patient-owned through a foreign-key path: messaging_portal_reads .thread_id → messaging_portal_threads.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
thread_id | uuid | yes |
actor_kind | text | yes |
actor_id | text | yes |
last_read_seq | integer | yes |
read_at | timestamp with time zone | yes |
archived_at | timestamp with time zone |
messaging_portal_threads
Patient-owned directly: messaging_portal_threads.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
topic | text | yes |
subject | text | yes |
chosen_provider_id | uuid | |
assigned_inbox_id | uuid | |
assigned_user_id | uuid | |
routed_by | text | yes |
routing_reason | text | yes |
urgency | text | yes |
urgency_source | text | yes |
urgent_signals | text[] | yes |
urgent_card_shown | boolean | yes |
urgent_ack_due_at | timestamp with time zone | |
acknowledged_at | timestamp with time zone | |
acknowledged_by | text | |
escalation_level | integer | yes |
escalated_at | timestamp with time zone | |
work_item_id | uuid | |
status | text | yes |
closed_at | timestamp with time zone | |
closed_by | text | |
encounter_id | uuid | |
ai_proposed_topic | messaging_topic | |
ai_proposed_at | timestamp with time zone | |
last_seq | integer | yes |
last_message_at | timestamp with time zone | |
last_patient_message_at | timestamp with time zone | |
last_staff_message_at | timestamp with time zone | |
created_by | text | yes |
created_by_grant_id | uuid | |
request_key | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
messaging_snippets
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
title | text | yes |
body | text | yes |
shortcut | text | |
secure | boolean | yes |
created_by_user_id | uuid | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
deleted_at | timestamp |
messaging_text_mentions
Patient-owned directly: messaging_text_mentions.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
conversation_id | uuid | yes |
message_id | uuid | yes |
patient_id | uuid | |
mentioned_user_id | uuid | yes |
author_user_id | uuid | yes |
position | smallint | yes |
created_at | timestamp with time zone | yes |
read_at | timestamp with time zone | |
cleared_at | timestamp with time zone |
note_finalization_events
Patient-owned through a foreign-key path: note_finalization_events .encounter_id → encounters.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
source_encounter_id | text | yes |
encounter_id | uuid | |
note_version | text | yes |
note_content_sha256 | text | |
author_principal | text | |
finalized_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
note_metadata
Patient-owned directly: note_metadata.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
user_id | text | yes |
organization_id | uuid | |
transcription_id | text | yes |
encounter_id | text | |
patient_name | text | |
patient_dob | date | |
patient_id | uuid | |
encounter_date | date | |
body_region | text | |
laterality | text | |
digit | text | |
procedure_category | text | |
diagnosis_category | text | |
billing_codes | jsonb | |
created_at | timestamp | yes |
extracted_at | timestamp | yes |
nursing_answer_suggestions
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
phase | text | yes |
field_key | text | yes |
answer_text | text | yes |
answer_norm | text | yes |
first_definition_key | text | yes |
times_typed | integer | yes |
first_typed_by | text | yes |
first_typed_at | timestamp with time zone | yes |
last_typed_at | timestamp with time zone | yes |
status | text | yes |
decided_by | text | |
decided_at | timestamp with time zone | |
promoted_definition_key | text | |
promoted_option_value | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
nursing_assignments
Patient-owned directly: nursing_assignments.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
patient_id | uuid | yes |
admission_id | uuid | |
case_id | uuid | |
nurse_user_id | uuid | yes |
acuity | text | |
assigned_by | text | yes |
assigned_at | timestamp with time zone | yes |
released_by | text | |
released_at | timestamp with time zone | |
release_reason | text | |
unit | text | |
unit_type | text | |
licensure_category | text | |
ratio_limit | integer | |
over_ratio | boolean | yes |
staffing_emergency_id | uuid | |
staffing_efforts | text |
nursing_charting_exception_policies
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
version | integer | yes |
status | text | yes |
policy | jsonb | |
content_hash | text | yes |
source_reference | text | yes |
loaded_by | text | yes |
loaded_at | timestamp with time zone | yes |
nursing_definition_versions
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
phase | text | yes |
definition_key | text | yes |
base_key | text | yes |
definition | jsonb | yes |
content_hash | text | yes |
change_note | text | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
nursing_handoffs
Patient-owned directly: nursing_handoffs.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
case_id | uuid | |
admission_id | uuid | |
from_phase | text | yes |
to_phase | text | yes |
window_start | timestamp with time zone | yes |
window_end | timestamp with time zone | yes |
summary | jsonb | yes |
source_ref | text | |
sent_by | text | yes |
sent_at | timestamp with time zone | yes |
received_by | text | |
received_at | timestamp with time zone | |
status | text | yes |
nursing_observations
Patient-owned directly: nursing_observations.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
record_id | uuid | |
case_id | uuid | |
admission_id | uuid | |
phase | text | yes |
kind | text | yes |
code | text | yes |
label | text | yes |
value_type | text | yes |
value_numeric | numeric | |
value_text | text | |
value_code | text | |
unit | text | |
laterality | text | |
performed_at | timestamp with time zone | yes |
recorded_at | timestamp with time zone | yes |
late_entry | boolean | yes |
late_entry_reason | text | |
corrects_id | uuid | |
correction_reason | text | |
source | text | yes |
entry_method | text | yes |
note | text |
nursing_records
Patient-owned directly: nursing_records.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
case_id | uuid | |
admission_id | uuid | |
phase | text | yes |
definition_key | text | yes |
version | integer | yes |
content | jsonb | yes |
carried_forward | jsonb | yes |
status | text | yes |
signed_by | text | |
signed_at | timestamp with time zone | |
amendments | jsonb | yes |
nursing_shift_staffing
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
unit | text | yes |
unit_type | text | yes |
shift_start | timestamp with time zone | yes |
shift_end | timestamp with time zone | yes |
census | integer | yes |
required_rn | integer | yes |
required_lvn | integer | yes |
required_psych_tech | integer | yes |
ratio_floor | integer | yes |
actual_rn | integer | yes |
actual_lvn | integer | yes |
actual_psych_tech | integer | yes |
variance_rn | integer | |
variance_lvn | integer | |
variance_psych_tech | integer | |
recorded_by | text | yes |
recorded_at | timestamp with time zone | yes |
revision | integer | yes |
correction_reason | text |
nursing_staffing_emergencies
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
unit | text | yes |
description | text | yes |
declared_by | text | yes |
declared_at | timestamp with time zone | yes |
ended_by | text | |
ended_at | timestamp with time zone |
nursing_tasks
Patient-owned directly: nursing_tasks.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
case_id | uuid | |
admission_id | uuid | |
service_request_id | uuid | yes |
occurrence_key | text | yes |
responsible_role | text | yes |
status | text | yes |
performed_at | timestamp with time zone | |
reason | text | |
completed_by | text | yes |
completed_at | timestamp with time zone | yes |
reassess_at | timestamp with time zone |
nursing_voice_batches
Patient-owned directly: nursing_voice_batches.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
record_id | uuid | yes |
case_id | uuid | |
admission_id | uuid | |
record_version | integer | yes |
definition_key | text | yes |
definition_hash | text | yes |
definition_snapshot | jsonb | yes |
record_snapshot | jsonb | yes |
transcript_id | uuid | yes |
transcript | text | yes |
performed_at | timestamp with time zone | yes |
proposals | jsonb | yes |
dropped_count | integer | yes |
status | text | yes |
accepted_values | jsonb | yes |
accepted_keys | jsonb | yes |
resource_ids | jsonb | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
consumed_by | text | |
consumed_at | timestamp with time zone |
orderable_requests
Patient-owned directly: orderable_requests.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
requested_by | text | yes |
patient_id | uuid | |
encounter_id | uuid | |
text | text | yes |
kind_guess | text | |
code_guess | text | |
status | text | yes |
answered_by | text | |
answered_at | timestamp with time zone | |
orderable_id | text | |
created_at | timestamp with time zone | yes |
org_messaging_settings
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
ai_first_responder | boolean | yes |
auto_ack | boolean | yes |
auto_assign_on_mention | boolean | yes |
quiet_hours_start | integer | yes |
quiet_hours_end | integer | yes |
disclosure_policy_version | text | yes |
terms_url | text | |
updated_at | timestamp | yes |
org_routing_directory
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
label | text | yes |
context | text | yes |
destination_type | text | yes |
transfer_number | text | |
extension | text | |
message_category | text | |
category | text | |
collect_info | text | |
enabled | boolean | yes |
sort_order | integer | yes |
created_at | timestamp | yes |
updated_at | timestamp | yes |
org_team_members
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
name | text | yes |
role | text | |
phone | text | yes |
extension | text | |
active | boolean | yes |
created_at | timestamp | yes |
updated_at | timestamp | yes |
organization_inbound_endpoints
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
channel | text | yes |
endpoint_identity | text | yes |
label | text | |
provider | text | |
active | boolean | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
organization_members
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
user_id | uuid | yes |
organization_id | uuid | yes |
role | text | yes |
is_active | boolean | yes |
created_at | timestamp | yes |
updated_at | timestamp | yes |
organization_modules
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
module | text | yes |
enabled | boolean | yes |
config | jsonb | |
enabled_at | timestamp | |
disabled_at | timestamp | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
organization_payers
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
display_name | text | yes |
policybot_plan_id | text | |
policybot_company_name | text | |
policybot_plan_name | text | |
state | text | |
line_of_business | text | |
aliases | text[] | |
stedi_payer_id | text | |
match_confidence | text | |
confirmed_by_user_id | uuid | |
confirmed_at | timestamp | |
is_active | boolean | yes |
sort_order | integer | yes |
source | text | yes |
professional_billing_entity | text | yes |
institutional_billing_entity | text | yes |
created_at | timestamp | yes |
updated_at | timestamp | yes |
organizations
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
name | text | yes |
slug | text | |
npi | text | |
tax_id | text | |
address_line1 | text | |
address_line2 | text | |
city | text | |
state | text | |
zip | text | |
phone_number | text | |
fax | text | |
timezone | text | yes |
clinic_days | jsonb | |
insurance_accepted | jsonb | |
insurance_rejected | jsonb | |
insurance_hmo | jsonb | |
retell_agent_id | text | |
system_prompt | text | |
voice_id | text | |
agent_name | text | |
greeting | text | |
modules | jsonb | |
appointment_durations | jsonb | |
knowledge_base_id | text | |
voice_settings | jsonb | |
keypad_actions | jsonb | |
notification_emails | jsonb | |
notification_mode | text | yes |
escalation_phone | text | |
settings | jsonb | yes |
logo_url | text | |
primary_color | text | |
accent_color | text | |
heading_font | text | |
body_font | text | |
pdf_header_tint | text | |
pdf_push_channel | text | |
pdf_push_destination | text | |
chart_note_template | text | |
intent_schema | jsonb | |
priority_categories | jsonb | yes |
scheduling_fulfillment_mode | scheduling_fulfillment_mode | yes |
audio_retention_days | integer | |
legal_hold | boolean | yes |
data_lifecycle | jsonb | yes |
is_active | boolean | yes |
is_demo | boolean | yes |
created_at | timestamp | yes |
updated_at | timestamp | yes |
pa_activity
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
org_id | uuid | yes |
case_id | uuid | |
request_id | uuid | |
activity_type | text | yes |
correlation_key | text | |
milestone | text | |
payload | jsonb | yes |
occurred_at | timestamp with time zone | yes |
observed_at | timestamp with time zone | yes |
actor | text | |
billable | boolean | yes |
cost_usd | numeric(10, 6) | |
tokens_in | integer | |
tokens_out | integer | |
model | text | |
duration_ms | integer | |
created_at | timestamp with time zone | yes |
pa_answers
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
org_id | uuid | yes |
request_id | uuid | yes |
question_key | text | yes |
status | text | yes |
value | jsonb | |
evidence_ref | jsonb | |
evidence_sha256 | text | |
confidence | numeric | |
answered_by | text | |
override_reason | text | |
answered_at | timestamp with time zone | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
pa_cases
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
org_id | uuid | yes |
surgimate_case_id | text | yes |
patient_name | text | |
patient_account | text | |
patient_dob | text | |
scheduled_at | timestamp with time zone | |
surgeon | text | |
facility | text | |
source_status | text | |
procedures | jsonb | yes |
procedure_text | jsonb | yes |
admission_type | text | |
participants | jsonb | yes |
order_facts | jsonb | yes |
diagnoses | jsonb | yes |
coverage | jsonb | yes |
checklist | jsonb | yes |
overrides | jsonb | yes |
trigger_state | text | yes |
trigger_reason | text | |
input_fingerprint | text | |
source_version | text | |
last_seen_at | timestamp with time zone | yes |
released_at | timestamp with time zone | |
released_by | text | |
lease_owner | text | |
lease_until | timestamp with time zone | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
pa_documents
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
org_id | uuid | yes |
case_id | uuid | yes |
source | text | yes |
external_id | text | |
name | text | yes |
content_type | text | |
file_size | integer | |
s3_key | text | |
sha256 | text | |
requirement_key | text | |
classified_by | text | |
classification_confidence | numeric | |
service_date | text | |
suggested_name | text | |
weakens_request | boolean | yes |
weakens_reason | text | |
packet_override | text | |
packet_override_by | text | |
packet_override_at | timestamp | |
uploaded_by | text | |
upload_state | text | yes |
created_at | timestamp with time zone | yes |
pa_requests
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
org_id | uuid | yes |
case_id | uuid | yes |
destination | text | yes |
channel | text | yes |
scope | jsonb | yes |
state | text | yes |
blockers | jsonb | yes |
priority_score | numeric | |
next_action_at | timestamp with time zone | |
lease_owner | text | |
lease_expires_at | timestamp with time zone | |
attempt_count | integer | yes |
version | integer | yes |
external_ref | text | |
auth_number | text | |
carelon_order_id | text | |
approved | jsonb | |
valid_from | timestamp with time zone | |
valid_to | timestamp with time zone | |
requirement_set_id | uuid | |
determination | text | |
determined_at | timestamp with time zone | |
authoritative_responder | jsonb | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
pa_tenant_config
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
org_id | uuid | yes |
surgimate | jsonb | yes |
modmed | jsonb | yes |
routing | jsonb | yes |
staff | jsonb | yes |
discovered_at | timestamp with time zone | |
updated_at | timestamp with time zone | yes |
packet_items
Patient-owned through a foreign-key path: packet_items .document_packet_id → document_packets.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
document_packet_id | uuid | yes |
kind | packet_item_kind | yes |
title | text | yes |
source_id | uuid | yes |
result_id | uuid | |
required | boolean | yes |
recipient_role | packet_recipient_role | yes |
recipient_label | text | |
recipient_contact | text | |
delivery_channel | packet_delivery_channel | yes |
status | packet_item_status | yes |
confidence_score | integer | |
sent_at | timestamp | |
completed_at | timestamp | |
error | text | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
packet_templates
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
name | text | yes |
description | text | |
trigger_rule | jsonb | |
items | jsonb | yes |
active | boolean | yes |
status | packet_template_status | yes |
created_by | uuid | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
patient_address_history
Patient-owned directly: patient_address_history.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
address_line1 | text | |
address_line2 | text | |
city | text | |
state | text | |
zip | text | |
replaced_at | timestamp with time zone | yes |
replaced_by | text | yes |
patient_allergies
Patient-owned directly: patient_allergies.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
substance_text | text | yes |
substance_codings | jsonb | |
reaction_text | text | |
reaction_codings | jsonb | |
severity | text | |
clinical_status | text | yes |
onset_date | date | |
is_no_known_allergies | boolean | yes |
match_key | text | yes |
patient_care_plans
Patient-owned directly: patient_care_plans.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
status | text | yes |
title | text | |
assessment | text | |
plan | text | yes |
period_start | date | |
period_end | date |
patient_conditions
Patient-owned directly: patient_conditions.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
episode_id | uuid | |
category | text | yes |
sdoh | boolean | yes |
code | text | yes |
code_system | text | yes |
codings | jsonb | |
body_site_code | text | |
laterality | text | |
concern_text | text | |
polarity | text | yes |
clinical_status | text | yes |
onset_date | date | |
abatement_date | date | |
match_key | text | yes |
patient_contact_prefs
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
contact_hash | text | yes |
channel | text | yes |
organization_id | uuid | |
opted_out_at | timestamp with time zone | yes |
source | text | yes |
patient_coverage
Patient-owned directly: patient_coverage.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
patient_id | uuid | yes |
organization_id | uuid | yes |
payer_name | text | |
plan_name | text | |
member_id | text | |
group_number | text | |
subscriber_name | text | |
subscriber_dob | date | |
subscriber_gender | text | |
subscriber_address | jsonb | |
relationship_to_subscriber | text | |
claim_filing_indicator | text | |
coverage_type | text | |
payer_id | uuid | |
priority | text | yes |
effective_start | date | |
effective_end | date | |
is_active | boolean | yes |
created_at | timestamp | yes |
updated_at | timestamp | yes |
patient_deactivations
Patient-owned directly: patient_deactivations.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
reason | text | yes |
note | text | |
deactivated_by | text | yes |
deactivated_at | timestamp with time zone | yes |
reactivated_by | text | |
reactivated_at | timestamp with time zone | |
created_at | timestamp with time zone | yes |
patient_document_extractions
Patient-owned directly: patient_document_extractions.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
patient_document_id | uuid | yes |
patient_id | uuid | yes |
facts | jsonb | yes |
doc_type | document_type | yes |
captured_at | timestamp | yes |
extracted_at | timestamp | yes |
model | text | |
status | text | yes |
error | text |
patient_documents
Patient-owned directly: patient_documents.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
patient_id | uuid | yes |
form_submission_id | uuid | |
type | document_type | yes |
title | text | yes |
file_url | text | yes |
mime_type | text | |
file_size | integer | |
uploaded_by | uuid | |
source | document_source | yes |
created_at | timestamp | yes |
patient_duplicate_candidates
Patient-owned directly: patient_duplicate_candidates.patient_a_id or patient_duplicate_candidates.patient_b_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_a_id | uuid | yes |
patient_b_id | uuid | yes |
score | numeric | |
signals | jsonb | |
status | text | yes |
decided_by | text | |
decided_at | timestamp with time zone | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
patient_facts
Patient-owned directly: patient_facts.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | |
contact_point_id | uuid | |
category | patient_fact_category | yes |
fact | text | yes |
status | patient_fact_status | yes |
source_type | patient_fact_source | yes |
source_ref | text | |
superseded_by | uuid | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
patient_goals
Patient-owned directly: patient_goals.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
description | text | yes |
code | text | |
code_system | text | |
lifecycle_status | text | yes |
sdoh | boolean | yes |
start_date | date | |
target_date | date | |
addresses_condition_id | uuid | |
expressed_by | text |
patient_identity_documents
Patient-owned directly: patient_identity_documents.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
document_id | uuid | yes |
back_document_id | uuid | |
kind | text | yes |
source | text | yes |
read_status | text | yes |
read_first_name | text | |
read_last_name | text | |
read_date_of_birth | date | |
expires_on | date | |
match_state | text | yes |
card_outcome | text | |
coverage_id | uuid | |
reviewed_by | text | |
reviewed_at | timestamp with time zone | |
captured_at | timestamp with time zone | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
patient_identity_links
Patient-owned directly: patient_identity_links.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
source_type | text | yes |
source_id | text | yes |
relationship | text | yes |
method | text | yes |
source | text | |
verified_by | text | |
verified_at | timestamp | |
expires_at | timestamp | |
active | boolean | yes |
created_at | timestamp | yes |
patient_immunizations
Patient-owned directly: patient_immunizations.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
cvx_code | text | yes |
vaccine_display | text | yes |
ndc_code | text | |
status | text | yes |
status_reason_code | text | |
status_reason_text | text | |
occurred_on | date | yes |
primary_source | boolean | yes |
report_origin | text | |
lot_number | text | |
expiration_date | date | |
manufacturer | text | |
site | text | |
route | text | |
dose_quantity | numeric | |
dose_unit | text | |
performer_name | text | |
note | text |
patient_implants
Patient-owned directly: patient_implants.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
case_implant_id | uuid | |
udi | text | |
issuing_agency | text | |
device_identifier | text | |
lot_number | text | |
serial_number | text | |
expiration_date | date | |
manufacture_date | date | |
distinct_identification_code | text | |
device_description | text | yes |
gmdn_pt_name | text | |
brand_name | text | |
version_model_number | text | |
company_name | text | |
mri_safety_status | text | |
labeled_contains_nrl | boolean | |
gudid_checked_at | timestamp with time zone | |
implanted_on | date | |
body_site | text | |
list_status | text | yes |
status_changed_by | text | |
status_changed_at | timestamp with time zone |
patient_insights
Patient-owned directly: patient_insights.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
user_id | text | yes |
organization_id | uuid | |
patient_id | uuid | |
encounter_id | text | yes |
transcription_id | text | yes |
patient_name | text | yes |
patient_dob | text | |
encounter_date | date | |
patient_status | text | |
surgery_readiness_tags | text[] | |
comorbidity_tags | text[] | |
pending_requirements | jsonb | |
planned_procedure | text | |
laterality | text | |
payer_type | text | |
payer_name | text | |
auth_status | text | |
target_window | text | |
facility_preference | text | |
confidence | numeric(3, 2) | |
extraction_reasoning | text | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
patient_medications
Patient-owned directly: patient_medications.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
code | text | |
code_system | text | |
codings | jsonb | |
medication_text | text | yes |
dose_text | text | |
route_text | text | |
frequency_text | text | |
status | text | yes |
started_on | date | |
stopped_on | date | |
match_key | text | yes |
patient_merges
Patient-owned directly: patient_merges.survivor_patient_id or patient_merges.merged_patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
survivor_patient_id | uuid | yes |
merged_patient_id | uuid | yes |
status | text | yes |
evidence | jsonb | |
field_choices | jsonb | |
merged_by | text | yes |
merged_at | timestamp with time zone | yes |
reversed_by | text | |
reversed_at | timestamp with time zone | |
reverse_reason | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
patient_name_aliases
Patient-owned directly: patient_name_aliases.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
first_name | text | yes |
middle_name | text | |
last_name | text | yes |
name_use | text | yes |
ended_on | date | |
active | boolean | yes |
created_at | timestamp | yes |
updated_at | timestamp | yes |
patient_observations
Patient-owned directly: patient_observations.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
code | text | yes |
code_system | text | yes |
value_type | text | yes |
value_numeric | numeric | |
value_text | text | |
value_code | text | |
value_code_system | text | |
unit | text | |
laterality | text | |
effective_at | timestamp with time zone | yes |
late_entry_reason | text |
patient_passports
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
contact_hash | text | yes |
contact_method | passport_contact_method | yes |
data | jsonb | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
patient_procedures
Patient-owned directly: patient_procedures.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
episode_id | uuid | |
code | text | yes |
code_system | text | yes |
codings | jsonb | |
body_site_code | text | |
laterality | text | |
performed_date | date | |
performed_at | timestamp with time zone | |
performed_end_at | timestamp with time zone | |
outcome_text | text | |
match_key | text | yes |
setting | text | |
procedure_kind | text | |
procedure_event_id | uuid | |
setup_id | uuid | |
setup_version | integer | |
service_request_id | uuid | |
performed_by | text | |
performed_by_provider_id | uuid | |
billing_intent | jsonb | |
correction_reason | text | |
corrected_by | text | |
corrected_at | timestamp with time zone |
patient_related_persons
Patient-owned directly: patient_related_persons.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
name | text | yes |
relationship | text | yes |
phone | text | |
email | text | |
address_line1 | text | |
address_line2 | text | |
city | text | |
state | text | |
zip | text | |
active | boolean | yes |
patient_reporting_demographics
Patient-owned directly: patient_reporting_demographics.patient_id.
| Column | Postgres type | Required |
|---|---|---|
patient_id | uuid | yes |
organization_id | uuid | yes |
race_codes | text[] | |
ethnicity | text | |
sex_assigned_at_birth | text | |
gender_identity | text | |
sexual_orientation | text | |
disability_domains | text[] | |
no_publicity | boolean | yes |
state_restricted | boolean | yes |
nursing_home_resident | boolean | yes |
prisoner | boolean | yes |
race_detail_codes | text[] | |
ethnicity_detail_codes | text[] | |
tribal_affiliation_code | text | |
tribal_affiliation_display | text | |
tribal_enrolled | boolean | |
occupation_text | text | |
occupation_code | text | |
industry_text | text | |
industry_code | text | |
occupation_start | date | |
date_of_death | date | |
preliminary_cause_of_death | text | |
mobile_phone | text | |
updated_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
patient_telecoms
Patient-owned directly: patient_telecoms.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
system | text | yes |
value | text | yes |
use | text | |
active | boolean | yes |
patients
Patient-owned directly: patients.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
first_name | text | yes |
last_name | text | yes |
middle_name | text | |
suffix | text | |
date_of_birth | date | |
gender | text | |
medicare_id | text | |
group_number | text | |
subscriber_group_name | text | |
address_line1 | text | |
address_line2 | text | |
city | text | |
state | text | |
zip | text | |
phone | text | |
email | text | |
chart_number | text | |
is_active | boolean | yes |
restricted | boolean | yes |
merged_into_patient_id | uuid | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
pdmp_lookups
Patient-owned directly: pdmp_lookups.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
requested_by | text | yes |
requested_by_type | text | yes |
requested_at | timestamp with time zone | yes |
entrance | text | yes |
medications | jsonb | yes |
source | text | yes |
report_date | date | yes |
report | jsonb | yes |
mme_per_day | integer | yes |
prescriber_count | integer | yes |
pharmacy_count | integer | yes |
flags | jsonb | yes |
attestations | jsonb | yes |
service_request_id | uuid | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
portal_access_requests
Patient-owned directly: portal_access_requests.requester_patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
reference | text | yes |
person_id | uuid | yes |
requester_grant_id | uuid | yes |
requester_patient_id | uuid | yes |
requester_contact | text | yes |
request_key | text | yes |
subject_name | text | yes |
subject_date_of_birth | date | yes |
relationship | text | yes |
reason | text | |
attested | boolean | yes |
status | text | yes |
outcome_reason | text | |
closed_by | text | |
closed_at | timestamp with time zone | |
work_item_id | uuid | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
portal_addresses
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
practice_key | text | yes |
active | boolean | yes |
created_at | timestamp with time zone | yes |
retired_at | timestamp with time zone |
portal_appointment_requests
Patient-owned directly: portal_appointment_requests.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
reference | text | yes |
patient_id | uuid | yes |
grant_id | uuid | yes |
request_key | text | yes |
payload_fingerprint | text | yes |
appointment_type_id | uuid | |
provider_id | uuid | |
facility_id | uuid | |
preferred_times | text | yes |
preferred_weekdays | smallint[] | yes |
earliest_on | date | |
reason | text | |
status | text | yes |
owner_kind | text | yes |
owner_id | text | yes |
respond_by | timestamp with time zone | yes |
expires_at | timestamp with time zone | yes |
work_item_id | uuid | |
decided_by | text | |
decided_at | timestamp with time zone | |
decline_reason | text | |
appointment_id | uuid | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
portal_contacts
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
person_id | uuid | yes |
kind | text | yes |
subject_key | text | yes |
verified_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
retired_at | timestamp with time zone |
portal_grant_actions
Patient-owned directly: portal_grant_actions.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
grant_id | uuid | yes |
action | text | yes |
granted_by | text | yes |
granted_at | timestamp with time zone | yes |
revoked_at | timestamp with time zone | |
revoked_by | text |
portal_home_watermarks
Patient-owned directly: portal_home_watermarks.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
person_id | uuid | yes |
patient_id | uuid | yes |
grant_id | uuid | yes |
session_id | uuid | yes |
since_at | timestamp with time zone | |
last_seen_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
portal_invite_sends
Patient-owned directly: portal_invite_sends.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
invite_id | uuid | yes |
kind | text | yes |
channels | text | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
portal_invites
Patient-owned directly: portal_invites.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
target_kind | text | |
target_id | uuid | |
origin | text | yes |
channels | text | yes |
status | text | yes |
hold_reason | text | |
last_error_code | text | |
email_token_hash | text | |
sms_token_hash | text | |
email_subject_hash | text | |
sms_subject_hash | text | |
token_expires_at | timestamp with time zone | |
sends | integer | yes |
reminders_sent | integer | yes |
last_sent_at | timestamp with time zone | |
next_reminder_at | timestamp with time zone | |
opened_at | timestamp with time zone | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
portal_library_fill_bindings
Patient-owned directly: portal_library_fill_bindings.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
delivery_id | uuid | yes |
form_version_id | uuid | yes |
patient_id | uuid | yes |
submission_id | uuid | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
portal_notification_consents
Patient-owned directly: portal_notification_consents.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
grant_id | uuid | yes |
purpose | text | yes |
channel | text | yes |
status | text | yes |
hide_practice_name | boolean | yes |
destination_key | text | |
terms_version | text | |
method | text | yes |
recorded_by | text | yes |
recorded_at | timestamp with time zone | yes |
portal_notification_outbox
Patient-owned directly: portal_notification_outbox.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
grant_id | uuid | yes |
thread_id | uuid | |
message_id | uuid | |
purpose | text | yes |
subject_kind | text | |
subject_id | uuid | |
channel | text | yes |
status | text | yes |
hold_reason | text | |
skip_reason | text | |
attempts | integer | yes |
available_at | timestamp with time zone | yes |
expires_at | timestamp with time zone | yes |
lease_expires_at | timestamp with time zone | |
lease_token | uuid | |
sent_at | timestamp with time zone | |
last_error_code | text | |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
portal_payment_checkouts
Patient-owned directly: portal_payment_checkouts.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
statement_id | uuid | yes |
grant_id | uuid | yes |
provider | text | yes |
session_ref | text | yes |
kind | text | yes |
amount_cents | integer | yes |
outstanding_cents | integer | yes |
status | text | yes |
expires_at | timestamp with time zone | |
payment_ref | text | |
ledger_entry_id | uuid | |
paid_at | timestamp with time zone | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
portal_people
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
session_epoch | integer | yes |
identity_failures | integer | yes |
identity_locked_until | timestamp with time zone | |
created_at | timestamp with time zone | yes |
portal_person_preferences
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
person_id | uuid | yes |
language | text | |
quiet_start_minute | integer | |
quiet_end_minute | integer | |
updated_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
portal_precheck
Patient-owned directly: portal_precheck.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
target_kind | text | yes |
target_id | uuid | yes |
target_at | timestamp with time zone | |
steps | jsonb | yes |
status | text | yes |
finished_at | timestamp with time zone | |
finished_by_grant_id | uuid | |
version | integer | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
portal_precheck_items
Patient-owned directly: portal_precheck_items.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
precheck_id | uuid | yes |
kind | text | yes |
item_key | text | yes |
critical | boolean | yes |
reviewer_role | text | yes |
due_at | timestamp with time zone | yes |
proposal_id | uuid | |
review_item_id | uuid | |
evidence | jsonb | |
submitted_by_grant_id | uuid | yes |
created_at | timestamp with time zone | yes |
portal_precheck_uploads
Patient-owned directly: portal_precheck_uploads.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
precheck_id | uuid | yes |
uploaded_by_grant_id | uuid | yes |
kind | text | yes |
storage_key | text | yes |
mime_type | text | yes |
byte_size | integer | yes |
sha256 | text | yes |
status | text | yes |
rejection_code | text | |
validated_at | timestamp with time zone | |
created_at | timestamp with time zone | yes |
portal_scheduling_actions
Patient-owned directly: portal_scheduling_actions.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
grant_id | uuid | yes |
request_key | text | yes |
kind | text | yes |
payload_fingerprint | text | yes |
appointment_id | uuid | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
portal_share_links
Patient-owned directly: portal_share_links.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | |
organization_id | uuid | |
patient_id | uuid | |
grant_id | uuid | |
portal_address_id | uuid | |
item_kind | text | |
item_id | uuid | |
token_hash | text | |
access_code_hash | text | |
code_failures | smallint | |
recipient_label | text | |
request_key_hash | text | |
payload_fingerprint | text | |
replay_box | text | |
expires_at | timestamptz | |
opens_count | integer | |
last_opened_at | timestamptz | |
window_started_at | timestamptz | |
window_hits | integer | |
locked_at | timestamptz | |
revoked_at | timestamptz | |
revoked_by | text | |
created_by | text | |
created_at | timestamptz | |
updated_at | timestamptz | |
REFERENCES | patients(id |
pre_service_checks
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
created_by_user_id | text | |
patient_name | text | |
card_check_id | uuid | |
input | jsonb | yes |
extraction | jsonb | |
readiness | jsonb | |
policy_results | jsonb | |
status | text | yes |
created_at | timestamp | yes |
updated_at | timestamp | yes |
privacy_labels
Patient-owned through a foreign-key path: privacy_labels .review_id → emr_privacy_reviews.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
review_id | uuid | yes |
label | text | yes |
source | text | yes |
consent_ref | text | |
set_by | text | yes |
set_at | timestamp with time zone | yes |
provider_facility_affiliations
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
provider_id | uuid | yes |
facility_id | uuid | yes |
role | text | yes |
privileges_note | text | |
active | boolean | yes |
created_at | timestamp with time zone | yes |
provider_schedule_templates
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
provider_id | uuid | yes |
facility_id | uuid | |
weekday | integer | yes |
start_time | time | yes |
end_time | time | yes |
slot_minutes | integer | yes |
reservations | jsonb | yes |
effective_from | date | yes |
effective_to | date | |
active | boolean | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
providers
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
user_id | uuid | |
entity_type | text | yes |
first_name | text | yes |
last_name | text | yes |
display_name | text | |
npi | text | |
specialty | text | |
credentials | text | |
scheduling_notes | text | |
pre_visit_instructions | text | |
name_pronunciation | text | |
name_pronunciation_ipa | text | |
license_number | text | |
license_type | text | |
license_state | text | |
license_status | text | |
license_expires_at | timestamp | |
settings | jsonb | yes |
phone | text | |
fax | text | |
address | jsonb | |
tax_id | text | |
payer_contracts | jsonb | yes |
aliases | text[] | yes |
source | text | yes |
verified_at | timestamp | |
is_active | boolean | yes |
created_at | timestamp | yes |
updated_at | timestamp | yes |
reg_extract_runs
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
obligation_id | uuid | |
extract_key | text | yes |
mapping_version | text | yes |
period_start | date | yes |
period_end | date | yes |
status | text | yes |
refusal_reason | text | |
row_count | integer | |
control_totals | jsonb | yes |
file_hash | text | |
file_format | text | yes |
source_snapshot | jsonb | yes |
run_by | text | yes |
run_at | timestamp with time zone | yes |
filing_eligible | boolean | |
filing_block_reason | text |
reg_facility_program_identities
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
program | text | yes |
identifiers | jsonb | yes |
spec_version | text | |
revision | integer | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
reg_facility_reporting_profiles
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
offers_inpatient | boolean | |
offers_outpatient_surgery | boolean | |
participation | jsonb | yes |
program_list_recorded | boolean | yes |
program_list_decision_ref | text | |
program_list_recorded_by | text | |
program_list_recorded_at | timestamp with time zone | |
counsel_decisions | jsonb | yes |
revision | integer | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
reg_measure_definitions
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
program | text | yes |
measure_id | text | yes |
version | text | yes |
title | text | yes |
numerator_text | text | yes |
denominator_text | text | yes |
required_fields | jsonb | yes |
source | text | yes |
active | boolean | yes |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
reg_obligation_history
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
obligation_id | uuid | yes |
event | text | yes |
from_status | text | |
to_status | text | |
acceptance_receipt | text | |
related_obligation_id | uuid | |
actor_id | text | yes |
occurred_at | timestamp with time zone | yes |
detail | jsonb | yes |
identity | jsonb |
reg_obligations
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | |
program | text | yes |
title | text | yes |
authority | text | |
period_start | date | |
period_end | date | |
due_on | date | |
owner_user_id | uuid | |
required_fields | jsonb | yes |
source_system | text | yes |
retained_system | text | |
submission_method | text | |
status | text | yes |
acceptance_receipt | text | |
retention_years | integer | |
notes_safe | text | |
source_event_key | text | yes |
status_changed_at | timestamp with time zone | |
status_changed_by | text | |
created_by | text | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
reporting_scope | text | |
entity_key | text | |
reporting_program | text | |
spec_version | text | |
derived_from_obligation_id | uuid | |
superseded_at | timestamp with time zone | |
superseded_by | text |
research_documents
Organization configuration and reference: research_documents .study_id → research_studies.id (organization).
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
study_id | uuid | yes |
filename | text | yes |
mime_type | text | |
kind | text | yes |
byte_size | integer | |
status | text | yes |
parsed_text | text | |
row_count | integer | |
error | text | |
created_at | timestamp | yes |
research_extractions
Patient-owned through a foreign-key path: research_extractions .subject_id → research_subjects.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
study_id | uuid | yes |
subject_id | uuid | yes |
factor_id | text | yes |
factor_version | integer | yes |
value | text | |
numeric_value | numeric | |
confidence | text | yes |
source | jsonb | |
source_text | text | |
extracted_by | text | yes |
model_version | text | |
is_current | boolean | yes |
superseded_by_id | uuid | |
reviewed_by | uuid | |
reviewed_at | timestamp | |
created_at | timestamp | yes |
research_note_evaluations
Patient-owned through a foreign-key path: research_note_evaluations .note_document_id → clinical_note_documents.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
study_id | uuid | yes |
note_document_id | uuid | yes |
note_text_hash | text | yes |
rule_hash | text | |
subject_key | text | |
verdict | text | yes |
stage | text | yes |
criteria | jsonb | |
reason | text | |
model | text | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
research_studies
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
owner_user_id | uuid | yes |
title | text | yes |
summary | text | |
thesis | text | |
factors | jsonb | yes |
inclusion_criteria | text | |
inclusion_rule | jsonb | |
meta | jsonb | |
mode | text | yes |
status | text | yes |
created_at | timestamp | yes |
updated_at | timestamp | yes |
research_subjects
Patient-owned directly: research_subjects.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
study_id | uuid | yes |
patient_id | uuid | |
encounter_id | uuid | |
subject_key | text | yes |
label | text | |
enrolled_via | text | yes |
status | text | yes |
review_status | text | yes |
enrolled_at | timestamp | yes |
reusable_blocks
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
name | text | yes |
type | text | yes |
surface | text | yes |
config | jsonb | yes |
created_at | timestamp | yes |
updated_at | timestamp | yes |
rooms
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
facility_id | uuid | yes |
name | text | yes |
kind | text | yes |
unit | text | |
sort_order | integer | yes |
active | boolean | yes |
created_at | timestamp with time zone | yes |
sched_clusters
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | text | yes |
organization_id | uuid | yes |
name | text | yes |
short_name | text | yes |
scheduling_email | text | yes |
followers | jsonb | yes |
created_at | timestamp | yes |
sched_constraints
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
kind | text | yes |
text | text | yes |
scope | jsonb | yes |
payload | jsonb | yes |
strength | sched_constraint_strength | yes |
weight | integer | |
enabled | boolean | yes |
source | sched_constraint_source | yes |
order_index | integer | yes |
created_at | timestamp | yes |
updated_at | timestamp | yes |
sched_direct_swaps
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
shift_id | uuid | yes |
from_surgeon_id | text | yes |
to_surgeon_id | text | yes |
note | text | yes |
performed_by_firebase_uid | text | |
hospital_email_sent | boolean | yes |
created_at | timestamp | yes |
sched_schedules
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
status | sched_schedule_status | yes |
range_start | date | yes |
range_end | date | yes |
regularity_index | integer | yes |
fairness_index | integer | yes |
inferred_rules | jsonb | yes |
regularity_weight | integer | yes |
solver_seed | integer | yes |
structure_priority | integer | yes |
fairness_threshold | integer | yes |
rules_hash | text | |
objective_breakdown | jsonb | |
generated_at | timestamp | yes |
published_at | timestamp | |
archived_at | timestamp |
sched_shifts
Organization configuration and reference: sched_shifts .schedule_id → sched_schedules.id (organization).
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
schedule_id | uuid | yes |
date | date | yes |
window | jsonb | yes |
cluster_id | text | yes |
group_key | text | yes |
assignee_id | text | yes |
source_template_id | text | |
produced_by_rule_id | uuid | |
explanation | text | yes |
sched_surgeons
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | text | yes |
organization_id | uuid | yes |
firebase_uid | text | |
provider_id | uuid | |
name | text | yes |
initials | text | yes |
email | text | |
phone | text | |
groups | jsonb | yes |
capabilities | jsonb | yes |
regularity_profile | jsonb | yes |
is_admin | boolean | yes |
is_active | boolean | yes |
created_at | timestamp | yes |
updated_at | timestamp | yes |
sched_swap_bidders
Organization configuration and reference: sched_swap_bidders .request_id → sched_swap_requests.id (organization).
| Column | Postgres type | Required |
|---|---|---|
request_id | uuid | yes |
surgeon_id | text | yes |
response | sched_bid_response | yes |
responded_at | timestamp | yes |
sched_swap_requests
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
shift_id | uuid | yes |
from_surgeon_id | text | yes |
partial_start | text | |
partial_end | text | |
note | text | yes |
status | sched_swap_status | yes |
picked_bidder_id | text | |
created_at | timestamp | yes |
applied_at | timestamp |
service_requests
Patient-owned directly: service_requests.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
episode_id | uuid | |
intent | text | yes |
category | text | yes |
code | text | yes |
code_system | text | yes |
codings | jsonb | |
body_site_code | text | |
laterality | text | |
reason | text | |
requested_date | date | |
priority | text | yes |
ordering_provider_id | uuid | yes |
facility_id | uuid | |
performed_at | timestamp with time zone | |
in_progress_at | timestamp with time zone | |
status_reason | text | |
status | text | yes |
details | jsonb | |
details_schema_version | text | |
confirmation_principal | text | yes |
confirmation_at | timestamp with time zone | yes |
confirmation_key | text | yes |
signed_by | text | |
signed_at | timestamp with time zone | |
order_document_id | uuid | |
pa_packet | jsonb | |
linked_order_id | uuid | |
not_billable | boolean | yes |
medication_code | text | |
medication_code_system | text | |
dose_quantity | numeric | |
dose_unit | text | |
route | text | |
schedule | jsonb | |
start_at | timestamp with time zone | |
stop_at | timestamp with time zone | |
indication | text | |
hold_until | timestamp with time zone | |
pharmacy_verification | text | yes |
pharmacy_verified_by | text | |
pharmacy_verified_at | timestamp with time zone | |
ndc11_hints | text[] |
staff_signatures
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
user_id | uuid | yes |
file_ref | text | yes |
created_at | timestamp | yes |
submission_pushes
Patient-owned through a foreign-key path: submission_pushes .submission_id → form_submissions.id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
submission_id | uuid | yes |
organization_id | uuid | yes |
channel | push_channel | yes |
destination | text | yes |
status | push_status | yes |
provider_message_id | text | |
fax_message_id | uuid | |
pages | integer | |
error_message | text | |
attempts | integer | yes |
created_at | timestamp with time zone | yes |
sent_at | timestamp with time zone | |
delivered_at | timestamp with time zone |
surgical_case_checklist_events
Patient-owned directly: surgical_case_checklist_events.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
list | text | |
item_key | text | |
action | text | yes |
from_status | text | |
to_status | text | |
summary | text | yes |
recorded_by | text | yes |
recorded_at | timestamp with time zone | yes |
surgical_case_checklist_items
Patient-owned directly: surgical_case_checklist_items.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
list | text | yes |
item_key | text | yes |
status | text | yes |
required | boolean | |
note | text | |
owner_user_id | text | |
due_on | date | |
details | jsonb | yes |
version | integer | yes |
updated_by | text | yes |
updated_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
surgical_case_orders
Patient-owned directly: surgical_case_orders.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
case_id | uuid | yes |
service_request_id | uuid | yes |
role | text | yes |
linked_at | timestamp with time zone | yes |
linked_by | text | yes |
unlinked_at | timestamp with time zone | |
unlinked_by | text | |
unlink_reason | text | |
filled_facts | jsonb |
surgical_cases
Patient-owned directly: surgical_cases.patient_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
patient_id | uuid | yes |
encounter_id | uuid | |
source_type | text | yes |
source_event_key | text | yes |
source_document_id | uuid | |
verification_status | text | yes |
asserted_by | text | yes |
asserted_at | timestamp with time zone | yes |
confirmed_by | text | |
confirmed_at | timestamp with time zone | |
last_asserted_at | timestamp with time zone | yes |
created_at | timestamp with time zone | yes |
updated_at | timestamp with time zone | yes |
episode_id | uuid | |
service_request_id | uuid | |
facility_id | uuid | yes |
room_id | uuid | |
setting | text | yes |
primary_surgeon_provider_id | uuid | yes |
anesthesia_type | text | |
procedure_code | text | |
procedure_display | text | |
body_site_snomed | text | |
laterality | text | yes |
status | text | yes |
phase | text | yes |
scheduled_start | timestamp with time zone | |
scheduled_duration_minutes | integer | |
preop_at | timestamp with time zone | |
in_or_at | timestamp with time zone | |
pacu_at | timestamp with time zone | |
completed_at | timestamp with time zone | |
room_arrived_at | timestamp with time zone | |
room_arrived_by | text | |
room_departed_at | timestamp with time zone | |
room_departed_by | text | |
pacu_received_at | timestamp with time zone | |
pacu_received_by | text | |
departed_at | timestamp with time zone | |
departed_by | text | |
departure_disposition | text | |
departure_authorization_id | uuid | |
room_event_corrections | jsonb | |
booking_sheet | jsonb | |
preop_checklist | jsonb | |
time_out | jsonb | |
consent_invalidated_at | timestamp with time zone | |
consent_reviewed_at | timestamp with time zone | |
consent_reviewed_by | text | |
consent_reviewed_document_id | uuid | |
pathway_id | uuid | |
pathway_revision | integer | |
checklist_override | jsonb | |
confirmation_requirement | text | yes |
origin | text | |
created_by | text | |
body_site | text | |
levels | text[] | |
booking_evaluation | jsonb | |
visit_number | text | |
discharge_disposition_code | text | |
discharge_destination_type | text | |
discharge_destination_name | text | |
disposition_recorded_at | timestamp with time zone | |
surgical_decision | text | |
assigned_to | text | |
hospital_confirmed_on | date | |
hospital_confirmed_at | timestamp with time zone | |
hospital_confirmed_by | text |
user_groups
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
organization_id | uuid | yes |
name | text | yes |
created_by | text | |
created_at | timestamp | yes |
updated_at | timestamp | yes |
user_modules
Organization configuration and reference: organization_id.
| Column | Postgres type | Required |
|---|---|---|
id | uuid | yes |
user_id | uuid | yes |
capability | text | yes |
organization_id | uuid | |
enabled | boolean | yes |
granted_by | uuid | |
granted_at | timestamp | |
revoked_at | timestamp | |
created_at | timestamp | yes |
updated_at | timestamp | yes |