ehr-analysis

Automate end-to-end EHR predictive modeling workflows with PyHealth.

25|5|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/zongtingwei/Bioclaw_Skills_Hub --skill ehr-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ehr-analysis
Source: https://github.com/zongtingwei/Bioclaw_Skills_Hub/tree/main/skills/ehr-analysis
Command: npx skills add https://github.com/zongtingwei/Bioclaw_Skills_Hub --skill ehr-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

End-to-end EHR predictive modeling pipelines are complex and time-consuming; this skill provides a structured pattern to load diverse EHR datasets, define clinical tasks, train models, evaluate results, calibrate predictions, and interpret outcomes.

Core Features & Use Cases

  • End-to-end EHR predictive modeling pipeline covering dataset loading, task definition, model training, evaluation, calibration, and clinical interpretation.
  • Supports datasets such as MIMIC-III, MIMIC-IV, eICU, OMOP-CDM, or custom datasets, with tasks including mortality, readmission, length of stay, and drug recommendation; includes medical code normalization and ontology mapping; supports calibration and interpretability.
  • Workflow and governance artifacts include reproducible experiments, task schemas, and result reporting for clinical AI research.

Quick Start

Load an EHR dataset with PyHealth, define a clinical task, train a model, and evaluate on a held-out patient test set.

Frequently Asked Questions about ehr-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build an end-to-end EHR predictive modeling pipeline using PyHealth?

To build an EHR predictive modeling pipeline with PyHealth, load structured clinical datasets like MIMIC-III or eICU, define clinical tasks, perform patient-wise data splits, train models, and evaluate outcomes. This structured pattern covers everything from dataset loading to interpretability.

What clinical prediction tasks can I run on MIMIC-IV and eICU datasets?

Clinical prediction tasks supported for MIMIC-IV and eICU datasets include mortality, readmission, length of stay, and drug recommendation. The workflow supports medical code normalization and ontology mapping for these structured EHR data sources.

Does PyHealth support prediction calibration and model interpretability for clinical AI?

PyHealth supports prediction calibration and model interpretability for clinical AI. The workflow enforces a repeatable pattern that includes calibrating predictions and interpreting outcomes with reproducible artifacts and task schemas.

Can I use custom EHR datasets for predictive modeling if they follow the OMOP-CDM format?

You can use custom EHR datasets for predictive modeling if they follow the OMOP-CDM format. The pipeline supports loading custom datasets alongside MIMIC-III, MIMIC-IV, and eICU for tasks like mortality and readmission prediction.

What is the best way to ensure reproducible EHR predictive modeling experiments?

The best way to ensure reproducible EHR predictive modeling experiments is to follow a structured workflow that enforces patient-wise train, validation, and test splits. This generates reproducible artifacts and task schemas for clinical AI research.

Why do I need patient-wise data splits for EHR predictive modeling?

Patient-wise data splits are needed for EHR predictive modeling to prevent data leakage across training, validation, and test sets. This ensures reliable evaluation for clinical tasks like mortality and readmission prediction on structured EHR data.