Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Building TrialBridge: An AI clinical trial matcher built in a single hack day

Description and use

TrialBridge is an AI‑powered clinical trial matcher built in a single hack day. It extracts patient data from uploaded medical reports, matches against Indian trials from ClinicalTrials.gov, and produces a checklist for oncologists, while reminding users to confirm eligibility with a doctor.

Problem

Cancer treatments push Indian families into debt while free, cutting‑edge clinical trials remain unfilled because eligibility rules are dense medical jargon that patients and busy oncologists cannot easily interpret.

Outcome

TrialBridge was built in a single hack day, enabling patients and oncologists to quickly assess trial eligibility for Indian clinical trials, reducing manual effort and improving access to free treatments.

Workflow

  • 1. User uploads photos of medical reports, scans, and prescriptions in the browser.
  • 2. Images are shrunk client‑side to stay within Vercel request‑size limits.
  • 3. Gemma‑4 (via Gemini API) performs multimodal extraction to build a structured patient profile and extracts exact quotes as evidence.
  • 4. The profile is manually verified by the user before matching.
  • 5. TrialBridge pulls active recruiting trials with Indian sites from ClinicalTrials.gov v2 API.
  • 6. A custom text splitter breaks registry text into atomic inclusion/exclusion rules.
  • 7. Gemma judges each rule against the patient profile, returning boolean results.
  • 8. Plain, unit‑tested code aggregates rule outcomes into trial match categories (likely match, possible match, not eligible).
  • 9. The app generates a printable summary with a ✓/✗/? checklist and specific questions for the oncologist.
  • 10. Safety notice reminds users to confirm eligibility with a doctor.

Evidence

We built a custom text splitter (lib/criteria.ts) to break down the massive blocks of registry text into atomic inclusion and exclusion rules.

Source

Gemma performs multimodal extraction, reading the uploaded images to build a structured patient profile (cancer type, stage, biomarkers, ECOG, labs, current medicines) alongside the exact quotes it used as evidence.

Source

We fixed latency by switching Gemma to minimal thinking mode and writing medical hints directly into the prompt, dropping a 4‑trial batch down to 42 seconds with no thinking tokens used.

Source

The app never claims true medical eligibility—it only says "may qualify, confirm with your oncologist".

Source

  • Record date: 2026-10-14T05:40:54.786Z