List patients
| Method | Path |
|---|---|
GET | /v1/slim/patient |
Authentication · Access policies
Lists the residents (patients) of your project with their zone, room, device and settings tags. Use it for the residents table in the Slim dashboard.
Auth: Bearer token. The caller must be a practitioner, an admin, a super admin, or hold the "System Owner" access policy. The access policy must grant Patient:search, Patient:read, Device:read, Location:read and Organization:read (admins and super admins skip this check).
Scope: The caller's project (from the token). A token without a project is refused.
Behaviour
- Read-only.
- One row per resident. When a resident is on several devices, the row shows one of them, so a resident is never listed twice.
residentStatedefaults toactive, so discharged residents are hidden unless you ask for them.discharged-recentmeans discharged within the last 30 days;dischargedmeans longer ago.allturns the filter off.includeDischargedRecent=truewidensresidentState=activeorresidentState=dischargedto also includedischarged-recentresidents.organizationIdkeeps residents in that zone.hasDevice=truekeeps residents with a device;hasDevice=falsekeeps residents without one.medicalSettingsandbedActivitySettingskeep residents with that settings tag. These tags arenullwhen Ovok could not read the project's threshold settings; such rows match no settings filter.searchis a case-insensitive substring match on the resident's name, nickname, room name and zone name.- Sort with
sortBy(defaultpatientName) andorderBy(ASCorDESC, any case, defaultASC). - Pagination is zero-based:
page(default0) andcount(default20, max100).totalcounts all matching rows. - Fields with no value are
null. - Results are cached for up to 60 seconds per user. A change to a resident, device, room or zone made through Ovok clears the cache.
Example
curl -X GET 'https://api.sandbox.ovok.com/v1/slim/patient?residentState=active&sortBy=patientNickname&orderBy=asc&page=0&count=20' \
-H "Authorization: Bearer ${OVOK_TOKEN}"
Successful response
200 — Patients retrieved successfully.
Errors
| Status | Meaning |
|---|---|
401 | Bearer token is missing, invalid or expired. |
403 | You are not a practitioner, admin or System Owner, you lack Patient:search, Patient:read, Device:read, Location:read or Organization:read, your session has no project, or you cannot access the project. |
422 | A query parameter fails validation. |