Labs
Lab orders placed through Cuvo's lab network, the reports that come back, corrections, and the short-lived PDF link.
A lab order is one panel a patient is tested for through Cuvo's lab network. It was asked for by the clinic, by a clinician reviewing a case, or by the patient. A lab result is a report that came back for an order. Both are read-only here: in live mode the lab rail owns every transition, in test mode you play it, and you hear about them as events.
Every operation on this page needs labs:read. A clinic decides that scope separately from the
rest, because lab values are the most sensitive read the API offers.
Lab orders
GET /v1/lab_orders lists the organization's orders, newest first.
curl "https://api.cuvo.co/v1/lab_orders?patient=pat_9f2c1a7b&updated_after=2026-10-01T00:00:00Z" \
-H "Authorization: Bearer cuvo_sk_live_…"
{
"data": [
{
"id": "lbo_3c9e1f20",
"patient": "pat_9f2c1a7b",
"case": "case_7d1e4b2a",
"panel": { "slug": "testosterone", "name": "Testosterone, total and free" },
"status": "at_lab",
"collection_method": "at_home_kit",
"lab": "quest",
"requested_by": "clinician",
"cancelled_at": null,
"created_at": "2026-10-12T15:02:11Z",
"updated_at": "2026-10-14T09:40:03Z"
}
],
"has_more": false
}
patient,statusandupdated_afterfilter the list.updated_afterreturns orders changed strictly after that moment, so pass back the newestupdated_atyou have seen.limitandstarting_afterpage it. See Pagination.GET /v1/lab_orders/{id}reads one.
status is one of awaiting_patient, placed, collecting, at_lab, final, cancelled or
failed. awaiting_patient waits for the patient to choose how they are collected; final means
the report is in or on its way.
patient is null only while an order a patient placed for themselves is not linked to a chart yet.
case names the case whose clinician asked for the order, when one did. collection_method and
lab are null until the patient chooses. Nothing here names the lab network's own ids, a price, or
the person who placed the order beyond requested_by.
Results
GET /v1/lab_orders/{id}/results lists an order's reports, highest version first.
GET /v1/lab_results/{id} reads one.
{
"id": "lbr_8a41d7c2",
"lab_order": "lbo_3c9e1f20",
"patient": "pat_9f2c1a7b",
"version": 1,
"flag": "abnormal",
"collected_at": "2026-10-13T08:15:00Z",
"reported_at": "2026-10-14T09:38:51Z",
"released_at": "2026-10-14T09:40:03Z",
"values": [
{
"biomarker": "2986-8",
"name": "Testosterone, total",
"value_numeric": 212,
"value_text": "212",
"unit": "ng/dL",
"reference_range": { "low": 264, "high": 916, "text": "264-916" },
"flag": "abnormal",
"observed_at": "2026-10-13T08:15:00Z"
}
],
"pdf_url": "https://…",
"pdf_url_expires_at": "2026-10-14T09:45:03Z",
"created_at": "2026-10-14T09:40:03Z"
}
biomarkeris the stable key to trend a marker by: its LOINC code, else the lab's own marker id.value_textis always what the lab printed.value_numericis the same value as a number, when it is one.flagisnormal,abnormal,criticalorunknown. A report's flag is the worst of its values.
Only released reports
A report appears here once it is released, the moment the patient can see it, and never before. A report a clinic filed by hand from an outside lab is part of the clinic's own record and is never served, whether or not it was shared with the patient.
Corrections
When the lab corrects a report, the correction is a new result with its own lbr_ id and the next
version, and it fires its own lab_result.final.v1. Earlier versions stay readable. The highest
version is current.
The PDF link
pdf_url is minted for the response that carries it and expires five minutes later, at
pdf_url_expires_at. Follow it right away and never store it: read the result again for a fresh
link. It is null when no PDF is on file.
Events
lab_order.placed.v1 and lab_order.status_changed.v1 carry the order's status when the event was
written; read the order for the current one. An order is first announced when it is placed, so one
still waiting on the patient shows up only in the list. An order a clinician requested during a case
review also carries case. lab_result.final.v1 fires once per released version and carries no
status. No lab event carries patient: read it from the order or the result. See
Events and realtime for the shape.
Lab events reach an integration only when the organization's grant includes labs:read. A grant
without it hears nothing about lab work, by webhook, poll or realtime, and a grant that gains the
scope hears from that point on.
Test mode
The sandbox runs a lab of its own, and it behaves as the live rail does: the same statuses, the same
three events, the same hold on a case. You play the patient and the lab network with the controls
under /v1/test/lab_orders, which need test:manage.
| Operation | What it plays |
|---|---|
POST /v1/test/lab_orders | An order for patient and panel, born awaiting_patient. With case, the clinician working that case asked for it, and it waives the case's failed or lab-cancelled order of the same panel. A patient has one open order per panel, so a second answers 409 conflict |
POST /v1/test/lab_orders/{id}/place | The patient choosing how they are collected and confirming: placed, with an optional collection_method (default walk_in) and lab (quest, the default, or labcorp). On an order the lab network failed or cancelled, the re-order |
POST /v1/test/lab_orders/{id}/collect | The sample being collected |
POST /v1/test/lab_orders/{id}/receive | The sample reaching the lab: at_lab |
POST /v1/test/lab_orders/{id}/result | The report, with an outcome of normal (the default), abnormal or critical. The first makes the order final; a later one is a correction, released as the next version |
POST /v1/test/lab_orders/{id}/cancel | A cancel: the lab network's own while the lab has the order, otherwise a person's |
POST /v1/test/lab_orders/{id}/fail | The lab network failing the order |
Progress only moves forward and may skip a step, so /result straight after /place is fine, and a
report means the sample was collected. Every version of a report carries the same collected_at
and observed_at, because it reports the one sample. The
sandbox lab runs three panels, each reporting its markers under their LOINC codes:
testosterone-total-free (2986-8 total, 2991-8 free), complete-blood-count (4544-3
hematocrit, 718-7 hemoglobin, 6690-2 white cells, 777-3 platelets) and psa-total
(2857-1). An abnormal or critical outcome is carried by the first marker listed, and the rest
read in range. A sandbox report has no PDF, so pdf_url and pdf_url_expires_at are null. The three slugs
are the sandbox's own: a live order's panel is whichever panel the clinic's lab catalogue holds,
so read it from the order rather than pinning these slugs in code that serves live traffic.
The four reads answer from the sandbox under a test key, with the same filters and paging as live.
The hold on a case
An order that names a case holds it, as a clinician's request does in live mode. A queued case is
picked up first (case.in_review.v1), then waits as waiting_on_patient with no question asked and
no event of its own. A message does not lift the hold. While any order on the case is unsettled,
POST /v1/test/cases/{id}/decision refuses an approval or a question with 409 conflict. A
decline is still accepted: the hold ends first, then the case is declined from in_review, and
every order on the case that was never placed is cancelled, as cancelling the case does.
The hold's waiting_on_patient appears in the case's status history only while the hold lasts,
as in live mode: once it ends, the history reads as if the case had stayed in review.
An order is settled once it is resulted, or waived: cancelled by a person, which stamps
cancelled_at. A failed order and one the lab network cancelled still hold the case. Waive one
with /cancel (again, for a lab's cancel), re-order it with /place, or order the panel again on
the case, which waives the old one. A waived order stays cancelled. When the last order holding a
case settles, the case returns to in_review, again with no event, and can be approved.
Autopilot has a labs timer, lab_result_after_s, that places an open order and
then reports it normal, waiting that long before each step. Its approval timer then takes the
case once every lab order on it is settled.