How ibeneme/medbrainers works
Medbrainers is a hospital operations and electronic medical-record web application. A staff member enters the dashboard, selects a clinical or administrative workflow, and uses its screens to manage facility, patient, and operational records; the frontend exposes these domains through Redux API slices. The graph preserves major workflows evident from the route tree, including emergency, maternal care, blood bank, pharmacy, radiology, and telemedicine. Source excerpts verify selected API, access-control, and component relationships; links for unsampled domain implementations are omitted rather than inferred.
Main entry points: dashboard Dashboard routes · hooks.ts Redux hooks · slices.ts Domain reducers · useAccess.ts Access decisions
Components 28
Dashboard and entry
- Dashboard routes
src/app/dashboard
Clinical operations
- Patient records
src/app/dashboard/patients - Consultations
src/app/dashboard/consultations - Emergency care
src/app/dashboard/emergency - Maternal care
src/app/dashboard/maternal - Blood bank
src/app/dashboard/blood-bank - Laboratory
src/app/dashboard/labs - Radiology
src/app/dashboard/radiology - Telemedicine
src/app/dashboard/telemedicine - Theater
src/app/dashboard/theater - Wards
src/app/dashboard/wards - Session browser
src/components/telemedicine/SessionBrowser.tsx
Facility operations
- Pharmacy
src/app/dashboard/pharmacy - Appointments
src/app/dashboard/appointments - Facility workspace
src/app/dashboard/workspace/page.tsx - Notifications
src/app/dashboard/notifications/page.tsx
Frontend platform
- Access decisions
src/hooks/useAccess.ts - Guarded links
src/components/access/guarded-link.tsx - Permission rules
src/lib/access/permissions.ts - Module shell
src/components/dashboard/ModuleShell.tsx
API and state
- Redux hooks
src/api/hooks.ts - Domain reducers
src/api/slices.ts - Authentication API
src/api/slices/authSlice.ts - Task API
src/api/slices/tasksSlice.ts - HTTP service
src/api/services.ts - API configuration
src/api/config.ts - Dashboard data hook
src/hooks/useDashboard.ts
Other components
- Staff user
Connections 33
- Staff user → Dashboard routes: uses
- Dashboard routes → Patient records: opens
- Dashboard routes → Consultations: opens
- Dashboard routes → Emergency care: opens
- Dashboard routes → Maternal care: opens
- Dashboard routes → Blood bank: opens
- Dashboard routes → Laboratory: opens
- Dashboard routes → Radiology: opens
- Dashboard routes → Pharmacy: opens
- Dashboard routes → Appointments: opens
- Dashboard routes → Telemedicine: opens
- Dashboard routes → Theater: opens
- Dashboard routes → Wards: opens
- Dashboard routes → Facility workspace: opens
- Dashboard routes → Notifications: opens
- Patient records → Redux hooks: uses
src/app/dashboard/patients/[patientId]/page.tsx - Consultations → Redux hooks: uses
src/app/dashboard/consultations/page.tsx - Notifications → Redux hooks: uses
src/app/dashboard/notifications/page.tsx - Notifications → Domain reducers: uses
src/app/dashboard/notifications/page.tsx - Facility workspace → Domain reducers: dispatches
src/app/dashboard/workspace/page.tsx - Redux hooks → Domain reducers: selects
- Domain reducers → Authentication API: registers
src/api/slices.ts - Domain reducers → Task API: registers
src/api/slices.ts - Authentication API → HTTP service: uses
src/api/slices/authSlice.ts - Task API → HTTP service: uses
src/api/slices/tasksSlice.ts - HTTP service → API configuration: configures
src/api/services.ts - Access decisions → Redux hooks: reads
src/hooks/useAccess.ts - Access decisions → Permission rules: checks
src/hooks/useAccess.ts - Guarded links → Access decisions: checks
src/components/access/guarded-link.tsx - Session browser → Module shell: uses
src/components/telemedicine/SessionBrowser.tsx - Session browser → Access decisions: gates with
src/components/telemedicine/SessionBrowser.tsx - Session browser → Dashboard data hook: uses
src/components/telemedicine/SessionBrowser.tsx - Dashboard data hook → Redux hooks: uses
src/hooks/useDashboard.ts