How harsiratvirk/web-application-healthcalendar works
HealthCalendar is a healthcare appointment system with patient, worker, and administrator interfaces. The main workflow is workers setting recurring or date-specific availability, patients booking and managing appointments, and workers reviewing scheduled appointments; administrators manage users and worker registration. The frontend communicates with role-specific ASP.NET controllers, which coordinate repositories and persistent domain data. The README documents the full role capabilities; some frontend and backend subsystem links are therefore documented or inferred where their implementation excerpts were not supplied.
Main entry points: WorkerCalendarPage.tsx Worker calendar · EventRepo.cs Appointment storage · AvailabilityRepo.cs Availability storage · ScheduleController.cs Schedule coordination
Components 24
Web interfaces
- Patient booking
healthcalendar/src/patientComponents/EventCalendarPage.tsx - Appointment forms
healthcalendar/src/patientComponents/NewEventForm.tsx - Worker calendar
healthcalendar/src/workerComponents/WorkerCalendarPage.tsx - Worker calendar grid
healthcalendar/src/workerComponents/WorkerCalendarGrid.tsx - User administration
healthcalendar/src/admin/UserManagePage.tsx - Worker registration
healthcalendar/src/admin/WorkerRegistrationPage.tsx - Login and registration
healthcalendar/src/auth/AuthContext.tsx - Authentication service
healthcalendar/src/services/authService.ts - Patient service
healthcalendar/src/services/patientService.ts - Worker service
healthcalendar/src/services/workerService.ts - Shared service
healthcalendar/src/services/sharedService.ts
API workflows
- Appointment API
api/Controllers/EventController.cs - Availability API
api/Controllers/AvailabilityController.cs - Schedule coordination
api/Controllers/ScheduleController.cs - Authentication API
api/Controllers/AuthController.cs - User administration API
api/Controllers/UserController.cs
Data and domain
- Appointment storage
api/DAL/EventRepo.cs - Availability storage
api/DAL/AvailabilityRepo.cs - Schedule storage
api/DAL/ScheduleRepo.cs - Identity storage
api/DAL/AuthRepo.cs - User storage
api/DAL/UserRepo.cs - Appointment and availability models
api/Models
Other components
- Patients, workers, admins
- Application database
Connections 32
- Patients, workers, admins → Patient booking: books appointments
README.md - Patient booking → Appointment forms: opens forms
README.md - Patient booking → Patient service: requests data
README.md - Patient service → Appointment API: calls API
- Patients, workers, admins → Worker calendar: manages availability
healthcalendar/src/workerComponents/WorkerCalendarPage.tsx - Worker calendar → Worker calendar grid: renders
healthcalendar/src/workerComponents/WorkerCalendarPage.tsx - Worker calendar → Shared service: loads assigned users
healthcalendar/src/workerComponents/WorkerCalendarPage.tsx - Worker calendar → Worker service: loads events
healthcalendar/src/workerComponents/WorkerCalendarPage.tsx - Worker service → Availability API: calls API
- Worker service → Appointment API: calls API
- Shared service → User administration API: calls API
- Patients, workers, admins → User administration: manages users
README.md - User administration → User administration API: manages users
README.md - Patients, workers, admins → Worker registration: registers workers
healthcalendar/src/admin/WorkerRegistrationPage.tsx - Worker registration → Authentication service: registers worker
healthcalendar/src/admin/WorkerRegistrationPage.tsx - Login and registration → Authentication service: authenticates
healthcalendar/src/auth/AuthContext.tsx - Authentication service → Authentication API: sends auth requests
healthcalendar/src/services/authService.ts - Appointment API → Appointment storage: reads and writes
api/Controllers/EventController.cs - Availability API → Availability storage: reads and writes
api/Controllers/AvailabilityController.cs - Availability API → Schedule storage: coordinates schedules
- Schedule coordination → Appointment storage: reads events
api/Controllers/ScheduleController.cs - Schedule coordination → Availability storage: reads availability
api/Controllers/ScheduleController.cs - Schedule coordination → Schedule storage: updates schedules
api/Controllers/ScheduleController.cs - Authentication API → Identity storage: uses identity repository
api/Controllers/AuthController.cs - User administration API → User storage: uses user repository
api/Controllers/UserController.cs - Appointment storage → Application database: persists appointments
- Availability storage → Application database: persists availability
- Schedule storage → Application database: persists schedules
- Identity storage → Application database: persists identity
- User storage → Application database: persists users
- Appointment storage → Appointment and availability models: uses models
api/DAL/EventRepo.cs - Availability storage → Appointment and availability models: uses models
api/DAL/AvailabilityRepo.cs