To enable customers to simulate the ordering process in the sandbox environment, Junction provides simulated results and a way to transition an order through its lifecycle.Documentation Index
Fetch the complete documentation index at: https://vital-mintlify-seo-frontmatter-1778142037.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Creating Lab Tests
Every created team comes with 4 standardLab Tests to allow the customer to test all 4 collection modalities:
- Test Kit: At-home collection using shipped test kits
- Walk-in Test: Patient visits a Patient Service Center (PSC) location
- At-Home Phlebotomy: A mobile phlebotomist visits the patient’s location
- On-Site Collection: Collection at the customer’s facility
Lifecycle
When an order is placed in the sandbox environment, it is “stuck” in theordered state and will not progress unless triggered to do so. This can be done through the dashboard or through the API.
Initiating the simulation process will progress the order through the expected success states defined in the lifecycle section, triggering all expected webhooks, emails, and SMS messages.
Collection Method Restrictions
At-Home Phlebotomy
Quest PSC Appointments
In the sandbox, Quest appointment slots are generated automatically with these patterns: Availability:- Same day: Next hour until 5 PM EST (if before 4 PM)
- Future days: 7 AM - 12 PM EST
- 20-minute intervals for all slots
Results
To allow customers to test, Junction generates fake results for each lab test based on the expected markers. The generated JSON results will cycle through all possible result types:numeric: Numerical values with reference rangescomment: Textual commentary resultsrange: Range-based results (e.g., “<50”)
Customizing the Response
You can customize the end response of the results via the body of the Simulate Order endpoint. There are three avenues of customization currently:1. Interpretation
Supplying theinterpretation field will set the result’s status to the supplied value. If you set it to critical, then the critical result workflow will be triggered.
normal: Standard normal results (default)abnormal: Results outside normal rangescritical: Triggers critical result notifications and workflows
2. Result Types
This field controls what result types will be generated. Omitting it will cycle through all available types.numeric: Numerical results with reference rangescomment: Text-based results and observationsrange: Range-based results
3. Missing Results
Supplying this field will generate missing biomarkers in the result to simulate incomplete lab processing.Environment-Specific Behavior
Sandbox vs Production Differences
| Feature | Sandbox | Production |
|---|---|---|
| Order Progression | Manual trigger required | Automatic, based on lab processing times. |
| PDF Results | Static example PDF | Dynamic lab-generated PDFs |
| Account Numbers | Hardcoded 1234567890 | Real lab account numbers |
| Phlebotomy Locations | Restricted to specific zip codes | Full coverage area |
| Quest PSC Slots | Mock slots, America/New_York timezone only | Real Quest API integration |
| Appointment Times | Restricted availability (see above) | Based on actual PSC availability |
Testing Recommendations
- Use Custom Lab Tests: Create tests with your specific biomarkers for realistic result simulation
- Test All Collection Methods: Verify each modality works with your integration
- Test Error Scenarios: Use missing results and different interpretations
- Test Appointment Workflows: Book, reschedule, and cancel appointments to verify full flow