HEALTHCARE ANALYTICS ENGINEERING
CareFlow Health Analytics
A synthetic healthcare operations project using dbt and BigQuery SQL to model appointments, patient encounters, inpatient admissions, facility capacity and patient return patterns.
SYNTHETIC DATASET
Healthcare operations snapshot
MODEL STRUCTURE
Separate scheduling, care delivery and inpatient events.
Raw operations
Patients, clinicians, facilities, appointments, encounters and admissions.
Standardise
Explicit fields, consistent identifiers, timestamps and categories.
Facts & dimensions
Appointment, encounter and admission facts plus patient, clinician and facility dimensions.
Reporting
Daily care KPIs, patient engagement, department performance, readmissions and bed occupancy.
KEY METRICS
Operational measures defined in the modelling layer.
Inpatient operations
Data quality
Tests cover primary keys, source relationships, appointment statuses, timing order, readmission consistency, percentage ranges and facility capacity. Test queries return the exact records that violate a rule.
Incremental appointment processing
The appointment fact uses BigQuery MERGE logic and reprocesses a three-day window so recent delayed status updates can be captured without rebuilding the entire fact table.
Appointments vs encounters
Appointments and encounters are separate because a booking can be completed, cancelled or missed. Only completed care activity becomes an encounter. This keeps scheduling metrics separate from consultation metrics.
Readmission scope
The readmission mart only includes discharges with a complete 30-day follow-up window. It is an operational modelling example, not a clinical quality measure, and does not apply diagnosis-based exclusions or risk adjustment.