Get Counts
Changed onGets aggregate counts for the visits matching the given filters.
The counts respect all provided filters but are independent of pagination, so this can be fetched once when filters change instead of on every page of get_visits.
IMPORTANT: Like get_visits, this endpoint requires a date filter on appointment.startTimestamp to ensure acceptable query performance.
Request
- Base URLhttps://pre-api.joincandidhealth.com
- URLhttps://pre-api.joincandidhealth.com/appointments/v1/visits/counts
- AuthHTTP bearer
Query parameters
A serialized list of filters separated by commas indicating filters to apply. Each filter is of the form 'path|operator|value'. Example: 'patient.mrn|eq|12345'. Filters are separated by commas. Example: 'patient.mrn|eq|12345,appointment.startDate|gt|67890'. All filters are ANDed together. Valid operators are 'eq', 'gt', 'lt', 'contains', 'ieq', 'in', 'notIn'. ieq is a case-insensitive equality operator. in allows searching for values that match any item in a semicolon-separated list (e.g., 'patient.id|in|foo;bar;baz'). notIn excludes values that match any item in a semicolon-separated list (e.g., 'appointment.locationResourceId|notIn|foo;bar'); rows with no value for that field are still returned. Path values are camelCase.
Required: Must include a date filter on appointment.startTimestamp (using gt, lt, or eq operators). Example: appointment.startTimestamp|gt|2024-01-01
Response
Response with status 200
Changes
- breaking
the response's body type changed from no type to
objectfor status - breaking
the
response's property type changed from no type toobjectfor status - warning
deleted the
headerrequest parameterAuthorization - info
the endpoint scheme security
OAuthSchemewas added to the API - info
for the
queryrequest parameterfilters, the type was generalized from no type tostring - info
added the optional property
/to the response with the status - info
added the optional property
to the response with the status - info
added the required property
/to the response with the status
- breaking
- info
api operation id
get_countsremoved and replaced withv1_get_counts
- info