Create a Lab Order and Poll Until Resolved
A 2-step recipe with Vital. We can help you get access.
Recipe · 2 steps
Create a Lab Order and Poll Until Resolved
with Vital · Laboratory Services Management
Create a lab order and poll until it reaches a terminal status.
- Create a lab order for the user from the supplied order set and capture the new order id.
- Read the order and capture the status of its latest lifecycle event. Branches back to poll while the order is still in progress and ends when a terminal status is reached.
What you'll need to have ready
- apiKey: Your Vital API key, sent in the x-vital-api-key header.
- userId: The Vital user_id the order is placed for.
- patientDetails: Patient details object (name, dob, gender, etc.) per PatientDetailsWithValidation.
- patientAddress: Patient address object per PatientAddressWithValidation.
- orderSet: The OrderSetRequest describing the panels/markers to order.
- physician: Optional physician details for the order.
For your developer
Arazzo workflow vital-io:create-order-poll-status, 2 operations: create_order_v3_order_post → get_order_v3_order__order_id__get. Specs on APIs.io.