Scheduled Orders
Vital provides a way to schedule your orders for a future date, both via the API and via the Vital Dashboard. A Scheduled order is one that will only be fulfilled in the future, so it won’t be created in the Partner Laboratories until the defined date. This is useful for defining follow-up orders after placing an initial Lab Order for a patient.
Ordering through the API
To place a scheduled order through the API, you should use the Create Order endpoint,
passing the activate_by
date parameter. The activate_by
parameter defines when that order is scheduled for,
and it will move from the ordered
to the requisition_created
status when the date arrives.
If you want to query all placed orders, you may use Get Orders endpoint, passing an order_activation_types
query parameter, which accept the following values ["current", "scheduled"]
.
- If the parameter is not provided, every order is returned.
- If
current
is provided, orders with anull
activate_by
date or withactivate_by
set before the current date are returned. - If
scheduled
is provided, orders with anactivate_by
date greater than the current date are returned.
Placing a scheduled order for 6 of January of 2025 would look like this:
Ordering through the Vital Dashboard
To place a Scheduled Order through the dashboard, just follow the normal procedure until you reach the Lab Testing selection screen.
Select Lab Test.
Notice that there is a checkbox for defining this order as scheduled for the future, after the checkbox is selected you can pass in the desired scheduled date.
After that, you can filter out the Scheduled
and Current
orders in the dashboard using the filter in the orders listing.
Order List filter.