API referenceresources

ovok_sdk.resources.sharing

The `ovok.sharing` namespace: patient record sharing.

  • Stable unknown
  • Release candidate since 0.1.0-rc.4
  • Development since 0.1.0-dev.25+2ba84b0

The ovok.sharing namespace: patient record sharing.

SharingInvitesResource

SharingInvitesResource(http: HttpClient)

Share invitations a patient creates and a recipient redeems.

Access it as ovok.sharing.invites.

create()

create(body: JsonObject) -> Any

Create a share invitation.

Parameters

NameTypeDefaultDescription
bodyJsonObjectThe invitation as the route takes it.

Returns

  • Any: The created invitation.

redeem()

redeem(body: JsonObject) -> Any

Redeem a share invitation.

Parameters

NameTypeDefaultDescription
bodyJsonObjectThe redemption as the route takes it, usually the invite code.

Returns

  • Any: The API's response.

SharingSettingsResource

SharingSettingsResource(http: HttpClient)

The patient's sharing settings.

Access it as ovok.sharing.settings.

retrieve()

retrieve() -> Any

Read the sharing settings.

Returns

  • Any: The settings as the API returns them.

update()

update(settings: JsonObject) -> Any

Replace the sharing settings.

Parameters

NameTypeDefaultDescription
settingsJsonObjectThe new settings.

Returns

  • Any: The updated settings.

SharingSharesResource

SharingSharesResource(http: HttpClient)

Active shares of the patient's record.

Access it as ovok.sharing.shares.

list()

list() -> Any

List the active shares.

Returns

  • Any: The shares grouped by kind; practitioners, relatedPersons and received
  • Any: are always present, empty when there are none.

revoke()

revoke(consent_id: str) -> None

Revoke a share.

Parameters

NameTypeDefaultDescription
consent_idstrThe ID of the Consent behind the share.

SharingResource

SharingResource(http: HttpClient)

Patient record sharing: invitations, shares and settings.

Created by Ovok; access it as ovok.sharing.

Last updated on

On this page