caelum0x 9c55b78072 feat: Builder Track — 3 named-user tools made demo-ready (self-serve, built to last)
For "Built Beyond the Bench": each tool now lets its named user finish end-to-end
without the builder, with a one-click realistic example, honest loading/empty/error
states (incl. a degraded state if the Anthropic key is usage-capped — no white-screen),
and reasoned, provenance-first results.

- Lab Notebook companion (wet-lab scientist): messy/dictated bench notes -> structured,
  searchable record; grounded vs auto-inferred badges (verbatim quote per grounded
  field, dropped if not found — never invented); Copy-as-JSON / Export-.md; 503 degraded
  path on the structure route.
- Trial Matcher (research coordinator): patient vignette -> ranked ClinicalTrials.gov
  candidates with per-criterion inclusion/exclusion reasoning; honest "unknown — add the
  fact and re-run" for unstated criteria; partial-run degraded mode (per-trial failures
  dropped, never fabricated); one-click example patient.
- Claim Verification (medical-affairs reviewer): example claims (one accurate, one
  subtly-overstated), verdict card + trust score + flagged claim-vs-source spans.

tsc + next build clean. Records the multi-source benchmark run (pre source-count fix)
for the honest trail.
2026-07-11 18:47:39 +03:00

31 lines
1.9 KiB
TypeScript

// CLIENT-SIDE demo example for the CLINICAL TRIAL MATCHER.
//
// Blocker fix: a first-time coordinator should get value in ONE CLICK without typing or any DB
// seeding. This constant is a realistic, DE-IDENTIFIED oncology vignette that exercises the
// full pipeline (age/sex, condition, biomarker, prior treatment, performance status, labs,
// plus a deliberately UNSTATED criterion so the "cannot determine from note" path is visible).
//
// It contains NO identifiers by construction — no name, MRN, DOB, address, or contact — the
// same contract the tool enforces on real input. It is shipped to the browser as a plain
// string; loading it just fills the textarea and runs a normal match (no special-casing).
// A HER2+ metastatic breast cancer vignette — the canonical demo patient. Rich enough to
// produce several inclusion "met" chips and at least one honest "unknown" (liver function /
// brain metastasis status are intentionally not stated), so the reasoning breakdown is
// meaningful rather than all-green.
export const EXAMPLE_PATIENT_NOTES = [
"62-year-old female with HER2-positive metastatic breast cancer.",
"Initially diagnosed with stage II disease; now with biopsy-confirmed metastatic recurrence to bone and lung.",
"ER positive, PR negative, HER2 3+ by IHC and amplified by FISH.",
"Prior systemic therapy: trastuzumab plus pertuzumab with a taxane, then trastuzumab emtansine (T-DM1) on progression.",
"ECOG performance status 1.",
"Recent labs: eGFR 78 mL/min/1.73m2, ANC 3.1, platelets 190, hemoglobin 11.8.",
"No prior treatment with a tyrosine kinase inhibitor.",
"Postmenopausal. Adequate cardiac function, LVEF 58% on recent echocardiogram.",
].join(" ");
// A short, human label for the "Try an example" affordance so the coordinator knows what
// they are about to load before clicking.
export const EXAMPLE_PATIENT_LABEL =
"62F · HER2+ metastatic breast cancer · ECOG 1 · prior trastuzumab/T-DM1";