Data Flow
Message and data processing flows in HealthTalk.
Message Sending Flow
User Action Gateway Services Delivery
│ │ │ │
│ 1. Send Request │ │ │
├───────────────────>│ │ │
│ │ 2. Authenticate │ │
│ │ 3. Rate Check │ │
│ ├───────────────────>│ │
│ │ │ 4. Validate Request │
│ │ │ 5. Render Template │
│ │ │ 6. Queue Message │
│ │<───────────────────┤ │
│ 7. Accepted │ │ │
│<───────────────────┤ │ │
│ │ │ 8. Process Queue │
│ │ ├───────────────────────>│
│ │ │ │ 9. Deliver
│ │ │<───────────────────────┤
│ │ │ 10. Update Status │
│ 11. Webhook │ │ │
│<───────────────────────────────────────── │Patient Response Flow
- Patient receives message via channel (SMS/Email)
- Patient responds via same channel
- Provider receives message
- Response linked to original conversation
- Notification sent to assigned staff
- Staff reviews and responds
Data Synchronization
EHR Integration
EHR System ──> API Gateway ──> Patient Service ──> Database
│
└──> Audit TrailAppointment Sync
Scheduling System ──> Webhook ──> Appointment Service
│
└──> Reminder QueueEvent Flow
All significant events are published to the event bus:
message.createdmessage.sentmessage.deliveredmessage.failedpatient.updatedappointment.created
Subscribers process events for:
- Analytics aggregation
- Audit logging
- Webhook delivery
- Notification dispatch
Last updated on