Level 1 Case StudyAI Systems / May 2026
PolicyPilot - Healthcare Policy Intelligence Platform
I built a healthcare policy intelligence platform that turns fragmented payer PDFs, formularies, patient records, and policy versions into citation-backed coverage answers, prior-authorization readiness checks, and cross-payer comparisons.
17 MCP tools23 structured policy JSON files across 4 payers and 7 drug families10 policy versions plus 9 stored diffs for Cigna Herceptin3 FHIR R4 demo patient scenariosPublished hackathon project with live app, demo video, GitHub repo, and Prompt Opinion integration path
01
TL;DR
- I built a healthcare policy intelligence platform that turns fragmented payer PDFs, formularies, patient records, and policy versions into citation-backed coverage answers, prior-authorization readiness checks, and cross-payer comparisons.
- Best published result: 17 MCP tools
02
Problem
- Healthcare teams need fast, evidence-backed answers to questions like whether a drug is covered, what prior authorization criteria apply, and whether a patient is ready for submission Clinicians, care coordinators, prior-authorization staff, payer analysts, and Prompt Opinion agents working across multiple payer policies. Coverage information is scattered across long PDFs, formularies, policy versions, and patient documents, so a manual workflow can delay care or silently use outdated criteria in a high-stakes decision.
03
My Role
- hackathon build for the Anthropic x Prompt Opinion Healthcare AI Hackathon with defined system ownership
- Problem framing: Healthcare teams need fast, evidence-backed answers to questions like whether a drug is covered, what prior authorization criteria apply, and whether a patient is ready for submission
- Architecture: Express 5 REST API plus a StreamableHTTP MCP server exposing 17 typed tools from one Node.js/TypeScript service
- Implementation: File-backed policy store with structured JSON schemas, Zod input validation, extracted policy text, versioned policy snapshots, policy diffs, patient case records, and ingestion audit artifacts
- Evaluation: 17 MCP tools; 23 structured policy JSON files across 4 payers and 7 drug families; 10 policy versions plus 9 stored diffs for Cigna Herceptin; 3 FHIR R4 demo patient scenarios; Published hackathon project with live app, demo video, GitHub repo, and Prompt Opinion integration path
- Before: Coverage information is scattered across long PDFs, formularies, policy versions, and patient documents, so a manual workflow can delay care or silently use outdated criteria in a high-stakes decision
- Personally designed: Made retrieval and citation validation the default path for coverage answers instead of letting the LLM answer directly because Healthcare policy answers are only useful when the user can trace the claim back to payer evidence, page-level text, and the active policy version; Split the platform into 17 focused MCP tools for coverage lookup, prior-auth criteria, patient readiness, evidence search, policy parsing, policy diffs, and next-step generation because Tool boundaries made the system testable, reusable inside Prompt Opinion, and safer than a single opaque chat endpoint for clinical operations; Used file-backed JSON storage with explicit policy versions instead of introducing a database during the hackathon because The small demo corpus needed transparent, inspectable state, reproducible policy snapshots, and fast deployment more than production-scale query throughput; Modeled patient readiness as a structured criteria checklist rather than a single eligibility paragraph because Prior authorization decisions depend on specific pass, fail, missing, and unknown evidence; checklists make the next clinic action visible; Added policy-version diffing and change severity classification to separate cosmetic, operational, and clinical changes because Policy teams need to know which changes affect coverage or prior authorization behavior, not just that a PDF changed
- Others owned: External datasets, APIs, academic baselines, or hackathon constraints shaped the work; the project page calls out what the source data verifies.
04
Constraints
- Built May 2026 (hackathon build for the Anthropic x Prompt Opinion Healthcare AI Hackathon). Built under a hackathon deadline; synthetic/demo healthcare data only; every AI answer needed source evidence, version awareness, and deterministic validation before it could be useful in a clinical workflow.
05
Architecture
- Input: Payer policy PDFs, formulary CSVs, structured JSON policies, FHIR R4 patient bundles, clinical notes, and natural-language coverage questions
- Backend: Express 5 REST API plus a StreamableHTTP MCP server exposing 17 typed tools from one Node.js/TypeScript service
- Data & storage: File-backed policy store with structured JSON schemas, Zod input validation, extracted policy text, versioned policy snapshots, policy diffs, patient case records, and ingestion audit artifacts
- External APIs: Google Gemini 2.5 Flash for grounded synthesis, Prompt Opinion via MCP, FHIR R4 patient context, and payer/formulary source documents
- Output: React + TypeScript workspace with AI chat, unified drug coverage search, prior-auth criteria views, patient readiness checklists, policy evidence drill-down, cross-payer comparison, policy-change tracking, and an interactive knowledge graph
Routes
- React SPA -> Express + MCP serverREST over HTTPS
- Express + MCP server -> Ingestion pipelinepolicy PDF upload
- Express + MCP server -> Answer enginecoverage / readiness question
- Ingestion pipeline -> Versioned JSON storevalidated write
- Answer engine -> Versioned JSON storeretrieve rules + evidence
- Answer engine -> Gemini 2.5 Flashprompt + context
- Versioned JSON store -> Cited answerdeterministic lookup
- Gemini 2.5 Flash -> Cited answersynthesized prose
06
Key Technical Decisions
- Made retrieval and citation validation the default path for coverage answers instead of letting the LLM answer directly
- Split the platform into 17 focused MCP tools for coverage lookup, prior-auth criteria, patient readiness, evidence search, policy parsing, policy diffs, and next-step generation
- Used file-backed JSON storage with explicit policy versions instead of introducing a database during the hackathon
- Modeled patient readiness as a structured criteria checklist rather than a single eligibility paragraph
- Added policy-version diffing and change severity classification to separate cosmetic, operational, and clinical changes
07
Implementation
- Input layer: Payer policy PDFs, formulary CSVs, structured JSON policies, FHIR R4 patient bundles, clinical notes, and natural-language coverage questions
- Core system: Express 5 REST API plus a StreamableHTTP MCP server exposing 17 typed tools from one Node.js/TypeScript service
- Data layer: File-backed policy store with structured JSON schemas, Zod input validation, extracted policy text, versioned policy snapshots, policy diffs, patient case records, and ingestion audit artifacts
- External boundary: Google Gemini 2.5 Flash for grounded synthesis, Prompt Opinion via MCP, FHIR R4 patient context, and payer/formulary source documents
- User output: React + TypeScript workspace with AI chat, unified drug coverage search, prior-auth criteria views, patient readiness checklists, policy evidence drill-down, cross-payer comparison, policy-change tracking, and an interactive knowledge graph
08
What Broke / What Didn't Work
- Rejected: A generic chat assistant that summarized policy text without mandatory evidence references. Chosen path: Made retrieval and citation validation the default path for coverage answers instead of letting the LLM answer directly.
- Rejected: One monolithic chat endpoint that routed every healthcare workflow through the same prompt. Chosen path: Split the platform into 17 focused MCP tools for coverage lookup, prior-auth criteria, patient readiness, evidence search, policy parsing, policy diffs, and next-step generation.
- Rejected: PostgreSQL or a vector database as the primary store from day one. Chosen path: Used file-backed JSON storage with explicit policy versions instead of introducing a database during the hackathon.
- Rejected: A free-form eligibility summary that did not separate patient facts from policy requirements. Chosen path: Modeled patient readiness as a structured criteria checklist rather than a single eligibility paragraph.
- Rejected: Plain text diff output without healthcare-specific impact classification. Chosen path: Added policy-version diffing and change severity classification to separate cosmetic, operational, and clinical changes.
- Citation-backed grounding adds retrieval, formatting, and validation overhead, but unsupported healthcare answers are worse than slower answers
- File-backed storage made the hackathon build easy to inspect and deploy, but it is not the long-term answer for concurrent users, payer-scale ingestion, or analytics workloads
- MCP tool granularity improved agent reliability and testing, but it required more schema design than a single endpoint
- FHIR patient bundles gave the readiness workflow a healthcare-native shape, but real EHR integration would require identity matching, permissions, and data-quality controls outside the prototype
09
Results
- 17 MCP tools - Public agent tool surface for coverage lookup, policy evidence, prior-auth criteria, patient readiness, parsing, diffing, and next-step workflows - Public agent tool surface for coverage lookup, policy evidence, prior-auth criteria, patient readiness, parsing, diffing, and next-step workflows - src/mcp/index.ts
- 23 structured policy JSON files across 4 payers and 7 drug families - Local structured demo corpus covering Aetna, BCBS-NC, Cigna, UHC and drugs including adalimumab, etanercept, trastuzumab, upadacitinib, bevacizumab, infliximab, and rituximab - Local structured demo corpus covering Aetna, BCBS-NC, Cigna, UHC and drugs including adalimumab, etanercept, trastuzumab, upadacitinib, bevacizumab, infliximab, and rituximab - data/policies/structured
- 10 policy versions plus 9 stored diffs for Cigna Herceptin - Version-aware policy-change tracking with historical snapshots and diff artifacts - Version-aware policy-change tracking with historical snapshots and diff artifacts - data/policies/index.json
- 3 FHIR R4 demo patient scenarios - Controlled prior-authorization readiness cases for full match, documentation gap, and major-gap workflows - Controlled prior-authorization readiness cases for full match, documentation gap, and major-gap workflows - data/patients/demo-patients/README.md
- Published hackathon project with live app, demo video, GitHub repo, and Prompt Opinion integration path - External portfolio proof that the platform was packaged beyond a local prototype - External portfolio proof that the platform was packaged beyond a local prototype - docs/devpost/HACKATHON-DEVPOST.md
10
What I'd Change Now
- Move the file-backed prototype store to Postgres plus vector search so payer-scale ingestion, concurrent users, and audit queries are first-class
- Add automated policy refresh jobs and alerting for clinical-impact changes across payer sources
- Integrate with real EHR and payer APIs using production authentication, patient matching, consent, and audit logging
- Build a labeled evaluation set for prior-auth criteria extraction so accuracy, citation precision, and missing-evidence detection can be tracked over time
- Broaden FHIR and Da Vinci coverage beyond the demo patient bundles
11
Stack
- React
- TypeScript
- Vite
- Node.js
- Express
- Model Context Protocol (MCP)
- StreamableHTTP
- Google Gemini 2.5 Flash
- Docker
- Zod
- FHIR R4
- JSON Schema
- PDF parsing
- CSV ingestion
- ReactFlow
- Prompt Opinion
- Railway
- Vercel
- Vitest
- axe-core (WCAG AA)
12
Links
- GitHub: https://github.com/Tanmayb05/Policy-Intelligence-Lab
- Demo: https://policy-intelligence-peach.vercel.app/
- Source docs: 2-projects.json
Deep dive prompts
Ask me about the trade-offs.
- Why this architecture boundary exists: Express 5 REST API plus a StreamableHTTP MCP server exposing 17 typed tools from one Node.js/TypeScript service
- How I evaluated Public agent tool surface for coverage lookup, policy evidence, prior-auth criteria, patient readiness, parsing, diffing, and next-step workflows
- The hardest tradeoff: Citation-backed grounding adds retrieval, formatting, and validation overhead, but unsupported healthcare answers are worse than slower answers
- What I would change next: Move the file-backed prototype store to Postgres plus vector search so payer-scale ingestion, concurrent users, and audit queries are first-class