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. You can order a panel for your patient the way the clinic does in its console; after that, in live mode the lab rail owns every transition, in test mode you play it, and you hear about them as events.
Reading needs labs:read; ordering needs labs:write, and labs:read for the panels, the
collection options and the consents an order is confirmed with. A clinic decides each scope
separately from the rest, because lab values are the most sensitive read the API offers, and
neither is in the default grant.
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, or the case filed for a
clinician to read an order you placed yourself (see A clinician reads your own
orders). 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.
Ordering a panel
#The writes in this section (create, confirm, cancel) need labs:write and carry an
Idempotency-Key; the reads (GET/v1/lab_panels, collection options, GET/v1/lab_consents)
need labs:read, so an integration that orders labs holds both.
The patient is charged nothing for an order you write; the lab's cost goes on the organization's
lab account, as a clinic's console order does.
GET/v1/lab_panelslists the panels the organization orders:slug,name,patient_name,fastingand thecollection_methodsin effect for each.POST/v1/lab_orderswithpatient,panel(a slug) and, optionally,collection_methodsto narrow the panel's methods. The order is bornawaiting_patientand announced bylab_order.created.v1. A patient has one open order per panel (409 lab_order_open).GET/v1/lab_orders/{id}/collection_optionswith the patient's address (line1,line2,city,state,postal_code) answers theoptionsyou can confirm (option_id,collection_method,lab,label), the methods that areunavailablewith areason, andlegal_name_required. An at-home kit, a walk-in and a draw at home are all confirmed here; a draw at home is then booked (see Booking a draw at home).GET/v1/lab_consentsserves the documents the patient accepts first, each with itsversionandsha256, the SHA-256 ofbodyas UTF-8 in lowercase hex.POST/v1/lab_orders/{id}/confirmwithoption_id,address,legal_name(first_name,last_name, required when the options said so) andconsents, one{ type, version, accepted_at, text_sha256 }per document. Anaccepted_atin the future, or before that version took effect, is refused. The order staysawaiting_patientwithconfirmed_atset, and the lab rail places it minutes later (lab_order.placed.v1).
POST/v1/lab_orders/{id}/cancel with a reason cancels an order nobody placed yet, confirmed or
not, that you may confirm. An order a clinician asked for answers 409 lab_order_required: only the
clinician waives it. An order the clinic placed in its console, or the patient ordered, answers
409 conflict.
An order a clinician requested while reviewing one of your cases is confirmed the same way, once
lab_order.created.v1 names it with its case.
Booking a draw at home
#A draw at home (collection_method: phlebotomy) is a phlebotomist's visit to the collection address
the confirm gave. Once the order is placed (lab_order.placed.v1), book its visit; until the sample
is collected you may move or cancel it. These routes answer 409 lab_order_not_schedulable for an
order that is not your placed draw at home, or whose sample is being taken.
GET/v1/lab_orders/{id}/appointment_options(optionally?start_date=YYYY-MM-DD) lists the opendays, each with itstimezoneandslots(booking_key,start,end), and thecancellation_reasonsa cancel may name. Abooking_keyexpires: list again rather than keep one.POST/v1/lab_orders/{id}/appointmentwith abooking_keybooks it. On an order that already holds an appointment it moves the appointment there. A window someone else just took answers409 conflict; list again and pick another.POST/v1/lab_orders/{id}/appointment/cancelwith areason_idcancels the visit. The order stays placed, so you can book again. A cancel under 24 hours before the visit is billed to the organization as a late cancel.
Both writes need labs:write and an Idempotency-Key, and answer the lab order with its
appointment (status, start_at, end_at, timezone) as the lab network just confirmed it.
Reads of the order show the appointment as the lab network reports it, within a minute, including a
change the phlebotomy service makes itself. Each change to the appointment that leaves the order's
status where it was (a booking, a move, a cancel, by you, the patient or the phlebotomy service) is
announced by lab_order.updated.v1.
code | Status | What to do |
|---|---|---|
lab_panel_unavailable | 404 | The panel is not one the organization orders; read GET/v1/lab_panels |
patient_ineligible | 422 | The chart lacks what the lab network needs; issues name each block (missing_dob, under_18, missing_sex, missing_phone, missing_email) |
lab_order_open | 409 | The patient already has this panel on order; read it rather than ordering again |
collection_unavailable | 422 | The option or the state is not served at that address; ask again with another |
consent_required | 409 | A consent is missing, not its current version, or accepted before that version took effect; show the patient GET/v1/lab_consents again |
lab_order_not_confirmable | 409 | The order is placed, cancelled or already confirmed |
lab_order_required | 409 | A clinician requires the order; only the clinician waives it |
lab_order_not_schedulable | 409 | The order is not a placed draw at home yet, or its sample is collected |
labs_unavailable | 503 | Lab ordering is not set up for the organization yet, or the lab network is not answering |
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.
A clinician reads your own orders
#An order no clinician asked for that you confirm (one you placed with POST/v1/lab_orders, or one
your clinic placed) has no case until its first report is released. The report reaches you then, as
every report does, and a case is filed for a Cuvo clinician to read it:
it names your patient, asks for no medication, answers nothing, and is announced by
case.queued.v1 (case.received.v1 while your organization's account is on hold). The order's
case names it from then on. The clinician reads the report on the patient's chart, where an
abnormal or critical value is flagged, and decides the case as any other, answering your patient in
the case's clinician_note; a correction reaches the same case. A critical value, on this case or on
one whose clinician asked for labs, also pages the clinicians who can review the case, by text and
email, once per report. Each such case is a consultation. An order whose first report was released
before 2026-11-28, when this began, gets no case.
A case is filed only where POST/v1/cases would accept one for the patient: with a state on the
patient's record, served by a clinician licensed there and decided asynchronously (GET/v1/states
publishes what each state requires). Otherwise no case is filed for that order, and its case
stays null; the report still reaches you.
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, lab_order.status_changed.v1 and lab_order.updated.v1 carry the order's
status when the event was written; read the order for the current one. lab_order.updated.v1
announces a change that moved no status, a draw at home's appointment today, so read the order to
see what changed (in test mode, include_resource embeds it). An order is first announced by lab_order.created.v1
when it is written, whoever wrote it (the clinic, a clinician or an integration), with the status
awaiting_patient. 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
four 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 lab_order_open |
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.
So do the ordering operations: GET/v1/lab_panels lists the three panels,
each by all three methods, and GET/v1/lab_consents serves the live documents with the same
versions and hashes. Every address is offered a kit from Quest and a walk-in at Quest or Labcorp,
except one in a state the lab network does not serve (New York, New Jersey, Rhode Island), which
answers 422 collection_unavailable as in live mode. A confirm is refused as in live mode and leaves the order awaiting_patient until /place or
autopilot places it with the confirmed choice. The public cancel refuses an order that names a case
with 409 lab_order_required.
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.
The first report on an order with no case files a queued case for the clinician to read it, as in live mode, and the order names that case from then on.