Suggested diagnoses ranked by model confidence, as shadcn Items, each with the findings for and against it.
1
Stable anginaI20.8
42%
2
Gastro-oesophageal refluxK21.9
27%
3
CostochondritisM94.0
14%
4
Acute coronary syndromeI24.9
9%
Model confidence, not a probability of disease. A clinician decides the diagnosis.
Installation
bunx shadcn@4.22.1 add https://organui.com/r/differential-list.jsonThis adds components/ui/differential-list.tsx, built on shadcn's components in your project's Base UI or Radix style.
Usage
import { DifferentialList } from "@/components/ui/differential-list"
<DifferentialList
items={[
{
id: "angina",
name: "Stable angina",
code: "I20.8",
confidence: 0.42,
supporting: ["Tightness brought on by exertion"],
},
]}
/>API Reference
| Prop | Description |
|---|---|
items | { id, name, confidence, code?, supporting?, against? }. confidence runs from 0 to 1; the list sorts by it. |
label | Names the list. Defaults to "Differential diagnosis". |
Notes
A model's confidence isn't a calibrated probability of disease, and the list says so below itself.
Each item's evidence opens on its own, so the list stays short until someone asks why.