How sadc-lab/mypicu works
MYPICU is a pediatric intensive-care monitoring platform. Clinicians enter through authenticated routing, select patients, and view organ-specific clinical dashboards; patient records and time-series data are obtained through service and Supabase layers. A separate study workflow analyzes uploaded data for cerebral autoregulation. The graph preserves the documented organ, import, feedback, and Teams capabilities. Some service internals and page-to-data links are unsampled, so relationships not established by excerpts, the source index, or README are omitted.
Main entry points: App.tsx App routing · AutoregStudy.tsx Autoreg study page · usePatients.ts Patient queries · Optibrain.tsx Brain monitoring
Components 24
Application access
- App routing
src/App.tsx - Authentication
src/hooks/useAuth.tsx - Manager signup
src/pages/auth/ManagerSignup.tsx - UI primitives
src/components/ui - Feedback page
src/pages/Feedback.tsx
Clinical monitoring
- Patient dashboard
src/pages/Dashboard.tsx - Brain monitoring
src/pages/Optibrain.tsx - Organ dashboards
src/pages - Clinical navigation
src/components/Header.tsx - Shared chart range
src/contexts/ChartTimeRangeContext.tsx - Chart zoom controls
src/components/ChartZoomControls.tsx
Autoregulation studies
- Autoreg study page
src/pages/AutoregStudy.tsx - Study result views
src/components/autoreg/AutoregResultViews.tsx - Autoreg computation
src/services/autoregComputation.service.ts - Autoreg services
src/services
Data and services
- Patient queries
src/hooks/usePatients.ts - Patient service
src/services/patient.service.ts - Patient time series
src/services/patientFileData.service.ts - Supabase patient data
src/services/supabasePatientData.service.ts
Platform integration
- Supabase client
src/integrations/supabase/client.ts - Teams host bridge
src/components/TeamsHostBridge.tsx - Patient import function
supabase/functions/import-patient-data/index.ts
Other components
- Clinician
- Supabase
Connections 24
- Clinician → App routing: opens
src/App.tsx - App routing → Patient dashboard: routes to
src/App.tsx - App routing → Brain monitoring: routes to
src/App.tsx - App routing → Organ dashboards: routes to
src/App.tsx - App routing → Autoreg study page: routes to
src/App.tsx - App routing → Feedback page: routes to
src/App.tsx - App routing → Manager signup: routes to
src/App.tsx - Manager signup → Authentication: submits signup
src/pages/auth/ManagerSignup.tsx - Authentication → Supabase client: authenticates
src/hooks/useAuth.tsx - Clinical navigation → Patient queries: loads patients
src/components/Header.tsx - App routing → Patient queries: queries patient
src/App.tsx - Patient queries → Patient service: calls
src/hooks/usePatients.ts - Brain monitoring → Patient queries: loads patients
src/pages/Optibrain.tsx - Brain monitoring → Patient time series: loads time series
src/pages/Optibrain.tsx - Patient time series → Supabase patient data: loads and lists
src/services/patientFileData.service.ts - Supabase client → Supabase: connects
README.md - Autoreg study page → Autoreg computation: analyzes uploads
src/pages/AutoregStudy.tsx - Study result views → Autoreg computation: uses results
src/components/autoreg/AutoregResultViews.tsx - Autoreg study page → Shared chart range: shares time range
src/pages/AutoregStudy.tsx - Autoreg study page → Chart zoom controls: renders controls
src/pages/AutoregStudy.tsx - Study result views → Chart zoom controls: renders controls
src/components/autoreg/AutoregResultViews.tsx - App routing → Teams host bridge: mounts
src/App.tsx - Clinician → Patient import function: imports patient data
README.md - App routing → UI primitives: uses interface
src/App.tsx