ehr-analysis

ehr-analysis is a skill for Claude Code, Codex from zongtingwei/Bioclaw_Skills_Hub. It costs 33 tokens per session (2,137 once invoked), scanned A, original, MIT.

A workflow for building prediction models from electronic health records, which are digital patient records. It covers preparing the data, training models, checking their results, and interpreting them.

In plain words
What is it for?
It helps predict outcomes such as mortality, readmission, hospital stay length, or medication recommendations using datasets such as MIMIC, eICU, OMOP, or custom records.
Why use it?
It organizes the many steps needed to turn patient visit records into tested clinical predictions, while accounting for different medical data formats and software versions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps predict outcomes such as mortality, readmission, hospital stay length, or medication recommendations using datasets such as MIMIC, eICU, OMOP, or custom records.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zongtingwei/bioclaw_skills_hub/ehr-analysis
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add zongtingwei/Bioclaw_Skills_Hub --skill ehr-analysis
Clone the repo
git clone --depth 1 https://github.com/zongtingwei/Bioclaw_Skills_Hub

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ehr-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/zongtingwei/bioclaw_skills_hub/ehr-analysis/github.svg)](https://agentmods.dev/skills/zongtingwei/bioclaw_skills_hub/ehr-analysis)
Your own site
<a href="https://agentmods.dev/skills/zongtingwei/bioclaw_skills_hub/ehr-analysis"><img src="https://agentmods.dev/badge/skills/zongtingwei/bioclaw_skills_hub/ehr-analysis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ehr-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/zongtingwei/bioclaw_skills_hub/ehr-analysis"><img src="https://agentmods.dev/badge/skills/zongtingwei/bioclaw_skills_hub/ehr-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,137 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.02137
Opus 5 $0.00016 $0.01069
Sonnet 5 $0.00007 $0.00427
Haiku 4.5 $0.00003 $0.00214

Measured 12d ago against content hash aba1a6f7d750, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

ehr-analysis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ehr-analysis/SKILL.md · 226 lines

How it starts

The opening of the file, as written. The whole thing — 226 lines — stays where its author put it; the contents beside it link to each section on GitHub.

EHR Analysis

Version Compatibility

Reference examples assume:

  • pyhealth 1.1.6+ (stable) or 2.0+ (latest, requires Python ≥ 3.12)
  • torch 2.0+
  • pandas 2.0+

Verify the runtime first:

  • Python: python -c "import pyhealth; print(pyhealth.__version__)"
  • CLI: pip show pyhealth
  • If APIs differ between 1.x and 2.x, consult the installed docs and adapt the pattern accordingly.

Overview

Use this skill when the user needs to:

  • load and structure EHR data from MIMIC-III, MIMIC-IV, eICU, OMOP-CDM, or a custom dataset
  • define clinical prediction tasks such as mortality, readmission, length of stay, or drug recommendation
  • train and evaluate deep learning or ML models on patient visit sequences
  • apply medical code normalization, ontology mapping, or tokenization
  • calibrate model outputs or generate post-hoc interpretability artifacts

When To Use This Skill

  • the data source is a structured EHR database or tabular patient record export
  • the task requires longitudinal patient visit sequences as model input
  • the user needs benchmark-compatible evaluation metrics for clinical AI
  • medical code systems (ICD, ATC, NDC, CPT, CCS) must be normalized or mapped before modeling

Quick Route

  • Known EHR source (MIMIC, eICU, OMOP): load with a pyhealth.datasets class, then set_task.
  • Custom tabular data: wrap in SampleBaseDataset, then follow the same pipeline.
  • Code mapping only: use pyhealth.medcode independently without the full pipeline.
  • Evaluation only: use pyhealth.metrics independently on existing predictions.

Progressive Disclosure

  • Read references/technical_reference.md for dataset branching rules, task schema details, model selection guidance, and calibration caveats.
  • Read references/commands_and_thresholds.md for concrete PyHealth code patterns, recommended thresholds, and output file conventions.
  • Keep SKILL.md as the main execution path and load reference files only when the task or failure mode needs the extra detail.

Read the full file on GitHub · 226 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 226 lines · 33 tokens per session scan A aba1a6f7d750

Subscribe to this mod's changes

ehr-analysis is a skill published in the GitHub repository zongtingwei/Bioclaw_Skills_Hub (26 stars, last pushed 5mo ago), licensed MIT. It adds 33 tokens to every session and 2,137 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

jupyter-live-kernel

Iterative Python via live Jupyter kernel (hamelnb).

davidtoby/agent-skills · 19 tokens

ilya-sutskever-perspective

A thinking guide based on Ilya Sutskever’s public conversations, research papers, testimony, and recommended sources. It applies that material to AI research direction, technical reasoning, and safety questions.

davidtoby/agent-skills · 183 tokens

structure-prediction

Protein structure prediction from sequence. ESMFold-based, single GPU, no MSA needed. Predicts 3D structures with pLDDT confidence scores for drug discovery targets.

synthetic-sciences/openscience · 42 tokens

scrna-orchestrator

Local Scanpy pipeline for single-cell RNA-seq QC, optional doublet detection, clustering, marker discovery, optional CellTypist annotation, optional latent downstream mode from integrated.h5ad/Xscvi, and optional dataset-level plus within-cluster contrastive marker analysis from raw-count .h5ad or 10x Matrix Market…

ClawBio/ClawBio · 74 tokens

scrna-embedding

Local scVI/scANVI-based single-cell latent embedding and batch-aware integration from raw-count .h5ad or 10x Matrix Market input, with stable integrated AnnData export for downstream latent analysis.

ClawBio/ClawBio · 46 tokens

bio-workbench

A set of rules for running reproducible bioinformatics analyses, which study biological data with software. It uses small self-contained scripts, recorded inputs and outputs, environment details, and version history so results can be repeated.

poplarity/dsh-science-workbench · 116 tokens