How etw-bank/ethiopianhealthcare works
This is a multi-facility healthcare API. Its main workflow registers or identifies a patient, issues a facility-specific patient number and encounter, then supports triage, doctor review, lab testing, and prescription handling, including pharmacy dispensing and substitution review. The source index also identifies administration, authentication, Fayda identity, and patient history capabilities. Sampled code confirms several direct database operations and prescription behaviors; other links reflect indexed references or service registration, not inspected method implementations.
Main entry points: Program.cs API startup · PrescriptionService.cs Prescription lifecycle · PatientService .cs Patient registration · DoctorController.cs Doctor workflow
Components 33
API
- API startup
src/EthiopianHealthcare.Api/Program.cs - Patient endpoints
src/EthiopianHealthcare.Api/Controllers/PatientsController.cs - Doctor workflow
src/EthiopianHealthcare.Api/Controllers/DoctorController.cs - Prescription endpoints
src/EthiopianHealthcare.Api/Controllers/PrescriptionsController .cs
Clinical care
- Patient registration
src/EthiopianHealthcare.Infrastructure/Patients/PatientService .cs - Triage
src/EthiopianHealthcare.Infrastructure/Triage/TriageService.cs - Lab requests
src/EthiopianHealthcare.Infrastructure/Lab/LabService.cs - Patient history
src/EthiopianHealthcare.Infrastructure/History/PatientHistoryService .cs - Encounter record
src/EthiopianHealthcare.Domain/Entities/Encounter.cs - Vitals record
src/EthiopianHealthcare.Domain/Entities/VitalsRecord.cs - Lab request entity
src/EthiopianHealthcare.Domain/Entities/LabRequest.cs
Medication
- Pharmacy endpoints
src/EthiopianHealthcare.Api/Controllers/PharmacyController.cs - Pharmacy lookup
src/EthiopianHealthcare.Infrastructure/Pharmacy/PharmacyLookupService.cs - Prescription lifecycle
src/EthiopianHealthcare.Infrastructure/Prescription/PrescriptionService.cs - Prescription record
src/EthiopianHealthcare.domain/Entities/Prescription.cs - Prescription events
src/EthiopianHealthcare.domain/Entities/PrescriptionEvent.cs - Pharmacy suggestions
src/EthiopianHealthcare.domain/Entities/PharmacySuggestion.cs - Expiry worker
src/EthiopianHealthcare.Api/BackgroundJobs/PrescriptionExpiryWorker.cs - Expiry service
src/EthiopianHealthcare.Infrastructure/Prescription/PrescriptionExpiryService.cs
Identity and administration
- Person identity
src/EthiopianHealthcare.domain/Entities/Person.cs - Facility patient number
src/EthiopianHealthcare.domain/Entities/PatientNumber.cs - Healthcare facility
src/EthiopianHealthcare.domain/Entities/Facility.cs - Authentication
src/EthiopianHealthcare.Api/Controllers/AuthController.cs - Fayda identity
src/EthiopianHealthcare.Api/Controllers/FaydaController.cs - Authentication service
src/EthiopianHealthcare.Infrastructure/Auth/AuthService .cs - Fayda service
src/EthiopianHealthcare.Infrastructure/Auth/FaydaAuthService.cs - Administration
src/EthiopianHealthcare.Api/Controllers/AdminController.cs - Facility administration
src/EthiopianHealthcare.Infrastructure/Admin/AdminService.cs - Facility admin endpoints
src/EthiopianHealthcare.Api/Controllers/FacilityAdminController.cs - Facility admin service
src/EthiopianHealthcare.Infrastructure/Admin/FacilityAdminService.cs - Healthcare database
src/EthiopianHealthcare.Infrastructure/HealthcareDbContext .cs
Other components
- Healthcare staff
- Patient
Connections 34
- Patient → Patient endpoints: submits details
- Healthcare staff → Patient endpoints: registers patient
- Patient endpoints → Patient registration: calls
src/EthiopianHealthcare.Api/Controllers/PatientsController.cs - Patient registration → Healthcare database: reads and writes
src/EthiopianHealthcare.Infrastructure/Patients/PatientService .cs - Patient registration → Facility patient number: issues
src/EthiopianHealthcare.Infrastructure/Patients/PatientService .cs - Patient registration → Encounter record: creates
src/EthiopianHealthcare.Infrastructure/Patients/PatientService .cs - Patient registration → Person identity: registers
src/EthiopianHealthcare.Infrastructure/Patients/PatientService .cs - Healthcare staff → Doctor workflow: reviews care
- Doctor workflow → Healthcare database: reads and writes
src/EthiopianHealthcare.Api/Controllers/DoctorController.cs - Doctor workflow → Lab request entity: creates lab requests
src/EthiopianHealthcare.Api/Controllers/DoctorController.cs - Doctor workflow → Encounter record: updates status
src/EthiopianHealthcare.Api/Controllers/DoctorController.cs - Doctor workflow → Vitals record: reads vitals
src/EthiopianHealthcare.Api/Controllers/DoctorController.cs - API startup → Triage: registers service
src/EthiopianHealthcare.Api/Program.cs - API startup → Lab requests: registers service
src/EthiopianHealthcare.Api/Program.cs - API startup → Patient history: registers service
src/EthiopianHealthcare.Api/Program.cs - API startup → Patient registration: registers service
src/EthiopianHealthcare.Api/Program.cs - API startup → Prescription lifecycle: registers service
src/EthiopianHealthcare.Api/Program.cs - API startup → Pharmacy lookup: registers service
src/EthiopianHealthcare.Api/Program.cs - API startup → Authentication service: registers service
src/EthiopianHealthcare.Api/Program.cs - Prescription endpoints → Prescription lifecycle: calls
src/EthiopianHealthcare.Api/Controllers/PrescriptionsController .cs - Prescription lifecycle → Healthcare database: reads and writes
src/EthiopianHealthcare.Infrastructure/Prescription/PrescriptionService.cs - Prescription lifecycle → Prescription record: creates and updates
src/EthiopianHealthcare.Infrastructure/Prescription/PrescriptionService.cs - Prescription lifecycle → Prescription events: records events
src/EthiopianHealthcare.Infrastructure/Prescription/PrescriptionService.cs - Prescription lifecycle → Pharmacy suggestions: creates and reviews
src/EthiopianHealthcare.Infrastructure/Prescription/PrescriptionService.cs - Pharmacy endpoints → Pharmacy lookup: uses lookup
- Pharmacy endpoints → Prescription lifecycle: uses lifecycle
- API startup → Expiry worker: registers worker
src/EthiopianHealthcare.Api/Program.cs - Expiry worker → Expiry service: calls expiry
src/EthiopianHealthcare.Api/BackgroundJobs/PrescriptionExpiryWorker.cs - Authentication → Authentication service: uses authentication
- Fayda identity → Fayda service: uses identity service
- Administration → Facility administration: uses administration
- Facility admin endpoints → Facility admin service: calls
src/EthiopianHealthcare.Api/Controllers/FacilityAdminController.cs - Facility administration → Healthcare database: reads and writes
src/EthiopianHealthcare.Infrastructure/Admin/AdminService.cs - Facility admin service → Healthcare database: reads and writes