How sudipdey18/insurance_claim_powerbi works
Claims Intelligence Analytics is a Streamlit dashboard backed by a FastAPI service, with local analytics fallbacks when the API is unavailable. Users choose dashboard sections, filter portfolio claims, and view KPI, payout, trend, severity, correlation, and audit results; separate sections provide Power BI/DAX readiness and strategic insights. The documented workflow also includes data cleaning and feature derivation before analysis. Edges reflect the shown calls and documented capabilities; unsampled implementation details are not inferred.
Main entry points: api_client.py API client · server.py FastAPI routes · app.py Streamlit app · data_service.py Ingestion and features
Components 19
Dashboard
- Streamlit app
frontend/app.py - API client
frontend/api_client.py - UI styles
frontend/styles.py - Dashboard views
frontend/views.py - Power BI readiness
frontend/views.py - Strategic insights
frontend/views.py
Analytics backend
- FastAPI routes
backend/server.py - Runtime configuration
backend/config.py - Executive KPIs
backend/analytics_service.py - Cost breakdown
backend/analytics_service.py - Temporal trends
backend/analytics_service.py - Severity metrics
backend/analytics_service.py - Correlation analysis
backend/analytics_service.py - Operational audits
backend/audit_service.py
Claims data
- Ingestion and features
backend/data_service.py - Claim filtering
backend/data_service.py - Raw claims CSV
dataset/insurance_claims.csv - Cleaned claims CSV
dataset/insurance_claims_cleaned.csv
Other components
- Dashboard user
Connections 28
- Dashboard user → Streamlit app: uses
frontend/app.py - Streamlit app → UI styles: applies styles
frontend/app.py - Streamlit app → API client: requests data
frontend/app.py - Streamlit app → Dashboard views: routes views
frontend/app.py - Streamlit app → Power BI readiness: renders section
frontend/app.py - Streamlit app → Strategic insights: renders section
frontend/app.py - Streamlit app → Dashboard views: renders results
frontend/app.py - API client → FastAPI routes: requests endpoints
frontend/api_client.py - FastAPI routes → Runtime configuration: reads settings
backend/server.py - FastAPI routes → Ingestion and features: loads claims
backend/server.py - FastAPI routes → Claim filtering: filters claims
backend/server.py - FastAPI routes → Executive KPIs: computes KPIs
backend/server.py - FastAPI routes → Cost breakdown: computes allocation
backend/server.py - FastAPI routes → Temporal trends: computes trends
backend/server.py - FastAPI routes → Severity metrics: computes severity
backend/server.py - FastAPI routes → Correlation analysis: computes correlation
backend/server.py - FastAPI routes → Operational audits: runs audits
backend/server.py - Ingestion and features → Runtime configuration: reads file paths
backend/data_service.py - Ingestion and features → Cleaned claims CSV: loads if available
backend/data_service.py - Ingestion and features → Raw claims CSV: loads fallback
backend/data_service.py - API client → Ingestion and features: loads fallback data
frontend/api_client.py - API client → Claim filtering: filters fallback
frontend/api_client.py - API client → Executive KPIs: computes fallback
frontend/api_client.py - API client → Cost breakdown: computes fallback
frontend/api_client.py - API client → Temporal trends: computes fallback
frontend/api_client.py - API client → Severity metrics: computes fallback
frontend/api_client.py - API client → Correlation analysis: computes fallback
frontend/api_client.py - API client → Operational audits: computes fallback
frontend/api_client.py