# MIT-LCP/mimic-code

MIMIC Code Repository: Code shared by the research community for the MIMIC family of databases

Repository: https://github.com/MIT-LCP/mimic-code
Canonical: https://ross.abutalabs.com/products/mimic-code
Homepage: https://mimic.mit.edu
Language: Jupyter Notebook
License: MIT
License Family: permissive
Topics: mimic-iii, critical-care, icu, physionet
Last push: 2026-08-25T10:25:03+00:00

## Health v2 (maintenance only)
Score: 79/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 40, longevity 100
- inputs: {"age_days": 4019, "days_push": 8, "days_rel": 497, "gap_med": 0, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3355, forks 1729 (observed 2026-08-28T04:07:57.906058+00:00)

## What it is
A community-maintained repository of code for building, loading, and analyzing the MIMIC family of critical care databases (MIMIC-III, MIMIC-IV, MIMIC-IV-Note, MIMIC-IV-ED, MIMIC-CXR). It includes database build scripts, SQL concepts for derived clinical variables, and Jupyter notebook tutorials.

## Use cases
- build a local postgres database from mimic-iv csv files
- query mimic-iv on bigquery for icu research
- extract sepsis or mortality concepts from mimic-iii
- load mimic-cxr dicom images and radiology reports
- link patients across mimic-iv modules for analysis
- learn how to query critical care ehr data
- reproduce clinical research analyses on mimic data

## When to choose
- you have credentialed PhysioNet access to MIMIC data and need build scripts or derived concepts
- you want community-vetted SQL for clinical variables like sepsis, AKI, or ventilation
- you are starting critical care or clinical NLP research with MIMIC-IV

## When to avoid
- you need a general-purpose EHR analytics tool not tied to the MIMIC schema
- you lack PhysioNet credentialing and a signed data use agreement
- you need a maintained software library with an API rather than SQL scripts and notebooks

## Facets
- artifact type: dataset
- maturity: active
- function: database, etl, data-science, documentation
- domain: healthcare, data-science, databases, tutorials
- platform: python, cloud, self-hosted, cross-platform
- tags: mimic-iii, mimic-iv, critical-care, icu, physionet, electronic-health-records, bigquery, postgresql, clinical-research, jupyter-notebooks, reproducibility

## Member repositories
- MIT-LCP/mimic-code (main) score 79

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:57.906058+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:40:55.693246+00:00, confidence not recorded.
  - readme: https://github.com/MIT-LCP/mimic-code (fetched 2026-08-28T04:07:57.906058+00:00, sha 120bfd092c32)
  - homepage: https://mimic.mit.edu (fetched 2026-08-29T09:34:09.678006+00:00, sha 80afa7ebc041)
  - site_page: https://mimic.mit.edu/docs/help (fetched 2026-08-29T09:34:09.687059+00:00, sha bcd8531d6b8a)
  - site_page: https://mimic.mit.edu/docs/faq (fetched 2026-08-29T09:34:09.688896+00:00, sha 6dd6da39d5bd)
  - site_page: https://mimic.mit.edu/docs/faq/how-to-get-access.html (fetched 2026-08-29T09:34:09.690515+00:00, sha 8c2a712dc6aa)
  - site_page: https://mimic.mit.edu/docs/faq/data.html (fetched 2026-08-29T09:34:09.692239+00:00, sha 33a394678b81)
  - site_page: https://mimic.mit.edu/docs/about (fetched 2026-08-29T09:34:09.693765+00:00, sha b932272f52d1)
  - site_page: https://mimic.mit.edu/docs/about/sources (fetched 2026-08-29T09:34:09.695303+00:00, sha aab1e49f946e)
  - site_page: https://mimic.mit.edu/docs/about/sources/metavision.html (fetched 2026-08-29T09:34:09.696757+00:00, sha cd675afb29a5)
  - site_page: https://mimic.mit.edu/docs/about/sources/carevue.html (fetched 2026-08-29T09:34:09.698380+00:00, sha 6f35212bd448)
- Data as of 2026-08-30T08:39:29.467469+00:00.
