How iiit-sricity-fsd-2024-2028/35_medbits works
FDFED is a multi-branch hospital-management application, with a NestJS API and React role-based interface. Users enter through the routed frontend; its routes expose patient, doctor, front-desk, lab-technician, branch-admin, and super-admin areas. The backend provides corresponding appointment, patient, staff, laboratory, commerce, and branch-management capabilities. The README contains only the project name, so product details and connections here rely on the supplied tree and source excerpts/index; frontend-to-API calls and unsampled service internals are not asserted.
Main entry points: appointments.controller.ts API controllers · App.jsx Route and role dispatch · AuthContext.jsx Authentication context · LabTechDashboard.jsx Role dashboards
Components 20
Role-based interface
- Route and role dispatch
react-frontend/src/App.jsx - Authentication context
react-frontend/src/context/AuthContext.jsx - Role dashboards
react-frontend/src/pages/dashboards/LabTechDashboard.jsx
API access
- API controllers
back-end/src/appointments/appointments.controller.ts - Role authorization
back-end/src/common/guards/roles.guard.ts - Branch request context
back-end/src/common/request-context.service.ts
Care operations
- Appointment scheduling
back-end/src/appointments/appointments.service.ts - Doctor management
back-end/src/doctors/doctors.service.ts - Patient profiles
back-end/src/patients/patients.service.ts - Medical records and follow-ups
back-end/src/medical-records - Queue and walk-ins
back-end/src/queue
Hospital services
- Lab requests and reports
back-end/src/lab-requests/lab-requests.service.ts - Lab test bookings
back-end/src/labtests/labtests.service.ts - Medicine orders
back-end/src/orders/orders.service.ts - Notifications and feedback
back-end/src/notifications
Branch administration
- Staff and leave management
back-end/src/lab-technicians/lab-technicians.service.ts - Hospital branches
back-end/src/hospital-branch/hospital-branch.service.ts - User accounts
back-end/src/users/users.service.ts - Branch and super-admin analytics
back-end/src/super-admin-dashboard
Other components
- Application user
Connections 16
- Application user → Route and role dispatch: opens routes
react-frontend/src/App.jsx - Route and role dispatch → Authentication context: provides auth
react-frontend/src/App.jsx - Route and role dispatch → Role dashboards: routes by role
react-frontend/src/App.jsx - Application user → API controllers: sends requests
- API controllers → Role authorization: guards routes
back-end/src/appointments/appointments.controller.ts - API controllers → Branch request context: reads scope
back-end/src/appointments/appointments.controller.ts - API controllers → Appointment scheduling: calls
back-end/src/appointments/appointments.controller.ts - API controllers → Patient profiles: checks patient
back-end/src/appointments/appointments.controller.ts - API controllers → Doctor management: calls
- API controllers → Lab requests and reports: calls
- API controllers → Lab test bookings: calls
- API controllers → Medicine orders: calls
- API controllers → Staff and leave management: calls
- API controllers → Hospital branches: calls
- API controllers → User accounts: calls
- API controllers → Branch and super-admin analytics: serves analytics