How ujjwalsitaula839-cloud/hospital-intelligence-platform works
This is a hospital operations application for staff authentication, patient admissions and clinical records, bed and equipment allocation, and housekeeping workflows. Staff use role-specific dashboards; the frontend API client sends requests through the gateway to backend services, which persist domain state and audit activity. Authentication also supports password reset and email delivery. The source excerpts establish several internal calls and frontend routes; some backend integrations and dashboard-to-service paths are documented only by the API client or remain unsampled, so those links are omitted rather than inferred.
Main entry points: App.tsx Role-based routes · api.ts API client · gateway/main.py Request routing · bed-service/main.py Beds and equipment API
Components 18
Staff application
- Role-based routes
frontend/src/App.tsx - Session and auth
frontend/src/context/AuthContext.tsx - API client
frontend/src/lib/api.ts - Clinical dashboard
frontend/src/pages/dashboards/Clinical.tsx - Admin dashboard
frontend/src/pages/dashboards/Admin.tsx - Housekeeping dashboard
frontend/src/pages/dashboards/Housekeeping.tsx - Password reset
frontend/src/pages/ForceReset.tsx
API gateway
- Request routing
gateway/main.py
Identity service
- Authentication API
services/auth-service/main.py - Identity database
services/auth-service/database.py - Reset email delivery
services/auth-service/email_utils.py
Clinical and operations services
- Patient and admission API
services/patient-service/main.py - Patient database
services/patient-service/database.py - Beds and equipment API
services/bed-service/main.py - Bed and audit database
services/bed-service/database.py - Bed audit logging
services/bed-service/audit.py - Bed grid cache
services/bed-service/redis_client.py
Other components
- Hospital staff
Connections 23
- Hospital staff → Role-based routes: uses
frontend/src/App.tsx - Role-based routes → Session and auth: provides session
frontend/src/App.tsx - Role-based routes → Clinical dashboard: routes to
frontend/src/App.tsx - Role-based routes → Admin dashboard: routes to
frontend/src/App.tsx - Role-based routes → Housekeeping dashboard: routes to
frontend/src/App.tsx - Role-based routes → Password reset: routes to
frontend/src/App.tsx - Session and auth → API client: calls
frontend/src/context/AuthContext.tsx - Clinical dashboard → Session and auth: reads session
frontend/src/pages/dashboards/Clinical.tsx - Clinical dashboard → API client: requests data
frontend/src/pages/dashboards/Clinical.tsx - Admin dashboard → API client: requests data
frontend/src/pages/dashboards/Admin.tsx - Housekeeping dashboard → API client: requests data
frontend/src/pages/dashboards/Housekeeping.tsx - Password reset → API client: submits reset
frontend/src/pages/ForceReset.tsx - API client → Request routing: sends requests
- Request routing → Authentication API: routes auth
- Request routing → Patient and admission API: routes patients
- Request routing → Beds and equipment API: routes operations
- Authentication API → Identity database: reads and writes
- Authentication API → Reset email delivery: sends reset mail
services/auth-service/main.py - Patient and admission API → Patient database: reads and writes
- Beds and equipment API → Bed and audit database: reads and writes
services/bed-service/main.py - Beds and equipment API → Bed audit logging: logs actions
services/bed-service/main.py - Bed audit logging → Bed and audit database: writes audit
services/bed-service/audit.py - Beds and equipment API → Bed grid cache: invalidates cache
services/bed-service/main.py