- Mission Creation (Dispatch)
- Route Planning and Dispatch
- Vehicle Preparation
- Transport and Real-Time Monitoring
- Dynamic Adjustments
- Arrival and Verification
- Post-Mission Review
Trigger: A hospital identifies an organ ready for transport.
Donor hospital inputs:
- Organ type (heart, kidney, liver, etc.)
- Required delivery timeline
- Pickup location
Backend evaluates max safe transport time and organ-specific constraints:
- Heart: 4 to 6 hours
- Kidney: 24 to 36 hours
- Liver: 8 to 12 hours
Backend decides transport mode:
- Road: if ETA fits the organ max time
- Air: if distances are long or the road ETA exceeds the safe window
VitalPath role: Automatically generates the mission object (donor, recipient, organ type, transport mode) and stores it in the system.
Backend retrieves real-time routing data using Google Maps Platform:
- Routes API for routing and ETA
- Places API (New) for search and geocoding
Routing generates:
- Full route coordinates
- Turn-by-turn navigation
- ETA for each leg
System sends route and mission info to the vehicle dispatch team.
VitalPath role: Ensures the transport team knows the fastest, safest route while respecting organ-specific constraints.
Vehicle team checks:
- Organ transport container is pre-cooled
- Sensors operational (temperature, shock, lid, battery)
- GPS/telemetry device installed
- Organ loaded into container
Vehicle is activated in VitalPath to start mission tracking.
VitalPath role: Monitors vehicle status and container telemetry in real time.
Vehicle begins journey:
- Dashboard shows live location, ETA, and turn-by-turn navigation
Telemetry streams to backend:
- Temperature
VitalPath AI is an AI-powered safety guardian for life-critical medical shipments (organs, blood, vaccines) that monitors cargo conditions, determines the best route and transport mode, and helps transport teams act quickly if something goes wrong.
- Mission Creation: Hospital identifies an organ ready for transport. Backend evaluates constraints and decides transport mode (road/air).
- Route Planning: Backend uses Google Maps Platform (Routes & Places APIs) to generate route, ETA, and navigation. Dispatch team receives route info.
- Vehicle Preparation: Transport container is prepped, sensors checked, vehicle activated in VitalPath for tracking.
- Transport & Monitoring: Vehicle begins journey, dashboard shows live location and telemetry. Backend compares sensor data to safe thresholds, AI evaluates cargo integrity and risk.
- Dynamic Adjustments: Backend recalculates routes for disruptions (traffic, closures, weather), UI updates automatically.
- Arrival & Verification: Arrival time, final telemetry, and alerts logged. AI generates mission summary.
- Post-Mission Review: Operations team reviews logs, routes, and AI recommendations for continuous improvement.
- Organ-Aware Routing: Mode and route chosen based on organ type, max safe time, and real-world constraints.
- Real-Time Simulation: Map displays route, vehicle moves in real time, navigation and ETA update continuously.
- Cargo Monitoring: Real-time sensor data (temperature, shock, lid, battery, elapsed time) shown; AI evaluates viability.
- Alerts & Risk Assessment: Alerts triggered for unsafe readings; AI provides recommendations and risk status.
- AI Assistance: Users can ask about viability, transport mode, and risk; AI answers based on current context.
- Mission Log: All events (alerts, route changes, recommendations, trip start/finish) are logged for review.
- Frontend: React + Vite, MapLibre GL for map, panels for mission details, navigation, vitals, hospital info, AI chat, and telemetry. High-contrast dashboard layout.
- Backend: FastAPI (Python), Google Routes & Places APIs, Gemini AI, ElevenLabs voice, normalizes responses, manages telemetry, alerts, and mission logs.
- Algorithmic Race: Dijkstra vs Duan–Mao BM-SSSP for route computation, visualized in the UI with benchmarks and telemetry.
Prerequisites: Python 3.10+, Node.js 18+, C/C++ build tools (Windows)
Backend:
cd backend
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -r requirements.txt
uvicorn app.main:app --reload --port 8000Frontend:
cd frontend
npm install
npm run devConfiguration:
Copy .env.example to .env in backend. Add GEMINI_API_KEY and ELEVENLABS_API_KEY if needed.
BM-SSSP runner:
cd backend/bmssp-runner
npm installEnable BM-SSSP:
cd backend
VITALPATH_AI_ROUTE_ALGO=bmsssp uvicorn app.main:app --reload --port 8000GET /api/algo/geocode?q=...→{ lat, lng, display_name }GET /api/algo/autocomplete?q=...→{ results: [{ lat, lng, display_name }, ...] }POST /api/algo/calculatewith start/end, scenario, algorithm, etc. Returns route, ETA, steps, and optional exploration fields.POST /api/ai/chat→ AI responsePOST /api/ai/speak→ audio (if configured)
- End-to-end EMS dashboard loop: dispatch, vitals, navigation, live map, AI assistant, seamless rerouting
- Dev Mode: scenario injection, algorithm comparison, roadblock injection, benchmark mode
- Algorithmic Race: Dijkstra vs BM-SSSP, visualized with KPIs, trend lines, histograms
- UI/UX: high-contrast layout, panels, cinematic transitions, air-route visualization
- AI & Voice: Gemini chat, ElevenLabs TTS, local audio fallbacks, AI-triggered dispatch
- Backend not running: Start backend first if you see ECONNREFUSED in frontend
- Google Maps API errors: Check keys, enable APIs, check quotas
- AlgoRace not visible: Dev mode must be enabled and scenario injected
VitalPath AI uses OpenStreetMap data via OSMnx/Overpass and geocoding via Nominatim. OpenStreetMap data is licensed under ODbL.
VitalPath AI is a mission control simulator that combines real-time mapping, AI conversation, voice synthesis, and cargo telemetry to demonstrate how technology can improve organ transport outcomes.
OSMnx may be cold-starting (graph download/build cache).
- Run each scenario once beforehand (warm cache), then it’s much faster.
If routing or search fails, check:
GOOGLE_MAPS_SERVER_KEYinbackend/.env- API enablement: Routes API + Places API (New)
- Quotas / billing on the Google Cloud project
AlgoRace is shown when:
- Dev mode is enabled and a scenario is injected
- Both algorithms failing hides the widget automatically
VitalPath AI uses OpenStreetMap data via Google Routes Browser and Server API Key. OpenStreetMap data is licensed under ODbL — see https://www.openstreetmap.org/copyright.