Skip to main content

An ETL pipeline to extract HIRID data into the MEDS format.

Project description

HIRID MEDS ETL

codecov tests code-quality python license PRs contributors Static Badge

Warning: This ETL currently needs a lot of resources to run.

This repository contains the ETL (Extract, Transform, Load) code to convert the HIRID dataset into the MEDS ecosystem.

pip install HIRID_MEDS # you can do this locally or via PyPI
# Download your data or set download credentials
MEDS_extract-HIRID root_output_dir=$ROOT_OUTPUT_DIR do_download=true raw_input_dir=$RAW_INPUT_DIR

MEDS-transforms settings

If you want to convert a large dataset, you can use parallelization with MEDS-transforms (the MEDS-transformation step that takes the longest).

Using local parallelization with the hydra-joblib-launcher package, you can set the number of workers:

pip install hydra-joblib-launcher --upgrade

Then, you can set the number of workers as environment variable:

export N_WORKERS=8

Moreover, you can set the number of subjects per shard to balance the parallelization overhead based on how many subjects you have in your dataset:

export N_SUBJECTS_PER_SHARD=100000

Citation

If you use this dataset, please cite the original publication below and the ETL (see cite this repository):

Faltys, M., Zimmermann, M., Lyu, X., Hüser, M., Hyland, S., Rätsch, G., & Merz, T. (2021). HiRID, a high time-resolution ICU dataset (version 1.1.1). PhysioNet. https://doi.org/10.13026/nkwc-js72.

Hyland, S.L., Faltys, M., Hüser, M. et al. Early prediction of circulatory failure in the intensive care unit using machine learning. Nat Med 26, 364–373 (2020). https://doi.org/10.1038/s41591-020-0789-4

Project details


Download files

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

Source Distribution

hirid_meds-0.0.2.tar.gz (130.1 kB view details)

Uploaded Source

Built Distribution

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

hirid_meds-0.0.2-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file hirid_meds-0.0.2.tar.gz.

File metadata

  • Download URL: hirid_meds-0.0.2.tar.gz
  • Upload date:
  • Size: 130.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hirid_meds-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ee5ed913c3b19e46786c320109786de9f34dde6b333b7524dfd569a5af08f0ae
MD5 58f4019415dcdae71455a3acb1809695
BLAKE2b-256 cad01eceb11a08105d584e426afa00bb67fd6cbbb27addfe7768ca3566d52bd2

See more details on using hashes here.

Provenance

The following attestation bundles were made for hirid_meds-0.0.2.tar.gz:

Publisher: python-build.yaml on rvandewater/HIRID_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 hirid_meds-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: hirid_meds-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hirid_meds-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 20e2abd267cb5161c80e9f7069eb117ca25c107d2b5ffc0d6e56fe67f0576850
MD5 01d38d503cee94e353bcf74f76944a85
BLAKE2b-256 d1a0b4481927cdd2b3ea4006bf1bc42821a568429c11b41c00fb1fa0de580cbe

See more details on using hashes here.

Provenance

The following attestation bundles were made for hirid_meds-0.0.2-py3-none-any.whl:

Publisher: python-build.yaml on rvandewater/HIRID_MEDS

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page