How chaudharysajid007/hospital-lims works
Hospital LIMS is a demo laboratory information system that tracks diagnostic orders through specimen receipt, testing, result finalization, report review, and approved PDF access. Its main workflow spans receptionist order entry, technician receiving and result work, and super-admin report decisions; rejection reopens tests for correction. The graph preserves major documented screens and capabilities. Some page-to-endpoint and unsampled controller behavior is documented only at workflow level, so those links cite the README rather than implying inspected implementation details.
Main entry points: App.jsx Page routing · app.js API application · axios.js API client · reportController.js Report decisions
Components 26
React client
- Page routing
client/src/App.jsx - API client
client/src/api/axios.js
Order intake
- Order entry
client/src/pages/NewOrder.jsx - Order tracking
client/src/pages/TrackOrder.jsx - Order handling
server/src/controllers/orderController.js
Laboratory workflow
- Batch receiving
client/src/pages/BatchReceiving.jsx - Work queue
client/src/pages/WorkQueue.jsx - Result workspace
client/src/pages/ResultWorkspace.jsx - Processed tests
client/src/pages/TodayProcessed.jsx - Specimen receiving
server/src/controllers/receivingController.js - Queue handling
server/src/controllers/queueController.js - Result handling
server/src/controllers/resultController.js
Report review
- Report screens
client/src/pages/Reports.jsx - Report decisions
server/src/controllers/reportController.js - Report submission
server/src/services/reportService.js - PDF generation
server/src/services/pdfService.js
Identity and data
- Auth context
client/src/context/AuthContext.jsx - User management
client/src/pages/Users.jsx - API application
server/src/app.js - Test lifecycle
server/src/models/OrderTest.js - Result records
server/src/models/Result.js - Report records
server/src/models/Report.js - User administration
server/src/controllers/userController.js
Other components
- Receptionist
- Technician
- Super admin
Connections 42
- Page routing → Auth context: reads identity
client/src/App.jsx - Page routing → Order entry: routes to
client/src/App.jsx - Page routing → Order tracking: routes to
client/src/App.jsx - Page routing → Batch receiving: routes to
client/src/App.jsx - Page routing → Work queue: routes to
client/src/App.jsx - Page routing → Result workspace: routes to
client/src/App.jsx - Page routing → Processed tests: routes to
client/src/App.jsx - Page routing → Report screens: routes to
client/src/App.jsx - Page routing → User management: routes to
client/src/App.jsx - Auth context → API client: sends login
client/src/context/AuthContext.jsx - Order entry → API client: calls API
client/src/pages/NewOrder.jsx - Order tracking → API client: calls API
client/src/pages/TrackOrder.jsx - Batch receiving → API client: calls API
client/src/pages/BatchReceiving.jsx - Result workspace → API client: calls API
client/src/pages/ResultWorkspace.jsx - Report screens → API client: calls API
client/src/pages/Reports.jsx - User management → API client: calls API
client/src/pages/Users.jsx - Receptionist → Order entry: enters orders
README.md - Receptionist → Order tracking: tracks orders
README.md - Technician → Batch receiving: receives specimens
README.md - Technician → Work queue: processes tests
README.md - Technician → Result workspace: enters results
README.md - Super admin → Report screens: reviews reports
README.md - API client → API application: sends requests
README.md - API application → Order handling: mounts order routes
server/src/app.js - API application → Specimen receiving: mounts receiving routes
server/src/app.js - API application → Queue handling: mounts queue routes
server/src/app.js - API application → Result handling: mounts result routes
server/src/app.js - API application → Report decisions: mounts report routes
server/src/app.js - API application → User administration: mounts user routes
server/src/app.js - Order handling → Test lifecycle: creates tests
server/src/controllers/orderController.js - Specimen receiving → Test lifecycle: updates receipt
server/src/controllers/receivingController.js - Queue handling → Test lifecycle: reads queue
server/src/controllers/queueController.js - Result handling → Test lifecycle: updates status
server/src/controllers/resultController.js - Result handling → Result records: saves results
server/src/controllers/resultController.js - Result handling → Report submission: submits report
server/src/controllers/resultController.js - Report submission → Report records: creates versions
server/src/services/reportService.js - Report decisions → Report records: records decisions
server/src/controllers/reportController.js - Report decisions → PDF generation: generates PDF
server/src/controllers/reportController.js - Report decisions → Test lifecycle: reopens tests
server/src/controllers/reportController.js - Report decisions → Result records: reopens results
server/src/controllers/reportController.js - User administration → API application: serves user API
- Receptionist → Report screens: downloads approved
README.md