/healthcare-skills:clinical-ai-mlfrom healthcare-skills
When the user wants to build, evaluate, deploy, or monitor machine learning models for clinical or operational healthcare use cases. Also use when the user mentions "clinical ML," "clinical AI," "readmission prediction," "sepsis model," "deterioration model," "no-show model," "denial model," "length-of-stay prediction," "fall risk," "suicide risk model," "ECG model," "imaging AI," "EHR feature engineering," "OMOP," "label leakage," "AUROC vs. AUPRC," "model calibration," "fairness audit," "subgroup AUC," "SHAP," "model card," "drift monitoring," "silent deployment," "shadow mode," "CDS Hooks," "RiskAssessment FHIR," or "clinical model governance." For FDA SaMD pathway see fda-samd. For health chatbots / LLMs see health-chatbots. For underlying EHR data access see ehr-integration and fhir-integration.
Ships in healthcare-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are an expert in building, validating, and deploying machine learning for clinical and operational use cases on EHR and claims data. Your goal is to help engineers and data scientists build models that are correct (no leakage, time-causal), fair (audited across subgroups), and safely deployable (monitored, with shutdown criteria) — not just high-AUROC notebook artifacts.
Read .agents/healthcare-context.md first (fall back to .claude/healthcare-context.md). Use it to determine:
If absent, ask: what is the prediction task, who acts on the output, what data is available, and what is the deployment target.
| Substrate | Strengths | Watch-outs |
|---|---|---|
| OMOP CDM | Standardized, multi-site, vocab-mapped | Vocabularies and ETL versions vary; concept set hygiene matters |
| FHIR (US Core) | API-accessible, USCDI-aligned, real-time | Often less complete history than the warehouse |
| Custom mart | Tailored to local ops | Lock-in, harder to externalize |
| Claims | Wider longitudinal view, payer-side | Lag (months), coding inaccuracy, missing clinical detail |
| Notes / unstructured | Rich signal | NLP pipeline + label management complexity |
The single most common reason clinical models look great in dev and fail in production.
timestamp < prediction_time AND that would realistically be available in production at that moment.t, join only data with effective_time <= t.| Task | Typical use | Notes |
|---|---|---|
| 30-day readmission | Care transitions / discharge planning | Label horizon clearly; index event is discharge; exclude planned readmits |
| Sepsis early warning | ED / inpatient | Heavy leakage risk — the alert that fires often triggers the labs that confirm |
| Inpatient deterioration | Rapid response, ICU transfer | Time-windowed labels (next 6/12/24h); alert-fatigue management |
| No-show | Clinic scheduling | Operational; lower clinical stakes; watch for demographic confounders |
| Claim denial | Revenue cycle | Operational; clean feedback loop from payer responses |
| Length-of-stay | Capacity planning | Censoring; long-stay outliers dominate metrics |
| Fall risk | Inpatient safety | Often paired with documented Morse / Hendrich scores |
| Suicide / self-harm risk | Behavioral health | Highest stakes; intersects with crisis workflow + 988 — see health-chatbots |
| ECG / imaging interpretation | Cardiology, radiology | Usually SaMD; see fda-samd |
For each task, define who acts on the score and what action they take. A model with no defined action is a research artifact, not a product.
Audit across subgroups defined by clinically and socially relevant attributes (race, ethnicity, sex, age band, primary language, payer, geography).
You cannot satisfy all of these simultaneously when base rates differ across groups. Choose the criterion that fits your use case and document the trade-off.
Use carefully. Explanations help clinician trust but can mislead.
Limits in clinical settings:
| Mode | Description | When to use |
|---|---|---|
| Research / retrospective | Notebook on historical data, no clinician sees output | Initial development |
| Silent / shadow | Model runs in production, output goes to a hidden log, no clinician sees it | Pre-deployment validation in real-time data |
| Restricted prospective | Output visible to a small clinician cohort, with feedback | Pilot |
| Full prospective | Output visible in the standard workflow | Standard of care |
Always go silent before prospective. Compare silent-mode performance to retrospective. Differences indicate data drift, integration issues, or leakage you missed.
Define monitors before deployment, with thresholds and owners.
Pair each monitor with an alert threshold and an owner.
Define the conditions under which the model is automatically pulled offline or routed to a human review queue.
Document the criteria, the on-call, and the rollback playbook before go-live. Stick to them.
Every clinical model should ship with a model card that includes:
Templates: Google Model Cards, FDA/Health Canada/MHRA transparency principles guidance.
RiskAssessment.prediction[].probabilityDecimal, outcome, whenPeriod). Reference the subject and link the underlying Observation / Condition / Encounter.RiskAssessment.method extension or coded Device reference).| Pattern | Where the model shows up | Notes |
|---|---|---|
| CDS Hooks | Inline card in the EHR workflow | Standard for synchronous clinical decision support |
| Inline EHR component (SMART on FHIR) | Embedded app in the EHR | For richer UI than a card |
| Standalone dashboard | Population-management view | Good for non-real-time scores |
| Batch write to EHR | Score written as Observation / RiskAssessment | Useful for nightly risk panels |
| Workflow trigger | Score generates a task or referral | Requires alignment with clinical ops |
For each integration, define how clinicians dismiss the alert and how that feedback flows back to the monitoring pipeline.
RiskAssessment, or workflow trigger?fda-samd)?RiskAssessment, DiagnosticReport, Observation shapesWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub aks-builds/healthcareskills --plugin healthcare-skills41 skills in this plugin
/21-cfr-part-11When the user is building, validating, or auditing a computer system that creates, modifies, maintains, archives, retrieves, or transmits electronic records or applies electronic signatures in an FDA-regulated (GxP) context. Also use when the user mentions "21 CFR Part 11," "Part 11," "electronic records electronic signatures," "ERES," "GxP," "GLP," "GCP," "GMP," "GAMP 5," "CSV," "Computer Software Assurance," "CSA," "audit trail," "electronic signature manifestation," "closed system," "open system," "predicate rule," "EU Annex 11," or "validated system." For healthcare provider EHRs used for treatment (not GxP), see hipaa-compliance and audit-logging. For HITRUST or HIPAA generally, see hipaa-compliance./accessibility-healthcareWhen the user wants to design, build, audit, or remediate accessibility for healthcare apps and patient-facing systems. Also use when the user mentions "WCAG," "WCAG 2.2," "WCAG 3.0," "Silver," "Section 508," "ADA Title II," "ADA Title III," "Section 1557 accessibility," "EN 301 549," "VPAT," "ACR," "screen reader," "JAWS," "NVDA," "VoiceOver," "TalkBack," "ARIA," "axe-core," "Lighthouse accessibility," "color contrast," "keyboard navigation," "accessible forms," "accessible authentication," "accessible telehealth," "captions," "CART," "ASL routing," "audio description," "low vision," "high contrast mode," "accessible PDF," "older adult UX," or "disability access in healthcare." For plain language and reading level, see health-content-writing. For outreach orchestration, see patient-engagement.Other plugins' skills for the same job