How sienta01/simple-emr works
Simple EMR is a role-based clinic record system. Staff sign in, register or find a patient, place visits in a queue, and clinicians record SOAP notes, diagnoses and procedures; patient history, ancillary results and monthly reports extend that workflow. The graph includes the shared model, permission, form and audit layers, plus documented phone-upload and patient-card capabilities. Several views and integrations are unsampled, so their links are included only where the README or source index establishes them.
Main entry points: models.py EMR data store · visits.py SOAP and procedures · patients.py Patient records · penunjang.py Ancillary results
Components 21
Access and Roles
- Sign-in
core/views/auth.py - Role permissions
core/permissions.py - User management
core/views/users.py
Patient and Queue
- Patient records
core/views/patients.py - Visit registration
core/views/visits.py - Queue context
core/views/common.py - Patient card and scan
core/utils.py
Clinical Records
- SOAP and procedures
core/views/visits.py - Patient history
core/views/patients.py
Results and Reports
- Ancillary results
core/views/penunjang.py - Phone upload
core/views/mobile.py - DM HT reports
core/views/laporan.py - Report calculations
core/reports.py
Shared Core
- EMR data store
core/models.py - Clinical forms
core/forms.py - Image processing
core/imaging.py - Audit trail
core/audit.py - MedPP import
core/management/commands/import_medpp.py - DBF reader
core/dbf.py - ICD-10 loader
core/management/commands/load_icd10.py
Other components
- Clinic staff
Connections 27
- Clinic staff → Sign-in: signs in
- Sign-in → Role permissions: checks access
core/views/auth.py - Clinic staff → Patient records: finds or edits
- Patient records → EMR data store: reads and updates
core/views/patients.py - Clinic staff → Visit registration: registers visit
- Visit registration → EMR data store: creates visit
core/views/visits.py - Visit registration → Queue context: builds queue
core/views/visits.py - Queue context → EMR data store: queries visits
core/views/common.py - Clinic staff → SOAP and procedures: records examination
- SOAP and procedures → EMR data store: saves clinical data
core/views/visits.py - SOAP and procedures → Clinical forms: validates codes
core/views/visits.py - Clinic staff → Patient history: reviews history
- Patient history → EMR data store: reads patient visits
core/views/patients.py - Clinic staff → Ancillary results: uploads results
- Ancillary results → Image processing: processes files
core/views/penunjang.py - Ancillary results → EMR data store: stores result metadata
core/views/penunjang.py - Clinic staff → Phone upload: uploads by phone
- Clinic staff → DM HT reports: requests report
- DM HT reports → Report calculations: builds report
core/views/laporan.py - Report calculations → EMR data store: queries visits
core/reports.py - SOAP and procedures → Audit trail: records save
core/views/visits.py - Patient records → Audit trail: records changes
core/views/patients.py - Clinic staff → Patient card and scan: prints or scans
- MedPP import → DBF reader: reads legacy files
core/management/commands/import_medpp.py - MedPP import → EMR data store: imports records
core/management/commands/import_medpp.py - ICD-10 loader → EMR data store: loads code data
core/management/commands/load_icd10.py - User management → Role permissions: assigns roles