A modern, powerful 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.
The system features the BRAINSAIT enhanced interface - a modern, visually rich dashboard with advanced AI-powered analytics. 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
- Report Generation: Generate reports in multiple formats (JSON, CSV, Excel, PDF)
- Cloudflare Workers Compatible: Optimized for edge deployment with minimal resource usage
- Modern Dark-Mode UI: Sleek, modern dark-themed interface for better visualization
- Advanced Visualizations: Responsive, interactive charts using Chart.js
- Enhanced File Upload: Drag-and-drop file upload with progress tracking
- AI-Powered Insights: OpenAI-powered analysis and recommendations
- Tabbed Navigation: Easy access to different sections of the application
- Multi-format Reports: Generate reports in various formats with customizable sections
- Responsive Design: Works seamlessly across desktop and mobile devices
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
# Install dependencies
npm install# Install Wrangler CLI globally (if not already installed)
npm install -g wrangler
# Start local development server
npm run devOnce the development server is running, you can access:
- Standard interface:
http://localhost:8787/index.html - BRAINSAIT interface:
http://localhost:8787/brainsait-integrated.html
- 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 application offers two user interfaces:
- Standard Interface: Available at
/index.html- The original interface with basic functionality (free) - BRAINSAIT Enhanced Interface: Available at
/brainsait-integrated.html- Advanced interface with modern design and enhanced features (premium subscription required)
The platform now features a passwordless authentication system for secure access:
- Email Verification: Users receive 6-digit codes via email
- SMS Verification: Users receive codes via SMS (powered by Twilio)
- International Support: Supports global phone numbers with country codes
- Saudi Arabia Focus: Special validation for Saudi phone numbers (+966)
- β Passwordless: No passwords to remember or compromise
- β Rate Limited: Maximum 3 attempts per verification token
- β Session Management: Secure 30-day sessions with auto-renewal
- β Token Expiration: Verification codes expire in 10 minutes
- β Activity Logging: Complete audit trail of user actions
-
Configure Twilio (for SMS verification):
# Set your Twilio credentials wrangler secret put TWILIO_AUTH_TOKEN -
Deploy with Authentication:
# Use the deployment script ./deploy.sh -
Test the System:
- Visit your Worker URL (defaults to auth page)
- Try email verification (development mode logs codes)
- Try SMS verification with real phone numbers
For detailed authentication documentation, see docs/AUTHENTICATION.md.
The BRAINSAIT Enhanced Interface is available through a premium subscription:
- Price: $49.99 per month
- Payment Methods: PayPal, Apple Pay, Mada, STC Pay, Visa/Mastercard
- Billing Cycle: 30 days
- Renewal: Manual renewal through payment page
- Modern UI: Dark-mode interface with enhanced usability
- Advanced Visualizations: Interactive, responsive charts and graphs
- AI-Powered Analysis: Get intelligent insights with OpenAI integration
- Enhanced File Support: Upload larger files (up to 10MB)
- Multi-format Reports: Generate comprehensive reports in various formats
- Priority Support: Access to priority technical support
- Usage Tracking: Visual indicator showing subscription status
- Expiry Notification: Alerts as subscription expiration approaches
- Extension Options: Add 30 days to existing subscription when renewing
- Payment History: Tracking of payments and subscription periods
POST /api/upload: Upload Excel or PDF files for analysis (Supports both interfaces)POST /api/analyze/rejections: Analyze claim rejection patternsPOST /api/analyze/trends: Analyze claim trends over timePOST /api/report: Generate downloadable reports in multiple formatsPOST /api/insights: Generate AI-powered insights (requires OpenAI API key)
- File uploads are processed in real-time with progress tracking
- Advanced error handling and validation
- Support for larger files (up to 10MB)
- Multiple file format support (PDF, Excel, CSV)
- Enhanced security with proper validation
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.