# EHI export format

> The format of Soma's electronic health information export (ONC §170.315(b)(10)): every table and column, generated from the database.

A practice on Soma Health can export all of the **electronic health information** (EHI) it stores about one patient, or about every patient, without help from Soma. This page documents the export's format. It is generated from the same code that makes the export.

## Who makes an export, and how

- **One patient:** a user with chart access and the *Export data* permission opens the patient's chart, chooses **Export summary (C-CDA)** and then **All health information (EHI)**. The ZIP downloads at once.
- **All patients:** a practice administrator (Settings and *Export data* permissions) chooses **Settings › People › Data export › Export all patients**. It runs in the background, in parts of 200 patients, and stays available to download for 7 days.
- Every export and download is recorded in the practice's security log.

## Files in the ZIP

| Path | What it is |
| --- | --- |
| README.md | What's inside, when it was made and by which practice. |
| data-dictionary.json | Every table and column below, with types, as JSON. |
| tables/<table>.json | One JSON array per table, one object per row, keyed by column name. |
| files/<table>/<row id>-<column>.<ext> | Original files: scanned and uploaded documents, signed notes, images, recordings. |
| files/index.json | Each file with the table, row and column it belongs to (missing: true if a file couldn't be read). |
| ccda/ccd.xml, ccda/ccd.html | A C-CDA R2.1 Continuity of Care Document of the same record, and a readable copy. |
| patients/<MRN>/… | All-patient exports: each patient's files, laid out as above. The security log is in part 1 at tables/audit_events.json. |

## Conventions

- Identifiers are UUIDs. A column ending in `Id` points at the row with that id in another table.
- Dates and times are ISO 8601. Date-times are UTC; dates (`yyyy-MM-dd`) have no time zone.
- Money is a decimal number in US dollars. Enumerations are written as their names.
- Some text columns hold JSON (lists, settings, structured note content); they are kept exactly as stored.
- Credentials and secrets (password and token hashes, keys) are never exported.
- Tables with no rows for the patient are left out of the ZIP.

## How tables are chosen

The patient's row in `patients`; every table with a `PatientId` column; then, up to three levels down, every table whose rows point at rows already exported (for example a claim's lines, or a visit note's addenda). A new table that holds patient information is included automatically.

## Tables

| Table | Rows included | Columns |
| --- | --- | --- |
| `patients` | The patient's own row. | 58 |
| `appointment_reply_links` | Rows whose PatientId is the patient. | 9 |
| `appointment_series` | Rows whose PatientId is the patient. | 7 |
| `appointments` | Rows whose PatientId is the patient. | 26 |
| `attorney_statements` | Rows whose PatientId is the patient. | 32 |
| `authorizations` | Rows whose PatientId is the patient. | 59 |
| `automation_events` | Rows whose PatientId is the patient. | 11 |
| `card_setup_requests` | Rows whose PatientId is the patient. | 8 |
| `ccda_imports` | Rows whose PatientId is the patient. | 23 |
| `chart_flags` | Rows whose PatientId is the patient. | 13 |
| `chat_messages` | Rows whose PatientId is the patient. | 13 |
| `claims` | Rows whose PatientId is the patient. | 69 |
| `clinical_orders` | Rows whose PatientId is the patient. | 23 |
| `doc_packets` | Rows whose PatientId is the patient. | 24 |
| `document_sends` | Rows whose PatientId is the patient. | 15 |
| `document_shares` | Rows whose PatientId is the patient. | 18 |
| `dsi_feedback` | Rows whose PatientId is the patient. | 16 |
| `earlier_slot_offers` | Rows whose PatientId is the patient. | 12 |
| `eligibility_checks` | Rows whose PatientId is the patient. | 32 |
| `fhir_access_log` | Rows whose PatientId is the patient. | 14 |
| `fhir_access_tokens` | Rows whose PatientId is the patient. | 9 |
| `fhir_auth_requests` | Rows whose PatientId is the patient. | 16 |
| `fhir_launches` | Rows whose PatientId is the patient. | 9 |
| `fhir_refresh_tokens` | Rows whose PatientId is the patient. | 9 |
| `hep_assignments` | Rows whose PatientId is the patient. | 11 |
| `inbox_requests` | Rows whose PatientId is the patient. | 41 |
| `insurance_verifications` | Rows whose PatientId is the patient. | 18 |
| `intake_requests` | Rows whose PatientId is the patient. | 19 |
| `lab_reports` | Rows whose PatientId is the patient. | 19 |
| `lab_results` | Rows whose PatientId is the patient. | 15 |
| `letters` | Rows whose PatientId is the patient. | 26 |
| `migrated_balances` | Rows whose PatientId is the patient. | 9 |
| `no_show_fees` | Rows whose PatientId is the patient. | 13 |
| `online_booking_requests` | Rows whose PatientId is the patient. | 32 |
| `paper_consents` | Rows whose PatientId is the patient. | 8 |
| `patient_allergies` | Rows whose PatientId is the patient. | 17 |
| `patient_amendments` | Rows whose PatientId is the patient. | 17 |
| `patient_calendar_feeds` | Rows whose PatientId is the patient. | 4 |
| `patient_cards` | Rows whose PatientId is the patient. | 12 |
| `patient_cases` | Rows whose PatientId is the patient. | 41 |
| `patient_documents` | Rows whose PatientId is the patient. | 24 |
| `patient_goals` | Rows whose PatientId is the patient. | 13 |
| `patient_health_concerns` | Rows whose PatientId is the patient. | 12 |
| `patient_immunizations` | Rows whose PatientId is the patient. | 20 |
| `patient_implantable_devices` | Rows whose PatientId is the patient. | 29 |
| `patient_insurance_policies` | Rows whose PatientId is the patient. | 17 |
| `patient_medications` | Rows whose PatientId is the patient. | 16 |
| `patient_messages` | Rows whose PatientId is the patient. | 11 |
| `patient_notes` | Rows whose PatientId is the patient. | 14 |
| `patient_observations` | Rows whose PatientId is the patient. | 17 |
| `patient_payment_requests` | Rows whose PatientId is the patient. | 20 |
| `patient_problems` | Rows whose PatientId is the patient. | 15 |
| `patient_statements` | Rows whose PatientId is the patient. | 12 |
| `patient_sticky_note_versions` | Rows whose PatientId is the patient. | 5 |
| `patient_sticky_notes` | Rows whose PatientId is the patient. | 4 |
| `payments` | Rows whose PatientId is the patient. | 32 |
| `pdmp_checks` | Rows whose PatientId is the patient. | 8 |
| `portal_accounts` | Rows whose PatientId is the patient. | 15 |
| `portal_changes` | Rows whose PatientId is the patient. | 10 |
| `portal_outcome_requests` | Rows whose PatientId is the patient. | 6 |
| `portal_outcomes` | Rows whose PatientId is the patient. | 7 |
| `portal_pain_entries` | Rows whose PatientId is the patient. | 7 |
| `portal_proxies` | Rows whose PatientId is the patient. | 12 |
| `portal_record_activities` | Rows whose PatientId is the patient. | 10 |
| `portal_refill_requests` | Rows whose PatientId is the patient. | 9 |
| `portal_threads` | Rows whose PatientId is the patient. | 9 |
| `prescriptions` | Rows whose PatientId is the patient. | 33 |
| `quality_data_elements` | Rows whose PatientId is the patient. | 23 |
| `stored_files` | Rows whose PatientId is the patient. | 10 |
| `surgeries` | Rows whose PatientId is the patient. | 58 |
| `tasks` | Rows whose PatientId is the patient. | 23 |
| `verification_work` | Rows whose PatientId is the patient. | 13 |
| `visit_notes` | Rows whose PatientId is the patient. | 30 |
| `visit_orders` | Rows whose PatientId is the patient. | 20 |
| `visit_plan_links` | Rows whose PatientId is the patient. | 9 |
| `waitlist_entries` | Rows whose PatientId is the patient. | 17 |
| `app_expirable_versions` | Rows whose FileId points at an exported row of stored_files. | 12 |
| `appointment_message_sends` | Rows whose AppointmentId points at an exported row of appointments. | 6 |
| `appointment_status_events` | Rows whose AppointmentId points at an exported row of appointments. | 6 |
| `authorization_events` | Rows whose AuthorizationId points at an exported row of authorizations. | 8 |
| `bank_transactions` | Rows whose ImportId points at an exported row of ccda_imports. | 15 |
| `case_body_parts` | Rows whose CaseId points at an exported row of patient_cases. | 9 |
| `case_diagnoses` | Rows whose CaseId points at an exported row of patient_cases. | 14 |
| `chat_attachments` | Rows whose MessageId points at an exported row of chat_messages. | 8 |
| `chat_message_edits` | Rows whose MessageId points at an exported row of chat_messages. | 4 |
| `claim_events` | Rows whose ClaimId points at an exported row of claims. | 6 |
| `claim_lines` | Rows whose ClaimId points at an exported row of claims. | 17 |
| `claim_remittances` | Rows whose ClaimId points at an exported row of claims. | 18 |
| `cred_verifications` | Rows whose FileId points at an exported row of stored_files. | 12 |
| `doc_processing_pages` | Rows whose FileId points at an exported row of stored_files. | 7 |
| `edi_files` | Rows whose ClaimId points at an exported row of claims. | 23 |
| `hr_checklist_items` | Rows whose PolicyId points at an exported row of patient_insurance_policies. | 11 |
| `hr_documents` | Rows whose FileId points at an exported row of stored_files. | 7 |
| `hr_policy_assignments` | Rows whose PolicyId points at an exported row of patient_insurance_policies. | 6 |
| `hr_policy_versions` | Rows whose FileId points at an exported row of stored_files. | 7 |
| `hr_time_off_entries` | Rows whose PolicyId points at an exported row of patient_insurance_policies. | 10 |
| `hr_time_off_requests` | Rows whose PolicyId points at an exported row of patient_insurance_policies. | 15 |
| `inbox_attachments` | Rows whose DocumentId points at an exported row of patient_documents. | 10 |
| `inbox_messages` | Rows whose RequestId points at an exported row of inbox_requests. | 22 |
| `intake_responses` | Rows whose RequestId points at an exported row of intake_requests. | 14 |
| `liability_activity` | Rows whose CaseId points at an exported row of patient_cases. | 8 |
| `payment_applications` | Rows whose ClaimId points at an exported row of claims. | 25 |
| `payment_attachments` | Rows whose PatientDocumentId points at an exported row of patient_documents. | 9 |
| `portal_deep_links` | Rows whose AccountId points at an exported row of portal_accounts. | 10 |
| `portal_messages` | Rows whose ProxyId points at an exported row of portal_proxies. | 8 |
| `schedule_blocks` | Rows whose SeriesId points at an exported row of appointment_series. | 10 |
| `surgery_checklist_items` | Rows whose DocumentId points at an exported row of patient_documents. | 17 |
| `surgery_events` | Rows whose SurgeryId points at an exported row of surgeries. | 8 |
| `telehealth_rooms` | Rows whose AppointmentId points at an exported row of appointments. | 10 |
| `visit_note_addenda` | Rows whose NoteId points at an exported row of visit_notes. | 6 |
| `visit_scribe_sessions` | Rows whose NoteId points at an exported row of visit_notes. | 19 |
| `hr_policy_acks` | Rows whose PolicyVersionId points at an exported row of hr_policy_versions. | 7 |
| `hr_request_comments` | Rows whose RequestId points at an exported row of hr_time_off_requests. | 6 |
| `portal_sign_ins` | Rows whose DeepLinkId points at an exported row of portal_deep_links. | 10 |
| `audit_events` | Security log entries that name the patient (who did what, when). | 4 |

## Columns

## patients

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Address1` | string, optional |  |
| `Address2` | string, optional |  |
| `CauseOfDeath` | string, optional |  |
| `City` | string, optional |  |
| `ConsentToEmail` | boolean |  |
| `ConsentToText` | boolean |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `DateOfBirth` | string (date) |  |
| `DateOfDeath` | string (date), optional |  |
| `Email` | string, optional |  |
| `EmergencyContactName` | string, optional |  |
| `EmergencyContactPhone` | string, optional |  |
| `EmergencyContactRelationship` | string, optional |  |
| `EthnicityCodes` | string, optional |  |
| `FirstName` | string |  |
| `GenderIdentity` | string, optional |  |
| `GenderIdentityText` | string, optional |  |
| `HomePhone` | string, optional |  |
| `InterpreterNeeded` | boolean |  |
| `LastName` | string |  |
| `MiddleName` | string, optional |  |
| `MobilePhone` | string, optional |  |
| `Mrn` | string |  |
| `Notes` | string, optional |  |
| `Occupation` | string, optional |  |
| `OccupationIndustry` | string, optional |  |
| `PhotoKey` | string, optional | The file is in files/ (see files/index.json); this is its internal storage key. |
| `PhotoUpdatedAt` | string (date-time, UTC), optional |  |
| `PreferredLanguage` | string, optional |  |
| `PreferredLanguageCode` | string, optional |  |
| `PreferredLocationId` | string (uuid), optional |  |
| `PreferredName` | string, optional |  |
| `PreferredPharmacy` | string, optional |  |
| `PreviousAddresses` | string, optional |  |
| `PreviousNames` | string, optional |  |
| `PrimaryProviderId` | string (uuid), optional |  |
| `Pronouns` | string, optional |  |
| `PronounsText` | string, optional |  |
| `RaceCodes` | string, optional |  |
| `ReferralSourceId` | string (uuid), optional |  |
| `RegistrationComplete` | boolean |  |
| `SearchFirstName` | string |  |
| `SearchLastName` | string |  |
| `Sex` | string |  |
| `SexualOrientation` | string, optional |  |
| `SexualOrientationText` | string, optional |  |
| `SsnLast4` | string, optional |  |
| `SsnProtected` | string, optional |  |
| `State` | string, optional |  |
| `Status` | string |  |
| `Suffix` | string, optional |  |
| `TribalAffiliation` | string, optional |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `UpdatedBy` | string, optional |  |
| `WorkPhone` | string, optional |  |
| `Zip` | string, optional |  |

## appointment_reply_links

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentId` | string (uuid) |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `ExpiresAt` | string (date-time, UTC) |  |
| `FailedVerifications` | integer |  |
| `LockedUntil` | string (date-time, UTC), optional |  |
| `PatientId` | string (uuid) |  |
| `RespondedAt` | string (date-time, UTC), optional |  |
| `Response` | string, optional |  |

## appointment_series

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `Days` | integer |  |
| `EveryWeeks` | integer |  |
| `PatientId` | string (uuid) |  |
| `Planned` | integer |  |

## appointments

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AcceptedWarnings` | string, optional |  |
| `AppointmentTypeId` | string (uuid) |  |
| `CancelReason` | string, optional |  |
| `CaseId` | string (uuid) |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `Date` | string (date) |  |
| `DurationMinutes` | integer |  |
| `LocationId` | string (uuid) |  |
| `Notes` | string, optional |  |
| `NotifyEarlier` | boolean |  |
| `NotifyEarlierSince` | string (date-time, UTC), optional |  |
| `PatientId` | string (uuid) |  |
| `ProviderId` | string (uuid) |  |
| `Reason` | string, optional |  |
| `RescheduledFromId` | string (uuid), optional |  |
| `RoomId` | string (uuid), optional |  |
| `RoomedAt` | string (date-time, UTC), optional |  |
| `SeriesId` | string (uuid), optional |  |
| `StartTime` | string (time) |  |
| `Status` | string |  |
| `StatusChangedAt` | string (date-time, UTC) |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `UpdatedBy` | string, optional |  |
| `VisitReasonId` | string (uuid), optional |  |

## attorney_statements

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Adjusted` | number |  |
| `Balance` | number |  |
| `Billed` | number |  |
| `CaseId` | string (uuid) |  |
| `CodeExpiresAt` | string (date-time, UTC), optional |  |
| `CodeSentAt` | string (date-time, UTC), optional |  |
| `ContactId` | string (uuid), optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `DocumentId` | string (uuid), optional |  |
| `Downloads` | integer |  |
| `ExpiresAt` | string (date-time, UTC) |  |
| `FailedAttempts` | integer |  |
| `FirstOpenedAt` | string (date-time, UTC), optional |  |
| `Interest` | number |  |
| `LastViewedAt` | string (date-time, UTC), optional |  |
| `LockedUntil` | string (date-time, UTC), optional |  |
| `Number` | integer |  |
| `Paid` | number |  |
| `PatientId` | string (uuid) |  |
| `Prints` | integer |  |
| `RecipientEmail` | string |  |
| `RecipientName` | string |  |
| `RevokedAt` | string (date-time, UTC), optional |  |
| `RevokedBy` | string, optional |  |
| `StatementDate` | string (date) |  |
| `Status` | string |  |
| `StatusMessage` | string, optional |  |
| `Trigger` | string |  |
| `VerifiedAt` | string (date-time, UTC), optional |  |
| `Views` | integer |  |

## authorizations

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppealDueOn` | string (date), optional |  |
| `ApprovedFrom` | string (date), optional |  |
| `ApprovedTo` | string (date), optional |  |
| `ApprovedVisits` | integer, optional |  |
| `AssignedToUserId` | string, optional |  |
| `Attachments` | string |  |
| `AuthNumber` | string, optional |  |
| `AuthTypeLabel` | string, optional |  |
| `BodyPartIds` | string |  |
| `CaseId` | string (uuid) |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `DecisionNote` | string, optional |  |
| `DecisionOn` | string (date), optional |  |
| `DeemedApproved` | boolean |  |
| `Diagnoses` | string |  |
| `DocumentIds` | string |  |
| `EscalatedOn` | string (date), optional |  |
| `ExternalId` | string, optional |  |
| `Findings` | string, optional |  |
| `FormRefs` | string |  |
| `FormValues` | string |  |
| `Guidance` | string, optional |  |
| `ImeRequested` | boolean |  |
| `LiabilityWithheld` | boolean |  |
| `MtgReference` | string, optional |  |
| `Notes` | string, optional |  |
| `Number` | integer |  |
| `ParType` | string, optional |  |
| `PatientId` | string (uuid) |  |
| `PayerId` | string (uuid), optional |  |
| `PayerName` | string, optional |  |
| `PhysicianOnly` | boolean |  |
| `PriorTreatment` | string, optional |  |
| `Program` | string |  |
| `ProviderId` | string (uuid), optional |  |
| `Reason` | string, optional |  |
| `RequestedFrom` | string (date), optional |  |
| `RequestedTo` | string (date), optional |  |
| `ResponseBusinessDays` | boolean |  |
| `ResponseDays` | integer, optional |  |
| `ResponseDueOn` | string (date), optional |  |
| `ReviewLevel` | integer |  |
| `RuleId` | string (uuid), optional |  |
| `RuleName` | string, optional |  |
| `SendId` | string (uuid), optional |  |
| `SentVia` | string, optional |  |
| `Services` | string |  |
| `Status` | string |  |
| `SubmitMethod` | string, optional |  |
| `SubmitTo` | string, optional |  |
| `SubmittedBy` | string, optional |  |
| `SubmittedDocumentIds` | string |  |
| `SubmittedOn` | string (date), optional |  |
| `SurgeryId` | string (uuid), optional |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `UpdatedBy` | string, optional |  |
| `WorkStatus` | string, optional |  |

## automation_events

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentId` | string (uuid), optional |  |
| `Attempts` | integer |  |
| `CaseId` | string (uuid), optional |  |
| `Data` | string |  |
| `Error` | string, optional |  |
| `OccurredAt` | string (date-time, UTC) |  |
| `PatientId` | string (uuid), optional |  |
| `ProcessedAt` | string (date-time, UTC), optional |  |
| `Trigger` | string |  |
| `UserId` | string, optional |  |

## card_setup_requests

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `ExpiresAt` | string (date-time, UTC) |  |
| `PatientId` | string (uuid) |  |
| `Status` | string |  |
| `StripeCustomerId` | string, optional |  |
| `StripeSessionId` | string, optional |  |

## ccda_imports

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `Decisions` | string, optional |  |
| `DocumentCode` | string, optional |  |
| `DocumentId` | string (uuid), optional |  |
| `DocumentTime` | string (date-time, UTC), optional |  |
| `OriginalFileName` | string, optional |  |
| `PatientBirthDate` | string (date), optional |  |
| `PatientFamily` | string, optional |  |
| `PatientGiven` | string, optional |  |
| `PatientId` | string (uuid), optional |  |
| `PatientSex` | string, optional |  |
| `ReconciledAt` | string (date-time, UTC), optional |  |
| `ReconciledBy` | string, optional |  |
| `Sha256` | string |  |
| `Source` | string |  |
| `SourceOrganization` | string, optional |  |
| `Status` | string |  |
| `StorageKey` | string | The file is in files/ (see files/index.json); this is its internal storage key. |
| `Title` | string |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `ValidationErrors` | string |  |

## chart_flags

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `CaseId` | string (uuid), optional |  |
| `Color` | string, optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `CreatedByName` | string, optional |  |
| `Kind` | string |  |
| `PatientId` | string (uuid) |  |
| `ResolvedAt` | string (date-time, UTC), optional |  |
| `ResolvedByName` | string, optional |  |
| `Severity` | string |  |
| `Text` | string |  |
| `UpdatedAt` | string (date-time, UTC) |  |

## chat_messages

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Body` | string |  |
| `ClientId` | string, optional |  |
| `ConversationId` | string (uuid) |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `DeletedAt` | string (date-time, UTC), optional |  |
| `DeletedBy` | string, optional |  |
| `EditedAt` | string (date-time, UTC), optional |  |
| `Kind` | string |  |
| `PatientId` | string (uuid), optional |  |
| `ReplyToId` | string (uuid), optional |  |
| `SenderId` | string, optional |  |
| `Seq` | integer |  |

## claims

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AcceptAssignment` | boolean |  |
| `AcknowledgedAt` | string (date-time, UTC), optional |  |
| `AdjustedAmount` | number |  |
| `AppointmentId` | string (uuid), optional |  |
| `AssignedTo` | string, optional |  |
| `BillingEntityId` | string (uuid), optional |  |
| `BillingType` | string |  |
| `CaseId` | string (uuid) |  |
| `CaseType` | string |  |
| `ClaimForm` | string |  |
| `ClaimType` | string |  |
| `CollectionAssignmentCheckedAt` | string (date-time, UTC), optional |  |
| `CollectionStatus` | string |  |
| `CollectionTeamId` | string (uuid), optional |  |
| `Confirmed` | string |  |
| `ConnectionId` | string (uuid), optional |  |
| `ControlNumber` | string, optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `DateOfService` | string (date) |  |
| `DateOfServiceTo` | string (date), optional |  |
| `DetailsEditedByHand` | boolean |  |
| `DoNotPrint` | boolean |  |
| `EdiPayerId` | string, optional |  |
| `EditedByHand` | boolean |  |
| `EobStatus` | string |  |
| `FeeScheduleId` | string (uuid), optional |  |
| `FiledProviderName` | string, optional |  |
| `FiledProviderSignature` | string (base64), optional |  |
| `FiledSignatureVersion` | string (uuid), optional |  |
| `FollowUpOn` | string (date), optional |  |
| `FormDocumentId` | string (uuid), optional |  |
| `FormSignedOn` | string (date), optional |  |
| `HoldReason` | string, optional |  |
| `InstitutionalJson` | string, optional |  |
| `InsuredId` | string, optional |  |
| `Interest` | number |  |
| `LastWorkedAt` | string (date-time, UTC), optional |  |
| `LocationId` | string (uuid), optional |  |
| `NoteId` | string (uuid), optional |  |
| `Number` | integer |  |
| `OriginalReference` | string, optional |  |
| `PaidAmount` | number |  |
| `PatientId` | string (uuid) |  |
| `PatientPaid` | number |  |
| `PatientReleaseDate` | string (date), optional |  |
| `PatientResponsibility` | number |  |
| `PayerId` | string (uuid), optional |  |
| `PayerName` | string, optional |  |
| `PlaceOfService` | string |  |
| `PolicyId` | string (uuid), optional |  |
| `Problems` | string |  |
| `ProviderId` | string (uuid) |  |
| `ResubmissionCode` | string, optional |  |
| `SendAfter` | string (date-time, UTC), optional |  |
| `SentAt` | string (date-time, UTC), optional |  |
| `SentBy` | string, optional |  |
| `SimulatorControlled` | boolean |  |
| `Stage` | string |  |
| `Status` | string |  |
| `StatusMessage` | string, optional |  |
| `SubmissionAttempt` | integer |  |
| `SubmissionMode` | string, optional |  |
| `SubmittedPayerId` | string, optional |  |
| `SupervisingProviderId` | string (uuid), optional |  |
| `Total` | number |  |
| `TypeOfService` | string |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `UpdatedBy` | string, optional |  |

## clinical_orders

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentId` | string (uuid), optional |  |
| `Code` | string, optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `Diagnoses` | string, optional |  |
| `DueOn` | string (date), optional |  |
| `Kind` | string |  |
| `Name` | string |  |
| `NoteId` | string (uuid), optional |  |
| `Notes` | string, optional |  |
| `Number` | string |  |
| `OrderedAt` | string (date-time, UTC) |  |
| `PatientId` | string (uuid) |  |
| `Priority` | string |  |
| `ProviderId` | string (uuid), optional |  |
| `Reason` | string, optional |  |
| `SpecimenCode` | string, optional |  |
| `SpecimenName` | string, optional |  |
| `Status` | string |  |
| `StatusReason` | string, optional |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `UpdatedBy` | string, optional |  |

## doc_packets

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentId` | string (uuid), optional |  |
| `BatchId` | string (uuid) |  |
| `Candidates` | string |  |
| `CaseId` | string (uuid), optional |  |
| `ClaimId` | string (uuid), optional |  |
| `Confidence` | string |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `DocType` | string |  |
| `DocumentId` | string (uuid), optional |  |
| `Extracted` | string |  |
| `FromPage` | integer |  |
| `Number` | integer |  |
| `PatientId` | string (uuid), optional |  |
| `Problem` | string, optional |  |
| `Queue` | string |  |
| `ResolvedAt` | string (date-time, UTC), optional |  |
| `ResolvedBy` | string, optional |  |
| `Status` | string |  |
| `Summary` | string, optional |  |
| `TaskId` | string (uuid), optional |  |
| `Title` | string |  |
| `ToPage` | integer |  |
| `UpdatedAt` | string (date-time, UTC) |  |

## document_sends

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Channel` | string |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `DocumentIds` | string |  |
| `Pages` | integer |  |
| `PatientId` | string (uuid) |  |
| `Recipient` | string |  |
| `RecipientName` | string |  |
| `ShareId` | string (uuid), optional |  |
| `Status` | string |  |
| `StatusMessage` | string, optional |  |
| `Subject` | string, optional |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `VendorReference` | string, optional |  |

## document_shares

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `DocumentIds` | string |  |
| `ExpiresAt` | string (date-time, UTC) |  |
| `FailedAttempts` | integer |  |
| `FirstViewedAt` | string (date-time, UTC), optional |  |
| `LastViewedAt` | string (date-time, UTC), optional |  |
| `LockedUntil` | string (date-time, UTC), optional |  |
| `Message` | string, optional |  |
| `PatientId` | string (uuid) |  |
| `RecipientEmail` | string |  |
| `RecipientName` | string |  |
| `RecordPdfKey` | string, optional | The file is in files/ (see files/index.json); this is its internal storage key. |
| `RecordXmlKey` | string, optional |  |
| `RevokedAt` | string (date-time, UTC), optional |  |
| `RevokedBy` | string, optional |  |
| `Views` | integer |  |

## dsi_feedback

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Action` | string |  |
| `AppointmentId` | string (uuid), optional |  |
| `At` | string (date-time, UTC) |  |
| `Comment` | string, optional |  |
| `Detail` | string, optional |  |
| `Fingerprint` | string |  |
| `NoteId` | string (uuid), optional |  |
| `PatientId` | string (uuid) |  |
| `Reason` | string, optional |  |
| `RuleKey` | string |  |
| `RuleTitle` | string |  |
| `RuleType` | string |  |
| `UserId` | string |  |
| `UserName` | string |  |
| `UserRoles` | string, optional |  |

## earlier_slot_offers

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentId` | string (uuid) |  |
| `ExpiresAt` | string (date-time, UTC) |  |
| `FromDate` | string (date) |  |
| `FromStart` | string (time) |  |
| `OfferedDate` | string (date) |  |
| `OfferedStart` | string (time) |  |
| `OpeningId` | string (uuid) |  |
| `PatientId` | string (uuid) |  |
| `RespondedAt` | string (date-time, UTC), optional |  |
| `SentAt` | string (date-time, UTC) |  |
| `Status` | string |  |

## eligibility_checks

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentId` | string (uuid), optional |  |
| `Automatic` | boolean |  |
| `BillingEntityId` | string (uuid), optional |  |
| `CompletedAt` | string (date-time, UTC), optional |  |
| `ConnectionId` | string (uuid) |  |
| `DependentDob` | string (date), optional |  |
| `DependentFirstName` | string, optional |  |
| `DependentGender` | string, optional |  |
| `DependentLastName` | string, optional |  |
| `EdiPayerId` | string |  |
| `Error` | string, optional |  |
| `MemberId` | string |  |
| `Outcome` | string, optional |  |
| `PatientId` | string (uuid), optional |  |
| `PayerName` | string |  |
| `PracticePayerId` | string (uuid) |  |
| `ProviderId` | string (uuid), optional |  |
| `ProviderNpi` | string |  |
| `RequestFileId` | string (uuid), optional |  |
| `RequestedAt` | string (date-time, UTC) |  |
| `RequestedBy` | string, optional |  |
| `ResponseFileId` | string (uuid), optional |  |
| `ResultJson` | string, optional |  |
| `ServiceDate` | string (date) |  |
| `ServiceTypes` | string |  |
| `Status` | string |  |
| `SubscriberDob` | string (date), optional |  |
| `SubscriberFirstName` | string |  |
| `SubscriberGender` | string, optional |  |
| `SubscriberLastName` | string |  |
| `TraceNumber` | string |  |

## fhir_access_log

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | integer |  |
| `At` | string (date-time, UTC) |  |
| `ClientId` | string (uuid), optional |  |
| `ClientName` | string |  |
| `Count` | integer, optional |  |
| `Error` | string, optional |  |
| `Interaction` | string |  |
| `Ip` | string, optional |  |
| `PatientId` | string (uuid), optional |  |
| `Query` | string, optional |  |
| `ResourceId` | string, optional |  |
| `ResourceType` | string, optional |  |
| `Status` | integer |  |
| `UserId` | string, optional |  |

## fhir_access_tokens

| Column | Type | Notes |
| --- | --- | --- |
| `ClientId` | string (uuid) |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `EncounterId` | string, optional |  |
| `ExpiresAt` | string (date-time, UTC) |  |
| `FhirUser` | string, optional |  |
| `PatientId` | string (uuid), optional |  |
| `PortalAccountId` | string (uuid), optional |  |
| `Scopes` | string |  |
| `UserId` | string, optional |  |

## fhir_auth_requests

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string |  |
| `ClientId` | string (uuid) |  |
| `CodeChallenge` | string, optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `EncounterId` | string, optional |  |
| `ExpiresAt` | string (date-time, UTC) |  |
| `FhirUser` | string, optional |  |
| `GrantedScopes` | string, optional |  |
| `Nonce` | string, optional |  |
| `PatientId` | string (uuid), optional |  |
| `PortalAccountId` | string (uuid), optional |  |
| `RedirectUri` | string |  |
| `Scope` | string |  |
| `State` | string, optional |  |
| `Status` | string |  |
| `UserId` | string, optional |  |

## fhir_launches

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string |  |
| `ClientId` | string (uuid) |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `EncounterId` | string, optional |  |
| `ExpiresAt` | string (date-time, UTC) |  |
| `FhirUser` | string, optional |  |
| `PatientId` | string (uuid), optional |  |
| `UsedAt` | string (date-time, UTC), optional |  |
| `UserId` | string |  |

## fhir_refresh_tokens

| Column | Type | Notes |
| --- | --- | --- |
| `ClientId` | string (uuid) |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `EncounterId` | string, optional |  |
| `ExpiresAt` | string (date-time, UTC) |  |
| `FhirUser` | string, optional |  |
| `PatientId` | string (uuid), optional |  |
| `PortalAccountId` | string (uuid), optional |  |
| `Scopes` | string |  |
| `UserId` | string, optional |  |

## hep_assignments

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Active` | boolean |  |
| `AssignedAt` | string (date-time, UTC) |  |
| `AssignedBy` | string, optional |  |
| `ExerciseId` | string (uuid) |  |
| `Frequency` | string |  |
| `HoldSeconds` | integer, optional |  |
| `Notes` | string, optional |  |
| `PatientId` | string (uuid) |  |
| `Reps` | integer |  |
| `Sets` | integer |  |

## inbox_requests

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentIds` | string |  |
| `AssignedToUserId` | string, optional |  |
| `AuthorizationDocumentId` | string (uuid), optional |  |
| `CaseId` | string (uuid), optional |  |
| `Channel` | string |  |
| `CompletedAt` | string (date-time, UTC), optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `DataChecks` | string |  |
| `Details` | string |  |
| `DueOn` | string (date), optional |  |
| `FeeAmount` | number, optional |  |
| `FeePaidAt` | string (date-time, UTC), optional |  |
| `FeePaidHow` | string, optional |  |
| `FeePerPage` | number, optional |  |
| `FeeWaived` | boolean |  |
| `FeeWaivedReason` | string, optional |  |
| `FromEmail` | string |  |
| `FromName` | string |  |
| `FromPhone` | string, optional |  |
| `LastInboundAt` | string (date-time, UTC), optional |  |
| `LastMessageAt` | string (date-time, UTC) |  |
| `MailboxId` | string (uuid), optional |  |
| `MessageCount` | integer |  |
| `Notes` | string, optional |  |
| `Number` | integer |  |
| `OnlineBookingId` | string (uuid), optional |  |
| `PacketDocumentIds` | string |  |
| `PatientId` | string (uuid), optional |  |
| `PayRequestId` | string (uuid), optional |  |
| `Priority` | string |  |
| `Purpose` | string |  |
| `ReceivedAt` | string (date-time, UTC) |  |
| `ReferralSourceId` | string (uuid), optional |  |
| `Snippet` | string, optional |  |
| `Status` | string |  |
| `Subject` | string |  |
| `ThreadKey` | string, optional |  |
| `Unread` | boolean |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `UpdatedBy` | string, optional |  |

## insurance_verifications

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentId` | string (uuid), optional |  |
| `AuthorizationRequired` | boolean |  |
| `CaseId` | string (uuid) |  |
| `CaseType` | string |  |
| `ContactName` | string, optional |  |
| `CoverageActive` | boolean, optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `EligibilityCheckId` | string (uuid), optional |  |
| `Method` | string |  |
| `Notes` | string, optional |  |
| `PatientId` | string (uuid) |  |
| `PolicyId` | string (uuid), optional |  |
| `ReferenceNumber` | string, optional |  |
| `Status` | string |  |
| `Values` | string |  |
| `VerifiedOn` | string (date) |  |

## intake_requests

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentId` | string (uuid), optional |  |
| `CaseId` | string (uuid), optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `ExpiresAt` | string (date-time, UTC) |  |
| `FailedVerifications` | integer |  |
| `FiledAt` | string (date-time, UTC), optional |  |
| `Forms` | string |  |
| `LockedUntil` | string (date-time, UTC), optional |  |
| `OpenedAt` | string (date-time, UTC), optional |  |
| `PacketId` | string (uuid), optional |  |
| `PatientId` | string (uuid) |  |
| `ReviewedAt` | string (date-time, UTC), optional |  |
| `ReviewedBy` | string, optional |  |
| `SentTo` | string, optional |  |
| `SentVia` | string |  |
| `Status` | string |  |
| `SubmittedAt` | string (date-time, UTC), optional |  |

## lab_reports

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Accession` | string, optional |  |
| `Code` | string, optional |  |
| `CollectedAt` | string (date-time, UTC), optional |  |
| `Comment` | string, optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `Name` | string |  |
| `OrderId` | string (uuid), optional |  |
| `PatientId` | string (uuid) |  |
| `PerformingLab` | string, optional |  |
| `PerformingLabAddress` | string, optional |  |
| `ResultedAt` | string (date-time, UTC), optional |  |
| `Source` | string |  |
| `SpecimenCode` | string, optional |  |
| `SpecimenId` | string, optional |  |
| `SpecimenName` | string, optional |  |
| `Status` | string |  |
| `UpdatedAt` | string (date-time, UTC) |  |

## lab_results

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Comment` | string, optional |  |
| `Interpretation` | string, optional |  |
| `Loinc` | string, optional |  |
| `Name` | string |  |
| `PatientId` | string (uuid) |  |
| `RefHigh` | number, optional |  |
| `RefLow` | number, optional |  |
| `RefText` | string, optional |  |
| `ReportId` | string (uuid) |  |
| `Sequence` | integer |  |
| `Status` | string |  |
| `Unit` | string, optional |  |
| `ValueNumber` | number, optional |  |
| `ValueText` | string, optional |  |

## letters

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentId` | string (uuid), optional |  |
| `Body` | string |  |
| `CaseId` | string (uuid), optional |  |
| `Category` | string |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `DocumentId` | string (uuid), optional |  |
| `DocumentTypeId` | string (uuid), optional |  |
| `Fields` | string |  |
| `LetterDate` | string (date) |  |
| `Note` | string, optional |  |
| `PatientId` | string (uuid) |  |
| `ProviderId` | string (uuid) |  |
| `RequestedAt` | string (date-time, UTC), optional |  |
| `RequestedBy` | string, optional |  |
| `SignedAt` | string (date-time, UTC), optional |  |
| `SignedBy` | string, optional |  |
| `Status` | string |  |
| `TemplateId` | string (uuid), optional |  |
| `Title` | string |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `UpdatedBy` | string, optional |  |
| `Values` | string |  |
| `VoidedAt` | string (date-time, UTC), optional |  |
| `VoidedBy` | string, optional |  |

## migrated_balances

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Amount` | number |  |
| `AsOf` | string (date), optional |  |
| `CaseId` | string (uuid), optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `OldestServiceDate` | string (date), optional |  |
| `PatientId` | string (uuid) |  |
| `Payer` | string, optional |  |
| `ProjectId` | string (uuid) |  |

## no_show_fees

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Amount` | number |  |
| `AppointmentId` | string (uuid) |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `DecidedAt` | string (date-time, UTC), optional |  |
| `DecidedBy` | string, optional |  |
| `Kind` | string |  |
| `Message` | string, optional |  |
| `PatientId` | string (uuid) |  |
| `PayRequestId` | string (uuid), optional |  |
| `PaymentId` | string (uuid), optional |  |
| `Status` | string |  |
| `StripePaymentIntentId` | string, optional |  |

## online_booking_requests

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentId` | string (uuid), optional |  |
| `AppointmentTypeId` | string (uuid) |  |
| `AssignedToUserId` | string, optional |  |
| `Carrier` | string, optional |  |
| `CaseId` | string (uuid), optional |  |
| `ClaimOrMemberId` | string, optional |  |
| `ConsentToText` | boolean |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `Date` | string (date) |  |
| `DateOfBirth` | string (date) |  |
| `DecidedAt` | string (date-time, UTC), optional |  |
| `DecidedBy` | string, optional |  |
| `DeclineReason` | string, optional |  |
| `DurationMinutes` | integer |  |
| `Email` | string, optional |  |
| `FirstName` | string |  |
| `HoldUntil` | string (date-time, UTC) |  |
| `InjuryDate` | string (date), optional |  |
| `IsNewPatient` | boolean |  |
| `LastName` | string |  |
| `LocationId` | string (uuid) |  |
| `MobilePhone` | string |  |
| `MobileVerified` | boolean |  |
| `Number` | integer |  |
| `PatientId` | string (uuid), optional |  |
| `ProviderId` | string (uuid) |  |
| `Reason` | string, optional |  |
| `StaffNote` | string, optional |  |
| `StartTime` | string (time) |  |
| `Status` | string |  |
| `VisitFor` | string, optional |  |

## paper_consents

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentId` | string (uuid), optional |  |
| `CaseId` | string (uuid), optional |  |
| `FormId` | string (uuid) |  |
| `PatientId` | string (uuid) |  |
| `RecordedAt` | string (date-time, UTC) |  |
| `RecordedBy` | string, optional |  |
| `SignedOn` | string (date) |  |

## patient_allergies

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Code` | string, optional |  |
| `CodeSystem` | string, optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `EndDate` | string (date), optional |  |
| `Name` | string |  |
| `PatientId` | string (uuid) |  |
| `Reaction` | string, optional |  |
| `Severity` | string, optional |  |
| `Source` | string |  |
| `SourceImportId` | string (uuid), optional |  |
| `SourceOrganization` | string, optional |  |
| `StartDate` | string (date), optional |  |
| `Status` | string |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `UpdatedBy` | string, optional |  |

## patient_amendments

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AmendmentText` | string, optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `DecidedAt` | string (date-time, UTC), optional |  |
| `DecidedBy` | string, optional |  |
| `DenialReason` | string, optional |  |
| `Method` | string |  |
| `PatientId` | string (uuid) |  |
| `PatientStatement` | string, optional |  |
| `ReceivedOn` | string (date) |  |
| `RecordArea` | string |  |
| `RequestedBy` | string |  |
| `RequestedChange` | string |  |
| `StatementReceivedOn` | string (date), optional |  |
| `Status` | string |  |
| `UpdatedAt` | string (date-time, UTC) |  |

## patient_calendar_feeds

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `PatientId` | string (uuid) |  |
| `RevokedAt` | string (date-time, UTC), optional |  |

## patient_cards

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Brand` | string |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `ExpMonth` | integer |  |
| `ExpYear` | integer |  |
| `Last4` | string |  |
| `PatientId` | string (uuid) |  |
| `RemovedAt` | string (date-time, UTC), optional |  |
| `RemovedBy` | string, optional |  |
| `Sandbox` | boolean |  |
| `StripeCustomerId` | string |  |
| `StripePaymentMethodId` | string |  |

## patient_cases

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AdjusterContactId` | string (uuid), optional |  |
| `AttorneyContactId` | string (uuid), optional |  |
| `BillingEntityId` | string (uuid), optional |  |
| `CarrierPayerId` | string (uuid), optional |  |
| `CaseType` | string |  |
| `ClaimNumber` | string, optional |  |
| `ClosedOn` | string (date), optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `DateOfInjury` | string (date), optional |  |
| `EmployerContactId` | string (uuid), optional |  |
| `GuarantorName` | string, optional |  |
| `GuarantorPhone` | string, optional |  |
| `GuarantorRelationship` | string, optional |  |
| `HrContactId` | string (uuid), optional |  |
| `InjuryDescription` | string, optional |  |
| `InjuryState` | string, optional |  |
| `LienSignedOn` | string (date), optional |  |
| `LienStatus` | string, optional |  |
| `LocationId` | string (uuid), optional |  |
| `Nf2FiledOn` | string (date), optional |  |
| `Notes` | string, optional |  |
| `Number` | integer |  |
| `NurseCaseManagerContactId` | string (uuid), optional |  |
| `OpenedOn` | string (date) |  |
| `PatientId` | string (uuid) |  |
| `PolicyNumber` | string, optional |  |
| `PrimaryPolicyId` | string (uuid), optional |  |
| `ReferralSource` | string, optional |  |
| `ReferralSourceId` | string (uuid), optional |  |
| `ReferringContactId` | string (uuid), optional |  |
| `SecondaryPolicyId` | string (uuid), optional |  |
| `Status` | string |  |
| `SupervisorContactId` | string (uuid), optional |  |
| `ThirdPartyAttorneyContactId` | string (uuid), optional |  |
| `TpaContactId` | string (uuid), optional |  |
| `TreatingProviderId` | string (uuid), optional |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `UpdatedBy` | string, optional |  |
| `WcbCaseNumber` | string, optional |  |

## patient_documents

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentId` | string (uuid), optional |  |
| `CaseBodyPartId` | string (uuid), optional |  |
| `CaseId` | string (uuid), optional |  |
| `CategoryId` | string (uuid) |  |
| `ContentType` | string |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `DeletedAt` | string (date-time, UTC), optional |  |
| `DeletedBy` | string, optional |  |
| `DocumentDate` | string (date) |  |
| `Notes` | string, optional |  |
| `OriginalFileName` | string, optional |  |
| `Pages` | integer, optional |  |
| `PatientId` | string (uuid) |  |
| `ProviderId` | string (uuid), optional |  |
| `Sha256` | string |  |
| `Size` | integer |  |
| `Source` | string |  |
| `StorageKey` | string | The file is in files/ (see files/index.json); this is its internal storage key. |
| `Title` | string |  |
| `TypeId` | string (uuid), optional |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `UpdatedBy` | string, optional |  |

## patient_goals

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Achievement` | string, optional |  |
| `Code` | string, optional |  |
| `CodeSystem` | string, optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `Description` | string |  |
| `ExpressedBy` | string, optional |  |
| `PatientId` | string (uuid) |  |
| `StartDate` | string (date), optional |  |
| `Status` | string |  |
| `TargetDate` | string (date), optional |  |
| `UpdatedAt` | string (date-time, UTC) |  |

## patient_health_concerns

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Code` | string, optional |  |
| `CodeSystem` | string, optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `Name` | string |  |
| `Note` | string, optional |  |
| `OnsetDate` | string (date), optional |  |
| `PatientId` | string (uuid) |  |
| `ResolvedDate` | string (date), optional |  |
| `Status` | string |  |
| `UpdatedAt` | string (date-time, UTC) |  |

## patient_immunizations

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `CvxCode` | string |  |
| `ExpiresOn` | string (date), optional |  |
| `LotNumber` | string, optional |  |
| `Manufacturer` | string, optional |  |
| `Ndc` | string, optional |  |
| `Note` | string, optional |  |
| `OccurredOn` | string (date) |  |
| `PatientId` | string (uuid) |  |
| `Performer` | string, optional |  |
| `PrimarySource` | boolean |  |
| `Route` | string, optional |  |
| `Site` | string, optional |  |
| `SiteCode` | string, optional |  |
| `Status` | string |  |
| `StatusReason` | string, optional |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `VaccineName` | string |  |

## patient_implantable_devices

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `BrandName` | string, optional |  |
| `CompanyName` | string, optional |  |
| `ContainsNaturalRubberLatex` | boolean, optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `DeviceDescription` | string, optional |  |
| `DeviceIdentifier` | string |  |
| `DistinctIdentificationCode` | string, optional |  |
| `ExpirationDate` | string (date), optional |  |
| `GmdnPtName` | string, optional |  |
| `GudidFetchedAt` | string (date-time, UTC), optional |  |
| `ImplantDate` | string (date), optional |  |
| `IssuingAgency` | string, optional |  |
| `LotNumber` | string, optional |  |
| `ManufacturingDate` | string (date), optional |  |
| `MriSafety` | string, optional |  |
| `Notes` | string, optional |  |
| `PatientId` | string (uuid) |  |
| `SerialNumber` | string, optional |  |
| `SnomedCode` | string, optional |  |
| `SnomedDescription` | string, optional |  |
| `Status` | string |  |
| `StatusChangedAt` | string (date-time, UTC), optional |  |
| `StatusChangedBy` | string, optional |  |
| `StatusReason` | string, optional |  |
| `Udi` | string |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `VersionModel` | string, optional |  |

## patient_insurance_policies

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `EffectiveFrom` | string (date), optional |  |
| `EffectiveTo` | string (date), optional |  |
| `GroupNumber` | string, optional |  |
| `IsActive` | boolean |  |
| `MemberId` | string |  |
| `PatientId` | string (uuid) |  |
| `PayerName` | string |  |
| `PlanName` | string, optional |  |
| `PracticePayerId` | string (uuid) |  |
| `RelationshipToSubscriber` | string |  |
| `SubscriberDateOfBirth` | string (date), optional |  |
| `SubscriberFirstName` | string, optional |  |
| `SubscriberLastName` | string, optional |  |
| `SubscriberSex` | string, optional |  |
| `UpdatedAt` | string (date-time, UTC) |  |

## patient_medications

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Code` | string, optional |  |
| `CodeSystem` | string, optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `Directions` | string, optional |  |
| `EndDate` | string (date), optional |  |
| `Name` | string |  |
| `PatientId` | string (uuid) |  |
| `Source` | string |  |
| `SourceImportId` | string (uuid), optional |  |
| `SourceOrganization` | string, optional |  |
| `StartDate` | string (date), optional |  |
| `Status` | string |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `UpdatedBy` | string, optional |  |

## patient_messages

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentId` | string (uuid), optional |  |
| `Body` | string |  |
| `Channel` | string |  |
| `PatientId` | string (uuid) |  |
| `SentAt` | string (date-time, UTC) |  |
| `SentBy` | string, optional |  |
| `SentTo` | string |  |
| `Status` | string |  |
| `Subject` | string, optional |  |
| `TemplateId` | string (uuid), optional |  |

## patient_notes

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentId` | string (uuid), optional |  |
| `Body` | string |  |
| `CaseId` | string (uuid) |  |
| `Category` | string |  |
| `ClaimId` | string (uuid), optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `DeletedAt` | string (date-time, UTC), optional |  |
| `DeletedBy` | string, optional |  |
| `EditedAt` | string (date-time, UTC), optional |  |
| `IsPinned` | boolean |  |
| `ParentId` | string (uuid), optional |  |
| `PatientId` | string (uuid) |  |

## patient_observations

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentId` | string (uuid), optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `EffectiveAt` | string (date-time, UTC) |  |
| `Kind` | string |  |
| `NoteId` | string (uuid), optional |  |
| `O2Concentration` | number, optional |  |
| `O2Flow` | number, optional |  |
| `PatientId` | string (uuid) |  |
| `Status` | string |  |
| `Unit` | string, optional |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `Value` | number, optional |  |
| `Value2` | number, optional |  |
| `ValueCode` | string, optional |  |
| `ValueText` | string, optional |  |

## patient_payment_requests

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Amount` | number |  |
| `AppointmentId` | string (uuid), optional |  |
| `CardBrand` | string, optional |  |
| `CardLast4` | string, optional |  |
| `CaseId` | string (uuid), optional |  |
| `Channel` | string |  |
| `ClaimIds` | string |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `ExpiresAt` | string (date-time, UTC) |  |
| `InboxRequestId` | string (uuid), optional |  |
| `Note` | string, optional |  |
| `PaidAt` | string (date-time, UTC), optional |  |
| `PatientId` | string (uuid) |  |
| `PaymentId` | string (uuid), optional |  |
| `Purpose` | string |  |
| `Status` | string |  |
| `StripePaymentIntentId` | string, optional |  |
| `StripeSessionId` | string, optional |  |

## patient_problems

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Code` | string, optional |  |
| `CodeSystem` | string, optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `EndDate` | string (date), optional |  |
| `Name` | string |  |
| `PatientId` | string (uuid) |  |
| `Source` | string |  |
| `SourceImportId` | string (uuid), optional |  |
| `SourceOrganization` | string, optional |  |
| `StartDate` | string (date), optional |  |
| `Status` | string |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `UpdatedBy` | string, optional |  |

## patient_statements

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AmountDue` | number |  |
| `CaseId` | string (uuid), optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `DocumentId` | string (uuid), optional |  |
| `DueDate` | string (date) |  |
| `Message` | string, optional |  |
| `Number` | integer |  |
| `PatientId` | string (uuid) |  |
| `SentVia` | string |  |
| `StatementDate` | string (date) |  |

## patient_sticky_note_versions

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `At` | string (date-time, UTC) |  |
| `By` | string, optional |  |
| `PatientId` | string (uuid) |  |
| `Text` | string |  |

## patient_sticky_notes

| Column | Type | Notes |
| --- | --- | --- |
| `PatientId` | string (uuid) |  |
| `Text` | string |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `UpdatedBy` | string, optional |  |

## payments

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Amount` | number |  |
| `Applied` | number |  |
| `AttachmentDocumentId` | string (uuid), optional |  |
| `BillingEntityId` | string (uuid), optional |  |
| `CaseId` | string (uuid), optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `DepositDate` | string (date), optional |  |
| `DepositReference` | string |  |
| `EdiFileId` | string (uuid), optional |  |
| `IssueDate` | string (date), optional |  |
| `Method` | string |  |
| `Note` | string, optional |  |
| `Number` | integer |  |
| `PatientId` | string (uuid), optional |  |
| `PayerId` | string (uuid), optional |  |
| `PayerKind` | string |  |
| `PayerName` | string |  |
| `PaymentType` | string |  |
| `PostedDate` | string (date) |  |
| `ProviderAdjustment` | number |  |
| `ReceivedDate` | string (date) |  |
| `Reference` | string |  |
| `ReviewNote` | string, optional |  |
| `ReviewReason` | string, optional |  |
| `ReviewedAt` | string (date-time, UTC), optional |  |
| `ReviewedBy` | string, optional |  |
| `Status` | string |  |
| `SubType` | string |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `UpdatedBy` | string, optional |  |

## pdmp_checks

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `CheckedAt` | string (date-time, UTC) |  |
| `CheckedBy` | string, optional |  |
| `PatientId` | string (uuid) |  |
| `ProviderId` | string (uuid) |  |
| `ReportUrl` | string, optional |  |
| `Status` | string |  |
| `Summary` | string |  |

## portal_accounts

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `FailedSignIns` | integer |  |
| `FirstSignInAt` | string (date-time, UTC), optional |  |
| `InviteExpiresAt` | string (date-time, UTC), optional |  |
| `InvitedAt` | string (date-time, UTC), optional |  |
| `InvitedBy` | string, optional |  |
| `InvitedVia` | string, optional |  |
| `LastSeenAt` | string (date-time, UTC), optional |  |
| `LastSignInAt` | string (date-time, UTC), optional |  |
| `LockedUntil` | string (date-time, UTC), optional |  |
| `PatientId` | string (uuid) |  |
| `Status` | string |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `UpdatedBy` | string, optional |  |

## portal_changes

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Data` | string |  |
| `DocumentIds` | string |  |
| `Kind` | string |  |
| `PatientId` | string (uuid) |  |
| `ReviewNote` | string, optional |  |
| `ReviewedAt` | string (date-time, UTC), optional |  |
| `ReviewedBy` | string, optional |  |
| `Status` | string |  |
| `SubmittedAt` | string (date-time, UTC) |  |

## portal_outcome_requests

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Instrument` | string |  |
| `OutcomeId` | string (uuid), optional |  |
| `PatientId` | string (uuid) |  |
| `RequestedAt` | string (date-time, UTC) |  |
| `RequestedBy` | string, optional |  |

## portal_outcomes

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Answers` | string |  |
| `CompletedAt` | string (date-time, UTC) |  |
| `Instrument` | string |  |
| `PatientId` | string (uuid) |  |
| `ProxyId` | string (uuid), optional |  |
| `Score` | number |  |

## portal_pain_entries

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `BodyPart` | string, optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `Date` | string (date) |  |
| `Note` | string, optional |  |
| `Pain` | integer |  |
| `PatientId` | string (uuid) |  |

## portal_proxies

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `Email` | string, optional |  |
| `FailedSignIns` | integer |  |
| `LastSignInAt` | string (date-time, UTC), optional |  |
| `LockedUntil` | string (date-time, UTC), optional |  |
| `Mobile` | string, optional |  |
| `Name` | string |  |
| `PatientId` | string (uuid) |  |
| `Relationship` | string |  |
| `Status` | string |  |

## portal_record_activities

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Action` | string |  |
| `ActorName` | string |  |
| `Format` | string, optional |  |
| `OccurredAt` | string (date-time, UTC) |  |
| `PatientId` | string (uuid) |  |
| `ProxyId` | string (uuid), optional |  |
| `RangeFrom` | string (date), optional |  |
| `RangeTo` | string (date), optional |  |
| `Recipient` | string, optional |  |

## portal_refill_requests

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `Medication` | string |  |
| `Note` | string, optional |  |
| `PatientId` | string (uuid) |  |
| `Pharmacy` | string, optional |  |
| `PrescriptionId` | string (uuid), optional |  |
| `Status` | string |  |
| `TaskId` | string (uuid), optional |  |

## portal_threads

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AssignedToUserId` | string, optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `LastMessageAt` | string (date-time, UTC) |  |
| `PatientId` | string (uuid) |  |
| `Status` | string |  |
| `Subject` | string |  |
| `UnreadByPatient` | boolean |  |
| `UnreadByStaff` | boolean |  |

## prescriptions

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `CaseId` | string (uuid), optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `DaysSupply` | integer, optional |  |
| `DiagnosisCodes` | string |  |
| `DispenseAsWritten` | boolean |  |
| `DrugName` | string |  |
| `FilledAt` | string (date-time, UTC), optional |  |
| `Form` | string, optional |  |
| `NoteId` | string (uuid), optional |  |
| `NoteToPharmacy` | string, optional |  |
| `PatientId` | string (uuid) |  |
| `PharmacyId` | string, optional |  |
| `PharmacyName` | string, optional |  |
| `PharmacyPhone` | string, optional |  |
| `ProviderId` | string (uuid) |  |
| `Quantity` | number |  |
| `QuantityUnit` | string |  |
| `Refills` | integer |  |
| `RenewsId` | string (uuid), optional |  |
| `Route` | string, optional |  |
| `Schedule` | string, optional |  |
| `SentAt` | string (date-time, UTC), optional |  |
| `Sig` | string |  |
| `Status` | string |  |
| `StatusMessage` | string, optional |  |
| `Strength` | string, optional |  |
| `TaskId` | string (uuid), optional |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `UpdatedBy` | string, optional |  |
| `VendorRxId` | string, optional |  |
| `WrittenOn` | string (date) |  |

## quality_data_elements

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentId` | string (uuid), optional |  |
| `Code` | string |  |
| `CodeSystem` | string |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `Display` | string |  |
| `ElementKey` | string |  |
| `NotDone` | boolean |  |
| `Note` | string, optional |  |
| `PatientId` | string (uuid) |  |
| `PerformedAt` | string (date-time, UTC) |  |
| `QdmType` | string |  |
| `ReasonCode` | string, optional |  |
| `ReasonDisplay` | string, optional |  |
| `RelatedToId` | string (uuid), optional |  |
| `ResultCode` | string, optional |  |
| `ResultCodeSystem` | string, optional |  |
| `ResultDisplay` | string, optional |  |
| `ResultValue` | number, optional |  |
| `ResultValue2` | number, optional |  |
| `Status` | string |  |
| `UpdatedAt` | string (date-time, UTC) |  |

## stored_files

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Content` | string (base64) |  |
| `ContentType` | string |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `FileName` | string |  |
| `IntakeRequestId` | string (uuid), optional |  |
| `Kind` | string |  |
| `PatientId` | string (uuid), optional |  |
| `Size` | integer |  |

## surgeries

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AdmissionType` | string, optional |  |
| `AnesthesiaType` | string, optional |  |
| `ArrivalTime` | string (time), optional |  |
| `AssistantName` | string, optional |  |
| `AssistantProviderId` | string (uuid), optional |  |
| `BodyPartIds` | string |  |
| `CaseId` | string (uuid) |  |
| `Clinical` | string |  |
| `ConsultDate` | string (date), optional |  |
| `CoordinatorUserId` | string, optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `Decision` | string |  |
| `Dme` | string |  |
| `DurationMinutes` | integer, optional |  |
| `Equipment` | string |  |
| `FacilityConfirmation` | string, optional |  |
| `FacilityId` | string (uuid), optional |  |
| `FacilityReason` | string, optional |  |
| `FacilityReasonNote` | string, optional |  |
| `FacilityUpdateNote` | string, optional |  |
| `Funding` | string |  |
| `GlobalDays` | integer |  |
| `Implants` | string |  |
| `NeedsFacilityUpdate` | boolean |  |
| `Notes` | string, optional |  |
| `Number` | integer |  |
| `OpReportDocumentId` | string (uuid), optional |  |
| `OriginNoteId` | string (uuid), optional |  |
| `PacketSentOn` | string (date), optional |  |
| `PatientId` | string (uuid) |  |
| `PerformedOn` | string (date), optional |  |
| `PickupAddress` | string, optional |  |
| `Priority` | string |  |
| `PriorityFactors` | string |  |
| `PriorityLevel` | string, optional |  |
| `Procedures` | string |  |
| `ReadyOverride` | string, optional |  |
| `ReasonId` | string (uuid), optional |  |
| `ReasonText` | string, optional |  |
| `RecommendedOn` | string (date) |  |
| `RequestedDate1` | string (date), optional |  |
| `RequestedDate2` | string (date), optional |  |
| `RequestedTime1` | string (time), optional |  |
| `RequestedTime2` | string (time), optional |  |
| `RescheduleCount` | integer |  |
| `Room` | string, optional |  |
| `StageChangedAt` | string (date-time, UTC) |  |
| `StageId` | string (uuid) |  |
| `StageKind` | string |  |
| `SurgeonProviderId` | string (uuid), optional |  |
| `SurgeryDate` | string (date), optional |  |
| `SurgeryTime` | string (time), optional |  |
| `TemplateId` | string (uuid), optional |  |
| `TransportNeeded` | boolean |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `UpdatedBy` | string, optional |  |

## tasks

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentId` | string (uuid), optional |  |
| `AssignedRole` | string, optional |  |
| `CaseId` | string (uuid), optional |  |
| `CategoryId` | string (uuid) |  |
| `ClosedAt` | string (date-time, UTC), optional |  |
| `ClosedBy` | string, optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `Description` | string, optional |  |
| `DueDate` | string (date), optional |  |
| `NoteId` | string (uuid), optional |  |
| `Number` | integer |  |
| `PatientId` | string (uuid), optional |  |
| `Priority` | string |  |
| `RemindAt` | string (date-time, UTC), optional |  |
| `RuleId` | string (uuid), optional |  |
| `Source` | string |  |
| `SourceEventId` | string (uuid), optional |  |
| `StatusId` | string (uuid) |  |
| `StatusKind` | string |  |
| `Title` | string |  |
| `UpdatedAt` | string (date-time, UTC) |  |

## verification_work

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentDate` | string (date) |  |
| `AppointmentId` | string (uuid) |  |
| `AssignedToUserId` | string, optional |  |
| `CaseId` | string (uuid) |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `PatientId` | string (uuid) |  |
| `Reason` | string, optional |  |
| `StaffWaiting` | boolean |  |
| `Status` | string |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `VerificationId` | string (uuid), optional |  |
| `WaitingNote` | string, optional |  |

## visit_notes

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentId` | string (uuid) |  |
| `BodyParts` | string |  |
| `CarriedFromNoteId` | string (uuid), optional |  |
| `CaseId` | string (uuid) |  |
| `ConfigurationId` | string (uuid) |  |
| `ConfigurationVersion` | integer |  |
| `CosignedAt` | string (date-time, UTC), optional |  |
| `CosignedBy` | string, optional |  |
| `CosignedByName` | string, optional |  |
| `CosignerProviderId` | string (uuid), optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `DateOfService` | string (date) |  |
| `Document` | string, optional |  |
| `DocumentId` | string (uuid), optional |  |
| `FromIntake` | string |  |
| `FromScribe` | string |  |
| `Mode` | string |  |
| `PatientId` | string (uuid) |  |
| `PendingReview` | string |  |
| `ProviderId` | string (uuid) |  |
| `ReturnedReason` | string, optional |  |
| `SignedAt` | string (date-time, UTC), optional |  |
| `SignedBy` | string, optional |  |
| `SignedByName` | string, optional |  |
| `Status` | string |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `UpdatedBy` | string, optional |  |
| `Values` | string |  |

## visit_orders

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentId` | string (uuid) |  |
| `AuthRequirement` | string, optional |  |
| `AuthorizationId` | string (uuid), optional |  |
| `BodyParts` | string |  |
| `CaseId` | string (uuid) |  |
| `Codes` | string |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `Details` | string, optional |  |
| `DueOn` | string (date), optional |  |
| `Kind` | string |  |
| `Label` | string |  |
| `LetterId` | string (uuid), optional |  |
| `NoteId` | string (uuid) |  |
| `Ordered` | integer |  |
| `PatientId` | string (uuid) |  |
| `ProviderId` | string (uuid) |  |
| `Service` | string |  |
| `SortOrder` | integer |  |
| `TaskId` | string (uuid), optional |  |

## visit_plan_links

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentId` | string (uuid) |  |
| `CodeExpiresAt` | string (date-time, UTC), optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `ExpiresAt` | string (date-time, UTC) |  |
| `FailedTries` | integer |  |
| `LockedUntil` | string (date-time, UTC), optional |  |
| `PatientId` | string (uuid) |  |
| `SessionExpiresAt` | string (date-time, UTC), optional |  |

## waitlist_entries

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentId` | string (uuid), optional |  |
| `AppointmentTypeId` | string (uuid) |  |
| `CaseId` | string (uuid), optional |  |
| `ClosedAt` | string (date-time, UTC), optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `Days` | integer |  |
| `EarliestDate` | string (date) |  |
| `LatestDate` | string (date), optional |  |
| `LocationId` | string (uuid), optional |  |
| `Notes` | string, optional |  |
| `PatientId` | string (uuid) |  |
| `Priority` | integer |  |
| `ProviderId` | string (uuid), optional |  |
| `Status` | string |  |
| `TimeOfDay` | string |  |

## app_expirable_versions

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `ExpirableId` | string (uuid) |  |
| `ExpiresOn` | string (date), optional |  |
| `FileId` | string (uuid), optional |  |
| `IssuedOn` | string (date), optional |  |
| `Note` | string, optional |  |
| `ReviewedAt` | string (date-time, UTC), optional |  |
| `ReviewedBy` | string, optional |  |
| `Status` | string |  |
| `UploadedAt` | string (date-time, UTC) |  |
| `UploadedBy` | string, optional |  |
| `Version` | integer |  |

## appointment_message_sends

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentId` | string (uuid) |  |
| `At` | string (date-time, UTC) |  |
| `Key` | string |  |
| `Result` | string |  |
| `RuleId` | string (uuid) |  |

## appointment_status_events

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentId` | string (uuid) |  |
| `At` | string (date-time, UTC) |  |
| `Note` | string, optional |  |
| `Status` | string |  |
| `UserId` | string, optional |  |

## authorization_events

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `At` | string (date-time, UTC) |  |
| `AuthorizationId` | string (uuid) |  |
| `FromStatus` | string, optional |  |
| `Kind` | string |  |
| `Text` | string, optional |  |
| `ToStatus` | string, optional |  |
| `UserId` | string, optional |  |

## bank_transactions

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Amount` | number |  |
| `AutoMatched` | boolean |  |
| `BankAccount` | string, optional |  |
| `Date` | string (date) |  |
| `Description` | string |  |
| `ImportId` | string (uuid) |  |
| `ImportedAt` | string (date-time, UTC) |  |
| `ImportedBy` | string, optional |  |
| `MatchedAt` | string (date-time, UTC), optional |  |
| `MatchedBy` | string, optional |  |
| `MatchedId` | string (uuid), optional |  |
| `MatchedKind` | string, optional |  |
| `Reference` | string, optional |  |
| `Status` | string |  |

## case_body_parts

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `BodyPart` | string |  |
| `CaseId` | string (uuid) |  |
| `Laterality` | string |  |
| `SortOrder` | integer |  |
| `Status` | string |  |
| `StatusNote` | string, optional |  |
| `StatusUpdatedAt` | string (date-time, UTC), optional |  |
| `StatusUpdatedBy` | string, optional |  |

## case_diagnoses

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `CaseBodyPartId` | string (uuid), optional |  |
| `CaseId` | string (uuid) |  |
| `Code` | string |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `Description` | string |  |
| `DiagnosedOn` | string (date), optional |  |
| `NoteId` | string (uuid), optional |  |
| `ProviderId` | string (uuid), optional |  |
| `Sequence` | integer |  |
| `Status` | string |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `UpdatedBy` | string, optional |  |

## chat_attachments

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `ContentType` | string |  |
| `ConversationId` | string (uuid) |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `FileName` | string |  |
| `MessageId` | string (uuid) |  |
| `Size` | integer |  |
| `StorageKey` | string | The file is in files/ (see files/index.json); this is its internal storage key. |

## chat_message_edits

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `EditedAt` | string (date-time, UTC) |  |
| `MessageId` | string (uuid) |  |
| `PreviousBody` | string |  |

## claim_events

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `At` | string (date-time, UTC) |  |
| `ClaimId` | string (uuid) |  |
| `Kind` | string |  |
| `Text` | string |  |
| `UserId` | string, optional |  |

## claim_lines

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `BodyPart` | string, optional |  |
| `Charge` | number |  |
| `ClaimId` | string (uuid) |  |
| `Code` | string |  |
| `Description` | string |  |
| `Modifiers` | string |  |
| `Ndc` | string, optional |  |
| `NdcQuantity` | number, optional |  |
| `NdcUnit` | string, optional |  |
| `Pointers` | string |  |
| `RenderingProviderId` | string (uuid), optional |  |
| `RevenueCode` | string, optional |  |
| `Sequence` | integer |  |
| `Source` | string |  |
| `UnitFee` | number |  |
| `Units` | integer |  |

## claim_remittances

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Allowed` | number |  |
| `Billed` | number |  |
| `CheckDate` | string (date), optional |  |
| `CheckNumber` | string |  |
| `ClaimId` | string (uuid), optional |  |
| `ClaimIndex` | integer |  |
| `Contractual` | number |  |
| `EdiFileId` | string (uuid) |  |
| `Paid` | number |  |
| `PatientControlNumber` | string |  |
| `PatientResponsibility` | number |  |
| `PayerClaimNumber` | string, optional |  |
| `PayerName` | string |  |
| `PaymentId` | string (uuid), optional |  |
| `PaymentMethod` | string |  |
| `ReceivedAt` | string (date-time, UTC) |  |
| `StatusCode` | string |  |

## cred_verifications

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `CheckedAt` | string (date-time, UTC) |  |
| `CheckedBy` | string, optional |  |
| `Detail` | string, optional |  |
| `ExpirableId` | string (uuid), optional |  |
| `FileId` | string (uuid), optional |  |
| `Result` | string |  |
| `Source` | string |  |
| `SubjectId` | string (uuid) |  |
| `SubjectKind` | string |  |
| `SubjectName` | string |  |
| `Url` | string, optional |  |

## doc_processing_pages

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `BatchId` | string (uuid) |  |
| `FileId` | string (uuid) |  |
| `FilePage` | integer |  |
| `Ocr` | boolean |  |
| `PageNo` | integer |  |
| `Text` | string |  |

## edi_files

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `ClaimId` | string (uuid), optional |  |
| `ClaimTrace` | string, optional |  |
| `ConnectionId` | string (uuid) |  |
| `Content` | string |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `Direction` | string |  |
| `EraDueDate` | string (date), optional |  |
| `EraPostingReason` | string, optional |  |
| `EraPostingState` | string, optional |  |
| `EraTransferKey` | string, optional |  |
| `Error` | string, optional |  |
| `ExchangeMode` | string, optional |  |
| `FileName` | string |  |
| `GroupControlNumber` | integer, optional |  |
| `Institutional` | boolean |  |
| `InterchangeControlNumber` | integer, optional |  |
| `ProcessedAt` | string (date-time, UTC), optional |  |
| `RelatedEraId` | string (uuid), optional |  |
| `ResponseKey` | string, optional |  |
| `RouteFingerprint` | string, optional |  |
| `Status` | string |  |
| `TransactionSet` | string |  |

## hr_checklist_items

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AssigneeUserId` | string, optional |  |
| `ChecklistId` | string (uuid) |  |
| `DoneAt` | string (date-time, UTC), optional |  |
| `DoneBy` | string, optional |  |
| `DueOn` | string (date), optional |  |
| `Owner` | string |  |
| `PolicyId` | string (uuid), optional |  |
| `SortOrder` | integer |  |
| `TaskId` | string (uuid), optional |  |
| `Title` | string |  |

## hr_documents

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Category` | string |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `EmployeeId` | string (uuid) |  |
| `FileId` | string (uuid) |  |
| `Title` | string |  |

## hr_policy_assignments

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AccruedThrough` | string (date), optional |  |
| `CarryoverYear` | integer, optional |  |
| `EmployeeId` | string (uuid) |  |
| `PolicyId` | string (uuid) |  |
| `StartsOn` | string (date) |  |

## hr_policy_versions

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `FileId` | string (uuid) |  |
| `PolicyId` | string (uuid) |  |
| `PublishedAt` | string (date-time, UTC) |  |
| `PublishedBy` | string, optional |  |
| `Summary` | string, optional |  |
| `Version` | integer |  |

## hr_time_off_entries

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `Date` | string (date) |  |
| `EmployeeId` | string (uuid) |  |
| `Hours` | number |  |
| `Kind` | string |  |
| `Note` | string, optional |  |
| `PolicyId` | string (uuid) |  |
| `RequestId` | string (uuid), optional |  |

## hr_time_off_requests

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `ApproverUserId` | string, optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `DecidedAt` | string (date-time, UTC), optional |  |
| `DecidedBy` | string, optional |  |
| `DecisionNote` | string, optional |  |
| `EmployeeId` | string (uuid) |  |
| `EndDate` | string (date) |  |
| `Hours` | number |  |
| `Note` | string, optional |  |
| `PolicyId` | string (uuid) |  |
| `ProviderTimeOffId` | string (uuid), optional |  |
| `StartDate` | string (date) |  |
| `Status` | string |  |
| `TaskId` | string (uuid), optional |  |

## inbox_attachments

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `ContentType` | string |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `DocumentId` | string (uuid), optional |  |
| `FileName` | string |  |
| `MessageId` | string (uuid) |  |
| `Outgoing` | boolean |  |
| `RequestId` | string (uuid) |  |
| `Size` | integer |  |
| `StorageKey` | string | The file is in files/ (see files/index.json); this is its internal storage key. |

## inbox_messages

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `BodyText` | string |  |
| `Cc` | string, optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `Direction` | string |  |
| `FromEmail` | string |  |
| `FromName` | string |  |
| `InReplyTo` | string, optional |  |
| `InternetMessageId` | string, optional |  |
| `Kind` | string |  |
| `MailboxId` | string (uuid), optional |  |
| `ProviderMessageId` | string, optional |  |
| `RawStorageKey` | string, optional | The file is in files/ (see files/index.json); this is its internal storage key. |
| `References` | string, optional |  |
| `RequestId` | string (uuid) |  |
| `SentAt` | string (date-time, UTC) |  |
| `ShareId` | string (uuid), optional |  |
| `Status` | string |  |
| `StatusMessage` | string, optional |  |
| `Subject` | string |  |
| `To` | string |  |

## intake_responses

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Answers` | string |  |
| `Completed` | boolean |  |
| `CompletedAt` | string (date-time, UTC), optional |  |
| `Conditions` | string, optional |  |
| `FormId` | string (uuid) |  |
| `Language` | string, optional |  |
| `RequestId` | string (uuid) |  |
| `SignedAt` | string (date-time, UTC), optional |  |
| `SignedIp` | string, optional |  |
| `SignedName` | string, optional |  |
| `SignedUserAgent` | string, optional |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `VersionId` | string (uuid) |  |

## liability_activity

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Actor` | string |  |
| `ActorName` | string, optional |  |
| `At` | string (date-time, UTC) |  |
| `CaseId` | string (uuid) |  |
| `Detail` | string |  |
| `StatementId` | string (uuid), optional |  |
| `Type` | string |  |

## payment_applications

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Allowed` | number |  |
| `Billed` | number |  |
| `ClaimId` | string (uuid) |  |
| `ClaimLineId` | string (uuid), optional |  |
| `ClaimRemittanceId` | string (uuid), optional |  |
| `Coinsurance` | number |  |
| `Contractual` | number |  |
| `Copay` | number |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `Deductible` | number |  |
| `Interest` | number |  |
| `Note` | string, optional |  |
| `OtherPatientResponsibility` | number |  |
| `OverrideReason` | string, optional |  |
| `Paid` | number |  |
| `PaymentId` | string (uuid) |  |
| `PostingType` | string |  |
| `ReasonCodes` | string |  |
| `RemarkCodes` | string |  |
| `ReversalOf` | string (uuid), optional |  |
| `Reversed` | boolean |  |
| `Source` | string |  |
| `WriteOff` | number |  |

## payment_attachments

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `FileName` | string |  |
| `Pages` | integer, optional |  |
| `PatientDocumentId` | string (uuid), optional |  |
| `PaymentId` | string (uuid) |  |
| `Size` | integer |  |
| `StorageKey` | string | The file is in files/ (see files/index.json); this is its internal storage key. |

## portal_deep_links

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AccountId` | string (uuid) |  |
| `Channel` | string |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `ExpiresAt` | string (date-time, UTC) |  |
| `Kind` | string |  |
| `LastOpenedAt` | string (date-time, UTC), optional |  |
| `ProxyId` | string (uuid), optional |  |
| `RefId` | string (uuid), optional |  |
| `Target` | string, optional |  |

## portal_messages

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Body` | string |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `FileIds` | string |  |
| `FromPatient` | boolean |  |
| `ProxyId` | string (uuid), optional |  |
| `ThreadId` | string (uuid) |  |
| `UserId` | string, optional |  |

## schedule_blocks

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `Date` | string (date) |  |
| `EndTime` | string (time) |  |
| `LocationId` | string (uuid), optional |  |
| `ProviderId` | string (uuid) |  |
| `Reason` | string, optional |  |
| `SeriesId` | string (uuid), optional |  |
| `StartTime` | string (time) |  |

## surgery_checklist_items

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `CompletedAt` | string (date-time, UTC), optional |  |
| `CompletedBy` | string, optional |  |
| `DaysBefore` | integer, optional |  |
| `DocumentId` | string (uuid), optional |  |
| `DueDate` | string (date), optional |  |
| `Hint` | string, optional |  |
| `Label` | string |  |
| `Note` | string, optional |  |
| `OwnerRole` | string, optional |  |
| `OwnerUserId` | string, optional |  |
| `Required` | boolean |  |
| `SectionId` | string (uuid), optional |  |
| `SortOrder` | integer |  |
| `Status` | string |  |
| `SurgeryId` | string (uuid) |  |
| `TriggeredBy` | string, optional |  |

## surgery_events

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `At` | string (date-time, UTC) |  |
| `FromStageId` | string (uuid), optional |  |
| `Kind` | string |  |
| `SurgeryId` | string (uuid) |  |
| `Text` | string, optional |  |
| `ToStageId` | string (uuid), optional |  |
| `UserId` | string, optional |  |

## telehealth_rooms

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AppointmentId` | string (uuid) |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `EndedAt` | string (date-time, UTC), optional |  |
| `MeetingId` | string, optional |  |
| `MeetingJson` | string, optional |  |
| `PatientAdmittedAt` | string (date-time, UTC), optional |  |
| `PatientWaitingSince` | string (date-time, UTC), optional |  |
| `StartedBy` | string, optional |  |
| `Status` | string |  |

## visit_note_addenda

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `CreatedByName` | string |  |
| `NoteId` | string (uuid) |  |
| `Text` | string |  |

## visit_scribe_sessions

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Applied` | string |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `CreatedBy` | string, optional |  |
| `DraftStartedAt` | string (date-time, UTC), optional |  |
| `DraftedAt` | string (date-time, UTC), optional |  |
| `DurationSeconds` | integer |  |
| `Error` | string, optional |  |
| `NoteId` | string (uuid) |  |
| `NoteText` | string, optional |  |
| `Proposed` | string |  |
| `Sections` | string |  |
| `Status` | string |  |
| `Suggestions` | string |  |
| `TemplateId` | string (uuid), optional |  |
| `TemplateName` | string |  |
| `Transcript` | string |  |
| `UpdatedAt` | string (date-time, UTC) |  |
| `Vendor` | string |  |

## hr_policy_acks

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `At` | string (date-time, UTC) |  |
| `EmployeeId` | string (uuid) |  |
| `Ip` | string, optional |  |
| `PolicyVersionId` | string (uuid) |  |
| `SignedName` | string |  |
| `UserId` | string, optional |  |

## hr_request_comments

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `Body` | string |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `Internal` | boolean |  |
| `RequestId` | string (uuid) |  |
| `UserId` | string, optional |  |

## portal_sign_ins

| Column | Type | Notes |
| --- | --- | --- |
| `Id` | string (uuid) |  |
| `AccountIds` | string |  |
| `Attempts` | integer |  |
| `Channel` | string |  |
| `CodeSentAt` | string (date-time, UTC), optional |  |
| `CreatedAt` | string (date-time, UTC) |  |
| `DeepLinkId` | string (uuid), optional |  |
| `ExpiresAt` | string (date-time, UTC) |  |
| `ProxyIds` | string, optional |  |
| `Verified` | boolean |  |

## audit_events

| Column | Type | Notes |
| --- | --- | --- |
| `At` | string (date-time, UTC) |  |
| `UserId` | string, optional | The staff user (or null for the patient or a system task). |
| `Action` | string | What happened, for example patient.viewed or portal.health_record_downloaded. |
| `Detail` | string, optional | Identifiers only; never health information. |

> **Note:** Format version 1.0. Questions: [support@somahealth.com](mailto:support@somahealth.com).

---
Last updated 2026-12-04 · Soma Health FHIR API
