Skip to content

Complete the AUMCdb dataset registration - #305

Open
mmcdermott wants to merge 3 commits into
devfrom
feat/add-dataset-aumcdb
Open

Complete the AUMCdb dataset registration#305
mmcdermott wants to merge 3 commits into
devfrom
feat/add-dataset-aumcdb

Conversation

@mmcdermott

@mmcdermott mmcdermott commented May 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

AUMCdb (Amsterdam UMCdb — ICU dataset) was previously registered only as a stub: predicates.yaml + README.md, no dataset.yaml, no requirements, no refs. This PR completes the registration.

Files added/modified:

  • dataset.yaml — metadata + build_full command shelling out to MEDS_extract-AUMCdb. No build_demo (the upstream extractor doesn't ship a demo recipe; Make build_demo optional, skip demo-less datasets in tests #312 makes the key optional and ensures integration tests skip it).
  • predicates.yaml — replaced with the full ICU predicate set from the upstream contribution (mojibake �mol/l fixed to µmol/l along the way).
  • requirements.txt — pins AUMCdb-MEDS==0.0.2.
  • refs.bib — Thoral et al., 2021.
  • tasks/mortality/in_icu/first_24h.yaml — adds AUMCdb to supported_datasets. AUMCdb defines icu_admission / icu_discharge, so the task wires up.

Depends on #312

#312 makes build_demo optional in the registry and skips datasets that don't declare it from the integration test matrix. Targeted at feat/dataset-demo-availability for now; once #312 merges, this PR retargets to dev.

Open items not fixed here

Left for follow-ups so this PR's scope stays focused on AUMCdb itself:

  • The contributor's predicates have # Todo: convert to mg/dL markers — value thresholds are in the source's native units rather than mg/dL. Worth tracking but not blocking registration.
  • MEDS_cohort_dir vs MEDS_output_dir arg name — dev's MIMIC-IV uses MEDS_output_dir; this PR uses MEDS_cohort_dir (matching the contributor's branch and the AUMCdb-MEDS API). Whether one is stale upstream is a separate question.

Test plan

Supersedes / refs

🤖 Generated with Claude Code

@codecov

codecov Bot commented May 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

@mmcdermott
mmcdermott changed the base branch from dev to feat/dataset-demo-availability May 13, 2026 16:33
@mmcdermott
mmcdermott force-pushed the feat/add-dataset-aumcdb branch from 5422778 to 194f020 Compare May 13, 2026 16:33
mmcdermott added a commit that referenced this pull request May 13, 2026
Prerequisite for the per-dataset registration PRs (#305 AUMCdb, #306
EHRShot, #307 HIRID, #308 INSPIRE, #309 NWICU, #310 SICdb, #311 eICU).
Most of those datasets' upstream extractors don't ship a publicly
installable demo, and the existing registry validation requires every
dataset to declare a build_demo command.

Switches the convention to: a dataset has a demo iff its commands
declare build_demo. Absence is the signal — no separate metadata field.

- `test_all_datasets_have_commands` now requires `build_full` (which
  every dataset still needs) and allows missing `build_demo`.
- `tests/conftest.py` drops datasets without `build_demo` from the
  integration test matrix, so a per-dataset CI lane for one collects
  zero parametrized tests and passes cleanly rather than trying to
  build data the dataset can't produce.
- `src/MEDS_DEV/datasets/__main__.py` raises a clear error when called
  with `demo=True` against a dataset that doesn't declare a
  build_demo command (instead of the previous KeyError).

No dataset.yaml files change here — those changes ship with the sister
per-dataset PRs that depend on this one.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mmcdermott
mmcdermott force-pushed the feat/dataset-demo-availability branch from 17019a0 to a2d4038 Compare May 13, 2026 17:20
@mmcdermott
mmcdermott force-pushed the feat/add-dataset-aumcdb branch from 194f020 to c250d06 Compare May 13, 2026 17:21
@mmcdermott
mmcdermott changed the base branch from feat/dataset-demo-availability to dev May 13, 2026 17:43
@mmcdermott
mmcdermott force-pushed the feat/add-dataset-aumcdb branch from c250d06 to bc7b651 Compare May 13, 2026 17:43
@rvandewater
rvandewater marked this pull request as ready for review July 14, 2026 15:27
@rvandewater

Copy link
Copy Markdown
Collaborator

@prockenschaub Can you check the predicates in case you know more?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants