How ajinkyagadgil/patient-management-system works
Patient Management System is an Angular and .NET application for maintaining patient records, treatment history, images, and billing. The main workflow is users browsing or editing patient information and treatments, with backend handlers and services coordinating persistence and file operations; billing records can be listed by day or date range. The README documents UI capabilities beyond the sampled implementation. Several handler, record, and frontend-to-API connections are not shown in excerpts, so those links are marked unverified rather than asserted as inspected.
Main entry points: PatientService.cs Patient service · patient-details.component.ts Patient screens · TreatmentService.cs Treatment service · TreatmentQuery.cs Treatment query
Components 21
Patient UI
- Patient screens
PMSUI/src/app/modules/patient/patient-details/patient-details.component.ts - Patient API client
PMSUI/src/app/modules/patient/patient.service.ts - Image viewer
PMSUI/src/app/modules/shared/components/images-viewer/images-viewer.component.ts
API Handling
- Patient endpoints
PMSBackend/PMSBackend/Controllers/PatientController.cs - Treatment endpoints
PMSBackend/PMSBackend/Controllers/TreatmentController.cs - Billing endpoints
PMSBackend/PMSBackend/Controllers/RecordController.cs - Patient handler
PMSBackend/PMSBackend/Handler/Patient/PatientHandler.cs - Treatment handler
PMSBackend/PMSBackend/Handler/Treatment/TreatmentHandler.cs - Record handler
PMSBackend/PMSBackend/Handler/Record
Domain Services
- Patient service
PMSBackend/Patient.Core/Implementation/PatientService.cs - Treatment service
PMSBackend/Patient.Core/Implementation/TreatmentService.cs - Billing service
PMSBackend/Patient.Core/Implementation/RecordService.cs - File operations
PMSBackend/Patient.Core/Helpers/FileHelper.cs - Patient query
PMSBackend/Patient.Domain/Queries/PatientQuery.cs - Treatment query
PMSBackend/Patient.Domain/Queries/TreatmentQuery.cs - Billing query
PMSBackend/Patient.Domain/Queries/RecordQuery.cs
Persistence
- Patient repository
PMSBackend/Patient.Data/Repository/PatientRepository.cs - Treatment repository
PMSBackend/Patient.Data/Repository/TreatmentRepository.cs - Billing repository
PMSBackend/Patient.Data/Repository/RecordRepository.cs - PMS database
PMSBackend/Patient.Data/Context/PMSDBContext.cs
Other components
- Clinic user
Connections 22
- Clinic user → Patient screens: uses
- Patient screens → Image viewer: views images
- Patient screens → Patient API client: requests data
- Patient API client → Patient endpoints: calls API
- Patient endpoints → Patient handler: dispatches
PMSBackend/PMSBackend/Controllers/PatientController.cs - Treatment endpoints → Treatment handler: dispatches
PMSBackend/PMSBackend/Controllers/TreatmentController.cs - Billing endpoints → Record handler: dispatches
PMSBackend/PMSBackend/Controllers/RecordController.cs - Patient handler → Patient service: calls
PMSBackend/PMSBackend/Handler/Patient/PatientHandler.cs - Treatment handler → Treatment service: calls
PMSBackend/PMSBackend/Handler/Treatment/TreatmentHandler.cs - Record handler → Billing service: calls
- Patient service → Patient query: queries
PMSBackend/Patient.Core/Implementation/PatientService.cs - Patient service → Treatment query: queries
PMSBackend/Patient.Core/Implementation/PatientService.cs - Patient service → Billing query: deletes records
PMSBackend/Patient.Core/Implementation/PatientService.cs - Patient service → File operations: uploads files
PMSBackend/Patient.Core/Implementation/PatientService.cs - Treatment service → Treatment query: queries
PMSBackend/Patient.Core/Implementation/TreatmentService.cs - Treatment service → File operations: handles files
PMSBackend/Patient.Core/Implementation/TreatmentService.cs - Patient query → Patient repository: delegates
PMSBackend/Patient.Domain/Queries/PatientQuery.cs - Treatment query → Treatment repository: delegates
PMSBackend/Patient.Domain/Queries/TreatmentQuery.cs - Billing query → Billing repository: delegates
PMSBackend/Patient.Domain/Queries/RecordQuery.cs - Patient repository → PMS database: reads and writes
PMSBackend/Patient.Data/Repository/PatientRepository.cs - Treatment repository → PMS database: reads and writes
PMSBackend/Patient.Data/Repository/TreatmentRepository.cs - Billing repository → PMS database: reads and writes
PMSBackend/Patient.Data/Repository/RecordRepository.cs