saudaziz

G CLI Agent ClinicalTrialMatching — Data skill for Claude Code

Data community

🧬 Agentic Clinical Trial Match — An AI MVP bridging legacy health data & research protocols.

How to install G CLI Agent ClinicalTrialMatching

This entry records only its repository, not the path inside it, so there is no exact command to give. Open saudaziz/G-CLI-Agent-ClinicalTrialMatching and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What G CLI Agent ClinicalTrialMatching does

🧬 Agentic Clinical Trial Match — An AI MVP bridging legacy health data & research protocols. Uses LangGraph for multi-agent flow, LlamaIndex for hybrid RAG, and MCP for secure database simulation. Supports local-first workflows via Ollama (Gemma4) or cloud reasoning via Claude 3.5 Sonnet. Precision matching for modern research.

Alternatives in Data

  • Private GPT — Complete API layer for private AI applications on local models: RAG, skills, tools, MCP, text-to-sql, and more 57.5k ★
  • OpenViking — Self-evolving Context Database for AI Agents 33.3k ★
  • Sentry — Inspect Sentry issues, summarize production errors, and pull health data 14.6k ★

README

Agentic Clinical Trial Matching System

An AI-powered MVP that bridges legacy healthcare data and modern research protocols using **LangGraph**, **LlamaIndex**, and the **Model Context Protocol (MCP)**.

Scenario: The Clinical Recruitment Bottleneck

A pharmaceutical research organization manages hundreds of active clinical trials. Currently, specialized medical coordinators manually review thousands of patient electronic health records (EHR) to determine if they meet strict "Inclusion/Exclusion" criteria buried in 200-page Clinical Trial Protocols (PDFs).

The patient data resides in a legacy SQL-based Hospital Information System (HIS) that lacks modern APIs, creating a critical bottleneck in **Healthcare, Pharmaceuticals, and Biotechnology**. Delayed recruitment is the #1 reason trials fail, costing millions per day in lost patent life.

**Similar Scenarios:** Veteran affairs benefit adjudication, complex insurance underwriting, and legal discovery.

The Agentic Design

Agent Roles

  • The Researcher (Medical Analyst): Uses RAG to parse the Trial Protocol PDF and an MCP Server to securely query the legacy patient database for specific lab results and ICD-10 codes.
  • The Orchestrator (Clinical Lead): Receives the trial ID, sets recruitment goals, and manages the logic flow between data extraction and eligibility.
  • The Executor (Regulatory Reporter): Compiles a "Match Justification Report" citing specific protocol pages and patient record timestamps.

The Math of Efficiency

Given $P = 10,000$ patients in a database:

  • Human Manual Review: $H_{time} = 30 \text{ mins/patient}$ → 5,000 hours.
  • Agentic Review: $A_{time} = 20 \text{ seconds/patient}$ → ~55 hours.
  • Efficiency Ratio ($C_e$): Roughly 150:1 compared to professional human rates vs. token costs.

Technical Stack

  • Languages: TypeScript (MCP Server), Python (Agent Logic).
  • Orchestration: LangGraph (Stateful multi-agent workflows).
  • **RAG Fra