Skip to main content

SICdb_MEDS ETL

PyPI - Version Documentation Status codecov tests code-quality python Static Badge license PRs contributors DOI

The SICdb dataset offers insights into over 27 thousand intensive care admissions, including therapies and data on preceding surgeries. Data were collected between 2013 and 2021 from four different intensive care units at the University Hospital Salzburg, having more than 3 thousand intensive care admissions per year on 41 beds. The dataset is deidentified and contains, amongst others, case information, vital signs, laboratory results and medication data. SICdb provides both aggregated once-per-hour and highly granular once-per-minute data, making it suitable for computational and machine learning-based research. (source: https://www.sicdb.com/Documentation/Main_Page)

Usage

pip install SICdb_MEDS
export DATASET_DOWNLOAD_USERNAME=$PHYSIONET_USERNAME
export DATASET_DOWNLOAD_PASSWORD=$PHYSIONET_PASSWORD

meds-extract-run spec=SICdb output_dir=$MEDS_COHORT_DIR

# or, if the release is already on disk
meds-extract-run spec=SICdb output_dir=$MEDS_COHORT_DIR do_download=false input_dir=$RAW_INPUT_DIR

Waveform extraction is not currently supported; see #1.

Configuration

The entire ETL is described by one file, src/SICdb_MEDS/messy.yaml — a MESSY config carrying three sections:

  • sources: — where the raw data lives. meds-extract-download stages it, with SHA-256 verification and resumable transfers. This replaces the old hand-rolled download.py.
  • etl: — the dataset name plus curated stage options (n_subjects_per_shard).
  • the event tables — what to extract, written in dftly expressions.

Because the config is registered under the MEDS_extract.pipelines entry-point group, the extraction half is runnable directly, without this package's CLI wrapper:

# Stage the raw data only:
meds-extract-download spec=SICdb output_dir=$RAW_INPUT_DIR

# Run the canonical 8-stage pipeline over already-pre-MEDS'd data:
meds-extract-run spec=SICdb output_dir=$MEDS_COHORT_DIR download_key=null input_dir=$PRE_MEDS_DIR

There is no wrapper CLI and no pre-MEDS step. Both are gone: the archive is unpacked by the download layer, and offsets are resolved to absolute pseudo-timestamps in _table.cols. The package ships no Python at all -- the whole ETL is src/SICdb_MEDS/messy.yaml.

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

Development

See DEVELOPMENT.md for setup, tests, running the ETL locally, and the release process.

Citation

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

@article{rodemundHarnessingBigData2024,
title = {Harnessing {Big} {Data} in {Critical} {Care}: {Exploring} a new {European} {Dataset}},
volume = {11},
copyright = {2024 The Author(s)},
issn = {2052-4463},
shorttitle = {Harnessing {Big} {Data} in {Critical} {Care}},
url = {https://www.nature.com/articles/s41597-024-03164-9},
doi = {10.1038/s41597-024-03164-9},
language = {en},
number = {1},
urldate = {2024-04-04},
journal = {Scientific Data},
author = {Rodemund, Niklas and Wernly, Bernhard and Jung, Christian and Cozowicz, Crispiana and Koköfer, Andreas},
month = mar,
year = {2024},
note = {Publisher: Nature Publishing Group},
keywords = {Clinical trial design, Experimental models of disease},
pages = {320},
}

For the ETL:

@software{van_de_Water_SICdb_MEDS_ETL_2025,
author = {van de Water, Robin P.},
doi = {10.5281/zenodo.14893939},
license = {MIT},
month = feb,
title = {{SICdb\_MEDS ETL}},
url = {https://github.com/rvandewater/SICdb_MEDS},
version = {0.0.1},
year = {2025}
}

Metadata

Release files for SICdb-MEDS 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for SICdb-MEDS 0.1.0
File Size Uploaded Provenance Actions
sicdb_meds-0.1.0.tar.gz 21.2 kB With provenance Details for sicdb_meds-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for SICdb-MEDS 0.1.0
File Interpreter ABI Platform Actions
sicdb_meds-0.1.0-py3-none-any.whl Python 3 none any Details for sicdb_meds-0.1.0-py3-none-any.whl

Total release size: 37.8 kB

Release files / sicdb_meds-0.1.0.tar.gz

Download URL sicdb_meds-0.1.0.tar.gz
Size 21.2 kB
Tags Source
SHA-256 checksum
How to use checksums
eb110bb30e32b142e0efb80e5b9d5268dba9314c66667c73db46ad0c5e6f739b
BLAKE2b-256 checksum
How to use checksums
cc79af15f118407aabbf78d320788e14b1859e6ce1f04773458d173e97b92a52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Release files / sicdb_meds-0.1.0-py3-none-any.whl

Download URL sicdb_meds-0.1.0-py3-none-any.whl
Size 16.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f5ab8aaaa96e0f375db437618bf500ca6483f1c6f24a06268b267dc8d3c0fa6
BLAKE2b-256 checksum
How to use checksums
777566074643f021ba952b2849b18aee0c15112867941ca3f59a4290b3a30321
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Security for SICdb-MEDS 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sicdb_meds-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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