List labs with access to a patient
List labs with effective access through either an explicit live grant or the active partnership's share-all-patients policy. Clinic only - the patient must belong to the current clinic.
List labs with effective access through either an explicit live grant or the active partnership's share-all-patients policy. Clinic only - the patient must belong to the current clinic.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Path Parameters
Patient ID
Response Body
application/json
curl -X GET "https://example.com/patients/550e8400-e29b-41d4-a716-446655440000/lab-access"{ "labs": [ { "labId": "string", "labName": "string", "grantedAt": null, "accessSource": "explicit", "grantSource": "manual", "sourceOrderId": "string" } ]}Grant lab access to a patient POST
Grant a specific lab explicit access to a patient record. The lab must have an active partnership with the clinic. Clinic only - the patient must belong to the current clinic. Idempotent - granting access twice is a no-op.
Paginated patient list GET
Retrieve a paginated list of patients with order counts. Labs see patients from partnered clinics (respecting share-all-patients and lab access settings). Clinics see only their own. Supports search, sorting, and clinic filtering.