ParqueMedia

← Home

Case study

Clinical Trial Research

Nightlight began as a Python pipeline that monitored public clinical-trial registries and medical literature for configurable pediatric cancers, and turned them into a calm daily dashboard, a printable brief for the oncologist, and draft outreach letters. An information tool — not medical advice.

Status
Live
Lives at
www.nightlighttrials.org

The problem

Tracking a rare pediatric cancer means manually watching several registries and literature databases that each speak a different format and change without warning.

A trial that just started recruiting, a new site opening within driving distance, a changed contact — these surface late, or not at all. The signal that matters is buried in noise, the sources don't talk to each other, and the stakes are as high as they get. This is a monitoring problem dressed up as a research problem.

What I built

The first version was a pipeline that watched the public sources on a schedule, detected only what actually changed, used AI to rate how relevant it was, and rendered it as calm, readable output: a daily dashboard, a printable brief for the treating oncologist, and draft outreach letters the physician could choose to send.

Each pediatric cancer was a saved “watch,” added with a single command and validated before it went live, with a site switcher to move between them. A new watch started as a quiet baseline so it never opened with a wall of old results. The example watch on the live site was Pediatric sarcomas.

Today: source-only data

The AI pipeline was retired in favor of source-only data. Nightlight now shows every study detail directly from ClinicalTrials.gov, as listed, with a link back to the record. No AI generates or alters study information. Why I made that call is in the field note Why I took the AI out of Nightlight.

Architecture of the first version

  1. Sources ClinicalTrials.gov API v2 · PubMed E-utilities (NCBI API key) · WHO ICTRP (monthly export, data terms followed)
  2. Pipeline · scheduled on GitHub Actions SQLite memory persisted on a data branch. A diff reported only new or changed studies — now recruiting, status, contacts, sites, ages, phases, dropped off — keyed on NCT ID / PMID / DOI.
  3. AI · Claude (Anthropic API) Rated relevance High / Medium / Low, wrote plain-English summaries, and drafted one paragraph per outreach letter. It never supplied facts or contacts.
  4. Trust layer — the gate everything passed Grounding checker + provenance checks. Nothing reached the page until it cleared here.
  5. Outputs · static site, keys server-side Daily dashboard · printable oncologist brief · physician-led draft letters. Noindex, no tracking, every row linked to its source.

The trust layer in the first version

This was the signature of the first version. An AI that reads medical sources is only useful if it can never invent a fact, a contact, or a promise. Two independent checks enforced that.

  • Grounding checker. Rejected any AI answer containing an ID not in the source record, any email, phone, or web address, or any wording that promised eligibility, access, or outcomes. Rejected answers were never shown.
  • Provenance checks. Every email and phone number was traced word-for-word back to the exact source record. Every row on the site linked to its source.
  • Physician-led by design. Draft letters existed because Expanded Access is requested by the treating oncologist — nothing was ever sent automatically, and no patient data lived anywhere in the system.

The first version, in numbers

  • 3 Public sources unified into one view
  • NCT · PMID · DOI The keys every change was tracked on

What I'd do next

  • Opt-in email alerts a caregiver or physician chooses to receive.
  • Adoption by a disease-focused foundation as a standing service.
  • More watches across additional pediatric cancers.

How it was built

I designed and built it end to end in about two days, with Claude as my AI pair programmer. I vibe code, and I say so openly.

The engineering that mattered in the first version wasn't the line count — it was the trust layer that decided what the AI was allowed to say, and the provenance discipline that made every contact traceable to its source.

This is an information tool, not medical advice, and not a substitute for a clinician. ParqueMedia is not a medical provider. All data comes from public sources and is used under their terms. No patient data is stored.

← Back to Systems

Command menu