Creating a Lab Test
Vital provides a way to create your own lab tests. Lab tests are a collection or pre-set of orderable markers. These are made up of:
- One or more marker IDs or Provider IDs.
- The collection method:
testkit
,walk_in_test
, orat_home_phlebotomy
.
Once a Lab Test is created and approved, you can use it when making a order.
When you create a Lab Test, it is not immediately available. We need to validate and approve it on our side, before you can use it when making orders.
Example
To begin, make a request to our GET /v3/lab_tests/markers
endpoint, in order to choose the markers you want to test for.
With this information, you can create a lab test using POST /v3/lab_tests
.
As an example, let’s say you wanted a test from Labcorp
, with markers with provider ids 006056
and 070085
:
It is possible to create a test with either the marker id or provider id. Provider ids are the recommended way, since these are shared accross environments. Not all labs provide these, so in their absence, use the marker id.
Once your lab test creation is successful you will receive the following response:
Do notice that is_active
is set to false
. You can verify its status by calling the lab tests endpoint.