How razeflow/deped-drrmis works
DRRMIS is a division-wide disaster preparedness and incident-management platform for DepEd Abra schools. School and division users move through preparedness, event response and damage reporting, review, and recovery; division teams also coordinate assistance and produce reports. Offline submission and external summary access are distinct supporting capabilities. The sampled source confirms the transition gateway, offline submission dispatch, and report reads; several other connections below reflect documented product capabilities and route/module responsibilities rather than inspected implementation details.
Main entry points: server.ts Supabase data store · summary/route.ts External summary API · page.tsx Preparedness · submit/route.ts Offline submission
Components 22
Registry and access
- School workspace
app/(school)/school/page.tsx - Division workspace
app/(app)/overview/page.tsx - School registry
app/(app)/schools/page.tsx - Maps
app/(app)/map/page.tsx
Preparedness
- Preparedness
app/(school)/school/preparedness/page.tsx - Preparedness records
lib/drrm/preparedness.ts
Incident response
- Events
app/(app)/events/page.tsx - School incident response
app/(school)/school/incidents/page.tsx - Impact records
app/(app)/impacts/[id]/page.tsx - Offline submission
app/api/offline/submit/route.ts - Submission handlers
lib/drrm/submit-core.ts - Validated transitions
app/api/transition/route.ts
Recovery and reporting
- Recovery tracking
app/(school)/school/recovery/page.tsx - Recovery verification
lib/drrm/recovery-verification.ts - Reports
app/(app)/reports/page.tsx - Impact report export
app/api/impacts/[id]/docx/route.ts
Platform services
- Write gateway
lib/drrm/gateway.ts - External summary API
app/api/v1/summary/route.ts - Supabase data store
lib/supabase/server.ts
Other components
- School user
- Division user
- Regional or LGU consumer
Connections 21
- School user → School workspace: uses
- Division user → Division workspace: uses
- Division user → School registry: manages
- Division user → Maps: views
- School user → Preparedness: records readiness
- Preparedness → Preparedness records: uses
- Division user → Events: coordinates
- School user → School incident response: reports response
- School user → Offline submission: submits queued report
- Offline submission → Submission handlers: dispatches submission
- Submission handlers → Supabase data store: writes records
- Validated transitions → Write gateway: calls
- Write gateway → Supabase data store: writes
- Division user → Impact records: reviews
- School user → Recovery tracking: updates recovery
- Recovery tracking → Recovery verification: uses
- Division user → Reports: generates reports
- Impact report export → Supabase data store: reads impact data
- Division user → External summary API: issues API access
- Regional or LGU consumer → External summary API: requests totals
- External summary API → Supabase data store: reads aggregates