@ovok/core 0.4.53 → 0.4.54

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.
@@ -126,6 +126,29 @@ export type RedeemPatientSharingInvite = {
126
126
  /** Code from the invite. */
127
127
  code: string;
128
128
  };
129
+ /**
130
+ * The clinician alert digest: one mail every few hours to each practitioner a patient shares their record with,
131
+ * listing the patients with new Signals alerts.
132
+ *
133
+ * @category sharing
134
+ */
135
+ export type PractitionerAlertDigest = {
136
+ /** Whether the digest goes out. */
137
+ enabled: boolean;
138
+ /** How many hours apart: 1, 6, 12 or 24. */
139
+ everyHours: number;
140
+ };
141
+ /**
142
+ * A change to the clinician alert digest.
143
+ *
144
+ * @category sharing
145
+ */
146
+ export type PractitionerAlertDigestUpdate = {
147
+ /** Whether the digest goes out. */
148
+ enabled: boolean;
149
+ /** How many hours apart: 1, 6, 12 or 24; left out keeps the saved hours. */
150
+ everyHours?: number;
151
+ };
129
152
  /**
130
153
  * Project settings for patient sharing.
131
154
  *
@@ -138,6 +161,8 @@ export type PatientSharingSettings = {
138
161
  accessPolicyId: string | null;
139
162
  /** Whether patients may share with practitioners. */
140
163
  practitionerSharingEnabled: boolean;
164
+ /** The clinician alert digest; off, every 6 hours, until an admin sets it. */
165
+ practitionerAlertDigest: PractitionerAlertDigest;
141
166
  };
142
167
  /**
143
168
  * Request to update patient sharing settings.
@@ -149,4 +174,9 @@ export type PatientSharingSettingsUpdate = {
149
174
  enabled: boolean;
150
175
  /** Whether patients may share with practitioners; null leaves it unchanged. */
151
176
  practitionerSharingEnabled?: boolean | null;
177
+ /**
178
+ * The clinician alert digest; null leaves it unchanged. Switching it on needs Signals annotations, patient sharing and
179
+ * practitioner sharing on, or the server answers 409.
180
+ */
181
+ practitionerAlertDigest?: PractitionerAlertDigestUpdate | null;
152
182
  };
@@ -26,7 +26,7 @@ exports.OVOK_CORE_REQUIREMENTS = {
26
26
  description: "The FHIR surface a server must provide for the @ovok/core client library's own methods to function.",
27
27
  software: {
28
28
  name: "@ovok/core",
29
- version: "0.4.53",
29
+ version: "0.4.54",
30
30
  },
31
31
  fhirVersion: "4.0.1",
32
32
  format: ["json"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ovok/core",
3
- "version": "0.4.53",
3
+ "version": "0.4.54",
4
4
  "private": false,
5
5
  "main": "dist/next/index.js",
6
6
  "types": "dist/next/index.d.ts",