For the complete documentation index, see llms.txt. This page is also available as Markdown.

Pattern: clinical decision support

Healthcare — clinical decision support pattern. Faithfulness, drug-interaction safety, reasoning soundness, audit-ready evidence.

A clinical-AI assistant answers physician questions: differential diagnosis, treatment options, drug-interaction checks based on patient context. Used at the point of care, the system reads guidelines, returns a recommendation, and cites the evidence.

This pattern shows how to evaluate that system end-to-end on Stratix.

What's at stake

Risk dimension
Magnitude
Framework

Patient harm from contraindicated combinations

Adverse drug events at scale of patient encounters

Clinical incident reporting

Per-incident malpractice exposure

$250K–$5M

Industry settlement bands

FDA Software as a Medical Device action

Loss of clearance, market withdrawal

FDA SaMD guidance

Hospital accreditation impact

Joint Commission inquiry, conditional status

TJC sentinel-event protocol

HIPAA exposure on PHI in trace bodies

Per-violation civil penalties + breach reporting

HIPAA Privacy and Security Rules

The evaluation pattern

A pre- and post-deployment agentic evaluation runs over a 50-100 trace curated set drawn from representative encounter shapes (rare-disease cases, multi-morbidity, pediatric vs. geriatric weight-based dosing, contraindicated drug combinations, common edge cases).

Criteria mix (the 70/20/10 healthcare ratio):

  1. Deterministic rules (~70%)

  • Every drug pair the AI mentions is checked against an authoritative interaction database. Missing checks = CRITICAL.

  • Every dose mention extracts cleanly and matches the prescribing reference exactly.

  • PHI-redaction regex confirms no patient identifiers appear in any logged span.

  1. Natural-language assertions (~20%) — the AI's recommendation matches the ground-truth label from the case file.

  2. LLM judges (~10%)

  • Faithfulness judge (GEPA-tuned against ≥50 clinician-labeled examples — multi-class severity output) — every clinical claim is grounded in retrieved guideline content.

  • Reasoning soundness judge (GEPA-tuned against ≥50 examples) — penalize correct answers via flawed reasoning.

Don't have labels yet? See Bootstrap a judge before GEPA for the week-1 setup.

Trace shape captured:

Score retrieval (precision@k against ground-truth chunks) and synthesis (faithfulness against retrieved chunks) separately.

Continuous trace evaluation: the same configuration runs daily on a 5% sample of production traffic. Thresholds wired to in-app and Slack notifications. The dose-mention and drug-interaction-coverage rules drop to a per-trace alert, not a daily summary.

Configuration in code

What you get

  • Pre- and post-deployment evaluations surface contraindicated-combination patterns before patient impact, not 6 weeks into production.

  • Each release pin cites the evaluation IDs that gated it — a self-contained audit packet for FDA SaMD and Joint Commission inquiries.

  • Continuous trace evaluation catches drift when formulary or guideline updates shift effective knowledge.

  • Auditor-ready evaluation evidence is a byproduct, not a separate engineering project.

Stratix capabilities used

Replicate this

Last updated

Was this helpful?