How allenmoronivillegas-glitch/ebhealth works
eBHealth is a browser-based barangay health-center records and medicine-inventory system. Staff use its web interface to sign in, manage patient and clinical records, track medicine stock, and review or export activity summaries; PHP API actions enforce session and role checks and access shared Supabase PostgreSQL storage. The API is a large monolith, so domain nodes share its implementation path rather than implying separate services. The JavaScript is linked by the page, but its API calls were not excerpted; that connection is shown as unverified.
Main entry points: index.php API actions · database.php PDO connection · eBHealth.php Staff workspace · app.js Interactive client
Components 17
Web interface
- Staff workspace
eBHealth.php - Interactive client
assets/app.js
Application API
- API actions
api/index.php - Sign-in and staff
api/index.php - Patient records
api/index.php - Consultations
api/index.php - Health records
api/index.php - Medicine inventory
api/index.php - Reports and exports
api/index.php - Staff administration
api/index.php
Persistence
- PDO connection
config/database.php - Relational schema
database/schema.sql - Database security
database/application_security.sql - Supabase PostgreSQL
Health and audit
- Audit events
api/index.php - Connection check
api/health.php
Other components
- Health staff
Connections 16
- Health staff → Staff workspace: uses
README.md - Staff workspace → Interactive client: loads
eBHealth.php - Interactive client → API actions: requests
- API actions → Sign-in and staff: dispatches
api/index.php - API actions → Patient records: dispatches
api/index.php - API actions → Consultations: dispatches
api/index.php - API actions → Health records: dispatches
api/index.php - API actions → Medicine inventory: dispatches
api/index.php - API actions → Reports and exports: dispatches
api/index.php - API actions → Staff administration: dispatches
api/index.php - API actions → Audit events: records
api/index.php - API actions → PDO connection: connects via
api/index.php - Connection check → PDO connection: connects via
api/health.php - PDO connection → Supabase PostgreSQL: opens PDO
config/database.php - Relational schema → Supabase PostgreSQL: defines tables
- Database security → Supabase PostgreSQL: documents policies