Skip to content
Back to skills

Pyhealth

ASecurity

"Guides PyHealth 2.0 healthcare-AI workflows for clinical datasets,

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
datapythonbashapi

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill pyhealth --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pyhealth?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pyhealth
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-pyhealth/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-pyhealth)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pyhealth
description: "Guides PyHealth 2.0 healthcare-AI workflows for clinical datasets,
  task construction, preprocessing, models, training, evaluation, medical-code
  mapping, and multimodal data."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# PyHealth

Use this skill when a task involves the `pyhealth` Python package or a
healthcare-AI pipeline built from structured EHR, clinical text, medical codes,
images, signals, or multimodal samples. PyHealth 2.0 organizes work as:
**dataset → task → processor/sample → model → trainer → metrics**. Keep patient
identity out of train/validation/test overlap unless the experiment explicitly
requires another protocol.

## First route

1. Check the Python/package prerequisite and resource gates in
   [installation-and-environment](references/installation-and-environment.md).
2. Decide whether the request is primarily data preparation, task definition,
   model training, evaluation, or medical-code/text/multimodal work.
3. Read exactly one focused route first:
   - [data-pipelines](sub-skills/data-pipelines/SKILL.md) for dataset classes,
     schemas, processors, splits, loaders, and local fixtures.
   - [clinical-tasks](sub-skills/clinical-tasks/SKILL.md) for built-in tasks,
     labels, feature keys, and custom task classes.
   - [models-training](sub-skills/models-training/SKILL.md) for model selection,
     dataset contracts, `Trainer`, devices, checkpoints, and inference.
   - [evaluation-interpretability](sub-skills/evaluation-interpretability/SKILL.md)
     for metrics, calibration, prediction sets, and explanations.
   - [medical-code-text](sub-skills/medical-code-text/SKILL.md) for `InnerMap`,
     `CrossMap`, NLP, code/text/vision/audio/signal, and multimodal routes.
4. For a complete experiment, follow the links between routes rather than
   copying an old example verbatim. Several public examples target PyHealth
   1.x names; prefer the current APIs documented in the focused route.

## Minimal checks

After installing the package, verify the public import before accessing a
clinical dataset:

```bash
python -c "import pyhealth; print('PyHealth import ok')"
python -c "from pyhealth.datasets import SampleDataset, split_by_patient, get_dataloader; from pyhealth.trainer import Trainer; print('core API ok')"
```

The package metadata requires Python `>=3.12,<3.14`. Install the base package
with `pip install pyhealth`; use `pip install 'pyhealth[graph]'` for
PyTorch-Geometric paths and `pip install 'pyhealth[nlp]'` for NLP metrics and
fuzzy matching. Use a compatible PyTorch build for the requested device; a CPU
import does not prove CUDA behavior.

## Safety and evidence gates

Do not download MIMIC, eICU, OMOP, PhysioNet, MEDS, model-hub weights, mapping
caches, or NLTK corpora unless the user has supplied authorization, access, and
a bounded destination. Do not put PHI or credentials in generated fixtures.
Use synthetic/local fixtures for API and schema checks. Treat training,
benchmark, and notebook-scale examples as recipes until data size, runtime,
and device are explicitly bounded.

Read [troubleshooting](references/troubleshooting.md) for cross-cutting import,
optional-dependency, data-access, device, and legacy-example failures. Read
[repo-provenance](references/repo-provenance.md) before deciding whether this
skill matches a changed PyHealth checkout.

Files in this skill

  • SKILL.md3.4 KB
  • references/installation-and-environment.md2.2 KB
  • references/repo-provenance.md1.5 KB
  • references/repo-routing-metadata.json519 B
  • references/troubleshooting.md3.1 KB
  • scripts/check_environment.py1.8 KB
  • sub-skills/clinical-tasks/SKILL.md1.7 KB
  • sub-skills/clinical-tasks/references/api-reference.md1.4 KB
  • sub-skills/clinical-tasks/references/task-catalog.md1.3 KB
  • sub-skills/clinical-tasks/references/troubleshooting.md1.5 KB
  • sub-skills/clinical-tasks/references/workflows.md1.6 KB
  • sub-skills/clinical-tasks/scripts/validate_task_samples.py1.3 KB
  • sub-skills/data-pipelines/SKILL.md2 KB
  • sub-skills/data-pipelines/references/api-reference.md2.4 KB
  • sub-skills/data-pipelines/references/data-formats.md1.7 KB
  • sub-skills/data-pipelines/references/dataset-recipes.md1.6 KB
  • sub-skills/data-pipelines/references/troubleshooting.md1.3 KB
  • sub-skills/data-pipelines/scripts/dataset_preflight.py930 B
  • sub-skills/data-pipelines/scripts/validate_sample_schema.py1.5 KB
  • sub-skills/evaluation-interpretability/SKILL.md1.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.