Skip to content

NickLeko/PriorAuthorizationCopilot

Repository files navigation

Prior Authorization Readiness Copilot

Deterministic prior authorization readiness review for synthetic demo cases.

This repo checks whether a request is administratively ready against versioned payer rules. It does not make clinical judgments, predict approval, or act autonomously.

Current scope: the repo supports two Aetna demo procedures, MRI_LUMBAR and CPAP_DEVICE. Policy drift monitoring is configured only for MRI_LUMBAR.

Prior Authorization Copilot demo showing a CANNOT_DETERMINE result with blockers, requirement-level reasoning, extracted facts, evidence mapping, and audit summary.

Current Repo

  • Deterministic extraction, evaluation, and letter drafting
  • No LLM is used anywhere in the current implementation
  • Synthetic inputs only
  • Narrow rule coverage
  • Streamlit demo UI plus pytest coverage
Procedure Supported in rules Monitored for drift
MRI_LUMBAR Yes Yes
CPAP_DEVICE Yes No

Policy drift status applies only to configured monitored sources. In the current repo, runtime trust remains demo for both procedures because provenance is still curated offline in rules/provenance.yaml.

Core Semantics

  • READY: all required elements are documented and meet the current rule thresholds
  • NOT_READY: all required elements are documented, but one or more do not meet threshold
  • CANNOT_DETERMINE: one or more required elements are not documented

Any NOT_DOCUMENTED result must force CANNOT_DETERMINE.

Limits

  • Uses synthetic notes and demo rules
  • Supports a small number of procedures and phrasing patterns
  • Does not integrate with an EHR, payer, or clearinghouse
  • Policy drift monitoring is partial and only covers configured sources

Canonical Local Setup

Python version: 3.12.3

python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
pytest -q
streamlit run app.py

CI runs pytest -q. That automated suite includes unit-style tests plus a regression check over the bundled synthetic eval cases. The UI separately surfaces the same bundled synthetic cases as a local demo gate.

What To Inspect

Possible Extensions

  • Expand payer and procedure coverage with provenance updates and tests
  • Add production integration layers outside this repo
  • Evaluate whether optional LLM-assisted text formatting is worth adding behind strict contracts

About

Administrative decision-support system for prior authorization readiness. Deterministic, rules-first evaluation of documentation completeness with refusal semantics, full auditability, and write-only AI letter drafting. Built for safety, transparency, and regulated healthcare workflows.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors