Inspiration

Care coordinators rarely struggle because they have too little information. They struggle because the information is fragmented across referrals, consult notes, lab reports, imaging studies, medication lists, and follow-up records that do not always agree.

A referral may exist in one document, a consult may appear in another, and the expected follow-up may never be documented. Meanwhile, a test may have already been completed, a medication may have been stopped, or an apparently missing action may simply be outside the available record window.

We were inspired by this gap between having data and having trustworthy context. Existing alert systems often prioritize alert volume. We wanted to explore a different approach

Reconstruct the patient journey, verify whether a continuity gap is supported by evidence, and only then help a coordinator decide what to review first.

Continua was therefore designed as an evidence-first coordinator decision-support prototype—not as an autonomous diagnostic system. It uses synthetic data only, keeps a human coordinator in control, and makes its limitations visible wherever a claim could otherwise be misunderstood.


What it does

Continua turns fragmented synthetic clinical records into a source-linked patient journey and a prioritized coordination queue.

1. Reconstructs the patient journey

It normalizes referrals, consults, follow-ups, lab results, imaging studies, medication starts, and medication stops into canonical events. Each event retains its source document, provenance, date, and supporting text span.

2. Detects three types of continuity gap

Continua uses deterministic rules—not an LLM—to decide whether a candidate gap exists

  • Missed specialist follow-up: a referral has no qualifying completed consult or follow-up within its expected window.
  • Duplicate diagnostic testing: the same normalized lab or imaging identity appears more than once within 14 days, unless an exclusion such as an explicit testing series applies.
  • Medication monitoring gap: a registered medication has no qualifying monitoring result or follow-up within its required window.

3. Verifies before displaying

A candidate gap is not automatically shown. The evidence layer checks

  • patient ownership;
  • source-document consistency;
  • quoted-span support;
  • positive and absence evidence;
  • detector and policy versions;
  • event-store snapshot consistency.

Unsupported or corrupted candidates are suppressed rather than displayed with low confidence.

4. Ranks workflow priority

Verified gaps are ranked using severity, overdue time, and actionability. This is explicitly workflow priority, not a clinical risk score.

raw_gap_priority =
    severity_weight
  × temporal_factor
  × actionability_weight

gap_priority_score =
    round(100 × raw_gap_priority / 1.50)

Patient-level priority is dominated by the strongest verified issue, with a capped contribution from secondary issues

patient_raw_priority =
    top_gap_raw
  + min(0.10 × sum(other_gap_raw), 0.30)

patient_priority_score =
    round(100 × patient_raw_priority / 1.80)

5. Shows the evidence behind every gap

Each queue item opens an evidence drawer containing the exact source quote, rule that fired, verification status, and human-oversight requirements. Coordinators can verify, contact, review, coordinate, schedule, confirm, or reconcile—but the system cannot order, diagnose, prescribe, or treat.

6. Runs as a deterministic offline demo

The normal request path reads a frozen, hash-validated JSON cache. It makes no live LLM, database, EHR, or external-service call, so the demo remains reproducible even when providers or networks are unavailable.

Demo dataset

The frozen demonstration contains

  • 80 synthetic patients
  • 485 synthetic documents
  • 26 providers
  • 42 patients with planted continuity gaps
  • 38 negative patients
  • 66 verified gaps
    • 26 missed follow-ups
    • 20 duplicate tests
    • 20 medication-monitoring gaps
  • 35 hard-negative cases across 13 families

The flagship patient, Maria, demonstrates the complete workflow: her fragmented records are reconstructed into a timeline, three verified gaps are surfaced, evidence is opened for each issue, and her patient-level priority is calculated transparently.

Impact model

Continua also includes an editable, assumption-labeled time-impact model

modeled_redirected_time =
    patients_reviewed_per_day
  × (baseline_minutes_per_patient − assisted_minutes_per_patient)
  × working_days_per_month

With the default assumptions—20 patients/day, 8 minutes reduced to 6 minutes, and 20 working days—the model estimates 13.33 redirected hours per month. This is a scenario calculation, not a measured productivity or patient-outcome claim.


How we built it

Continua was built with Next.js, React, TypeScript, Zod, Vitest, and Playwright, using a layered architecture that separates extraction, reasoning, verification, prioritization, and serving.

1. Synthetic corpus and frozen evaluation contracts

We created a synthetic dataset with explicit ground truth, negative manifests, document-level provenance, fixed evaluation dates, and disjoint development and final partitions. This allowed us to test difficult cases such as completed referrals, copied notes, explicit testing series, not-yet-due monitoring windows, and wrong-patient evidence.

2. Extraction and normalization layer

A provider abstraction and strict clinical-event schema define how documents become candidate events. Dates, specialties, lab names, imaging identities, medications, and event statuses are normalized before detection.

Reconciliation merges repeated mentions of the same occurrence while preserving source links. The benchmark uses a deterministic fixture extractor so downstream evaluation remains reproducible. Live provider extraction is implemented as a separate path but is not used to generate the frozen demo.

3. Deterministic detector layer

All detection runs over normalized events, never raw note text.

referral_due_date = referral_date + expected_window_days
overdue_days = max(0, evaluation_as_of_date − referral_due_date)

A missed-follow-up candidate exists only when no qualifying same-specialty completion occurs inside the window.

Duplicate testing compares canonical identities such as

lab:<normalized_test_code>
imaging:<normalized_modality>:<normalized_body_region>

Medication monitoring uses a frozen registry

Medication Required monitoring Window
Metformin A1c or BMP 90 days
Warfarin INR 7 days
Tamoxifen Completed oncology follow-up 365 days
Anastrozole Completed oncology follow-up 365 days

A monitoring gap cannot be emitted before its window closes.

4. Evidence verification layer

Every candidate must pass evidence checks before entering the queue. The verifier validates citation ownership, source text, policy versions, and snapshot identity. It also distinguishes positive evidence from scoped absence evidence, avoiding unsupported statements such as “no test was ever done” when the available records simply do not contain one.

5. Priority and aggregation layer

The priority engine applies explicit weights and prints the underlying arithmetic in the interface. For example, Maria’s strongest gap calculates as

1.00 × 1.15 × 1.00 = 1.15
round(100 × 1.15 / 1.50) = 77 → P2

Her patient score includes a small, capped contribution from her two secondary gaps

1.15 + min(0.10 × (0.491625 + 0.3825), 0.30)
= 1.237413

round(100 × 1.237413 / 1.80) = 69 → P2

6. Read-only API and hardened serving path

The UI consumes validated API contracts backed by the frozen repository. Response schemas are checked before serialization, errors use a fixed envelope, and raw exceptions are not exposed.

Security controls include

  • same-origin and fetch-metadata enforcement;
  • strict JSON content-type validation;
  • an 8 KB request-body limit;
  • Zod validation for paths, queries, and actions;
  • process-local rate limiting at 30 requests/minute;
  • CSP, HSTS, frame denial, nosniff, COOP/CORP, and referrer controls;
  • secret redaction and runtime leakage audits.

7. Evaluation, safety, and reliability harnesses

We built separate gates for benchmark integrity, output language, ground-truth leakage, synthetic-data scanning, accessibility, adversarial safety, fault injection, determinism, recovery, and browser behavior.


Challenges we ran into

Clinical language is not normalized clinical data

The same concept appears as “Medical Oncology,” “Med Onc,” and “Oncology,” or as “CBC,” “CBC with differential,” and “Complete Blood Count.” Dates and statuses are similarly inconsistent. Building deterministic rules required explicit normalization policies rather than fuzzy assumptions.

False positives are more dangerous than missed alerts

A cardiology referral is not satisfied by a primary-care note. A scheduled appointment is not a completed consult. A copied lab mention is not a second occurrence. An explicit weekly testing series is not duplicate waste.

We encoded these distinctions as hard-negative cases rather than treating every repeated or missing event as a gap.

Absence needs evidence too

Saying “this did not happen” is harder than quoting something that did happen. Continua therefore models absence as a scoped claim over available records, complete with the searched window, policy, and supporting snapshot—not as an unlimited statement about the patient’s entire history.

Live model behavior conflicts with reproducible demos

A live LLM can introduce latency, cost, nondeterminism, and provider outages. We separated the serving path from extraction so the demo could run deterministically from frozen artifacts while preserving a provider-based extraction path for future evaluation.

Perfect fixture matching can hide normalization weaknesses

The fixture benchmark validates pipeline behavior, not live model quality. In the annotated extraction sample, exact normalized-code agreement was 29.5%, with 43 of 61 matched events differing from the frozen normalization target. We treat this as unfinished extraction work rather than hiding it behind fixture-replay results.

Safety and accessibility are product features

We had to make prohibited actions impossible in the API, keep priority distinct from clinical risk, preserve keyboard access to evidence drawers, convey priority through text rather than color alone, and ensure degraded or corrupted states fail closed.


Accomplishments that we're proud of

Held-out fixture benchmark

On the disjoint final partition of 60 synthetic patients and 41 planted gaps, Continua achieved

Metric Result
True positives 41
False positives 0
False negatives 0
Missed-follow-up precision / recall / F1 1.000 / 1.000 / 1.000
Duplicate-test precision / recall / F1 1.000 / 1.000 / 1.000
Medication-monitoring precision / recall / F1 1.000 / 1.000 / 1.000
Macro F1 1.000
Micro F1 1.000
Patient-level alert precision / recall 1.000 / 1.000
Final-partition hard negatives 29/29 passed
Naive baseline macro F1 0.444

The full 80-patient oracle suite also passed 66/66 planted gaps and 35/35 hard negatives.

These are synthetic fixture-replay results. They validate the deterministic pipeline and evaluation plumbing; they are not evidence of clinical accuracy or live LLM quality.

Evidence trust

For the 41 held-out gaps

  • 100% citation validity
  • 100% span support
  • 100% grounded-gap rate
  • 50 evidence items
  • 0 unsupported displayed claims
  • 0 wrong-patient citations
  • 0 ungrounded queue gaps

Queue quality

  • Top-5 verified gaps: 5/5
  • Top-5 truth precision: 5/5
  • Demographic-invariance violations: 0
  • Deterministic downstream differences: 0

Performance

Measured fixture-pipeline timings were

  • Single-patient processing: 8.40 ms p50 / 14.35 ms p95
  • 60-patient panel processing: 18.68 ms p50 / 21.93 ms p95
  • Cached queue read and parse: 1.65 ms p50

These are local in-process timings, not hosted latency or live-model latency.

Reliability and safety

The frozen reliability report recorded

  • 116/116 failure scenarios passed
  • 131 verification checks
  • 102/102 reliability tests
  • 14/14 injected faults
  • 10/10 Chromium behavior specs
  • 5/5 recovery drills
  • 100 detection + 100 priority + 20 evidence repeat runs with zero semantic differences
  • 50/50 consecutive P0 runs
  • 400 requests with 0 unhandled errors
  • 0 wrong-patient outputs
  • 0 corrupt caches served
  • 0 unsafe failures

The adversarial safety corpus passed 40/40 cases across 20 families, covering prompt injection, provenance attacks, unsafe action language, evidence tampering, leakage, and authority violations.


What we learned

Extraction and decision-making should be separate

An LLM can help convert messy text into structured candidates, but it should not independently decide whether a care gap exists. Deterministic policies make detection explainable, testable, and reproducible.

Evidence must be a first-class data structure

A confidence score is not enough. Every displayed claim needs traceable source evidence, patient ownership, policy identity, and a clear statement of what the available records can—and cannot—prove.

“No alert” is a meaningful product behavior

Suppressing an unsupported candidate is not a failure. It is a core safety feature. Continua’s evidence gate is designed to say no when the record does not justify an alert.

Priority is not the same as risk

A queue score should help coordinators organize work, not imply that a patient is clinically high-risk. Transparent weights, textual labels, and capped patient aggregation prevent alert volume from dominating the ranking.

Reproducibility is part of trust

Frozen evaluation dates, artifact hashes, disjoint partitions, deterministic replay, and visible limitations make results easier to audit. They also prevent a demo from silently changing because a model provider or external service changed.

Measured, modeled, and assumed must stay separate

The 13.33 hours/month impact figure is modeled from explicit assumptions. Cached queue latency is measured locally. Live extraction latency, token cost, usability improvement, and patient outcomes remain unmeasured. Keeping those categories separate is essential to honest communication.


What's next for Continua

1. Measure live extraction properly

Run controlled benchmarks with configured providers and publish separate results for

  • extraction precision, recall, and normalization accuracy;
  • live latency and token cost;
  • provider-to-provider consistency;
  • failure and retry behavior;
  • an actual LLM-only baseline.

2. Improve normalization

Address the normalization mismatches exposed by the annotated sample through broader alias registries, stronger temporal parsing, and explicit uncertainty handling for ambiguous dates and statuses.

3. Expand the evaluation corpus

Add more patients, specialties, document formats, contradiction patterns, and difficult negative cases while preserving disjoint partitions and leakage controls.

4. Conduct usability and accessibility studies

Measure coordinator task completion, evidence comprehension, alert burden, and trust with real users. Extend testing beyond static accessibility checks to screen readers and additional browsers.

5. Explore read-only EHR and FHIR integration

Add a governed adapter for authorized record sources while preserving provenance, minimum-necessary access, and deterministic audit trails.

6. Harden the path beyond a demo

Before any multi-user deployment, add authenticated coordinator identity, per-user authorization and audit attribution, a shared rate limiter, stronger nonce-based CSP, centralized monitoring, and a real incident-response rehearsal.

7. Pursue clinical validation only under appropriate governance

Continua is currently a synthetic prototype—not HIPAA compliant, not clinically validated, and not a medical device. Any future clinical use would require formal validation, regulatory analysis, privacy controls, and prospective evidence before making effectiveness or safety claims.

Built With

Share this project:

Updates

Submission history