How opensource-emr/hospital-management-emr works
Danphe EMR is a web-based hospital management system spanning patient care, hospital operations, and finance. Its principal user workflow begins with patient registration and appointment or visit handling, continues through clinical documentation, orders and diagnostics, and can lead to admission, discharge, and billing. Accounting, inventory, pharmacy, reporting, and administrative capabilities form important operational branches. The README documents the breadth of modules; the sampled controllers show direct database-context usage, but do not establish all cross-module calls, so uncertain wiring is omitted.
Main entry points: DanpheEMR EMR web app · AdmissionController.cs Admission discharge · LabController.cs Laboratory · WardSupplyController.cs Ward supply
Components 21
Patient Care
- Patient records
Code/Components/DanpheEMR.DalLayer/PatientDbContext.cs - Appointments visits
Code/Components/DanpheEMR.ServerModel/AppointmentModels - Clinical care
Code/Components/DanpheEMR.ServerModel/ClinicalModels - Admission discharge
Code/Websites/DanpheEMR/Controllers/Admission/AdmissionController.cs - Emergency care
Code/Websites/DanpheEMR/Controllers/Emergency/EmergencyController.cs - Medical records
Code/Websites/DanpheEMR/Controllers/MedicalRecords/MedicalRecordsController.cs - Laboratory
Code/Websites/DanpheEMR/Controllers/Lab/LabController.cs - Radiology imaging
Code/Websites/DanpheEMR/Controllers/Radiology/RadiologyController.cs
Hospital Operations
- Inventory procurement
Code/Websites/DanpheEMR/Controllers/Inventory/InventoryController.cs - Pharmacy
Code/Websites/DanpheEMR/Controllers/Pharmacy/PharmacyController.cs - Ward supply
Code/Websites/DanpheEMR/Controllers/WardSupply/WardSupplyController.cs - Reporting dashboards
Code/Components/DanpheEMR.DalLayer/ReportingDbContext.cs
Billing Finance
- Billing
Code/Components/DanpheEMR.DalLayer/BillingDbContext.cs - Billing configuration
Code/Websites/DanpheEMR/Controllers/Settings/BillSettingsController.cs - Accounting
Code/Websites/DanpheEMR/Controllers/Accounting/AccountingController.cs - Accounting store
Code/Components/DanpheEMR.DalLayer/AccountingDbContext.cs
Application Platform
- EMR web app
Code/Websites/DanpheEMR - Access control
Code/Components/DanpheEMR.Security/RBAC - IRD billing sync
Code/Components/DanpheEMR.Jobs/IRDNepal/PostToIRD.cs
Other components
- Hospital user
- IRD service
Connections 21
- Hospital user → EMR web app: uses
- EMR web app → Access control: checks access
- EMR web app → Patient records: handles patient data
- EMR web app → Appointments visits: supports visits
- EMR web app → Clinical care: supports care
- EMR web app → Admission discharge: routes requests
- EMR web app → Emergency care: routes requests
- EMR web app → Medical records: routes requests
- EMR web app → Laboratory: routes requests
- EMR web app → Radiology imaging: routes requests
- EMR web app → Inventory procurement: routes requests
- EMR web app → Pharmacy: routes requests
- EMR web app → Ward supply: routes requests
- EMR web app → Billing: handles billing data
- EMR web app → Billing configuration: routes requests
- EMR web app → Accounting: routes requests
- Admission discharge → Billing: uses context
- Laboratory → Reporting dashboards: queries reports
- Ward supply → Inventory procurement: transfers stock
- Accounting → Accounting store: uses context
- IRD billing sync → IRD service: posts data