How elgatosaez/bettersiryc works
Better SIRYC is a Chromium extension that enhances SIRYC for clinical work. Its main workflows are updating tab titles with patient/room/bed details and managing clinical templates in the extension settings, then inserting a matching template into a compatible Evolution or Epicrisis field. The popup summarizes saved templates and opens settings. The excerpts show the content and settings scripts using a shared template API and Chrome local storage; the README documents the user-facing flows. Extension wiring beyond those excerpts is not mapped.
Main entry points: options.js Template manager · popup.js Extension popup · content-script.js Clinical template insertion · templates.js Template definitions and migration
Components 10
Extension UI
- Template manager
options.js - Extension popup
popup.js - Settings page
options.html - Popup page
popup.html
Clinical enhancements
- Contextual tab titles
content-script.js - Clinical template insertion
content-script.js
Template domain
- Template definitions and migration
templates.js
Browser services
- Chrome local storage
Other components
- Clinician
- SIRYC
Connections 15
- Clinician → Extension popup: opens
README.md - Clinician → Template manager: manages templates
README.md - Clinician → SIRYC: uses
README.md - Extension popup → Chrome local storage: reads templates
popup.js - Extension popup → Template manager: opens settings
popup.js - Template manager → Chrome local storage: reads and writes
options.js - Template manager → Template definitions and migration: uses definitions and migration
options.js - Clinical template insertion → Chrome local storage: loads templates
content-script.js - Clinical template insertion → Template definitions and migration: uses definitions and migration
content-script.js - SIRYC → Contextual tab titles: provides patient context
README.md - Contextual tab titles → SIRYC: updates tab title
content-script.js - SIRYC → Clinical template insertion: hosts compatible fields
README.md - Clinical template insertion → SIRYC: inserts selected template
content-script.js - Template manager → Settings page: uses page
- Extension popup → Popup page: uses page