API Reference

Laboratory orders

Read the laboratory orders your practice has placed, and where each one has got to.

  • Scope: read_lab_orders, granted explicitly. Patient, consultation or result scopes don't include it, and existing keys don't gain it automatically.
  • Statuses: ordered, sample_collected, sent_to_lab, cancelled. Orders with an unknown status are excluded.
  • An order's status is not its result. It doesn't tell you a result is final, has been clinically reviewed, or that every requested test was done. The user who created an order isn't necessarily the clinician who requested it.
  • Orders made in an unsigned consultation still appear. consultation_context records where an order was made; it doesn't decide whether the order is on the record.
  • Returned: id, patient, order number, lab provider, the provider's own test codes (up to 500, each up to 256 characters), sample date and time, status and timestamps. Test codes are the provider's, not a shared catalogue, and the sample time carries no inferred timezone.
  • Not returned: provider payloads, copied demographics, insurance, clinical free text, credentials and URLs.

Listing

Filters: patient_id, status, lab_provider_slug, plus limit (default 20, max 100) and offset (max 100,000). An empty, repeated or unknown parameter returns 422; a patient_id you can't see returns 404, even when it has no orders. Newest first. See Pagination. Responses carry Cache-Control: no-store.

Placing and cancelling orders, and reading results, are not part of this API.

GET/lab-ordersScoperead_lab_orders

List laboratory orders across permitted practice patients

Requires read_lab_orders on a live key. Returns native order workflow status, not result finality or clinical review. Consultation context is provenance, not a visibility switch. Unknown states are excluded. Sort: created_at DESC, id DESC. Unsupported, empty or repeated query parameters are rejected. Provider payloads and copied patient demographics are not exposed.

Query

limitinteger
20
offsetinteger
0
patient_iduuid
No description yet.
statusstring
orderedsample_collectedsent_to_labcancelled
lab_provider_slugstring
No description yet.

Responses

200

Bounded order page with no-store caching

403

Missing live laboratory order read authority

404

Patient filter is not available to this practice

422

Invalid query

500

Read failed

GET/lab-orders/{id}Scoperead_lab_orders

Retrieve one authorised laboratory order

Requires read_lab_orders. Does not accept query parameters. No ordering or cancellation action is provided.

Path

iduuidrequired
No description yet.

Responses

200

Laboratory order metadata with no-store caching

403

Missing live laboratory order read authority

404

Order not available to this practice

422

Invalid identifier or query

500

Read failed

Was this page helpful?