Skill · em Dados, IA e pesquisa

pyhealth

Comprehensive healthcare AI toolkit for developing, testing, and deploying machine learning models with clinical data. This skill should be used when working with electronic health records (EHR), clinical prediction tasks (mortality, readmission, drug recommendation), medical coding systems (ICD,…

Procedência

Antes de instalar

7 arquivos · 86 KB · só texto, nenhum script

Instalar na sua CLI

O comando baixa a versão fixada (commit 57f899e) direto da origem, para a pasta que a CLI lê. Precisa de curl (macOS e Linux); no Windows não há comando, porque o Rook Labs é para macOS.

Claude Code

Neste projeto: instala em .claude/skills/pyhealth/.

d=".claude/skills/pyhealth"
u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/scientific/pyhealth"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/references/datasets.md" "$u/references/datasets.md" \
  -o "$d/references/medical_coding.md" "$u/references/medical_coding.md" \
  -o "$d/references/models.md" "$u/references/models.md" \
  -o "$d/references/preprocessing.md" "$u/references/preprocessing.md" \
  -o "$d/references/tasks.md" "$u/references/tasks.md" \
  -o "$d/references/training_evaluation.md" "$u/references/training_evaluation.md" \
  -o "$d/LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Global: instala em ~/.claude/skills/pyhealth/.

d="$HOME/.claude/skills/pyhealth"
u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/scientific/pyhealth"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/references/datasets.md" "$u/references/datasets.md" \
  -o "$d/references/medical_coding.md" "$u/references/medical_coding.md" \
  -o "$d/references/models.md" "$u/references/models.md" \
  -o "$d/references/preprocessing.md" "$u/references/preprocessing.md" \
  -o "$d/references/tasks.md" "$u/references/tasks.md" \
  -o "$d/references/training_evaluation.md" "$u/references/training_evaluation.md" \
  -o "$d/LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Codex

Neste projeto: instala em .agents/skills/pyhealth/.

d=".agents/skills/pyhealth"
u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/scientific/pyhealth"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/references/datasets.md" "$u/references/datasets.md" \
  -o "$d/references/medical_coding.md" "$u/references/medical_coding.md" \
  -o "$d/references/models.md" "$u/references/models.md" \
  -o "$d/references/preprocessing.md" "$u/references/preprocessing.md" \
  -o "$d/references/tasks.md" "$u/references/tasks.md" \
  -o "$d/references/training_evaluation.md" "$u/references/training_evaluation.md" \
  -o "$d/LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Global: instala em ~/.agents/skills/pyhealth/.

d="$HOME/.agents/skills/pyhealth"
u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/scientific/pyhealth"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/references/datasets.md" "$u/references/datasets.md" \
  -o "$d/references/medical_coding.md" "$u/references/medical_coding.md" \
  -o "$d/references/models.md" "$u/references/models.md" \
  -o "$d/references/preprocessing.md" "$u/references/preprocessing.md" \
  -o "$d/references/tasks.md" "$u/references/tasks.md" \
  -o "$d/references/training_evaluation.md" "$u/references/training_evaluation.md" \
  -o "$d/LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Antigravity

Neste projeto: instala em .agents/skills/pyhealth/.

d=".agents/skills/pyhealth"
u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/scientific/pyhealth"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/references/datasets.md" "$u/references/datasets.md" \
  -o "$d/references/medical_coding.md" "$u/references/medical_coding.md" \
  -o "$d/references/models.md" "$u/references/models.md" \
  -o "$d/references/preprocessing.md" "$u/references/preprocessing.md" \
  -o "$d/references/tasks.md" "$u/references/tasks.md" \
  -o "$d/references/training_evaluation.md" "$u/references/training_evaluation.md" \
  -o "$d/LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Global: instala em ~/.gemini/antigravity-cli/skills/pyhealth/.

d="$HOME/.gemini/antigravity-cli/skills/pyhealth"
u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/scientific/pyhealth"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/references/datasets.md" "$u/references/datasets.md" \
  -o "$d/references/medical_coding.md" "$u/references/medical_coding.md" \
  -o "$d/references/models.md" "$u/references/models.md" \
  -o "$d/references/preprocessing.md" "$u/references/preprocessing.md" \
  -o "$d/references/tasks.md" "$u/references/tasks.md" \
  -o "$d/references/training_evaluation.md" "$u/references/training_evaluation.md" \
  -o "$d/LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Peça ao Rook

Já usa o Rook Labs? Cole no chat do Rook: instale a skill https://rooklabs.sh/marketplace/cct.pyhealth

Prévia do SKILL.md

---
name: pyhealth
description: Comprehensive healthcare AI toolkit for developing, testing, and deploying machine learning models with clinical data. This skill should be used when working with electronic health records (EHR), clinical prediction tasks (mortality, readmission, drug recommendation), medical coding systems (ICD, NDC, ATC)…
---

# PyHealth: Healthcare AI Toolkit

## Overview

PyHealth is a comprehensive Python library for healthcare AI that provides specialized tools, models, and datasets for clinical machine learning. Use this skill when developing healthcare prediction models, processing clinical data, working with medical coding systems, or deploying AI solutions in healthcare settings.

## When to Use This Skill

Invoke this skill when:

- **Working with healthcare datasets**: MIMIC-III, MIMIC-IV, eICU, OMOP, sleep EEG data, medical images
- **Clinical prediction tasks**: Mortality prediction, hospital readmission, length of stay, drug recommendation
- **Medical coding**: Translating between ICD-9/10, NDC, RxNorm, ATC coding systems
- **Processing clinical data**: Sequential events, physiological signals, clinical text, medical images
- **Implementing healthcare models**: RETAIN, SafeDrug, GAMENet, StageNet, Transformer for EHR
- **Evaluating clinical models**: Fairness metrics, calibration, interpretability, uncertainty quantification

## Core Capabilities

PyHealth operates through a modular 5-stage pipeline optimized for healthcare AI:

1. **Data Loading**: Access 10+ healthcare datasets with standardized interfaces
2. **Task Definition**: Apply 20+ predefined clinical prediction tasks or create custom tasks
3. **Model Selection**: Choose from 33+ models (baselines, deep learning, healthcare-specific)
4. **Training**: Train with automatic checkpointing, monitoring, and evaluation
5. **Deployment**: Calibrate, interpret, and validate for clinical use

**Performance**: 3x faster than pandas for healthcare data processing

## Quick Start Workflow

```python
from pyhealth.datasets import MIMIC4Dataset
from pyhealth.tasks import mortality_prediction_mimic4_fn
from pyhealth.datasets import split_by_patient, get_dataloader
…

Ver todo o marketplace