How igoranjos/consultorio_m-dico works
Consultorio is a clinic-management system with both an MVC web interface and a REST API. The main workflow is a logged-in user managing appointments: the web controller delegates to an HTTP client service, which calls the API; application logic persists the consultation and triggers email and calendar actions. The tree also shows patient, doctor, service, specialty, user, and email capabilities, plus a background worker. Some wiring and unsampled endpoint behavior are unknown, so uncertain links are omitted or marked unverified.
Main entry points: ConsultService.cs Appointment workflow · Services API client services · Worker.cs Email background worker · SeedEmail.cs Email delivery service
Components 19
Web interface
- Clinic screens
Consultorio.Web/Controllers - API client services
Consultorio.Web/Services - User session
Consultorio.Web/Helper
API
- Appointment API
Consultorio.API/Controllers/ConsultController.cs - User and login API
Consultorio.API/Controllers/UserController.cs - Other CRUD APIs
Consultorio.API/Controllers
Application services
- Appointment workflow
Consultorio.Application/Services/ConsultService.cs - Domain CRUD services
Consultorio.Application/Services - Calendar integration
Consultorio.Application/Calendar/GoogleCalendarService.cs - Email delivery service
Consultorio.Application/Email/SeedEmail.cs - JWT generation
Consultorio.Application/Services/Token/TokenService.cs
Persistence
- Data repositories
Consultorio.Data/Repository - Clinic database context
Consultorio.Data/ConsultorioDbContext.cs - Email templates
Consultorio.Data/Repository/EmailRepository.cs
Background email
- Worker host
Consultorio.WorkerService/Program.cs - Email background worker
Consultorio.WorkerService/Worker.cs
Other components
- Clinic user
- Google Calendar
- Email provider
Connections 18
- Clinic user → Clinic screens: uses
Consultorio.Web/Controllers/AtendimentoController.cs - Clinic screens → API client services: delegates to
Consultorio.Web/Controllers/AtendimentoController.cs - API client services → User session: reads token
Consultorio.Web/Services/AtendimentoService.cs - API client services → Appointment API: HTTP requests
Consultorio.Web/Services/AtendimentoService.cs - Appointment API → Appointment workflow: dispatches CRUD
- User and login API → JWT generation: generates token
Consultorio.API/Controllers/UserController.cs - User and login API → Domain CRUD services: dispatches CRUD
Consultorio.API/Controllers/UserController.cs - Other CRUD APIs → Domain CRUD services: dispatches CRUD
Consultorio.API/Controllers/UserController.cs - Appointment workflow → Data repositories: reads and writes
Consultorio.Application/Services/ConsultService.cs - Appointment workflow → Email templates: loads template
Consultorio.Application/Services/ConsultService.cs - Appointment workflow → Email delivery service: sends email
Consultorio.Application/Services/ConsultService.cs - Appointment workflow → Calendar integration: manages events
Consultorio.Application/Services/ConsultService.cs - Data repositories → Clinic database context: queries
Consultorio.Data/Repository/ConsultRepository.cs - Calendar integration → Google Calendar: calendar API
- Email delivery service → Email provider: delivers email
- Worker host → Email background worker: hosts
Consultorio.WorkerService/Program.cs - Email background worker → Email delivery service: uses
- Email background worker → Clinic database context: accesses data
Consultorio.WorkerService/Worker.cs