Category: β Good Health and Well-Being
The Philippines has no shortage of health dataβit has a shortage of the right data at the right time. The current approach to outbreak detection is reactive, seeing outbreaks only after hospital admissions spikeβwhen it's already too late for prevention. Communities themselvesβthe people who notice the first fever, the first child with diarrhea, the first neighbor who looks sickβhave no structured way to share what they see.
Current System Inefficiencies:
- Manual Reporting Delays - Paper-based reports take weeks to process and reach health authorities
- Health Center Bottlenecks - Long waiting times during outbreak investigations while cases multiply
- Repetitive Data Collection - BHWs repeatedly ask the same questions during health visits, wasting valuable time
- Information Silos - Resident health histories scattered across different systems with no centralized access
- Delayed Response - Critical time lost between symptom onset and official health response
HealthWatch builds a community intelligence network that trains everyday Filipinosβsari-sari store owners, tricycle drivers, market vendors, traditional hilots, and religious leadersβto become the first line of outbreak detection in their neighborhoods. Each resident receives a unique QR code that health workers, partner clinics, and authorized healthcare providers can scan to instantly access complete health profiles, self-reported symptoms, verified health trends, and real-time pattern analysisβtransforming weeks of manual processing into seconds of digital intelligence with built-in safeguards that separate genuine signals from noise and misinformation.
Digital QR Health Passport: When residents visit potential healthcare partners (clinics, hospitals, pharmacies), their QR code provides instant access to all self-reported symptoms, verified health trends, and pattern analysisβeliminating repetitive questioning and enabling faster, more informed medical responses based on comprehensive health data rather than starting from scratch each visit.
Primary Users (Community Health Watchers):
- Sari-Sari Store Owners & Market Vendors
- Tricycle Drivers & PUV Operators
- Barangay Tanods & Leaders
- Religious Leaders & Church Workers
- Traditional Healers & Hilots
- Barangay Health Workers
Beneficiaries:
- Entire Communities (faster detection = faster response)
- Vulnerable Populations (elderly, children, pregnant women, PWDs)
- Municipal & Provincial Health Officers
- Department of Health & Epidemiologists
- Health Watcher Management - Approve/reject community watcher applications with document verification
- Real-time Observations - Live monitoring with 7-day trend analysis and symptom radar charts
- QR Code Scanner - Instant resident lookup with live health data, symptom history, and trend visualization
- Interactive Mapping - Real-time outbreak visualization with geographic clustering
- Outbreak Pattern Recognition - AI-powered detection of disease patterns and anomalies
- Community Announcements - Broadcast health advisories and alerts to residents
- Multi-Step Registration Process
- Step 1: Personal verification (name, email, contact, region/municipality/barangay)
- Step 2: Document verification (valid ID upload + selfie verification)
- Step 3: Credential finalization and approval waiting status
- Mobile App Dashboard
- Home screen with health summary and status overview
- History section for tracking reported symptoms
- Plus icon for quick symptom reporting (self-report vs observed)
- Profile with unique QR code for healthcare provider scanning
- Real-Time Information Feed
- Live announcements and outbreak alerts
- BHW directories with hotlines and emergency contacts
- Push notifications for health advisories
- Community Intelligence
- Interactive map showing nearby verified reports (latest only)
- Anonymous community symptom visualization
- Geographic clustering of health observations
- Observation Reporting - "What do you see?" approach vs. direct symptom reporting
- Two-Way Communication - Receive acknowledgments and health advisories
- Future Integration - Community forums for health discussions
- Live Data Sync - Instant updates across all dashboards and mobile devices
- 3-Watcher Rule - Multi-source validation before outbreak alerts
- AI Trust Scoring - Validates watcher reliability and filters spam
- Spatial Clustering - DBSCAN algorithm for geographic pattern detection
- Predictive Analytics - Early warning system for potential outbreaks
- Progressive Web App (PWA) - Works offline, low-bandwidth optimized
- Audio Feedback - Beep sounds and text-to-speech for accessibility
- Real-time Notifications - Instant alerts for new cases and announcements
- Cross-Platform - Seamless experience across desktop, tablet, and mobile
- π± Mobile-First PWA - Works offline, low-bandwidth optimized
- π AI-Powered Trust Scoring - Validates watcher reliability (0-100 score)
- β 3-Watcher Rule - Multi-source validation before alerts
- πΊοΈ Observation Heatmaps - Real-time geographic clustering
- π Two-Way Feedback Loop - Communities receive acknowledgments and advisories
- π‘οΈ Multi-Layered Spam Prevention - Rate limiting, behavior monitoring, AI filtering
- π― Proximal Intelligence - Catches outbreaks at pre-clinic stage
- π Incentive System - Load credits, recognition badges, community rankings
- π³ Subscription Management - Track account and payment status separately
- π¨ Enhanced Toast Notifications - Progress bar, auto-close, smooth animations
Frontend:
- React 18.3 + TypeScript 5.6
- Vite 6.0
- Tailwind CSS + Framer Motion
- Progressive Web App (PWA)
- Axios for HTTP requests
Backend & Database:
- Firebase (Auth, Firestore, Cloud Functions, Hosting)
- Real-time observation processing
- Multi-tenant architecture for LGUs
AI/ML Components:
- Trust Score Engine
- DBSCAN Spatial Clustering
- NLP for observation categorization (GPT API)
- Anomaly Detection & Spam Classification
- Predictive Correlation Models
Integrations:
- Google Maps API (observation heatmaps)
- Twilio API (SMS alerts & feedback)
- EmailJS (health officer notifications)
- Telecom partnerships (load credit incentives)
HealthWatch/
βββ src/ # Frontend application
β βββ components/ # React components
β β βββ ui/ # Base UI components (toast, dialog, button, etc.)
β β βββ auth/ # Authentication components (LoginDialog)
β β βββ sections/ # Page sections (HeroSection)
β βββ pages/ # Application pages
β β βββ admin/ # Admin dashboard pages
β β β βββ AdminDashboard.tsx
β β β βββ BHWs.tsx # BHW management with subscription status
β β β βββ Municipalities.tsx
β β β βββ Regions.tsx
β β β βββ Residentss.tsx
β β β βββ Map.tsx
β β βββ bhw/ # BHW dashboard pages
β β β βββ BhwDashboard.tsx
β β β βββ BhwResidents.tsx
β β βββ public/ # Public pages
β β βββ LandingPage.tsx
β β βββ RegisterPage.tsx # Registration with subscription status
β β βββ PricingPage.tsx
β βββ layouts/ # Layout components
β β βββ admin/ # Admin layout
β β βββ bhw/ # BHW layout
β β βββ municipal/ # Municipal layout
β βββ contexts/ # React contexts
β β βββ AuthContext.tsx # Authentication with Firestore role fetching
β βββ services/ # Service integrations
β β βββ openAiService/ # AI categorization (Axios-based)
β β βββ googleMapService/ # Maps integration
β β βββ cloudinaryService/ # Image upload (Axios-based)
β βββ hooks/ # Custom React hooks
β β βββ use-toast.ts # Toast notification hook
β β βββ use-mobile.ts
β βββ router/ # React Router configuration
β β βββ index.tsx # Routes with role-based protection
β βββ lib/ # Utility functions
β β βββ utils.ts # Helper functions (cn utility)
β β βββ firebase.ts # Firebase client config
β βββ data/ # Static data
β β βββ regions.ts # Philippine regions data
β βββ assets/ # Static assets (images, fonts, sounds)
β
βββ backend/ # Backend services
β βββ webhooks/ # Webhook handlers
β β βββ observation-webhook.ts # Observation processing
β β βββ sms-webhook.ts # SMS notifications
β β βββ auth-webhook.ts # Authentication & registration
β βββ services/ # Backend services
β β βββ email.ts # Email notifications (OTP, approval, etc.)
β βββ middleware/ # Express middleware
β β βββ auth.ts # Authentication middleware
β β βββ rateLimit.ts # Rate limiting
β β βββ validation.ts # Input validation
β β βββ errorHandler.ts # Error handling
β βββ config/ # Configuration
β β βββ firebase-admin.ts # Firebase Admin SDK
β βββ rag/ # RAG processing
β β βββ prepare-rag.ts # Process textbooks from Supabase
β β βββ query-rag.ts # Interactive query tool
β β βββ supabase-schema.sql # Database schema
β βββ server.ts # Main webhook server
β βββ package.json # Backend dependencies (pnpm)
β
βββ rag/ # RAG data storage
β βββ health-guidelines/ # DOH/WHO guidelines
β βββ disease-patterns/ # Historical outbreak data
β βββ symptoms-database/ # Verified symptoms
β βββ medication-reference/ # Common medications
β βββ training-materials/ # Healthwatch training
β βββ advisories/ # Health advisories
β βββ RAG_DOCUMENTATION.md # RAG system guide
β
βββ .agent/ # AI agent documentation
β βββ architecture/ # System architecture docs
β βββ features/ # Feature specifications
β βββ ai-ml/ # AI/ML documentation
β βββ api/ # API integration docs
β
βββ .claude/ # Claude AI integration
β βββ project-context.md # Project overview
β βββ prompts.md # Prompt library
β βββ commit-style.txt # Git commit style guide
β βββ config.json # Project configuration
β
βββ .github/ # GitHub Actions
β βββ workflows/ # CI/CD workflows (disabled)
β βββ pr-validation.yml # PR validation
β βββ ci-cd.yml # Deployment pipeline
β βββ code-quality.yml # Code quality checks
β
βββ public/ # Public assets
βββ firestore.rules # Firestore security rules
βββ storage.rules # Firebase storage rules
βββ firebase.json # Firebase configuration
βββ .env.example # Environment variables template
βββ package.json # Frontend dependencies (pnpm)
# Install dependencies
pnpm install
# Run development server
pnpm run dev
# Build for production
pnpm run build# Install dependencies
cd backend
pnpm install
# Run webhook server
pnpm run dev
# Prepare RAG data
pnpm run rag:prepareInstead of asking communities to report symptoms (which feels like surveillance), HealthWatch asks them to report what they observe (which feels like community participation):
- More people buying paracetamol than usual?
- Several children absent from community gatherings?
- Neighbors mentioning the same illness?
- Families boiling water after floods?
- Taps Informal Observers - First system designed for sari-sari stores, tricycle drivers, market vendors
- Observation-Based - "What do you see?" not "Who is sick?" (reduces privacy concerns)
- Incentivized Participation - Real rewards tied to verified accuracy
- Multi-Layered Spam Prevention - Progressive onboarding, rate limiting, AI filtering
- 3-Sentinel Rule - Multiple unrelated sources required before alerts
- Two-Way Communication - Closes the loop with communities
- Proximal Intelligence - Catches outbreaks at pre-clinic stage
- Community Empowerment - Active participants, not passive data sources
Contributions are welcome! Please feel free to submit a Pull Request.
