Skip to content

List labs

Request

Retrieve lab orders and results for the location. Supports filtering by patient, status, vendor, and entry date range.

Security
PartnerApiKey and PartnerOAuth
Path
accountIdinteger, (int64)required

Account identifier

locationIdinteger, (int64)required

Location identifier

Query
patientIdinteger, (int64)

Filter by patient ID

appointmentIdinteger, (int64)

Filter by appointment ID

statusstring(?i)PROCESSING|COMPLETE|ORDER_ERROR

Filter by status (PROCESSING, COMPLETE, ORDER_ERROR)

Enum:"PROCESSING""COMPLETE""ORDER_ERROR"
vendorTypestring(?i)IN_HOUSE|ACCESS_MEDICAL|LABCORP|PRIME|BRI...

Filter by vendor type (IN_HOUSE, ACCESS_MEDICAL, LABCORP, PRIME, BRIO, SPOTDX, OTHER)

Enum:"IN_HOUSE""ACCESS_MEDICAL""LABCORP""PRIME""BRIO""SPOTDX""OTHER"
startDatestring

Start of entry date range (ISO 8601). Filters labs by entryOn.

endDatestring

End of entry date range (ISO 8601). Filters labs by entryOn.

sortBystring(?i)ENTRY_DATE|CREATED_DATE

Sort by field

Default:"ENTRY_DATE"
Enum:"ENTRY_DATE""CREATED_DATE"
sortDirstring(?i)ASC|DESC

Sort direction

Default:"DESC"
Enum:"ASC""DESC"
cursorstring, [ 0 .. 2048 ] characters

Pagination cursor from previous response

limitinteger, (int32), [ 1 .. 1000 ]

Number of results per page (max 1000)

Default:20
Example:limit=20
curl -i -X GET \
  'https://api-docs.lobbie.com/_mock/openapi/partner/v2/account/{accountId}/location/{locationId}/lab?patientId=0&appointmentId=0&status=PROCESSING&vendorType=IN_HOUSE&startDate=string&endDate=string&sortBy=ENTRY_DATE&sortDir=ASC&cursor=string&limit=20' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'x-api-key: YOUR_API_KEY_HERE'

Responses

Labs retrieved successfully

Bodyapplication/json
labsArray of objects(LabDTO)

List of labs

nextCursorstring

Opaque cursor for fetching the next page

Response
{ "labs": [ {} ], "nextCursor": "string" }