Namespaces

Sharing

ovok.sharing lets a patient share their record: create and redeem invitations, list and

  • Stable unknown
  • Release candidate since 0.1.0-rc.3
  • Development since 0.1.0-dev.21+c43ebba

ovok.sharing lets a patient share their record: create and redeem invitations, list and revoke shares, and read or change sharing settings.

Share a record and revoke it

shares.list() always includes practitioners, relatedPersons and received, empty when there are none. Revoke a share by its Consent ID.

from ovok_sdk import Ovok

ovok = Ovok("https://api.sandbox.ovok.com", "your-tenant")

invite = ovok.sharing.invites.create(invitation)
shares = ovok.sharing.shares.list()
for share in shares["practitioners"]:
    print(share)
ovok.sharing.shares.revoke("consent-id")

The recipient redeems the invitation with sharing.invites.redeem. Read and replace the settings with sharing.settings.retrieve() and sharing.settings.update(...).

API reference

See ovok_sdk.resources.sharing for every method, parameter and error.

Last updated on

On this page