{
    "format_version": "1.0",
    "generated_at": "2026-11-29T23:29:11-05:00",
    "timezone": "America/New_York",
    "tables": [
        {
            "table": "patients",
            "description": "The patient: identity, demographics (name, date of birth, sex, race, ethnicity, preferred language, pronouns), contact details, address, smoking status, pregnancy status, intake/discharge dates and status.",
            "linked_to_patient_by": "patients.id",
            "files": [
                "tables/patients.json",
                "tables/patients.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Name.",
                    "exported": true
                },
                {
                    "name": "prefix",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Prefix.",
                    "exported": true
                },
                {
                    "name": "first_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "First name.",
                    "exported": true
                },
                {
                    "name": "middle_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Middle name.",
                    "exported": true
                },
                {
                    "name": "last_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Last name.",
                    "exported": true
                },
                {
                    "name": "suffix",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Suffix.",
                    "exported": true
                },
                {
                    "name": "preferred_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Preferred name.",
                    "exported": true
                },
                {
                    "name": "email",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Email.",
                    "exported": true
                },
                {
                    "name": "password",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Password.",
                    "exported": false,
                    "withheld_reason": "Authentication credential; not electronic health information."
                },
                {
                    "name": "otp_code",
                    "type": "varchar(6)",
                    "nullable": true,
                    "description": "Otp code.",
                    "exported": false,
                    "withheld_reason": "Authentication credential; not electronic health information."
                },
                {
                    "name": "otp_expires_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: otp expires.",
                    "exported": true
                },
                {
                    "name": "otp_method",
                    "type": "enum('email','sms')",
                    "nullable": false,
                    "description": "Otp method.",
                    "exported": true
                },
                {
                    "name": "two_factor_enabled",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Two factor enabled.",
                    "exported": true
                },
                {
                    "name": "last_otp_sent_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: last otp sent.",
                    "exported": true
                },
                {
                    "name": "email_verified_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: email verified.",
                    "exported": true
                },
                {
                    "name": "remember_token",
                    "type": "varchar(100)",
                    "nullable": true,
                    "description": "Remember token.",
                    "exported": false,
                    "withheld_reason": "Authentication credential; not electronic health information."
                },
                {
                    "name": "phone",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Phone.",
                    "exported": true
                },
                {
                    "name": "home_phone",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Home phone.",
                    "exported": true
                },
                {
                    "name": "mobile_phone",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Mobile phone.",
                    "exported": true
                },
                {
                    "name": "work_phone",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Work phone.",
                    "exported": true
                },
                {
                    "name": "other_phone",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Other phone.",
                    "exported": true
                },
                {
                    "name": "dob",
                    "type": "date",
                    "nullable": true,
                    "description": "Dob.",
                    "exported": true
                },
                {
                    "name": "deceased_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: deceased.",
                    "exported": true
                },
                {
                    "name": "address",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Address.",
                    "exported": true
                },
                {
                    "name": "address2",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Address2.",
                    "exported": true
                },
                {
                    "name": "gender",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Gender.",
                    "exported": true
                },
                {
                    "name": "pregnant",
                    "type": "tinyint(1)",
                    "nullable": true,
                    "description": "Pregnant.",
                    "exported": true
                },
                {
                    "name": "pregnancy_intent",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Pregnancy intent.",
                    "exported": true
                },
                {
                    "name": "breastfeeding",
                    "type": "tinyint(1)",
                    "nullable": true,
                    "description": "Breastfeeding.",
                    "exported": true
                },
                {
                    "name": "smoking_status",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Smoking status.",
                    "exported": true
                },
                {
                    "name": "smoking_status_modified_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: smoking status modified.",
                    "exported": true
                },
                {
                    "name": "pronouns",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Pronouns.",
                    "exported": true
                },
                {
                    "name": "weight",
                    "type": "decimal(6,2)",
                    "nullable": true,
                    "description": "Weight.",
                    "exported": true
                },
                {
                    "name": "weight_unit",
                    "type": "varchar(10)",
                    "nullable": true,
                    "description": "Weight unit.",
                    "exported": true
                },
                {
                    "name": "height",
                    "type": "decimal(6,2)",
                    "nullable": true,
                    "description": "Height.",
                    "exported": true
                },
                {
                    "name": "height_unit",
                    "type": "varchar(10)",
                    "nullable": true,
                    "description": "Height unit.",
                    "exported": true
                },
                {
                    "name": "emergency_contact",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Emergency contact.",
                    "exported": true
                },
                {
                    "name": "internal_record_id",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Identifier of the related internal record record.",
                    "exported": true
                },
                {
                    "name": "drfirst_rcopia_id",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Identifier of the related drfirst rcopia record.",
                    "exported": true
                },
                {
                    "name": "drfirst_sync_status",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Drfirst sync status.",
                    "exported": true
                },
                {
                    "name": "drfirst_synced_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: drfirst synced.",
                    "exported": true
                },
                {
                    "name": "drfirst_last_error",
                    "type": "text",
                    "nullable": true,
                    "description": "Drfirst last error.",
                    "exported": true
                },
                {
                    "name": "anonymous",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Anonymous.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "tinyint",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "patient_secret",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Patient secret.",
                    "exported": false,
                    "withheld_reason": "Authentication credential; not electronic health information."
                },
                {
                    "name": "secret_key_generated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: secret key generated.",
                    "exported": false,
                    "withheld_reason": "Authentication credential; not electronic health information."
                },
                {
                    "name": "race",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Race.",
                    "exported": true
                },
                {
                    "name": "ethnicity",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Ethnicity.",
                    "exported": true
                },
                {
                    "name": "preferred_language",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Preferred language.",
                    "exported": true
                },
                {
                    "name": "patient_consent_to_notify",
                    "type": "tinyint(1)",
                    "nullable": true,
                    "description": "Patient consent to notify.",
                    "exported": true
                },
                {
                    "name": "marital_status",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Marital status.",
                    "exported": true
                },
                {
                    "name": "housing_status",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Housing status.",
                    "exported": true
                },
                {
                    "name": "employment_status",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Employment status.",
                    "exported": true
                },
                {
                    "name": "risk_level",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Risk level.",
                    "exported": true
                },
                {
                    "name": "referral_source",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Referral source.",
                    "exported": true
                },
                {
                    "name": "referral_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: referral.",
                    "exported": true
                },
                {
                    "name": "admission_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: admission.",
                    "exported": true
                },
                {
                    "name": "discharge_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: discharge.",
                    "exported": true
                },
                {
                    "name": "client_status",
                    "type": "enum('active','inactive')",
                    "nullable": false,
                    "description": "Client status.",
                    "exported": true
                },
                {
                    "name": "client_status_legacy",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Client status legacy.",
                    "exported": true
                },
                {
                    "name": "city",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "City.",
                    "exported": true
                },
                {
                    "name": "state",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "State.",
                    "exported": true
                },
                {
                    "name": "zip_code",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Zip code.",
                    "exported": true
                },
                {
                    "name": "ssn_last4",
                    "type": "text",
                    "nullable": true,
                    "description": "Ssn last4.",
                    "exported": true
                },
                {
                    "name": "photo_path",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Photo path.",
                    "exported": true,
                    "file_reference": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "default_signature",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Default signature.",
                    "exported": true
                },
                {
                    "name": "default_signature_updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: default signature updated.",
                    "exported": true
                },
                {
                    "name": "life_goal",
                    "type": "text",
                    "nullable": true,
                    "description": "Life goal.",
                    "exported": true
                },
                {
                    "name": "race_codes",
                    "type": "json",
                    "nullable": true,
                    "description": "Race codes.",
                    "exported": true
                },
                {
                    "name": "race_declined",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Race declined.",
                    "exported": true
                },
                {
                    "name": "ethnicity_codes",
                    "type": "json",
                    "nullable": true,
                    "description": "Ethnicity codes.",
                    "exported": true
                },
                {
                    "name": "ethnicity_declined",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Ethnicity declined.",
                    "exported": true
                },
                {
                    "name": "preferred_language_code",
                    "type": "varchar(35)",
                    "nullable": true,
                    "description": "Preferred language code.",
                    "exported": true
                },
                {
                    "name": "preferred_language_declined",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Preferred language declined.",
                    "exported": true
                },
                {
                    "name": "sex_code",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Sex code.",
                    "exported": true
                },
                {
                    "name": "sexual_orientation_code",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Sexual orientation code.",
                    "exported": true
                },
                {
                    "name": "sexual_orientation_other",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Sexual orientation other.",
                    "exported": true
                },
                {
                    "name": "gender_identity_code",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Gender identity code.",
                    "exported": true
                },
                {
                    "name": "gender_identity_other",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Gender identity other.",
                    "exported": true
                },
                {
                    "name": "sex_parameter_clinical_use",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Sex parameter clinical use.",
                    "exported": true
                },
                {
                    "name": "pronouns_code",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Pronouns code.",
                    "exported": true
                },
                {
                    "name": "cause_of_death",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Cause of death.",
                    "exported": true
                }
            ]
        },
        {
            "table": "adverse_events",
            "description": "Adverse events and side effects.",
            "linked_to_patient_by": "adverse_events.patient_id = patients.id",
            "files": [
                "tables/adverse_events.json",
                "tables/adverse_events.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "suspected_medication",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Suspected medication.",
                    "exported": true
                },
                {
                    "name": "event",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Event.",
                    "exported": true
                },
                {
                    "name": "event_type",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Event type.",
                    "exported": true
                },
                {
                    "name": "onset_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: onset.",
                    "exported": true
                },
                {
                    "name": "severity",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Severity.",
                    "exported": true
                },
                {
                    "name": "serious",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Serious.",
                    "exported": true
                },
                {
                    "name": "intervention",
                    "type": "text",
                    "nullable": true,
                    "description": "Intervention.",
                    "exported": true
                },
                {
                    "name": "medication_changed",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Medication changed.",
                    "exported": true
                },
                {
                    "name": "prescriber_notified",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Prescriber notified.",
                    "exported": true
                },
                {
                    "name": "emergency_care",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Emergency care.",
                    "exported": true
                },
                {
                    "name": "outcome",
                    "type": "text",
                    "nullable": true,
                    "description": "Outcome.",
                    "exported": true
                },
                {
                    "name": "resolution",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Resolution.",
                    "exported": true
                },
                {
                    "name": "reporter",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Reporter.",
                    "exported": true
                },
                {
                    "name": "externally_reported",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Externally reported.",
                    "exported": true
                },
                {
                    "name": "external_report_id",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Identifier of the related external report record.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "source",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Source.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "assigned_users",
            "description": "Staff assignments for the patient.",
            "linked_to_patient_by": "assigned_users.patient_id = patients.id",
            "files": [
                "tables/assigned_users.json",
                "tables/assigned_users.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "user_id",
                    "type": "bigint",
                    "nullable": false,
                    "description": "Identifier of the related user record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint",
                    "nullable": true,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Patient name.",
                    "exported": true
                },
                {
                    "name": "assessment_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related assessment record.",
                    "exported": true
                },
                {
                    "name": "previous_assessment_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related previous assessment record.",
                    "exported": true
                },
                {
                    "name": "answers",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Answers.",
                    "exported": true
                },
                {
                    "name": "score",
                    "type": "int",
                    "nullable": true,
                    "description": "Total score if assessment has scoring",
                    "exported": true
                },
                {
                    "name": "selected_format_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Selected assessment format for clinical notes",
                    "exported": true
                },
                {
                    "name": "note_profession",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Note profession.",
                    "exported": true
                },
                {
                    "name": "note_format",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Note format.",
                    "exported": true
                },
                {
                    "name": "cpt_code_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related cpt code record.",
                    "exported": true
                },
                {
                    "name": "cpt_code",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Cpt code.",
                    "exported": true
                },
                {
                    "name": "diagnosis",
                    "type": "text",
                    "nullable": true,
                    "description": "Diagnosis.",
                    "exported": true
                },
                {
                    "name": "ai_diagnostic_impression",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Ai diagnostic impression.",
                    "exported": true
                },
                {
                    "name": "clinical_notes",
                    "type": "longtext",
                    "nullable": true,
                    "description": "AI-generated clinical notes",
                    "exported": true
                },
                {
                    "name": "note_edited_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: note edited.",
                    "exported": true
                },
                {
                    "name": "note_edited_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Note edited by.",
                    "exported": true
                },
                {
                    "name": "ai_summary",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Ai summary.",
                    "exported": true
                },
                {
                    "name": "treatment_recommendations",
                    "type": "json",
                    "nullable": true,
                    "description": "Treatment recommendations.",
                    "exported": true
                },
                {
                    "name": "domain_scores",
                    "type": "json",
                    "nullable": true,
                    "description": "Domain scores.",
                    "exported": true
                },
                {
                    "name": "scoring_interpretation",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Scoring interpretation.",
                    "exported": true
                },
                {
                    "name": "completed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "When the assessment was completed",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "tracker_active",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Tracker active.",
                    "exported": true
                },
                {
                    "name": "finalized_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: finalized.",
                    "exported": true
                },
                {
                    "name": "assessment_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date when the assessment was taken",
                    "exported": true
                },
                {
                    "name": "location",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Location.",
                    "exported": true
                },
                {
                    "name": "location_details",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Location details.",
                    "exported": true
                },
                {
                    "name": "assessment_submitted_type",
                    "type": "enum('manual','voice')",
                    "nullable": false,
                    "description": "Type of submission: manual (form) or voice (audio)",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "guest_token",
                    "type": "varchar(64)",
                    "nullable": true,
                    "description": "Guest token.",
                    "exported": false,
                    "withheld_reason": "Authentication credential; not electronic health information."
                },
                {
                    "name": "guest_token_expires_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: guest token expires.",
                    "exported": false,
                    "withheld_reason": "Authentication credential; not electronic health information."
                },
                {
                    "name": "client_signature",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Client signature.",
                    "exported": true
                },
                {
                    "name": "client_signed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: client signed.",
                    "exported": true
                },
                {
                    "name": "client_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Client name.",
                    "exported": true
                },
                {
                    "name": "provider_signature",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Provider signature.",
                    "exported": true
                },
                {
                    "name": "provider_signed_at",
                    "type": "datetime",
                    "nullable": true,
                    "description": "Date/time: provider signed.",
                    "exported": true
                },
                {
                    "name": "supervisor_signature",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Supervisor signature.",
                    "exported": true
                },
                {
                    "name": "supervisor_signed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: supervisor signed.",
                    "exported": true
                },
                {
                    "name": "supervisor_signed_by",
                    "type": "bigint",
                    "nullable": true,
                    "description": "Supervisor signed by.",
                    "exported": true
                }
            ]
        },
        {
            "table": "billing_readiness_reviews",
            "description": "Billing documentation reviews of services.",
            "linked_to_patient_by": "billing_readiness_reviews.patient_id = patients.id",
            "files": [
                "tables/billing_readiness_reviews.json",
                "tables/billing_readiness_reviews.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "organization_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related organization record.",
                    "exported": true
                },
                {
                    "name": "encounter_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related encounter record.",
                    "exported": true
                },
                {
                    "name": "note_version_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related note version record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "provider_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related provider record.",
                    "exported": true
                },
                {
                    "name": "payer_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related payer record.",
                    "exported": true
                },
                {
                    "name": "service_code",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Service code.",
                    "exported": true
                },
                {
                    "name": "ruleset_version",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Ruleset version.",
                    "exported": true
                },
                {
                    "name": "ai_model_version",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Ai model version.",
                    "exported": true
                },
                {
                    "name": "ai_prompt_version",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Ai prompt version.",
                    "exported": true
                },
                {
                    "name": "schema_version",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Schema version.",
                    "exported": true
                },
                {
                    "name": "documentation_score",
                    "type": "tinyint unsigned",
                    "nullable": false,
                    "description": "Documentation score.",
                    "exported": true
                },
                {
                    "name": "billing_readiness_status",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Billing readiness status.",
                    "exported": true
                },
                {
                    "name": "billing_hold",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Billing hold.",
                    "exported": true
                },
                {
                    "name": "must_fix_count",
                    "type": "int unsigned",
                    "nullable": false,
                    "description": "Must fix count.",
                    "exported": true
                },
                {
                    "name": "review_count",
                    "type": "int unsigned",
                    "nullable": false,
                    "description": "Review count.",
                    "exported": true
                },
                {
                    "name": "suggestion_count",
                    "type": "int unsigned",
                    "nullable": false,
                    "description": "Suggestion count.",
                    "exported": true
                },
                {
                    "name": "passed_count",
                    "type": "int unsigned",
                    "nullable": false,
                    "description": "Passed count.",
                    "exported": true
                },
                {
                    "name": "deterministic_started_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: deterministic started.",
                    "exported": true
                },
                {
                    "name": "deterministic_completed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: deterministic completed.",
                    "exported": true
                },
                {
                    "name": "ai_started_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: ai started.",
                    "exported": true
                },
                {
                    "name": "ai_completed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: ai completed.",
                    "exported": true
                },
                {
                    "name": "review_execution_status",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Review execution status.",
                    "exported": true
                },
                {
                    "name": "resolved_ruleset_json",
                    "type": "json",
                    "nullable": true,
                    "description": "Resolved ruleset json.",
                    "exported": true
                },
                {
                    "name": "execution_message",
                    "type": "text",
                    "nullable": true,
                    "description": "Execution message.",
                    "exported": true
                },
                {
                    "name": "completed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: completed.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "ccda_imports",
            "description": "C-CDA documents received from outside providers, with their original content.",
            "linked_to_patient_by": "ccda_imports.patient_id = patients.id",
            "files": [
                "tables/ccda_imports.json",
                "tables/ccda_imports.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "filename",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Filename.",
                    "exported": true
                },
                {
                    "name": "raw_xml",
                    "type": "longtext",
                    "nullable": false,
                    "description": "Raw xml.",
                    "exported": true
                },
                {
                    "name": "parsed_json",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Parsed json.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "validation_errors",
                    "type": "text",
                    "nullable": true,
                    "description": "Validation errors.",
                    "exported": true
                },
                {
                    "name": "imported_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Imported by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "claims",
            "description": "Billing claims submitted for services to the patient.",
            "linked_to_patient_by": "claims.patient_id = patients.id",
            "files": [
                "tables/claims.json",
                "tables/claims.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "insurance_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related insurance record.",
                    "exported": true
                },
                {
                    "name": "claim_number",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Claim number.",
                    "exported": true
                },
                {
                    "name": "payer_name",
                    "type": "varchar(150)",
                    "nullable": false,
                    "description": "Payer name.",
                    "exported": true
                },
                {
                    "name": "payer_id",
                    "type": "varchar(32)",
                    "nullable": true,
                    "description": "Identifier of the related payer record.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "enum('draft','submitted','pending','paid','denied','partially_paid','voided')",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "service_date_from",
                    "type": "date",
                    "nullable": false,
                    "description": "Service date from.",
                    "exported": true
                },
                {
                    "name": "service_date_to",
                    "type": "date",
                    "nullable": false,
                    "description": "Service date to.",
                    "exported": true
                },
                {
                    "name": "submission_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: submission.",
                    "exported": true
                },
                {
                    "name": "paid_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: paid.",
                    "exported": true
                },
                {
                    "name": "total_billed",
                    "type": "decimal(10,2)",
                    "nullable": false,
                    "description": "Total billed.",
                    "exported": true
                },
                {
                    "name": "total_paid",
                    "type": "decimal(10,2)",
                    "nullable": false,
                    "description": "Total paid.",
                    "exported": true
                },
                {
                    "name": "total_adjustment",
                    "type": "decimal(10,2)",
                    "nullable": false,
                    "description": "Total adjustment.",
                    "exported": true
                },
                {
                    "name": "patient_responsibility",
                    "type": "decimal(10,2)",
                    "nullable": false,
                    "description": "Patient responsibility.",
                    "exported": true
                },
                {
                    "name": "total_refunded",
                    "type": "decimal(10,2)",
                    "nullable": false,
                    "description": "Total refunded.",
                    "exported": true
                },
                {
                    "name": "balance",
                    "type": "decimal(10,2)",
                    "nullable": false,
                    "description": "Balance.",
                    "exported": true
                },
                {
                    "name": "is_secondary",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Flag (1 = yes, 0 = no): is secondary.",
                    "exported": true
                },
                {
                    "name": "primary_claim_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related primary claim record.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "diagnosis_codes",
                    "type": "json",
                    "nullable": true,
                    "description": "Diagnosis codes.",
                    "exported": true
                },
                {
                    "name": "place_of_service",
                    "type": "char(2)",
                    "nullable": true,
                    "description": "Place of service.",
                    "exported": true
                },
                {
                    "name": "prior_auth_number",
                    "type": "varchar(64)",
                    "nullable": true,
                    "description": "Prior auth number.",
                    "exported": true
                },
                {
                    "name": "rendering_staff_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related rendering staff record.",
                    "exported": true
                },
                {
                    "name": "frequency_code",
                    "type": "char(1)",
                    "nullable": false,
                    "description": "Frequency code.",
                    "exported": true
                },
                {
                    "name": "payer_icn",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Payer icn.",
                    "exported": true
                },
                {
                    "name": "clearinghouse",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Clearinghouse.",
                    "exported": true
                },
                {
                    "name": "clearinghouse_status",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Clearinghouse status.",
                    "exported": true
                },
                {
                    "name": "clearinghouse_message",
                    "type": "text",
                    "nullable": true,
                    "description": "Clearinghouse message.",
                    "exported": true
                },
                {
                    "name": "clearinghouse_status_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: clearinghouse status.",
                    "exported": true
                },
                {
                    "name": "claimmd_id",
                    "type": "varchar(32)",
                    "nullable": true,
                    "description": "Identifier of the related claimmd record.",
                    "exported": true
                },
                {
                    "name": "last_submission_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related last submission record.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "automation_run_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related automation run record.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "clinic_documents",
            "description": "Records of clinic documents linked to the patient.",
            "linked_to_patient_by": "clinic_documents.patient_id = patients.id",
            "files": [
                "tables/clinic_documents.json",
                "tables/clinic_documents.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "document_type",
                    "type": "varchar(80)",
                    "nullable": false,
                    "description": "Document type.",
                    "exported": true
                },
                {
                    "name": "title",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Title.",
                    "exported": true
                },
                {
                    "name": "data",
                    "type": "json",
                    "nullable": false,
                    "description": "Data.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "submitted_at",
                    "type": "datetime",
                    "nullable": true,
                    "description": "Date/time: submitted.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "clinical_alerts",
            "description": "Clinical alerts raised for the patient.",
            "linked_to_patient_by": "clinical_alerts.patient_id = patients.id",
            "files": [
                "tables/clinical_alerts.json",
                "tables/clinical_alerts.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "alert_type",
                    "type": "varchar(60)",
                    "nullable": false,
                    "description": "Alert type.",
                    "exported": true
                },
                {
                    "name": "severity",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Severity.",
                    "exported": true
                },
                {
                    "name": "source_type",
                    "type": "varchar(80)",
                    "nullable": true,
                    "description": "Source type.",
                    "exported": true
                },
                {
                    "name": "source_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related source record.",
                    "exported": true
                },
                {
                    "name": "title",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Title.",
                    "exported": true
                },
                {
                    "name": "message",
                    "type": "text",
                    "nullable": true,
                    "description": "Message.",
                    "exported": true
                },
                {
                    "name": "assigned_to_type",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Assigned to type.",
                    "exported": true
                },
                {
                    "name": "assigned_to_id",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Identifier of the related assigned to record.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "due_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: due.",
                    "exported": true
                },
                {
                    "name": "reminder_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: reminder.",
                    "exported": true
                },
                {
                    "name": "escalation_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: escalation.",
                    "exported": true
                },
                {
                    "name": "escalated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: escalated.",
                    "exported": true
                },
                {
                    "name": "acknowledged_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Acknowledged by.",
                    "exported": true
                },
                {
                    "name": "acknowledged_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: acknowledged.",
                    "exported": true
                },
                {
                    "name": "action_taken",
                    "type": "text",
                    "nullable": true,
                    "description": "Action taken.",
                    "exported": true
                },
                {
                    "name": "patient_contacted",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Patient contacted.",
                    "exported": true
                },
                {
                    "name": "provider_contacted",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Provider contacted.",
                    "exported": true
                },
                {
                    "name": "follow_up",
                    "type": "text",
                    "nullable": true,
                    "description": "Follow up.",
                    "exported": true
                },
                {
                    "name": "resolved_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Resolved by.",
                    "exported": true
                },
                {
                    "name": "resolved_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: resolved.",
                    "exported": true
                },
                {
                    "name": "closure_reason",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Closure reason.",
                    "exported": true
                },
                {
                    "name": "override_reason",
                    "type": "text",
                    "nullable": true,
                    "description": "Override reason.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "clinical_summaries",
            "description": "Clinical summaries generated for the patient.",
            "linked_to_patient_by": "clinical_summaries.patient_id = patients.id",
            "files": [
                "tables/clinical_summaries.json",
                "tables/clinical_summaries.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "patient_program_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related patient program record.",
                    "exported": true
                },
                {
                    "name": "generated_by",
                    "type": "bigint",
                    "nullable": true,
                    "description": "Generated by.",
                    "exported": true
                },
                {
                    "name": "summary_type",
                    "type": "varchar(191)",
                    "nullable": false,
                    "description": "Summary type.",
                    "exported": true
                },
                {
                    "name": "entry_method",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Entry method.",
                    "exported": true
                },
                {
                    "name": "cpt_code_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related cpt code record.",
                    "exported": true
                },
                {
                    "name": "period_start",
                    "type": "date",
                    "nullable": false,
                    "description": "Period start.",
                    "exported": true
                },
                {
                    "name": "period_end",
                    "type": "date",
                    "nullable": false,
                    "description": "Period end.",
                    "exported": true
                },
                {
                    "name": "period_type",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Period type.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "enum('pending','processing','completed','failed')",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "review_status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Review status.",
                    "exported": true
                },
                {
                    "name": "revision",
                    "type": "int unsigned",
                    "nullable": false,
                    "description": "Revision.",
                    "exported": true
                },
                {
                    "name": "source_record_ids",
                    "type": "json",
                    "nullable": true,
                    "description": "Source record ids.",
                    "exported": true
                },
                {
                    "name": "ai_summary_content",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Ai summary content.",
                    "exported": true
                },
                {
                    "name": "raw_summary_text",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Raw summary text.",
                    "exported": true
                },
                {
                    "name": "error_message",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Error message.",
                    "exported": true
                },
                {
                    "name": "completed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: completed.",
                    "exported": true
                },
                {
                    "name": "reviewed_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Reviewed by.",
                    "exported": true
                },
                {
                    "name": "reviewed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: reviewed.",
                    "exported": true
                },
                {
                    "name": "reviewer_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Reviewer name.",
                    "exported": true
                },
                {
                    "name": "attestation_notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Attestation notes.",
                    "exported": true
                },
                {
                    "name": "signature_data",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Signature data.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                },
                {
                    "name": "selected_record_ids",
                    "type": "json",
                    "nullable": true,
                    "description": "Selected record ids.",
                    "exported": true
                },
                {
                    "name": "submitted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: submitted.",
                    "exported": true
                },
                {
                    "name": "submitted_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Submitted by.",
                    "exported": true
                },
                {
                    "name": "returned_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: returned.",
                    "exported": true
                },
                {
                    "name": "returned_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Returned by.",
                    "exported": true
                },
                {
                    "name": "return_reason",
                    "type": "text",
                    "nullable": true,
                    "description": "Return reason.",
                    "exported": true
                },
                {
                    "name": "approved_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: approved.",
                    "exported": true
                },
                {
                    "name": "approved_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Approved by.",
                    "exported": true
                },
                {
                    "name": "finalized_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: finalized.",
                    "exported": true
                },
                {
                    "name": "finalized_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Finalized by.",
                    "exported": true
                }
            ]
        },
        {
            "table": "consent_form_submissions",
            "description": "Signed consent forms. Signature images under attachments/consent_form_submissions/.",
            "linked_to_patient_by": "consent_form_submissions.patient_id = patients.id",
            "files": [
                "tables/consent_form_submissions.json",
                "tables/consent_form_submissions.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "consent_form_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related consent form record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "grouped_signature_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related grouped signature record.",
                    "exported": true
                },
                {
                    "name": "user_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related user record.",
                    "exported": true
                },
                {
                    "name": "user_type",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "User type.",
                    "exported": true
                },
                {
                    "name": "client_name",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Client name.",
                    "exported": true
                },
                {
                    "name": "client_date_of_birth",
                    "type": "date",
                    "nullable": true,
                    "description": "Client date of birth.",
                    "exported": true
                },
                {
                    "name": "client_email",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Client email.",
                    "exported": true
                },
                {
                    "name": "client_phone",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Client phone.",
                    "exported": true
                },
                {
                    "name": "client_address",
                    "type": "text",
                    "nullable": true,
                    "description": "Client address.",
                    "exported": true
                },
                {
                    "name": "guardian_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Guardian name.",
                    "exported": true
                },
                {
                    "name": "guardian_relationship",
                    "type": "varchar(100)",
                    "nullable": true,
                    "description": "Guardian relationship.",
                    "exported": true
                },
                {
                    "name": "client_signature_path",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Client signature path.",
                    "exported": true,
                    "file_reference": true
                },
                {
                    "name": "guardian_signature_path",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Guardian signature path.",
                    "exported": true,
                    "file_reference": true
                },
                {
                    "name": "provider_signature_path",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Provider signature path.",
                    "exported": true,
                    "file_reference": true
                },
                {
                    "name": "provider_signed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: provider signed.",
                    "exported": true
                },
                {
                    "name": "provider_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Provider name.",
                    "exported": true
                },
                {
                    "name": "signed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: signed.",
                    "exported": true
                },
                {
                    "name": "expires_at",
                    "type": "date",
                    "nullable": true,
                    "description": "Date/time: expires.",
                    "exported": true
                },
                {
                    "name": "revoked_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: revoked.",
                    "exported": true
                },
                {
                    "name": "revoked_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Revoked by.",
                    "exported": true
                },
                {
                    "name": "revocation_reason",
                    "type": "text",
                    "nullable": true,
                    "description": "Revocation reason.",
                    "exported": true
                },
                {
                    "name": "ip_address",
                    "type": "varchar(45)",
                    "nullable": true,
                    "description": "Ip address.",
                    "exported": true
                },
                {
                    "name": "user_agent",
                    "type": "text",
                    "nullable": true,
                    "description": "User agent.",
                    "exported": true
                },
                {
                    "name": "additional_data",
                    "type": "json",
                    "nullable": true,
                    "description": "Additional data.",
                    "exported": true
                },
                {
                    "name": "form_field_values",
                    "type": "json",
                    "nullable": true,
                    "description": "Form field values.",
                    "exported": true
                },
                {
                    "name": "rendered_form_content",
                    "type": "mediumtext",
                    "nullable": true,
                    "description": "Rendered form content.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "guest_token",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Guest token.",
                    "exported": false,
                    "withheld_reason": "Authentication credential; not electronic health information."
                },
                {
                    "name": "guest_token_expires_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: guest token expires.",
                    "exported": false,
                    "withheld_reason": "Authentication credential; not electronic health information."
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "drfirst_notifications",
            "description": "Records of drfirst notifications linked to the patient.",
            "linked_to_patient_by": "drfirst_notifications.patient_id = patients.id",
            "files": [
                "tables/drfirst_notifications.json",
                "tables/drfirst_notifications.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "drfirst_rcopia_id",
                    "type": "varchar(40)",
                    "nullable": false,
                    "description": "Identifier of the related drfirst rcopia record.",
                    "exported": true
                },
                {
                    "name": "type",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Type.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "response_code",
                    "type": "varchar(10)",
                    "nullable": true,
                    "description": "Response code.",
                    "exported": true
                },
                {
                    "name": "response_note",
                    "type": "varchar(100)",
                    "nullable": true,
                    "description": "Response note.",
                    "exported": true
                },
                {
                    "name": "prescriber_order_number",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Prescriber order number.",
                    "exported": true
                },
                {
                    "name": "rx_reference_number",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Rx reference number.",
                    "exported": true
                },
                {
                    "name": "follow_up_number",
                    "type": "varchar(5)",
                    "nullable": true,
                    "description": "Follow up number.",
                    "exported": true
                },
                {
                    "name": "original_request_date",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date: original request.",
                    "exported": true
                },
                {
                    "name": "current_request_date",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date: current request.",
                    "exported": true
                },
                {
                    "name": "provider_rcopia_id",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Identifier of the related provider rcopia record.",
                    "exported": true
                },
                {
                    "name": "provider_username",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Provider username.",
                    "exported": true
                },
                {
                    "name": "provider_npi",
                    "type": "varchar(35)",
                    "nullable": true,
                    "description": "Provider npi.",
                    "exported": true
                },
                {
                    "name": "provider_name",
                    "type": "varchar(120)",
                    "nullable": true,
                    "description": "Provider name.",
                    "exported": true
                },
                {
                    "name": "forwarded_to_name",
                    "type": "varchar(120)",
                    "nullable": true,
                    "description": "Forwarded to name.",
                    "exported": true
                },
                {
                    "name": "pharmacy_name",
                    "type": "varchar(120)",
                    "nullable": true,
                    "description": "Pharmacy name.",
                    "exported": true
                },
                {
                    "name": "pharmacy_ncpdp_id",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Identifier of the related pharmacy ncpdp record.",
                    "exported": true
                },
                {
                    "name": "pharmacy_phone",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Pharmacy phone.",
                    "exported": true
                },
                {
                    "name": "pharmacy_fax",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Pharmacy fax.",
                    "exported": true
                },
                {
                    "name": "pharmacy_address",
                    "type": "text",
                    "nullable": true,
                    "description": "Pharmacy address.",
                    "exported": true
                },
                {
                    "name": "drug_description",
                    "type": "varchar(260)",
                    "nullable": true,
                    "description": "Drug description.",
                    "exported": true
                },
                {
                    "name": "drug_ndc_id",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Identifier of the related drug ndc record.",
                    "exported": true
                },
                {
                    "name": "drug_rxnorm_id",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Identifier of the related drug rxnorm record.",
                    "exported": true
                },
                {
                    "name": "drug_schedule",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Drug schedule.",
                    "exported": true
                },
                {
                    "name": "sig_text",
                    "type": "text",
                    "nullable": true,
                    "description": "Sig text.",
                    "exported": true
                },
                {
                    "name": "quantity",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Quantity.",
                    "exported": true
                },
                {
                    "name": "quantity_unit",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Quantity unit.",
                    "exported": true
                },
                {
                    "name": "refills",
                    "type": "varchar(10)",
                    "nullable": true,
                    "description": "Refills.",
                    "exported": true
                },
                {
                    "name": "substitution_permitted",
                    "type": "tinyint(1)",
                    "nullable": true,
                    "description": "Substitution permitted.",
                    "exported": true
                },
                {
                    "name": "written_date",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date: written.",
                    "exported": true
                },
                {
                    "name": "last_fill_date",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date: last fill.",
                    "exported": true
                },
                {
                    "name": "sender",
                    "type": "varchar(120)",
                    "nullable": true,
                    "description": "Sender.",
                    "exported": true
                },
                {
                    "name": "title",
                    "type": "varchar(120)",
                    "nullable": true,
                    "description": "Title.",
                    "exported": true
                },
                {
                    "name": "body_text",
                    "type": "text",
                    "nullable": true,
                    "description": "Body text.",
                    "exported": true
                },
                {
                    "name": "action_taken",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Action taken.",
                    "exported": true
                },
                {
                    "name": "final_action_date",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date: final action.",
                    "exported": true
                },
                {
                    "name": "payload",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Payload.",
                    "exported": true
                },
                {
                    "name": "downloaded_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: downloaded.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "drfirst_prescriptions",
            "description": "Prescriptions written through the integrated e-prescribing service.",
            "linked_to_patient_by": "drfirst_prescriptions.patient_id = patients.id",
            "files": [
                "tables/drfirst_prescriptions.json",
                "tables/drfirst_prescriptions.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "drfirst_rcopia_id",
                    "type": "varchar(40)",
                    "nullable": false,
                    "description": "Identifier of the related drfirst rcopia record.",
                    "exported": true
                },
                {
                    "name": "external_id",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Identifier of the related external record.",
                    "exported": true
                },
                {
                    "name": "prescriber_order_number",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Prescriber order number.",
                    "exported": true
                },
                {
                    "name": "rx_reference_number",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Rx reference number.",
                    "exported": true
                },
                {
                    "name": "from_notification_id",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Identifier of the related from notification record.",
                    "exported": true
                },
                {
                    "name": "voided",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Voided.",
                    "exported": true
                },
                {
                    "name": "denied",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Denied.",
                    "exported": true
                },
                {
                    "name": "needs_review",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Needs review.",
                    "exported": true
                },
                {
                    "name": "is_discharge_prescription",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Flag (1 = yes, 0 = no): is discharge prescription.",
                    "exported": true
                },
                {
                    "name": "cancel_reason",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Cancel reason.",
                    "exported": true
                },
                {
                    "name": "provider_rcopia_id",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Identifier of the related provider rcopia record.",
                    "exported": true
                },
                {
                    "name": "provider_username",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Provider username.",
                    "exported": true
                },
                {
                    "name": "provider_npi",
                    "type": "varchar(35)",
                    "nullable": true,
                    "description": "Provider npi.",
                    "exported": true
                },
                {
                    "name": "provider_dea",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Provider dea.",
                    "exported": true
                },
                {
                    "name": "provider_name",
                    "type": "varchar(120)",
                    "nullable": true,
                    "description": "Provider name.",
                    "exported": true
                },
                {
                    "name": "verifier_name",
                    "type": "varchar(120)",
                    "nullable": true,
                    "description": "Verifier name.",
                    "exported": true
                },
                {
                    "name": "preparer_name",
                    "type": "varchar(120)",
                    "nullable": true,
                    "description": "Preparer name.",
                    "exported": true
                },
                {
                    "name": "supervisor_name",
                    "type": "varchar(120)",
                    "nullable": true,
                    "description": "Supervisor name.",
                    "exported": true
                },
                {
                    "name": "prescriber_agent_name",
                    "type": "varchar(120)",
                    "nullable": true,
                    "description": "Prescriber agent name.",
                    "exported": true
                },
                {
                    "name": "pharmacy_name",
                    "type": "varchar(120)",
                    "nullable": true,
                    "description": "Pharmacy name.",
                    "exported": true
                },
                {
                    "name": "pharmacy_ncpdp_id",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Identifier of the related pharmacy ncpdp record.",
                    "exported": true
                },
                {
                    "name": "pharmacy_phone",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Pharmacy phone.",
                    "exported": true
                },
                {
                    "name": "pharmacy_fax",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Pharmacy fax.",
                    "exported": true
                },
                {
                    "name": "pharmacy_address",
                    "type": "text",
                    "nullable": true,
                    "description": "Pharmacy address.",
                    "exported": true
                },
                {
                    "name": "drug_description",
                    "type": "varchar(260)",
                    "nullable": true,
                    "description": "Drug description.",
                    "exported": true
                },
                {
                    "name": "brand_name",
                    "type": "varchar(130)",
                    "nullable": true,
                    "description": "Brand name.",
                    "exported": true
                },
                {
                    "name": "generic_name",
                    "type": "varchar(130)",
                    "nullable": true,
                    "description": "Generic name.",
                    "exported": true
                },
                {
                    "name": "drug_ndc_id",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Identifier of the related drug ndc record.",
                    "exported": true
                },
                {
                    "name": "drug_rxnorm_id",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Identifier of the related drug rxnorm record.",
                    "exported": true
                },
                {
                    "name": "drug_schedule",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Drug schedule.",
                    "exported": true
                },
                {
                    "name": "drug_form",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Drug form.",
                    "exported": true
                },
                {
                    "name": "drug_strength",
                    "type": "varchar(110)",
                    "nullable": true,
                    "description": "Drug strength.",
                    "exported": true
                },
                {
                    "name": "dosage_text",
                    "type": "text",
                    "nullable": true,
                    "description": "Dosage text.",
                    "exported": true
                },
                {
                    "name": "patient_notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Patient notes.",
                    "exported": true
                },
                {
                    "name": "other_notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Other notes.",
                    "exported": true
                },
                {
                    "name": "quantity",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Quantity.",
                    "exported": true
                },
                {
                    "name": "quantity_unit",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Quantity unit.",
                    "exported": true
                },
                {
                    "name": "refills",
                    "type": "varchar(10)",
                    "nullable": true,
                    "description": "Refills.",
                    "exported": true
                },
                {
                    "name": "duration_days",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Duration days.",
                    "exported": true
                },
                {
                    "name": "substitution_permitted",
                    "type": "tinyint(1)",
                    "nullable": true,
                    "description": "Substitution permitted.",
                    "exported": true
                },
                {
                    "name": "created_date",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date: created.",
                    "exported": true
                },
                {
                    "name": "signed_date",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date: signed.",
                    "exported": true
                },
                {
                    "name": "completed_date",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date: completed.",
                    "exported": true
                },
                {
                    "name": "stop_date",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date: stop.",
                    "exported": true
                },
                {
                    "name": "last_modified_by",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Last modified by.",
                    "exported": true
                },
                {
                    "name": "last_modified_date",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date: last modified.",
                    "exported": true
                },
                {
                    "name": "completion_action",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Completion action.",
                    "exported": true
                },
                {
                    "name": "send_method",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Send method.",
                    "exported": true
                },
                {
                    "name": "event_status",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Event status.",
                    "exported": true
                },
                {
                    "name": "event_error",
                    "type": "text",
                    "nullable": true,
                    "description": "Event error.",
                    "exported": true
                },
                {
                    "name": "archive_date",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date: archive.",
                    "exported": true
                },
                {
                    "name": "send_date",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date: send.",
                    "exported": true
                },
                {
                    "name": "needs_signing_username",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Needs signing username.",
                    "exported": true
                },
                {
                    "name": "needs_signing_npi",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Needs signing npi.",
                    "exported": true
                },
                {
                    "name": "last_event_code",
                    "type": "varchar(10)",
                    "nullable": true,
                    "description": "Last event code.",
                    "exported": true
                },
                {
                    "name": "last_event_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: last event.",
                    "exported": true
                },
                {
                    "name": "events_terminal",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Events terminal.",
                    "exported": true
                },
                {
                    "name": "events_polled_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: events polled.",
                    "exported": true
                },
                {
                    "name": "cancel_requested_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: cancel requested.",
                    "exported": true
                },
                {
                    "name": "cancel_requested_by",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Cancel requested by.",
                    "exported": true
                },
                {
                    "name": "cancel_status",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Cancel status.",
                    "exported": true
                },
                {
                    "name": "cancel_send_method",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Cancel send method.",
                    "exported": true
                },
                {
                    "name": "cancel_backup_fax_date",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date: cancel backup fax.",
                    "exported": true
                },
                {
                    "name": "cancel_response_status",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Cancel response status.",
                    "exported": true
                },
                {
                    "name": "cancel_response_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: cancel response.",
                    "exported": true
                },
                {
                    "name": "cancel_response_notes",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Cancel response notes.",
                    "exported": true
                },
                {
                    "name": "cancel_response_reasons",
                    "type": "text",
                    "nullable": true,
                    "description": "Cancel response reasons.",
                    "exported": true
                },
                {
                    "name": "cancel_fills_cancelled",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Cancel fills cancelled.",
                    "exported": true
                },
                {
                    "name": "cancel_acknowledged",
                    "type": "tinyint(1)",
                    "nullable": true,
                    "description": "Cancel acknowledged.",
                    "exported": true
                },
                {
                    "name": "rxchange_notification_id",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Identifier of the related rxchange notification record.",
                    "exported": true
                },
                {
                    "name": "rxchange_status",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Rxchange status.",
                    "exported": true
                },
                {
                    "name": "rxchange_last_action_date",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date: rxchange last action.",
                    "exported": true
                },
                {
                    "name": "rxchange_changed_rx_id",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Identifier of the related rxchange changed rx record.",
                    "exported": true
                },
                {
                    "name": "rxchange_original_rx_id",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Identifier of the related rxchange original rx record.",
                    "exported": true
                },
                {
                    "name": "pdmp_status",
                    "type": "text",
                    "nullable": true,
                    "description": "Pdmp status.",
                    "exported": true
                },
                {
                    "name": "undeliverable_date",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date: undeliverable.",
                    "exported": true
                },
                {
                    "name": "acknowledged_by",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Acknowledged by.",
                    "exported": true
                },
                {
                    "name": "acknowledged_date",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date: acknowledged.",
                    "exported": true
                },
                {
                    "name": "payload",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Payload.",
                    "exported": true
                },
                {
                    "name": "downloaded_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: downloaded.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "drfirst_rx_changes",
            "description": "Pharmacy change / renewal requests on prescriptions.",
            "linked_to_patient_by": "drfirst_rx_changes.patient_id = patients.id",
            "files": [
                "tables/drfirst_rx_changes.json",
                "tables/drfirst_rx_changes.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "drfirst_rcopia_id",
                    "type": "varchar(40)",
                    "nullable": false,
                    "description": "Identifier of the related drfirst rcopia record.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "request_type",
                    "type": "varchar(4)",
                    "nullable": true,
                    "description": "Request type.",
                    "exported": true
                },
                {
                    "name": "request_sub_types",
                    "type": "text",
                    "nullable": true,
                    "description": "Request sub types.",
                    "exported": true
                },
                {
                    "name": "change_reason",
                    "type": "text",
                    "nullable": true,
                    "description": "Change reason.",
                    "exported": true
                },
                {
                    "name": "rx_reference_number",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Rx reference number.",
                    "exported": true
                },
                {
                    "name": "response_code",
                    "type": "varchar(4)",
                    "nullable": true,
                    "description": "Response code.",
                    "exported": true
                },
                {
                    "name": "response_note",
                    "type": "varchar(100)",
                    "nullable": true,
                    "description": "Response note.",
                    "exported": true
                },
                {
                    "name": "prior_auth_confirmation",
                    "type": "varchar(60)",
                    "nullable": true,
                    "description": "Prior auth confirmation.",
                    "exported": true
                },
                {
                    "name": "original_request_date",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date: original request.",
                    "exported": true
                },
                {
                    "name": "last_action_date",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date: last action.",
                    "exported": true
                },
                {
                    "name": "original_rx_rcopia_id",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Identifier of the related original rx rcopia record.",
                    "exported": true
                },
                {
                    "name": "original_rx_order_number",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Original rx order number.",
                    "exported": true
                },
                {
                    "name": "changed_rx_rcopia_id",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Identifier of the related changed rx rcopia record.",
                    "exported": true
                },
                {
                    "name": "changed_rx_order_number",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Changed rx order number.",
                    "exported": true
                },
                {
                    "name": "provider_rcopia_id",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Identifier of the related provider rcopia record.",
                    "exported": true
                },
                {
                    "name": "provider_username",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Provider username.",
                    "exported": true
                },
                {
                    "name": "provider_npi",
                    "type": "varchar(35)",
                    "nullable": true,
                    "description": "Provider npi.",
                    "exported": true
                },
                {
                    "name": "provider_name",
                    "type": "varchar(120)",
                    "nullable": true,
                    "description": "Provider name.",
                    "exported": true
                },
                {
                    "name": "forwarded_to_name",
                    "type": "varchar(120)",
                    "nullable": true,
                    "description": "Forwarded to name.",
                    "exported": true
                },
                {
                    "name": "supervisor_name",
                    "type": "varchar(120)",
                    "nullable": true,
                    "description": "Supervisor name.",
                    "exported": true
                },
                {
                    "name": "pharmacy_name",
                    "type": "varchar(120)",
                    "nullable": true,
                    "description": "Pharmacy name.",
                    "exported": true
                },
                {
                    "name": "pharmacy_ncpdp_id",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Identifier of the related pharmacy ncpdp record.",
                    "exported": true
                },
                {
                    "name": "pharmacy_phone",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Pharmacy phone.",
                    "exported": true
                },
                {
                    "name": "pharmacy_fax",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Pharmacy fax.",
                    "exported": true
                },
                {
                    "name": "pharmacy_address",
                    "type": "text",
                    "nullable": true,
                    "description": "Pharmacy address.",
                    "exported": true
                },
                {
                    "name": "ordered_drug_description",
                    "type": "varchar(260)",
                    "nullable": true,
                    "description": "Ordered drug description.",
                    "exported": true
                },
                {
                    "name": "ordered_brand_name",
                    "type": "varchar(130)",
                    "nullable": true,
                    "description": "Ordered brand name.",
                    "exported": true
                },
                {
                    "name": "ordered_generic_name",
                    "type": "varchar(130)",
                    "nullable": true,
                    "description": "Ordered generic name.",
                    "exported": true
                },
                {
                    "name": "ordered_drug_ndc_id",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Identifier of the related ordered drug ndc record.",
                    "exported": true
                },
                {
                    "name": "ordered_drug_rxnorm_id",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Identifier of the related ordered drug rxnorm record.",
                    "exported": true
                },
                {
                    "name": "ordered_drug_schedule",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Ordered drug schedule.",
                    "exported": true
                },
                {
                    "name": "ordered_drug_form",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Ordered drug form.",
                    "exported": true
                },
                {
                    "name": "ordered_drug_strength",
                    "type": "varchar(110)",
                    "nullable": true,
                    "description": "Ordered drug strength.",
                    "exported": true
                },
                {
                    "name": "ordered_sig_text",
                    "type": "text",
                    "nullable": true,
                    "description": "Ordered sig text.",
                    "exported": true
                },
                {
                    "name": "ordered_quantity",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Ordered quantity.",
                    "exported": true
                },
                {
                    "name": "ordered_quantity_unit",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Ordered quantity unit.",
                    "exported": true
                },
                {
                    "name": "ordered_refills",
                    "type": "varchar(10)",
                    "nullable": true,
                    "description": "Ordered refills.",
                    "exported": true
                },
                {
                    "name": "ordered_substitution_permitted",
                    "type": "tinyint(1)",
                    "nullable": true,
                    "description": "Ordered substitution permitted.",
                    "exported": true
                },
                {
                    "name": "ordered_written_date",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date: ordered written.",
                    "exported": true
                },
                {
                    "name": "requested_count",
                    "type": "smallint unsigned",
                    "nullable": false,
                    "description": "Requested count.",
                    "exported": true
                },
                {
                    "name": "requested_drug_description",
                    "type": "varchar(260)",
                    "nullable": true,
                    "description": "Requested drug description.",
                    "exported": true
                },
                {
                    "name": "requested_drug_ndc_id",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Identifier of the related requested drug ndc record.",
                    "exported": true
                },
                {
                    "name": "requested_drug_rxnorm_id",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Identifier of the related requested drug rxnorm record.",
                    "exported": true
                },
                {
                    "name": "requested_drug_schedule",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Requested drug schedule.",
                    "exported": true
                },
                {
                    "name": "requested_sig_text",
                    "type": "text",
                    "nullable": true,
                    "description": "Requested sig text.",
                    "exported": true
                },
                {
                    "name": "requested_quantity",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Requested quantity.",
                    "exported": true
                },
                {
                    "name": "requested_quantity_unit",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Requested quantity unit.",
                    "exported": true
                },
                {
                    "name": "requested_refills",
                    "type": "varchar(10)",
                    "nullable": true,
                    "description": "Requested refills.",
                    "exported": true
                },
                {
                    "name": "diagnoses",
                    "type": "text",
                    "nullable": true,
                    "description": "Diagnoses.",
                    "exported": true
                },
                {
                    "name": "payload",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Payload.",
                    "exported": true
                },
                {
                    "name": "downloaded_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: downloaded.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "eligibility_checks",
            "description": "Insurance eligibility checks (270/271) and responses.",
            "linked_to_patient_by": "eligibility_checks.patient_id = patients.id",
            "files": [
                "tables/eligibility_checks.json",
                "tables/eligibility_checks.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "insurance_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related insurance record.",
                    "exported": true
                },
                {
                    "name": "payer_name",
                    "type": "varchar(150)",
                    "nullable": false,
                    "description": "Payer name.",
                    "exported": true
                },
                {
                    "name": "plan_name",
                    "type": "varchar(190)",
                    "nullable": true,
                    "description": "Plan name.",
                    "exported": true
                },
                {
                    "name": "checked_at",
                    "type": "timestamp",
                    "nullable": false,
                    "description": "Date/time: checked.",
                    "exported": true
                },
                {
                    "name": "service_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: service.",
                    "exported": true
                },
                {
                    "name": "service_type_code",
                    "type": "varchar(3)",
                    "nullable": true,
                    "description": "Service type code.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "enum('active','inactive','unknown')",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "copay",
                    "type": "decimal(8,2)",
                    "nullable": true,
                    "description": "Copay.",
                    "exported": true
                },
                {
                    "name": "coinsurance_percent",
                    "type": "decimal(5,2)",
                    "nullable": true,
                    "description": "Coinsurance percent.",
                    "exported": true
                },
                {
                    "name": "deductible_remaining",
                    "type": "decimal(8,2)",
                    "nullable": true,
                    "description": "Deductible remaining.",
                    "exported": true
                },
                {
                    "name": "benefits",
                    "type": "json",
                    "nullable": true,
                    "description": "Benefits.",
                    "exported": true
                },
                {
                    "name": "rejection_code",
                    "type": "varchar(10)",
                    "nullable": true,
                    "description": "Rejection code.",
                    "exported": true
                },
                {
                    "name": "rejection_reason",
                    "type": "varchar(190)",
                    "nullable": true,
                    "description": "Rejection reason.",
                    "exported": true
                },
                {
                    "name": "edi_submission_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related edi submission record.",
                    "exported": true
                },
                {
                    "name": "auth_required",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Auth required.",
                    "exported": true
                },
                {
                    "name": "coverage_start",
                    "type": "date",
                    "nullable": true,
                    "description": "Coverage start.",
                    "exported": true
                },
                {
                    "name": "coverage_end",
                    "type": "date",
                    "nullable": true,
                    "description": "Coverage end.",
                    "exported": true
                },
                {
                    "name": "check_method",
                    "type": "enum('manual','api')",
                    "nullable": false,
                    "description": "Check method.",
                    "exported": true
                },
                {
                    "name": "gateway",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Gateway.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "checked_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Checked by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "erx_messages",
            "description": "Records of erx messages linked to the patient.",
            "linked_to_patient_by": "erx_messages.patient_id = patients.id",
            "files": [
                "tables/erx_messages.json",
                "tables/erx_messages.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "prescription_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related prescription record.",
                    "exported": true
                },
                {
                    "name": "responds_to_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related responds to record.",
                    "exported": true
                },
                {
                    "name": "direction",
                    "type": "varchar(10)",
                    "nullable": false,
                    "description": "Direction.",
                    "exported": true
                },
                {
                    "name": "message_type",
                    "type": "varchar(40)",
                    "nullable": false,
                    "description": "Message type.",
                    "exported": true
                },
                {
                    "name": "message_id",
                    "type": "varchar(35)",
                    "nullable": true,
                    "description": "Identifier of the related message record.",
                    "exported": true
                },
                {
                    "name": "relates_to_message_id",
                    "type": "varchar(35)",
                    "nullable": true,
                    "description": "Identifier of the related relates to message record.",
                    "exported": true
                },
                {
                    "name": "prescriber_order_number",
                    "type": "varchar(35)",
                    "nullable": true,
                    "description": "Prescriber order number.",
                    "exported": true
                },
                {
                    "name": "rx_reference_number",
                    "type": "varchar(35)",
                    "nullable": true,
                    "description": "Rx reference number.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "status_code",
                    "type": "varchar(10)",
                    "nullable": true,
                    "description": "Status code.",
                    "exported": true
                },
                {
                    "name": "status_detail",
                    "type": "text",
                    "nullable": true,
                    "description": "Status detail.",
                    "exported": true
                },
                {
                    "name": "xml_encrypted",
                    "type": "longtext",
                    "nullable": false,
                    "description": "Xml encrypted.",
                    "exported": true
                },
                {
                    "name": "reply_xml_encrypted",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Reply xml encrypted.",
                    "exported": true
                },
                {
                    "name": "http_status",
                    "type": "smallint unsigned",
                    "nullable": true,
                    "description": "Http status.",
                    "exported": true
                },
                {
                    "name": "needs_action",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Needs action.",
                    "exported": true
                },
                {
                    "name": "actioned_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: actioned.",
                    "exported": true
                },
                {
                    "name": "actioned_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Actioned by.",
                    "exported": true
                },
                {
                    "name": "action_summary",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Action summary.",
                    "exported": true
                },
                {
                    "name": "summary",
                    "type": "json",
                    "nullable": true,
                    "description": "Summary.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "erx_prescriptions",
            "description": "Records of erx prescriptions linked to the patient.",
            "linked_to_patient_by": "erx_prescriptions.patient_id = patients.id",
            "files": [
                "tables/erx_prescriptions.json",
                "tables/erx_prescriptions.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "prescriber_staff_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related prescriber staff record.",
                    "exported": true
                },
                {
                    "name": "pharmacy_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related pharmacy record.",
                    "exported": true
                },
                {
                    "name": "parent_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related parent record.",
                    "exported": true
                },
                {
                    "name": "prescriber_order_number",
                    "type": "varchar(35)",
                    "nullable": false,
                    "description": "Prescriber order number.",
                    "exported": true
                },
                {
                    "name": "rx_reference_number",
                    "type": "varchar(35)",
                    "nullable": true,
                    "description": "Rx reference number.",
                    "exported": true
                },
                {
                    "name": "origin",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Origin.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "drug_description",
                    "type": "varchar(105)",
                    "nullable": false,
                    "description": "Drug description.",
                    "exported": true
                },
                {
                    "name": "medication",
                    "type": "json",
                    "nullable": false,
                    "description": "Medication.",
                    "exported": true
                },
                {
                    "name": "patient_snapshot",
                    "type": "json",
                    "nullable": false,
                    "description": "Patient snapshot.",
                    "exported": true
                },
                {
                    "name": "prescriber_snapshot",
                    "type": "json",
                    "nullable": false,
                    "description": "Prescriber snapshot.",
                    "exported": true
                },
                {
                    "name": "pharmacy_snapshot",
                    "type": "json",
                    "nullable": false,
                    "description": "Pharmacy snapshot.",
                    "exported": true
                },
                {
                    "name": "fill_status",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Fill status.",
                    "exported": true
                },
                {
                    "name": "fill_note",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Fill note.",
                    "exported": true
                },
                {
                    "name": "fill_updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: fill updated.",
                    "exported": true
                },
                {
                    "name": "sent_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: sent.",
                    "exported": true
                },
                {
                    "name": "cancelled_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: cancelled.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "expiration_tracker_history",
            "description": "Records of expiration tracker history linked to the patient.",
            "linked_to_patient_by": "expiration_tracker_history.patient_id = patients.id",
            "files": [
                "tables/expiration_tracker_history.json",
                "tables/expiration_tracker_history.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "item_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related item record.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "event",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Event.",
                    "exported": true
                },
                {
                    "name": "from_at",
                    "type": "datetime",
                    "nullable": true,
                    "description": "Date/time: from.",
                    "exported": true
                },
                {
                    "name": "to_at",
                    "type": "datetime",
                    "nullable": true,
                    "description": "Date/time: to.",
                    "exported": true
                },
                {
                    "name": "warning_days",
                    "type": "smallint unsigned",
                    "nullable": true,
                    "description": "Warning days.",
                    "exported": true
                },
                {
                    "name": "note",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Note.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                }
            ]
        },
        {
            "table": "expiration_tracker_items",
            "description": "Records of expiration tracker items linked to the patient.",
            "linked_to_patient_by": "expiration_tracker_items.patient_id = patients.id",
            "files": [
                "tables/expiration_tracker_items.json",
                "tables/expiration_tracker_items.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "category",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Category.",
                    "exported": true
                },
                {
                    "name": "item_type",
                    "type": "varchar(60)",
                    "nullable": false,
                    "description": "Item type.",
                    "exported": true
                },
                {
                    "name": "source",
                    "type": "varchar(40)",
                    "nullable": false,
                    "description": "Source.",
                    "exported": true
                },
                {
                    "name": "source_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related source record.",
                    "exported": true
                },
                {
                    "name": "series_key",
                    "type": "varchar(191)",
                    "nullable": true,
                    "description": "Series key.",
                    "exported": true
                },
                {
                    "name": "title",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Title.",
                    "exported": true
                },
                {
                    "name": "detail",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Detail.",
                    "exported": true
                },
                {
                    "name": "payer_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Payer name.",
                    "exported": true
                },
                {
                    "name": "program_type",
                    "type": "varchar(60)",
                    "nullable": true,
                    "description": "Program type.",
                    "exported": true
                },
                {
                    "name": "staff_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the related staff record.",
                    "exported": true
                },
                {
                    "name": "effective_at",
                    "type": "date",
                    "nullable": true,
                    "description": "Date/time: effective.",
                    "exported": true
                },
                {
                    "name": "expires_at",
                    "type": "datetime",
                    "nullable": false,
                    "description": "Date/time: expires.",
                    "exported": true
                },
                {
                    "name": "basis",
                    "type": "varchar(10)",
                    "nullable": false,
                    "description": "Basis.",
                    "exported": true
                },
                {
                    "name": "rule_days",
                    "type": "smallint unsigned",
                    "nullable": true,
                    "description": "Rule days.",
                    "exported": true
                },
                {
                    "name": "lifecycle",
                    "type": "varchar(12)",
                    "nullable": false,
                    "description": "Lifecycle.",
                    "exported": true
                },
                {
                    "name": "renewal_at",
                    "type": "datetime",
                    "nullable": true,
                    "description": "Date/time: renewal.",
                    "exported": true
                },
                {
                    "name": "renewed_by_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related renewed by record.",
                    "exported": true
                },
                {
                    "name": "first_expired_at",
                    "type": "datetime",
                    "nullable": true,
                    "description": "Date/time: first expired.",
                    "exported": true
                },
                {
                    "name": "last_warning_days",
                    "type": "smallint unsigned",
                    "nullable": true,
                    "description": "Last warning days.",
                    "exported": true
                },
                {
                    "name": "expired_notified_at",
                    "type": "datetime",
                    "nullable": true,
                    "description": "Date/time: expired notified.",
                    "exported": true
                },
                {
                    "name": "last_reminded_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: last reminded.",
                    "exported": true
                },
                {
                    "name": "escalated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: escalated.",
                    "exported": true
                },
                {
                    "name": "url",
                    "type": "varchar(500)",
                    "nullable": true,
                    "description": "Url.",
                    "exported": true
                },
                {
                    "name": "synced_at",
                    "type": "datetime",
                    "nullable": true,
                    "description": "Date/time: synced.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "external_medical_providers",
            "description": "Outside providers involved in the patient's care.",
            "linked_to_patient_by": "external_medical_providers.patient_id = patients.id",
            "files": [
                "tables/external_medical_providers.json",
                "tables/external_medical_providers.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "provider_name",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Provider name.",
                    "exported": true
                },
                {
                    "name": "credentials",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Credentials.",
                    "exported": true
                },
                {
                    "name": "npi",
                    "type": "varchar(10)",
                    "nullable": true,
                    "description": "Npi.",
                    "exported": true
                },
                {
                    "name": "organization",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Organization.",
                    "exported": true
                },
                {
                    "name": "specialty",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Specialty.",
                    "exported": true
                },
                {
                    "name": "relationship",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Relationship.",
                    "exported": true
                },
                {
                    "name": "phone",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Phone.",
                    "exported": true
                },
                {
                    "name": "fax",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Fax.",
                    "exported": true
                },
                {
                    "name": "email",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Email.",
                    "exported": true
                },
                {
                    "name": "direct_address",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Direct address.",
                    "exported": true
                },
                {
                    "name": "preferred_communication",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Preferred communication.",
                    "exported": true
                },
                {
                    "name": "start_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: start.",
                    "exported": true
                },
                {
                    "name": "end_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: end.",
                    "exported": true
                },
                {
                    "name": "roi_status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Roi status.",
                    "exported": true
                },
                {
                    "name": "roi_expires_at",
                    "type": "date",
                    "nullable": true,
                    "description": "Date/time: roi expires.",
                    "exported": true
                },
                {
                    "name": "last_communication_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: last communication.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "source",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Source.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "flowsheet_readings",
            "description": "Flowsheet observations.",
            "linked_to_patient_by": "flowsheet_readings.patient_id = patients.id",
            "files": [
                "tables/flowsheet_readings.json",
                "tables/flowsheet_readings.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "flowsheet_definition_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related flowsheet definition record.",
                    "exported": true
                },
                {
                    "name": "parameter_key",
                    "type": "varchar(60)",
                    "nullable": false,
                    "description": "Parameter key.",
                    "exported": true
                },
                {
                    "name": "recorded_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: recorded.",
                    "exported": true
                },
                {
                    "name": "value",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Value.",
                    "exported": true
                },
                {
                    "name": "unit",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Unit.",
                    "exported": true
                },
                {
                    "name": "reading_source",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Reading source.",
                    "exported": true
                },
                {
                    "name": "source_device_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related source device record.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "functional_statuses",
            "description": "Functional and cognitive status assessments.",
            "linked_to_patient_by": "functional_statuses.patient_id = patients.id",
            "files": [
                "tables/functional_statuses.json",
                "tables/functional_statuses.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "assessed_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: assessed.",
                    "exported": true
                },
                {
                    "name": "ambulation",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Ambulation.",
                    "exported": true
                },
                {
                    "name": "assistive_devices",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Assistive devices.",
                    "exported": true
                },
                {
                    "name": "wheelchair",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Wheelchair.",
                    "exported": true
                },
                {
                    "name": "fall_risk",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Fall risk.",
                    "exported": true
                },
                {
                    "name": "recent_falls",
                    "type": "smallint unsigned",
                    "nullable": true,
                    "description": "Recent falls.",
                    "exported": true
                },
                {
                    "name": "adl_status",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Adl status.",
                    "exported": true
                },
                {
                    "name": "iadl_status",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Iadl status.",
                    "exported": true
                },
                {
                    "name": "transfer_ability",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Transfer ability.",
                    "exported": true
                },
                {
                    "name": "home_health",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Home health.",
                    "exported": true
                },
                {
                    "name": "personal_care",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Personal care.",
                    "exported": true
                },
                {
                    "name": "pt_ot",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Pt ot.",
                    "exported": true
                },
                {
                    "name": "durable_medical_equipment",
                    "type": "text",
                    "nullable": true,
                    "description": "Durable medical equipment.",
                    "exported": true
                },
                {
                    "name": "limitations",
                    "type": "text",
                    "nullable": true,
                    "description": "Limitations.",
                    "exported": true
                },
                {
                    "name": "accessibility_needs",
                    "type": "text",
                    "nullable": true,
                    "description": "Accessibility needs.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "source",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Source.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "group_attendance",
            "description": "Attendance at group sessions.",
            "linked_to_patient_by": "group_attendance.patient_id = patients.id",
            "files": [
                "tables/group_attendance.json",
                "tables/group_attendance.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "session_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related session record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "enum('present','absent','excused','late')",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "arrival_time",
                    "type": "time",
                    "nullable": true,
                    "description": "Arrival time.",
                    "exported": true
                },
                {
                    "name": "departure_time",
                    "type": "time",
                    "nullable": true,
                    "description": "Departure time.",
                    "exported": true
                },
                {
                    "name": "individual_response",
                    "type": "text",
                    "nullable": true,
                    "description": "Individual response.",
                    "exported": true
                },
                {
                    "name": "participation_level",
                    "type": "enum('active','passive','disruptive','not_applicable')",
                    "nullable": false,
                    "description": "Participation level.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "grouped_consent_signatures",
            "description": "Signatures on grouped consent packets.",
            "linked_to_patient_by": "grouped_consent_signatures.patient_id = patients.id",
            "files": [
                "tables/grouped_consent_signatures.json",
                "tables/grouped_consent_signatures.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "user_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related user record.",
                    "exported": true
                },
                {
                    "name": "provider_signature_path",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Provider signature path.",
                    "exported": true,
                    "file_reference": true
                },
                {
                    "name": "provider_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Provider name.",
                    "exported": true
                },
                {
                    "name": "provider_signed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: provider signed.",
                    "exported": true
                },
                {
                    "name": "client_signature_path",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Client signature path.",
                    "exported": true,
                    "file_reference": true
                },
                {
                    "name": "client_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Client name.",
                    "exported": true
                },
                {
                    "name": "client_signed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: client signed.",
                    "exported": true
                },
                {
                    "name": "guest_token",
                    "type": "varchar(64)",
                    "nullable": true,
                    "description": "Guest token.",
                    "exported": false,
                    "withheld_reason": "Authentication credential; not electronic health information."
                },
                {
                    "name": "guest_token_expires_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: guest token expires.",
                    "exported": false,
                    "withheld_reason": "Authentication credential; not electronic health information."
                },
                {
                    "name": "selected_form_ids",
                    "type": "json",
                    "nullable": false,
                    "description": "Selected form ids.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "hospital_events",
            "description": "Hospital admissions, emergency visits and transitions of care.",
            "linked_to_patient_by": "hospital_events.patient_id = patients.id",
            "files": [
                "tables/hospital_events.json",
                "tables/hospital_events.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "event_type",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Event type.",
                    "exported": true
                },
                {
                    "name": "facility",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Facility.",
                    "exported": true
                },
                {
                    "name": "treating_provider",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Treating provider.",
                    "exported": true
                },
                {
                    "name": "admitted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: admitted.",
                    "exported": true
                },
                {
                    "name": "discharged_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: discharged.",
                    "exported": true
                },
                {
                    "name": "reason",
                    "type": "text",
                    "nullable": true,
                    "description": "Reason.",
                    "exported": true
                },
                {
                    "name": "diagnoses",
                    "type": "text",
                    "nullable": true,
                    "description": "Diagnoses.",
                    "exported": true
                },
                {
                    "name": "procedures",
                    "type": "text",
                    "nullable": true,
                    "description": "Procedures.",
                    "exported": true
                },
                {
                    "name": "medication_changes",
                    "type": "text",
                    "nullable": true,
                    "description": "Medication changes.",
                    "exported": true
                },
                {
                    "name": "discharge_instructions",
                    "type": "text",
                    "nullable": true,
                    "description": "Discharge instructions.",
                    "exported": true
                },
                {
                    "name": "records_requested",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Records requested.",
                    "exported": true
                },
                {
                    "name": "records_requested_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: records requested.",
                    "exported": true
                },
                {
                    "name": "records_received",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Records received.",
                    "exported": true
                },
                {
                    "name": "records_received_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: records received.",
                    "exported": true
                },
                {
                    "name": "transition_document_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related transition document record.",
                    "exported": true
                },
                {
                    "name": "care_team_notified",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Care team notified.",
                    "exported": true
                },
                {
                    "name": "medications_reconciled",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Medications reconciled.",
                    "exported": true
                },
                {
                    "name": "follow_up_scheduled",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Follow up scheduled.",
                    "exported": true
                },
                {
                    "name": "patient_contacted",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Patient contacted.",
                    "exported": true
                },
                {
                    "name": "care_plan_updated",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Care plan updated.",
                    "exported": true
                },
                {
                    "name": "follow_up_appointment_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related follow up appointment record.",
                    "exported": true
                },
                {
                    "name": "follow_up_due",
                    "type": "date",
                    "nullable": true,
                    "description": "Follow up due.",
                    "exported": true
                },
                {
                    "name": "follow_up_notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Follow up notes.",
                    "exported": true
                },
                {
                    "name": "transition_status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Transition status.",
                    "exported": true
                },
                {
                    "name": "closed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: closed.",
                    "exported": true
                },
                {
                    "name": "closed_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Closed by.",
                    "exported": true
                },
                {
                    "name": "source",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Source.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "imaging_studies",
            "description": "Imaging studies and reports.",
            "linked_to_patient_by": "imaging_studies.patient_id = patients.id",
            "files": [
                "tables/imaging_studies.json",
                "tables/imaging_studies.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "encounter_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related encounter record.",
                    "exported": true
                },
                {
                    "name": "study_type",
                    "type": "varchar(60)",
                    "nullable": false,
                    "description": "Study type.",
                    "exported": true
                },
                {
                    "name": "loinc_code",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Loinc code.",
                    "exported": true
                },
                {
                    "name": "body_site",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Body site.",
                    "exported": true
                },
                {
                    "name": "order_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: order.",
                    "exported": true
                },
                {
                    "name": "study_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: study.",
                    "exported": true
                },
                {
                    "name": "indication",
                    "type": "text",
                    "nullable": true,
                    "description": "Indication.",
                    "exported": true
                },
                {
                    "name": "performing_facility",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Performing facility.",
                    "exported": true
                },
                {
                    "name": "interpreter",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Interpreter.",
                    "exported": true
                },
                {
                    "name": "findings",
                    "type": "text",
                    "nullable": true,
                    "description": "Findings.",
                    "exported": true
                },
                {
                    "name": "impression",
                    "type": "text",
                    "nullable": true,
                    "description": "Impression.",
                    "exported": true
                },
                {
                    "name": "critical_flag",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Critical flag.",
                    "exported": true
                },
                {
                    "name": "report_document",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Report document.",
                    "exported": true,
                    "file_reference": true
                },
                {
                    "name": "image_link",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Image link.",
                    "exported": true
                },
                {
                    "name": "follow_up_recommendation",
                    "type": "text",
                    "nullable": true,
                    "description": "Follow up recommendation.",
                    "exported": true
                },
                {
                    "name": "reviewed_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Reviewed by.",
                    "exported": true
                },
                {
                    "name": "reviewed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: reviewed.",
                    "exported": true
                },
                {
                    "name": "patient_notified",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Patient notified.",
                    "exported": true
                },
                {
                    "name": "acknowledged_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: acknowledged.",
                    "exported": true
                },
                {
                    "name": "acknowledged_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Acknowledged by.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "source",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Source.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "immunizations",
            "description": "Immunizations administered or reported, with CVX/MVX codes, lot, dose and route.",
            "linked_to_patient_by": "immunizations.patient_id = patients.id",
            "files": [
                "tables/immunizations.json",
                "tables/immunizations.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "vaccine_name",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Vaccine name.",
                    "exported": true
                },
                {
                    "name": "cvx_code",
                    "type": "varchar(10)",
                    "nullable": true,
                    "description": "Cvx code.",
                    "exported": true
                },
                {
                    "name": "mvx_code",
                    "type": "varchar(10)",
                    "nullable": true,
                    "description": "Mvx code.",
                    "exported": true
                },
                {
                    "name": "manufacturer",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Manufacturer.",
                    "exported": true
                },
                {
                    "name": "lot_number",
                    "type": "varchar(60)",
                    "nullable": true,
                    "description": "Lot number.",
                    "exported": true
                },
                {
                    "name": "expiration_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: expiration.",
                    "exported": true
                },
                {
                    "name": "dose_number",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Dose number.",
                    "exported": true
                },
                {
                    "name": "series",
                    "type": "varchar(60)",
                    "nullable": true,
                    "description": "Series.",
                    "exported": true
                },
                {
                    "name": "administration_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: administration.",
                    "exported": true
                },
                {
                    "name": "route",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Route.",
                    "exported": true
                },
                {
                    "name": "site",
                    "type": "varchar(60)",
                    "nullable": true,
                    "description": "Site.",
                    "exported": true
                },
                {
                    "name": "administered_by",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Administered by.",
                    "exported": true
                },
                {
                    "name": "location",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Location.",
                    "exported": true
                },
                {
                    "name": "consent_status",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Consent status.",
                    "exported": true
                },
                {
                    "name": "refused",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Refused.",
                    "exported": true
                },
                {
                    "name": "refusal_reason",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Refusal reason.",
                    "exported": true
                },
                {
                    "name": "contraindication",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Contraindication.",
                    "exported": true
                },
                {
                    "name": "reaction",
                    "type": "text",
                    "nullable": true,
                    "description": "Reaction.",
                    "exported": true
                },
                {
                    "name": "next_dose_due",
                    "type": "date",
                    "nullable": true,
                    "description": "Next dose due.",
                    "exported": true
                },
                {
                    "name": "registry_status",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Registry status.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "verification_status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Verification status.",
                    "exported": true
                },
                {
                    "name": "source",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Source.",
                    "exported": true
                },
                {
                    "name": "recorded_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Recorded by.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "lab_orders",
            "description": "Laboratory orders.",
            "linked_to_patient_by": "lab_orders.patient_id = patients.id",
            "files": [
                "tables/lab_orders.json",
                "tables/lab_orders.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "encounter_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related encounter record.",
                    "exported": true
                },
                {
                    "name": "test_name",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Test name.",
                    "exported": true
                },
                {
                    "name": "loinc_code",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Loinc code.",
                    "exported": true
                },
                {
                    "name": "internal_code",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Internal code.",
                    "exported": true
                },
                {
                    "name": "order_identifier",
                    "type": "varchar(60)",
                    "nullable": true,
                    "description": "Order identifier.",
                    "exported": true
                },
                {
                    "name": "related_diagnosis_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related related diagnosis record.",
                    "exported": true
                },
                {
                    "name": "ordering_provider_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related ordering provider record.",
                    "exported": true
                },
                {
                    "name": "clinical_indication",
                    "type": "text",
                    "nullable": true,
                    "description": "Clinical indication.",
                    "exported": true
                },
                {
                    "name": "priority",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Priority.",
                    "exported": true
                },
                {
                    "name": "fasting_instructions",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Fasting instructions.",
                    "exported": true
                },
                {
                    "name": "specimen_type",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Specimen type.",
                    "exported": true
                },
                {
                    "name": "collection_instructions",
                    "type": "text",
                    "nullable": true,
                    "description": "Collection instructions.",
                    "exported": true
                },
                {
                    "name": "performing_lab",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Performing lab.",
                    "exported": true
                },
                {
                    "name": "expected_collection_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: expected collection.",
                    "exported": true
                },
                {
                    "name": "expiration_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: expiration.",
                    "exported": true
                },
                {
                    "name": "standing_order",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Standing order.",
                    "exported": true
                },
                {
                    "name": "requisition_number",
                    "type": "varchar(60)",
                    "nullable": true,
                    "description": "Requisition number.",
                    "exported": true
                },
                {
                    "name": "transmission_status",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Transmission status.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(25)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "cancellation_reason",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Cancellation reason.",
                    "exported": true
                },
                {
                    "name": "follow_up_task_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related follow up task record.",
                    "exported": true
                },
                {
                    "name": "completion_status",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Completion status.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "lab_reports",
            "description": "Laboratory reports received.",
            "linked_to_patient_by": "lab_reports.patient_id = patients.id",
            "files": [
                "tables/lab_reports.json",
                "tables/lab_reports.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "lab_order_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related lab order record.",
                    "exported": true
                },
                {
                    "name": "report_name",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Report name.",
                    "exported": true
                },
                {
                    "name": "loinc_code",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Loinc code.",
                    "exported": true
                },
                {
                    "name": "accession_number",
                    "type": "varchar(60)",
                    "nullable": true,
                    "description": "Accession number.",
                    "exported": true
                },
                {
                    "name": "performing_lab",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Performing lab.",
                    "exported": true
                },
                {
                    "name": "specimen_type",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Specimen type.",
                    "exported": true
                },
                {
                    "name": "collected_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: collected.",
                    "exported": true
                },
                {
                    "name": "resulted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: resulted.",
                    "exported": true
                },
                {
                    "name": "received_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: received.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "source",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Source.",
                    "exported": true
                },
                {
                    "name": "source_document_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related source document record.",
                    "exported": true
                },
                {
                    "name": "overall_abnormal",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Overall abnormal.",
                    "exported": true
                },
                {
                    "name": "overall_critical",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Overall critical.",
                    "exported": true
                },
                {
                    "name": "reviewed_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Reviewed by.",
                    "exported": true
                },
                {
                    "name": "reviewed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: reviewed.",
                    "exported": true
                },
                {
                    "name": "patient_notified",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Patient notified.",
                    "exported": true
                },
                {
                    "name": "patient_notified_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: patient notified.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "lab_results",
            "description": "Laboratory result values with LOINC codes, units (UCUM), reference ranges and interpretation flags.",
            "linked_to_patient_by": "lab_results.patient_id = patients.id",
            "files": [
                "tables/lab_results.json",
                "tables/lab_results.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "lab_report_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related lab report record.",
                    "exported": true
                },
                {
                    "name": "test_name",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Test name.",
                    "exported": true
                },
                {
                    "name": "loinc_code",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Loinc code.",
                    "exported": true
                },
                {
                    "name": "value",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Value.",
                    "exported": true
                },
                {
                    "name": "value_numeric",
                    "type": "decimal(14,4)",
                    "nullable": true,
                    "description": "Value numeric.",
                    "exported": true
                },
                {
                    "name": "value_code",
                    "type": "varchar(80)",
                    "nullable": true,
                    "description": "Value code.",
                    "exported": true
                },
                {
                    "name": "value_code_system",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Value code system.",
                    "exported": true
                },
                {
                    "name": "value_code_display",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Value code display.",
                    "exported": true
                },
                {
                    "name": "unit",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Unit.",
                    "exported": true
                },
                {
                    "name": "ucum_unit",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Ucum unit.",
                    "exported": true
                },
                {
                    "name": "reference_low",
                    "type": "decimal(14,4)",
                    "nullable": true,
                    "description": "Reference low.",
                    "exported": true
                },
                {
                    "name": "reference_high",
                    "type": "decimal(14,4)",
                    "nullable": true,
                    "description": "Reference high.",
                    "exported": true
                },
                {
                    "name": "reference_text",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Reference text.",
                    "exported": true
                },
                {
                    "name": "interpretation",
                    "type": "varchar(15)",
                    "nullable": true,
                    "description": "Interpretation.",
                    "exported": true
                },
                {
                    "name": "abnormal_flag",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Abnormal flag.",
                    "exported": true
                },
                {
                    "name": "critical_flag",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Critical flag.",
                    "exported": true
                },
                {
                    "name": "method",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Method.",
                    "exported": true
                },
                {
                    "name": "comments",
                    "type": "text",
                    "nullable": true,
                    "description": "Comments.",
                    "exported": true
                },
                {
                    "name": "collected_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: collected.",
                    "exported": true
                },
                {
                    "name": "resulted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: resulted.",
                    "exported": true
                },
                {
                    "name": "corrected_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: corrected.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "follow_up_action",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Follow up action.",
                    "exported": true
                },
                {
                    "name": "task_owner_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related task owner record.",
                    "exported": true
                },
                {
                    "name": "due_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: due.",
                    "exported": true
                },
                {
                    "name": "closure_status",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Closure status.",
                    "exported": true
                },
                {
                    "name": "acknowledged_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Acknowledged by.",
                    "exported": true
                },
                {
                    "name": "acknowledged_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: acknowledged.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "medical_devices",
            "description": "Implantable and other medical devices (UDI where recorded).",
            "linked_to_patient_by": "medical_devices.patient_id = patients.id",
            "files": [
                "tables/medical_devices.json",
                "tables/medical_devices.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "device_type",
                    "type": "varchar(40)",
                    "nullable": false,
                    "description": "Device type.",
                    "exported": true
                },
                {
                    "name": "device_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Device name.",
                    "exported": true
                },
                {
                    "name": "manufacturer",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Manufacturer.",
                    "exported": true
                },
                {
                    "name": "model",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Model.",
                    "exported": true
                },
                {
                    "name": "serial_number",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Serial number.",
                    "exported": true
                },
                {
                    "name": "udi",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Udi.",
                    "exported": true
                },
                {
                    "name": "manufacture_date",
                    "type": "datetime",
                    "nullable": true,
                    "description": "Date: manufacture.",
                    "exported": true
                },
                {
                    "name": "expiration_date",
                    "type": "datetime",
                    "nullable": true,
                    "description": "Date: expiration.",
                    "exported": true
                },
                {
                    "name": "lot_number",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Lot number.",
                    "exported": true
                },
                {
                    "name": "distinct_identifier",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Distinct identifier.",
                    "exported": true
                },
                {
                    "name": "implant_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: implant.",
                    "exported": true
                },
                {
                    "name": "use_start_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: use start.",
                    "exported": true
                },
                {
                    "name": "use_end_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: use end.",
                    "exported": true
                },
                {
                    "name": "responsible_provider",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Responsible provider.",
                    "exported": true
                },
                {
                    "name": "last_maintenance_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: last maintenance.",
                    "exported": true
                },
                {
                    "name": "next_maintenance_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: next maintenance.",
                    "exported": true
                },
                {
                    "name": "feeds_vitals",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Feeds vitals.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "source",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Source.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "medical_history_items",
            "description": "Past medical, surgical, family and social history items.",
            "linked_to_patient_by": "medical_history_items.patient_id = patients.id",
            "files": [
                "tables/medical_history_items.json",
                "tables/medical_history_items.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "category",
                    "type": "varchar(40)",
                    "nullable": false,
                    "description": "Category.",
                    "exported": true
                },
                {
                    "name": "title",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Title.",
                    "exported": true
                },
                {
                    "name": "snomed_code",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Snomed code.",
                    "exported": true
                },
                {
                    "name": "icd10_code",
                    "type": "varchar(12)",
                    "nullable": true,
                    "description": "Icd10 code.",
                    "exported": true
                },
                {
                    "name": "event_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: event.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "treatment",
                    "type": "text",
                    "nullable": true,
                    "description": "Treatment.",
                    "exported": true
                },
                {
                    "name": "provider_facility",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Provider facility.",
                    "exported": true
                },
                {
                    "name": "supporting_document",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Supporting document.",
                    "exported": true,
                    "file_reference": true
                },
                {
                    "name": "verification_status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Verification status.",
                    "exported": true
                },
                {
                    "name": "source",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Source.",
                    "exported": true
                },
                {
                    "name": "recorded_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Recorded by.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "medication_monitoring_schedules",
            "description": "Medication monitoring schedules (e.g. lab monitoring for psychotropics).",
            "linked_to_patient_by": "medication_monitoring_schedules.patient_id = patients.id",
            "files": [
                "tables/medication_monitoring_schedules.json",
                "tables/medication_monitoring_schedules.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "medication_group",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Medication group.",
                    "exported": true
                },
                {
                    "name": "medication_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Medication name.",
                    "exported": true
                },
                {
                    "name": "parameter",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Parameter.",
                    "exported": true
                },
                {
                    "name": "loinc_code",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Loinc code.",
                    "exported": true
                },
                {
                    "name": "interval_days",
                    "type": "smallint unsigned",
                    "nullable": true,
                    "description": "Interval days.",
                    "exported": true
                },
                {
                    "name": "last_done_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: last done.",
                    "exported": true
                },
                {
                    "name": "last_result",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Last result.",
                    "exported": true
                },
                {
                    "name": "next_due_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: next due.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "source",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Source.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_allergies",
            "description": "Allergies and intolerances with allergen (RxNorm/SNOMED where coded), reaction, severity and status.",
            "linked_to_patient_by": "patient_allergies.patient_id = patients.id",
            "files": [
                "tables/patient_allergies.json",
                "tables/patient_allergies.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "allergen",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Allergen.",
                    "exported": true
                },
                {
                    "name": "allergen_code_system",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Allergen code system.",
                    "exported": true
                },
                {
                    "name": "allergen_code",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Allergen code.",
                    "exported": true
                },
                {
                    "name": "allergen_display",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Allergen display.",
                    "exported": true
                },
                {
                    "name": "allergen_term_type",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Allergen term type.",
                    "exported": true
                },
                {
                    "name": "type",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Type.",
                    "exported": true
                },
                {
                    "name": "allergy_intolerance_type",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Allergy intolerance type.",
                    "exported": true
                },
                {
                    "name": "is_no_known_allergy",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Flag (1 = yes, 0 = no): is no known allergy.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "source",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Source.",
                    "exported": true
                },
                {
                    "name": "onset_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: onset.",
                    "exported": true
                },
                {
                    "name": "reaction",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Reaction.",
                    "exported": true
                },
                {
                    "name": "reaction_snomed_ct_concept_id",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Identifier of the related reaction snomed ct concept record.",
                    "exported": true
                },
                {
                    "name": "reaction_list",
                    "type": "json",
                    "nullable": true,
                    "description": "Reaction list.",
                    "exported": true
                },
                {
                    "name": "drfirst_rcopia_id",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Identifier of the related drfirst rcopia record.",
                    "exported": true
                },
                {
                    "name": "drfirst_sync_status",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Drfirst sync status.",
                    "exported": true
                },
                {
                    "name": "drfirst_synced_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: drfirst synced.",
                    "exported": true
                },
                {
                    "name": "drfirst_last_error",
                    "type": "text",
                    "nullable": true,
                    "description": "Drfirst last error.",
                    "exported": true
                },
                {
                    "name": "severity",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Severity.",
                    "exported": true
                },
                {
                    "name": "severity_snomed_ct_concept_id",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Identifier of the related severity snomed ct concept record.",
                    "exported": true
                },
                {
                    "name": "ingredient_rxnorm_id",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Identifier of the related ingredient rxnorm record.",
                    "exported": true
                },
                {
                    "name": "ingredient_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Ingredient name.",
                    "exported": true
                },
                {
                    "name": "ingredient_rxnorm_ids",
                    "type": "json",
                    "nullable": true,
                    "description": "Ingredient rxnorm ids.",
                    "exported": true
                },
                {
                    "name": "ingredient_names",
                    "type": "json",
                    "nullable": true,
                    "description": "Ingredient names.",
                    "exported": true
                },
                {
                    "name": "terminology_version",
                    "type": "varchar(80)",
                    "nullable": true,
                    "description": "Terminology version.",
                    "exported": true
                },
                {
                    "name": "terminology_effective_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: terminology effective.",
                    "exported": true
                },
                {
                    "name": "allergen_drug_rcopia_id",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Identifier of the related allergen drug rcopia record.",
                    "exported": true
                },
                {
                    "name": "ndc_id",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Identifier of the related ndc record.",
                    "exported": true
                },
                {
                    "name": "first_databank_med_id",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Identifier of the related first databank med record.",
                    "exported": true
                },
                {
                    "name": "drug_rxnorm_id",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Identifier of the related drug rxnorm record.",
                    "exported": true
                },
                {
                    "name": "allergen_group_id",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Identifier of the related allergen group record.",
                    "exported": true
                },
                {
                    "name": "fdb_specific_group_id",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Identifier of the related fdb specific group record.",
                    "exported": true
                },
                {
                    "name": "reconciliation_status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Reconciliation status.",
                    "exported": true
                },
                {
                    "name": "last_reconciled_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: last reconciled.",
                    "exported": true
                },
                {
                    "name": "reconciled_by",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Reconciled by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_amendments",
            "description": "Patient requests to amend a record, the decision (accepted amendment, or denial with its basis), statements of disagreement and rebuttals. record_type/record_id identify the affected record.",
            "linked_to_patient_by": "patient_amendments.patient_id = patients.id",
            "files": [
                "tables/patient_amendments.json",
                "tables/patient_amendments.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "record_type",
                    "type": "varchar(60)",
                    "nullable": false,
                    "description": "Record type.",
                    "exported": true
                },
                {
                    "name": "record_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related record record.",
                    "exported": true
                },
                {
                    "name": "record_label",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Record label.",
                    "exported": true
                },
                {
                    "name": "requested_by_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Requested by name.",
                    "exported": true
                },
                {
                    "name": "requester_relationship",
                    "type": "varchar(40)",
                    "nullable": false,
                    "description": "Requester relationship.",
                    "exported": true
                },
                {
                    "name": "request_method",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Request method.",
                    "exported": true
                },
                {
                    "name": "request_received_at",
                    "type": "datetime",
                    "nullable": false,
                    "description": "Date/time: request received.",
                    "exported": true
                },
                {
                    "name": "requested_change",
                    "type": "text",
                    "nullable": false,
                    "description": "Requested change.",
                    "exported": true
                },
                {
                    "name": "request_reason",
                    "type": "text",
                    "nullable": true,
                    "description": "Request reason.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "amendment_text",
                    "type": "text",
                    "nullable": true,
                    "description": "Amendment text.",
                    "exported": true
                },
                {
                    "name": "denial_basis",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Denial basis.",
                    "exported": true
                },
                {
                    "name": "denial_reason",
                    "type": "text",
                    "nullable": true,
                    "description": "Denial reason.",
                    "exported": true
                },
                {
                    "name": "decided_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Decided by.",
                    "exported": true
                },
                {
                    "name": "decided_by_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Decided by name.",
                    "exported": true
                },
                {
                    "name": "decided_at",
                    "type": "datetime",
                    "nullable": true,
                    "description": "Date/time: decided.",
                    "exported": true
                },
                {
                    "name": "patient_notified_at",
                    "type": "datetime",
                    "nullable": true,
                    "description": "Date/time: patient notified.",
                    "exported": true
                },
                {
                    "name": "disagreement_statement",
                    "type": "text",
                    "nullable": true,
                    "description": "Disagreement statement.",
                    "exported": true
                },
                {
                    "name": "disagreement_received_at",
                    "type": "datetime",
                    "nullable": true,
                    "description": "Date/time: disagreement received.",
                    "exported": true
                },
                {
                    "name": "rebuttal_statement",
                    "type": "text",
                    "nullable": true,
                    "description": "Rebuttal statement.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_appointments",
            "description": "Appointments and encounters.",
            "linked_to_patient_by": "patient_appointments.patient_id = patients.id",
            "files": [
                "tables/patient_appointments.json",
                "tables/patient_appointments.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "staff_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the related staff record.",
                    "exported": true
                },
                {
                    "name": "authorization_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related authorization record.",
                    "exported": true
                },
                {
                    "name": "service_code_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related service code record.",
                    "exported": true
                },
                {
                    "name": "appointment_type",
                    "type": "enum('individual','group','field_visit','telehealth')",
                    "nullable": false,
                    "description": "Appointment type.",
                    "exported": true
                },
                {
                    "name": "is_external_medical",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Flag (1 = yes, 0 = no): is external medical.",
                    "exported": true
                },
                {
                    "name": "external_provider",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "External provider.",
                    "exported": true
                },
                {
                    "name": "appointment_date",
                    "type": "date",
                    "nullable": false,
                    "description": "Date: appointment.",
                    "exported": true
                },
                {
                    "name": "start_time",
                    "type": "time",
                    "nullable": false,
                    "description": "Start time.",
                    "exported": true
                },
                {
                    "name": "end_time",
                    "type": "time",
                    "nullable": true,
                    "description": "End time.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "enum('scheduled','completed','no_show','cancelled','rescheduled')",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "location",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Location.",
                    "exported": true
                },
                {
                    "name": "transportation_need",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Transportation need.",
                    "exported": true
                },
                {
                    "name": "accompaniment",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Accompaniment.",
                    "exported": true
                },
                {
                    "name": "visit_outcome",
                    "type": "text",
                    "nullable": true,
                    "description": "Visit outcome.",
                    "exported": true
                },
                {
                    "name": "documents_received",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Documents received.",
                    "exported": true
                },
                {
                    "name": "follow_up",
                    "type": "text",
                    "nullable": true,
                    "description": "Follow up.",
                    "exported": true
                },
                {
                    "name": "missed_reason",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Missed reason.",
                    "exported": true
                },
                {
                    "name": "reminder_sent_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: reminder sent.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "is_recurring",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Flag (1 = yes, 0 = no): is recurring.",
                    "exported": true
                },
                {
                    "name": "recurrence_rule",
                    "type": "varchar(100)",
                    "nullable": true,
                    "description": "Recurrence rule.",
                    "exported": true
                },
                {
                    "name": "parent_appointment_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related parent appointment record.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "cancelled_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: cancelled.",
                    "exported": true
                },
                {
                    "name": "no_show_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: no show.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_authorizations",
            "description": "Payer service authorizations and unit balances.",
            "linked_to_patient_by": "patient_authorizations.patient_id = patients.id",
            "files": [
                "tables/patient_authorizations.json",
                "tables/patient_authorizations.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "insurance_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related insurance record.",
                    "exported": true
                },
                {
                    "name": "payer_name",
                    "type": "varchar(150)",
                    "nullable": false,
                    "description": "Payer name.",
                    "exported": true
                },
                {
                    "name": "auth_number",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Auth number.",
                    "exported": true
                },
                {
                    "name": "program_type",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Program type.",
                    "exported": true
                },
                {
                    "name": "program_types",
                    "type": "json",
                    "nullable": true,
                    "description": "Program types.",
                    "exported": true
                },
                {
                    "name": "service_type",
                    "type": "varchar(100)",
                    "nullable": true,
                    "description": "Service type.",
                    "exported": true
                },
                {
                    "name": "units_authorized",
                    "type": "int unsigned",
                    "nullable": false,
                    "description": "Units authorized.",
                    "exported": true
                },
                {
                    "name": "units_used",
                    "type": "int unsigned",
                    "nullable": false,
                    "description": "Units used.",
                    "exported": true
                },
                {
                    "name": "start_date",
                    "type": "date",
                    "nullable": false,
                    "description": "Date: start.",
                    "exported": true
                },
                {
                    "name": "end_date",
                    "type": "date",
                    "nullable": false,
                    "description": "Date: end.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "enum('pending','active','expired','denied')",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "denial_reason",
                    "type": "text",
                    "nullable": true,
                    "description": "Denial reason.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_care_coordination_entries",
            "description": "Care coordination activities.",
            "linked_to_patient_by": "patient_care_coordination_entries.patient_id = patients.id",
            "files": [
                "tables/patient_care_coordination_entries.json",
                "tables/patient_care_coordination_entries.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "entry_date",
                    "type": "date",
                    "nullable": false,
                    "description": "Date: entry.",
                    "exported": true
                },
                {
                    "name": "type",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Type.",
                    "exported": true
                },
                {
                    "name": "category",
                    "type": "varchar(50)",
                    "nullable": false,
                    "description": "Category.",
                    "exported": true
                },
                {
                    "name": "referred_to",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Referred to.",
                    "exported": true
                },
                {
                    "name": "referred_by",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Referred by.",
                    "exported": true
                },
                {
                    "name": "contact_method",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Contact method.",
                    "exported": true
                },
                {
                    "name": "is_billable",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Flag (1 = yes, 0 = no): is billable.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "description",
                    "type": "text",
                    "nullable": true,
                    "description": "Description.",
                    "exported": true
                },
                {
                    "name": "outcome",
                    "type": "text",
                    "nullable": true,
                    "description": "Outcome.",
                    "exported": true
                },
                {
                    "name": "follow_up_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: follow up.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_clinical_documents",
            "description": "Clinical documents (letters, summaries) held in the chart.",
            "linked_to_patient_by": "patient_clinical_documents.patient_id = patients.id",
            "files": [
                "tables/patient_clinical_documents.json",
                "tables/patient_clinical_documents.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "treatment_plan_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related treatment plan record.",
                    "exported": true
                },
                {
                    "name": "encounter_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related encounter record.",
                    "exported": true
                },
                {
                    "name": "type",
                    "type": "enum('monthly_summary','discharge_summary')",
                    "nullable": false,
                    "description": "Type.",
                    "exported": true
                },
                {
                    "name": "title",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Title.",
                    "exported": true
                },
                {
                    "name": "period_start",
                    "type": "date",
                    "nullable": true,
                    "description": "Period start.",
                    "exported": true
                },
                {
                    "name": "period_end",
                    "type": "date",
                    "nullable": true,
                    "description": "Period end.",
                    "exported": true
                },
                {
                    "name": "content_html",
                    "type": "longtext",
                    "nullable": false,
                    "description": "Content html.",
                    "exported": true
                },
                {
                    "name": "generated_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Generated by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_clinical_team_members",
            "description": "Members of the patient's care team within the practice.",
            "linked_to_patient_by": "patient_clinical_team_members.patient_id = patients.id",
            "files": [
                "tables/patient_clinical_team_members.json",
                "tables/patient_clinical_team_members.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "staff_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related staff record.",
                    "exported": true
                },
                {
                    "name": "team_role",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Team role.",
                    "exported": true
                },
                {
                    "name": "is_primary",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Flag (1 = yes, 0 = no): is primary.",
                    "exported": true
                },
                {
                    "name": "assigned_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: assigned.",
                    "exported": true
                },
                {
                    "name": "end_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: end.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "enum('active','inactive')",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_contact_notes",
            "description": "Collateral and contact notes: who was contacted, when, how and why.",
            "linked_to_patient_by": "patient_contact_notes.patient_id = patients.id",
            "files": [
                "tables/patient_contact_notes.json",
                "tables/patient_contact_notes.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "treatment_plan_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related treatment plan record.",
                    "exported": true
                },
                {
                    "name": "treatment_plan_type",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Treatment plan type.",
                    "exported": true
                },
                {
                    "name": "note_date",
                    "type": "date",
                    "nullable": false,
                    "description": "Date: note.",
                    "exported": true
                },
                {
                    "name": "contacted_at",
                    "type": "datetime",
                    "nullable": true,
                    "description": "Date/time: contacted.",
                    "exported": true
                },
                {
                    "name": "contacted_party_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Contacted party name.",
                    "exported": true
                },
                {
                    "name": "contacted_party_relationship",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Contacted party relationship.",
                    "exported": true
                },
                {
                    "name": "methods",
                    "type": "json",
                    "nullable": true,
                    "description": "Methods.",
                    "exported": true
                },
                {
                    "name": "method_other",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Method other.",
                    "exported": true
                },
                {
                    "name": "reason",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Reason.",
                    "exported": true
                },
                {
                    "name": "payer_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Payer name.",
                    "exported": true
                },
                {
                    "name": "payer_member_id",
                    "type": "text",
                    "nullable": true,
                    "description": "Identifier of the related payer member record.",
                    "exported": true
                },
                {
                    "name": "contact_note",
                    "type": "longtext",
                    "nullable": false,
                    "description": "Contact note.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "signed_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Signed by.",
                    "exported": true
                },
                {
                    "name": "signature_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Signature name.",
                    "exported": true
                },
                {
                    "name": "signature_credential",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Signature credential.",
                    "exported": true
                },
                {
                    "name": "signed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: signed.",
                    "exported": true
                },
                {
                    "name": "provider_signature",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Provider signature.",
                    "exported": true
                },
                {
                    "name": "provider_signed_at",
                    "type": "datetime",
                    "nullable": true,
                    "description": "Date/time: provider signed.",
                    "exported": true
                },
                {
                    "name": "client_signature",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Client signature.",
                    "exported": true
                },
                {
                    "name": "client_signed_at",
                    "type": "datetime",
                    "nullable": true,
                    "description": "Date/time: client signed.",
                    "exported": true
                },
                {
                    "name": "client_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Client name.",
                    "exported": true
                },
                {
                    "name": "supervisor_signature",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Supervisor signature.",
                    "exported": true
                },
                {
                    "name": "supervisor_signed_at",
                    "type": "datetime",
                    "nullable": true,
                    "description": "Date/time: supervisor signed.",
                    "exported": true
                },
                {
                    "name": "supervisor_signed_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Supervisor signed by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_diagnoses",
            "description": "Problem list / diagnoses with ICD-10-CM and SNOMED CT codes, onset and diagnosis dates, clinical and verification status.",
            "linked_to_patient_by": "patient_diagnoses.patient_id = patients.id",
            "files": [
                "tables/patient_diagnoses.json",
                "tables/patient_diagnoses.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "icd10_code",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Icd10 code.",
                    "exported": true
                },
                {
                    "name": "snomed_code",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Snomed code.",
                    "exported": true
                },
                {
                    "name": "description",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Description.",
                    "exported": true
                },
                {
                    "name": "type",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Type.",
                    "exported": true
                },
                {
                    "name": "clinical_status",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Clinical status.",
                    "exported": true
                },
                {
                    "name": "onset_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: onset.",
                    "exported": true
                },
                {
                    "name": "diagnosis_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: diagnosis.",
                    "exported": true
                },
                {
                    "name": "diagnosed_by",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Diagnosed by.",
                    "exported": true
                },
                {
                    "name": "active",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Active.",
                    "exported": true
                },
                {
                    "name": "reconciliation_status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Reconciliation status.",
                    "exported": true
                },
                {
                    "name": "last_reconciled_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: last reconciled.",
                    "exported": true
                },
                {
                    "name": "reconciled_by",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Reconciled by.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                },
                {
                    "name": "verification_status",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Verification status.",
                    "exported": true
                },
                {
                    "name": "severity",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Severity.",
                    "exported": true
                },
                {
                    "name": "category",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Category.",
                    "exported": true
                },
                {
                    "name": "last_reviewed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: last reviewed.",
                    "exported": true
                },
                {
                    "name": "source",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Source.",
                    "exported": true
                },
                {
                    "name": "icd9_code",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Icd9 code.",
                    "exported": true
                },
                {
                    "name": "icd9_description",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Icd9 description.",
                    "exported": true
                },
                {
                    "name": "snomed_description",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Snomed description.",
                    "exported": true
                },
                {
                    "name": "encounter_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related encounter record.",
                    "exported": true
                },
                {
                    "name": "diagnosed_by_staff_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the related diagnosed by staff record.",
                    "exported": true
                },
                {
                    "name": "drfirst_rcopia_id",
                    "type": "varchar(100)",
                    "nullable": true,
                    "description": "Identifier of the related drfirst rcopia record.",
                    "exported": true
                },
                {
                    "name": "drfirst_sync_status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Drfirst sync status.",
                    "exported": true
                },
                {
                    "name": "drfirst_synced_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: drfirst synced.",
                    "exported": true
                },
                {
                    "name": "drfirst_last_error",
                    "type": "text",
                    "nullable": true,
                    "description": "Drfirst last error.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_discharge_notes",
            "description": "Discharge notes: reason, diagnosis at discharge, services provided, aftercare and referrals.",
            "linked_to_patient_by": "patient_discharge_notes.patient_id = patients.id",
            "files": [
                "tables/patient_discharge_notes.json",
                "tables/patient_discharge_notes.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "treatment_plan_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related treatment plan record.",
                    "exported": true
                },
                {
                    "name": "treatment_plan_type",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Treatment plan type.",
                    "exported": true
                },
                {
                    "name": "note_date",
                    "type": "date",
                    "nullable": false,
                    "description": "Date: note.",
                    "exported": true
                },
                {
                    "name": "admission_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: admission.",
                    "exported": true
                },
                {
                    "name": "discharge_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: discharge.",
                    "exported": true
                },
                {
                    "name": "discharge_type",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Discharge type.",
                    "exported": true
                },
                {
                    "name": "discharge_reason",
                    "type": "text",
                    "nullable": true,
                    "description": "Discharge reason.",
                    "exported": true
                },
                {
                    "name": "presenting_problem",
                    "type": "text",
                    "nullable": true,
                    "description": "Presenting problem.",
                    "exported": true
                },
                {
                    "name": "diagnosis_at_discharge",
                    "type": "text",
                    "nullable": true,
                    "description": "Diagnosis at discharge.",
                    "exported": true
                },
                {
                    "name": "services_provided",
                    "type": "text",
                    "nullable": true,
                    "description": "Services provided.",
                    "exported": true
                },
                {
                    "name": "progress_summary",
                    "type": "text",
                    "nullable": true,
                    "description": "Progress summary.",
                    "exported": true
                },
                {
                    "name": "goal_status",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Goal status.",
                    "exported": true
                },
                {
                    "name": "medications_at_discharge",
                    "type": "text",
                    "nullable": true,
                    "description": "Medications at discharge.",
                    "exported": true
                },
                {
                    "name": "aftercare_plan",
                    "type": "text",
                    "nullable": true,
                    "description": "Aftercare plan.",
                    "exported": true
                },
                {
                    "name": "referrals",
                    "type": "text",
                    "nullable": true,
                    "description": "Referrals.",
                    "exported": true
                },
                {
                    "name": "follow_up_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: follow up.",
                    "exported": true
                },
                {
                    "name": "risk_at_discharge",
                    "type": "text",
                    "nullable": true,
                    "description": "Risk at discharge.",
                    "exported": true
                },
                {
                    "name": "client_participated",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Client participated.",
                    "exported": true
                },
                {
                    "name": "discharge_note",
                    "type": "longtext",
                    "nullable": false,
                    "description": "Discharge note.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "signed_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Signed by.",
                    "exported": true
                },
                {
                    "name": "signature_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Signature name.",
                    "exported": true
                },
                {
                    "name": "signature_credential",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Signature credential.",
                    "exported": true
                },
                {
                    "name": "signed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: signed.",
                    "exported": true
                },
                {
                    "name": "provider_signature",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Provider signature.",
                    "exported": true
                },
                {
                    "name": "provider_signed_at",
                    "type": "datetime",
                    "nullable": true,
                    "description": "Date/time: provider signed.",
                    "exported": true
                },
                {
                    "name": "client_signature",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Client signature.",
                    "exported": true
                },
                {
                    "name": "client_signed_at",
                    "type": "datetime",
                    "nullable": true,
                    "description": "Date/time: client signed.",
                    "exported": true
                },
                {
                    "name": "client_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Client name.",
                    "exported": true
                },
                {
                    "name": "supervisor_signature",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Supervisor signature.",
                    "exported": true
                },
                {
                    "name": "supervisor_signed_at",
                    "type": "datetime",
                    "nullable": true,
                    "description": "Date/time: supervisor signed.",
                    "exported": true
                },
                {
                    "name": "supervisor_signed_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Supervisor signed by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_discharge_plans",
            "description": "Discharge and transition plans.",
            "linked_to_patient_by": "patient_discharge_plans.patient_id = patients.id",
            "files": [
                "tables/patient_discharge_plans.json",
                "tables/patient_discharge_plans.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "treatment_plan_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related treatment plan record.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "planned_discharge_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: planned discharge.",
                    "exported": true
                },
                {
                    "name": "actual_discharge_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: actual discharge.",
                    "exported": true
                },
                {
                    "name": "reason_for_discharge",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Reason for discharge.",
                    "exported": true
                },
                {
                    "name": "final_risk_level",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Final risk level.",
                    "exported": true
                },
                {
                    "name": "final_outcome_summary",
                    "type": "text",
                    "nullable": true,
                    "description": "Final outcome summary.",
                    "exported": true
                },
                {
                    "name": "final_treatment_plan_status",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Final treatment plan status.",
                    "exported": true
                },
                {
                    "name": "aftercare_referrals",
                    "type": "text",
                    "nullable": true,
                    "description": "Aftercare referrals.",
                    "exported": true
                },
                {
                    "name": "medication_status",
                    "type": "text",
                    "nullable": true,
                    "description": "Medication status.",
                    "exported": true
                },
                {
                    "name": "crisis_plan_at_discharge",
                    "type": "text",
                    "nullable": true,
                    "description": "Crisis plan at discharge.",
                    "exported": true
                },
                {
                    "name": "patient_notified_at",
                    "type": "date",
                    "nullable": true,
                    "description": "Date/time: patient notified.",
                    "exported": true
                },
                {
                    "name": "provider_notified_at",
                    "type": "date",
                    "nullable": true,
                    "description": "Date/time: provider notified.",
                    "exported": true
                },
                {
                    "name": "records_sent_at",
                    "type": "date",
                    "nullable": true,
                    "description": "Date/time: records sent.",
                    "exported": true
                },
                {
                    "name": "records_sent_to",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Records sent to.",
                    "exported": true
                },
                {
                    "name": "follow_up_recommendations",
                    "type": "text",
                    "nullable": true,
                    "description": "Follow up recommendations.",
                    "exported": true
                },
                {
                    "name": "readmission_risk",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Readmission risk.",
                    "exported": true
                },
                {
                    "name": "post_discharge_follow_up_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: post discharge follow up.",
                    "exported": true
                },
                {
                    "name": "post_discharge_follow_up_completed",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Post discharge follow up completed.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_documents",
            "description": "Documents uploaded to the chart. The files themselves are under attachments/patient_documents/.",
            "linked_to_patient_by": "patient_documents.patient_id = patients.id",
            "files": [
                "tables/patient_documents.json",
                "tables/patient_documents.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "patient_insurance_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related patient insurance record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "category",
                    "type": "varchar(50)",
                    "nullable": false,
                    "description": "Category.",
                    "exported": true
                },
                {
                    "name": "title",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Title.",
                    "exported": true
                },
                {
                    "name": "original_filename",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Original filename.",
                    "exported": true
                },
                {
                    "name": "file_path",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "File path.",
                    "exported": true,
                    "file_reference": true
                },
                {
                    "name": "mime_type",
                    "type": "varchar(100)",
                    "nullable": true,
                    "description": "Mime type.",
                    "exported": true
                },
                {
                    "name": "file_size",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "File size.",
                    "exported": true
                },
                {
                    "name": "description",
                    "type": "text",
                    "nullable": true,
                    "description": "Description.",
                    "exported": true
                },
                {
                    "name": "uploaded_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Uploaded by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_emergency_contacts",
            "description": "Emergency contacts and authorized persons.",
            "linked_to_patient_by": "patient_emergency_contacts.patient_id = patients.id",
            "files": [
                "tables/patient_emergency_contacts.json",
                "tables/patient_emergency_contacts.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "name",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Name.",
                    "exported": true
                },
                {
                    "name": "relationship",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Relationship.",
                    "exported": true
                },
                {
                    "name": "phone",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Phone.",
                    "exported": true
                },
                {
                    "name": "phone_alt",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Phone alt.",
                    "exported": true
                },
                {
                    "name": "email",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Email.",
                    "exported": true
                },
                {
                    "name": "address",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Address.",
                    "exported": true
                },
                {
                    "name": "is_primary",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Flag (1 = yes, 0 = no): is primary.",
                    "exported": true
                },
                {
                    "name": "authorized_for_info",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Authorized for info.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_group_members",
            "description": "Group memberships.",
            "linked_to_patient_by": "patient_group_members.patient_id = patients.id",
            "files": [
                "tables/patient_group_members.json",
                "tables/patient_group_members.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "group_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related group record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "enrollment_date",
                    "type": "date",
                    "nullable": false,
                    "description": "Date: enrollment.",
                    "exported": true
                },
                {
                    "name": "discharge_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: discharge.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "enum('active','discharged','on_hold')",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_incidents",
            "description": "Incident and event reports involving the patient.",
            "linked_to_patient_by": "patient_incidents.patient_id = patients.id",
            "files": [
                "tables/patient_incidents.json",
                "tables/patient_incidents.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "occurred_at",
                    "type": "datetime",
                    "nullable": false,
                    "description": "Date/time: occurred.",
                    "exported": true
                },
                {
                    "name": "incident_type",
                    "type": "varchar(50)",
                    "nullable": false,
                    "description": "Incident type.",
                    "exported": true
                },
                {
                    "name": "severity",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Severity.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "location",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Location.",
                    "exported": true
                },
                {
                    "name": "description",
                    "type": "text",
                    "nullable": false,
                    "description": "Description.",
                    "exported": true
                },
                {
                    "name": "immediate_actions",
                    "type": "text",
                    "nullable": true,
                    "description": "Immediate actions.",
                    "exported": true
                },
                {
                    "name": "witnesses",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Witnesses.",
                    "exported": true
                },
                {
                    "name": "reported_by",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Reported by.",
                    "exported": true
                },
                {
                    "name": "mandated_reporting_required",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Mandated reporting required.",
                    "exported": true
                },
                {
                    "name": "mandated_reporting_filed_at",
                    "type": "date",
                    "nullable": true,
                    "description": "Date/time: mandated reporting filed.",
                    "exported": true
                },
                {
                    "name": "mandated_reporting_agency",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Mandated reporting agency.",
                    "exported": true
                },
                {
                    "name": "root_cause_analysis",
                    "type": "text",
                    "nullable": true,
                    "description": "Root cause analysis.",
                    "exported": true
                },
                {
                    "name": "corrective_action",
                    "type": "text",
                    "nullable": true,
                    "description": "Corrective action.",
                    "exported": true
                },
                {
                    "name": "follow_up_documentation",
                    "type": "text",
                    "nullable": true,
                    "description": "Follow up documentation.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_insurance",
            "description": "Health insurance coverage: payer, member and group numbers, subscriber, effective dates.",
            "linked_to_patient_by": "patient_insurance.patient_id = patients.id",
            "files": [
                "tables/patient_insurance.json",
                "tables/patient_insurance.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "insurance_type",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Insurance type.",
                    "exported": true
                },
                {
                    "name": "payer_name",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Payer name.",
                    "exported": true
                },
                {
                    "name": "payer_id",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Identifier of the related payer record.",
                    "exported": true
                },
                {
                    "name": "member_id",
                    "type": "text",
                    "nullable": true,
                    "description": "Identifier of the related member record.",
                    "exported": true
                },
                {
                    "name": "group_number",
                    "type": "text",
                    "nullable": true,
                    "description": "Group number.",
                    "exported": true
                },
                {
                    "name": "subscriber_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Subscriber name.",
                    "exported": true
                },
                {
                    "name": "subscriber_relationship",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Subscriber relationship.",
                    "exported": true
                },
                {
                    "name": "subscriber_dob",
                    "type": "date",
                    "nullable": true,
                    "description": "Subscriber dob.",
                    "exported": true
                },
                {
                    "name": "subscriber_gender",
                    "type": "char(1)",
                    "nullable": true,
                    "description": "Subscriber gender.",
                    "exported": true
                },
                {
                    "name": "effective_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: effective.",
                    "exported": true
                },
                {
                    "name": "termination_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: termination.",
                    "exported": true
                },
                {
                    "name": "copay",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Copay.",
                    "exported": true
                },
                {
                    "name": "deductible",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Deductible.",
                    "exported": true
                },
                {
                    "name": "requires_authorization",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Requires authorization.",
                    "exported": true
                },
                {
                    "name": "active",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Active.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_medications",
            "description": "Medication list and prescriptions: drug (RxNorm/NDC where coded), dose, route, frequency, dates, prescriber, pharmacy and adherence.",
            "linked_to_patient_by": "patient_medications.patient_id = patients.id",
            "files": [
                "tables/patient_medications.json",
                "tables/patient_medications.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "encounter_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related encounter record.",
                    "exported": true
                },
                {
                    "name": "fhir_intent",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Fhir intent.",
                    "exported": true
                },
                {
                    "name": "medication_name",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Medication name.",
                    "exported": true
                },
                {
                    "name": "dosage",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Dosage.",
                    "exported": true
                },
                {
                    "name": "frequency",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Frequency.",
                    "exported": true
                },
                {
                    "name": "route",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Route.",
                    "exported": true
                },
                {
                    "name": "prescribing_provider",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Prescribing provider.",
                    "exported": true
                },
                {
                    "name": "provider_staff_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the related provider staff record.",
                    "exported": true
                },
                {
                    "name": "preparer_staff_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the related preparer staff record.",
                    "exported": true
                },
                {
                    "name": "is_inpatient_medication",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Flag (1 = yes, 0 = no): is inpatient medication.",
                    "exported": true
                },
                {
                    "name": "history_source",
                    "type": "varchar(100)",
                    "nullable": true,
                    "description": "History source.",
                    "exported": true
                },
                {
                    "name": "source",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Source.",
                    "exported": true
                },
                {
                    "name": "has_scheduled_drug",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Flag (1 = yes, 0 = no): has scheduled drug.",
                    "exported": true
                },
                {
                    "name": "pharmacy",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Pharmacy.",
                    "exported": true
                },
                {
                    "name": "pharmacy_rcopia_id",
                    "type": "varchar(100)",
                    "nullable": true,
                    "description": "Identifier of the related pharmacy rcopia record.",
                    "exported": true
                },
                {
                    "name": "pharmacy_ncpdp_id",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Identifier of the related pharmacy ncpdp record.",
                    "exported": true
                },
                {
                    "name": "drug_rcopia_id",
                    "type": "varchar(100)",
                    "nullable": true,
                    "description": "Identifier of the related drug rcopia record.",
                    "exported": true
                },
                {
                    "name": "ndc_id",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Identifier of the related ndc record.",
                    "exported": true
                },
                {
                    "name": "first_databank_med_id",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Identifier of the related first databank med record.",
                    "exported": true
                },
                {
                    "name": "drug_rxnorm_id",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Identifier of the related drug rxnorm record.",
                    "exported": true
                },
                {
                    "name": "ingredient_rxnorm_ids",
                    "type": "json",
                    "nullable": true,
                    "description": "Ingredient rxnorm ids.",
                    "exported": true
                },
                {
                    "name": "ingredient_names",
                    "type": "json",
                    "nullable": true,
                    "description": "Ingredient names.",
                    "exported": true
                },
                {
                    "name": "terminology_version",
                    "type": "varchar(80)",
                    "nullable": true,
                    "description": "Terminology version.",
                    "exported": true
                },
                {
                    "name": "brand_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Brand name.",
                    "exported": true
                },
                {
                    "name": "generic_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Generic name.",
                    "exported": true
                },
                {
                    "name": "form",
                    "type": "varchar(100)",
                    "nullable": true,
                    "description": "Form.",
                    "exported": true
                },
                {
                    "name": "strength",
                    "type": "varchar(100)",
                    "nullable": true,
                    "description": "Strength.",
                    "exported": true
                },
                {
                    "name": "schedule",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Schedule.",
                    "exported": true
                },
                {
                    "name": "supply",
                    "type": "varchar(100)",
                    "nullable": true,
                    "description": "Supply.",
                    "exported": true
                },
                {
                    "name": "compound",
                    "type": "tinyint(1)",
                    "nullable": true,
                    "description": "Compound.",
                    "exported": true
                },
                {
                    "name": "dosage_instructions",
                    "type": "json",
                    "nullable": true,
                    "description": "Dosage instructions.",
                    "exported": true
                },
                {
                    "name": "patient_notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Patient notes.",
                    "exported": true
                },
                {
                    "name": "duration",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Duration.",
                    "exported": true
                },
                {
                    "name": "quantity",
                    "type": "decimal(12,4)",
                    "nullable": true,
                    "description": "Quantity.",
                    "exported": true
                },
                {
                    "name": "quantity_unit",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Quantity unit.",
                    "exported": true
                },
                {
                    "name": "refills",
                    "type": "smallint unsigned",
                    "nullable": true,
                    "description": "Refills.",
                    "exported": true
                },
                {
                    "name": "substitution_permitted",
                    "type": "tinyint(1)",
                    "nullable": true,
                    "description": "Substitution permitted.",
                    "exported": true
                },
                {
                    "name": "other_notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Other notes.",
                    "exported": true
                },
                {
                    "name": "comments",
                    "type": "text",
                    "nullable": true,
                    "description": "Comments.",
                    "exported": true
                },
                {
                    "name": "start_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: start.",
                    "exported": true
                },
                {
                    "name": "end_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: end.",
                    "exported": true
                },
                {
                    "name": "fill_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: fill.",
                    "exported": true
                },
                {
                    "name": "stop_reason",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Stop reason.",
                    "exported": true
                },
                {
                    "name": "active",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Active.",
                    "exported": true
                },
                {
                    "name": "reason",
                    "type": "text",
                    "nullable": true,
                    "description": "Reason.",
                    "exported": true
                },
                {
                    "name": "side_effects",
                    "type": "text",
                    "nullable": true,
                    "description": "Side effects.",
                    "exported": true
                },
                {
                    "name": "adherent",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Adherent.",
                    "exported": true
                },
                {
                    "name": "reconciliation_status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Reconciliation status.",
                    "exported": true
                },
                {
                    "name": "last_reconciled_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: last reconciled.",
                    "exported": true
                },
                {
                    "name": "reconciled_by",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Reconciled by.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "drfirst_rcopia_id",
                    "type": "varchar(100)",
                    "nullable": true,
                    "description": "Identifier of the related drfirst rcopia record.",
                    "exported": true
                },
                {
                    "name": "drfirst_sync_status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Drfirst sync status.",
                    "exported": true
                },
                {
                    "name": "drfirst_synced_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: drfirst synced.",
                    "exported": true
                },
                {
                    "name": "drfirst_last_error",
                    "type": "text",
                    "nullable": true,
                    "description": "Drfirst last error.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_messages",
            "description": "Secure messages between the patient and the practice.",
            "linked_to_patient_by": "patient_messages.patient_id = patients.id",
            "files": [
                "tables/patient_messages.json",
                "tables/patient_messages.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "sender_type",
                    "type": "enum('patient','staff')",
                    "nullable": false,
                    "description": "Sender type.",
                    "exported": true
                },
                {
                    "name": "sender_name",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Sender name.",
                    "exported": true
                },
                {
                    "name": "subject",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Subject.",
                    "exported": true
                },
                {
                    "name": "body",
                    "type": "text",
                    "nullable": false,
                    "description": "Body.",
                    "exported": true
                },
                {
                    "name": "is_read",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Flag (1 = yes, 0 = no): is read.",
                    "exported": true
                },
                {
                    "name": "read_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: read.",
                    "exported": true
                },
                {
                    "name": "parent_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related parent record.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_physical_records",
            "description": "Physical health records captured during visits (measurements and observations).",
            "linked_to_patient_by": "patient_physical_records.patient_id = patients.id",
            "files": [
                "tables/patient_physical_records.json",
                "tables/patient_physical_records.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "recorded_date",
                    "type": "date",
                    "nullable": false,
                    "description": "Date: recorded.",
                    "exported": true
                },
                {
                    "name": "height",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Height.",
                    "exported": true
                },
                {
                    "name": "weight",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Weight.",
                    "exported": true
                },
                {
                    "name": "blood_pressure",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Blood pressure.",
                    "exported": true
                },
                {
                    "name": "heart_rate",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Heart rate.",
                    "exported": true
                },
                {
                    "name": "temperature",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Temperature.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "primary_care_provider",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Primary care provider.",
                    "exported": true
                },
                {
                    "name": "pregnancy_status",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Pregnancy status.",
                    "exported": true
                },
                {
                    "name": "chronic_conditions",
                    "type": "text",
                    "nullable": true,
                    "description": "Chronic conditions.",
                    "exported": true
                },
                {
                    "name": "dental_needs",
                    "type": "text",
                    "nullable": true,
                    "description": "Dental needs.",
                    "exported": true
                },
                {
                    "name": "vision_hearing_needs",
                    "type": "text",
                    "nullable": true,
                    "description": "Vision hearing needs.",
                    "exported": true
                },
                {
                    "name": "medical_referrals",
                    "type": "text",
                    "nullable": true,
                    "description": "Medical referrals.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_portal_documents",
            "description": "Documents shared through the patient portal. Files under attachments/patient_portal_documents/.",
            "linked_to_patient_by": "patient_portal_documents.patient_id = patients.id",
            "files": [
                "tables/patient_portal_documents.json",
                "tables/patient_portal_documents.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "document_type",
                    "type": "enum('insurance_card_front','insurance_card_back','photo_id_front','photo_id_back','other')",
                    "nullable": false,
                    "description": "Document type.",
                    "exported": true
                },
                {
                    "name": "file_name",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "File name.",
                    "exported": true
                },
                {
                    "name": "file_path",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "File path.",
                    "exported": true,
                    "file_reference": true
                },
                {
                    "name": "file_size",
                    "type": "int",
                    "nullable": true,
                    "description": "File size.",
                    "exported": true
                },
                {
                    "name": "uploaded_by_patient",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Uploaded by patient.",
                    "exported": true
                },
                {
                    "name": "reviewed",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Reviewed.",
                    "exported": true
                },
                {
                    "name": "reviewed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: reviewed.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_programs",
            "description": "Program enrollments / episodes of care.",
            "linked_to_patient_by": "patient_programs.patient_id = patients.id",
            "files": [
                "tables/patient_programs.json",
                "tables/patient_programs.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "program_type",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Program type.",
                    "exported": true
                },
                {
                    "name": "program_code",
                    "type": "varchar(60)",
                    "nullable": true,
                    "description": "Program code.",
                    "exported": true
                },
                {
                    "name": "jurisdiction",
                    "type": "varchar(10)",
                    "nullable": true,
                    "description": "Jurisdiction.",
                    "exported": true
                },
                {
                    "name": "payer_key",
                    "type": "varchar(60)",
                    "nullable": true,
                    "description": "Payer key.",
                    "exported": true
                },
                {
                    "name": "episode_number",
                    "type": "int unsigned",
                    "nullable": false,
                    "description": "Episode number.",
                    "exported": true
                },
                {
                    "name": "referral_source",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Referral source.",
                    "exported": true
                },
                {
                    "name": "referral_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: referral.",
                    "exported": true
                },
                {
                    "name": "urgency",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Urgency.",
                    "exported": true
                },
                {
                    "name": "presenting_need",
                    "type": "text",
                    "nullable": true,
                    "description": "Presenting need.",
                    "exported": true
                },
                {
                    "name": "recommended_level",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Recommended level.",
                    "exported": true
                },
                {
                    "name": "authorized_level",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Authorized level.",
                    "exported": true
                },
                {
                    "name": "patient_selected_level",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Patient selected level.",
                    "exported": true
                },
                {
                    "name": "actual_level",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Actual level.",
                    "exported": true
                },
                {
                    "name": "level_variance_reason",
                    "type": "text",
                    "nullable": true,
                    "description": "Level variance reason.",
                    "exported": true
                },
                {
                    "name": "admission_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: admission.",
                    "exported": true
                },
                {
                    "name": "discharge_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: discharge.",
                    "exported": true
                },
                {
                    "name": "discharge_reason",
                    "type": "varchar(60)",
                    "nullable": true,
                    "description": "Discharge reason.",
                    "exported": true
                },
                {
                    "name": "discharge_outcome",
                    "type": "varchar(60)",
                    "nullable": true,
                    "description": "Discharge outcome.",
                    "exported": true
                },
                {
                    "name": "discharge_summary",
                    "type": "text",
                    "nullable": true,
                    "description": "Discharge summary.",
                    "exported": true
                },
                {
                    "name": "transferred_from_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related transferred from record.",
                    "exported": true
                },
                {
                    "name": "transferred_to_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related transferred to record.",
                    "exported": true
                },
                {
                    "name": "review_due_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: review due.",
                    "exported": true
                },
                {
                    "name": "last_review_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: last review.",
                    "exported": true
                },
                {
                    "name": "review_interval_days",
                    "type": "smallint unsigned",
                    "nullable": true,
                    "description": "Review interval days.",
                    "exported": true
                },
                {
                    "name": "intensity_target",
                    "type": "decimal(6,2)",
                    "nullable": true,
                    "description": "Intensity target.",
                    "exported": true
                },
                {
                    "name": "intensity_period",
                    "type": "varchar(10)",
                    "nullable": true,
                    "description": "Intensity period.",
                    "exported": true
                },
                {
                    "name": "status_history",
                    "type": "json",
                    "nullable": true,
                    "description": "Status history.",
                    "exported": true
                },
                {
                    "name": "pathway_overrides",
                    "type": "json",
                    "nullable": true,
                    "description": "Pathway overrides.",
                    "exported": true
                },
                {
                    "name": "assigned_assessments",
                    "type": "json",
                    "nullable": true,
                    "description": "Assigned assessments.",
                    "exported": true
                },
                {
                    "name": "episode_data",
                    "type": "json",
                    "nullable": true,
                    "description": "Episode data.",
                    "exported": true
                },
                {
                    "name": "program_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Program name.",
                    "exported": true
                },
                {
                    "name": "enrollment_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: enrollment.",
                    "exported": true
                },
                {
                    "name": "end_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: end.",
                    "exported": true
                },
                {
                    "name": "assigned_staff_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related assigned staff record.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "authorization_number",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Authorization number.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_progress_note_versions",
            "description": "Prior versions of progress notes, kept when a note is edited after signing.",
            "linked_to_patient_by": "patient_progress_note_versions.patient_id = patients.id",
            "files": [
                "tables/patient_progress_note_versions.json",
                "tables/patient_progress_note_versions.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "progress_note_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related progress note record.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "version_number",
                    "type": "int unsigned",
                    "nullable": false,
                    "description": "Version number.",
                    "exported": true
                },
                {
                    "name": "content_hash",
                    "type": "char(64)",
                    "nullable": false,
                    "description": "Content hash.",
                    "exported": true
                },
                {
                    "name": "snapshot_json",
                    "type": "json",
                    "nullable": false,
                    "description": "Snapshot json.",
                    "exported": true
                },
                {
                    "name": "submitted_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Submitted by.",
                    "exported": true
                },
                {
                    "name": "submitted_at",
                    "type": "timestamp",
                    "nullable": false,
                    "description": "Date/time: submitted.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_progress_notes",
            "description": "Clinical progress notes for services delivered: service date/location, observations, interventions, response, progress, signatures.",
            "linked_to_patient_by": "patient_progress_notes.patient_id = patients.id",
            "files": [
                "tables/patient_progress_notes.json",
                "tables/patient_progress_notes.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "treatment_plan_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related treatment plan record.",
                    "exported": true
                },
                {
                    "name": "goal_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related goal record.",
                    "exported": true
                },
                {
                    "name": "objective_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related objective record.",
                    "exported": true
                },
                {
                    "name": "intervention_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related intervention record.",
                    "exported": true
                },
                {
                    "name": "progress_note_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related progress note record.",
                    "exported": true
                },
                {
                    "name": "profession",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Profession.",
                    "exported": true
                },
                {
                    "name": "format_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related format record.",
                    "exported": true
                },
                {
                    "name": "answers",
                    "type": "json",
                    "nullable": true,
                    "description": "Answers.",
                    "exported": true
                },
                {
                    "name": "note_type",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Note type.",
                    "exported": true
                },
                {
                    "name": "service_date",
                    "type": "date",
                    "nullable": false,
                    "description": "Date: service.",
                    "exported": true
                },
                {
                    "name": "service_location",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Service location.",
                    "exported": true
                },
                {
                    "name": "what_happened",
                    "type": "longtext",
                    "nullable": true,
                    "description": "What happened.",
                    "exported": true
                },
                {
                    "name": "client_statement",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Client statement.",
                    "exported": true
                },
                {
                    "name": "staff_observation",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Staff observation.",
                    "exported": true
                },
                {
                    "name": "intervention_provided",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Intervention provided.",
                    "exported": true
                },
                {
                    "name": "client_response",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Client response.",
                    "exported": true
                },
                {
                    "name": "progress_made",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Progress made.",
                    "exported": true
                },
                {
                    "name": "next_step",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Next step.",
                    "exported": true
                },
                {
                    "name": "service_code_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related service code record.",
                    "exported": true
                },
                {
                    "name": "session_started_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: session started.",
                    "exported": true
                },
                {
                    "name": "session_ended_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: session ended.",
                    "exported": true
                },
                {
                    "name": "duration_minutes",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Duration minutes.",
                    "exported": true
                },
                {
                    "name": "billing_units",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Billing units.",
                    "exported": true
                },
                {
                    "name": "location_lat",
                    "type": "decimal(10,7)",
                    "nullable": true,
                    "description": "Location lat.",
                    "exported": true
                },
                {
                    "name": "location_lng",
                    "type": "decimal(10,7)",
                    "nullable": true,
                    "description": "Location lng.",
                    "exported": true
                },
                {
                    "name": "location_address",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Location address.",
                    "exported": true
                },
                {
                    "name": "ai_generated_note",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Ai generated note.",
                    "exported": true
                },
                {
                    "name": "progress_status",
                    "type": "enum('not_started','in_progress','no_progress','minimal','moderate','significant','achieved','regression')",
                    "nullable": false,
                    "description": "Progress status.",
                    "exported": true
                },
                {
                    "name": "quality_score",
                    "type": "tinyint unsigned",
                    "nullable": true,
                    "description": "Quality score.",
                    "exported": true
                },
                {
                    "name": "review_status",
                    "type": "enum('pending','approved','returned','not_approved','flagged','non_billable','billed')",
                    "nullable": false,
                    "description": "Review status.",
                    "exported": true
                },
                {
                    "name": "reviewed_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Reviewed by.",
                    "exported": true
                },
                {
                    "name": "reviewed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: reviewed.",
                    "exported": true
                },
                {
                    "name": "supervisor_comment",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Supervisor comment.",
                    "exported": true
                },
                {
                    "name": "billed_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Billed by.",
                    "exported": true
                },
                {
                    "name": "billed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: billed.",
                    "exported": true
                },
                {
                    "name": "attestation_confirmed",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Attestation confirmed.",
                    "exported": true
                },
                {
                    "name": "attested_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: attested.",
                    "exported": true
                },
                {
                    "name": "submitted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: submitted.",
                    "exported": true
                },
                {
                    "name": "current_note_version_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related current note version record.",
                    "exported": true
                },
                {
                    "name": "current_billing_readiness_review_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related current billing readiness review record.",
                    "exported": true
                },
                {
                    "name": "billing_readiness_status",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Billing readiness status.",
                    "exported": true
                },
                {
                    "name": "billing_hold",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Billing hold.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "rendering_staff_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related rendering staff record.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                },
                {
                    "name": "guest_token",
                    "type": "varchar(64)",
                    "nullable": true,
                    "description": "Guest token.",
                    "exported": false,
                    "withheld_reason": "Authentication credential; not electronic health information."
                },
                {
                    "name": "guest_token_expires_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: guest token expires.",
                    "exported": false,
                    "withheld_reason": "Authentication credential; not electronic health information."
                },
                {
                    "name": "client_signature",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Client signature.",
                    "exported": true
                },
                {
                    "name": "client_signed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: client signed.",
                    "exported": true
                },
                {
                    "name": "client_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Client name.",
                    "exported": true
                },
                {
                    "name": "provider_signature",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Provider signature.",
                    "exported": true
                },
                {
                    "name": "provider_signed_at",
                    "type": "datetime",
                    "nullable": true,
                    "description": "Date/time: provider signed.",
                    "exported": true
                },
                {
                    "name": "supervisor_signature",
                    "type": "text",
                    "nullable": true,
                    "description": "Supervisor signature.",
                    "exported": true
                },
                {
                    "name": "supervisor_signed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: supervisor signed.",
                    "exported": true
                },
                {
                    "name": "supervisor_signed_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Supervisor signed by.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_referrals",
            "description": "Referrals to and from other providers.",
            "linked_to_patient_by": "patient_referrals.patient_id = patients.id",
            "files": [
                "tables/patient_referrals.json",
                "tables/patient_referrals.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "client_name",
                    "type": "varchar(150)",
                    "nullable": false,
                    "description": "Client name.",
                    "exported": true
                },
                {
                    "name": "client_phone",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Client phone.",
                    "exported": true
                },
                {
                    "name": "client_email",
                    "type": "varchar(150)",
                    "nullable": true,
                    "description": "Client email.",
                    "exported": true
                },
                {
                    "name": "referral_source",
                    "type": "varchar(150)",
                    "nullable": true,
                    "description": "Referral source.",
                    "exported": true
                },
                {
                    "name": "referral_source_type",
                    "type": "enum('provider','self','family','community','court','school','insurance','other')",
                    "nullable": false,
                    "description": "Referral source type.",
                    "exported": true
                },
                {
                    "name": "referral_date",
                    "type": "date",
                    "nullable": false,
                    "description": "Date: referral.",
                    "exported": true
                },
                {
                    "name": "program_type",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Program type.",
                    "exported": true
                },
                {
                    "name": "stage",
                    "type": "enum('received','insurance_pending','insurance_verified','intake_scheduled','intake_completed','assessment','treatment_plan','admitted','active','declined','no_show','lost')",
                    "nullable": false,
                    "description": "Stage.",
                    "exported": true
                },
                {
                    "name": "assigned_to",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Assigned to.",
                    "exported": true
                },
                {
                    "name": "authorized_by",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Authorized by.",
                    "exported": true
                },
                {
                    "name": "sent_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: sent.",
                    "exported": true
                },
                {
                    "name": "consent_included",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Consent included.",
                    "exported": true
                },
                {
                    "name": "records_sent",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Records sent.",
                    "exported": true
                },
                {
                    "name": "receipt_acknowledged_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: receipt acknowledged.",
                    "exported": true
                },
                {
                    "name": "appointment_scheduled",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Appointment scheduled.",
                    "exported": true
                },
                {
                    "name": "appointment_completed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: appointment completed.",
                    "exported": true
                },
                {
                    "name": "consult_report_received",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Consult report received.",
                    "exported": true
                },
                {
                    "name": "consult_report_reviewed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: consult report reviewed.",
                    "exported": true
                },
                {
                    "name": "recommendations_incorporated",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Recommendations incorporated.",
                    "exported": true
                },
                {
                    "name": "closure_reason",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Closure reason.",
                    "exported": true
                },
                {
                    "name": "insurance_status",
                    "type": "enum('unknown','verified','inactive','pending')",
                    "nullable": false,
                    "description": "Insurance status.",
                    "exported": true
                },
                {
                    "name": "contact_attempts",
                    "type": "tinyint unsigned",
                    "nullable": false,
                    "description": "Contact attempts.",
                    "exported": true
                },
                {
                    "name": "last_contact_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: last contact.",
                    "exported": true
                },
                {
                    "name": "documents_received",
                    "type": "json",
                    "nullable": true,
                    "description": "Documents received.",
                    "exported": true
                },
                {
                    "name": "documents_missing",
                    "type": "json",
                    "nullable": true,
                    "description": "Documents missing.",
                    "exported": true
                },
                {
                    "name": "outcome",
                    "type": "enum('admitted','declined_by_client','declined_by_clinic','transferred','no_show','lost_to_followup')",
                    "nullable": true,
                    "description": "Outcome.",
                    "exported": true
                },
                {
                    "name": "outcome_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: outcome.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_risk_assessments",
            "description": "Risk and safety assessments and safety plans.",
            "linked_to_patient_by": "patient_risk_assessments.patient_id = patients.id",
            "files": [
                "tables/patient_risk_assessments.json",
                "tables/patient_risk_assessments.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "assessment_date",
                    "type": "date",
                    "nullable": false,
                    "description": "Date: assessment.",
                    "exported": true
                },
                {
                    "name": "overall_risk_level",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Overall risk level.",
                    "exported": true
                },
                {
                    "name": "suicide_risk",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Suicide risk.",
                    "exported": true
                },
                {
                    "name": "self_harm_risk",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Self harm risk.",
                    "exported": true
                },
                {
                    "name": "homicide_violence_risk",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Homicide violence risk.",
                    "exported": true
                },
                {
                    "name": "psychosis_risk",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Psychosis risk.",
                    "exported": true
                },
                {
                    "name": "substance_overdose_risk",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Substance overdose risk.",
                    "exported": true
                },
                {
                    "name": "abuse_neglect_concerns",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Abuse neglect concerns.",
                    "exported": true
                },
                {
                    "name": "warning_signs",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Warning signs.",
                    "exported": true
                },
                {
                    "name": "triggers",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Triggers.",
                    "exported": true
                },
                {
                    "name": "coping_strategies",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Coping strategies.",
                    "exported": true
                },
                {
                    "name": "protective_factors",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Protective factors.",
                    "exported": true
                },
                {
                    "name": "safety_plan_steps",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Safety plan steps.",
                    "exported": true
                },
                {
                    "name": "preferred_hospital",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Preferred hospital.",
                    "exported": true
                },
                {
                    "name": "preferred_crisis_center",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Preferred crisis center.",
                    "exported": true
                },
                {
                    "name": "additional_crisis_contacts",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Additional crisis contacts.",
                    "exported": true
                },
                {
                    "name": "assessed_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Assessed by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_screener_schedules",
            "description": "Scheduled screenings/assessments for the patient.",
            "linked_to_patient_by": "patient_screener_schedules.patient_id = patients.id",
            "files": [
                "tables/patient_screener_schedules.json",
                "tables/patient_screener_schedules.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "assessment_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related assessment record.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "assigned_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Assigned by.",
                    "exported": true
                },
                {
                    "name": "frequency_days",
                    "type": "int unsigned",
                    "nullable": false,
                    "description": "Frequency days.",
                    "exported": true
                },
                {
                    "name": "last_administered_at",
                    "type": "date",
                    "nullable": true,
                    "description": "Date/time: last administered.",
                    "exported": true
                },
                {
                    "name": "next_due_at",
                    "type": "date",
                    "nullable": true,
                    "description": "Date/time: next due.",
                    "exported": true
                },
                {
                    "name": "is_active",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Flag (1 = yes, 0 = no): is active.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_symptoms",
            "description": "Symptoms reported or observed.",
            "linked_to_patient_by": "patient_symptoms.patient_id = patients.id",
            "files": [
                "tables/patient_symptoms.json",
                "tables/patient_symptoms.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "symptom",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Symptom.",
                    "exported": true
                },
                {
                    "name": "onset_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: onset.",
                    "exported": true
                },
                {
                    "name": "severity",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Severity.",
                    "exported": true
                },
                {
                    "name": "duration",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Duration.",
                    "exported": true
                },
                {
                    "name": "frequency",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Frequency.",
                    "exported": true
                },
                {
                    "name": "aggravating_factors",
                    "type": "text",
                    "nullable": true,
                    "description": "Aggravating factors.",
                    "exported": true
                },
                {
                    "name": "relieving_factors",
                    "type": "text",
                    "nullable": true,
                    "description": "Relieving factors.",
                    "exported": true
                },
                {
                    "name": "associated_symptoms",
                    "type": "text",
                    "nullable": true,
                    "description": "Associated symptoms.",
                    "exported": true
                },
                {
                    "name": "reported_by",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Reported by.",
                    "exported": true
                },
                {
                    "name": "escalated",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Escalated.",
                    "exported": true
                },
                {
                    "name": "provider_notified",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Provider notified.",
                    "exported": true
                },
                {
                    "name": "provider_notified_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: provider notified.",
                    "exported": true
                },
                {
                    "name": "outcome",
                    "type": "text",
                    "nullable": true,
                    "description": "Outcome.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "source",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Source.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_treatment_plans",
            "description": "Treatment / care plans: problems, strengths, barriers, goals summary, review dates and signatures.",
            "linked_to_patient_by": "patient_treatment_plans.patient_id = patients.id",
            "files": [
                "tables/patient_treatment_plans.json",
                "tables/patient_treatment_plans.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "program_type",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Program type.",
                    "exported": true
                },
                {
                    "name": "merged_program_types",
                    "type": "json",
                    "nullable": true,
                    "description": "Merged program types.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "plan_type",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Plan type.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "enum('draft','active','under_review','completed','discontinued')",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "snap",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Snap.",
                    "exported": true
                },
                {
                    "name": "follow_up_outcomes",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Follow up outcomes.",
                    "exported": true
                },
                {
                    "name": "referral",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Referral.",
                    "exported": true
                },
                {
                    "name": "is_inactive",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Flag (1 = yes, 0 = no): is inactive.",
                    "exported": true
                },
                {
                    "name": "diagnosis_summary",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Diagnosis summary.",
                    "exported": true
                },
                {
                    "name": "general_goals",
                    "type": "text",
                    "nullable": true,
                    "description": "General goals.",
                    "exported": true
                },
                {
                    "name": "client_goal",
                    "type": "text",
                    "nullable": true,
                    "description": "Client goal.",
                    "exported": true
                },
                {
                    "name": "problems",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Problems.",
                    "exported": true
                },
                {
                    "name": "impairments",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Impairments.",
                    "exported": true
                },
                {
                    "name": "strengths",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Strengths.",
                    "exported": true
                },
                {
                    "name": "strengths_description",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Strengths description.",
                    "exported": true
                },
                {
                    "name": "symptom_free_period_description",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Symptom free period description.",
                    "exported": true
                },
                {
                    "name": "needs",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Needs.",
                    "exported": true
                },
                {
                    "name": "abilities",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Abilities.",
                    "exported": true
                },
                {
                    "name": "preferences",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Preferences.",
                    "exported": true
                },
                {
                    "name": "barriers",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Barriers.",
                    "exported": true
                },
                {
                    "name": "barriers_description",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Barriers description.",
                    "exported": true
                },
                {
                    "name": "risk_factors",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Risk factors.",
                    "exported": true
                },
                {
                    "name": "start_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: start.",
                    "exported": true
                },
                {
                    "name": "target_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: target.",
                    "exported": true
                },
                {
                    "name": "end_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: end.",
                    "exported": true
                },
                {
                    "name": "duration_days",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Duration days.",
                    "exported": true
                },
                {
                    "name": "review_frequency_days",
                    "type": "int",
                    "nullable": false,
                    "description": "Review frequency days.",
                    "exported": true
                },
                {
                    "name": "next_review_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: next review.",
                    "exported": true
                },
                {
                    "name": "discharge_criteria",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Discharge criteria.",
                    "exported": true
                },
                {
                    "name": "discharge_note",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Discharge note.",
                    "exported": true
                },
                {
                    "name": "contact_note",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Contact note.",
                    "exported": true
                },
                {
                    "name": "source_assessment_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related source assessment record.",
                    "exported": true
                },
                {
                    "name": "renewed_from_plan_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related renewed from plan record.",
                    "exported": true
                },
                {
                    "name": "ai_drafted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: ai drafted.",
                    "exported": true
                },
                {
                    "name": "treatment_note_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related treatment note record.",
                    "exported": true
                },
                {
                    "name": "manage_treatment_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related manage treatment record.",
                    "exported": true
                },
                {
                    "name": "profession",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Profession.",
                    "exported": true
                },
                {
                    "name": "format",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Format.",
                    "exported": true
                },
                {
                    "name": "answers",
                    "type": "json",
                    "nullable": true,
                    "description": "Answers.",
                    "exported": true
                },
                {
                    "name": "ai_generated_plan",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Ai generated plan.",
                    "exported": true
                },
                {
                    "name": "ai_clinical_note",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Ai clinical note.",
                    "exported": true
                },
                {
                    "name": "ai_note_generated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: ai note generated.",
                    "exported": true
                },
                {
                    "name": "progress_note_suggestions",
                    "type": "json",
                    "nullable": true,
                    "description": "Progress note suggestions.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "clinician_signature",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Clinician signature.",
                    "exported": true
                },
                {
                    "name": "clinician_signed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: clinician signed.",
                    "exported": true
                },
                {
                    "name": "clinician_signed_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Clinician signed by.",
                    "exported": true
                },
                {
                    "name": "client_signature",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Client signature.",
                    "exported": true
                },
                {
                    "name": "client_signed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: client signed.",
                    "exported": true
                },
                {
                    "name": "client_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Client name.",
                    "exported": true
                },
                {
                    "name": "supervisor_signature",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Supervisor signature.",
                    "exported": true
                },
                {
                    "name": "supervisor_signed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: supervisor signed.",
                    "exported": true
                },
                {
                    "name": "supervisor_signed_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Supervisor signed by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                },
                {
                    "name": "guest_token",
                    "type": "varchar(64)",
                    "nullable": true,
                    "description": "Guest token.",
                    "exported": false,
                    "withheld_reason": "Authentication credential; not electronic health information."
                },
                {
                    "name": "guest_token_expires_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: guest token expires.",
                    "exported": false,
                    "withheld_reason": "Authentication credential; not electronic health information."
                }
            ]
        },
        {
            "table": "patient_users",
            "description": "Staff members linked to the patient.",
            "linked_to_patient_by": "patient_users.patient_id = patients.id",
            "files": [
                "tables/patient_users.json",
                "tables/patient_users.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "user_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related user record.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_vitals",
            "description": "Vital signs: blood pressure, pulse, respiratory rate, temperature, SpO2, height, weight, BMI, pain and related measurements.",
            "linked_to_patient_by": "patient_vitals.patient_id = patients.id",
            "files": [
                "tables/patient_vitals.json",
                "tables/patient_vitals.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "encounter_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related encounter record.",
                    "exported": true
                },
                {
                    "name": "systolic_bp",
                    "type": "smallint unsigned",
                    "nullable": true,
                    "description": "Systolic bp.",
                    "exported": true
                },
                {
                    "name": "diastolic_bp",
                    "type": "smallint unsigned",
                    "nullable": true,
                    "description": "Diastolic bp.",
                    "exported": true
                },
                {
                    "name": "pulse",
                    "type": "smallint unsigned",
                    "nullable": true,
                    "description": "Pulse.",
                    "exported": true
                },
                {
                    "name": "respiratory_rate",
                    "type": "smallint unsigned",
                    "nullable": true,
                    "description": "Respiratory rate.",
                    "exported": true
                },
                {
                    "name": "temperature",
                    "type": "decimal(5,2)",
                    "nullable": true,
                    "description": "Temperature.",
                    "exported": true
                },
                {
                    "name": "temperature_unit",
                    "type": "varchar(4)",
                    "nullable": false,
                    "description": "Temperature unit.",
                    "exported": true
                },
                {
                    "name": "oxygen_saturation",
                    "type": "decimal(5,2)",
                    "nullable": true,
                    "description": "Oxygen saturation.",
                    "exported": true
                },
                {
                    "name": "height",
                    "type": "decimal(6,2)",
                    "nullable": true,
                    "description": "Height.",
                    "exported": true
                },
                {
                    "name": "height_unit",
                    "type": "varchar(4)",
                    "nullable": false,
                    "description": "Height unit.",
                    "exported": true
                },
                {
                    "name": "weight",
                    "type": "decimal(6,2)",
                    "nullable": true,
                    "description": "Weight.",
                    "exported": true
                },
                {
                    "name": "weight_unit",
                    "type": "varchar(4)",
                    "nullable": false,
                    "description": "Weight unit.",
                    "exported": true
                },
                {
                    "name": "bmi",
                    "type": "decimal(5,2)",
                    "nullable": true,
                    "description": "Bmi.",
                    "exported": true
                },
                {
                    "name": "pain_score",
                    "type": "tinyint unsigned",
                    "nullable": true,
                    "description": "Pain score.",
                    "exported": true
                },
                {
                    "name": "blood_glucose",
                    "type": "decimal(6,2)",
                    "nullable": true,
                    "description": "Blood glucose.",
                    "exported": true
                },
                {
                    "name": "waist_circumference",
                    "type": "decimal(6,2)",
                    "nullable": true,
                    "description": "Waist circumference.",
                    "exported": true
                },
                {
                    "name": "orthostatic_systolic",
                    "type": "smallint unsigned",
                    "nullable": true,
                    "description": "Orthostatic systolic.",
                    "exported": true
                },
                {
                    "name": "orthostatic_diastolic",
                    "type": "smallint unsigned",
                    "nullable": true,
                    "description": "Orthostatic diastolic.",
                    "exported": true
                },
                {
                    "name": "head_circumference",
                    "type": "decimal(6,2)",
                    "nullable": true,
                    "description": "Head circumference.",
                    "exported": true
                },
                {
                    "name": "oxygen_flow_rate",
                    "type": "decimal(5,2)",
                    "nullable": true,
                    "description": "Oxygen flow rate.",
                    "exported": true
                },
                {
                    "name": "supplemental_oxygen",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Supplemental oxygen.",
                    "exported": true
                },
                {
                    "name": "measured_at",
                    "type": "timestamp",
                    "nullable": false,
                    "description": "Date/time: measured.",
                    "exported": true
                },
                {
                    "name": "recorded_by_type",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Recorded by type.",
                    "exported": true
                },
                {
                    "name": "recorded_by_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related recorded by record.",
                    "exported": true
                },
                {
                    "name": "location",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Location.",
                    "exported": true
                },
                {
                    "name": "patient_position",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Patient position.",
                    "exported": true
                },
                {
                    "name": "method",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Method.",
                    "exported": true
                },
                {
                    "name": "device_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Device name.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "source",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Source.",
                    "exported": true
                },
                {
                    "name": "corrected_from",
                    "type": "json",
                    "nullable": true,
                    "description": "Corrected from.",
                    "exported": true
                },
                {
                    "name": "correction_reason",
                    "type": "text",
                    "nullable": true,
                    "description": "Correction reason.",
                    "exported": true
                },
                {
                    "name": "corrected_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Corrected by.",
                    "exported": true
                },
                {
                    "name": "corrected_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: corrected.",
                    "exported": true
                },
                {
                    "name": "reviewed_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Reviewed by.",
                    "exported": true
                },
                {
                    "name": "reviewed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: reviewed.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                },
                {
                    "name": "weight_for_height_percentile",
                    "type": "decimal(5,2)",
                    "nullable": true,
                    "description": "Weight for height percentile.",
                    "exported": true
                },
                {
                    "name": "bmi_for_age_percentile",
                    "type": "decimal(5,2)",
                    "nullable": true,
                    "description": "Bmi for age percentile.",
                    "exported": true
                },
                {
                    "name": "head_circumference_percentile",
                    "type": "decimal(5,2)",
                    "nullable": true,
                    "description": "Head circumference percentile.",
                    "exported": true
                }
            ]
        },
        {
            "table": "physical_care_plans",
            "description": "Physical health care plans.",
            "linked_to_patient_by": "physical_care_plans.patient_id = patients.id",
            "files": [
                "tables/physical_care_plans.json",
                "tables/physical_care_plans.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "need_problem",
                    "type": "text",
                    "nullable": false,
                    "description": "Need problem.",
                    "exported": true
                },
                {
                    "name": "goal",
                    "type": "text",
                    "nullable": true,
                    "description": "Goal.",
                    "exported": true
                },
                {
                    "name": "intervention",
                    "type": "text",
                    "nullable": true,
                    "description": "Intervention.",
                    "exported": true
                },
                {
                    "name": "responsibility",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Responsibility.",
                    "exported": true
                },
                {
                    "name": "responsible_discipline",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Responsible discipline.",
                    "exported": true
                },
                {
                    "name": "referral",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Referral.",
                    "exported": true
                },
                {
                    "name": "target_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: target.",
                    "exported": true
                },
                {
                    "name": "barriers",
                    "type": "text",
                    "nullable": true,
                    "description": "Barriers.",
                    "exported": true
                },
                {
                    "name": "patient_preferences",
                    "type": "text",
                    "nullable": true,
                    "description": "Patient preferences.",
                    "exported": true
                },
                {
                    "name": "progress",
                    "type": "text",
                    "nullable": true,
                    "description": "Progress.",
                    "exported": true
                },
                {
                    "name": "outcome",
                    "type": "text",
                    "nullable": true,
                    "description": "Outcome.",
                    "exported": true
                },
                {
                    "name": "review_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: review.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "source",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Source.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "preventive_care_items",
            "description": "Preventive care and screening items.",
            "linked_to_patient_by": "preventive_care_items.patient_id = patients.id",
            "files": [
                "tables/preventive_care_items.json",
                "tables/preventive_care_items.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "measure_key",
                    "type": "varchar(60)",
                    "nullable": false,
                    "description": "Measure key.",
                    "exported": true
                },
                {
                    "name": "measure_label",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Measure label.",
                    "exported": true
                },
                {
                    "name": "loinc_code",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Loinc code.",
                    "exported": true
                },
                {
                    "name": "last_completed_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: last completed.",
                    "exported": true
                },
                {
                    "name": "next_due_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: next due.",
                    "exported": true
                },
                {
                    "name": "interval_months",
                    "type": "smallint unsigned",
                    "nullable": true,
                    "description": "Interval months.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(24)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "completed_where",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Completed where.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "source",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Source.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "procedures",
            "description": "Procedures with CPT/HCPCS/SNOMED codes, dates, provider and outcome.",
            "linked_to_patient_by": "procedures.patient_id = patients.id",
            "files": [
                "tables/procedures.json",
                "tables/procedures.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "procedure_name",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Procedure name.",
                    "exported": true
                },
                {
                    "name": "cpt_code",
                    "type": "varchar(10)",
                    "nullable": true,
                    "description": "Cpt code.",
                    "exported": true
                },
                {
                    "name": "hcpcs_code",
                    "type": "varchar(10)",
                    "nullable": true,
                    "description": "Hcpcs code.",
                    "exported": true
                },
                {
                    "name": "snomed_code",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Snomed code.",
                    "exported": true
                },
                {
                    "name": "performed_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: performed.",
                    "exported": true
                },
                {
                    "name": "indication",
                    "type": "text",
                    "nullable": true,
                    "description": "Indication.",
                    "exported": true
                },
                {
                    "name": "performing_provider",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Performing provider.",
                    "exported": true
                },
                {
                    "name": "facility",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Facility.",
                    "exported": true
                },
                {
                    "name": "outcome",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Outcome.",
                    "exported": true
                },
                {
                    "name": "complications",
                    "type": "text",
                    "nullable": true,
                    "description": "Complications.",
                    "exported": true
                },
                {
                    "name": "related_diagnosis_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related related diagnosis record.",
                    "exported": true
                },
                {
                    "name": "report_document",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Report document.",
                    "exported": true,
                    "file_reference": true
                },
                {
                    "name": "follow_up_instructions",
                    "type": "text",
                    "nullable": true,
                    "description": "Follow up instructions.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "verification_status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Verification status.",
                    "exported": true
                },
                {
                    "name": "source",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Source.",
                    "exported": true
                },
                {
                    "name": "recorded_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Recorded by.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "report_summary_obligations",
            "description": "Records of report summary obligations linked to the patient.",
            "linked_to_patient_by": "report_summary_obligations.patient_id = patients.id",
            "files": [
                "tables/report_summary_obligations.json",
                "tables/report_summary_obligations.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "patient_program_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related patient program record.",
                    "exported": true
                },
                {
                    "name": "program_type",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Program type.",
                    "exported": true
                },
                {
                    "name": "month",
                    "type": "date",
                    "nullable": false,
                    "description": "Month.",
                    "exported": true
                },
                {
                    "name": "eligible_from",
                    "type": "date",
                    "nullable": false,
                    "description": "Eligible from.",
                    "exported": true
                },
                {
                    "name": "eligible_to",
                    "type": "date",
                    "nullable": false,
                    "description": "Eligible to.",
                    "exported": true
                },
                {
                    "name": "partial_month",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Partial month.",
                    "exported": true
                },
                {
                    "name": "due_at",
                    "type": "datetime",
                    "nullable": false,
                    "description": "Date/time: due.",
                    "exported": true
                },
                {
                    "name": "policy_version",
                    "type": "varchar(40)",
                    "nullable": false,
                    "description": "Policy version.",
                    "exported": true
                },
                {
                    "name": "owner_staff_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related owner staff record.",
                    "exported": true
                },
                {
                    "name": "summary_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related summary record.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "is_late",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Flag (1 = yes, 0 = no): is late.",
                    "exported": true
                },
                {
                    "name": "evidence_notes",
                    "type": "int unsigned",
                    "nullable": false,
                    "description": "Evidence notes.",
                    "exported": true
                },
                {
                    "name": "built_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: built.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "rpm_alert_events",
            "description": "Records of rpm alert events linked to the patient.",
            "linked_to_patient_by": "rpm_alert_events.patient_id = patients.id",
            "files": [
                "tables/rpm_alert_events.json",
                "tables/rpm_alert_events.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "alert_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related alert record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "event_type",
                    "type": "varchar(40)",
                    "nullable": false,
                    "description": "Event type.",
                    "exported": true
                },
                {
                    "name": "from_status",
                    "type": "varchar(24)",
                    "nullable": true,
                    "description": "From status.",
                    "exported": true
                },
                {
                    "name": "to_status",
                    "type": "varchar(24)",
                    "nullable": true,
                    "description": "To status.",
                    "exported": true
                },
                {
                    "name": "actor_staff_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the related actor staff record.",
                    "exported": true
                },
                {
                    "name": "actor_user_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related actor user record.",
                    "exported": true
                },
                {
                    "name": "source_type",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Source type.",
                    "exported": true
                },
                {
                    "name": "source_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related source record.",
                    "exported": true
                },
                {
                    "name": "contact_method",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Contact method.",
                    "exported": true
                },
                {
                    "name": "contact_outcome",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Contact outcome.",
                    "exported": true
                },
                {
                    "name": "note",
                    "type": "text",
                    "nullable": true,
                    "description": "Note.",
                    "exported": true
                },
                {
                    "name": "metadata",
                    "type": "json",
                    "nullable": true,
                    "description": "Metadata.",
                    "exported": true
                },
                {
                    "name": "idempotency_key",
                    "type": "varchar(100)",
                    "nullable": true,
                    "description": "Idempotency key.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": false,
                    "description": "Date/time the row was created.",
                    "exported": true
                }
            ]
        },
        {
            "table": "rpm_alert_sources",
            "description": "Records of rpm alert sources linked to the patient.",
            "linked_to_patient_by": "rpm_alert_sources.patient_id = patients.id",
            "files": [
                "tables/rpm_alert_sources.json",
                "tables/rpm_alert_sources.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "alert_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related alert record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "source_type",
                    "type": "varchar(40)",
                    "nullable": false,
                    "description": "Source type.",
                    "exported": true
                },
                {
                    "name": "source_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related source record.",
                    "exported": true
                },
                {
                    "name": "source_key",
                    "type": "varchar(100)",
                    "nullable": false,
                    "description": "Source key.",
                    "exported": true
                },
                {
                    "name": "observed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: observed.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": false,
                    "description": "Date/time the row was created.",
                    "exported": true
                }
            ]
        },
        {
            "table": "rpm_alerts",
            "description": "Remote monitoring alerts.",
            "linked_to_patient_by": "rpm_alerts.patient_id = patients.id",
            "files": [
                "tables/rpm_alerts.json",
                "tables/rpm_alerts.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "enrollment_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related enrollment record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "checkin_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related checkin record.",
                    "exported": true
                },
                {
                    "name": "level",
                    "type": "enum('critical','high','medium','informational')",
                    "nullable": false,
                    "description": "Level.",
                    "exported": true
                },
                {
                    "name": "trigger_type",
                    "type": "varchar(60)",
                    "nullable": false,
                    "description": "Trigger type.",
                    "exported": true
                },
                {
                    "name": "title",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Title.",
                    "exported": true
                },
                {
                    "name": "body",
                    "type": "text",
                    "nullable": true,
                    "description": "Body.",
                    "exported": true
                },
                {
                    "name": "acknowledged_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: acknowledged.",
                    "exported": true
                },
                {
                    "name": "acknowledged_by",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Acknowledged by.",
                    "exported": true
                },
                {
                    "name": "resolved_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: resolved.",
                    "exported": true
                },
                {
                    "name": "resolution_note",
                    "type": "text",
                    "nullable": true,
                    "description": "Resolution note.",
                    "exported": true
                },
                {
                    "name": "escalated_to_supervisor",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Escalated to supervisor.",
                    "exported": true
                },
                {
                    "name": "escalated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: escalated.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "severity_level",
                    "type": "varchar(2)",
                    "nullable": false,
                    "description": "Severity level.",
                    "exported": true
                },
                {
                    "name": "suggested_severity_level",
                    "type": "varchar(2)",
                    "nullable": false,
                    "description": "Suggested severity level.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(24)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "owner_staff_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the related owner staff record.",
                    "exported": true
                },
                {
                    "name": "backup_staff_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the related backup staff record.",
                    "exported": true
                },
                {
                    "name": "due_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: due.",
                    "exported": true
                },
                {
                    "name": "resolved_by",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Resolved by.",
                    "exported": true
                },
                {
                    "name": "disposition",
                    "type": "varchar(60)",
                    "nullable": true,
                    "description": "Disposition.",
                    "exported": true
                },
                {
                    "name": "source_count",
                    "type": "int unsigned",
                    "nullable": false,
                    "description": "Source count.",
                    "exported": true
                },
                {
                    "name": "escalation_level",
                    "type": "tinyint unsigned",
                    "nullable": false,
                    "description": "Escalation level.",
                    "exported": true
                },
                {
                    "name": "version",
                    "type": "int unsigned",
                    "nullable": false,
                    "description": "Version.",
                    "exported": true
                },
                {
                    "name": "technical_escalation",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Technical escalation.",
                    "exported": true
                },
                {
                    "name": "severity_override_reason",
                    "type": "varchar(500)",
                    "nullable": true,
                    "description": "Severity override reason.",
                    "exported": true
                },
                {
                    "name": "severity_overridden_by",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Severity overridden by.",
                    "exported": true
                },
                {
                    "name": "severity_overridden_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: severity overridden.",
                    "exported": true
                },
                {
                    "name": "contact_attempt_count",
                    "type": "smallint unsigned",
                    "nullable": false,
                    "description": "Contact attempt count.",
                    "exported": true
                },
                {
                    "name": "routed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: routed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "rpm_attendance_signals",
            "description": "Records of rpm attendance signals linked to the patient.",
            "linked_to_patient_by": "rpm_attendance_signals.patient_id = patients.id",
            "files": [
                "tables/rpm_attendance_signals.json",
                "tables/rpm_attendance_signals.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "enrollment_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related enrollment record.",
                    "exported": true
                },
                {
                    "name": "appointment_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related appointment record.",
                    "exported": true
                },
                {
                    "name": "appointment_type",
                    "type": "varchar(80)",
                    "nullable": false,
                    "description": "Appointment type.",
                    "exported": true
                },
                {
                    "name": "appointment_date",
                    "type": "date",
                    "nullable": false,
                    "description": "Date: appointment.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "missed_reason",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Missed reason.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "rpm_billing_evidence",
            "description": "Records of rpm billing evidence linked to the patient.",
            "linked_to_patient_by": "rpm_billing_evidence.patient_id = patients.id",
            "files": [
                "tables/rpm_billing_evidence.json",
                "tables/rpm_billing_evidence.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "enrollment_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related enrollment record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "service_month",
                    "type": "date",
                    "nullable": false,
                    "description": "Service month.",
                    "exported": true
                },
                {
                    "name": "pathway",
                    "type": "varchar(10)",
                    "nullable": false,
                    "description": "Pathway.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "device_days",
                    "type": "tinyint unsigned",
                    "nullable": false,
                    "description": "Device days.",
                    "exported": true
                },
                {
                    "name": "checkin_days",
                    "type": "tinyint unsigned",
                    "nullable": false,
                    "description": "Checkin days.",
                    "exported": true
                },
                {
                    "name": "management_minutes",
                    "type": "smallint unsigned",
                    "nullable": false,
                    "description": "Management minutes.",
                    "exported": true
                },
                {
                    "name": "interactive_count",
                    "type": "smallint unsigned",
                    "nullable": false,
                    "description": "Interactive count.",
                    "exported": true
                },
                {
                    "name": "codes",
                    "type": "json",
                    "nullable": true,
                    "description": "Codes.",
                    "exported": true
                },
                {
                    "name": "missing",
                    "type": "json",
                    "nullable": true,
                    "description": "Missing.",
                    "exported": true
                },
                {
                    "name": "rule_version",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Rule version.",
                    "exported": true
                },
                {
                    "name": "snapshot",
                    "type": "json",
                    "nullable": true,
                    "description": "Snapshot.",
                    "exported": true
                },
                {
                    "name": "assessed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: assessed.",
                    "exported": true
                },
                {
                    "name": "approved_by_user_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related approved by user record.",
                    "exported": true
                },
                {
                    "name": "approved_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: approved.",
                    "exported": true
                },
                {
                    "name": "claim_reference",
                    "type": "varchar(100)",
                    "nullable": true,
                    "description": "Claim reference.",
                    "exported": true
                },
                {
                    "name": "billed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: billed.",
                    "exported": true
                },
                {
                    "name": "reconciled_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: reconciled.",
                    "exported": true
                },
                {
                    "name": "status_note",
                    "type": "varchar(500)",
                    "nullable": true,
                    "description": "Status note.",
                    "exported": true
                },
                {
                    "name": "version",
                    "type": "int unsigned",
                    "nullable": false,
                    "description": "Version.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "rpm_billing_setups",
            "description": "Records of rpm billing setups linked to the patient.",
            "linked_to_patient_by": "rpm_billing_setups.patient_id = patients.id",
            "files": [
                "tables/rpm_billing_setups.json",
                "tables/rpm_billing_setups.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "enrollment_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related enrollment record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "pathway",
                    "type": "varchar(10)",
                    "nullable": false,
                    "description": "Pathway.",
                    "exported": true
                },
                {
                    "name": "patient_insurance_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related patient insurance record.",
                    "exported": true
                },
                {
                    "name": "payer_verified_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: payer verified.",
                    "exported": true
                },
                {
                    "name": "payer_verified_by_user_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related payer verified by user record.",
                    "exported": true
                },
                {
                    "name": "device_reference",
                    "type": "varchar(150)",
                    "nullable": true,
                    "description": "Device reference.",
                    "exported": true
                },
                {
                    "name": "qualifying_device",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Qualifying device.",
                    "exported": true
                },
                {
                    "name": "updated_by_user_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related updated by user record.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "rpm_checkin_links",
            "description": "Records of rpm checkin links linked to the patient.",
            "linked_to_patient_by": "rpm_checkin_links.patient_id = patients.id",
            "files": [
                "tables/rpm_checkin_links.json",
                "tables/rpm_checkin_links.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "enrollment_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related enrollment record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "token_hash",
                    "type": "char(64)",
                    "nullable": false,
                    "description": "Token hash.",
                    "exported": true
                },
                {
                    "name": "token_encrypted",
                    "type": "text",
                    "nullable": true,
                    "description": "Token encrypted.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "expires_at",
                    "type": "timestamp",
                    "nullable": false,
                    "description": "Date/time: expires.",
                    "exported": true
                },
                {
                    "name": "emailed_to",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Emailed to.",
                    "exported": true
                },
                {
                    "name": "emailed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: emailed.",
                    "exported": true
                },
                {
                    "name": "texted_to_last4",
                    "type": "char(4)",
                    "nullable": true,
                    "description": "Texted to last4.",
                    "exported": true
                },
                {
                    "name": "texted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: texted.",
                    "exported": true
                },
                {
                    "name": "used_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: used.",
                    "exported": true
                },
                {
                    "name": "checkin_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related checkin record.",
                    "exported": true
                },
                {
                    "name": "revoked_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: revoked.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "rpm_checkins",
            "description": "Remote monitoring check-ins.",
            "linked_to_patient_by": "rpm_checkins.patient_id = patients.id",
            "files": [
                "tables/rpm_checkins.json",
                "tables/rpm_checkins.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "enrollment_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related enrollment record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "checkin_date",
                    "type": "date",
                    "nullable": false,
                    "description": "Date: checkin.",
                    "exported": true
                },
                {
                    "name": "scale_version",
                    "type": "varchar(10)",
                    "nullable": false,
                    "description": "Scale version.",
                    "exported": true
                },
                {
                    "name": "template_version",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Template version.",
                    "exported": true
                },
                {
                    "name": "submitted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: submitted.",
                    "exported": true
                },
                {
                    "name": "timezone",
                    "type": "varchar(64)",
                    "nullable": true,
                    "description": "Timezone.",
                    "exported": true
                },
                {
                    "name": "channel",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Channel.",
                    "exported": true
                },
                {
                    "name": "help_request",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Help request.",
                    "exported": true
                },
                {
                    "name": "mood_rating",
                    "type": "tinyint",
                    "nullable": true,
                    "description": "Mood rating.",
                    "exported": true
                },
                {
                    "name": "anxiety_level",
                    "type": "tinyint",
                    "nullable": true,
                    "description": "Anxiety level.",
                    "exported": true
                },
                {
                    "name": "sleep_hours",
                    "type": "decimal(4,1)",
                    "nullable": true,
                    "description": "Sleep hours.",
                    "exported": true
                },
                {
                    "name": "sleep_quality",
                    "type": "enum('poor','fair','good','excellent')",
                    "nullable": true,
                    "description": "Sleep quality.",
                    "exported": true
                },
                {
                    "name": "sleep_rating",
                    "type": "tinyint unsigned",
                    "nullable": true,
                    "description": "Sleep rating.",
                    "exported": true
                },
                {
                    "name": "medication_taken",
                    "type": "enum('yes','no','partial','not_applicable')",
                    "nullable": true,
                    "description": "Medication taken.",
                    "exported": true
                },
                {
                    "name": "substance_use",
                    "type": "tinyint(1)",
                    "nullable": true,
                    "description": "Substance use.",
                    "exported": true
                },
                {
                    "name": "attended_appointment",
                    "type": "tinyint(1)",
                    "nullable": true,
                    "description": "Attended appointment.",
                    "exported": true
                },
                {
                    "name": "housing_stable",
                    "type": "tinyint(1)",
                    "nullable": true,
                    "description": "Housing stable.",
                    "exported": true
                },
                {
                    "name": "safety_concern",
                    "type": "tinyint(1)",
                    "nullable": true,
                    "description": "Safety concern.",
                    "exported": true
                },
                {
                    "name": "open_text",
                    "type": "text",
                    "nullable": true,
                    "description": "Open text.",
                    "exported": true
                },
                {
                    "name": "phq2_score",
                    "type": "tinyint",
                    "nullable": true,
                    "description": "Phq2 score.",
                    "exported": true
                },
                {
                    "name": "gad2_score",
                    "type": "tinyint",
                    "nullable": true,
                    "description": "Gad2 score.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "medication_side_effect",
                    "type": "varchar(500)",
                    "nullable": true,
                    "description": "Medication side effect.",
                    "exported": true
                },
                {
                    "name": "medication_side_effect_severity",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Medication side effect severity.",
                    "exported": true
                },
                {
                    "name": "medication_question",
                    "type": "varchar(500)",
                    "nullable": true,
                    "description": "Medication question.",
                    "exported": true
                }
            ]
        },
        {
            "table": "rpm_consent_events",
            "description": "Records of rpm consent events linked to the patient.",
            "linked_to_patient_by": "rpm_consent_events.patient_id = patients.id",
            "files": [
                "tables/rpm_consent_events.json",
                "tables/rpm_consent_events.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "enrollment_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related enrollment record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "event",
                    "type": "enum('pending_consent','enrolled','consent_resigned','paused','resumed','discontinued','declined')",
                    "nullable": false,
                    "description": "Event.",
                    "exported": true
                },
                {
                    "name": "event_date",
                    "type": "date",
                    "nullable": false,
                    "description": "Date: event.",
                    "exported": true
                },
                {
                    "name": "consent_version",
                    "type": "varchar(100)",
                    "nullable": true,
                    "description": "Consent version.",
                    "exported": true
                },
                {
                    "name": "signature",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Signature.",
                    "exported": true
                },
                {
                    "name": "note",
                    "type": "varchar(500)",
                    "nullable": true,
                    "description": "Note.",
                    "exported": true
                },
                {
                    "name": "recorded_by_staff_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the related recorded by staff record.",
                    "exported": true
                },
                {
                    "name": "recorded_by_user_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related recorded by user record.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "rpm_enrollments",
            "description": "Remote patient monitoring enrollments.",
            "linked_to_patient_by": "rpm_enrollments.patient_id = patients.id",
            "files": [
                "tables/rpm_enrollments.json",
                "tables/rpm_enrollments.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "assigned_staff_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the related assigned staff record.",
                    "exported": true
                },
                {
                    "name": "patient_program_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related patient program record.",
                    "exported": true
                },
                {
                    "name": "responsible_clinician_staff_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the related responsible clinician staff record.",
                    "exported": true
                },
                {
                    "name": "order_reference",
                    "type": "varchar(100)",
                    "nullable": true,
                    "description": "Order reference.",
                    "exported": true
                },
                {
                    "name": "order_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: order.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "enum('pending_consent','active','paused','discontinued','declined')",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "checkin_frequency",
                    "type": "enum('daily','every_2_days','weekly')",
                    "nullable": false,
                    "description": "Checkin frequency.",
                    "exported": true
                },
                {
                    "name": "patient_timezone",
                    "type": "varchar(64)",
                    "nullable": true,
                    "description": "Patient timezone.",
                    "exported": true
                },
                {
                    "name": "consent_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: consent.",
                    "exported": true
                },
                {
                    "name": "consent_signature",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Consent signature.",
                    "exported": true
                },
                {
                    "name": "consent_version",
                    "type": "varchar(100)",
                    "nullable": true,
                    "description": "Consent version.",
                    "exported": true
                },
                {
                    "name": "safety_screen_enabled",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Safety screen enabled.",
                    "exported": true
                },
                {
                    "name": "emergency_contact_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Emergency contact name.",
                    "exported": true
                },
                {
                    "name": "emergency_contact_phone",
                    "type": "varchar(50)",
                    "nullable": true,
                    "description": "Emergency contact phone.",
                    "exported": true
                },
                {
                    "name": "discontinued_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: discontinued.",
                    "exported": true
                },
                {
                    "name": "discontinued_reason",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Discontinued reason.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "open_patient_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related open patient record.",
                    "exported": true
                }
            ]
        },
        {
            "table": "rpm_events",
            "description": "Records of rpm events linked to the patient.",
            "linked_to_patient_by": "rpm_events.patient_id = patients.id",
            "files": [
                "tables/rpm_events.json",
                "tables/rpm_events.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "event_uuid",
                    "type": "char(36)",
                    "nullable": false,
                    "description": "Event uuid.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "enrollment_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related enrollment record.",
                    "exported": true
                },
                {
                    "name": "event_type",
                    "type": "varchar(60)",
                    "nullable": false,
                    "description": "Event type.",
                    "exported": true
                },
                {
                    "name": "source_type",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Source type.",
                    "exported": true
                },
                {
                    "name": "source_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related source record.",
                    "exported": true
                },
                {
                    "name": "idempotency_key",
                    "type": "varchar(150)",
                    "nullable": false,
                    "description": "Idempotency key.",
                    "exported": true
                },
                {
                    "name": "actor_staff_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the related actor staff record.",
                    "exported": true
                },
                {
                    "name": "actor_user_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related actor user record.",
                    "exported": true
                },
                {
                    "name": "ruleset_version",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Ruleset version.",
                    "exported": true
                },
                {
                    "name": "payload",
                    "type": "json",
                    "nullable": true,
                    "description": "Payload.",
                    "exported": true
                },
                {
                    "name": "occurred_at",
                    "type": "timestamp",
                    "nullable": false,
                    "description": "Date/time: occurred.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": false,
                    "description": "Date/time the row was created.",
                    "exported": true
                }
            ]
        },
        {
            "table": "rpm_followup_tasks",
            "description": "Records of rpm followup tasks linked to the patient.",
            "linked_to_patient_by": "rpm_followup_tasks.patient_id = patients.id",
            "files": [
                "tables/rpm_followup_tasks.json",
                "tables/rpm_followup_tasks.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "enrollment_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related enrollment record.",
                    "exported": true
                },
                {
                    "name": "alert_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related alert record.",
                    "exported": true
                },
                {
                    "name": "source_event_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related source event record.",
                    "exported": true
                },
                {
                    "name": "task_type",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Task type.",
                    "exported": true
                },
                {
                    "name": "role",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Role.",
                    "exported": true
                },
                {
                    "name": "title",
                    "type": "varchar(200)",
                    "nullable": false,
                    "description": "Title.",
                    "exported": true
                },
                {
                    "name": "owner_staff_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the related owner staff record.",
                    "exported": true
                },
                {
                    "name": "backup_staff_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the related backup staff record.",
                    "exported": true
                },
                {
                    "name": "due_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: due.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "outcome",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Outcome.",
                    "exported": true
                },
                {
                    "name": "outcome_note",
                    "type": "text",
                    "nullable": true,
                    "description": "Outcome note.",
                    "exported": true
                },
                {
                    "name": "attempt_count",
                    "type": "smallint unsigned",
                    "nullable": false,
                    "description": "Attempt count.",
                    "exported": true
                },
                {
                    "name": "closed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: closed.",
                    "exported": true
                },
                {
                    "name": "closed_by_staff_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the related closed by staff record.",
                    "exported": true
                },
                {
                    "name": "idempotency_key",
                    "type": "varchar(150)",
                    "nullable": false,
                    "description": "Idempotency key.",
                    "exported": true
                },
                {
                    "name": "version",
                    "type": "int unsigned",
                    "nullable": false,
                    "description": "Version.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "rpm_medication_signals",
            "description": "Records of rpm medication signals linked to the patient.",
            "linked_to_patient_by": "rpm_medication_signals.patient_id = patients.id",
            "files": [
                "tables/rpm_medication_signals.json",
                "tables/rpm_medication_signals.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "enrollment_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related enrollment record.",
                    "exported": true
                },
                {
                    "name": "alert_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related alert record.",
                    "exported": true
                },
                {
                    "name": "source_type",
                    "type": "varchar(40)",
                    "nullable": false,
                    "description": "Source type.",
                    "exported": true
                },
                {
                    "name": "source_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related source record.",
                    "exported": true
                },
                {
                    "name": "signal_type",
                    "type": "varchar(40)",
                    "nullable": false,
                    "description": "Signal type.",
                    "exported": true
                },
                {
                    "name": "source_key",
                    "type": "varchar(150)",
                    "nullable": false,
                    "description": "Source key.",
                    "exported": true
                },
                {
                    "name": "severity",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Severity.",
                    "exported": true
                },
                {
                    "name": "medication_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Medication name.",
                    "exported": true
                },
                {
                    "name": "detail",
                    "type": "text",
                    "nullable": true,
                    "description": "Detail.",
                    "exported": true
                },
                {
                    "name": "fill_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: fill.",
                    "exported": true
                },
                {
                    "name": "supply_days",
                    "type": "smallint unsigned",
                    "nullable": true,
                    "description": "Supply days.",
                    "exported": true
                },
                {
                    "name": "observed_at",
                    "type": "timestamp",
                    "nullable": false,
                    "description": "Date/time: observed.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "rpm_monitoring_plans",
            "description": "Records of rpm monitoring plans linked to the patient.",
            "linked_to_patient_by": "rpm_monitoring_plans.patient_id = patients.id",
            "files": [
                "tables/rpm_monitoring_plans.json",
                "tables/rpm_monitoring_plans.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "enrollment_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related enrollment record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "version",
                    "type": "int unsigned",
                    "nullable": false,
                    "description": "Version.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "enum('active','superseded')",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "checkin_frequency",
                    "type": "enum('daily','every_2_days','weekly')",
                    "nullable": false,
                    "description": "Checkin frequency.",
                    "exported": true
                },
                {
                    "name": "enabled_signals",
                    "type": "json",
                    "nullable": false,
                    "description": "Enabled signals.",
                    "exported": true
                },
                {
                    "name": "threshold_overrides",
                    "type": "json",
                    "nullable": true,
                    "description": "Threshold overrides.",
                    "exported": true
                },
                {
                    "name": "preferred_channel",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Preferred channel.",
                    "exported": true
                },
                {
                    "name": "preferred_language",
                    "type": "varchar(10)",
                    "nullable": false,
                    "description": "Preferred language.",
                    "exported": true
                },
                {
                    "name": "owner_staff_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the related owner staff record.",
                    "exported": true
                },
                {
                    "name": "backup_staff_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the related backup staff record.",
                    "exported": true
                },
                {
                    "name": "care_coordinator_staff_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the related care coordinator staff record.",
                    "exported": true
                },
                {
                    "name": "review_due_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: review due.",
                    "exported": true
                },
                {
                    "name": "change_reason",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Change reason.",
                    "exported": true
                },
                {
                    "name": "created_by_staff_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the related created by staff record.",
                    "exported": true
                },
                {
                    "name": "created_by_user_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related created by user record.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "rpm_openclaw_summaries",
            "description": "Records of rpm openclaw summaries linked to the patient.",
            "linked_to_patient_by": "rpm_openclaw_summaries.patient_id = patients.id",
            "files": [
                "tables/rpm_openclaw_summaries.json",
                "tables/rpm_openclaw_summaries.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "enrollment_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related enrollment record.",
                    "exported": true
                },
                {
                    "name": "summary_type",
                    "type": "varchar(30)",
                    "nullable": false,
                    "description": "Summary type.",
                    "exported": true
                },
                {
                    "name": "period_start",
                    "type": "date",
                    "nullable": false,
                    "description": "Period start.",
                    "exported": true
                },
                {
                    "name": "period_end",
                    "type": "date",
                    "nullable": false,
                    "description": "Period end.",
                    "exported": true
                },
                {
                    "name": "statements",
                    "type": "json",
                    "nullable": false,
                    "description": "Statements.",
                    "exported": true
                },
                {
                    "name": "suggested_owner_role",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Suggested owner role.",
                    "exported": true
                },
                {
                    "name": "agent_model",
                    "type": "varchar(100)",
                    "nullable": true,
                    "description": "Agent model.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "created_by_user_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related created by user record.",
                    "exported": true
                },
                {
                    "name": "reviewed_by_user_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related reviewed by user record.",
                    "exported": true
                },
                {
                    "name": "reviewed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: reviewed.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "rpm_recovery_profiles",
            "description": "Records of rpm recovery profiles linked to the patient.",
            "linked_to_patient_by": "rpm_recovery_profiles.patient_id = patients.id",
            "files": [
                "tables/rpm_recovery_profiles.json",
                "tables/rpm_recovery_profiles.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "enrollment_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related enrollment record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "version",
                    "type": "int unsigned",
                    "nullable": false,
                    "description": "Version.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "baseline_mood",
                    "type": "decimal(4,2)",
                    "nullable": true,
                    "description": "Baseline mood.",
                    "exported": true
                },
                {
                    "name": "baseline_anxiety",
                    "type": "decimal(4,2)",
                    "nullable": true,
                    "description": "Baseline anxiety.",
                    "exported": true
                },
                {
                    "name": "baseline_sleep",
                    "type": "decimal(4,2)",
                    "nullable": true,
                    "description": "Baseline sleep.",
                    "exported": true
                },
                {
                    "name": "baseline_observations",
                    "type": "smallint unsigned",
                    "nullable": true,
                    "description": "Baseline observations.",
                    "exported": true
                },
                {
                    "name": "baseline_from",
                    "type": "date",
                    "nullable": true,
                    "description": "Baseline from.",
                    "exported": true
                },
                {
                    "name": "baseline_to",
                    "type": "date",
                    "nullable": true,
                    "description": "Baseline to.",
                    "exported": true
                },
                {
                    "name": "baseline_rule_version",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Baseline rule version.",
                    "exported": true
                },
                {
                    "name": "warning_signs",
                    "type": "text",
                    "nullable": true,
                    "description": "Warning signs.",
                    "exported": true
                },
                {
                    "name": "preferred_supports",
                    "type": "text",
                    "nullable": true,
                    "description": "Preferred supports.",
                    "exported": true
                },
                {
                    "name": "patient_goals",
                    "type": "text",
                    "nullable": true,
                    "description": "Patient goals.",
                    "exported": true
                },
                {
                    "name": "escalation_preferences",
                    "type": "text",
                    "nullable": true,
                    "description": "Escalation preferences.",
                    "exported": true
                },
                {
                    "name": "change_reason",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Change reason.",
                    "exported": true
                },
                {
                    "name": "approved_by_staff_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the related approved by staff record.",
                    "exported": true
                },
                {
                    "name": "approved_by_user_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related approved by user record.",
                    "exported": true
                },
                {
                    "name": "approved_at",
                    "type": "timestamp",
                    "nullable": false,
                    "description": "Date/time: approved.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "rpm_time_logs",
            "description": "Time spent on remote monitoring.",
            "linked_to_patient_by": "rpm_time_logs.patient_id = patients.id",
            "files": [
                "tables/rpm_time_logs.json",
                "tables/rpm_time_logs.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "enrollment_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related enrollment record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "staff_id",
                    "type": "int unsigned",
                    "nullable": false,
                    "description": "Identifier of the related staff record.",
                    "exported": true
                },
                {
                    "name": "activity_type",
                    "type": "enum('checkin_review','alert_review','care_coordination','patient_education','other','interactive_communication')",
                    "nullable": false,
                    "description": "Activity type.",
                    "exported": true
                },
                {
                    "name": "minutes",
                    "type": "smallint unsigned",
                    "nullable": false,
                    "description": "Minutes.",
                    "exported": true
                },
                {
                    "name": "logged_date",
                    "type": "date",
                    "nullable": false,
                    "description": "Date: logged.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "rpm_treatment_plan_flags",
            "description": "Remote monitoring findings flagged for the treatment plan.",
            "linked_to_patient_by": "rpm_treatment_plan_flags.patient_id = patients.id",
            "files": [
                "tables/rpm_treatment_plan_flags.json",
                "tables/rpm_treatment_plan_flags.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "enrollment_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related enrollment record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "treatment_plan_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related treatment plan record.",
                    "exported": true
                },
                {
                    "name": "flag_type",
                    "type": "enum('sustained_low_mood','medication_nonadherence','housing_instability','assessment_mismatch','sustained_improvement','plan_review_due')",
                    "nullable": false,
                    "description": "Flag type.",
                    "exported": true
                },
                {
                    "name": "title",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Title.",
                    "exported": true
                },
                {
                    "name": "body",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Body.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "enum('open','reviewed','dismissed')",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "reviewed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: reviewed.",
                    "exported": true
                },
                {
                    "name": "reviewed_by",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Reviewed by.",
                    "exported": true
                },
                {
                    "name": "review_note",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Review note.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "rpm_vital_readings",
            "description": "Device readings from remote patient monitoring.",
            "linked_to_patient_by": "rpm_vital_readings.patient_id = patients.id",
            "files": [
                "tables/rpm_vital_readings.json",
                "tables/rpm_vital_readings.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "enrollment_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related enrollment record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "checkin_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related checkin record.",
                    "exported": true
                },
                {
                    "name": "vital_type",
                    "type": "enum('blood_pressure','heart_rate','spo2','weight','blood_glucose','temperature')",
                    "nullable": false,
                    "description": "Vital type.",
                    "exported": true
                },
                {
                    "name": "value_primary",
                    "type": "decimal(8,2)",
                    "nullable": false,
                    "description": "Value primary.",
                    "exported": true
                },
                {
                    "name": "value_secondary",
                    "type": "decimal(8,2)",
                    "nullable": true,
                    "description": "Value secondary.",
                    "exported": true
                },
                {
                    "name": "unit",
                    "type": "varchar(16)",
                    "nullable": false,
                    "description": "Unit.",
                    "exported": true
                },
                {
                    "name": "measurement_context",
                    "type": "varchar(32)",
                    "nullable": true,
                    "description": "Measurement context.",
                    "exported": true
                },
                {
                    "name": "source",
                    "type": "enum('manual','device')",
                    "nullable": false,
                    "description": "Source.",
                    "exported": true
                },
                {
                    "name": "device_name",
                    "type": "varchar(100)",
                    "nullable": true,
                    "description": "Device name.",
                    "exported": true
                },
                {
                    "name": "recorded_by_type",
                    "type": "enum('patient','staff')",
                    "nullable": false,
                    "description": "Recorded by type.",
                    "exported": true
                },
                {
                    "name": "recorded_by_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related recorded by record.",
                    "exported": true
                },
                {
                    "name": "reading_at",
                    "type": "datetime",
                    "nullable": false,
                    "description": "Date/time: reading.",
                    "exported": true
                },
                {
                    "name": "severity",
                    "type": "enum('normal','abnormal','critical')",
                    "nullable": false,
                    "description": "Severity.",
                    "exported": true
                },
                {
                    "name": "flagged",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Flagged.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "scheduled_services",
            "description": "Services scheduled for the patient.",
            "linked_to_patient_by": "scheduled_services.patient_id = patients.id",
            "files": [
                "tables/scheduled_services.json",
                "tables/scheduled_services.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "staff_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the related staff record.",
                    "exported": true
                },
                {
                    "name": "service_type",
                    "type": "enum('consent_form','screener','assessment','treatment_plan','intervention')",
                    "nullable": false,
                    "description": "Service type.",
                    "exported": true
                },
                {
                    "name": "item_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related item record.",
                    "exported": true
                },
                {
                    "name": "item_key",
                    "type": "varchar(100)",
                    "nullable": true,
                    "description": "Item key.",
                    "exported": true
                },
                {
                    "name": "plan_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related plan record.",
                    "exported": true
                },
                {
                    "name": "source_assessment_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related source assessment record.",
                    "exported": true
                },
                {
                    "name": "item_label",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Item label.",
                    "exported": true
                },
                {
                    "name": "doc_type_id",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Identifier of the related doc type record.",
                    "exported": true
                },
                {
                    "name": "profession",
                    "type": "varchar(120)",
                    "nullable": true,
                    "description": "Profession.",
                    "exported": true
                },
                {
                    "name": "format_id",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Identifier of the related format record.",
                    "exported": true
                },
                {
                    "name": "service_code_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related service code record.",
                    "exported": true
                },
                {
                    "name": "scheduled_date",
                    "type": "date",
                    "nullable": false,
                    "description": "Date: scheduled.",
                    "exported": true
                },
                {
                    "name": "start_time",
                    "type": "time",
                    "nullable": false,
                    "description": "Start time.",
                    "exported": true
                },
                {
                    "name": "end_time",
                    "type": "time",
                    "nullable": true,
                    "description": "End time.",
                    "exported": true
                },
                {
                    "name": "location",
                    "type": "varchar(60)",
                    "nullable": false,
                    "description": "Location.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "enum('scheduled','completed','cancelled','no_show')",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Notes.",
                    "exported": true
                },
                {
                    "name": "missed_note",
                    "type": "text",
                    "nullable": true,
                    "description": "Missed note.",
                    "exported": true
                },
                {
                    "name": "missed_note_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: missed note.",
                    "exported": true
                },
                {
                    "name": "missed_note_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Missed note by.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                },
                {
                    "name": "origin",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Origin.",
                    "exported": true
                },
                {
                    "name": "started_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: started.",
                    "exported": true
                },
                {
                    "name": "started_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Started by.",
                    "exported": true
                },
                {
                    "name": "activity_key",
                    "type": "varchar(64)",
                    "nullable": true,
                    "description": "Activity key.",
                    "exported": true
                },
                {
                    "name": "record_type",
                    "type": "varchar(40)",
                    "nullable": true,
                    "description": "Record type.",
                    "exported": true
                },
                {
                    "name": "record_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related record record.",
                    "exported": true
                }
            ]
        },
        {
            "table": "telehealth_sessions",
            "description": "Telehealth sessions.",
            "linked_to_patient_by": "telehealth_sessions.patient_id = patients.id",
            "files": [
                "tables/telehealth_sessions.json",
                "tables/telehealth_sessions.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "appointment_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related appointment record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "staff_id",
                    "type": "int unsigned",
                    "nullable": false,
                    "description": "Identifier of the related staff record.",
                    "exported": true
                },
                {
                    "name": "session_token",
                    "type": "varchar(64)",
                    "nullable": false,
                    "description": "Session token.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "enum('waiting','in_progress','completed','cancelled','no_show')",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "scheduled_at",
                    "type": "datetime",
                    "nullable": false,
                    "description": "Date/time: scheduled.",
                    "exported": true
                },
                {
                    "name": "started_at",
                    "type": "datetime",
                    "nullable": true,
                    "description": "Date/time: started.",
                    "exported": true
                },
                {
                    "name": "ended_at",
                    "type": "datetime",
                    "nullable": true,
                    "description": "Date/time: ended.",
                    "exported": true
                },
                {
                    "name": "duration_minutes",
                    "type": "smallint",
                    "nullable": true,
                    "description": "Duration minutes.",
                    "exported": true
                },
                {
                    "name": "payer",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Payer.",
                    "exported": true
                },
                {
                    "name": "is_eligible",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Flag (1 = yes, 0 = no): is eligible.",
                    "exported": true
                },
                {
                    "name": "eligibility_notes",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Eligibility notes.",
                    "exported": true
                },
                {
                    "name": "emergency_location",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Emergency location.",
                    "exported": true
                },
                {
                    "name": "chat_log",
                    "type": "json",
                    "nullable": true,
                    "description": "Chat log.",
                    "exported": true
                },
                {
                    "name": "note_draft",
                    "type": "text",
                    "nullable": true,
                    "description": "Note draft.",
                    "exported": true
                },
                {
                    "name": "note_linked_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related note linked record.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "treatment_plan_review_flags",
            "description": "Flags raised during treatment plan review.",
            "linked_to_patient_by": "treatment_plan_review_flags.patient_id = patients.id",
            "files": [
                "tables/treatment_plan_review_flags.json",
                "tables/treatment_plan_review_flags.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "treatment_plan_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related treatment plan record.",
                    "exported": true
                },
                {
                    "name": "goal_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related goal record.",
                    "exported": true
                },
                {
                    "name": "flag_type",
                    "type": "enum('stale_goal','goal_achieved','assessment_worsened')",
                    "nullable": false,
                    "description": "Flag type.",
                    "exported": true
                },
                {
                    "name": "title",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Title.",
                    "exported": true
                },
                {
                    "name": "body",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Body.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "enum('open','reviewed','dismissed')",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "reviewed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: reviewed.",
                    "exported": true
                },
                {
                    "name": "reviewed_by",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Reviewed by.",
                    "exported": true
                },
                {
                    "name": "review_note",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Review note.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "visits",
            "description": "Field visits (location-verified service visits).",
            "linked_to_patient_by": "visits.patient_id = patients.id",
            "files": [
                "tables/visits.json",
                "tables/visits.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "user_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related user record.",
                    "exported": true
                },
                {
                    "name": "latitude",
                    "type": "decimal(10,8)",
                    "nullable": true,
                    "description": "Latitude.",
                    "exported": true
                },
                {
                    "name": "longitude",
                    "type": "decimal(11,8)",
                    "nullable": true,
                    "description": "Longitude.",
                    "exported": true
                },
                {
                    "name": "start_time",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Start time.",
                    "exported": true
                },
                {
                    "name": "end_time",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "End time.",
                    "exported": true
                },
                {
                    "name": "qr_code",
                    "type": "text",
                    "nullable": true,
                    "description": "Qr code.",
                    "exported": true
                },
                {
                    "name": "qr_verified",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Qr verified.",
                    "exported": true
                },
                {
                    "name": "signature",
                    "type": "text",
                    "nullable": true,
                    "description": "Signature.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "patient_lat",
                    "type": "decimal(10,7)",
                    "nullable": true,
                    "description": "Patient lat.",
                    "exported": true
                },
                {
                    "name": "patient_long",
                    "type": "decimal(10,7)",
                    "nullable": true,
                    "description": "Patient long.",
                    "exported": true
                },
                {
                    "name": "is_flagged",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Flag (1 = yes, 0 = no): is flagged.",
                    "exported": true
                },
                {
                    "name": "is_patient_secret_passed",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Flag (1 = yes, 0 = no): is patient secret passed.",
                    "exported": false,
                    "withheld_reason": "Authentication credential; not electronic health information."
                },
                {
                    "name": "secret_attempt",
                    "type": "int",
                    "nullable": false,
                    "description": "Secret attempt.",
                    "exported": false,
                    "withheld_reason": "Authentication credential; not electronic health information."
                },
                {
                    "name": "sms_verification",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Sms verification.",
                    "exported": true
                }
            ]
        },
        {
            "table": "voice_scribe_sessions",
            "description": "Recorded documentation (scribe) sessions.",
            "linked_to_patient_by": "voice_scribe_sessions.patient_id = patients.id",
            "files": [
                "tables/voice_scribe_sessions.json",
                "tables/voice_scribe_sessions.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "treatment_plan_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related treatment plan record.",
                    "exported": true
                },
                {
                    "name": "objective_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related objective record.",
                    "exported": true
                },
                {
                    "name": "intervention_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related intervention record.",
                    "exported": true
                },
                {
                    "name": "assessment_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related assessment record.",
                    "exported": true
                },
                {
                    "name": "context",
                    "type": "varchar(20)",
                    "nullable": false,
                    "description": "Context.",
                    "exported": true
                },
                {
                    "name": "capture_mode",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Capture mode.",
                    "exported": true
                },
                {
                    "name": "room_id",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Identifier of the related room record.",
                    "exported": true
                },
                {
                    "name": "questions_snapshot",
                    "type": "json",
                    "nullable": true,
                    "description": "Questions snapshot.",
                    "exported": true
                },
                {
                    "name": "consent_signer_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Consent signer name.",
                    "exported": true
                },
                {
                    "name": "consent_signature",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Consent signature.",
                    "exported": true
                },
                {
                    "name": "consent_acknowledged_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: consent acknowledged.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "enum('in_progress','completed','failed','abandoned')",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "patient_token",
                    "type": "varchar(64)",
                    "nullable": true,
                    "description": "Patient token.",
                    "exported": true
                },
                {
                    "name": "patient_token_expires_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: patient token expires.",
                    "exported": true
                },
                {
                    "name": "started_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: started.",
                    "exported": true
                },
                {
                    "name": "patient_joined_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: patient joined.",
                    "exported": true
                },
                {
                    "name": "ended_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: ended.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "progress_note_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related progress note record.",
                    "exported": true
                },
                {
                    "name": "error_message",
                    "type": "text",
                    "nullable": true,
                    "description": "Error message.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "workflows",
            "description": "Records of workflows linked to the patient.",
            "linked_to_patient_by": "workflows.patient_id = patients.id",
            "files": [
                "tables/workflows.json",
                "tables/workflows.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "int",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "name",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Name.",
                    "exported": true
                },
                {
                    "name": "description",
                    "type": "text",
                    "nullable": true,
                    "description": "Description.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "workflow_list_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related workflow list record.",
                    "exported": true
                },
                {
                    "name": "patient_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the patient (patients.id) the row belongs to.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "authorization_unit_ledger",
            "description": "Units used against a service authorization.",
            "linked_to_patient_by": "authorization_unit_ledger.authorization_id = patient_authorizations.id",
            "files": [
                "tables/authorization_unit_ledger.json",
                "tables/authorization_unit_ledger.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "authorization_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related authorization record.",
                    "exported": true
                },
                {
                    "name": "progress_note_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related progress note record.",
                    "exported": true
                },
                {
                    "name": "claim_line_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related claim line record.",
                    "exported": true
                },
                {
                    "name": "entry_type",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Entry type.",
                    "exported": true
                },
                {
                    "name": "units",
                    "type": "int",
                    "nullable": false,
                    "description": "Units.",
                    "exported": true
                },
                {
                    "name": "reference",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Reference.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "billing_readiness_actions",
            "description": "Actions taken on billing documentation findings.",
            "linked_to_patient_by": "billing_readiness_actions.review_id = billing_readiness_reviews.id",
            "files": [
                "tables/billing_readiness_actions.json",
                "tables/billing_readiness_actions.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "review_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related review record.",
                    "exported": true
                },
                {
                    "name": "user_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related user record.",
                    "exported": true
                },
                {
                    "name": "action",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Action.",
                    "exported": true
                },
                {
                    "name": "reason",
                    "type": "text",
                    "nullable": true,
                    "description": "Reason.",
                    "exported": true
                },
                {
                    "name": "action_at",
                    "type": "timestamp",
                    "nullable": false,
                    "description": "Date/time: action.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "billing_readiness_findings",
            "description": "Findings of a billing documentation review.",
            "linked_to_patient_by": "billing_readiness_findings.review_id = billing_readiness_reviews.id",
            "files": [
                "tables/billing_readiness_findings.json",
                "tables/billing_readiness_findings.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "review_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related review record.",
                    "exported": true
                },
                {
                    "name": "check_id",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Identifier of the related check record.",
                    "exported": true
                },
                {
                    "name": "rule_id",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Identifier of the related rule record.",
                    "exported": true
                },
                {
                    "name": "rule_version",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Rule version.",
                    "exported": true
                },
                {
                    "name": "source_type",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Source type.",
                    "exported": true
                },
                {
                    "name": "severity",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Severity.",
                    "exported": true
                },
                {
                    "name": "finding_code",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Finding code.",
                    "exported": true
                },
                {
                    "name": "domain",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Domain.",
                    "exported": true
                },
                {
                    "name": "title",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Title.",
                    "exported": true
                },
                {
                    "name": "description",
                    "type": "text",
                    "nullable": true,
                    "description": "Description.",
                    "exported": true
                },
                {
                    "name": "why_it_matters",
                    "type": "text",
                    "nullable": true,
                    "description": "Why it matters.",
                    "exported": true
                },
                {
                    "name": "recommended_action",
                    "type": "text",
                    "nullable": true,
                    "description": "Recommended action.",
                    "exported": true
                },
                {
                    "name": "confidence",
                    "type": "decimal(5,4)",
                    "nullable": true,
                    "description": "Confidence.",
                    "exported": true
                },
                {
                    "name": "evidence_json",
                    "type": "json",
                    "nullable": true,
                    "description": "Evidence json.",
                    "exported": true
                },
                {
                    "name": "high_risk",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "High risk.",
                    "exported": true
                },
                {
                    "name": "resolved",
                    "type": "tinyint(1)",
                    "nullable": false,
                    "description": "Resolved.",
                    "exported": true
                },
                {
                    "name": "resolved_by_note_version",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Resolved by note version.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "claim_lines",
            "description": "Service lines of a claim.",
            "linked_to_patient_by": "claim_lines.claim_id = claims.id OR claim_lines.progress_note_id = patient_progress_notes.id",
            "files": [
                "tables/claim_lines.json",
                "tables/claim_lines.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "claim_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related claim record.",
                    "exported": true
                },
                {
                    "name": "progress_note_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related progress note record.",
                    "exported": true
                },
                {
                    "name": "source_type",
                    "type": "varchar(30)",
                    "nullable": true,
                    "description": "Source type.",
                    "exported": true
                },
                {
                    "name": "source_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related source record.",
                    "exported": true
                },
                {
                    "name": "service_code_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related service code record.",
                    "exported": true
                },
                {
                    "name": "service_date",
                    "type": "date",
                    "nullable": false,
                    "description": "Date: service.",
                    "exported": true
                },
                {
                    "name": "units",
                    "type": "smallint unsigned",
                    "nullable": false,
                    "description": "Units.",
                    "exported": true
                },
                {
                    "name": "modifiers",
                    "type": "json",
                    "nullable": true,
                    "description": "Modifiers.",
                    "exported": true
                },
                {
                    "name": "place_of_service",
                    "type": "char(2)",
                    "nullable": true,
                    "description": "Place of service.",
                    "exported": true
                },
                {
                    "name": "diag_pointers",
                    "type": "varchar(4)",
                    "nullable": true,
                    "description": "Diag pointers.",
                    "exported": true
                },
                {
                    "name": "rendering_staff_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related rendering staff record.",
                    "exported": true
                },
                {
                    "name": "billed_amount",
                    "type": "decimal(8,2)",
                    "nullable": false,
                    "description": "Billed amount.",
                    "exported": true
                },
                {
                    "name": "allowed_amount",
                    "type": "decimal(8,2)",
                    "nullable": false,
                    "description": "Allowed amount.",
                    "exported": true
                },
                {
                    "name": "paid_amount",
                    "type": "decimal(8,2)",
                    "nullable": false,
                    "description": "Paid amount.",
                    "exported": true
                },
                {
                    "name": "adjustment_amount",
                    "type": "decimal(8,2)",
                    "nullable": false,
                    "description": "Adjustment amount.",
                    "exported": true
                },
                {
                    "name": "patient_responsibility",
                    "type": "decimal(8,2)",
                    "nullable": false,
                    "description": "Patient responsibility.",
                    "exported": true
                },
                {
                    "name": "denial_code",
                    "type": "varchar(10)",
                    "nullable": true,
                    "description": "Denial code.",
                    "exported": true
                },
                {
                    "name": "adjustments",
                    "type": "json",
                    "nullable": true,
                    "description": "Adjustments.",
                    "exported": true
                },
                {
                    "name": "remark_codes",
                    "type": "json",
                    "nullable": true,
                    "description": "Remark codes.",
                    "exported": true
                },
                {
                    "name": "status",
                    "type": "enum('pending','paid','denied','adjusted')",
                    "nullable": false,
                    "description": "Status.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "claim_refunds",
            "description": "Refunds issued on a claim.",
            "linked_to_patient_by": "claim_refunds.claim_id = claims.id",
            "files": [
                "tables/claim_refunds.json",
                "tables/claim_refunds.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "claim_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related claim record.",
                    "exported": true
                },
                {
                    "name": "amount",
                    "type": "decimal(10,2)",
                    "nullable": false,
                    "description": "Amount.",
                    "exported": true
                },
                {
                    "name": "refunded_at",
                    "type": "date",
                    "nullable": false,
                    "description": "Date/time: refunded.",
                    "exported": true
                },
                {
                    "name": "reason",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Reason.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "note_quality_flags",
            "description": "Documentation quality flags on progress notes.",
            "linked_to_patient_by": "note_quality_flags.progress_note_id = patient_progress_notes.id",
            "files": [
                "tables/note_quality_flags.json",
                "tables/note_quality_flags.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "progress_note_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related progress note record.",
                    "exported": true
                },
                {
                    "name": "flag_key",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Flag key.",
                    "exported": true
                },
                {
                    "name": "flag_message",
                    "type": "varchar(255)",
                    "nullable": false,
                    "description": "Flag message.",
                    "exported": true
                },
                {
                    "name": "severity",
                    "type": "enum('info','warning','critical')",
                    "nullable": false,
                    "description": "Severity.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_medication_diagnosis",
            "description": "Records of patient medication diagnosis linked to the patient.",
            "linked_to_patient_by": "patient_medication_diagnosis.patient_diagnosis_id = patient_diagnoses.id OR patient_medication_diagnosis.patient_medication_id = patient_medications.id",
            "files": [
                "tables/patient_medication_diagnosis.json",
                "tables/patient_medication_diagnosis.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "patient_medication_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related patient medication record.",
                    "exported": true
                },
                {
                    "name": "patient_diagnosis_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related patient diagnosis record.",
                    "exported": true
                },
                {
                    "name": "order",
                    "type": "smallint unsigned",
                    "nullable": false,
                    "description": "Order.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_treatment_plan_problems",
            "description": "Problems addressed by a treatment plan.",
            "linked_to_patient_by": "patient_treatment_plan_problems.treatment_plan_id = patient_treatment_plans.id",
            "files": [
                "tables/patient_treatment_plan_problems.json",
                "tables/patient_treatment_plan_problems.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "treatment_plan_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related treatment plan record.",
                    "exported": true
                },
                {
                    "name": "problem_text",
                    "type": "longtext",
                    "nullable": false,
                    "description": "Problem text.",
                    "exported": true
                },
                {
                    "name": "description",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Description.",
                    "exported": true
                },
                {
                    "name": "diagnosis_type_id",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Identifier of the related diagnosis type record.",
                    "exported": true
                },
                {
                    "name": "custom_diagnosis_name",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Custom diagnosis name.",
                    "exported": true
                },
                {
                    "name": "sort_order",
                    "type": "int",
                    "nullable": false,
                    "description": "Sort order.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_treatment_plan_reviews",
            "description": "Periodic reviews of a treatment plan.",
            "linked_to_patient_by": "patient_treatment_plan_reviews.treatment_plan_id = patient_treatment_plans.id",
            "files": [
                "tables/patient_treatment_plan_reviews.json",
                "tables/patient_treatment_plan_reviews.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "treatment_plan_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related treatment plan record.",
                    "exported": true
                },
                {
                    "name": "review_date",
                    "type": "date",
                    "nullable": false,
                    "description": "Date: review.",
                    "exported": true
                },
                {
                    "name": "reviewed_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Reviewed by.",
                    "exported": true
                },
                {
                    "name": "summary",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Summary.",
                    "exported": true
                },
                {
                    "name": "next_review_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: next review.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "progress_note_review_logs",
            "description": "Supervisor review history of progress notes.",
            "linked_to_patient_by": "progress_note_review_logs.progress_note_id = patient_progress_notes.id",
            "files": [
                "tables/progress_note_review_logs.json",
                "tables/progress_note_review_logs.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "progress_note_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related progress note record.",
                    "exported": true
                },
                {
                    "name": "action",
                    "type": "enum('submitted','approved','returned','not_approved','flagged','billed','resubmitted')",
                    "nullable": false,
                    "description": "Action.",
                    "exported": true
                },
                {
                    "name": "actor_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related actor record.",
                    "exported": true
                },
                {
                    "name": "comment",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Comment.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "voice_scribe_transcript_lines",
            "description": "Transcript text of a documentation session.",
            "linked_to_patient_by": "voice_scribe_transcript_lines.voice_scribe_session_id = voice_scribe_sessions.id",
            "files": [
                "tables/voice_scribe_transcript_lines.json",
                "tables/voice_scribe_transcript_lines.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "voice_scribe_session_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related voice scribe session record.",
                    "exported": true
                },
                {
                    "name": "channel",
                    "type": "enum('incoming','outgoing')",
                    "nullable": false,
                    "description": "Channel.",
                    "exported": true
                },
                {
                    "name": "sequence",
                    "type": "int unsigned",
                    "nullable": false,
                    "description": "Sequence.",
                    "exported": true
                },
                {
                    "name": "text",
                    "type": "text",
                    "nullable": false,
                    "description": "Text.",
                    "exported": true
                },
                {
                    "name": "started_at_ms",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Started at ms.",
                    "exported": true
                },
                {
                    "name": "ended_at_ms",
                    "type": "int unsigned",
                    "nullable": true,
                    "description": "Ended at ms.",
                    "exported": true
                },
                {
                    "name": "confidence",
                    "type": "double(8,2)",
                    "nullable": true,
                    "description": "Confidence.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                }
            ]
        },
        {
            "table": "claim_denials",
            "description": "Payer denials of a claim.",
            "linked_to_patient_by": "claim_denials.claim_id = claims.id OR claim_denials.claim_line_id = claim_lines.id",
            "files": [
                "tables/claim_denials.json",
                "tables/claim_denials.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "clinic_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the practice (tenant) that holds the record.",
                    "exported": true
                },
                {
                    "name": "tenant_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related tenant record.",
                    "exported": true
                },
                {
                    "name": "claim_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related claim record.",
                    "exported": true
                },
                {
                    "name": "claim_line_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related claim line record.",
                    "exported": true
                },
                {
                    "name": "denial_code",
                    "type": "varchar(20)",
                    "nullable": true,
                    "description": "Denial code.",
                    "exported": true
                },
                {
                    "name": "denial_category",
                    "type": "enum('eligibility','authorization','credentialing','timely_filing','duplicate','medical_necessity','coding','other')",
                    "nullable": false,
                    "description": "Denial category.",
                    "exported": true
                },
                {
                    "name": "denied_amount",
                    "type": "decimal(8,2)",
                    "nullable": false,
                    "description": "Denied amount.",
                    "exported": true
                },
                {
                    "name": "appeal_status",
                    "type": "enum('none','filed','upheld','overturned')",
                    "nullable": false,
                    "description": "Appeal status.",
                    "exported": true
                },
                {
                    "name": "appeal_deadline",
                    "type": "date",
                    "nullable": true,
                    "description": "Appeal deadline.",
                    "exported": true
                },
                {
                    "name": "appeal_link",
                    "type": "varchar(500)",
                    "nullable": true,
                    "description": "Appeal link.",
                    "exported": true
                },
                {
                    "name": "appeal_started_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: appeal started.",
                    "exported": true
                },
                {
                    "name": "assigned_to_team",
                    "type": "enum('billing','intake','qa','clinician','admin')",
                    "nullable": false,
                    "description": "Assigned to team.",
                    "exported": true
                },
                {
                    "name": "assigned_to",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Assigned to.",
                    "exported": true
                },
                {
                    "name": "denial_notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Denial notes.",
                    "exported": true
                },
                {
                    "name": "resolution_notes",
                    "type": "text",
                    "nullable": true,
                    "description": "Resolution notes.",
                    "exported": true
                },
                {
                    "name": "ai_likely_reason",
                    "type": "text",
                    "nullable": true,
                    "description": "Ai likely reason.",
                    "exported": true
                },
                {
                    "name": "ai_recommended_correction",
                    "type": "text",
                    "nullable": true,
                    "description": "Ai recommended correction.",
                    "exported": true
                },
                {
                    "name": "ai_analyzed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: ai analyzed.",
                    "exported": true
                },
                {
                    "name": "rebilled_claim_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related rebilled claim record.",
                    "exported": true
                },
                {
                    "name": "created_by",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Created by.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                },
                {
                    "name": "deleted_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was retired (soft-deleted); empty when current.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_treatment_plan_goals",
            "description": "Goals belonging to a treatment plan.",
            "linked_to_patient_by": "patient_treatment_plan_goals.problem_id = patient_treatment_plan_problems.id OR patient_treatment_plan_goals.treatment_plan_id = patient_treatment_plans.id",
            "files": [
                "tables/patient_treatment_plan_goals.json",
                "tables/patient_treatment_plan_goals.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "treatment_plan_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related treatment plan record.",
                    "exported": true
                },
                {
                    "name": "problem_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related problem record.",
                    "exported": true
                },
                {
                    "name": "domain",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Domain.",
                    "exported": true
                },
                {
                    "name": "start_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: start.",
                    "exported": true
                },
                {
                    "name": "goal_text",
                    "type": "longtext",
                    "nullable": false,
                    "description": "Goal text.",
                    "exported": true
                },
                {
                    "name": "description",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Description.",
                    "exported": true
                },
                {
                    "name": "target_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: target.",
                    "exported": true
                },
                {
                    "name": "end_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: end.",
                    "exported": true
                },
                {
                    "name": "review_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: review.",
                    "exported": true
                },
                {
                    "name": "responsible_staff_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related responsible staff record.",
                    "exported": true
                },
                {
                    "name": "frequency",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Frequency.",
                    "exported": true
                },
                {
                    "name": "progress_status",
                    "type": "enum('not_started','in_progress','no_progress','minimal','moderate','significant','achieved','regression')",
                    "nullable": false,
                    "description": "Progress status.",
                    "exported": true
                },
                {
                    "name": "achievement_status",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Achievement status.",
                    "exported": true
                },
                {
                    "name": "achievement_status_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: achievement status.",
                    "exported": true
                },
                {
                    "name": "sort_order",
                    "type": "int",
                    "nullable": false,
                    "description": "Sort order.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_treatment_plan_objectives",
            "description": "Records of patient treatment plan objectives linked to the patient.",
            "linked_to_patient_by": "patient_treatment_plan_objectives.goal_id = patient_treatment_plan_goals.id",
            "files": [
                "tables/patient_treatment_plan_objectives.json",
                "tables/patient_treatment_plan_objectives.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "goal_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related goal record.",
                    "exported": true
                },
                {
                    "name": "objective_text",
                    "type": "longtext",
                    "nullable": false,
                    "description": "Objective text.",
                    "exported": true
                },
                {
                    "name": "description",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Description.",
                    "exported": true
                },
                {
                    "name": "start_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: start.",
                    "exported": true
                },
                {
                    "name": "interventions",
                    "type": "json",
                    "nullable": true,
                    "description": "Interventions.",
                    "exported": true
                },
                {
                    "name": "target_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: target.",
                    "exported": true
                },
                {
                    "name": "end_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: end.",
                    "exported": true
                },
                {
                    "name": "progress_status",
                    "type": "enum('not_started','in_progress','no_progress','minimal','moderate','significant','achieved','regression')",
                    "nullable": false,
                    "description": "Progress status.",
                    "exported": true
                },
                {
                    "name": "achievement_status",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Achievement status.",
                    "exported": true
                },
                {
                    "name": "achievement_status_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: achievement status.",
                    "exported": true
                },
                {
                    "name": "sort_order",
                    "type": "int",
                    "nullable": false,
                    "description": "Sort order.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        },
        {
            "table": "patient_treatment_plan_interventions",
            "description": "Records of patient treatment plan interventions linked to the patient.",
            "linked_to_patient_by": "patient_treatment_plan_interventions.objective_id = patient_treatment_plan_objectives.id",
            "files": [
                "tables/patient_treatment_plan_interventions.json",
                "tables/patient_treatment_plan_interventions.csv"
            ],
            "columns": [
                {
                    "name": "id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Row identifier, unique within the table.",
                    "exported": true
                },
                {
                    "name": "objective_id",
                    "type": "bigint unsigned",
                    "nullable": false,
                    "description": "Identifier of the related objective record.",
                    "exported": true
                },
                {
                    "name": "intervention_text",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Intervention text.",
                    "exported": true
                },
                {
                    "name": "description",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Description.",
                    "exported": true
                },
                {
                    "name": "start_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: start.",
                    "exported": true
                },
                {
                    "name": "end_date",
                    "type": "date",
                    "nullable": true,
                    "description": "Date: end.",
                    "exported": true
                },
                {
                    "name": "responsible_staff_id",
                    "type": "bigint unsigned",
                    "nullable": true,
                    "description": "Identifier of the related responsible staff record.",
                    "exported": true
                },
                {
                    "name": "ai_analysis",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Ai analysis.",
                    "exported": true
                },
                {
                    "name": "ai_analyzed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: ai analyzed.",
                    "exported": true
                },
                {
                    "name": "client_signature",
                    "type": "longtext",
                    "nullable": true,
                    "description": "Client signature.",
                    "exported": true
                },
                {
                    "name": "client_signed_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: client signed.",
                    "exported": true
                },
                {
                    "name": "client_name",
                    "type": "varchar(255)",
                    "nullable": true,
                    "description": "Client name.",
                    "exported": true
                },
                {
                    "name": "guest_token",
                    "type": "varchar(64)",
                    "nullable": true,
                    "description": "Guest token.",
                    "exported": false,
                    "withheld_reason": "Authentication credential; not electronic health information."
                },
                {
                    "name": "guest_token_expires_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time: guest token expires.",
                    "exported": false,
                    "withheld_reason": "Authentication credential; not electronic health information."
                },
                {
                    "name": "sort_order",
                    "type": "int",
                    "nullable": false,
                    "description": "Sort order.",
                    "exported": true
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was created.",
                    "exported": true
                },
                {
                    "name": "updated_at",
                    "type": "timestamp",
                    "nullable": true,
                    "description": "Date/time the row was last changed.",
                    "exported": true
                }
            ]
        }
    ],
    "excluded_tables": [
        "oauth_access_tokens",
        "oauth_auth_codes",
        "oauth_refresh_tokens",
        "oauth_smart_launches",
        "oauth_client_assertion_jtis",
        "drfirst_request_logs",
        "drfirst_download_states",
        "patient_audit_logs",
        "auth_audit_logs",
        "emergency_access_grants",
        "ehi_export_jobs",
        "bulk_export_jobs",
        "ehr_payroll_line_items",
        "password_resets",
        "sessions"
    ]
}