analytics

Patient frequency compliance using Report evaluation rules

Changed on

Frequency compliance aggregates and the paginated patient table for patients with at least one completed clinical session. Dates select ongoing frequency violations that began in the period (Europe/Rome), not patient entry dates. The table defaults to evaluable patients. status and severity narrow the table only; path narrows the table and, together with operator_id, the aggregates. Coordinator role sees only patients under their supervisors.

get/api/analytics/patient-frequency

Request

  • Base URL: https://api.corabea.it (the document declares no server; this is the origin it was published from)
  • URL: https://api.corabea.it/api/analytics/patient-frequency
  • Auth: HTTP bearer

Query parameters

from_datestring date nullable

Start of the frequency violation period (YYYY-MM-DD, Europe/Rome).

to_datestring date nullable

End of the frequency evaluation period (YYYY-MM-DD), inclusive.

supervisor_idstring uuid nullable

Supervisor of the psychologist or the nutritionist.

operator_idstring uuid nullable

Psychologist or nutritionist UUID; either path unless path is set.

path'PSICOLOGO' | 'NUTRIZIONISTA'

Operator profession constants.

Evaluate status, severity and operator_id on this path only.

target_statusesstring nullable

Comma-separated path status keys (e.g. attivo_psi, monitoraggio).

'respected' | 'not_respected' | 'not_evaluable'
OR
'evaluable'
severity'regular' | 'attention' | 'risk'
searchstring nullable

Case-insensitive patient search.

sort_by'full_name' | 'email' | 'patient_registration_at' | 'supervisor_psychologist_name' | 'psychologist_name' | 'first_psi' | 'last_psi' | 'next_psi' | 'done_psi' | 'psychology_frequency_status' | 'psychology_frequency_due_at' | 'supervisor_nutritionist_name' | 'nutritionist_name' | 'first_nutri' | 'last_nutri' | 'next_nutri' | 'done_nutri' | 'nutrition_frequency_status' | 'nutrition_frequency_due_at' | 'assigned_experts' | 'total_spent' | 'days_since_first_appointment' | 'days_since_last_appointment' | 'frequency' nullable

Defaults to frequency: risk first, then earliest deadline.

sort_dir'asc' | 'desc' nullable
per_pageinteger
pageinteger

Response

Successful Response

Changes