How dashing-dev/swarnabindu_care works
Swarnabindu is a Django hospital application for managing patient registration, manually scheduled vaccination sessions, vaccination records, and official reports. The main workflow is staff sign-in, patient lookup or registration, selection of a real session, recording vitals and vaccination status, then viewing patient history or session reports. Nepali-calendar conversion and age-at-vaccination calculations support those stages. The graph reflects the README and shown call sites; unsampled implementation details and database wiring are left out or marked unverified.
Main entry points: views.py Request handlers · models.py Patient records · check_system.py System health check · nepali_date.py BS date and age
Components 17
Hospital workflow
- Request handlers
hospital/views.py - Form validation
hospital/forms.py - Duplicate detection
hospital/services.py
Clinical domain
- Patient records
hospital/models.py - Vaccination sessions
hospital/models.py - Vaccination records
hospital/models.py - BS date and age
hospital/nepali_date.py - Application database
Administration and oversight
- Session reporting
hospital/reports.py - Role enforcement
hospital/permissions.py - Audit history
hospital/models.py - Hospital settings
hospital/models.py - Database backup
hospital/management/commands/backup_database.py - System health check
hospital/management/commands/check_system.py
Web interface
- URL routing
hospital/urls.py - Staff screens
templates
Other components
- Hospital staff
Connections 24
- Hospital staff → URL routing: requests pages
- URL routing → Request handlers: routes requests
hospital/urls.py - Request handlers → Staff screens: renders screens
hospital/views.py - Request handlers → Form validation: validates input
hospital/views.py - Request handlers → Patient records: queries patients
hospital/views.py - Request handlers → Vaccination sessions: queries sessions
hospital/views.py - Request handlers → Vaccination records: saves records
hospital/views.py - Form validation → BS date and age: parses BS dates
hospital/forms.py - Patient records → BS date and age: calculates age
hospital/models.py - Vaccination records → BS date and age: stores age snapshot
hospital/models.py - Request handlers → Duplicate detection: checks duplicates
hospital/views.py - Duplicate detection → Patient records: finds matches
hospital/services.py - Request handlers → Session reporting: generates summaries
hospital/views.py - Session reporting → Vaccination records: filters records
hospital/reports.py - Request handlers → Role enforcement: enforces roles
hospital/views.py - Request handlers → Audit history: reads audit history
hospital/views.py - Database backup → Audit history: logs backup
hospital/management/commands/backup_database.py - Database backup → Application database: exports data
hospital/management/commands/backup_database.py - System health check → Patient records: counts patients
hospital/management/commands/check_system.py - System health check → Vaccination sessions: counts sessions
hospital/management/commands/check_system.py - System health check → Vaccination records: counts records
hospital/management/commands/check_system.py - Patient records → Application database: persists entities
- Vaccination sessions → Application database: persists entities
- Vaccination records → Application database: persists entities