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) -> AnyCreate a share invitation.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
body | JsonObject | The invitation as the route takes it. |
Returns
Any: The created invitation.
redeem()
redeem(body: JsonObject) -> AnyRedeem a share invitation.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
body | JsonObject | The 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() -> AnyRead the sharing settings.
Returns
Any: The settings as the API returns them.
update()
update(settings: JsonObject) -> AnyReplace the sharing settings.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
settings | JsonObject | The 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() -> AnyList the active shares.
Returns
Any: The shares grouped by kind;practitioners,relatedPersonsandreceivedAny: are always present, empty when there are none.
revoke()
revoke(consent_id: str) -> NoneRevoke a share.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
consent_id | str | The 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