How foxelhadad812-design/medicare works
MediCare is a clinic-management application whose primary workflow is doctor discovery, slot selection, appointment booking, reminders and notifications, followed by clinical encounter documentation and prescription issuance. Its MVC/API presentation layer calls application services, which use repositories and EF Core persistence. The graph also preserves documented administration, identity, payments, reporting, and realtime capabilities. Several service implementations and controllers are represented from the README and source index; their internal call details were not sampled, so those links are limited to documented or indexed relationships.
Main entry points: UnitOfWork.cs Repository unit of work · AppointmentService.cs Appointment lifecycle · ApplicationDbContext.cs EF domain context · CalendarApiController.cs Calendar API
Components 24
Web experience
- MVC and API
src/MediCare.Web/Program.cs - Appointment flow
src/MediCare.Web/Controllers/AppointmentsController.cs - Calendar API
src/MediCare.Web/Controllers/Api/CalendarApiController.cs - Account portal
src/MediCare.Web/Controllers/AccountController.cs - Admin portal
src/MediCare.Web/Controllers/AdminController.cs
Scheduling and care
- Appointment lifecycle
src/MediCare.Services/Implementations/AppointmentService.cs - Slot calculation
src/MediCare.Services/Implementations/SlotEngineService.cs - Schedule management
src/MediCare.Services/Implementations/ScheduleService.cs - Doctor directory
src/MediCare.Services/Implementations/DoctorService.cs - Appointment reminders
src/MediCare.Services/BackgroundServices/AppointmentReminderBackgroundService.cs - Clinical encounters
src/MediCare.Services/Implementations/MedicalRecordService.cs - Prescriptions
src/MediCare.Services/Implementations/PrescriptionService.cs
Clinic operations
- Admin analytics
src/MediCare.Services/Implementations/AdminService.cs - Identity and roles
src/MediCare.Services/Implementations/AuthService.cs - Payments
src/MediCare.Services/Implementations/PaymentService.cs - Notifications
src/MediCare.Services/Implementations/NotificationService.cs - Realtime delivery
src/MediCare.Web/Services/SignalRRealtimeNotifier.cs - Report exports
src/MediCare.Services/Common/ReportExportGenerators.cs
Persistence
- Repository unit of work
src/MediCare.Data/UnitOfWork/UnitOfWork.cs - Appointment repository
src/MediCare.Data/Repositories/AppointmentRepository.cs - Doctor repository
src/MediCare.Data/Repositories/DoctorRepository.cs - Generic repository
src/MediCare.Data/Repositories/Repository.cs - EF domain context
src/MediCare.Data/Context/ApplicationDbContext.cs
Other components
- Patient
Connections 29
- Patient → MVC and API: uses portals
- MVC and API → Appointment flow: routes booking
src/MediCare.Web/Controllers/AppointmentsController.cs - Appointment flow → Appointment lifecycle: requests bookings
src/MediCare.Web/Controllers/AppointmentsController.cs - Calendar API → Slot calculation: requests slots
src/MediCare.Web/Controllers/Api/CalendarApiController.cs - Calendar API → Appointment lifecycle: checks booking
src/MediCare.Web/Controllers/Api/CalendarApiController.cs - Calendar API → Doctor directory: loads doctors
src/MediCare.Web/Controllers/Api/CalendarApiController.cs - Appointment lifecycle → Repository unit of work: uses persistence
- Slot calculation → Repository unit of work: reads schedules
src/MediCare.Services/Implementations/SlotEngineService.cs - Schedule management → Repository unit of work: uses persistence
- Doctor directory → Repository unit of work: uses persistence
src/MediCare.Services/Implementations/DoctorService.cs - Appointment reminders → Appointment lifecycle: requests reminders
src/MediCare.Services/BackgroundServices/AppointmentReminderBackgroundService.cs - Appointment flow → Clinical encounters: requests encounters
src/MediCare.Web/Controllers/AppointmentsController.cs - Clinical encounters → Repository unit of work: uses persistence
- Prescriptions → Repository unit of work: uses persistence
- Account portal → Identity and roles: authenticates
- Admin portal → Admin analytics: requests administration
src/MediCare.Web/Controllers/AdminController.cs - Admin analytics → Repository unit of work: uses persistence
- Payments → Repository unit of work: uses persistence
- Notifications → Repository unit of work: persists notifications
- Realtime delivery → Notifications: delivers updates
- Admin analytics → Report exports: exports reports
- Repository unit of work → Appointment repository: provides repository
src/MediCare.Data/UnitOfWork/UnitOfWork.cs - Repository unit of work → Doctor repository: provides repository
src/MediCare.Data/UnitOfWork/UnitOfWork.cs - Repository unit of work → Generic repository: provides repository
src/MediCare.Data/UnitOfWork/UnitOfWork.cs - Appointment repository → EF domain context: queries appointments
src/MediCare.Data/Repositories/AppointmentRepository.cs - Doctor repository → EF domain context: queries doctors
src/MediCare.Data/Repositories/DoctorRepository.cs - Generic repository → EF domain context: accesses sets
src/MediCare.Data/Repositories/Repository.cs - MVC and API → Appointment lifecycle: calls services
- Appointment lifecycle → EF domain context: through data layer