How mabrurhasan/fynavox works
FynavoX is a healthcare-monitoring pilot prototype. The documented clinician journey moves from role selection to a command-center overview, then into patient monitoring, AI risk analysis, alerts and response, and analytics; a separate timed clinical simulation demonstrates deterioration and escalation. Live patient state is supplied by a browser hook, which connects to the backend WebSocket and also has a local simulation fallback. The backend maintains in-memory patient state and exposes risk prediction through a scikit-learn model with a rule-based fallback. Some screens and integrations are documented but their source wiring was not sampled, so uncertain links are omitted.
Main entry points: useLivePatients.ts Live patient hook · main.py Monitoring API · auth/page.tsx Role sign-in · app/page.tsx Impact landing
Components 21
Access and Command
- Impact landing
frontend/src/app/page.tsx - Role sign-in
frontend/src/app/auth/page.tsx - Command center
frontend/src/app/(platform)/dashboard/page.tsx
Patient Monitoring
- Patient monitoring
frontend/src/app/(platform)/patients/page.tsx - Live patient state
frontend/src/context/LivePatientsContext.tsx - Live patient hook
frontend/src/hooks/useLivePatients.ts - Local vital simulation
frontend/src/lib/simulation.ts - Monitoring API
backend/main.py - Patient WebSocket
frontend/src/hooks/useLivePatients.ts - Patient stream
backend/main.py
Risk and Alerts
- Risk prediction endpoint
backend/main.py - Risk classifier
backend/ml/risk_model.py - AI engine screen
frontend/src/app/(platform)/ai-engine/page.tsx - Alerts and response
frontend/src/app/(platform)/alerts/page.tsx
Simulation and Insights
- Clinical simulation
frontend/src/app/simulation/page.tsx - Simulation view
frontend/src/components/simulation/ClinicalSimulationView.tsx - Simulation state hook
frontend/src/hooks/useClinicalSimulation.ts - Clinical scenario model
frontend/src/lib/clinical-simulation.ts - Prediction analytics
frontend/src/app/(platform)/analytics/page.tsx - Business impact
frontend/src/app/(platform)/impact/page.tsx
Other components
- Clinical staff
Connections 21
- Clinical staff → Impact landing: opens product
- Impact landing → Role sign-in: sign-in link
- Clinical staff → Role sign-in: selects role
- Role sign-in → Command center: routes after sign-in
- Live patient state → Live patient hook: runs hook
- Live patient hook → Patient WebSocket: opens connection
- Patient WebSocket → Patient stream: receives patient updates
- Patient stream → Monitoring API: uses patient state
- Monitoring API → Patient stream: ticks and sends
- Live patient hook → Local vital simulation: ticks on fallback
- Clinical staff → Clinical simulation: opens scenario
- Clinical simulation → Simulation view: renders
- Simulation view → Simulation state hook: starts or resets
- Simulation state hook → Clinical scenario model: requests elapsed state
- Monitoring API → Risk prediction endpoint: serves prediction
- Risk prediction endpoint → Risk classifier: requests classification
- Clinical staff → Patient monitoring: monitors patients
- Clinical staff → AI engine screen: reviews AI pipeline
- Clinical staff → Alerts and response: responds to alerts
- Clinical staff → Prediction analytics: reviews insights
- Clinical staff → Business impact: reviews impact