How brasethchun/clinical-kpis-management-systems works
This is a clinical business-unit KPI planning and daily-operations application. Users enter or review KPI actuals, then inspect summaries and trends against configured targets; administrators manage users, business units, departments, patient types, and workspace data mode. The frontend communicates with a server API, which uses a database layer for persistence. KPI analytics and business-KPI calculations provide internal processing. Several UI-to-API and API-to-server links are shown as unverified because the excerpts do not expose the relevant call sites; no README was provided.
Main entry points: api.ts API Client · App.tsx App Shell · db.ts Database Layer · server.ts Server API
Components 22
KPI Operations
- KPI Overview
src/components/OverviewView.tsx - Daily Intake
src/components/DailyIntakeForm.tsx - KPI Ledger
src/components/LedgerView.tsx - KPI Trends
src/components/TrendsView.tsx - KPI Analytics
src/lib/kpiAnalytics.ts
KPI Planning
- KPI Settings
src/components/SettingsView.tsx - Business KPI Matrix
src/components/BusinessKpiMatrixView.tsx - KPI Plan Math
src/lib/businessKpiMath.ts - KPI Excel Export
server/businessKpiExcel.ts - KPI Domain Types
src/types/kpi.ts
Administration
- Admin Settings
src/components/AdminSettingsView.tsx - Business Units
src/components/BusinessUnitManager.tsx - Department Modules
src/components/DepartmentModuleManager.tsx - Patient Types
src/components/PatientTypeManager.tsx
Application Runtime
- App Shell
src/App.tsx - Authentication
src/components/AuthScreen.tsx - API Client
src/lib/api.ts - Server API
server.ts
Persistence
- Database Layer
server/db.ts - Application Database
database/schema.sql - Demo Data Seed
server/demoSeed.ts
Other components
- Staff / Manager
Connections 30
- Staff / Manager → App Shell: uses
- App Shell → Authentication: renders
src/App.tsx - App Shell → KPI Overview: renders
src/App.tsx - App Shell → KPI Ledger: renders
src/App.tsx - App Shell → KPI Trends: renders
src/App.tsx - App Shell → KPI Settings: renders
src/App.tsx - App Shell → Admin Settings: renders
src/App.tsx - App Shell → KPI Analytics: computes with
src/App.tsx - Authentication → API Client: requests
src/components/AuthScreen.tsx - Daily Intake → API Client: submits to
- KPI Ledger → API Client: requests
src/components/LedgerView.tsx - KPI Settings → API Client: requests
src/components/SettingsView.tsx - Business KPI Matrix → API Client: requests
src/components/BusinessKpiMatrixView.tsx - Admin Settings → API Client: requests
src/components/AdminSettingsView.tsx - Business Units → API Client: requests
src/components/BusinessUnitManager.tsx - Department Modules → API Client: requests
src/components/DepartmentModuleManager.tsx - Patient Types → API Client: requests
src/components/PatientTypeManager.tsx - API Client → Server API: HTTP requests
- Server API → Database Layer: uses
server.ts - Database Layer → Application Database: persists to
- Database Layer → Demo Data Seed: seeds demo with
server/db.ts - Demo Data Seed → Database Layer: populates
server/demoSeed.ts - Demo Data Seed → KPI Plan Math: recalculates with
server/demoSeed.ts - Business KPI Matrix → KPI Plan Math: calculates with
src/components/BusinessKpiMatrixView.tsx - KPI Settings → Business KPI Matrix: renders
src/components/SettingsView.tsx - KPI Trends → KPI Analytics: calculates with
src/components/TrendsView.tsx - KPI Ledger → KPI Analytics: calculates with
src/components/LedgerView.tsx - Server API → KPI Excel Export: exports with
server.ts - Server API → KPI Domain Types: validates with
server.ts - Database Layer → KPI Domain Types: parses with
server/db.ts