analytics

Patient app-access ranking

Ranking of patients by app accesses with aggregates. Optional date range filters the access counts only (recency stays absolute). Coordinator role sees only patients under their supervisors.

get/api/analytics/patient-access

Query parameters

from_datestring date nullable

Range start for access counts (YYYY-MM-DD).

Range start for access counts (YYYY-MM-DD).

to_datestring date nullable

Range end for access counts (YYYY-MM-DD).

Range end for access counts (YYYY-MM-DD).

target_statusesstring nullable

Comma-separated status keys (e.g. attivo,mai pagato). Empty for all.

Comma-separated status keys (e.g. attivo,mai pagato). Empty for all.

frequencystring nullable

Comma-separated frequency levels (never,rarely,occasional,frequent,always), relative to the selected period. Needs from/to.

Comma-separated frequency levels (never,rarely,occasional,frequent,always), relative to the selected period. Needs from/to.

patient_idstring uuid nullable

Filter to a single patient UUID.

Filter to a single patient UUID.

sort_bystring

Sort column.

Sort column.

sort_dirstring

Sort direction: asc or desc.

Sort direction: asc or desc.

per_pageinteger

Page size.

Page size.

pageinteger

Page number (1-based).

Page number (1-based).

Response

Successful Response

Changes