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 OvokThe 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.
| Parameter | Type | Kind | Default |
|---|---|---|---|
baseUrl | String | required named | |
tenantCode | String | required named | |
secureStore | OvokSecureStore | required named | |
fhirPath | String | named | 'fhir' |
clientId | String? | named | |
httpClient | Client? | named | |
timeout | Duration | named | const Duration(seconds: 30) |
maxNetworkRetries | int | named | 2 |
onUnauthenticated | UnauthenticatedListener? | named |
Properties
Ovok.auth
final AuthResource authSign-in, registration, passwords and the account.
Ovok.fhir
final FhirResource fhirGeneric FHIR R4 reads, searches and writes under fhirPath.
Ovok.realtime
final RealtimeResource realtimeLive notifications for FHIR resources matching a subscription.
Ovok.patient
final PatientResource patientFHIR reads for patient apps, plus a one-call dashboard.
Ovok.measurements
final MeasurementsResource measurementsBuilds and saves measurements as FHIR Observations, with an offline queue.
Ovok.questionnaires
final QuestionnairesResource questionnairesFHIR questionnaires.
Ovok.questionnaireResponses
final QuestionnaireResponsesResource questionnaireResponsesAnswers to FHIR questionnaires.
Ovok.health
final HealthResource healthThe API's health check; sent without a token.
Ovok.consent
final ConsentResource consentThe signed-in user's consents.
Ovok.slim
final SlimResource slimThe Slim care API for care-home operations.
Ovok.signals
final SignalsResource signalsSignals monitoring for patients.
Ovok.projects
final ProjectsResource projectsProjects, their members, settings and features.
Ovok.accounts
final AccountsResource accountsAccounts the signed-in user belongs to.
Ovok.locales
final LocalesResource localesLanguages the project offers.
Ovok.localizations
final LocalizationsResource localizationsTranslated strings, by language and key.
Ovok.email
final EmailResource emailThe project's email setup.
Ovok.invites
final InvitesResource invitesInvites between patients, practitioners and carers.
Ovok.sharing
final SharingResource sharingA patient's record sharing.
Ovok.cms
final CmsResource cmsPublished CMS documents, legal pages and translations.
Ovok.content
final ContentResource contentProject content items, by type, language and key.
Ovok.documents
final DocumentsResource documentsUploaded documents and their download URLs.
Ovok.videoCalls
final VideoCallsResource videoCallsLiveKit video calls and their appointments.
Ovok.ai
final AiResource aiAI translation, FHIR search and chat.
Ovok.wearables
final WearablesResource wearablesWearable providers and the patient's connections to them.
Ovok.bots
final BotsResource botsProject bots.
Ovok.storage
final OvokSecureStore storageThe secure store shared by sessions, offline measurements, and device pairing.
Last updated on