A lightweight, optimized system for analyzing healthcare insurance data from Excel and PDF files. This system extracts, processes, and analyzes insurance claims data to identify trends, patterns, rejection rates, and provides actionable insights. Optimized for deployment on Cloudflare Workers.
- Data Extraction: Import data from Excel files and tables from PDFs
- Data Processing: Clean and transform data for analysis
- Rejection Analysis: Analyze claim rejection patterns and trends
- Trend Analysis: Identify monthly and quarterly trends in claims
- Interactive Visualizations: View data through interactive charts and graphs
- Report Generation: Generate JSON and CSV reports
- AI-Powered Insights: Get AI-generated analysis and recommendations
- Cloudflare Workers Compatible: Optimized for edge deployment with minimal resource usage
The JavaScript implementation is optimized for deployment on Cloudflare Workers, providing fast, scalable performance.
# Clone the repository
git clone https://github.com/BrainSAIT-LTD/Healthcare-Insurance-Data-Analysis-System.git
cd Healthcare-Insurance-Data-Analysis-System/js-version
# Install dependencies
npm install# Install Wrangler CLI globally (if not already installed)
npm install -g wrangler
# Start local development server
npm run dev- Login to Cloudflare
wrangler login- Update your KV namespace ID in
wrangler.toml:
[[kv_namespaces]]
binding = "HEALTH_INSURANCE_DATA"
id = "your-kv-namespace-id"- Deploy to Cloudflare Workers
npm run deployThe original Python implementation uses Streamlit for the web interface.
# Clone the repository
git clone https://github.com/BrainSAIT-LTD/Healthcare-Insurance-Data-Analysis-System.git
cd Healthcare-Insurance-Data-Analysis-System
# Create a virtual environment
python -m venv venv
# Activate the virtual environment
# Windows
venv\Scripts\activate
# macOS/Linux
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt# Start the Streamlit app
streamlit run app.py- Lightweight: Optimized for edge computing with minimal dependencies
- Fast performance: Quick startup and response times
- Cloudflare Workers deployment: Global edge distribution
- Lower operational costs: Less resource intensive
- Simplified architecture: Single unified codebase
- Local development: When you need a quick local setup
- Complex data science tasks: When you need to use specific Python libraries
- Legacy compatibility: When integrating with other Python systems
POST /api/upload: Upload Excel or PDF files for analysisPOST /api/analyze/rejections: Analyze claim rejection patternsPOST /api/analyze/trends: Analyze claim trends over timePOST /api/report: Generate downloadable reportsPOST /api/insights: Generate AI-powered insights (requires OpenAI API key)
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.