PySpark/Databricks pipeline for the EHR Data Density Index: GMM-4 utilization archetypes, four-domain density vectors, and CCI association analyses on OMOP data.
Navigation: Pipeline · Methods · Supplement · Artifacts · Releases
Abhishek Bhatia · Tomas McIntee · Sydney Lash · Emily Pfaff
- Copy
.env.example→.envand configure Databricks secret scope for ETL storage. - Run ETL on Databricks:
scripts/00_etl/core_etl.py → scripts/00_etl/cohort_1_etl.py - Run the manuscript pipeline (
scripts/cohort_1/):01_unified_tables → 02_feature_engineering → 03a_rules → 03b_gmm → 06_residual_analysis06_residual_analysiscalls99_reportfor the HTML bundle and manifest.
Validation cohorts cohort_2a/ and cohort_2b/ apply pretrained GMM bundles from cohort 1 (inference only).
data-density/
├── docs/
├── scripts/
│ ├── 00_etl/ OMOP CSV → Delta
│ ├── cohort_1/ manuscript pipeline
│ ├── cohort_2a/ external validation (inference)
│ └── cohort_2b/ external validation (inference)
├── source_data/ gitignored — local OMOP drops
├── outputs/ edi_* artifacts (see policy below)
├── CITATION.cff
├── .zenodo.json
├── LICENSE
├── .env.example
└── .gitignore
| Doc | Contents |
|---|---|
| Pipeline | Layout, run order, environment, ops notes |
| Methods | Manuscript methods (LaTeX equations) |
| Supplement | S1–S7 implementation detail |
| Artifacts | edi_* naming, layout, manifest, commit policy |
| Releases | Tags, GitHub Releases, Zenodo DOI (10.5281/zenodo.20706796) |
Cite via CITATION.cff or:
Bhatia A, McIntee T, Lash S, Pfaff E. (2026). EHR Data Density Index (EDI) Pipeline
(Version 1.0.0) [Software]. Zenodo. https://doi.org/10.5281/zenodo.20706796
Archived at 10.5281/zenodo.20706796 (record, tag v1.0.0).
OMOP tables, model bundles, and patient-level exports stay local (see .gitignore).
Manuscript figures and aggregate edi_* stats under outputs/ may be committed after a pipeline run — see Artifacts → Commit policy.
Bug reports, reproducibility questions, and feature requests: GitHub Issues.
Please include your Databricks runtime, cohort, and the notebook step where a failure occurred. Do not attach OMOP extracts, .env files, or any data containing person_id.
This project is licensed under the MIT License — Copyright © 2026 Abhishek Bhatia, Tomas McIntee, Sydney Lash, Emily Pfaff.