pyhealth
Build Clinical Machine Learning Workflows with PyHealth
Clinical machine learning projects require specialized data, task, model, and evaluation choices. This skill provides structured PyHealth guidance from dataset preparation through validation.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "pyhealth" from https://skillstore.io/skills/davila7-pyhealth.md and its manifest at https://skillstore.io/api/skills/davila7-pyhealth/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "pyhealth". Plan mortality prediction with MIMIC-IV and RETAIN.
Expected outcome:
- Define an in-hospital mortality cohort and split records by patient.
- Compare RETAIN against logistic regression and monitor AUPRC.
- Calibrate probabilities, assess demographic subgroups, and require clinical review.
Using "pyhealth". Standardize medication codes for a drug recommendation task.
Expected outcome:
- Normalize source codes before mapping NDC or RxNorm values to ATC.
- Select an explicit ATC hierarchy level and retain unmapped-code reports.
- Validate one-to-many mappings before creating medication features.
Using "pyhealth". Evaluate a sleep staging model built from EEG signals.
Expected outcome:
- Check filtering, sampling rate, and fixed-length segmentation.
- Report macro F1 and per-stage performance for imbalanced labels.
- Test patient-level generalization and inspect confusion between adjacent stages.
Security Audit
SafeAll 60 static findings are false positives caused by Markdown syntax, standard Python imports, clinical terminology, and documentation links. The examples include one fixed installation command, with no automatic execution, command interpolation, reconnaissance, or suspicious network behavior. No prompt injection, social engineering, or data exfiltration intent was found.
Risk Factors
โก Contains scripts (4)
โ๏ธ External commands (46)
๐ Network access (2)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/davila7-pyhealth/audits/9?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/davila7-pyhealth?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/davila7-pyhealth?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/davila7-pyhealth/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/davila7-pyhealth.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA ยท BibTeX ยท CFF)
APA citation
davila7. (2026). pyhealth security audit report (audit version 9) [Author version unspecified]. Skillstore. https://skillstore.io/skills/davila7-pyhealth/audits/9BibTeX citation
@techreport{davila7-davila7-pyhealth-2026,
author = {davila7},
title = {pyhealth security audit report (audit version 9)},
institution = {Skillstore},
year = {2026},
number = {9},
url = {https://skillstore.io/skills/davila7-pyhealth/audits/9},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "pyhealth security audit report (audit version 9)"
version: "unspecified"
type: report
authors:
- name: "davila7"
date-released: "2026-07-23"
url: "https://skillstore.io/skills/davila7-pyhealth/audits/9"
identifiers:
- type: other
value: "skillstore:davila7-pyhealth:audit:9"
description: "Skillstore immutable audit report identifier"
Compare variants
2 installable variantsEach author remains a separate installable skill. The recommended variant is ranked by Skillstore evidence.
Why this variant is first
davila7-pyhealth
2026-09-09
k-dense-ai-pyhealth
2026-09-09
Skillstore Score
Why this score Evidence Confidence: HighWhat You Can Build
Design a Clinical Prediction Study
Plan cohorts, patient-level splits, baselines, PyHealth models, metrics, calibration, and subgroup evaluation for a clinical prediction task.
Standardize Healthcare Data
Map diagnosis and medication codes, process longitudinal events, and prepare consistent PyHealth samples across data sources.
Validate a Healthcare Model
Review discrimination, calibration, uncertainty, interpretability, fairness, and external validation requirements before deployment.
Try These Prompts
Plan a beginner PyHealth workflow for [dataset] and [clinical_task]. Explain required data, task setup, model baseline, split strategy, and metrics.
Design preprocessing for [data_type] in PyHealth. Include missing values, encoding, patient-level splitting, leakage checks, and validation statistics.
Compare [models] for [task] using [dataset]. Recommend hyperparameters, metrics, calibration, fairness checks, and interpretation methods with clear tradeoffs.
Draft an end-to-end PyHealth experiment for [task] across [sites]. Include external validation, uncertainty, subgroup analysis, deployment gates, and reproducibility controls.
Best Practices
- Split records by patient to prevent leakage across training, validation, and test sets.
- Start with a simple baseline before comparing specialized healthcare models.
- Evaluate calibration, fairness, uncertainty, and external validity alongside predictive performance.
Avoid
- Do not place records from one patient in multiple dataset splits.
- Do not choose metrics without considering class imbalance and clinical consequences.
- Do not deploy predictions without privacy, clinical, fairness, and external validation reviews.
Frequently Asked Questions
Does this skill include healthcare datasets?
Which clinical tasks are covered?
Can it translate medical codes?
Does it train models automatically?
Is the output suitable for clinical deployment?
Which AI assistants are supported?
Developer Details
Author
davila7License
MIT
Skillstore revision
r2
Version notice
The author did not declare a version.
Ref
c43861a65bb95efcae259cd161c9d6f4dc7eec6f
Maintenance freshness
7/24/2026
Usage
9 downloads ยท 527 views
File structure
๐ references/
๐ datasets.md
๐ medical_coding.md
๐ models.md
๐ preprocessing.md
๐ tasks.md
๐ SKILL.md