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’sid in order_set.lab_test_ids.
Choose what to order
Choose theorder_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.
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
Useadd_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 fromcollection_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.
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.
active. A pending at-home phlebotomy test that was created before auto-evaluation applied to the current team can return HTTP 400 when ordered.
Find markers available à la carte
Not every marker can be ordered à la carte. Use Get Markers with thea_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: Includecollection_methodwhenever you provideadd_on.marker_ids or provider_ids must be set in add_on: Include one marker identifier type inadd_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 compatiblecollection_methodwhen 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 isactive.