Slim resource
Generated reference for ovok_sdk: slim resource.
- Stable unknown
- Release candidate since 0.1.0-rc.4
- Development since 0.1.0-dev.23+d339d81
NotificationTargetKind
enum NotificationTargetKindThe kind of notification a note is attached to; see SlimNotificationNotesResource.list.
Values
NotificationTargetKind.oob
static const NotificationTargetKind oobAn out-of-bed notification.
NotificationTargetKind.alarm
static const NotificationTargetKind alarmA device alarm.
NotificationTargetKind.medical
static const NotificationTargetKind medicalA medical episode.
NotificationTargetKind.alert
static const NotificationTargetKind alertA raw alert.
SlimAlarmsResource
class SlimAlarmsResourceDevice alarms. Reached through ovok.slim.notifications.alarms.
Constructors
SlimAlarmsResource.new
SlimAlarmsResource(HttpClient _http)Built by SlimNotificationsResource; use ovok.slim.notifications.alarms instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
SlimAlarmsResource.list
Future<JsonMap> list([QueryParams query = const {}])Lists alarms. Calls GET v1/slim/notifications/alarms.
| Parameter | Type | Kind | Default |
|---|---|---|---|
query | QueryParams | optional positional | const {} |
Returns Future<Map<String, dynamic>>.
SlimAlarmsResource.recent
Future<JsonMap> recent([QueryParams query = const {}])Lists recent alarms. Calls GET v1/slim/notifications/recent/alarms.
| Parameter | Type | Kind | Default |
|---|---|---|---|
query | QueryParams | optional positional | const {} |
Returns Future<Map<String, dynamic>>.
SlimAlarmsResource.acknowledge
Future<JsonMap> acknowledge(String notificationId)Acknowledges an alarm.
Calls PATCH v1/slim/notifications/{notificationId}/ack; safe to retry.
| Parameter | Type | Kind | Default |
|---|---|---|---|
notificationId | String | positional |
Returns Future<Map<String, dynamic>>.
SlimChangeHistoryResource
class SlimChangeHistoryResourceThe change history of Slim resources. Reached through ovok.slim.changeHistory.
Constructors
SlimChangeHistoryResource.new
SlimChangeHistoryResource(HttpClient _http)Built by SlimResource; use ovok.slim.changeHistory instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
SlimChangeHistoryResource.list
Future<Page<JsonMap>> list([QueryParams query = const {}])Lists changes. Calls GET v1/slim/change-history.
query filters the list; types is sent as repeated types[] and other
lists repeat their key. Its page (0-based) is the first page loaded.
| Parameter | Type | Kind | Default |
|---|---|---|---|
query | QueryParams | optional positional | const {} |
Returns Future<Page<Map<String, dynamic>>>.
SlimChildProjectsResource
class SlimChildProjectsResourceChild projects. Reached through ovok.slim.projects.children.
Constructors
SlimChildProjectsResource.new
SlimChildProjectsResource(HttpClient _http)Built by SlimProjectsResource; use ovok.slim.projects.children instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
SlimChildProjectsResource.list
Future<JsonMap> list()Lists child projects. Calls GET v1/slim/project/child.
Returns Future<Map<String, dynamic>>.
SlimChildProjectsResource.create
Future<JsonMap> create(JsonMap body)Creates a child project from body. Calls POST v1/slim/project/child.
| Parameter | Type | Kind | Default |
|---|---|---|---|
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
SlimChildProjectsResource.delete
Future<JsonMap> delete(String subProjectId)Deletes a child project. Calls DELETE v1/slim/project/child/{subProjectId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
subProjectId | String | positional |
Returns Future<Map<String, dynamic>>.
SlimDevicesResource
class SlimDevicesResourceDevices in the Slim care API. Reached through ovok.slim.devices.
Identical live, liveTelemetry and telemetry reads made at the same time
by the same signed-in user share one request.
Constructors
SlimDevicesResource.new
SlimDevicesResource(HttpClient http, [UserSession? session])Built by SlimResource; use ovok.slim.devices instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
http | HttpClient | positional | |
session | UserSession? | optional positional |
Methods
SlimDevicesResource.list
Future<Page<JsonMap>> list([QueryParams query = const {}])Lists devices. Calls GET v1/slim/device.
query filters the list; its page (0-based) is the first page loaded.
The returned Page fetches the following pages.
| Parameter | Type | Kind | Default |
|---|---|---|---|
query | QueryParams | optional positional | const {} |
Returns Future<Page<Map<String, dynamic>>>.
SlimDevicesResource.retrieve
Future<JsonMap> retrieve(String deviceId)Retrieves one device. Calls GET v1/slim/device/{deviceId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
deviceId | String | positional |
Returns Future<Map<String, dynamic>>.
SlimDevicesResource.create
Future<JsonMap> create(JsonMap body)Creates a device from body. Calls POST v1/slim/device.
| Parameter | Type | Kind | Default |
|---|---|---|---|
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
SlimDevicesResource.update
Future<JsonMap> update(String deviceId, JsonMap body)Replaces a device with body. Calls PUT v1/slim/device/{deviceId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
deviceId | String | positional | |
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
SlimDevicesResource.delete
Future<void> delete(String deviceId)Deletes a device. Calls DELETE v1/slim/device/{deviceId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
deviceId | String | positional |
Returns Future<void>.
SlimDevicesResource.assignToProject
Future<JsonMap> assignToProject(JsonMap body)Assigns devices to a project as body describes.
Calls PUT v1/slim/device/assign/project.
| Parameter | Type | Kind | Default |
|---|---|---|---|
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
SlimDevicesResource.live
Future<Page<JsonMap>> live([QueryParams query = const {}])Lists devices with their live state. Calls GET v1/slim/device/live.
query filters the list; its page (0-based) is the first page loaded.
Throws OvokValidationException before sending when count is not an
integer from 1 to 100.
| Parameter | Type | Kind | Default |
|---|---|---|---|
query | QueryParams | optional positional | const {} |
Returns Future<Page<Map<String, dynamic>>>.
SlimDevicesResource.liveTelemetry
Future<JsonMap> liveTelemetry([QueryParams query = const {}])Retrieves live telemetry keyed by device.
Calls GET v1/slim/device/live/telemetry.
Throws OvokValidationException before sending when count in query
is not an integer from 1 to 100.
| Parameter | Type | Kind | Default |
|---|---|---|---|
query | QueryParams | optional positional | const {} |
Returns Future<Map<String, dynamic>>.
SlimDevicesResource.telemetry
Future<JsonMap> telemetry(String deviceId)Retrieves one device's telemetry. Calls GET v1/slim/telemetry/{deviceId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
deviceId | String | positional |
Returns Future<Map<String, dynamic>>.
SlimDevicesResource.effectiveObservationIds
Future<JsonMap> effectiveObservationIds(String deviceId)Retrieves the IDs of the Observations in effect for one device.
Calls GET v1/slim/telemetry/{deviceId}/effectiveIds.
| Parameter | Type | Kind | Default |
|---|---|---|---|
deviceId | String | positional |
Returns Future<Map<String, dynamic>>.
SlimDevicesResource.effectiveObservationIdsByDevice
Future<JsonMap> effectiveObservationIdsByDevice()Retrieves the IDs of the Observations in effect, keyed by device.
Calls GET v1/slim/telemetry/effectiveIds.
Returns Future<Map<String, dynamic>>.
SlimDevicesResource.lastObservationIds
Future<JsonMap> lastObservationIds(String deviceId)Retrieves the IDs of one device's latest Observations.
Calls GET v1/slim/telemetry/{deviceId}/lastIds.
| Parameter | Type | Kind | Default |
|---|---|---|---|
deviceId | String | positional |
Returns Future<Map<String, dynamic>>.
SlimDevicesResource.lastObservationIdsByDevice
Future<JsonMap> lastObservationIdsByDevice()Retrieves the IDs of the latest Observations, keyed by device.
Calls GET v1/slim/telemetry/lastIds.
Returns Future<Map<String, dynamic>>.
SlimExportsResource
class SlimExportsResourcePDF exports. Reached through ovok.slim.exports.
Constructors
SlimExportsResource.new
SlimExportsResource(HttpClient _http)Built by SlimResource; use ovok.slim.exports instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
SlimExportsResource.patientPdf
Future<JsonMap> patientPdf(JsonMap body)Exports a resident report as a PDF, as body describes.
Calls POST v1/slim/export/pdf.
| Parameter | Type | Kind | Default |
|---|---|---|---|
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
SlimLocationsResource
class SlimLocationsResourceLocations such as rooms and beds. Reached through ovok.slim.locations.
Constructors
SlimLocationsResource.new
SlimLocationsResource(HttpClient _http)Built by SlimResource; use ovok.slim.locations instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
SlimLocationsResource.list
Future<Page<JsonMap>> list([QueryParams query = const {}])Lists locations. Calls GET v1/slim/location.
query filters the list; its page (0-based) is the first page loaded.
The returned Page fetches the following pages.
| Parameter | Type | Kind | Default |
|---|---|---|---|
query | QueryParams | optional positional | const {} |
Returns Future<Page<Map<String, dynamic>>>.
SlimLocationsResource.retrieve
Future<JsonMap> retrieve(String locationId)Retrieves one location. Calls GET v1/slim/location/{locationId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
locationId | String | positional |
Returns Future<Map<String, dynamic>>.
SlimLocationsResource.create
Future<JsonMap> create(JsonMap body)Creates a location from body. Calls POST v1/slim/location.
| Parameter | Type | Kind | Default |
|---|---|---|---|
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
SlimLocationsResource.update
Future<JsonMap> update(String locationId, JsonMap body)Replaces a location with body. Calls PUT v1/slim/location/{locationId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
locationId | String | positional | |
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
SlimLocationsResource.delete
Future<void> delete(String locationId)Deletes a location. Calls DELETE v1/slim/location/{locationId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
locationId | String | positional |
Returns Future<void>.
SlimMedicalNotificationsResource
class SlimMedicalNotificationsResourceMedical notification episodes. Reached through ovok.slim.notifications.medical.
Constructors
SlimMedicalNotificationsResource.new
SlimMedicalNotificationsResource(HttpClient _http)Built by SlimNotificationsResource; use ovok.slim.notifications.medical instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
SlimMedicalNotificationsResource.list
Future<Page<JsonMap>> list([QueryParams query = const {}])Lists medical episodes. Calls GET v1/slim/notifications/medical.
query filters the list; a cursor in it starts from that page.
The returned Page follows nextCursor and has no total.
Fails with OvokValidationException before sending when codes is not a
list of 1 to 32 LOINC codes or PI.
| Parameter | Type | Kind | Default |
|---|---|---|---|
query | QueryParams | optional positional | const {} |
Returns Future<Page<Map<String, dynamic>>>.
SlimMedicalNotificationsResource.recent
Future<JsonMap> recent([QueryParams query = const {}])Lists recent medical episodes. Calls GET v1/slim/notifications/recent/medical.
| Parameter | Type | Kind | Default |
|---|---|---|---|
query | QueryParams | optional positional | const {} |
Returns Future<Map<String, dynamic>>.
SlimMedicalNotificationsResource.retrieve
Future<JsonMap> retrieve(String episodeId)Retrieves one medical episode. Calls GET v1/slim/notifications/medical/{episodeId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
episodeId | String | positional |
Returns Future<Map<String, dynamic>>.
SlimMedicalNotificationsResource.acknowledge
Future<JsonMap> acknowledge(String episodeId)Acknowledges a medical episode.
Calls POST v1/slim/notifications/medical/{episodeId}/ack; safe to retry.
| Parameter | Type | Kind | Default |
|---|---|---|---|
episodeId | String | positional |
Returns Future<Map<String, dynamic>>.
SlimNotificationNotesResource
class SlimNotificationNotesResourceNotes on notifications. Reached through ovok.slim.notifications.notes.
Constructors
SlimNotificationNotesResource.new
SlimNotificationNotesResource(HttpClient _http)Built by SlimNotificationsResource; use ovok.slim.notifications.notes instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
SlimNotificationNotesResource.list
Future<JsonMap> list(NotificationTargetKind kind, String targetId)Lists the notes on one notification of kind.
Calls GET v1/slim/notifications/{oob|alarms|medical|raw-alerts}/{targetId}/notes.
| Parameter | Type | Kind | Default |
|---|---|---|---|
kind | NotificationTargetKind | positional | |
targetId | String | positional |
Returns Future<Map<String, dynamic>>.
SlimNotificationNotesResource.create
Future<JsonMap> create(JsonMap body)Creates a note from body. Calls POST v1/slim/notifications/notes.
| Parameter | Type | Kind | Default |
|---|---|---|---|
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
SlimNotificationNotesResource.update
Future<JsonMap> update(String noteId, JsonMap body)Replaces a note with body. Calls PUT v1/slim/notifications/notes/{noteId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
noteId | String | positional | |
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
SlimNotificationNotesResource.patch
Future<JsonMap> patch(String noteId, JsonMap body)Changes the fields of a note in body.
Calls PATCH v1/slim/notifications/notes/{noteId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
noteId | String | positional | |
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
SlimNotificationNotesResource.delete
Future<void> delete(String noteId)Deletes a note. Calls DELETE v1/slim/notifications/notes/{noteId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
noteId | String | positional |
Returns Future<void>.
SlimNotificationsResource
class SlimNotificationsResourceNotifications in the Slim care API. Reached through ovok.slim.notifications.
Constructors
SlimNotificationsResource.new
SlimNotificationsResource(HttpClient http)Built by SlimResource; use ovok.slim.notifications instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
http | HttpClient | positional |
Properties
SlimNotificationsResource.alarms
final SlimAlarmsResource alarmsDevice alarms.
SlimNotificationsResource.outOfBed
final SlimOutOfBedResource outOfBedOut-of-bed notifications.
SlimNotificationsResource.medical
final SlimMedicalNotificationsResource medicalMedical notification episodes.
SlimNotificationsResource.notes
final SlimNotificationNotesResource notesNotes on notifications.
Methods
SlimNotificationsResource.list
Future<JsonMap> list([QueryParams query = const {}])Lists notifications of every kind. Calls GET v1/slim/notifications.
| Parameter | Type | Kind | Default |
|---|---|---|---|
query | QueryParams | optional positional | const {} |
Returns Future<Map<String, dynamic>>.
SlimNotificationsResource.recent
Future<JsonMap> recent([QueryParams query = const {}])Lists recent notifications of every kind.
Calls GET v1/slim/notifications/recent.
| Parameter | Type | Kind | Default |
|---|---|---|---|
query | QueryParams | optional positional | const {} |
Returns Future<Map<String, dynamic>>.
SlimOrganizationsResource
class SlimOrganizationsResourceOrganizations. Reached through ovok.slim.organizations.
Constructors
SlimOrganizationsResource.new
SlimOrganizationsResource(HttpClient _http)Built by SlimResource; use ovok.slim.organizations instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
SlimOrganizationsResource.retrieve
Future<JsonMap> retrieve(String organizationId)Retrieves one organization. Calls GET v1/slim/organization/{organizationId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
organizationId | String | positional |
Returns Future<Map<String, dynamic>>.
SlimOrganizationsResource.create
Future<JsonMap> create(JsonMap body)Creates an organization from body. Calls POST v1/slim/organization.
| Parameter | Type | Kind | Default |
|---|---|---|---|
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
SlimOrganizationsResource.update
Future<JsonMap> update(String organizationId, JsonMap body)Replaces an organization with body.
Calls PUT v1/slim/organization/{organizationId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
organizationId | String | positional | |
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
SlimOrganizationsResource.delete
Future<void> delete(String organizationId)Deletes an organization. Calls DELETE v1/slim/organization/{organizationId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
organizationId | String | positional |
Returns Future<void>.
SlimOutOfBedResource
class SlimOutOfBedResourceOut-of-bed notifications. Reached through ovok.slim.notifications.outOfBed.
Constructors
SlimOutOfBedResource.new
SlimOutOfBedResource(HttpClient _http)Built by SlimNotificationsResource; use ovok.slim.notifications.outOfBed instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
SlimOutOfBedResource.list
Future<JsonMap> list([QueryParams query = const {}])Lists out-of-bed notifications. Calls GET v1/slim/notifications/oob.
| Parameter | Type | Kind | Default |
|---|---|---|---|
query | QueryParams | optional positional | const {} |
Returns Future<Map<String, dynamic>>.
SlimOutOfBedResource.recent
Future<JsonMap> recent([QueryParams query = const {}])Lists recent out-of-bed notifications.
Calls GET v1/slim/notifications/recent/oob.
| Parameter | Type | Kind | Default |
|---|---|---|---|
query | QueryParams | optional positional | const {} |
Returns Future<Map<String, dynamic>>.
SlimPatientThresholdsResource
class SlimPatientThresholdsResourceOne resident's alert thresholds. Reached through ovok.slim.patients.thresholds.
Constructors
SlimPatientThresholdsResource.new
SlimPatientThresholdsResource(HttpClient _http)Built by SlimPatientsResource; use ovok.slim.patients.thresholds instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
SlimPatientThresholdsResource.retrieve
Future<JsonMap> retrieve(String patientId)Retrieves a resident's thresholds. Calls GET v2/slim/threshold/patient/{patientId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
patientId | String | positional |
Returns Future<Map<String, dynamic>>.
SlimPatientThresholdsResource.update
Future<JsonMap> update(String patientId, JsonMap body)Replaces a resident's thresholds with body.
Calls PUT v2/slim/threshold/patient/{patientId}; never retried.
| Parameter | Type | Kind | Default |
|---|---|---|---|
patientId | String | positional | |
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
SlimPatientsResource
class SlimPatientsResourceResidents in the Slim care API. Reached through ovok.slim.patients.
Constructors
SlimPatientsResource.new
SlimPatientsResource(HttpClient _http)Built by SlimResource; use ovok.slim.patients instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Properties
SlimPatientsResource.thresholds
final SlimPatientThresholdsResource thresholdsPer-resident alert thresholds.
Methods
SlimPatientsResource.list
Future<Page<JsonMap>> list([QueryParams query = const {}])Lists residents. Calls GET v1/slim/patient.
query filters the list; its page (0-based) is the first page loaded.
The returned Page fetches the following pages.
| Parameter | Type | Kind | Default |
|---|---|---|---|
query | QueryParams | optional positional | const {} |
Returns Future<Page<Map<String, dynamic>>>.
SlimPatientsResource.retrieve
Future<JsonMap> retrieve(String patientId)Retrieves one resident. Calls GET v1/slim/patient/{patientId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
patientId | String | positional |
Returns Future<Map<String, dynamic>>.
SlimPatientsResource.create
Future<JsonMap> create(JsonMap body)Creates a resident from body. Calls POST v1/slim/patient.
| Parameter | Type | Kind | Default |
|---|---|---|---|
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
SlimPatientsResource.update
Future<JsonMap> update(String patientId, JsonMap body)Replaces a resident with body. Calls PUT v1/slim/patient/{patientId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
patientId | String | positional | |
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
SlimPatientsResource.delete
Future<void> delete(String patientId)Deletes a resident. Calls DELETE v1/slim/patient/{patientId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
patientId | String | positional |
Returns Future<void>.
SlimPatientsResource.everything
Future<JsonMap> everything(String patientId)Retrieves a resident with every related resource.
Calls GET v1/slim/patient/{patientId}/$everything.
| Parameter | Type | Kind | Default |
|---|---|---|---|
patientId | String | positional |
Returns Future<Map<String, dynamic>>.
SlimPatientsResource.currentVitals
Future<JsonMap> currentVitals(String patientId)Retrieves a resident's current vital signs.
Calls GET v1/slim/patient/{patientId}/current-vitals.
| Parameter | Type | Kind | Default |
|---|---|---|---|
patientId | String | positional |
Returns Future<Map<String, dynamic>>.
SlimPoliciesResource
class SlimPoliciesResourceAccess policies. Reached through ovok.slim.policies.
Constructors
SlimPoliciesResource.new
SlimPoliciesResource(HttpClient _http)Built by SlimResource; use ovok.slim.policies instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
SlimPoliciesResource.list
Future<JsonMap> list([QueryParams query = const {}])Lists policies. Calls GET v1/slim/policy.
| Parameter | Type | Kind | Default |
|---|---|---|---|
query | QueryParams | optional positional | const {} |
Returns Future<Map<String, dynamic>>.
SlimPoliciesResource.retrieve
Future<JsonMap> retrieve(String policyId)Retrieves one policy. Calls GET v1/slim/policy/{policyId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
policyId | String | positional |
Returns Future<Map<String, dynamic>>.
SlimPoliciesResource.create
Future<JsonMap> create(JsonMap body)Creates a policy from body. Calls POST v1/slim/policy.
| Parameter | Type | Kind | Default |
|---|---|---|---|
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
SlimPoliciesResource.update
Future<JsonMap> update(String policyId, JsonMap body)Replaces a policy with body. Calls PUT v1/slim/policy/{policyId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
policyId | String | positional | |
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
SlimPoliciesResource.delete
Future<void> delete(String policyId)Deletes a policy. Calls DELETE v1/slim/policy/{policyId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
policyId | String | positional |
Returns Future<void>.
SlimPractitionersResource
class SlimPractitionersResourcePractitioner invites. Reached through ovok.slim.practitioners.
Constructors
SlimPractitionersResource.new
SlimPractitionersResource(HttpClient _http)Built by SlimResource; use ovok.slim.practitioners instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
SlimPractitionersResource.invite
Future<JsonMap> invite(JsonMap body)Invites a practitioner as body describes. Calls POST v1/slim/invite/practitioner.
| Parameter | Type | Kind | Default |
|---|---|---|---|
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
SlimProjectsResource
class SlimProjectsResourceProjects in the Slim care API. Reached through ovok.slim.projects.
Constructors
SlimProjectsResource.new
SlimProjectsResource(HttpClient http)Built by SlimResource; use ovok.slim.projects instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
http | HttpClient | positional |
Properties
SlimProjectsResource.children
final SlimChildProjectsResource childrenThe current project's child projects.
Methods
SlimProjectsResource.retrieve
Future<JsonMap> retrieve(String projectId)Retrieves one project. Calls GET v1/slim/project/{projectId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
projectId | String | positional |
Returns Future<Map<String, dynamic>>.
SlimProjectsResource.update
Future<JsonMap> update(String projectId, JsonMap body)Replaces a project with body. Calls PUT v1/slim/project/{projectId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
projectId | String | positional | |
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
SlimProjectsResource.users
Future<Page<JsonMap>> users(String projectId, [QueryParams query = const {}])Lists a project's users. Calls GET v1/slim/project/{projectId}/users.
query filters the list; its page (0-based) is the first page loaded.
| Parameter | Type | Kind | Default |
|---|---|---|---|
projectId | String | positional | |
query | QueryParams | optional positional | const {} |
Returns Future<Page<Map<String, dynamic>>>.
SlimProjectsResource.currentUsers
Future<Page<JsonMap>> currentUsers([QueryParams query = const {}])Lists the current project's users. Calls GET v1/slim/project/users.
query filters the list; its page (0-based) is the first page loaded.
| Parameter | Type | Kind | Default |
|---|---|---|---|
query | QueryParams | optional positional | const {} |
Returns Future<Page<Map<String, dynamic>>>.
SlimProjectsResource.deviceCounts
Future<JsonMap> deviceCounts(String projectId)Counts a project's devices. Calls GET v1/slim/project/{projectId}/device-counts.
| Parameter | Type | Kind | Default |
|---|---|---|---|
projectId | String | positional |
Returns Future<Map<String, dynamic>>.
SlimProjectsResource.patientCounts
Future<JsonMap> patientCounts(String projectId)Counts a project's residents.
Calls GET v1/slim/project/{projectId}/patient-counts.
| Parameter | Type | Kind | Default |
|---|---|---|---|
projectId | String | positional |
Returns Future<Map<String, dynamic>>.
SlimResource
class SlimResourceThe Slim care API for care-home operations. Reached through ovok.slim.
Every request throws an OvokException subclass when it fails.
Constructors
SlimResource.new
SlimResource(HttpClient http, [UserSession? session])Built by Ovok; use ovok.slim instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
http | HttpClient | positional | |
session | UserSession? | optional positional |
Properties
SlimResource.patients
final SlimPatientsResource patientsResidents and their thresholds.
SlimResource.devices
final SlimDevicesResource devicesDevices, live rows and telemetry.
SlimResource.notifications
final SlimNotificationsResource notificationsNotifications: alarms, out-of-bed, medical and notes.
SlimResource.thresholds
final SlimThresholdsResource thresholdsThe project's alert thresholds.
SlimResource.trends
final SlimTrendsResource trendsVital-sign graphs.
SlimResource.sleep
final SlimSleepResource sleepSleep statistics.
SlimResource.locations
final SlimLocationsResource locationsLocations such as rooms and beds.
SlimResource.zones
final SlimZonesResource zonesZones and their device counts.
SlimResource.exports
final SlimExportsResource exportsPDF exports.
SlimResource.changeHistory
final SlimChangeHistoryResource changeHistoryThe change history of Slim resources.
SlimResource.projects
final SlimProjectsResource projectsProjects, their users and child projects.
SlimResource.policies
final SlimPoliciesResource policiesAccess policies.
SlimResource.organizations
final SlimOrganizationsResource organizationsOrganizations.
SlimResource.practitioners
final SlimPractitionersResource practitionersPractitioner invites.
SlimResource.users
final SlimUsersResource usersUser deletion.
Methods
SlimResource.health
Future<JsonMap> health()Checks that the Slim API is up. Calls GET v1/slim/health.
Returns Future<Map<String, dynamic>>.
SlimSleepResource
class SlimSleepResourceSleep statistics. Reached through ovok.slim.sleep.
Constructors
SlimSleepResource.new
SlimSleepResource(HttpClient _http)Built by SlimResource; use ovok.slim.sleep instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
SlimSleepResource.statistics
Future<JsonMap> statistics(QueryParams query)Retrieves sleep statistics for query. Calls GET v1/slim/sleep/statistics.
| Parameter | Type | Kind | Default |
|---|---|---|---|
query | QueryParams | positional |
Returns Future<Map<String, dynamic>>.
SlimThresholdsResource
class SlimThresholdsResourceThe project's alert thresholds. Reached through ovok.slim.thresholds.
Constructors
SlimThresholdsResource.new
SlimThresholdsResource(HttpClient _http)Built by SlimResource; use ovok.slim.thresholds instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
SlimThresholdsResource.retrieve
Future<JsonMap> retrieve()Retrieves the project's thresholds. Calls GET v2/slim/threshold.
Returns Future<Map<String, dynamic>>.
SlimThresholdsResource.update
Future<JsonMap> update(JsonMap body)Replaces the project's thresholds with body.
Calls PUT v2/slim/threshold; never retried.
| Parameter | Type | Kind | Default |
|---|---|---|---|
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
SlimTrendsResource
class SlimTrendsResourceVital-sign graphs. Reached through ovok.slim.trends.
Constructors
SlimTrendsResource.new
SlimTrendsResource(HttpClient _http)Built by SlimResource; use ovok.slim.trends instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
SlimTrendsResource.graphs
Future<JsonMap> graphs(QueryParams query)Retrieves trend graphs for the range in query.
Calls GET v1/slim/trends/graphs.
| Parameter | Type | Kind | Default |
|---|---|---|---|
query | QueryParams | positional |
Returns Future<Map<String, dynamic>>.
SlimTrendsResource.realtime
Future<JsonMap> realtime(QueryParams query)Retrieves realtime graphs for the range in query.
Calls GET v1/slim/trends/realtime.
| Parameter | Type | Kind | Default |
|---|---|---|---|
query | QueryParams | positional |
Returns Future<Map<String, dynamic>>.
SlimUsersResource
class SlimUsersResourceUser deletion. Reached through ovok.slim.users.
Constructors
SlimUsersResource.new
SlimUsersResource(HttpClient _http)Built by SlimResource; use ovok.slim.users instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
SlimUsersResource.delete
Future<JsonMap> delete(String profileType, String profileId)Deletes the user whose profile is profileType/profileId.
Calls DELETE v1/slim/user/{profileType}/{profileId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
profileType | String | positional | |
profileId | String | positional |
Returns Future<Map<String, dynamic>>.
SlimZonesResource
class SlimZonesResourceZones. Reached through ovok.slim.zones.
Constructors
SlimZonesResource.new
SlimZonesResource(HttpClient _http)Built by SlimResource; use ovok.slim.zones instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
SlimZonesResource.list
Future<Page<JsonMap>> list([QueryParams query = const {}])Lists zones. Calls GET v1/slim/zones.
query filters the list; its page (0-based) is the first page loaded.
The returned Page fetches the following pages.
| Parameter | Type | Kind | Default |
|---|---|---|---|
query | QueryParams | optional positional | const {} |
Returns Future<Page<Map<String, dynamic>>>.
SlimZonesResource.retrieve
Future<JsonMap> retrieve(String zoneId)Retrieves one zone. Calls GET v1/slim/zones/{zoneId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
zoneId | String | positional |
Returns Future<Map<String, dynamic>>.
SlimZonesResource.deviceCounts
Future<JsonMap> deviceCounts([QueryParams query = const {}])Counts the devices per zone. Calls GET v1/slim/zones/device-counts.
| Parameter | Type | Kind | Default |
|---|---|---|---|
query | QueryParams | optional positional | const {} |
Returns Future<Map<String, dynamic>>.
Last updated on