How yossefahmed6332/clinicapis-system works
Clinic APIs is a layered ASP.NET Core backend for patient, staff, clinical, appointment, and financial workflows. Patients and clinic staff use role-restricted API endpoints; the documented core flow is controllers to business services to repositories and EF Core/SQL Server. The graph also preserves authentication, user and staff administration, clinical records, and billing/reporting. Most feature-specific implementation files were not sampled, so their links reflect README-documented capabilities and layering; the manager service-to-repository call is directly visible in source.
Main entry points: Services Business services · ClinicDbContext.cs Clinic database · AppointmentController.cs Appointment API · MedicalRecordController.cs Medical records
Components 19
API and identity
- Login and tokens
ClinicAPIs_NewVersion/Controllers/AuthController/AuthController.cs - User administration
ClinicAPIs_NewVersion/Controllers/UserControllers - User hierarchy
ClinicAPIs_NewVersion/Models/User/ApplicationUser.cs
Clinic operations
- Appointment API
ClinicAPIs_NewVersion/Controllers/AppointmentController.cs - Payment and reports
ClinicAPIs_NewVersion/Controllers - Appointment model
ClinicAPIs_NewVersion/Models/Appointment.cs - Finance models
ClinicAPIs_NewVersion/Models/PaymentOperation.cs
Clinical care
- Medical records
ClinicAPIs_NewVersion/Controllers/MedicalRecordController.cs - Exams and vitals
ClinicAPIs_NewVersion/Controllers - Prescriptions
ClinicAPIs_NewVersion/Controllers/PrescriptionController.cs - Patient model
ClinicAPIs_NewVersion/Models/User/Patient.cs - Medical record model
ClinicAPIs_NewVersion/Models/MedicalRecord.cs
Business and persistence
- Business services
ClinicAPIs_NewVersion/Services - Manager service
ClinicAPIs_NewVersion/Services/UserServices/EmployeeServices/NonMedicalStaffServices/ManagerService.cs - Data repositories
ClinicAPIs_NewVersion/Repositories - Manager repository
ClinicAPIs_NewVersion/Repositories/UserRepositories/EmployeeRepository/NonMedicalStaffRepository/ManagerRepository.cs - Clinic database
ClinicAPIs_NewVersion/Data/ClinicDbContext.cs
Other components
- Patient
- Clinic staff
Connections 23
- Patient → Login and tokens: logs in
README.md - Patient → Appointment API: books appointments
README.md - Patient → Medical records: views history
README.md - Clinic staff → Appointment API: manages schedules
README.md - Clinic staff → Medical records: updates records
README.md - Clinic staff → Exams and vitals: records results
README.md - Clinic staff → Prescriptions: creates prescriptions
README.md - Clinic staff → Payment and reports: manages finances
README.md - Clinic staff → User administration: administers users
README.md - Appointment API → Business services: delegates to
README.md - User administration → Business services: delegates to
README.md - Medical records → Business services: delegates to
README.md - Exams and vitals → Business services: delegates to
README.md - Prescriptions → Business services: delegates to
README.md - Payment and reports → Business services: delegates to
README.md - Business services → Data repositories: uses data access
README.md - Manager service → Manager repository: calls
ClinicAPIs_NewVersion/Services/UserServices/EmployeeServices/NonMedicalStaffServices/ManagerService.cs - Data repositories → Clinic database: accesses
README.md - Clinic database → Appointment model: persists
ClinicAPIs_NewVersion/Data/ClinicDbContext.cs - Clinic database → User hierarchy: persists
ClinicAPIs_NewVersion/Data/ClinicDbContext.cs - Clinic database → Patient model: persists
ClinicAPIs_NewVersion/Data/ClinicDbContext.cs - Clinic database → Medical record model: persists
ClinicAPIs_NewVersion/Data/ClinicDbContext.cs - Clinic database → Finance models: persists
ClinicAPIs_NewVersion/Data/ClinicDbContext.cs