Patients & Payers
Overview
This group contains patient demographics, coverage and note history, appointments, referrals, authorizations, patient merge tracking, and payer metadata.
Patients
export_patient holds one row per patient with the patient’s current demographics, providers, emergency contacts, and non-insurance payer associations. Every other patient table joins to it on patient_id. To connect patients to encounters, match export_patient.mrn to export_encounter.patient_external_id within the same organization_id.
Patient History
These tables keep one row per version, so a patient has many rows over time. Use the latest-record flag to get current state, or the version timestamps for as-of queries.
export_patient_insurance_history— primary, secondary, and tertiary coverage for each patient version. Filter onis_latest_record = TRUEfor current coverage.export_patient_non_insurance_payer_history— one row per patient version and non-insurance payer association, with clinical trial details. Usevalid_from/valid_tofor as-of queries andis_latest_record_for_patient = TRUEfor current associations.export_patient_note_history— every version of every note on a patient. Filter onis_latest_record = TRUEfor current note content.
Appointments, Referrals & Authorizations
These tables hold the latest state of each appointment, referral, and authorization on a patient.
export_patient_appointments— one row per appointment, including deactivated (cancelled) appointments.export_patient_referrals— one row per referral, with its status and days until expiry.export_patient_authorizations— one row per authorization, with its payer, status, and days until expiry.
Patient Merge
export_patient_merge helps users track which patient records have been merged together. When a patient is merged, the alternative_patient_mrn represents the patient that was merged (the source), and the primary_patient_mrn represents the patient that received the merge (the target). All encounters and data associated with the alternative patient are consolidated under the primary patient.
Payers
export_payer contains metadata about all payers on Candid.