Intelligent formulary change detection and analysis system for healthcare organizations.
π Try it now β
Upload your own formulary files and see instant analysis. No installation required!
(Deploy your app first, then replace the URL above with your actual Streamlit URL)
Visit the live demo above - upload files and analyze instantly!
# Clone repository
git clone https://github.com/your-username/ai-formulary-intelligence.git
cd ai-formulary-intelligence
# Install dependencies
pip install -r requirements.txt
# Launch Streamlit app
streamlit run app.pyOpen http://localhost:8501 in your browser.
# Analyze single carrier
python src/formulary_delta_processor.py february.csv \
--carrier "CarrierName" \
--keys RXCUI
# Batch process multiple carriers
python src/batch_processor.py data/
# Generate SQL for database loading
python src/generate_sql.py \
--carrier UHC \
--timestamp 20240215_103045 \
--keys RXCUI- β Upload and compare formulary files
- β Automatic change detection (added/deleted/modified)
- β Support for multiple file formats (pipe, CSV, TSV)
- β Real-time analysis (processes 500K+ records in seconds)
- β Export results as CSV
- β Download summary reports
- β Batch processing for multiple carriers
- β Historical tracking and archiving
- β SQL script generation for database loads
- β Detailed change categorization
- β AI-powered insights (optional with Claude API)
- Formulary additions and deletions
- Tier changes (1β2, 2β3, etc.)
- Prior Authorization (PA) updates
- Step Therapy (ST) requirements
- Quantity Limit (QL) modifications
- Copay/coinsurance changes
- Specialty designation updates
βββββββββββββββββββββββββββββββββββββββββββ
β Interactive Web Interface β
β (Streamlit App) β
βββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββββββββββββββββββββββββββββ
β Analysis Engine (Python) β
β β’ Multi-format parser β
β β’ Delta detection β
β β’ Change categorization β
βββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββββββββββββββββββββββββββββ
β Output & Integration Layer β
β β’ CSV exports β
β β’ SQL generation β
β β’ Summary reports β
βββββββββββββββββββββββββββββββββββββββββββ
ai-formulary-intelligence/
β
βββ app.py # Streamlit web application
βββ requirements.txt # Python dependencies
βββ README.md # This file
β
βββ src/ # Core analysis modules
β βββ ai_formulary_analyzer.py
β βββ formulary_delta_processor.py
β βββ claude_api_integration.py
β βββ batch_processor.py
β βββ generate_sql.py
β
βββ web/ # Alternative web interface
β βββ index.html
β
βββ docs/ # Documentation
β βββ DEPLOYMENT_GUIDE.md
β βββ ARCHITECTURE.md
β
βββ examples/ # Sample data
βββ sample_output/
Pharmacy Operations
- Identify drugs requiring new prior authorization
- Track quantity limit changes
- Monitor formulary additions/deletions
Clinical Teams
- Detect therapeutic substitutions
- Review specialty designation changes
- Assess patient impact of restrictions
Finance Teams
- Calculate cost impact of tier changes
- Estimate copay shift to members
- Project administrative burden
IT/Data Teams
- Generate SQL for incremental database updates
- Export change data for downstream systems
- Automate monthly processing workflows
- Python 3.8+ - Core language
- Streamlit - Interactive web interface
- Pandas - Data processing and analysis
- Claude AI - Intelligent insights (optional)
- Processes 500,000+ records in ~30 seconds
- Handles files up to 100MB+
- Tested with CMS PUF formulary data (57MB files)
- Efficient delta detection using set operations
- Push your code to GitHub
- Visit share.streamlit.io
- Connect your repository
- Click "Deploy"
Your app will be live at: https://your-app.streamlit.app
- Deployment Guide - Step-by-step deployment to Streamlit Cloud
- Architecture Overview - Technical design details
- User Guide - How to use the platform
- API Reference - Integration documentation
Contributions welcome! Please open an issue or submit a pull request.
MIT License - see LICENSE for details.
**
Built to solve real healthcare data challenges. Questions? Open an issue!