How andareomondi/hcms works
HCMS is a modular Django hospital-management system: staff use browser-authorized workflows to register patients, manage encounters and clinical services, and settle charges. Its domain spans outpatient triage, consultation, diagnostics, pharmacy, maternity, surgery and inpatient care, with billing gates and shared patient records. The README documents shared permissions, audit requirements and a PostgreSQL-backed modular monolith. Edges cite the README or indexed source references; several feature areas are represented from documentation and the tree rather than inspected implementation, so their internal calls are not inferred.
Main entry points: billing/services.py Charges and payments · triage_queue/services.py Triage and encounters · views.py Doctor consultation · access/services.py Browser authorization
Components 20
Access and governance
- Browser authorization
access/services.py - Permissions and navigation
hospital_system/permissions.py - Audit actions
dashboard/audit_actions.py
Patient and encounter
- Patient records
core_patients/models.py - Patient workflows
core_patients/views.py - Triage and encounters
triage_queue/services.py
Clinical services
- Doctor consultation
doctors_portal/views.py - Laboratory
lab/services.py - Radiology
radiology/services.py - Pharmacy and stock
pharmacy/services.py - Maternity care
maternity/services.py - Surgical care
surgery/services.py
Hospital operations
- Ward admissions
wards/services.py - Staff duty
duty/services.py - Staff notifications
notifications/services.py
Billing and reporting
- Charges and payments
billing/services.py - Refunds
billing/refunds.py - Dashboard and exports
dashboard/views.py
Other components
- Hospital staff
- PostgreSQL
Connections 31
- Hospital staff → Browser authorization: requests access
README.md - Browser authorization → Hospital staff: blocks unapproved
README.md - Hospital staff → Permissions and navigation: uses capabilities
README.md - Hospital staff → Patient workflows: uses
- Patient workflows → Patient records: manages records
- Patient records → Triage and encounters: anchors visits
- Triage and encounters → Charges and payments: adds visit fees
triage_queue/services.py - Triage and encounters → Staff notifications: notifies staff
triage_queue/services.py - Hospital staff → Doctor consultation: consults
- Doctor consultation → Laboratory: orders tests
- Laboratory → Charges and payments: adds test charges
lab/services.py - Doctor consultation → Radiology: requests scans
- Doctor consultation → Pharmacy and stock: orders medicines
- Pharmacy and stock → Charges and payments: uses billing services
pharmacy/services.py - Hospital staff → Maternity care: records maternity care
- Maternity care → Charges and payments: uses billing services
maternity/services.py - Maternity care → Pharmacy and stock: uses pharmacy services
maternity/services.py - Hospital staff → Surgical care: manages surgical cases
- Surgical care → Charges and payments: uses billing services
surgery/services.py - Hospital staff → Ward admissions: manages admissions
- Ward admissions → Staff notifications: notifies doctors
wards/services.py - Ward admissions → Triage and encounters: uses queue services
wards/services.py - Hospital staff → Staff duty: records duty
- Staff notifications → Staff duty: finds on-duty staff
notifications/services.py - Hospital staff → Charges and payments: records payments
- Refunds → Charges and payments: uses billing services
billing/refunds.py - Hospital staff → Dashboard and exports: views reports
- Browser authorization → Audit actions: records security events
access/services.py - Patient records → PostgreSQL: persists
README.md - Triage and encounters → PostgreSQL: persists
README.md - Charges and payments → PostgreSQL: persists
README.md