Home / Projects
DE · 07In progress

US Critical Care Lakehouse on Databricks

A governed medallion lakehouse for ICU clinical analytics (MIMIC-IV + eICU), with a dedicated canonical clinical model layer that harmonizes two heterogeneous hospital data sources before anything reaches a data product — not a tutorial-scale Bronze/Silver/Gold exercise.

Data sourceMIMIC-IV v3.1 and eICU (target sources — credentialed PhysioNet access not yet requested). All code and tests run against small synthetic fixtures that mimic the real schemas; real patient data can never enter this repository, even after access exists.
ArchitectureLanding → Bronze → Silver Source-Aligned → Silver Canonical Clinical Model → Gold, governed by Unity Catalog and orchestrated by Lakeflow (designed, not yet deployed)
Verified locallyOpen-source PySpark + Delta Lake, no Databricks account: 94/94 tests passing across Bronze, Silver quality gating, canonical mapping, and a full-chain integration test
StackDatabricks Delta Lake Unity Catalog Lakeflow PySpark GitHub Actions
StatusIn progress: local pipeline built and verified, real Databricks deploy and PhysioNet access both pending (see Results)

Context

MIMIC-IV (single-hospital ICU and hospital-wide data) and eICU (200+ hospitals, multicenter) are the two most widely used credentialed critical-care research datasets in the US. Most pipelines that touch either one stop at "load it into Bronze/Silver/Gold." This project's actual claim is narrower and harder: a canonical clinical data model that lets two structurally different hospital data sources answer the same operational and clinical questions without a Gold product ever needing to know which source system a row came from.

Business Problem

Can a governed multicenter clinical lakehouse produce reproducible ICU utilization, patient deterioration, and readmission analytics across heterogeneous US hospital datasets? Answering that requires quality gates that quarantine bad data instead of dropping or passing it silently, a semantic layer that survives two sources disagreeing about what a "vital sign" table looks like, and lineage from a raw file to a Gold row.

Architecture

MIMIC-IV / eICU Bronze Silver Source-Aligned
Silver Source-Aligned Silver Canonical Clinical Model Gold (icu_utilization_daily)

Four layers, not three, deliberately: a straight Bronze → Gold jump would force every Gold product to re-implement MIMIC-vs-eICU harmonization on its own. The canonical layer pays that cost once, with deterministic surrogate keys and full source traceability.

Data

Methodology

  1. Bronze: every source row preserved unmodified, including the bad ones, plus lineage metadata (source file, batch ID, row hash).
  2. Silver: a generic quality-rule engine (structural, temporal, referential, plausibility) routes failing rows to typed quarantine tables instead of dropping them; unit standardization (e.g. Fahrenheit → Celsius) happens here.
  3. Canonical: deterministic surrogate keys decouple every downstream consumer from MIMIC's own ID scheme, while source system/patient/encounter IDs stay traceable.
  4. Gold: named data products with a documented grain, not ad-hoc aggregates.

Design Decisions

Results

In progress. The full transformation pipeline is built and verified against synthetic fixtures using local, open-source PySpark + Delta Lake. Two things are not started: real PhysioNet-credentialed access to MIMIC-IV/eICU, and a real Databricks workspace. Neither can be substituted by agent work.

What's verified without Databricks or real patient data:

Tech Stack

CategoryTool
Lakehouse platformDatabricks (target — not yet provisioned)
Storage formatDelta Lake (open-source delta-spark for all local verification)
GovernanceUnity Catalog — 3 catalogs × 13 schemas (written, not executed)
OrchestrationLakeflow Declarative Pipelines, Lakeflow Jobs (written, not executed)
IaC / CI-CDDatabricks Bundles, GitHub Actions
ProcessingPySpark, Spark SQL
← Previous
AWS Cloud Foundations