How lgm1213/appideaemhr works
This is a multi-tenant electronic medical record application for clinics. A signed-in clinic user enters through the tenant-scoped web interface, works with patient records and clinical workflows, and can export encounter billing documents. The routes also expose scheduling, messaging, imaging, administration, and discrete clinical data. The graph emphasizes those documented product areas; sampled code confirms tenant authorization and encounter exports, while several other subsystems are represented from route declarations only. The README provides no additional product detail, and unsampled controller behavior is not inferred.
Main entry points: encounters_controller.rb Encounter workflow · application_controller.rb Tenant access · patients_controller.rb Patient records · imaging_studies_controller.rb Imaging studies
Components 19
Access and administration
- Tenant access
app/controllers/application_controller.rb - Clinic administration
app/controllers/admin
Patient care
- Patient records
app/controllers/patients_controller.rb - Encounter workflow
app/controllers/encounters_controller.rb - Clinical data
app/controllers - Imaging studies
app/controllers/imaging_studies_controller.rb - DICOM viewer
app/javascript/controllers/dicom_viewer_controller.js - Domain models
app/models - Application database
db/schema.rb - Document upload
app/services/document_upload_service.rb
Clinic operations
- Appointments
app/controllers/appointments_controller.rb - Messaging
app/controllers/messages_controller.rb - CPT code search
app/javascript/controllers/cpt_search_controller.js - Facilities and providers
app/controllers/facilities_controller.rb
Clinical exports
- Superbill export
app/services/superbill_generator.rb - CMS-1500 export
app/services/cms1500_generator.rb - CCDA export
app/services/ccda_generator.rb - Prescription export
app/services/prescription_generator.rb
Other components
- Clinic user
Connections 18
- Clinic user → Tenant access: requests access
- Clinic user → Clinic administration: manages clinic
- Clinic user → Patient records: opens chart
- Clinic user → Encounter workflow: records encounter
- Clinic user → Clinical data: updates clinical data
- Clinic user → Imaging studies: opens imaging
- Clinic user → Appointments: manages schedule
- Clinic user → Messaging: sends messages
- Clinic user → Facilities and providers: manages clinic resources
- Clinic user → CPT code search: searches codes
- Tenant access → Domain models: authorizes organization
app/controllers/application_controller.rb - Encounter workflow → Domain models: queries and saves
app/controllers/encounters_controller.rb - Encounter workflow → Superbill export: generates PDF
app/controllers/encounters_controller.rb - Encounter workflow → CMS-1500 export: generates claim
app/controllers/encounters_controller.rb - Patient records → CCDA export: exports CCDA
- Clinic user → Prescription export: prints medication
- Imaging studies → DICOM viewer: presents study
- Clinic user → Document upload: uploads document