analytics

Patient detail list with filters (backend-filtered)

Returns patient detail rows from mv_analytics_patients for the given date range and target_statuses, filtered by operator, role, supervisor. Coordinator role sees only patients under their supervisors.

get/api/analytics/corabea-method

Query parameters

from_datestring date required

Period start date (YYYY-MM-DD).

Period start date (YYYY-MM-DD).

to_datestring date required

Period end date (YYYY-MM-DD).

Period end date (YYYY-MM-DD).

target_statusesstring required

Comma-separated target status keys (e.g. attivo,da_riprenotare or attivo_psi,attivo_nutri).

Comma-separated target status keys (e.g. attivo,da_riprenotare or attivo_psi,attivo_nutri).

operator_idstring uuid nullable

Filter by psychologist or nutritionist UUID.

Filter by psychologist or nutritionist UUID.

role'psychologist' | 'nutritionist' nullable
supervisor_idstring uuid nullable

Filter by supervisor (psychologist or nutritionist).

Filter by supervisor (psychologist or nutritionist).

searchstring nullable

Case-insensitive patient search.

Case-insensitive patient search.

sort_by'full_name' | 'email' | 'patient_registration_at' | 'supervisor_psychologist_name' | 'psychologist_name' | 'first_psi' | 'last_psi' | 'next_psi' | 'delta_psi' | 'done_psi' | 'expected_psi' | 'freq_psi_days' | 'percentage_psi' | 'supervisor_nutritionist_name' | 'nutritionist_name' | 'first_nutri' | 'last_nutri' | 'next_nutri' | 'delta_nutri' | 'done_nutri' | 'expected_nutri' | 'freq_nutri_days' | 'percentage_nutri' | 'assigned_experts' | 'total_spent' nullable
sort_dir'asc' | 'desc' nullable
per_pageinteger
pageinteger

Response

Successful Response

totalinteger required

Patients matching filters before pagination

per_pageinteger required
pageinteger required

Changes

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