Skip to content

Repository files navigation

EHR Data Density Index (EDI)

License: MIT DOI Issues

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


Authors

Abhishek Bhatia · Tomas McIntee · Sydney Lash · Emily Pfaff


Quick start

  1. Copy .env.example.env and configure Databricks secret scope for ETL storage.
  2. Run ETL on Databricks:
    scripts/00_etl/core_etl.py  →  scripts/00_etl/cohort_1_etl.py
    
  3. Run the manuscript pipeline (scripts/cohort_1/):
    01_unified_tables → 02_feature_engineering → 03a_rules → 03b_gmm → 06_residual_analysis
    
    06_residual_analysis calls 99_report for the HTML bundle and manifest.

Validation cohorts cohort_2a/ and cohort_2b/ apply pretrained GMM bundles from cohort 1 (inference only).


Repository map

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

Documentation

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)

Citation

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).


Data and commit policy

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.


Issues

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.


License

This project is licensed under the MIT License — Copyright © 2026 Abhishek Bhatia, Tomas McIntee, Sydney Lash, Emily Pfaff.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages