How dev-mehedi-github/apw_fall26-27_project works
This backend is a NestJS clinical-management API. Users authenticate, then role-aware endpoints manage appointments and clinician availability, laboratory orders and reports, and invoices; administration also maintains users, doctors, departments, and related information. The graph retains major domains visible in the source tree and core-module index. The README is empty, and several services were only partially sampled, so unsampled integrations are not inferred; edges cite controller/service references or service entity references in the source index.
Main entry points: laboratory.service.ts Lab orders & tests · billing.service.ts Invoice management · appointment.service.ts Appointment booking · user.entity.ts User records
Components 25
Identity & Access
- Authentication API
backend/src/modules/auth/auth.controller.ts - Authentication
backend/src/modules/auth/auth.service.ts - User accounts
backend/src/modules/user/user.service.ts - User records
backend/src/modules/user/entities/user.entity.ts
Care Scheduling
- Appointment API
backend/src/modules/appointments/appointment.controller.ts - Appointment booking
backend/src/modules/appointments/appointment.service.ts - Appointments
backend/src/modules/appointments/entities/appointment.entity.ts - Doctor availability
backend/src/modules/slot/slot.service.ts - Slots
backend/src/modules/slot/entities/slot.entity.ts
Laboratory Services
- Laboratory API
backend/src/modules/laboratory/laboratory.controller.ts - Lab orders & tests
backend/src/modules/laboratory/laboratory.service.ts - Lab orders
backend/src/modules/laboratory/entities/lab-order.entity.ts - Order items
backend/src/modules/laboratory/entities/lab-order-item.entity.ts - Test catalogue
backend/src/modules/laboratory/entities/lab-test.entity.ts - Lab report API
backend/src/modules/lab-report/lab-report.controller.ts
Billing & Administration
- Billing API
backend/src/modules/billing/billing.controller.ts - Invoice management
backend/src/modules/billing/billing.service.ts - Invoices
backend/src/modules/billing/entities/invoice.entity.ts - Departments
backend/src/modules/department/department.controller.ts - Doctor departments
backend/src/modules/doctor-department/doctor-department.service.ts - Doctor information
backend/src/modules/doctor-information/doctor-information.controller.ts - Doctor directory
backend/src/modules/doctor/doctor.controller.ts - Payment records
backend/src/modules/payment/payment.controller.ts - Notifications
backend/src/modules/notification/notification.controller.ts
Other components
- API client
Connections 29
- API client → Authentication API: requests
backend/src/modules/auth/auth.controller.ts - Authentication API → Authentication: delegates to
backend/src/modules/auth/auth.controller.ts - Authentication → User accounts: uses accounts
backend/src/modules/auth/auth.service.ts - User accounts → User records: manages
- API client → Appointment API: requests
backend/src/modules/appointments/appointment.controller.ts - Appointment API → Appointment booking: delegates to
backend/src/modules/appointments/appointment.controller.ts - Appointment booking → Appointments: reads & writes
backend/src/modules/appointments/appointment.service.ts - Appointment booking → User records: checks patient
backend/src/modules/appointments/appointment.service.ts - Appointment booking → Slots: books slot
backend/src/modules/appointments/appointment.service.ts - API client → Laboratory API: requests
backend/src/modules/laboratory/laboratory.controller.ts - Laboratory API → Lab orders & tests: delegates to
backend/src/modules/laboratory/laboratory.controller.ts - Lab orders & tests → Lab orders: manages orders
backend/src/modules/laboratory/laboratory.service.ts - Lab orders & tests → Order items: uses items
backend/src/modules/laboratory/laboratory.service.ts - Lab orders & tests → Test catalogue: manages tests
backend/src/modules/laboratory/laboratory.service.ts - Lab orders & tests → User records: checks patient
backend/src/modules/laboratory/laboratory.service.ts - Lab orders & tests → Appointments: checks appointment
backend/src/modules/laboratory/laboratory.service.ts - API client → Lab report API: requests
backend/src/modules/lab-report/lab-report.controller.ts - API client → Billing API: requests
backend/src/modules/billing/billing.controller.ts - Billing API → Invoice management: delegates to
backend/src/modules/billing/billing.controller.ts - Invoice management → Invoices: creates invoices
backend/src/modules/billing/billing.service.ts - Invoice management → Appointments: reads appointment
backend/src/modules/billing/billing.service.ts - Invoice management → Lab orders: reads lab order
backend/src/modules/billing/billing.service.ts - Invoice management → User records: checks requester
backend/src/modules/billing/billing.service.ts - API client → Departments: requests
backend/src/modules/department/department.controller.ts - API client → Doctor departments: requests
- API client → Doctor information: requests
backend/src/modules/doctor-information/doctor-information.controller.ts - API client → Doctor directory: requests
backend/src/modules/doctor/doctor.controller.ts - API client → Payment records: requests
backend/src/modules/payment/payment.controller.ts - API client → Notifications: requests
backend/src/modules/notification/notification.controller.ts