Lab Ordering
Ordering lab tests for the person through their clinic: vendors, shipping address, orders and payments, and test kits sent to the home.
Get the shipping address
The shipping address on file for the person (`complete` says whether it is enough to ship a kit) and the name and phone the order form needs.
Update the shipping address
Save the patient's shipping address on file.
Look up lab ordering values
Vendor lookups, by name: `siphox-kit-types`, `axiom-catalog`, `axiom_vials-catalog`, `trudiagnostic-skus`, `genova-products`, `getlabs-serviceability`, `getlabs-tests`, `bodyspec-locations`, `bodyspec-availability`. Some take query parameters (a search value, a date); 400 when one is missing, 404 for an unknown lookup.
List lab orders
The patient's lab orders, with vendor, status and payment state.
Place a lab order
Place a lab order for this patient. `key` is a vendor key from GET /ftp-labs/vendors; `items` the products (`integrationProductId`, `quantity`); `metadata` the vendor-specific fields (shipping address, kit type, appointment …); `labOrderDetails` for GetLabs. Prescription vendors are provider-only (403 `PROVIDER_ONLY`). Patient-paid vendors answer with a checkout to complete the payment.
Start a lab payment
Starts the online payment for one or more of the person's unpaid orders and returns the checkout address. `503` `PAYMENTS_UNAVAILABLE` when the clinic has no online payment. The orders come from `GET /ftp-labs/orders`.
Confirm a lab payment
Confirms a payment after the checkout returns, by its `sessionId`.
List lab vendors
The lab vendors the patient can order from at their clinic, with their products and prices; `isProvider` tells whether the caller is a provider (prescription vendors need one).
Place a Vibrant order
Order a Vibrant test kit for the patient: `testCodes`, the blood-draw `collectionDate` (YYYY-MM-DD) and `collectionTime` (HH:MM), and the shipping `address`.
Get Vibrant ordering setup
Vibrant kit ordering setup for this patient: available tests, the shipping address on file, and whether Vibrant ordering is on (403 `VIBRANT_OFF` otherwise).