Skip to main content

Overview

This example covers the complete workflow for emergency medical dispatch: a patient event arrives via the Wede API, the proximity engine scores available teams, the best team is dispatched, and the field operator updates the mission lifecycle in real time. The entire flow works offline. If the hospital network fails at any point, the SDK queues operations locally and syncs when connectivity is restored - without any changes to your integration.

1. Submit an Emergency Event

The payload is opaque to Wede. Encrypt it before sending if it contains ePHI. Wede transports - it does not inspect.

2. Score Available Teams

The score engine considers: GPS distance (haversine), equipment match, member availability, vertical capability, and zone geofence. The same algorithm runs offline in the SDK.

3. Dispatch the Team

This triggers the team.dispatched webhook and creates a mission in CREATED status.

4. Field Operator - Mission Lifecycle (React Native)


5. Webhooks - Real-Time Notifications

Configure a webhook to receive mission lifecycle events:
Payload example for mission.status_updated:

HIPAA Alignment