labs
This query fetches a collection of pathology requests that were submitted to the processing lab within the specified date range. The collection can be furter refined through the use of LabQueryOptions. Prefer cursorPagination for large result sets (for example sync/export); deep offset pages remain expensive even with indexes. Existing pagination: { page, pageSize } behaviour is unchanged. Do not provide pagination and cursorPagination together.
labs(
dateRange: DateRange
pagination: Pagination
cursorPagination: CursorPagination
options: LabQueryOptions
): LabData
Arguments
labs.dateRange ● DateRange input
labs.pagination ● Pagination input
labs.cursorPagination ● CursorPagination input
Cursor-based pagination alternative to pagination. Mutually exclusive with pagination. Use the last lab request's id as cursor for the next page. Results are always ordered by _id ascending for NEXT (and descending then reversed for PREVIOUS).
labs.options ● LabQueryOptions input
Type
LabData object
A collection of pathology requests and the related pagination information. With offset pagination, pageInfo is a standard PageInfo. With cursorPagination, pageInfo uses the PageInfoForCursorPagination shape (pageSize and hasMore only; page is unset).