How ethermorphcorp-cloud/arich_clinic works
ARICH CLINIC is a Google Apps Script clinic-management web app. Staff prepare dispensing records, create patient/OPD details, queue patients for a doctor, record treatment, and collect payment; the backend manages stock effects and persists clinic data. Admin capabilities include inventory and purchasing, pricing and commissions, reports/dashboard, settings, and audit. The README documents client/server calls and page roles; sampled backend excerpts confirm selected auth, stock, dashboard, receipt, and Drive behavior, but most implementation detail is unsampled.
Main entry points: index.html Clinic SPA · Code.js OPD treatment · Line.html Daily LINE summary · StockView.html Mobile stock view
Components 23
Clinic interface
- Clinic SPA
gas/index.html - Mobile stock view
gas/StockView.html
Patient care
- Dispensing queue
gas/Code.js - Patient records
gas/Code.js - OPD treatment
gas/Code.js - Visit queue
gas/Code.js - Payment and receipts
gas/Code.js - OPD print form
gas/OpdSheet.html - Receipt page
gas/Receipt.html
Clinic administration
- Inventory management
gas/Code.js - Purchasing and expenses
gas/Code.js - Group pricing
gas/Code.js - Commission reports
gas/Code.js - Dashboard and reports
gas/Code.js - Clinic settings
gas/Code.js
Backend and storage
- Authentication and roles
gas/Code.js - Audit log
gas/Code.js - Default clinic logo
gas/Logo.js
Documents and integrations
- Google Sheets
- Google Drive
- LINE messaging
- Daily LINE summary
gas/Line.html
Other components
- Clinic staff
Connections 28
- Clinic staff → Clinic SPA: uses
README.md - Clinic staff → Mobile stock view: views stock
README.md - Clinic SPA → Authentication and roles: authenticates
README.md - Clinic SPA → Dispensing queue: calls server
README.md - Dispensing queue → Patient records: adds patient
README.md - Dispensing queue → OPD treatment: creates OPD
README.md - OPD treatment → Visit queue: queues visit
README.md - Visit queue → OPD treatment: records treatment
README.md - OPD treatment → Payment and receipts: awaits payment
README.md - OPD treatment → OPD print form: prints OPD
README.md - Payment and receipts → Receipt page: issues receipt
gas/Code.js - Clinic SPA → Inventory management: calls server
README.md - Clinic SPA → Purchasing and expenses: calls server
README.md - Clinic SPA → Group pricing: calls server
README.md - Dashboard and reports → Commission reports: reports commissions
README.md - Clinic SPA → Dashboard and reports: loads data
README.md - Clinic settings → Default clinic logo: uses fallback
README.md - Clinic SPA → Clinic settings: calls server
README.md - Authentication and roles → Google Sheets: reads users
- Dispensing queue → Google Sheets: updates records
- OPD treatment → Google Sheets: stores treatment
- Payment and receipts → Google Sheets: stores payment
- Inventory management → Google Sheets: updates stock
- Purchasing and expenses → Google Sheets: stores orders
- Dashboard and reports → Google Sheets: aggregates data
gas/Code.js - OPD treatment → Google Drive: uploads photos
gas/Code.js - Daily LINE summary → LINE messaging: formats summary
README.md - Clinic SPA → LINE messaging: sends summary