How eng-ahmed-ibrahim/clinic-system-asp.net-angular works
This repository is a clinic-management application with an Angular frontend and ASP.NET Core API. A user navigates the dashboard or patient pages; frontend routes select feature views, while API controllers delegate patient, doctor, specialty, and user operations to application services and persistence. The domain models also cover scheduling, consultations, prescriptions, laboratory requests, attachments, invoicing, and payments. Those latter capabilities are visible in entity and DbContext excerpts, but their runtime handlers were not sampled, so no operational workflow is inferred for them.
Main entry points: AppDbContext.cs Clinic database context · Appointment.cs Appointments · app.routes.ts Feature routes · Consultation.cs Care records
Components 27
Angular interface
- App shell
frontend/src/app/app.ts - Feature routes
frontend/src/app/app.routes.ts - Dashboard
frontend/src/app/features/dashboard/dashboard-overview.component.ts - Patient page
frontend/src/app/features/patients/patients-page.component.ts - Profile page
frontend/src/app/features/profile/profile-page.component.ts - Component showcase
frontend/src/app/features/components-showcase/components-showcase.component.ts - Patient API client
frontend/src/app/core/services/patient.service.ts - UI services
frontend/src/app/core/services/translation.service.ts
API endpoints
- Authentication API
backend/Controllers/Auth/AuthController.cs - Patient API
backend/Controllers/PatientsController.cs - Doctor API
backend/Controllers/DoctorsController.cs - Specialty API
backend/Controllers/SpecialtiesController.cs - User API
backend/Controllers/UsersController.cs
Application services
- Patient operations
backend/Applications/Services/PatientService.cs - Doctor operations
backend/Applications/Services/DoctorService.cs - Specialty operations
backend/Applications/Services/SpecialtyService.cs - User operations
backend/Applications/Services/UserService.cs - JWT service
backend/Applications/Services/JwtService.cs - API DTO contracts
backend/Applications/DTOs
Clinic domain
- Patient records
backend/Domain/Entities/Patient.cs - Doctors and schedules
backend/Domain/Entities/Doctor.cs - Appointments
backend/Domain/Entities/Appointment.cs - Care records
backend/Domain/Entities/Consultation.cs - Invoices and payments
backend/Domain/Entities/Invoice.cs - Identity users
backend/Domain/Entities/AppUser.cs
Persistence
- Clinic database context
backend/Infrastructure/Data/AppDbContext.cs
Other components
- Clinic user
Connections 34
- Clinic user → App shell: opens
- App shell → Feature routes: hosts routes
- Feature routes → Dashboard: loads default
frontend/src/app/app.routes.ts - Feature routes → Patient page: loads patients
frontend/src/app/app.routes.ts - Feature routes → Profile page: loads profile
frontend/src/app/app.routes.ts - Feature routes → Component showcase: loads showcase
frontend/src/app/app.routes.ts - App shell → UI services: uses translation
frontend/src/app/app.ts - Patient API → Patient operations: delegates
backend/Controllers/PatientsController.cs - Doctor API → Doctor operations: delegates
backend/Controllers/DoctorsController.cs - Specialty API → Specialty operations: delegates
backend/Controllers/SpecialtiesController.cs - User API → User operations: delegates
backend/Controllers/UsersController.cs - Authentication API → JWT service: uses tokens
backend/Controllers/Auth/AuthController.cs - Patient operations → Clinic database context: reads and writes
backend/Applications/Services/PatientService.cs - Doctor operations → Clinic database context: reads and writes
backend/Applications/Services/DoctorService.cs - Specialty operations → Clinic database context: uses context
backend/Applications/Services/SpecialtyService.cs - User operations → Identity users: uses identity
backend/Applications/Services/UserService.cs - Patient API → API DTO contracts: accepts DTOs
backend/Controllers/PatientsController.cs - Doctor API → API DTO contracts: accepts DTOs
backend/Controllers/DoctorsController.cs - Patient operations → Patient records: maps records
backend/Applications/Services/PatientService.cs - Doctor operations → Doctors and schedules: maps records
backend/Applications/Services/DoctorService.cs - Clinic database context → Patient records: maps entity
backend/Infrastructure/Data/AppDbContext.cs - Clinic database context → Doctors and schedules: maps entity
backend/Infrastructure/Data/AppDbContext.cs - Clinic database context → Appointments: maps entity
backend/Infrastructure/Data/AppDbContext.cs - Clinic database context → Care records: maps entity
backend/Infrastructure/Data/AppDbContext.cs - Clinic database context → Invoices and payments: maps entity
backend/Infrastructure/Data/AppDbContext.cs - Clinic database context → Identity users: maps identity
backend/Infrastructure/Data/AppDbContext.cs - Appointments → Patient records: references patient
backend/Domain/Entities/Appointment.cs - Appointments → Doctors and schedules: references doctor
backend/Domain/Entities/Appointment.cs - Appointments → Care records: has consultation
backend/Domain/Entities/Appointment.cs - Appointments → Invoices and payments: has invoices
backend/Domain/Entities/Appointment.cs - Care records → Appointments: references appointment
backend/Domain/Entities/Consultation.cs - Care records → Patient records: references patient
backend/Domain/Entities/Consultation.cs - Care records → Doctors and schedules: references doctor
backend/Domain/Entities/Consultation.cs - Invoices and payments → Patient records: references patient
backend/Domain/Entities/Invoice.cs