@ovok/core 0.4.47 → 0.4.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -628,15 +628,19 @@ turning the feature on; an unmapped email can still produce the uniform 202
|
|
|
628
628
|
response without sending a message. `useUpdatePatientSharingSettings()` is the
|
|
629
629
|
corresponding mutation hook.
|
|
630
630
|
|
|
631
|
-
`listPatientSharing()` returns `outgoing`, `incoming`, `practitioners`,
|
|
632
|
-
`relatedPersons`. `practitioners` lists active shares of a patient's
|
|
633
|
-
with practitioners; `relatedPersons` lists the Observation codes a
|
|
634
|
-
with carers.
|
|
635
|
-
|
|
631
|
+
`listPatientSharing()` returns `outgoing`, `incoming`, `practitioners`,
|
|
632
|
+
`relatedPersons`, and `received`. `practitioners` lists active shares of a patient's
|
|
633
|
+
whole record with practitioners; `relatedPersons` lists the Observation codes a
|
|
634
|
+
patient shares with carers. `received` is for a signed-in carer: the shares patients
|
|
635
|
+
gave them, each with the sharing patient and its `codes`. A carer gets only
|
|
636
|
+
`received`, and a patient always gets an empty `received`. For compatibility with
|
|
637
|
+
older servers, the SDK defaults any missing `practitioners`, `relatedPersons` or
|
|
638
|
+
`received` array to `[]`. Listing is for patients and carers; a practitioner gets 403.
|
|
636
639
|
`revokePatientSharing(consentId)` uses the existing DELETE route
|
|
637
|
-
to end a share immediately or decline a pending invite.
|
|
638
|
-
|
|
639
|
-
(`
|
|
640
|
+
to end a share immediately or decline a pending invite. A carer calls it with a
|
|
641
|
+
`received` share's `consentId` to leave that share. It returns 204; 404
|
|
642
|
+
(`Share not found.`) means the caller is not a party, and a 409 means the share
|
|
643
|
+
already ended or kept changing; reload the list and retry. A
|
|
640
644
|
practitioner's whole-record share has no measurement-code list.
|
|
641
645
|
|
|
642
646
|
Invitations are named by purpose, all backed by `/v1/invites/*`:
|
|
@@ -18,11 +18,12 @@ function redeemPatientSharingInvite(body, requestOptions) {
|
|
|
18
18
|
}
|
|
19
19
|
function listPatientSharing(requestOptions) {
|
|
20
20
|
return this.get("/v1/patient-sharing/shares", ...(0, request_options_1.optionalArg)(requestOptions)).then((shares) => {
|
|
21
|
-
var _a, _b;
|
|
21
|
+
var _a, _b, _c;
|
|
22
22
|
return ({
|
|
23
23
|
...shares,
|
|
24
24
|
practitioners: (_a = shares.practitioners) !== null && _a !== void 0 ? _a : [],
|
|
25
25
|
relatedPersons: (_b = shares.relatedPersons) !== null && _b !== void 0 ? _b : [],
|
|
26
|
+
received: (_c = shares.received) !== null && _c !== void 0 ? _c : [],
|
|
26
27
|
});
|
|
27
28
|
});
|
|
28
29
|
}
|
|
@@ -42,6 +42,8 @@ export type PatientSharingShares = {
|
|
|
42
42
|
incoming: PatientSharingShare[];
|
|
43
43
|
practitioners: PatientSharingPractitionerShare[];
|
|
44
44
|
relatedPersons: PatientSharingRelatedPersonShare[];
|
|
45
|
+
/** For a signed-in carer: the shares patients gave them. Empty for a patient. */
|
|
46
|
+
received: PatientSharingRelatedPersonShare[];
|
|
45
47
|
};
|
|
46
48
|
export type CreatePatientSharingInvite = {
|
|
47
49
|
codes: string[];
|
|
@@ -48,7 +48,7 @@ exports.OVOK_CORE_REQUIREMENTS = {
|
|
|
48
48
|
description: "The FHIR surface a server must provide for the @ovok/core client library's own methods to function.",
|
|
49
49
|
software: {
|
|
50
50
|
name: "@ovok/core",
|
|
51
|
-
version: "0.4.
|
|
51
|
+
version: "0.4.48",
|
|
52
52
|
},
|
|
53
53
|
fhirVersion: "4.0.1",
|
|
54
54
|
format: ["json"],
|