| Crates.io | mimic-iv-clinical-database-demo-rust-crate |
| lib.rs | mimic-iv-clinical-database-demo-rust-crate |
| version | 0.1.0 |
| created_at | 2025-11-28 13:30:10.59236+00 |
| updated_at | 2025-11-28 13:30:10.59236+00 |
| description | MIMIC-IV: The Medical Information Mart for Intensive Care (MIMIC-IV) dataset contains data for over 200,000 patients admitted to the emergency department of a major urban hospital, in addition to over 65,000 ICU patients. It incorporates contemporary data and is a widely used resource in healthcare research. This Rust crate is a work in progress for research and development, for demo purposes only, not for production use. This Rust crate provides Rust structures to serialize and deserialized the MIMIC demo files. |
| homepage | |
| repository | https://github.com/joelparkerhenderson/mimic-iv-clinical-database-demo-rust-crate/ |
| max_upload_size | |
| id | 1955288 |
| size | 36,477 |
MIMIC-IV: The Medical Information Mart for Intensive Care (MIMIC-IV) dataset contains data for over 200,000 patients admitted to the emergency department of a major urban hospital, in addition to over 65,000 ICU patients. It incorporates contemporary data and is a widely used resource in healthcare research.
Download the dataset from this URL:
Run:
unzip mimic-iv-clinical-database-demo-2.2.zip
cd mimic-iv-clinical-database-demo-2.2
find . -name '*.gz' | xargs gunzip
This demo uses AI to parse the dataset files, generate tasks, and create Rust structures that can serialize and deserialize the dataset files.
See these files:
Run:
# Create a Rust crate
cargo new mimic-iv-clinical-database-demo-rust-crate && cd $_
echo "mimic-iv-clinical-database-demo-*" >> .gitignore
# Skim the datasets to create tasks file
find . -name '*.csv' | cut -c 3- | cut -d"." -f1 |
while read x; do
headers="$(cat $x.csv | head -1)";
echo "- Create source code lib/$stem.rs struct that can serialize/deserialize file $x.csv with headers $headers";
done > tasks.md
# Launch the AI
claude plan.md
Success looks like this:
✅ All 33 structs have been created and organized into proper modules:
cargo buildAll structs use:
#[derive(Debug, Clone, Serialize, Deserialize)] for proper serialization/deserializationOption<T> types for all fields to handle missing/null CSV valuesI've successfully completed the MIMIC-IV Clinical Database Demo Rust crate project.
Here's a summary of what was accomplished.
Project Summary
Hospital Module (22 structs)
ICU Module (9 structs)
Demo Module (1 struct)
Technical Details
The crate is now ready to import and serialize/deserialize MIMIC-IV Clinical Database CSV files. You can obtain the actual CSV data from https://physionet.org/content/mimic-iv-demo/2.2/ to use with these data structures.