ClinicalFlow

A healthcare data pipeline on synthetic patient records (Synthea). PySpark moves data through bronze, silver and gold layers, a data quality gate checks every load, and a DuckDB warehouse answers the questions below. The SQL box at the bottom runs DuckDB in your browser against the same gold tables.

Last pipeline run

CSV → S3 bronze
→
Lambda header check
→
Spark silver
types · dedupe · quarantine
→
Spark gold
star schema
→
Quality gate
→
DuckDB
→
This page

Insights

Average claim cost by encounter type

30-day inpatient readmission rate

Top medications, prescriptions per year

Data quality checks

LayerTableCheckFailed rowsResult

SQL playground

Tables: dim_patient, dim_date, dim_condition, fact_encounter, fact_medication, fact_condition.

Loading DuckDB…