pyhealth

Build, test, and deploy ML models on clinical data with modular pipelines.

6|Updated Dec 30, 2025
One-click install
npx skills add https://github.com/pur3v4d3r/pur3-pkb-codebase --skill pyhealth-pur3v4d3r
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pyhealth
Source: https://github.com/pur3v4d3r/pur3-pkb-codebase/tree/main/.claude/skills/__scientific-skills/pyhealth
Command: npx skills add https://github.com/pur3v4d3r/pur3-pkb-codebase --skill pyhealth-pur3v4d3r

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PyHealth provides a comprehensive toolkit for healthcare AI development, enabling researchers and engineers to build, test, and deploy ML models using clinical data and standard healthcare datasets.

Core Features & Use Cases

  • Data loading and task definition: standardized interfaces to load EHR datasets (MIMIC, eICU, OMOP) and define prediction tasks.
  • Model development and deployment: a modular pipeline including model selection, training, evaluation, calibration, and interpretability.
  • Healthcare domain tooling: medical coding translation, preprocessing, and support for healthcare-specific models like RETAIN, SafeDrug, Transformer, GNN.
  • Real-world use cases include mortality prediction, readmission, drug recommendation, sleep staging, ICD/RxNorm translation, etc.

Quick Start

Install PyHealth, load a healthcare dataset, set a predefined task, and train a Transformer model.

Frequently Asked Questions about pyhealth

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

FAQPage Schema
How do I build ML models for mortality prediction using MIMIC EHR data?

To build ML models for mortality prediction using MIMIC EHR data, you can use a modular pipeline that provides standardized interfaces for data loading, task definition, and model training. It supports clinical datasets like MIMIC directly.

What is the best way to train clinical ML models for hospital readmission tasks?

The best way to train clinical ML models for hospital readmission tasks is using a unified healthcare AI toolkit. It offers predefined prediction tasks, model selection, and evaluation modules tailored for EHR datasets like eICU and OMOP.

Can I translate ICD codes and deploy healthcare models in the same pipeline?

Yes, you can translate ICD codes and deploy healthcare models in the same pipeline. The toolkit includes medical coding translation alongside model training, calibration, and interpretability within a single modular workflow.

Does this clinical ML toolkit support EEG and ECG signal processing?

Yes, this clinical ML toolkit supports EEG and ECG signal processing. It is designed to handle EHR datasets, medical coding, and signal data for tasks like sleep staging and mortality prediction.

How do I implement drug recommendation models from clinical text?

To implement drug recommendation models from clinical text, you can use the toolkit's predefined tasks and specialized models like SafeDrug. The pipeline covers data loading, model selection, training, and evaluation for clinical text applications.

What healthcare-specific ML models are available for EHR datasets?

Available healthcare-specific ML models for EHR datasets include RETAIN, SafeDrug, Transformer, and GNN. These models integrate into the pipeline for tasks ranging from mortality prediction to drug recommendation.