How prasanthrayudu313/healthcare-dashboard works
Centene Intelligence is a healthcare-news monitoring and business-intelligence dashboard. Its central workflow collects RSS, FDA, clinical-trial and SEC items, scores and classifies them, stores updates, and supports AI summaries; dashboard and analytics views present the resulting intelligence. The source index and sampled excerpts support the ingestion, persistence, summary and selected UI links shown here. Several API and page implementations are indexed but not excerpted, so their internal behavior and some runtime connections are not asserted.
Main entry points: index.ts Ingestion orchestration · db.ts Prisma client · summarize.ts AI summarization · page.tsx Intelligence dashboard
Components 27
Collection and analysis
- RSS collection
src/lib/ingestion/rss.ts - FDA collection
src/lib/ingestion/fda.ts - Trial collection
src/lib/ingestion/clinicaltrials.ts - SEC collection
src/lib/ingestion/sec.ts - Ingestion orchestration
src/lib/ingestion/index.ts - Impact scoring
src/lib/scoring.ts
Persistence and summaries
- Prisma client
src/lib/db.ts - Application database
prisma/schema.prisma - AI summarization
src/lib/ai/summarize.ts
Application APIs
- Ingestion endpoint
src/app/api/ingest/route.ts - Updates API
src/app/api/updates/route.ts - Update detail API
src/app/api/updates/[id]/route.ts - Analytics API
src/app/api/analytics/route.ts - Metrics API
src/app/api/metrics/route.ts - Search API
src/app/api/search/route.ts
Dashboard experience
- Intelligence dashboard
src/app/page.tsx - Search and refresh
src/components/layout/Header.tsx - Update feed
src/components/feed/UpdateFeed.tsx - Update card
src/components/feed/UpdateCard.tsx - Update detail view
src/app/updates/[id]/page.tsx - Analytics view
src/app/analytics/page.tsx - Dashboard charts
src/components/charts/DashboardCharts.tsx - KPI cards
src/components/kpi/KpiCards.tsx - Company directory
src/app/companies/page.tsx
Other components
- Analyst
- Health data sources
- Groq AI service
Connections 29
- Health data sources → RSS collection: provides feeds
src/lib/ingestion/rss.ts - Ingestion orchestration → RSS collection: fetches items
src/lib/ingestion/index.ts - Ingestion orchestration → FDA collection: fetches items
src/lib/ingestion/index.ts - Ingestion orchestration → Trial collection: fetches items
src/lib/ingestion/index.ts - Ingestion orchestration → SEC collection: fetches filings
src/lib/ingestion/index.ts - Ingestion orchestration → Impact scoring: scores updates
src/lib/ingestion/index.ts - Ingestion orchestration → Prisma client: writes updates
src/lib/ingestion/index.ts - Prisma client → Application database: accesses
- Ingestion endpoint → Ingestion orchestration: runs ingestion
src/app/api/ingest/route.ts - Ingestion endpoint → AI summarization: requests summaries
src/app/api/ingest/route.ts - AI summarization → Prisma client: reads and writes
src/lib/ai/summarize.ts - AI summarization → Groq AI service: generates analysis
src/lib/ai/summarize.ts - Updates API → Prisma client: queries updates
src/app/api/updates/route.ts - Update detail API → Prisma client: queries update
src/app/api/updates/[id]/route.ts - Update detail API → AI summarization: generates summary
src/app/api/updates/[id]/route.ts - Analytics API → Prisma client: queries analytics
src/app/api/analytics/route.ts - Metrics API → Prisma client: queries metrics
src/app/api/metrics/route.ts - Search API → Prisma client: searches updates
src/app/api/search/route.ts - Analyst → Intelligence dashboard: views intelligence
- Intelligence dashboard → Search and refresh: renders
src/app/page.tsx - Intelligence dashboard → Update feed: renders
src/app/page.tsx - Update feed → Update card: renders updates
src/components/feed/UpdateFeed.tsx - Search and refresh → Ingestion endpoint: triggers refresh
- KPI cards → Metrics API: fetches metrics
src/components/kpi/KpiCards.tsx - Analytics view → Dashboard charts: renders
src/app/analytics/page.tsx - Analytics view → KPI cards: renders
src/app/analytics/page.tsx - Analyst → Analytics view: opens analytics
- Analyst → Update detail view: opens update
- Analyst → Company directory: browses companies