How kkrishkataria/healthcare-fraud-detection works
Verity Health is a provider-fraud risk prioritization application. Investigators review portfolio statistics, search or select a provider, edit a profile, and request a score; the dashboard presents risk bands and local feature-driver context to support human review. The FastAPI service validates inputs, derives features, imputes permitted missing values, and applies the saved model and threshold. The README documents the major dashboard and API capabilities; implementation details beyond the sampled excerpts are represented only where that documentation supports them.
Main entry points: main.py FastAPI Service · App.jsx Dashboard · xgb_tuned.pkl XGBoost Model · imputer.pkl Saved Imputer
Components 18
Investigator Dashboard
- Dashboard
frontend/src/App.jsx - Portfolio Summary
frontend/src/App.jsx - Provider Search
frontend/src/App.jsx - Assessment Form
frontend/src/App.jsx - Risk Explanation
frontend/src/App.jsx - API Requests
frontend/src/App.jsx
Risk API
- FastAPI Service
app/main.py - Provider Endpoints
app/main.py - Portfolio Endpoint
app/main.py - Input Validation
app/main.py - Feature Engineering
app/main.py - Missing Value Handling
app/main.py - Risk Scoring
app/main.py
Scoring Assets
- XGBoost Model
models/xgb_tuned.pkl - Saved Imputer
models/imputer.pkl - Model Metadata
models/model_metadata.json
Provider Records
- Provider Features
data/provider_features.csv
Other components
- Investigator
Connections 25
- Investigator → Dashboard: uses
README.md - Dashboard → Portfolio Summary: shows
README.md - Dashboard → Provider Search: offers
README.md - Dashboard → Assessment Form: offers
README.md - Dashboard → Risk Explanation: presents
README.md - Portfolio Summary → API Requests: requests summary
README.md - Provider Search → API Requests: requests providers
README.md - Assessment Form → API Requests: requests scoring
README.md - API Requests → FastAPI Service: sends HTTPS requests
README.md - FastAPI Service → Provider Endpoints: routes provider requests
app/main.py - FastAPI Service → Portfolio Endpoint: routes summary requests
app/main.py - FastAPI Service → Input Validation: validates inputs
app/main.py - Input Validation → Feature Engineering: passes valid inputs
app/main.py - Feature Engineering → Missing Value Handling: derives indicators
app/main.py - Missing Value Handling → Saved Imputer: imputes missing values
app/main.py - Risk Scoring → XGBoost Model: predicts probability
app/main.py - Risk Scoring → Model Metadata: uses threshold and bands
app/main.py - Provider Endpoints → Provider Features: searches and reads
app/main.py - Portfolio Endpoint → Provider Features: aggregates records
README.md - Provider Endpoints → Input Validation: scores provider profile
app/main.py - Risk Scoring → Missing Value Handling: uses imputed features
app/main.py - Risk Scoring → Risk Explanation: returns score context
- FastAPI Service → XGBoost Model: loads
app/main.py - FastAPI Service → Saved Imputer: loads
app/main.py - FastAPI Service → Model Metadata: loads
app/main.py