Ovok

Generated reference for ovok_sdk: ovok.

  • Stable unknown
  • Release candidate since 0.1.0-rc.4
  • Development since 0.1.0-dev.23+d339d81

Ovok

class Ovok

The Ovok API client: every namespace, such as auth, fhir or slim, hangs off it.

One client per tenant; no clientSecret, since anything shipped in an app can be extracted.

Constructors

Ovok.new

Ovok({
  required String baseUrl,
  required String tenantCode,
  required OvokSecureStore secureStore,
  String fhirPath = 'fhir',
  String? clientId,
  Client? httpClient,
  Duration timeout = const Duration(seconds: 30),
  int maxNetworkRetries = 2,
  UnauthenticatedListener? onUnauthenticated,
})

Creates a client for tenantCode on the Ovok API at baseUrl.

secureStore keeps the signed-in session. fhirPath is the FHIR API's path under baseUrl. clientId is the ClientApplication used for social sign-in, password resets and token refresh. httpClient replaces the default http.Client. timeout limits each request, and maxNetworkRetries is how many times a repeatable request is retried. onUnauthenticated is called when a refused refresh token signs the user out.

A bad option throws OvokConfigException here, not on the first request.

ParameterTypeKindDefault
baseUrlStringrequired named
tenantCodeStringrequired named
secureStoreOvokSecureStorerequired named
fhirPathStringnamed'fhir'
clientIdString?named
httpClientClient?named
timeoutDurationnamedconst Duration(seconds: 30)
maxNetworkRetriesintnamed2
onUnauthenticatedUnauthenticatedListener?named

Properties

Ovok.auth

final AuthResource auth

Sign-in, registration, passwords and the account.

Ovok.fhir

final FhirResource fhir

Generic FHIR R4 reads, searches and writes under fhirPath.

Ovok.realtime

final RealtimeResource realtime

Live notifications for FHIR resources matching a subscription.

Ovok.patient

final PatientResource patient

FHIR reads for patient apps, plus a one-call dashboard.

Ovok.measurements

final MeasurementsResource measurements

Builds and saves measurements as FHIR Observations, with an offline queue.

Ovok.questionnaires

final QuestionnairesResource questionnaires

FHIR questionnaires.

Ovok.questionnaireResponses

final QuestionnaireResponsesResource questionnaireResponses

Answers to FHIR questionnaires.

Ovok.health

final HealthResource health

The API's health check; sent without a token.

Ovok.consent

final ConsentResource consent

The signed-in user's consents.

Ovok.slim

final SlimResource slim

The Slim care API for care-home operations.

Ovok.signals

final SignalsResource signals

Signals monitoring for patients.

Ovok.projects

final ProjectsResource projects

Projects, their members, settings and features.

Ovok.accounts

final AccountsResource accounts

Accounts the signed-in user belongs to.

Ovok.locales

final LocalesResource locales

Languages the project offers.

Ovok.localizations

final LocalizationsResource localizations

Translated strings, by language and key.

Ovok.email

final EmailResource email

The project's email setup.

Ovok.invites

final InvitesResource invites

Invites between patients, practitioners and carers.

Ovok.sharing

final SharingResource sharing

A patient's record sharing.

Ovok.cms

final CmsResource cms

Published CMS documents, legal pages and translations.

Ovok.content

final ContentResource content

Project content items, by type, language and key.

Ovok.documents

final DocumentsResource documents

Uploaded documents and their download URLs.

Ovok.videoCalls

final VideoCallsResource videoCalls

LiveKit video calls and their appointments.

Ovok.ai

final AiResource ai

AI translation, FHIR search and chat.

Ovok.wearables

final WearablesResource wearables

Wearable providers and the patient's connections to them.

Ovok.bots

final BotsResource bots

Project bots.

Ovok.storage

final OvokSecureStore storage

The secure store shared by sessions, offline measurements, and device pairing.

Last updated on

On this page