{
  "client_user_id": "3Zru4O8cBEiwGTsXgUQGaQ==",
  "data": {
    "activate_by": "2020-01-01",
    "created_at": "2020-01-01T00:00:00Z",
    "details": {
      "data": {
        "created_at": "2020-01-01T00:00:00Z",
        "id": "a655f0e4-6405-4a1d-80b7-66f06c2108a7",
        "shipment": {
          "created_at": "2020-01-01T00:00:00.000Z",
          "id": "d55210cc-3d9f-4115-8262-5013f700c7be",
          "inbound_courier": "usps",
          "inbound_tracking_number": "<inbound_tracking_number>",
          "inbound_tracking_url": "<inbound_tracking_url>",
          "notes": "<notes>",
          "outbound_courier": "usps",
          "outbound_tracking_number": "<outbound_tracking_number>",
          "outbound_tracking_url": "<outbound_tracking_url>",
          "updated_at": "2020-01-01T00:00:00.000Z"
        },
        "updated_at": "2020-01-01T00:00:00Z"
      },
      "type": "testkit"
    },
    "events": [
      {
        "created_at": "2022-01-01T00:00:00Z",
        "id": 1,
        "status": "received.testkit.ordered"
      },
      {
        "created_at": "2022-01-02T00:00:00Z",
        "id": 2,
        "status": "received.testkit.requisition_created"
      },
      {
        "created_at": "2022-01-03T00:00:00Z",
        "id": 3,
        "status": "collecting_sample.testkit.transit_customer"
      }
    ],
    "health_insurace_id": "438831d0-eca4-4d67-9694-66eeb483f401",
    "id": "2724484c-94a2-4201-8124-85368af902ec",
    "lab_test": {
      "description": "Cholesterol test",
      "method": "testkit",
      "name": "Lipids Panel"
    },
    "notes": "This is a note",
    "patient_address": {
      "city": "San Francisco",
      "country": "United States",
      "first_line": "123 Main St.",
      "phone_number": "+11234567890",
      "receiver_name": "John Doe",
      "second_line": "Apt. 208",
      "state": "CA",
      "zip": "91189"
    },
    "patient_details": {
      "dob": "2020-01-01",
      "gender": "male"
    },
    "requisition_form_url": "https://www.example.com",
    "sample_id": "123456789",
    "status": "collecting_sample",
    "team_id": "5e8e7a45-bb01-4b0e-805c-4e0c17903a24",
    "updated_at": "2020-01-01T00:00:00Z",
    "user_id": "0e230d79-7e1b-46f9-8619-73c169aee01e"
  },
  "event_type": "labtest.order.updated",
  "team_id": "e89cc9fe-e1c0-41bc-a83a-728b8cb1056f",
  "user_id": "fac593ed-f371-4aea-9210-9332f1b19bec"
}

Properties

event_type
const string
required

Constant: labtest.order.updated

team_id
string
required
user_id
string
required
client_user_id
string
required
data
ClientFacingOrder
required
user_id
string
required

User id returned by vital create user request. This id should be stored in your database against the user and used for all interactions with the vital api.

id
string
required

The Vital Order ID

team_id
string
required

Your team id.

patient_details
anyOf
required

Patient Details Any of:

  • ClientFacingPatientDetailsCompatible
  • null
patient_address
anyOf
required

Patient Address Any of:

  • PatientAddressCompatible
  • null
lab_test
ClientFacingLabTest
required

The Vital Test associated with the order

id
string
required
slug
string
required
name
string
required
sample_type
enum<string>
required

Available options: dried_blood_spot, serum, saliva, urine.

method
enum<string>
required

Available options: testkit, walk_in_test, at_home_phlebotomy.

price
number
required
is_active
boolean
required

Deprecated. Use status instead.

status
enum<string>
required

Available options: active, pending_approval, inactive.

fasting
boolean | null

Defines whether a lab test requires fasting.

lab
anyOf
required

Any of:

  • ClientFacingLab
  • null
markers
anyOf
required

Any of:

  • array
  • null
is_delegated
boolean | null

Denotes whether a lab test requires using non-Vital physician networks. If it does then it’s delegated - no otherwise.

details
anyOf
required

Any of:

  • ClientFacingWalkInOrderDetails
  • ClientFacingTestKitOrderDetails
  • ClientFacingAtHomePhlebotomyOrderDetails
sample_id
anyOf
required

Sample ID Any of:

  • string
  • null
notes
anyOf
required

Notes associated with the order Any of:

  • string
  • null
created_at
string
required

When your order was created

updated_at
string
required

When your order was last updated.

events
ClientFacingOrderEvent[]
required
id
integer
required
created_at
string
required
status
enum<string>
required

Available options: received.walk_in_test.ordered, received.walk_in_test.requisition_created, completed.walk_in_test.completed, sample_with_lab.walk_in_test.partial_results, failed.walk_in_test.sample_error, cancelled.walk_in_test.cancelled, received.at_home_phlebotomy.ordered, received.at_home_phlebotomy.requisition_created, collecting_sample.at_home_phlebotomy.appointment_pending, collecting_sample.at_home_phlebotomy.appointment_scheduled, collecting_sample.at_home_phlebotomy.draw_completed, collecting_sample.at_home_phlebotomy.appointment_cancelled, completed.at_home_phlebotomy.completed, sample_with_lab.at_home_phlebotomy.partial_results, cancelled.at_home_phlebotomy.cancelled, failed.at_home_phlebotomy.sample_error, received.testkit.ordered, received.testkit.awaiting_registration, received.testkit.requisition_created, received.testkit.registered, collecting_sample.testkit.transit_customer, collecting_sample.testkit.out_for_delivery, collecting_sample.testkit.with_customer, collecting_sample.testkit.transit_lab, sample_with_lab.testkit.delivered_to_lab, completed.testkit.completed, failed.testkit.failure_to_deliver_to_customer, failed.testkit.failure_to_deliver_to_lab, failed.testkit.sample_error, failed.testkit.lost, cancelled.testkit.cancelled, cancelled.testkit.do_not_process.

status
anyOf | null

Any of:

  • OrderTopLevelStatus
  • null
physician
anyOf | null

Any of:

  • ClientFacingPhysician
  • null
health_insurance_id
anyOf
required

Vital ID of the health insurance. Any of:

  • string
  • null
requisition_form_url
anyOf
required

DEPRECATED. Requistion form url. Any of:

  • string
  • null
priority
boolean | null

Defines whether order is priority or not. For some labs, this refers to a STAT order.

shipping_details
anyOf
required

Shipping Details. For unregistered testkit orders. Any of:

  • ShippingAddress
  • null
activate_by
anyOf | null

Schedule an Order to be processed in a future date. Any of:

  • string
  • null
passthrough
anyOf | null

Any of:

  • string
  • null
{
  "client_user_id": "3Zru4O8cBEiwGTsXgUQGaQ==",
  "data": {
    "activate_by": "2020-01-01",
    "created_at": "2020-01-01T00:00:00Z",
    "details": {
      "data": {
        "created_at": "2020-01-01T00:00:00Z",
        "id": "a655f0e4-6405-4a1d-80b7-66f06c2108a7",
        "shipment": {
          "created_at": "2020-01-01T00:00:00.000Z",
          "id": "d55210cc-3d9f-4115-8262-5013f700c7be",
          "inbound_courier": "usps",
          "inbound_tracking_number": "<inbound_tracking_number>",
          "inbound_tracking_url": "<inbound_tracking_url>",
          "notes": "<notes>",
          "outbound_courier": "usps",
          "outbound_tracking_number": "<outbound_tracking_number>",
          "outbound_tracking_url": "<outbound_tracking_url>",
          "updated_at": "2020-01-01T00:00:00.000Z"
        },
        "updated_at": "2020-01-01T00:00:00Z"
      },
      "type": "testkit"
    },
    "events": [
      {
        "created_at": "2022-01-01T00:00:00Z",
        "id": 1,
        "status": "received.testkit.ordered"
      },
      {
        "created_at": "2022-01-02T00:00:00Z",
        "id": 2,
        "status": "received.testkit.requisition_created"
      },
      {
        "created_at": "2022-01-03T00:00:00Z",
        "id": 3,
        "status": "collecting_sample.testkit.transit_customer"
      }
    ],
    "health_insurace_id": "438831d0-eca4-4d67-9694-66eeb483f401",
    "id": "2724484c-94a2-4201-8124-85368af902ec",
    "lab_test": {
      "description": "Cholesterol test",
      "method": "testkit",
      "name": "Lipids Panel"
    },
    "notes": "This is a note",
    "patient_address": {
      "city": "San Francisco",
      "country": "United States",
      "first_line": "123 Main St.",
      "phone_number": "+11234567890",
      "receiver_name": "John Doe",
      "second_line": "Apt. 208",
      "state": "CA",
      "zip": "91189"
    },
    "patient_details": {
      "dob": "2020-01-01",
      "gender": "male"
    },
    "requisition_form_url": "https://www.example.com",
    "sample_id": "123456789",
    "status": "collecting_sample",
    "team_id": "5e8e7a45-bb01-4b0e-805c-4e0c17903a24",
    "updated_at": "2020-01-01T00:00:00Z",
    "user_id": "0e230d79-7e1b-46f9-8619-73c169aee01e"
  },
  "event_type": "labtest.order.updated",
  "team_id": "e89cc9fe-e1c0-41bc-a83a-728b8cb1056f",
  "user_id": "fac593ed-f371-4aea-9210-9332f1b19bec"
}