{
  "created_at":  "2023-09-08T13:40:25.443240+00:00",
  "details":  {
    "created_at":  "2023-09-08T13:40:36.605770+00:00",
    "id":  "4d22e665-b845-436d-ae01-fe00f100bc1c",
    "type":  "walk_in_test",
    "updated_at":  "2023-09-08T13:40:36.605770+00:00"
  },
  "events":  [
    {
      "created_at":  "2023-09-08T13:40:36.628095+00:00",
      "id":  4182,
      "status":  "received.walk_in_test.ordered"
    }
  ],
  "id":  "ac1162da-0b10-4a64-9d81-30080cc919b3",
  "is_labcorp_stat_order":  false,
  "lab_test":  {
    "id":  "1508b669-b653-41c5-9a6d-866c65848137",
    "is_active":  true,
    "is_delegated":  false,
    "lab":  {
      "city":  "San Francisco",
      "first_line_address":  "123 Lab Street",
      "id":  12345,
      "name":  "LabCorp",
      "sample_types":  "serum",
      "slug":  "labcorp",
      "zipcode":  "94105"
    },
    "markers":  [
      {
        "id":  1481,
        "name":  "Hemoglobin A1c",
        "slug":  "hemoglobin-a1c",
        "type":  "quantity",
        "unit":  "%"
      }
    ],
    "method":  "walk_in_test",
    "name":  "Women's Hormones Panel",
    "sample_type":  "serum",
    "slug":  "womens_hormones_panel"
  },
  "notes":  "This is a note",
  "patient_details":  {
    "email":  "patient@gmail.com",
    "first_name":  "John",
    "last_name":  "Doe",
    "phone_number":  "+5551231234"
  },
  "physician":  {
    "first_name":  "Joseph",
    "last_name":  "Lister",
    "npi":  "1093125863"
  },
  "sample_id":  "QDWYKK7PAP23",
  "status":  "completed",
  "updated_at":  "2023-09-08T13:42:51.206896+00:00",
  "user_id":  "a8dcc7e1-f47a-4c0c-89be-88d3d4f15834"
}
{
  "created_at":  "When this order was created",
  "details":  {
    "created_at":  "When these order details were created",
    "id":  "Unique identifier for the order details",
    "type":  "Type of the order",
    "updated_at":  "When these order details were last updated"
  },
  "events":  {
    "created_at":  "When this event occurred",
    "id":  "Unique identifier for the event",
    "status":  "Status update from this event"
  },
  "id":  "Unique identifier for the order",
  "is_labcorp_stat_order":  "Whether this is a STAT (urgent) LabCorp order",
  "lab_test":  {
    "id":  "Unique identifier for the lab test",
    "is_active":  "Whether this lab test is currently active",
    "is_delegated":  "Whether this lab test is delegated",
    "lab":  {
      "city":  "City where the lab is located",
      "first_line_address":  "First line of the lab's address",
      "id":  "Unique identifier for the lab",
      "name":  "Name of the laboratory",
      "sample_types":  "Types of samples this lab can process",
      "slug":  "URL-friendly identifier for the lab",
      "zipcode":  "ZIP code of the lab's location"
    },
    "markers":  {
      "id":  "Unique identifier for the marker",
      "name":  "Name of the marker",
      "slug":  "URL-friendly identifier for the marker",
      "type":  "Type of the marker measurement",
      "unit":  "Unit of measurement for the marker"
    },
    "method":  "Method of sample collection",
    "name":  "Name of the lab test",
    "sample_type":  "Type of sample required",
    "slug":  "URL-friendly identifier for the lab test"
  },
  "notes":  "Additional notes about the order",
  "patient_details":  {
    "email":  "Email address of the patient",
    "first_name":  "Patient's first name",
    "last_name":  "Patient's last name",
    "phone_number":  "Patient's phone number"
  },
  "physician":  {
    "first_name":  "Physician's first name",
    "last_name":  "Physician's last name",
    "npi":  "National Provider Identifier"
  },
  "sample_id":  "Unique identifier for the sample",
  "status":  "Current status of the order",
  "updated_at":  "When this order was last updated",
  "user_id":  "ID of the user this order belongs to"
}

Events

Triggering Webhook Types

The following event types are associated with the Order event payload from Junction.

  • Junction Lab Order Status Update
{
  "created_at":  "2023-09-08T13:40:25.443240+00:00",
  "details":  {
    "created_at":  "2023-09-08T13:40:36.605770+00:00",
    "id":  "4d22e665-b845-436d-ae01-fe00f100bc1c",
    "type":  "walk_in_test",
    "updated_at":  "2023-09-08T13:40:36.605770+00:00"
  },
  "events":  [
    {
      "created_at":  "2023-09-08T13:40:36.628095+00:00",
      "id":  4182,
      "status":  "received.walk_in_test.ordered"
    }
  ],
  "id":  "ac1162da-0b10-4a64-9d81-30080cc919b3",
  "is_labcorp_stat_order":  false,
  "lab_test":  {
    "id":  "1508b669-b653-41c5-9a6d-866c65848137",
    "is_active":  true,
    "is_delegated":  false,
    "lab":  {
      "city":  "San Francisco",
      "first_line_address":  "123 Lab Street",
      "id":  12345,
      "name":  "LabCorp",
      "sample_types":  "serum",
      "slug":  "labcorp",
      "zipcode":  "94105"
    },
    "markers":  [
      {
        "id":  1481,
        "name":  "Hemoglobin A1c",
        "slug":  "hemoglobin-a1c",
        "type":  "quantity",
        "unit":  "%"
      }
    ],
    "method":  "walk_in_test",
    "name":  "Women's Hormones Panel",
    "sample_type":  "serum",
    "slug":  "womens_hormones_panel"
  },
  "notes":  "This is a note",
  "patient_details":  {
    "email":  "patient@gmail.com",
    "first_name":  "John",
    "last_name":  "Doe",
    "phone_number":  "+5551231234"
  },
  "physician":  {
    "first_name":  "Joseph",
    "last_name":  "Lister",
    "npi":  "1093125863"
  },
  "sample_id":  "QDWYKK7PAP23",
  "status":  "completed",
  "updated_at":  "2023-09-08T13:42:51.206896+00:00",
  "user_id":  "a8dcc7e1-f47a-4c0c-89be-88d3d4f15834"
}
{
  "created_at":  "When this order was created",
  "details":  {
    "created_at":  "When these order details were created",
    "id":  "Unique identifier for the order details",
    "type":  "Type of the order",
    "updated_at":  "When these order details were last updated"
  },
  "events":  {
    "created_at":  "When this event occurred",
    "id":  "Unique identifier for the event",
    "status":  "Status update from this event"
  },
  "id":  "Unique identifier for the order",
  "is_labcorp_stat_order":  "Whether this is a STAT (urgent) LabCorp order",
  "lab_test":  {
    "id":  "Unique identifier for the lab test",
    "is_active":  "Whether this lab test is currently active",
    "is_delegated":  "Whether this lab test is delegated",
    "lab":  {
      "city":  "City where the lab is located",
      "first_line_address":  "First line of the lab's address",
      "id":  "Unique identifier for the lab",
      "name":  "Name of the laboratory",
      "sample_types":  "Types of samples this lab can process",
      "slug":  "URL-friendly identifier for the lab",
      "zipcode":  "ZIP code of the lab's location"
    },
    "markers":  {
      "id":  "Unique identifier for the marker",
      "name":  "Name of the marker",
      "slug":  "URL-friendly identifier for the marker",
      "type":  "Type of the marker measurement",
      "unit":  "Unit of measurement for the marker"
    },
    "method":  "Method of sample collection",
    "name":  "Name of the lab test",
    "sample_type":  "Type of sample required",
    "slug":  "URL-friendly identifier for the lab test"
  },
  "notes":  "Additional notes about the order",
  "patient_details":  {
    "email":  "Email address of the patient",
    "first_name":  "Patient's first name",
    "last_name":  "Patient's last name",
    "phone_number":  "Patient's phone number"
  },
  "physician":  {
    "first_name":  "Physician's first name",
    "last_name":  "Physician's last name",
    "npi":  "National Provider Identifier"
  },
  "sample_id":  "Unique identifier for the sample",
  "status":  "Current status of the order",
  "updated_at":  "When this order was last updated",
  "user_id":  "ID of the user this order belongs to"
}

Payload Field Details

Order
Event Payload
id
string
required

Unique identifier for the order

CEL
id
Example
"ac1162da-0b10-4a64-9d81-30080cc919b3"
user_id
string
required

ID of the user this order belongs to

CEL
user_id
Example
"a8dcc7e1-f47a-4c0c-89be-88d3d4f15834"
lab_test
object
required

Description coming soon

CEL
lab_test
Example
{
"id":  "1508b669-b653-41c5-9a6d-866c65848137",
"is_active":  true,
"is_delegated":  false,
"lab":  {
"city":  "San Francisco",
"first_line_address":  "123 Lab Street",
"id":  12345,
"name":  "LabCorp",
"sample_types":  "serum",
"slug":  "labcorp",
"zipcode":  "94105"
},
"markers":  [
{
"id":  1481,
"name":  "Hemoglobin A1c",
"slug":  "hemoglobin-a1c",
"type":  "quantity",
"unit":  "%"
}
],
"method":  "walk_in_test",
"name":  "Women's Hormones Panel",
"sample_type":  "serum",
"slug":  "womens_hormones_panel"
}
lab_test.id
string
required

Unique identifier for the lab test

CEL
lab_test.id
Example
"1508b669-b653-41c5-9a6d-866c65848137"
lab_test.name
string
required

Name of the lab test

CEL
lab_test.name
Example
"Women's Hormones Panel"
lab_test.slug
string
required

URL-friendly identifier for the lab test

CEL
lab_test.slug
Example
"womens_hormones_panel"
lab_test.sample_type
string

Type of sample required

CEL
lab_test.sample_type
Example
"serum"
lab_test.is_active
bool
required

Whether this lab test is currently active

CEL
lab_test.is_active
Example
true
lab_test.is_delegated
bool
required

Whether this lab test is delegated

CEL
lab_test.is_delegated
Example
false
lab_test.lab
object

Description coming soon

CEL
lab_test.lab
Example
{
"city":  "San Francisco",
"first_line_address":  "123 Lab Street",
"id":  12345,
"name":  "LabCorp",
"sample_types":  "serum",
"slug":  "labcorp",
"zipcode":  "94105"
}
lab_test.lab.id
int64

Unique identifier for the lab

CEL
lab_test.lab.id
Example
12345
lab_test.lab.name
string

Name of the laboratory

CEL
lab_test.lab.name
Example
"LabCorp"
lab_test.lab.slug
string

URL-friendly identifier for the lab

CEL
lab_test.lab.slug
Example
"labcorp"
lab_test.lab.sample_types
[]string

Types of samples this lab can process

CEL
lab_test.lab.sample_types
Example
"serum"
lab_test.lab.first_line_address
string

First line of the lab’s address

CEL
lab_test.lab.first_line_address
Example
"123 Lab Street"
lab_test.lab.city
string

City where the lab is located

CEL
lab_test.lab.city
Example
"San Francisco"
lab_test.lab.zipcode
string

ZIP code of the lab’s location

CEL
lab_test.lab.zipcode
Example
"94105"
lab_test.markers
object
required

Description coming soon

CEL
lab_test.markers
Example
[
{
"id":  1481,
"name":  "Hemoglobin A1c",
"slug":  "hemoglobin-a1c",
"type":  "quantity",
"unit":  "%"
}
]
lab_test.markers.map(x, x.id)
[]int64
required

Mapped array of: Unique identifier for the marker

CEL
lab_test.markers.map(x, x.id)
Example
[
1481
]
lab_test.markers.map(x, x.name)
[]string
required

Mapped array of: Name of the marker

CEL
lab_test.markers.map(x, x.name)
Example
[
"Hemoglobin A1c"
]
lab_test.markers.map(x, x.slug)
[]string
required

Mapped array of: URL-friendly identifier for the marker

CEL
lab_test.markers.map(x, x.slug)
Example
[
"hemoglobin-a1c"
]
lab_test.markers.map(x, x.type)
[]string
required

Mapped array of: Type of the marker measurement

CEL
lab_test.markers.map(x, x.type)
Example
[
"quantity"
]
lab_test.markers.map(x, x.unit)
[]string
required

Mapped array of: Unit of measurement for the marker

CEL
lab_test.markers.map(x, x.unit)
Example
[
"%"
]
lab_test.method
string
required

Method of sample collection

CEL
lab_test.method
Example
"walk_in_test"
details
object
required

Description coming soon

CEL
details
Example
{
"created_at":  "2023-09-08T13:40:36.605770+00:00",
"id":  "4d22e665-b845-436d-ae01-fe00f100bc1c",
"type":  "walk_in_test",
"updated_at":  "2023-09-08T13:40:36.605770+00:00"
}
details.id
string
required

Unique identifier for the order details

CEL
details.id
Example
"4d22e665-b845-436d-ae01-fe00f100bc1c"
details.type
string
required

Type of the order

CEL
details.type
Example
"walk_in_test"
details.created_at
timing.v1.Timestamp

When these order details were created

CEL
details.created_at
Example
"2023-09-08T13:40:36.605770+00:00"
details.updated_at
timing.v1.Timestamp

When these order details were last updated

CEL
details.updated_at
Example
"2023-09-08T13:40:36.605770+00:00"
notes
string

Additional notes about the order

CEL
notes
Example
"This is a note"
patient_details
object

Description coming soon

CEL
patient_details
Example
{
"email":  "patient@gmail.com",
"first_name":  "John",
"last_name":  "Doe",
"phone_number":  "+5551231234"
}
patient_details.email
string

Email address of the patient

CEL
patient_details.email
Example
"patient@gmail.com"
patient_details.first_name
string

Patient’s first name

CEL
patient_details.first_name
Example
"John"
patient_details.last_name
string

Patient’s last name

CEL
patient_details.last_name
Example
"Doe"
patient_details.phone_number
string

Patient’s phone number

CEL
patient_details.phone_number
Example
"+5551231234"
physician
object

Description coming soon

CEL
physician
Example
{
"first_name":  "Joseph",
"last_name":  "Lister",
"npi":  "1093125863"
}
physician.first_name
string

Physician’s first name

CEL
physician.first_name
Example
"Joseph"
physician.last_name
string

Physician’s last name

CEL
physician.last_name
Example
"Lister"
physician.npi
string

National Provider Identifier

CEL
physician.npi
Example
"1093125863"
is_labcorp_stat_order
bool
required

Whether this is a STAT (urgent) LabCorp order

CEL
is_labcorp_stat_order
Example
false
sample_id
string

Unique identifier for the sample

CEL
sample_id
Example
"QDWYKK7PAP23"
status
string

Current status of the order

CEL
status
Example
"completed"
events
object
required

Description coming soon

CEL
events
Example
[
{
"created_at":  "2023-09-08T13:40:36.628095+00:00",
"id":  4182,
"status":  "received.walk_in_test.ordered"
}
]
events.map(x, x.id)
[]int64
required

Mapped array of: Unique identifier for the event

CEL
events.map(x, x.id)
Example
[
4182
]
events.map(x, x.created_at)
[]timing.v1.Timestamp
required

Mapped array of: When this event occurred

CEL
events.map(x, x.created_at)
Example
[
"2023-09-08T13:40:36.628095+00:00"
]
events.map(x, x.status)
[]string
required

Mapped array of: Status update from this event

CEL
events.map(x, x.status)
Example
[
"received.walk_in_test.ordered"
]
created_at
timing.v1.Timestamp
required

When this order was created

CEL
created_at
Example
"2023-09-08T13:40:25.443240+00:00"
updated_at
timing.v1.Timestamp
required

When this order was last updated

CEL
updated_at
Example
"2023-09-08T13:42:51.206896+00:00"