How matheus-bernardo/apiclinicalmed works
This is a SOA-style telenursing REST service. The main workflow is HTTP requests for appointments and consultations, with consultation creation validating participants and availability, generating an online meeting link, persisting the consultation, and queueing appointment email; completion can attach a prescription and queue its email. Separate branches manage patients, doctors, and login. The README documents online calls and third-party service use; sampled excerpts show key consultation, persistence, and account flows, but not all controller or integration wiring.
Main entry points: ConsultationService.cs Consultation workflow · PatientService.cs Patient service · DoctorService.cs Doctor service · LoginService.cs Login service
Components 30
HTTP API
- Appointment endpoints
WebApplication1/WebApplication1/Controllers/AppointmentMedicalController/AppointmentMedicalController.cs - Consultation endpoints
WebApplication1/WebApplication1/Controllers/ConsultationMedicalController/ConsultationMedicalController.cs - Patient endpoints
WebApplication1/WebApplication1/Controllers/PatientController/PatientController.cs - Doctor endpoints
WebApplication1/WebApplication1/Controllers/DoctorController/DoctorController.cs - Prescription endpoints
WebApplication1/WebApplication1/Controllers/PrescriptionController/PrescriptionController.cs - Login endpoints
WebApplication1/WebApplication1/Controllers/LoginController/LoginController.cs - Auth endpoints
WebApplication1/WebApplication1/Controllers/AuthController/AuthController.cs - Logout endpoints
WebApplication1/WebApplication1/Controllers/LogoutController/LogoutController.cs - Health endpoint
WebApplication1/WebApplication1/Controllers/HealthApiController/HealthController.cs
Care workflows
- Appointment service
WebApplication1/WebApplication1/Services/TypeAppointmentMedicalService/TypeAppointmentService.cs - Consultation workflow
WebApplication1/WebApplication1/Services/ConsultationService/ConsultationService.cs - Meeting links
WebApplication1/WebApplication1/Services/MeetingService/MeetingService.cs - Email delivery
WebApplication1/WebApplication1/Services/EmailService/EmailService.cs - Prescription service
WebApplication1/WebApplication1/Services/PrescriptionService/PrescriptionService.cs
Accounts and identity
- Patient service
WebApplication1/WebApplication1/Services/PatientService/PatientService.cs - Doctor service
WebApplication1/WebApplication1/Services/DoctorService/DoctorService.cs - Login service
WebApplication1/WebApplication1/Services/LoginService/LoginService.cs - User lookup
WebApplication1/WebApplication1/Services/Utils/FindUser.cs - JWT service
WebApplication1/WebApplication1/Services/Utils/JwtService.cs - Domain validators
WebApplication1/WebApplication1/Services/Validators
Persistence and domain
- Care and user models
WebApplication1/WebApplication1/Core/Entities - Consultation repository
WebApplication1/WebApplication1/Repositories/ConsultationRepository/ConsultationRepository.cs - Patient repository
WebApplication1/WebApplication1/Repositories/PatientRepository/PatientRepository.cs - Doctor repository
WebApplication1/WebApplication1/Repositories/DoctorRepository/DoctorRepository.cs - Prescription repository
WebApplication1/WebApplication1/Repositories/PrescriptionRepository/PrescriptionRepository.cs - Appointment repository
WebApplication1/WebApplication1/Repositories/TypeAppointmentMedicalRepository/AppointmentMedicalRepository.cs - Application database
WebApplication1/WebApplication1/Infrastructure/Data/AppDbContext.cs
Other components
- REST client
- Online meeting provider
- Email provider
Connections 32
- REST client → Appointment endpoints: requests
- REST client → Consultation endpoints: requests
- REST client → Patient endpoints: requests
WebApplication1/WebApplication1/Controllers/PatientController/PatientController.cs - REST client → Doctor endpoints: requests
WebApplication1/WebApplication1/Controllers/DoctorController/DoctorController.cs - REST client → Prescription endpoints: requests
WebApplication1/WebApplication1/Controllers/PrescriptionController/PrescriptionController.cs - REST client → Login endpoints: requests
WebApplication1/WebApplication1/Controllers/LoginController/LoginController.cs - REST client → Auth endpoints: requests
WebApplication1/WebApplication1/Controllers/AuthController/AuthController.cs - REST client → Logout endpoints: requests
WebApplication1/WebApplication1/Controllers/LogoutController/LogoutController.cs - REST client → Health endpoint: requests
WebApplication1/WebApplication1/Controllers/HealthApiController/HealthController.cs - Appointment endpoints → Appointment service: invokes
WebApplication1/WebApplication1/Controllers/AppointmentMedicalController/AppointmentMedicalController.cs - Consultation endpoints → Consultation workflow: invokes
WebApplication1/WebApplication1/Controllers/ConsultationMedicalController/ConsultationMedicalController.cs - Patient endpoints → Patient service: invokes
WebApplication1/WebApplication1/Controllers/PatientController/PatientController.cs - Doctor endpoints → Doctor service: invokes
WebApplication1/WebApplication1/Controllers/DoctorController/DoctorController.cs - Prescription endpoints → Prescription service: invokes
WebApplication1/WebApplication1/Controllers/PrescriptionController/PrescriptionController.cs - Login endpoints → Login service: invokes
WebApplication1/WebApplication1/Controllers/LoginController/LoginController.cs - Consultation workflow → User lookup: looks up
WebApplication1/WebApplication1/Services/ConsultationService/ConsultationService.cs - Consultation workflow → Domain validators: validates
WebApplication1/WebApplication1/Services/ConsultationService/ConsultationService.cs - Consultation workflow → Meeting links: generates link
WebApplication1/WebApplication1/Services/ConsultationService/ConsultationService.cs - Consultation workflow → Consultation repository: persists
WebApplication1/WebApplication1/Services/ConsultationService/ConsultationService.cs - Consultation workflow → Prescription service: retrieves prescription
WebApplication1/WebApplication1/Services/ConsultationService/ConsultationService.cs - Consultation workflow → Email delivery: queues email
WebApplication1/WebApplication1/Services/ConsultationService/ConsultationService.cs - Patient service → Patient repository: stores patient
WebApplication1/WebApplication1/Services/PatientService/PatientService.cs - Patient service → Domain validators: validates
WebApplication1/WebApplication1/Services/PatientService/PatientService.cs - Doctor service → Doctor repository: stores doctor
WebApplication1/WebApplication1/Services/DoctorService/DoctorService.cs - Doctor service → Domain validators: validates
WebApplication1/WebApplication1/Services/DoctorService/DoctorService.cs - Login service → User lookup: looks up
WebApplication1/WebApplication1/Services/LoginService/LoginService.cs - Login service → JWT service: generates token
WebApplication1/WebApplication1/Services/LoginService/LoginService.cs - Prescription service → Prescription repository: reads and writes
WebApplication1/WebApplication1/Services/PrescriptionService/PrescriptionService.cs - Consultation repository → Application database: reads and writes
WebApplication1/WebApplication1/Repositories/ConsultationRepository/ConsultationRepository.cs - User lookup → Application database: queries
WebApplication1/WebApplication1/Services/Utils/FindUser.cs - Meeting links → Online meeting provider: creates meeting
- Email delivery → Email provider: sends email