Skip to content

IntelMedica/prior-auth-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Prior Auth Generator

License: BSL 1.1 Status: Early Development

AI-powered prior authorization document generator. Generate complete PA packages in 5 minutes instead of 45. Built by physicians, for physicians.

Prior Auth Generator


The Problem

The math isn't mathing

Prior authorization is broken:

  • 30-60 minutes per PA case for clinical staff
  • 82% of PA denials are overturned on appeal -- but only 11% are appealed (AMA 2023)
  • 14.6 hours/week spent by physicians on PA paperwork (AMA Survey)
  • 34% of physicians report PA has led to a serious adverse event for a patient

The system punishes patients and providers with paperwork instead of providing care. We're building the fix.


Features

Features

  • On-Premise AI -- All models run locally. No PHI leaves your network. Ever.
  • Smart Form Builder -- Dynamic forms for 5 procedure categories (imaging, surgery, DME, medications, therapy)
  • AI Medical Necessity Letters -- Generated from verified clinical guidelines via RAG, not hallucinated
  • Real-Time Code Validation -- ICD-10, CPT/HCPCS, NPI, and RxNorm search and validation
  • PDF Document Assembly -- Cover sheet, PA form, justification letter, supporting docs, attestation
  • CMS-0057-F Ready -- Built toward Da Vinci PAS (FHIR) compliance from day one

How It Works

  1. Select a template -- Choose from 10 pre-built templates across 5 procedure categories
  2. Fill the smart form -- Dynamic fields adapt based on procedure type and payer requirements
  3. AI generates justification -- Medical necessity letter backed by RAG-retrieved clinical guidelines with inline citations
  4. Review and edit -- Rich text editor with tracked changes. Human review is mandatory -- never skippable
  5. Export PDF package -- Submission-ready PDF/A with all required documents assembled

Anti-Hallucination Architecture

The AI never invents clinical facts. It only arranges verified facts into a letter.

Layer Protection
Structured Input Validated form fields, not free text
Retrieval Only RAG from verified clinical guidelines -- no parametric knowledge
Constrained Generation LLM generates only from retrieved context + patient data
Citation Enforcement Every claim must reference a specific guideline
Clinical Validation Second model validates terminology and logical consistency
Code Verification ICD-10, CPT, NPI codes validated against real registries
Human Review Mandatory review before any document is finalized

Tech Stack

Layer Technology
Frontend Next.js 16, React 19, CMS Design System, TailwindCSS 4
Backend FastAPI, Python 3.12+, SQLAlchemy 2.0, Celery
AI Models On-premise LLMs via vLLM (medical generation + validation)
Vector Search Qdrant (clinical guideline retrieval)
Database PostgreSQL 16 + pgvector
Auth Keycloak 26 (OIDC, RBAC, MFA)
PDF WeasyPrint (HTML/CSS to PDF/A)
Design System CMS Design System (Section 508 / WCAG 2.1 AA)

Procedure Categories (MVP)

Category Examples
Diagnostic Imaging MRI, CT, PET, ultrasound
Surgical Procedures Knee replacement, spinal fusion, bariatric
Durable Medical Equipment CPAP, wheelchair, prosthetics
Medications Biologics, specialty drugs, GLP-1 agonists
Therapy Services Physical therapy, occupational therapy, speech

About

Why This Exists

Built by DevDoc JFMD -- a physician building AI tools to fix broken healthcare workflows.

LinkedIn | IntelMedica.ai


Status

Early development. The first working pilot targets prior authorization document generation for the 5 procedure categories listed above. This is a sub-project of the broader Doc Assist AI platform.


Sponsor

If you believe in fixing healthcare paperwork with AI, consider sponsoring this project.

Sponsor

Or reach out directly: sponsor@intelmedica.ai


License

Business Source License 1.1 -- Converts to Apache License 2.0 on March 8, 2030.

Free for non-production and educational use. For commercial licensing, contact hello@intelmedica.ai.


Security

Found a vulnerability? Please report it responsibly. See SECURITY.md.

Contributing

We welcome contributions. See CONTRIBUTING.md and our Code of Conduct.


Prior Auth Generator by IntelMedica.ai

About

AI-powered prior authorization document generator. Built by physicians, for physicians.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors