analytics

Patients with N completed sessions in date range

Returns patients who have exactly (or at least) min_sessions completed appointments in [from_date, to_date], optionally filtered by type (psychologist / nutritionist). From patients_with_n_sessions.

get/api/analytics/patients-with-n-sessions

Query parameters

from_datestring date required

Start date (YYYY-MM-DD).

Start date (YYYY-MM-DD).

to_datestring date required

End date (YYYY-MM-DD).

End date (YYYY-MM-DD).

min_sessionsinteger required

Minimum (or exact) number of completed sessions.

Minimum (or exact) number of completed sessions.

typestring nullable

Filter by appointment type: psychologist, nutritionist (lowercase), or omit for both.

Filter by appointment type: psychologist, nutritionist (lowercase), or omit for both.

exactboolean

If true, only patients with exactly min_sessions; if false, patients with >= min_sessions.

If true, only patients with exactly min_sessions; if false, patients with >= min_sessions.

per_pageinteger

Page size.

Page size.

pageinteger

Page number (1-based).

Page number (1-based).

Response

Successful Response

totalinteger required

Total number of rows before pagination

per_pageinteger required

Page size

pageinteger required

Page number.

Changes

No recorded changes to this endpoint across all 1 revision of this API.