patient via patient_id for demographics.
This table’s columns and relationships are shown in the Hosted Database schema.
patient_statement_tracking.patient_id joins to patient.id and is null when the Elation Billing patient does not map to an EHR patient.- Patients who have never been sent a statement
- When each patient was last sent a statement
- Patients excluded from statements via the
send_stmtflag
Statement status per patient
Returns each patient’s statement state, joined topatient for the name, with a never_sent_statement flag derived from last_statement. Order by last_statement for the most recent send, or filter to never_sent_statement = true for patients who have never been sent one.