Add ERReadmissionMIMIC4 task for ER-specific 30-day readmission prediction#984
Open
RajendranRanjith wants to merge 1 commit intosunlabuiuc:masterfrom
Open
Add ERReadmissionMIMIC4 task for ER-specific 30-day readmission prediction#984RajendranRanjith wants to merge 1 commit intosunlabuiuc:masterfrom
RajendranRanjith wants to merge 1 commit intosunlabuiuc:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contributor Information
Contribution Type
Standalone Task — New task for MIMIC-IV ER-specific readmission prediction.
Paper Reference
KEEP: Integrating Medical Ontologies with Clinical Data for Robust Code Embeddings
Description
This PR adds
ERReadmissionMIMIC4, a new PyHealth task that predicts 30-day readmission for Emergency Room patients in MIMIC-IV. This implements the ER cohort definition from the KEEP paper, which demonstrated that ER patients have distinct readmission patterns requiring specialized prediction models.How it works:
admission_location == 'EMERGENCY ROOM'"10_E11.9")1if next admission < 30 days,0otherwiseconditionsandreadmissionfieldsKey design decisions:
BaseTaskfollowing PyHealth conventionstimedeltaparameter (default: 30 days)"{version}_{code}"matchingReadmissionPredictionMIMIC4File Guide
pyhealth/tasks/mimic4_er_readmission.pyERReadmissionMIMIC4class (~130 lines)pyhealth/tasks/__init__.pyERReadmissionMIMIC4tests/test_mimic4_er_readmission.pyexamples/mimic4_er_readmission_retain.pyexamples/mimic4_er_readmission_transformer.pydocs/api/tasks/pyhealth.tasks.mimic4_er_readmission.rstdocs/api/tasks.rstTests
All 7 unit tests pass using synthetic Patient objects (no real data required):