How sunnyshin8/zentro-x-dawki works
Zentro is a patient and clinical-operations platform; Dawki supplies governed care-navigation workflows. The main journey authenticates a patient, gathers consent and structured fever information, applies deterministic safety rules, and routes the result toward appointments, clinician review, or emergency guidance. Separate branches cover the governed support assistant, documents and caregiver access, connected-care interfaces, and operational monitoring. Sampled source confirms several route-to-service calls; other capability links below are supported by the README, not inspected implementation.
Main entry points: fever/route.ts Fever intake route · app Patient journeys · chat/route.ts Assistant route · AppointmentService.java Scheduling service
Components 25
Patient experience
- Patient journeys
src/app - Assistant route
src/app/api/chat/route.ts - Chat safety
src/services/chatSafety.ts
Dawki workflows
- Fever intake route
src/app/api/dawki/fever/route.ts - Dawki client
src/services/dawkiService.ts - Dawki workflow API
dawki-service/src/dawki/app.py - Fever rules
dawki-service/src/dawki/engine.py - Research ML
dawki-ml-service/src/dawki_ml/inference.py - Journey state
src/services/dawkiJourneyStore.ts
Clinical operations
- Scheduling service
java-service/src/main/java/com/zentro/scheduling/appointments/AppointmentService.java - Clinical review
java-service/src/main/java/com/zentro/scheduling/review/ClinicalReviewService.java - Telehealth verification
java-service/src/main/java/com/zentro/scheduling/verification/TelehealthVerificationService.java - Health documents
src/services/healthDocuments/healthDocumentStore.ts - Caregiver access
src/services/delegation/delegationStore.ts
Trust and operations
- Session identity
src/services/auth/currentUser.ts - Account storage
src/services/auth/authStore.ts - Consent records
src/services/consent/consentStore.ts - Java service client
src/services/javaMicroservice.ts - Audit service
java-service/src/main/java/com/zentro/scheduling/audit/AuditService.java - Operations intelligence
src/services/operations/operationalIntelligence.ts - Operational events
src/services/operations/operationalEventStore.ts
Connected care
- FHIR interfaces
src/services/integrations/fhirR4.ts - Partner gateway
src/services/integrations/partnerGateway.ts
Other components
- Patient
- Clinician
Connections 30
- Patient → Patient journeys: uses
- Patient journeys → Assistant route: sends chat
- Assistant route → Chat safety: screens messages
src/app/api/chat/route.ts - Assistant route → Session identity: checks identity
src/app/api/chat/route.ts - Assistant route → Dawki client: requests assistant
src/app/api/chat/route.ts - Assistant route → Scheduling service: books selected slot
- Patient journeys → Fever intake route: submits intake
- Fever intake route → Session identity: checks identity
src/app/api/dawki/fever/route.ts - Fever intake route → Consent records: records consent
src/app/api/dawki/fever/route.ts - Fever intake route → Dawki client: evaluates intake
src/app/api/dawki/fever/route.ts - Dawki client → Dawki workflow API: calls workflow API
src/services/dawkiService.ts - Dawki workflow API → Fever rules: evaluates rules
dawki-service/src/dawki/app.py - Fever rules → Research ML: may consult shadow signal
- Fever intake route → Journey state: persists journey
src/app/api/dawki/fever/route.ts - Fever intake route → Clinical review: routes escalation
- Fever intake route → Scheduling service: routes routine care
- Clinician → Clinical review: resolves reviews
- Clinician → Telehealth verification: updates verification
- Patient journeys → Health documents: uploads records
src/app/api/health-records/route.ts - Patient journeys → Caregiver access: manages invitations
src/app/api/guardians/route.ts - Session identity → Account storage: loads account
src/services/auth/currentUser.ts - Fever intake route → Java service client: requests workflow actions
src/app/api/dawki/fever/route.ts - Java service client → Scheduling service: calls scheduling API
src/services/javaMicroservice.ts - Java service client → Audit service: calls audit API
- Clinical review → Audit service: records review events
java-service/src/main/java/com/zentro/scheduling/review/ClinicalReviewService.java - Scheduling service → Audit service: records appointment events
java-service/src/main/java/com/zentro/scheduling/appointments/AppointmentService.java - Fever intake route → Operational events: records operational events
src/app/api/dawki/fever/route.ts - Operations intelligence → Operational events: analyzes events
- Patient journeys → FHIR interfaces: uses care interfaces
- FHIR interfaces → Partner gateway: adapts partner exchange