How cou-ai-hackathon26/team_3zeros works
Medi Waypoint is a Bangla/English triage and closed-loop referral service for patients, CHWs, clinicians, and receiving facilities. The main path runs from voice or text symptom intake through deterministic emergency checks and AI-supported triage, then into a clinician report, consent, referral, receiving-facility progress, and returned outcome. Offline encrypted actions support referral work through connectivity loss. The graph preserves documented knowledge-base, access, scheduling, and interoperability capabilities. Evidence is limited to the README, source index references, and shown excerpts; unverified links are omitted.
Main entry points: referrals/services.py Referral lifecycle · client.ts API client · triage/services.py Triage sessions · knowledge Knowledge search and ingestion
Components 23
Access and experience
- Role-based web app
frontend/src/app - Voice and text client
frontend/src/voice/controller.ts - API client
frontend/src/api/client.ts - Encrypted offline queue
frontend/src/offline - Accounts and access
backend/apps/accounts
Triage and knowledge
- Triage sessions
backend/apps/triage/services.py - Red-flag rules
backend/apps/triage/rules/engine.py - AI triage and dialogue
backend/apps/triage/dialogue.py - Knowledge search and ingestion
backend/apps/knowledge - Clinical report analysis
backend/apps/ai/report_analysis.py
Care coordination
- Patient consent
backend/apps/consent/services.py - Referral lifecycle
backend/apps/referrals/services.py - Emergency intake
backend/apps/emergency_dept/services.py - Appointments
backend/apps/scheduling - Patient records
backend/apps/records/models.py
Workflow and integrations
- State and outbox engine
backend/apps/workflow/engine.py - Audit trail
backend/apps/audit/services.py - Notifications
backend/apps/notifications/services.py - FHIR synchronization
backend/apps/fhir/sync.py
Other components
- Patients and care teams
- Vapi voice service
- Cerebras and Gemini
- Postgres and pgvector
Connections 27
- Patients and care teams → Role-based web app: use
README.md - Role-based web app → API client: request data
README.md - API client → Triage sessions: submit turns
README.md - Voice and text client → API client: send session turns
frontend/src/voice/controller.ts - Voice and text client → Vapi voice service: place calls
README.md - Triage sessions → Red-flag rules: check emergencies
backend/apps/triage/services.py - Triage sessions → AI triage and dialogue: request next reply
backend/apps/triage/services.py - AI triage and dialogue → Cerebras and Gemini: generate dialogue
README.md - Triage sessions → Clinical report analysis: generate report
backend/apps/triage/services.py - Clinical report analysis → Knowledge search and ingestion: retrieve context
backend/apps/ai/report_analysis.py - Knowledge search and ingestion → Cerebras and Gemini: embed content
backend/apps/knowledge/ingest.py - Patients and care teams → Encrypted offline queue: queue offline actions
README.md - Encrypted offline queue → API client: sync actions
README.md - API client → Accounts and access: authenticate requests
README.md - Patients and care teams → Patient consent: grant or refuse
README.md - Patient consent → Referral lifecycle: advance referral
backend/apps/consent/services.py - Referral lifecycle → State and outbox engine: execute transitions
backend/apps/referrals/services.py - Referral lifecycle → Emergency intake: reconcile intake
backend/apps/referrals/services.py - Referral lifecycle → FHIR synchronization: sync referrals
backend/apps/referrals/services.py - Referral lifecycle → Clinical report analysis: use triage report
backend/apps/referrals/services.py - State and outbox engine → Audit trail: record transition
backend/apps/workflow/engine.py - State and outbox engine → Postgres and pgvector: write history and outbox
README.md - Knowledge search and ingestion → Postgres and pgvector: store searchable chunks
backend/apps/knowledge/ingest.py - Referral lifecycle → Appointments: coordinate appointments
backend/apps/referrals/services.py - Referral lifecycle → Patient records: associate encounters
backend/apps/referrals/services.py - Notifications → Postgres and pgvector: read notification data
backend/apps/notifications/services.py - Patients and care teams → Notifications: receive updates
README.md