Await Lab Order Completion and Retrieve Results
A 3-step recipe with Vital. We can help you get access.
Recipe · 3 steps
Await Lab Order Completion and Retrieve Results
with Vital · Laboratory Services Management
Poll an order to completion and retrieve its metadata and raw results.
- Read the order and inspect the latest event. Loops while in progress, ends the workflow if cancelled or failed, and proceeds to results once completed.
- Fetch metadata about the order's results, such as lab metadata, provider, and sample dates.
- Fetch both the metadata and the raw JSON test data for the order.
What you'll need to have ready
- apiKey: Your Vital API key, sent in the x-vital-api-key header.
- orderId: The Vital Order ID to await results for.
For your developer
Arazzo workflow vital-io:await-order-results, 3 operations: get_order_v3_order__order_id__get → get_lab_test_result_metadata_v3_order__order_id__result_metadata_get → get_lab_test_result_raw_v3_order__order_id__result_get. Specs on APIs.io.