How klubnikabytes/dr.awrini_rana works
This is a multi-clinic healthcare operations application: staff register patients and appointments, doctors document visits, and teams manage lab, day-care, home-care, billing, and reporting workflows. The graph includes the major documented UI areas and the backend modules most clearly supported by the source index and excerpts. Several frontend-to-API calls and unsampled route/controller details are not shown, so those links are omitted rather than inferred.
Main entry points: server.js HTTP application · frontdeskController.js Front-desk operations · App.jsx Application routes · reportController.js Operational reports
Components 25
Web application
- Application routes
frontend/src/App.jsx - Clinic dashboard
frontend/src/pages/Dashboard.jsx - Doctor visit pad
frontend/src/pages/Doctor/VisitPad.jsx - Lab workspace
frontend/src/pages/Lab/LabPage.jsx - Day-care workspace
frontend/src/pages/DayCare/DayCarePage.jsx - Home-care workspace
frontend/src/pages/HomeCare/HomeCarePage.jsx
API and access
- Request protection
backend/middleware/authMiddleware.js - HTTP application
backend/server.js
Clinical operations
- Front-desk operations
backend/controllers/frontdeskController.js - Doctor operations
backend/controllers/doctorController.js - Lab orders
backend/controllers/labOrderController.js - Day-care records
backend/controllers/dayCareController.js - Home-care records
backend/controllers/homeCareController.js - Patient matching
backend/utils/patientUtils.js
Data and events
- Patient records
backend/models/Patient.js - Appointments
backend/models/Appointment.js - Bills and payments
backend/models/Bill.js - Lab orders store
backend/models/LabOrder.js - Day-care store
backend/models/DayCare.js - Home-care store
backend/models/HomeCare.js - Staff records
backend/models/Staff.js - Live event broadcast
backend/websocket.js
Administration and reporting
- Operational reports
backend/controllers/reportController.js - Admin operations
backend/controllers/adminController.js
Other components
- Clinic staff
Connections 37
- Clinic staff → Application routes: uses
frontend/src/App.jsx - Application routes → Clinic dashboard: routes to
frontend/src/App.jsx - Application routes → Doctor visit pad: routes to
frontend/src/App.jsx - Application routes → Lab workspace: routes to
frontend/src/App.jsx - Application routes → Day-care workspace: routes to
frontend/src/App.jsx - Application routes → Home-care workspace: routes to
frontend/src/App.jsx - HTTP application → Request protection: uses
backend/server.js - HTTP application → Live event broadcast: initializes
backend/server.js - HTTP application → Front-desk operations: mounts routes
backend/server.js - HTTP application → Doctor operations: mounts routes
backend/server.js - HTTP application → Day-care records: mounts routes
backend/server.js - HTTP application → Home-care records: mounts routes
backend/server.js - HTTP application → Lab orders: mounts routes
backend/server.js - HTTP application → Operational reports: mounts routes
backend/server.js - Front-desk operations → Patient records: reads and writes
backend/controllers/frontdeskController.js - Front-desk operations → Appointments: reads and writes
backend/controllers/frontdeskController.js - Front-desk operations → Bills and payments: reads and writes
backend/controllers/frontdeskController.js - Front-desk operations → Lab orders store: updates
backend/controllers/frontdeskController.js - Front-desk operations → Patient matching: uses
backend/controllers/frontdeskController.js - Front-desk operations → Live event broadcast: broadcasts
backend/controllers/frontdeskController.js - Doctor operations → Patient records: reads and writes
backend/controllers/doctorController.js - Doctor operations → Appointments: reads and writes
backend/controllers/doctorController.js - Doctor operations → Lab orders store: reads
backend/controllers/doctorController.js - Lab orders → Lab orders store: reads and writes
backend/controllers/labOrderController.js - Lab orders → Patient matching: uses
backend/controllers/labOrderController.js - Lab orders → Live event broadcast: broadcasts
backend/controllers/labOrderController.js - Day-care records → Day-care store: reads and writes
- Home-care records → Home-care store: reads and writes
backend/controllers/homeCareController.js - Home-care records → Bills and payments: uses
backend/controllers/homeCareController.js - Home-care records → Patient matching: uses
backend/controllers/homeCareController.js - Operational reports → Bills and payments: reads
backend/controllers/reportController.js - Operational reports → Patient records: reads
backend/controllers/reportController.js - Operational reports → Lab orders store: reads
backend/controllers/reportController.js - Operational reports → Day-care store: reads
backend/controllers/reportController.js - Operational reports → Home-care store: reads
backend/controllers/reportController.js - Admin operations → Staff records: manages
backend/controllers/adminController.js - Patient matching → Patient records: matches or creates
backend/utils/patientUtils.js