How cheese-cracker/emrlite works
EMRLite is a hospital EMR focused on patient management and billing, with staff login and appointment support. The main workflow is staff authentication, patient or appointment selection, choosing billable items, creating a bill, and viewing its history or final details. Patient records, appointments, bill items, and bills are represented in the Django data models. The excerpts show routing, authentication, bill creation, and selected page rendering; other feature links are documented in the README, so their internal wiring is not inferred.
Main entry points: views.py Request handlers · models.py EMR data models · Central/urls.py Root routes · main/urls.py Application routes
Components 17
Web workflow
- Root routes
Central/urls.py - Application routes
main/urls.py - Request handlers
main/views.py - Login page
main/templates/main/login.html
Patient and appointments
- Patient portal
main/templates/main/patientselector.html - Appointment list
main/templates/main/appointselect.html - Clinical records
main/models.py
Billing
- Bill items
main/models.py - Billing cart
main/templates/main/cart.html - Bill generation
main/views.py - Bill history
main/templates/main/billlist.html - Final bill
main/templates/main/finalbill.html
Data and administration
- EMR data models
main/models.py - Django authentication
- Admin and import/export
main/admin.py - SQLite database
Other components
- Hospital staff
Connections 20
- Hospital staff → Root routes: opens system
README.md - Root routes → Request handlers: routes home
Central/urls.py - Root routes → Application routes: includes routes
Central/urls.py - Application routes → Request handlers: dispatches requests
main/urls.py - Request handlers → Django authentication: authenticates staff
main/views.py - Request handlers → EMR data models: reads and writes
main/views.py - Request handlers → Login page: renders login
main/views.py - Request handlers → Billing cart: renders cart
main/views.py - Request handlers → Final bill: renders bill
main/views.py - Hospital staff → Patient portal: manages patients
README.md - Hospital staff → Appointment list: uses appointments
README.md - Hospital staff → Bill history: reviews bills
- Request handlers → Bill generation: handles requests
main/urls.py - Bill generation → EMR data models: creates bill
main/views.py - EMR data models → Clinical records: stores patient and appointment data
main/models.py - EMR data models → Bill items: stores billable items
main/models.py - Admin and import/export → EMR data models: registers models
main/admin.py - SQLite database → EMR data models: configured for persistence
- Hospital staff → Billing cart: selects bill items
README.md - Hospital staff → Final bill: views generated bill
README.md