Skip to main content

NWICU MEDS Extraction ETL

PyPI - Version codecov tests code-quality Python Version license PRs contributors DOI MEDS v0.3.3

This pipeline extracts the NWICU dataset (from physionet, https://physionet.org/content/nwicu-northwestern-icu/0.1.0/) into the MEDS format.

Usage:

pip install NWICU_MEDS
export DATASET_DOWNLOAD_USERNAME=$PHYSIONET_USERNAME
export DATASET_DOWNLOAD_PASSWORD=$PHYSIONET_PASSWORD
MEDS_extract-NWICU root_output_dir=$ROOT_OUTPUT_DIR

When you run this, the program will:

  1. Download the needed raw NWICU files for the currently supported version into $ROOT_OUTPUT_DIR/raw_input.
  2. Perform initial, pre-MEDS processing on the raw NWICU files, saving the results in $ROOT_OUTPUT_DIR/pre_MEDS.
  3. Construct the final MEDS cohort, and save it to $ROOT_OUTPUT_DIR/MEDS_cohort.

You can also specify the target directories more directly, with

export DATASET_DOWNLOAD_USERNAME=$PHYSIONET_USERNAME
export DATASET_DOWNLOAD_PASSWORD=$PHYSIONET_PASSWORD
MEDS_extract-NWICU raw_input_dir=$RAW_INPUT_DIR pre_MEDS_dir=$PRE_MEDS_DIR MEDS_cohort_dir=$MEDS_COHORT_DIR

Examples and More Info:

You can run MEDS_extract-NWICU --help for more information on the arguments and options. You can also run

MEDS_extract-NWICU root_output_dir=$ROOT_OUTPUT_DIR

to run the entire pipeline.

Citation

If you find our work useful, please cite the resource through the github repository (or the bibtex entry below), and cite the original dataset through PhysioNet. The following is the recommended citation for this package:

@software{van_de_Water_NWICU_MEDS_ETL_2025,
author = {van de Water, Robin Philippus},
doi = {10.5281/zenodo.14892134},
license = {MIT},
month = feb,
title = {{NWICU\_MEDS ETL}},
url = {https://github.com/rvandewater/NWICU_MEDS},
year = {2025}
}

This is the original dataset citation from PhysioNet:

@article{PhysioNet-nwicu-northwestern-icu-0.1.0,
  author = {Moukheiber, Dana and Temps, William and Molgi, Bhadrappa and Li, Yikuan and Lu, Alice and Nannapaneni, Prasanth and Chahin, Abdulrahman and Hao, Sicheng and {Torres Fabregas}, Felipe and Celi, Leo Anthony and Wong, Adrian and Lloyd, Maxwell and {Borrat Frigola}, Xavier and Lee, Hyung-Chul and Schneider, Daniel and Pollard, Tom and Luo, Yuan and Kho, Abel and Mark, Roger},
  title = {{Northwestern ICU (NWICU) database}},
  journal = {{PhysioNet}},
  year = {2024},
  month = nov,
  note = {Version 0.1.0},
  doi = {10.13026/s84w-1829},
  url = {https://doi.org/10.13026/s84w-1829}
}
```
.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nwicu_meds-0.0.13.tar.gz (110.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nwicu_meds-0.0.13-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file nwicu_meds-0.0.13.tar.gz.

File metadata

  • Download URL: nwicu_meds-0.0.13.tar.gz
  • Upload date:
  • Size: 110.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for nwicu_meds-0.0.13.tar.gz
Algorithm Hash digest
SHA256 9c3d7e808f5d7e1e30d20a43a1b97e9afda0082cee2928025aefaac39b7656c1
MD5 0544e58bbf3bdb7874a9a9c31ff3cfeb
BLAKE2b-256 259ade16a4009ca0e3ba1b92ae392a9410b0fde1f133132d50f56ada5082259a

See more details on using hashes here.

Provenance

The following attestation bundles were made for nwicu_meds-0.0.13.tar.gz:

Publisher: python-build.yaml on rvandewater/NWICU_MEDS

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nwicu_meds-0.0.13-py3-none-any.whl.

File metadata

  • Download URL: nwicu_meds-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for nwicu_meds-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 832630356ca3352e7179331294b07c0aa8987afc58d99aeea402abaff3716fb7
MD5 1fcf7e9f16c3dda11a7aa992f5cf6d9e
BLAKE2b-256 860d81753c11a5d3ffd5a225b843ba96a24c9a2ffb6d753e62939ddd242caf4e

See more details on using hashes here.

Provenance

The following attestation bundles were made for nwicu_meds-0.0.13-py3-none-any.whl:

Publisher: python-build.yaml on rvandewater/NWICU_MEDS

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.0.0

2 files

This release

0.0.13 This release

2 files

0.0.11

2 files

0.0.10

2 files

0.0.7

2 files

0.0.4

2 files

0.0.3

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page