Skip to main content

prescriptions

This query fetches a collection of prescriptions that were issued within the specified DateRange. The query can be further refined through the use of QueryOptions to include records that have been deleted, it should be noted that createdAt and updatedAt are not applicable to prescriptions. 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.

prescriptions(
dateRange: DateRange
pagination: Pagination
cursorPagination: CursorPagination
options: QueryOptions
filters: PrescriptionQueryFilters
): PrescriptionData

Arguments

prescriptions.dateRange ● DateRange input

prescriptions.pagination ● Pagination input

prescriptions.cursorPagination ● CursorPagination input

Cursor-based pagination alternative to pagination. Mutually exclusive with pagination. Use the last prescription's id as cursor for the next page. Results are always ordered by _id ascending for NEXT (and descending then reversed for PREVIOUS).

prescriptions.options ● QueryOptions input

Note: createdAt and updatedAt are not applicable to prescriptions.

prescriptions.filters ● PrescriptionQueryFilters input

Type

PrescriptionData object

A collection of prescriptions 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).