How kishoretamil03579/hospitalmanagementsystem_angular works
CareFlow is a hospital management system with an Angular client and an ASP.NET Core API backed by SQL Server. The principal workflow runs from a user navigating a role-protected feature, through a frontend service request, API controller, application service, and persistence layer. Major branches cover authentication and staff onboarding, patients, doctors and scheduling, appointments, administration, notifications, the dashboard, and settings. Several backend links are documented architecturally but their implementation files were not sampled; those links cite the README rather than implying source inspection.
Main entry points: app.routes.ts Routes and Guards · Repositories Data Repositories · auth.service.ts Auth Client · AuthService.cs Authentication Service
Components 30
Angular Client
- Routes and Guards
frontend/src/app/app.routes.ts - Application Layout
frontend/src/app/layout/app-layout.component.ts
Clinical Operations
- Patient Directory UI
frontend/src/app/features/patients/pages/patient-list-page/patient-list-page.component.ts - Doctor Directory UI
frontend/src/app/features/doctors/pages/doctor-list-page/doctor-list-page.component.ts - Appointment UI
frontend/src/app/features/appointments/pages/appointment-calendar-page/appointment-calendar-page.component.ts - Operations Dashboard
frontend/src/app/features/dashboard/pages/dashboard-page/dashboard-page.component.ts - Notification Center
frontend/src/app/features/notifications/pages/notification-page/notification-page.component.ts - System Settings
frontend/src/app/features/settings/pages/settings-page/settings-page.component.ts
Identity and Admin
- Login and Onboarding UI
frontend/src/app/features/auth/pages/login-page/login-page.component.ts - Auth Client
frontend/src/app/core/services/auth.service.ts - User Administration
frontend/src/app/features/admin/pages/user-management-page/user-management-page.component.ts - Staff Approvals
frontend/src/app/features/admin/pages/staff-approval-page/staff-approval-page.component.ts
API and Application
- Patient Endpoints
backend/HospitalManagement.Api/Controllers/PatientsController.cs - Doctor Endpoints
backend/HospitalManagement.Api/Controllers/DoctorsController.cs - Appointment Endpoints
backend/HospitalManagement.Api/Controllers/AppointmentsController.cs - Authentication Endpoints
backend/HospitalManagement.Api/Controllers/AuthController.cs - Admin User Endpoints
backend/HospitalManagement.Api/Controllers/AdminUsersController.cs - Staff Registration Endpoints
backend/HospitalManagement.Api/Controllers/StaffRegistrationController.cs - Patient Service
backend/HospitalManagement.Application/Patients/Services/PatientService.cs - Doctor and Availability Services
backend/HospitalManagement.Application/Doctors/Services/DoctorService.cs - Appointment Service
backend/HospitalManagement.Application/Appointments/Services/AppointmentService.cs - Authentication Service
backend/HospitalManagement.Application/Auth/Services/AuthService.cs - Staff Registration Service
backend/HospitalManagement.Application/StaffRegistration/Services/StaffRegistrationService.cs - Admin User Service
backend/HospitalManagement.Application/Admin/Services/AdminUserService.cs
Persistence and Integrations
- Data Repositories
backend/HospitalManagement.Infrastructure/Repositories - Hospital Database Context
backend/HospitalManagement.Infrastructure/Persistence/HospitalDbContext.cs - SQL Server
- Email Delivery
backend/HospitalManagement.Infrastructure/Services/EmailService.cs - Hospital Domain Model
backend/HospitalManagement.Domain/Entities
Other components
- Hospital User
Connections 37
- Hospital User → Routes and Guards: navigates
frontend/src/app/app.routes.ts - Routes and Guards → Application Layout: loads
frontend/src/app/app.routes.ts - Routes and Guards → Login and Onboarding UI: routes to
frontend/src/app/app.routes.ts - Routes and Guards → Patient Directory UI: routes to
frontend/src/app/app.routes.ts - Routes and Guards → Doctor Directory UI: routes to
frontend/src/app/app.routes.ts - Routes and Guards → Appointment UI: routes to
frontend/src/app/app.routes.ts - Routes and Guards → Operations Dashboard: routes to
frontend/src/app/app.routes.ts - Routes and Guards → Notification Center: routes to
frontend/src/app/app.routes.ts - Routes and Guards → System Settings: routes to
frontend/src/app/app.routes.ts - Routes and Guards → User Administration: routes to
frontend/src/app/app.routes.ts - Routes and Guards → Staff Approvals: routes to
frontend/src/app/app.routes.ts - Login and Onboarding UI → Auth Client: uses
- Auth Client → Authentication Endpoints: sends requests
frontend/src/app/core/services/auth.service.ts - Patient Directory UI → Patient Endpoints: requests records
- Doctor Directory UI → Doctor Endpoints: requests directory
- Appointment UI → Appointment Endpoints: manages bookings
- Operations Dashboard → Patient Endpoints: loads metrics
- Notification Center → Hospital User: presents alerts
- System Settings → Hospital User: applies preferences
- User Administration → Auth Client: requests user admin
frontend/src/app/core/services/auth.service.ts - Staff Approvals → Auth Client: requests approvals
frontend/src/app/core/services/auth.service.ts - Authentication Endpoints → Authentication Service: delegates
- Patient Endpoints → Patient Service: delegates
- Doctor Endpoints → Doctor and Availability Services: delegates
- Appointment Endpoints → Appointment Service: delegates
- Admin User Endpoints → Admin User Service: delegates
- Staff Registration Endpoints → Staff Registration Service: delegates
backend/HospitalManagement.Api/Controllers/StaffRegistrationController.cs - Authentication Service → Data Repositories: accesses data
- Patient Service → Data Repositories: accesses data
- Doctor and Availability Services → Data Repositories: accesses data
- Appointment Service → Data Repositories: accesses data
- Admin User Service → Data Repositories: accesses data
- Staff Registration Service → Data Repositories: accesses data
- Data Repositories → Hospital Database Context: uses
- Hospital Database Context → SQL Server: reads and writes
- Hospital Database Context → Hospital Domain Model: maps entities
backend/HospitalManagement.Api/Program.cs - Authentication Service → Email Delivery: sends email