Skip to main content
Use the order_set field when you create an order to define the tests and markers the laboratory should perform. You can reference reusable lab tests, select markers directly from the compendium, or combine both approaches.

Understand tests and markers

Markers

Markers are the individual items a partner laboratory makes available to order. A marker can represent a single biomarker or a laboratory-defined panel. For example, Junction represents both a vitamin D test and a lipid panel as markers.

Lab tests

Lab tests are reusable definitions that contain one or more markers. Create a lab test when your program repeatedly orders the same combination. When you place an order, reference the lab test’s id in order_set.lab_test_ids.

Choose what to order

Choose the order_set combination that matches how your integration manages reusable test definitions.

Use one saved lab test

Reference one previously created lab test when the same marker set is used repeatedly:

Combine saved lab tests

Reference two or more compatible lab tests when you want to combine their markers without creating another reusable definition:

Choose markers à la carte

Use à la carte ordering to select markers from the compendium without first creating a lab test.
À la carte ordering is generally available to all Teams, but not every marker supports it. See Find markers available à la carte.
Identify the markers with either Junction marker_ids or the partner laboratory’s provider_ids. Do not provide both identifier types in the same add_on object.

Add markers to a saved lab test

Use add_on with lab_test_ids when an order needs a reusable lab test plus patient-specific markers.
When you provide add_on, you must also provide collection_method.

Choose a collection method

Junction supports four collection methods: Mobile Phlebotomy, Walk-in, At-home Test Kits, and On-site Collection. The collection method can come from the saved lab test or from collection_method in the order request. Provide it in the order request when the selected lab tests do not resolve to one collection method or when using add_on.

At-Home Phlebotomy Auto-Approval

This feature is in closed beta.Interested in this feature? Get in touch with your Customer Success Manager.
This beta applies only to auto-approval of at-home phlebotomy tests. When ordering without a Lab Test, this is subject to the same auto-approval validation as POST /v3/lab_tests. For eligible teams and labs, this validation is successful when:
  • Collection Instructions are available for every marker.
  • Every marker is enabled for à la carte ordering, if your team does not use a delegated flow.
  • The estimated draw is fewer than 15 tubes. An estimate of 15 tubes or more is rejected.
A referenced lab test must be active. A pending at-home phlebotomy test that was created before auto-evaluation applied to the current team can return HTTP 400 when ordered.

Fasting requirement

Set order_set.parameters.fasting in the Create Order request to override the fasting requirement for the order. It applies to saved lab tests (lab_test_ids), à la carte markers (add_on), and combinations of both. This parameter specifies whether fasting is required before sample collection. It does not record whether the patient has actually fasted. When you omit the parameter or set it to null:
  • With lab_test_ids only, fasting is required if any selected lab test requires it. For a single lab test, its fasting setting is preserved.
  • With add_on, fasting is required by default, including when you also provide lab_test_ids.
Use order_set.lab_test_ids instead of the top-level lab_test_id when supplying this parameter. For example, include the following order_set in your create-order request to order a saved lab test without requiring fasting:
For à la carte ordering, place parameters alongside add_on inside order_set. Include collection_method, which is required whenever you use add_on. For example, include these fields in your create-order request to order an à la carte marker without requiring fasting:
The same override works when using add_on.marker_ids instead of add_on.provider_ids, or when combining add_on with lab_test_ids. The override applies to the lab test used for this order. It does not change your saved lab tests, and normal test approval and ordering requirements still apply.
Explicit fasting answers supplied in aoe_answers take precedence over the lab test’s effective fasting setting for the corresponding Ask on Order Entry (AOE) question. If you do not supply a fasting answer, Junction uses the effective fasting setting, including any override from order_set.parameters.fasting.

Find markers available à la carte

Not every marker can be ordered à la carte. Use Get Markers with the a_la_carte_enabled filter to find supported markers.

Test-selection errors

The API validates the selected tests, markers, laboratories, and collection methods before accepting an order.

400 Bad Request

  • collection_method must be set if add_on is set: Include collection_method whenever you provide add_on.
  • marker_ids or provider_ids must be set in add_on: Include one marker identifier type in add_on.
  • cannot set both marker_ids and provider_ids in add_on: Use either Junction marker IDs or provider IDs, not both.
  • cannot order lab_tests from multiple labs: All referenced lab tests must belong to the same partner laboratory.
  • cannot order lab tests with multiple collection methods: Provide one compatible collection_method when combining lab tests.
  • test is not active: A referenced lab test is still pending approval or otherwise inactive. It cannot be ordered until its status is active.