Tests
Create a Test
Orders
At-home Phlebotomy
Patient Service Center (PSC)
Tests
Health Insurance
Tests
Create a Test
POST
/
v3
/
lab_tests
from vital.client import Vital
from vital.environment import VitalEnvironment
from vital.types.lab_test_collection_method import LabTestCollectionMethod
from vital.types.lab_test_sample_type import LabTestSampleType
from vital.types.us_address import UsAddress
client = Vital(
api_key="YOUR_API_KEY",
environment=VitalEnvironment.SANDBOX
)
data = client.lab_tests.create(
provider_ids=["000110"],
name="<name>",
method=LabTestCollectionMethod.TESTKIT,
description="<description>"
)
{
"id": "2e82a1d4-e2e6-421c-9c54-2210d667ce48",
"slug": "a94e3005-labcorp-panel",
"name": "Labcorp panel",
"sample_type": "serum",
"method": "at_home_phlebotomy",
"price": 0.0,
"is_active": true,
"status": "active",
"fasting": false,
"lab": {
"id": 27,
"slug": "labcorp",
"name": "Labcorp",
"first_line_address": "labcorp address",
"city": "Lincolnshire",
"zipcode": "60069",
"collection_methods": ["at_home_phlebotomy", "walk_in_test"],
"sample_types": ["serum", "saliva", "urine"]
},
"markers": [
{
"id": 195,
"name": "Abnormal Bleeding Profile",
"slug": "abnormal-bleeding-profile",
"description": "Abnormal Bleeding Profile",
"lab_id": 27,
"provider_id": "116004",
"type": "biomarker",
"unit": null,
"price": "N/A",
"aoe": null,
"a_la_carte_enabled": true
}
],
"is_delegated": false,
"auto_generated": false
}
from vital.client import Vital
from vital.environment import VitalEnvironment
from vital.types.lab_test_collection_method import LabTestCollectionMethod
from vital.types.lab_test_sample_type import LabTestSampleType
from vital.types.us_address import UsAddress
client = Vital(
api_key="YOUR_API_KEY",
environment=VitalEnvironment.SANDBOX
)
data = client.lab_tests.create(
provider_ids=["000110"],
name="<name>",
method=LabTestCollectionMethod.TESTKIT,
description="<description>"
)
{
"id": "2e82a1d4-e2e6-421c-9c54-2210d667ce48",
"slug": "a94e3005-labcorp-panel",
"name": "Labcorp panel",
"sample_type": "serum",
"method": "at_home_phlebotomy",
"price": 0.0,
"is_active": true,
"status": "active",
"fasting": false,
"lab": {
"id": 27,
"slug": "labcorp",
"name": "Labcorp",
"first_line_address": "labcorp address",
"city": "Lincolnshire",
"zipcode": "60069",
"collection_methods": ["at_home_phlebotomy", "walk_in_test"],
"sample_types": ["serum", "saliva", "urine"]
},
"markers": [
{
"id": 195,
"name": "Abnormal Bleeding Profile",
"slug": "abnormal-bleeding-profile",
"description": "Abnormal Bleeding Profile",
"lab_id": 27,
"provider_id": "116004",
"type": "biomarker",
"unit": null,
"price": "N/A",
"aoe": null,
"a_la_carte_enabled": true
}
],
"is_delegated": false,
"auto_generated": false
}
Authorizations
Vital Team API Key
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
from vital.client import Vital
from vital.environment import VitalEnvironment
from vital.types.lab_test_collection_method import LabTestCollectionMethod
from vital.types.lab_test_sample_type import LabTestSampleType
from vital.types.us_address import UsAddress
client = Vital(
api_key="YOUR_API_KEY",
environment=VitalEnvironment.SANDBOX
)
data = client.lab_tests.create(
provider_ids=["000110"],
name="<name>",
method=LabTestCollectionMethod.TESTKIT,
description="<description>"
)
{
"id": "2e82a1d4-e2e6-421c-9c54-2210d667ce48",
"slug": "a94e3005-labcorp-panel",
"name": "Labcorp panel",
"sample_type": "serum",
"method": "at_home_phlebotomy",
"price": 0.0,
"is_active": true,
"status": "active",
"fasting": false,
"lab": {
"id": 27,
"slug": "labcorp",
"name": "Labcorp",
"first_line_address": "labcorp address",
"city": "Lincolnshire",
"zipcode": "60069",
"collection_methods": ["at_home_phlebotomy", "walk_in_test"],
"sample_types": ["serum", "saliva", "urine"]
},
"markers": [
{
"id": 195,
"name": "Abnormal Bleeding Profile",
"slug": "abnormal-bleeding-profile",
"description": "Abnormal Bleeding Profile",
"lab_id": 27,
"provider_id": "116004",
"type": "biomarker",
"unit": null,
"price": "N/A",
"aoe": null,
"a_la_carte_enabled": true
}
],
"is_delegated": false,
"auto_generated": false
}