How kanav14/caresignal works
CareSignal AI lets a caregiver select a patient, submit daily steps, sleep, and medication data, and view a personalized risk score, explanations, baseline metrics, and a seven-day trend. FastAPI endpoints coordinate persistence and risk computation; the React client calls those endpoints and presents results. The README documents first-five-day baseline behavior; the sampled implementation computes from the earliest five stored logs. No external clinical or wearable integrations are shown.
Main entry points: App.jsx Patient dashboard · main.py HTTP endpoints · risk_engine.py Baseline and risk engine · models.py Daily log model
Components 10
Caregiver interface
- Patient dashboard
frontend/src/App.jsx - API client
frontend/src/api.js - Risk badge
frontend/src/components/RiskBadge.jsx - Trend chart
frontend/src/components/TrendChart.jsx
API and analysis
- HTTP endpoints
backend/main.py - Daily log model
backend/models.py - Baseline model
backend/models.py - Baseline and risk engine
backend/risk_engine.py
Patient records
- JSON patient records
backend/storage.py
Other components
- Caregiver
Connections 11
- Caregiver → Patient dashboard: enters signals
frontend/src/App.jsx - Patient dashboard → API client: requests data
frontend/src/App.jsx - API client → HTTP endpoints: calls endpoints
frontend/src/api.js - Patient dashboard → Risk badge: renders risk
frontend/src/App.jsx - Patient dashboard → Trend chart: renders trend
frontend/src/App.jsx - HTTP endpoints → Daily log model: validates input
backend/main.py - HTTP endpoints → JSON patient records: saves and loads
backend/main.py - JSON patient records → Daily log model: parses records
backend/storage.py - HTTP endpoints → Baseline and risk engine: computes results
backend/main.py - Baseline and risk engine → Daily log model: reads signals
backend/risk_engine.py - Baseline and risk engine → Baseline model: returns baseline
backend/risk_engine.py