The reasoning layer for diagnostic medicine.
About TerrainDx
TerrainDx restores something modern medicine has lost: a shared, transparent picture of what might be going on, before the visit starts.
The patient walks in prepared, not anxious. The clinician sees the full landscape, not a ranked list. Both look at the same map. The conversation that follows is grounded in evidence, organized by what to do next, and traceable from probability back to source.
TerrainDx is a product of PJAMA IP LLC, founded by Paul Foster, MD — a board-certified internist with 25 years of practice, and internal medicine residency program director from 2004 to 2020. The instrument is built around a peer-reviewed call to redesign the diagnostic process6 and a provisional patent portfolio prepared with Kim IP Law Group (Voorhees, NJ).
The science
Most diagnostic AI gives you a ranked list. TerrainDx gives you a navigable map of clinical possibility — calibrated against what's known and what's missing, with the reasoning visible at every step.
Six innovations make that possible. What follows is a tour — enough to see why the system behaves the way it does. The full math, calibration data, and worked examples are in the technical white paper, available on request.
Working memory holds 5–7 named chunks reliably; ranked lists past that point look readable but aren't actually processed4. A complex case typically has 60 to 120 possibilities — far beyond what either patient or clinician can hold from a list.
TerrainDx organizes the diagnostic landscape into territories of ~7 related diagnoses, each named for what its members share clinically. The eye reads the map as a place; the mind navigates by chunks.
Every probability on the map is a Bayesian posterior you can take apart. Each diagnosis starts from a population figure: where our catalog holds a measured figure, that figure is used directly, with its citation; where it does not, the starting point is a model estimate, published with a likely range rather than a bare number. Each finding then contributes a likelihood ratio drawn from published evidence, and the result is normalized across the full landscape.
Alt-click any probability in the live tool and the chain unfolds: the starting figure — measured with its citation, or estimated with its likely range and the nearest measured diagnosis for comparison — then every LR contribution, then the posterior, then the normalized result. No black box, because there is no box.
Every clinical case has a hidden dimension: the diagnoses that weren't generated. Most diagnostic AI ignores it. TerrainDx estimates it directly, using methods from ecology that estimate species richness from incomplete sampling5.
The intuition: imagine ten graduate students surveying a forest. The number of species they collectively find isn't the answer — the structure of how often each species was seen tells you how much they probably missed.
10 students return with 10 individuals across 3 species, well-distributed.
Estimated unknown: small.10 students return with 30 individuals across 30 species — each seen exactly once.
Estimated unknown: roughly an order of magnitude larger.The same principle applies clinically. TerrainDx runs the case through a panel of specialty-trained agents, then estimates from the structure of their output how many plausible diagnoses likely sit outside what was generated. The output, normalized as Factor-X, appears to the user as “the wider view” — an explicit acknowledgment of what's still unsampled.
Putting the unknown explicitly on the map matters — but it matters differently for the clinician and the patient.
An explicit estimate of what the system may have missed is there to counter premature closure. When Factor-X is high, it's a signal to broaden the differential or seek additional history. When it's low, it's reassurance that the landscape is approximately complete — the prompt to engage System 2 only when needed.
Counterintuitively, an explicit unknown is reassuring. It places the “what if it's something nobody's thought of?” fear into a bounded probability rather than an unbounded dread. Honesty about what we don't know is more comforting than a confident-sounding list that hides the gap.
Standard triage collapses risk into one dimension. Real clinical risk is two: how bad it could get and how fast. TerrainDx captures both and combines them into a metric that reflects actual decision pressure.
| Variable | Definition | What it captures |
|---|---|---|
| Severity max | Worst plausible functional outcome | How bad this could be if it goes the wrong way (death, permanent harm, hospitalization, vs. self-limiting). |
| Steptime | Days to next clinically meaningful step | How quickly a decision must be made — minutes for a STEMI, weeks for chronic fatigue workup. |
| CTD | Clinical Threat Density | The composite that reflects actual decision pressure. |
The map renders CTD visually: territory color shifts as the metric rises; elevated diagnoses flag for attention. A 10% chance of an emergency at minutes-to-step is a different decision than the same probability at months-to-step — flat triage scales miss the gradient; CTD captures it. The clinician sees decision pressure as a place on the map, not as another numerical alarm.
Patent pending — Innovation 05Two innovations close the loop on bedside utility.
For every potential next step — a question, a finding, a test — TerrainDx computes how much that step would shift the differential. High-DLI questions surface as “Key Questions”; low-DLI ones are de-prioritized regardless of how routine. As findings come in, the ranking updates in real time.
Patient stories are imperfect. Conventional decision-support takes the case as given and breaks silently when the input is off. TerrainDx perturbs the input deliberately and re-runs the analysis to see how much the differential shifts. Diagnoses that survive are robust; diagnoses that vanish under small perturbations are fragile and get a “needs confirmation” treatment.
Experienced clinicians do this implicitly (“if she's wrong about the timing, this changes”). TerrainDx makes it a visible quantity attached to every diagnosis on the map.
Patent pending — Innovation 06A more detailed technical white paper covering each of these innovations, with citations and worked examples, is available on request.
For deeper conversations
If you'd like a deeper read on any part of the above, the following are available to qualified investors, partners, clinical collaborators, and journalists:
Full citations for references on this page are in the Bibliography under the Science section.
TerrainDx is an information tool designed to help patients and clinicians prepare for diagnostic conversations. It does not diagnose, treat, cure, or prevent any disease or condition. The patient interface operates under General Wellness exception; the clinician interface is structured for the FDA’s Clinical Decision Support exception (FD&C Act §520(o)(1)(E)).