How apollo-level2-web-dev/l2b6-backend-ph-healthcare-management-system works
This is an Express-based healthcare scheduling and appointment service. Its apparent user workflow spans account access, provider and specialty discovery, schedule management, appointment booking, and payment; administration is a separate capability. The sampled controller confirms doctor-schedule requests delegate to a service and use shared request/response helpers. Most implementation files were not excerpted and the README is empty, so other domain links are intentionally not asserted.
Main entry points: doctorSchedule.controller.ts Doctor schedules · app.ts HTTP application · query.interface.ts Query parameters · catchAsync.ts Async wrapper
Components 20
Access and administration
- Authentication
src/app/module/auth - User accounts
src/app/module/user - Administration
src/app/module/admin
Provider catalog
- Doctors
src/app/module/doctor - Specialties
src/app/module/specialty
Availability
- Schedules
src/app/module/schedule - Doctor schedules
src/app/module/doctorSchedule/doctorSchedule.controller.ts
Appointments and payments
- Appointments
src/app/module/appointment - Payments
src/app/module/payment
Application platform
- HTTP application
src/app.ts - Route registry
src/app/routes/index.ts - Auth middleware
src/app/middleware/checkAuth.ts - Request validation
src/app/middleware/validateRequest.ts - Query parameters
src/app/interfaces/query.interface.ts - Query builder
src/app/utils/QueryBuilder.ts - Database client
src/app/lib/prisma.ts - Async wrapper
src/app/shared/catchAsync.ts - Response formatter
src/app/shared/sendResponse.ts - Error handling
src/app/middleware/globalErrorHandler.ts
Other components
- API client
Connections 5
- API client → HTTP application: sends requests
- Doctor schedules → Query parameters: accepts query type
src/app/module/doctorSchedule/doctorSchedule.controller.ts - Doctor schedules → Async wrapper: wraps handlers
src/app/module/doctorSchedule/doctorSchedule.controller.ts - Doctor schedules → Response formatter: formats responses
src/app/module/doctorSchedule/doctorSchedule.controller.ts - Doctor schedules → Doctor schedules: delegates operations
src/app/module/doctorSchedule/doctorSchedule.controller.ts