@ovok/core 0.4.31 → 0.4.32
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/dist/client/ai-fhir/methods/AIFhirResources.d.ts +2 -1
- package/dist/client/ai-fhir/methods/AIFhirResources.js +2 -2
- package/dist/client/auth/methods/appleLogin.d.ts +2 -1
- package/dist/client/auth/methods/appleLogin.js +2 -2
- package/dist/client/auth/methods/changePassword.d.ts +2 -1
- package/dist/client/auth/methods/changePassword.js +2 -2
- package/dist/client/auth/methods/getSessions.d.ts +2 -1
- package/dist/client/auth/methods/getSessions.js +2 -2
- package/dist/client/auth/methods/googleLogin.d.ts +2 -1
- package/dist/client/auth/methods/googleLogin.js +2 -2
- package/dist/client/auth/methods/index.d.ts +1 -0
- package/dist/client/auth/methods/index.js +1 -0
- package/dist/client/auth/methods/login.d.ts +6 -2
- package/dist/client/auth/methods/login.js +60 -44
- package/dist/client/auth/methods/logout.d.ts +2 -1
- package/dist/client/auth/methods/logout.js +2 -2
- package/dist/client/auth/methods/refetchProfile.d.ts +2 -1
- package/dist/client/auth/methods/refetchProfile.js +3 -4
- package/dist/client/auth/methods/register.d.ts +2 -1
- package/dist/client/auth/methods/register.js +2 -2
- package/dist/client/auth/methods/registerPractitioner.d.ts +2 -1
- package/dist/client/auth/methods/registerPractitioner.js +2 -2
- package/dist/client/auth/methods/reloadSession.d.ts +7 -0
- package/dist/client/auth/methods/reloadSession.js +23 -0
- package/dist/client/auth/methods/requestDeleteUser.d.ts +2 -1
- package/dist/client/auth/methods/requestDeleteUser.js +5 -5
- package/dist/client/auth/methods/resetPassword.d.ts +2 -1
- package/dist/client/auth/methods/resetPassword.js +2 -2
- package/dist/client/auth/methods/revokeSessions.d.ts +2 -1
- package/dist/client/auth/methods/revokeSessions.js +2 -2
- package/dist/client/auth/methods/setPasswordFromReset.d.ts +2 -1
- package/dist/client/auth/methods/setPasswordFromReset.js +2 -2
- package/dist/client/auth/types/LoginBody.d.ts +10 -20
- package/dist/client/auth/types/LoginError.d.ts +15 -0
- package/dist/client/auth/types/LoginError.js +15 -0
- package/dist/client/bot/methods/executeBot.d.ts +2 -1
- package/dist/client/bot/methods/executeBot.js +2 -2
- package/dist/client/change-history/methods.d.ts +2 -1
- package/dist/client/change-history/methods.js +2 -2
- package/dist/client/chat/ai/methods/createAiSession.d.ts +2 -1
- package/dist/client/chat/ai/methods/createAiSession.js +2 -2
- package/dist/client/cms/methods.d.ts +6 -5
- package/dist/client/cms/methods.js +10 -10
- package/dist/client/consent/methods.d.ts +5 -4
- package/dist/client/consent/methods.js +8 -8
- package/dist/client/email/methods.d.ts +2 -1
- package/dist/client/email/methods.js +2 -2
- package/dist/client/errors/ovok-error-utils.d.ts +7 -0
- package/dist/client/errors/ovok-error-utils.js +49 -5
- package/dist/client/errors/ovok-error.d.ts +4 -0
- package/dist/client/errors/ovok-error.js +17 -4
- package/dist/client/errors/rate-limit-error.js +5 -3
- package/dist/client/experience/methods.d.ts +32 -31
- package/dist/client/experience/methods.js +62 -62
- package/dist/client/invites/methods.d.ts +6 -5
- package/dist/client/invites/methods.js +11 -11
- package/dist/client/notifications/methods.d.ts +6 -5
- package/dist/client/notifications/methods.js +10 -10
- package/dist/client/notifications/types.d.ts +92 -11
- package/dist/client/observation/methods/getLatestObservationsByCodes.d.ts +2 -1
- package/dist/client/observation/methods/getLatestObservationsByCodes.js +4 -4
- package/dist/client/offline/offline-measurement-queue.d.ts +4 -3
- package/dist/client/offline/offline-measurement-queue.js +6 -6
- package/dist/client/ovok-client.d.ts +9 -7
- package/dist/client/ovok-client.js +148 -22
- package/dist/client/patient/methods.d.ts +24 -23
- package/dist/client/patient/methods.js +49 -49
- package/dist/client/patient-sharing/methods.d.ts +7 -6
- package/dist/client/patient-sharing/methods.js +12 -12
- package/dist/client/platform/methods.d.ts +24 -23
- package/dist/client/platform/methods.js +46 -46
- package/dist/client/questionnaire-response/methods/createQuestionnaireResponseWithObservations.d.ts +2 -1
- package/dist/client/questionnaire-response/methods/createQuestionnaireResponseWithObservations.js +2 -2
- package/dist/client/questionnaire-response/methods/extractQuestionnaireObservations.d.ts +2 -1
- package/dist/client/questionnaire-response/methods/extractQuestionnaireObservations.js +2 -2
- package/dist/client/questionnaire-response/methods/populateQuestionnaire.d.ts +2 -1
- package/dist/client/questionnaire-response/methods/populateQuestionnaire.js +2 -2
- package/dist/client/questionnaire-response/methods/submitQuestionnaireResponse.d.ts +2 -1
- package/dist/client/questionnaire-response/methods/submitQuestionnaireResponse.js +2 -2
- package/dist/client/signals/methods.d.ts +22 -21
- package/dist/client/signals/methods.js +42 -42
- package/dist/client/slim/methods.d.ts +93 -57
- package/dist/client/slim/methods.js +295 -108
- package/dist/client/slim/paging.d.ts +18 -0
- package/dist/client/slim/paging.js +57 -0
- package/dist/client/slim/types.d.ts +370 -3
- package/dist/conformance/api-requirements.js +22 -0
- package/dist/conformance/capability-requirements.js +1 -1
- package/dist/hooks/account-hooks.js +7 -7
- package/dist/hooks/api-hooks.d.ts +5 -2
- package/dist/hooks/api-hooks.js +39 -16
- package/dist/hooks/cms-hooks.js +3 -3
- package/dist/hooks/email-hooks.js +1 -1
- package/dist/hooks/experience-hooks.js +5 -5
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +5 -3
- package/dist/hooks/notification-ack-hooks.d.ts +2 -1
- package/dist/hooks/notification-hooks.d.ts +4 -2
- package/dist/hooks/notification-hooks.js +11 -23
- package/dist/hooks/notification-invalidation.d.ts +3 -2
- package/dist/hooks/notification-invalidation.js +10 -1
- package/dist/hooks/notification-note-hooks.js +3 -3
- package/dist/hooks/observation-hooks.d.ts +5 -1
- package/dist/hooks/observation-hooks.js +6 -6
- package/dist/hooks/patient-hooks.js +18 -18
- package/dist/hooks/patient-sharing-hooks.js +2 -2
- package/dist/hooks/platform-hooks.js +3 -3
- package/dist/hooks/poll-hooks.d.ts +14 -0
- package/dist/hooks/poll-hooks.js +127 -0
- package/dist/hooks/signals-alert-hooks.d.ts +5 -20
- package/dist/hooks/signals-alert-hooks.js +38 -34
- package/dist/hooks/signals-alert-item-hooks.d.ts +19 -0
- package/dist/hooks/signals-alert-item-hooks.js +62 -0
- package/dist/hooks/signals-hooks.js +2 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4 -1
- package/dist/utils/auth/exchange-code.d.ts +2 -0
- package/dist/utils/auth/exchange-code.js +2 -2
- package/dist/utils/auth/handle-tenant-code.d.ts +1 -1
- package/dist/utils/auth/handle-tenant-code.js +13 -4
- package/dist/utils/auth/start-login.d.ts +3 -1
- package/dist/utils/auth/start-login.js +3 -3
- package/package.json +1 -1
|
@@ -34,73 +34,73 @@ const query = (params) => {
|
|
|
34
34
|
return encoded === "" ? "" : `?${encoded}`;
|
|
35
35
|
};
|
|
36
36
|
const segment = (value) => encodeURIComponent(value);
|
|
37
|
-
async function getAccounts() {
|
|
38
|
-
return this.get("/accounts");
|
|
37
|
+
async function getAccounts(requestOptions) {
|
|
38
|
+
return this.get("/accounts", ...(requestOptions === undefined ? [] : [requestOptions]));
|
|
39
39
|
}
|
|
40
|
-
async function listAdministeredProjects(params = {}) {
|
|
41
|
-
return this.get(`/v1/projects${query(params)}
|
|
40
|
+
async function listAdministeredProjects(params = {}, requestOptions) {
|
|
41
|
+
return this.get(`/v1/projects${query(params)}`, ...(requestOptions === undefined ? [] : [requestOptions]));
|
|
42
42
|
}
|
|
43
|
-
async function createProject(body) {
|
|
44
|
-
return this.post("/v1/projects", body);
|
|
43
|
+
async function createProject(body, requestOptions) {
|
|
44
|
+
return this.post("/v1/projects", body, undefined, requestOptions);
|
|
45
45
|
}
|
|
46
|
-
async function bootstrapProject(body) {
|
|
47
|
-
return this.post("/v1/projects/bootstrap", body);
|
|
46
|
+
async function bootstrapProject(body, requestOptions) {
|
|
47
|
+
return this.post("/v1/projects/bootstrap", body, undefined, requestOptions);
|
|
48
48
|
}
|
|
49
|
-
async function getProjectTenantCode() {
|
|
50
|
-
return this.get("/v1/projects/me/tenant-code");
|
|
49
|
+
async function getProjectTenantCode(requestOptions) {
|
|
50
|
+
return this.get("/v1/projects/me/tenant-code", ...(requestOptions === undefined ? [] : [requestOptions]));
|
|
51
51
|
}
|
|
52
|
-
async function listProjectMembers(params = {}) {
|
|
53
|
-
return this.get(`/v1/projects/me/members${query(params)}
|
|
52
|
+
async function listProjectMembers(params = {}, requestOptions) {
|
|
53
|
+
return this.get(`/v1/projects/me/members${query(params)}`, ...(requestOptions === undefined ? [] : [requestOptions]));
|
|
54
54
|
}
|
|
55
|
-
async function inviteProjectMember(body) {
|
|
56
|
-
return this.post("/v1/projects/me/members", body);
|
|
55
|
+
async function inviteProjectMember(body, requestOptions) {
|
|
56
|
+
return this.post("/v1/projects/me/members", body, undefined, requestOptions);
|
|
57
57
|
}
|
|
58
|
-
async function updateProjectMember(membershipId, body) {
|
|
59
|
-
return (await this.patch(`/v1/projects/me/members/${segment(membershipId)}`, body));
|
|
58
|
+
async function updateProjectMember(membershipId, body, requestOptions) {
|
|
59
|
+
return (await this.patch(`/v1/projects/me/members/${segment(membershipId)}`, body, ...(requestOptions === undefined ? [] : [requestOptions])));
|
|
60
60
|
}
|
|
61
|
-
async function removeProjectMember(membershipId) {
|
|
62
|
-
return (await this.delete(`/v1/projects/me/members/${segment(membershipId)}
|
|
61
|
+
async function removeProjectMember(membershipId, requestOptions) {
|
|
62
|
+
return (await this.delete(`/v1/projects/me/members/${segment(membershipId)}`, ...(requestOptions === undefined ? [] : [requestOptions])));
|
|
63
63
|
}
|
|
64
|
-
async function getProjectFeatures() {
|
|
65
|
-
return this.get("/v1/projects/me/features");
|
|
64
|
+
async function getProjectFeatures(requestOptions) {
|
|
65
|
+
return this.get("/v1/projects/me/features", ...(requestOptions === undefined ? [] : [requestOptions]));
|
|
66
66
|
}
|
|
67
|
-
async function updateProjectFeatures(features) {
|
|
67
|
+
async function updateProjectFeatures(features, requestOptions) {
|
|
68
68
|
const body = { features };
|
|
69
|
-
return (await this.patch("/v1/projects/me/features", body));
|
|
69
|
+
return (await this.patch("/v1/projects/me/features", body, ...(requestOptions === undefined ? [] : [requestOptions])));
|
|
70
70
|
}
|
|
71
|
-
async function getProjectSettings() {
|
|
72
|
-
return this.get("/v1/project/settings");
|
|
71
|
+
async function getProjectSettings(requestOptions) {
|
|
72
|
+
return this.get("/v1/project/settings", ...(requestOptions === undefined ? [] : [requestOptions]));
|
|
73
73
|
}
|
|
74
|
-
async function updateProjectSetting(key, enabled) {
|
|
75
|
-
return (await this.put(`/v1/project/settings/${segment(key)}`, { enabled }));
|
|
74
|
+
async function updateProjectSetting(key, enabled, requestOptions) {
|
|
75
|
+
return (await this.put(`/v1/project/settings/${segment(key)}`, { enabled }, undefined, requestOptions));
|
|
76
76
|
}
|
|
77
|
-
async function updateProjectTextSetting(key, value) {
|
|
78
|
-
return (await this.put(`/v1/project/settings/values/${segment(key)}`, { value }));
|
|
77
|
+
async function updateProjectTextSetting(key, value, requestOptions) {
|
|
78
|
+
return (await this.put(`/v1/project/settings/values/${segment(key)}`, { value }, undefined, requestOptions));
|
|
79
79
|
}
|
|
80
|
-
async function getLocales() {
|
|
81
|
-
return this.get("/locales");
|
|
80
|
+
async function getLocales(requestOptions) {
|
|
81
|
+
return this.get("/locales", ...(requestOptions === undefined ? [] : [requestOptions]));
|
|
82
82
|
}
|
|
83
|
-
async function updateLocales(locales) {
|
|
84
|
-
return (await this.patch("/locales", locales));
|
|
83
|
+
async function updateLocales(locales, requestOptions) {
|
|
84
|
+
return (await this.patch("/locales", locales, ...(requestOptions === undefined ? [] : [requestOptions])));
|
|
85
85
|
}
|
|
86
|
-
async function listLocalizations(language, params = {}) {
|
|
87
|
-
return this.get(`/localization/${segment(language)}${query(params)}
|
|
86
|
+
async function listLocalizations(language, params = {}, requestOptions) {
|
|
87
|
+
return this.get(`/localization/${segment(language)}${query(params)}`, ...(requestOptions === undefined ? [] : [requestOptions]));
|
|
88
88
|
}
|
|
89
|
-
async function getLocalization(language, key) {
|
|
90
|
-
return this.get(`/localization/${segment(language)}/${segment(key)}
|
|
89
|
+
async function getLocalization(language, key, requestOptions) {
|
|
90
|
+
return this.get(`/localization/${segment(language)}/${segment(key)}`, ...(requestOptions === undefined ? [] : [requestOptions]));
|
|
91
91
|
}
|
|
92
|
-
async function updateLocalization(language, key, body) {
|
|
93
|
-
return (await this.put(`/localization/${segment(language)}/${segment(key)}`, body));
|
|
92
|
+
async function updateLocalization(language, key, body, requestOptions) {
|
|
93
|
+
return (await this.put(`/localization/${segment(language)}/${segment(key)}`, body, undefined, requestOptions));
|
|
94
94
|
}
|
|
95
|
-
async function deleteLocalization(language, key) {
|
|
96
|
-
await this.delete(`/localization/${segment(language)}/${segment(key)}
|
|
95
|
+
async function deleteLocalization(language, key, requestOptions) {
|
|
96
|
+
await this.delete(`/localization/${segment(language)}/${segment(key)}`, ...(requestOptions === undefined ? [] : [requestOptions]));
|
|
97
97
|
}
|
|
98
|
-
async function getI18nextDocument(language) {
|
|
99
|
-
return this.get(`/localization/i18next/${segment(language)}
|
|
98
|
+
async function getI18nextDocument(language, requestOptions) {
|
|
99
|
+
return this.get(`/localization/i18next/${segment(language)}`, ...(requestOptions === undefined ? [] : [requestOptions]));
|
|
100
100
|
}
|
|
101
|
-
async function updateI18nextDocument(language, document) {
|
|
102
|
-
await this.patch(`/localization/i18next/${segment(language)}`, document);
|
|
101
|
+
async function updateI18nextDocument(language, document, requestOptions) {
|
|
102
|
+
await this.patch(`/localization/i18next/${segment(language)}`, document, ...(requestOptions === undefined ? [] : [requestOptions]));
|
|
103
103
|
}
|
|
104
|
-
async function getPatientLastObservations(patientId, params) {
|
|
105
|
-
return this.get(`/patient/${segment(patientId)}/observation${query(params)}
|
|
104
|
+
async function getPatientLastObservations(patientId, params, requestOptions) {
|
|
105
|
+
return this.get(`/patient/${segment(patientId)}/observation${query(params)}`, ...(requestOptions === undefined ? [] : [requestOptions]));
|
|
106
106
|
}
|
package/dist/client/questionnaire-response/methods/createQuestionnaireResponseWithObservations.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { Bundle, Observation, QuestionnaireResponse } from "@medplum/fhirtypes";
|
|
2
|
+
import type { MedplumRequestOptions } from "@medplum/core";
|
|
2
3
|
import { OvokClient } from "../../ovok-client";
|
|
3
|
-
export declare function createQuestionnaireResponseWithObservations(this: OvokClient, questionnaireResponse: QuestionnaireResponse, observations: Observation[]): Promise<Bundle>;
|
|
4
|
+
export declare function createQuestionnaireResponseWithObservations(this: OvokClient, questionnaireResponse: QuestionnaireResponse, observations: Observation[], requestOptions?: MedplumRequestOptions): Promise<Bundle>;
|
package/dist/client/questionnaire-response/methods/createQuestionnaireResponseWithObservations.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createQuestionnaireResponseWithObservations = createQuestionnaireResponseWithObservations;
|
|
4
|
-
async function createQuestionnaireResponseWithObservations(questionnaireResponse, observations) {
|
|
4
|
+
async function createQuestionnaireResponseWithObservations(questionnaireResponse, observations, requestOptions) {
|
|
5
5
|
const bundle = {
|
|
6
6
|
resourceType: "Bundle",
|
|
7
7
|
type: "transaction",
|
|
@@ -24,5 +24,5 @@ async function createQuestionnaireResponseWithObservations(questionnaireResponse
|
|
|
24
24
|
})),
|
|
25
25
|
],
|
|
26
26
|
};
|
|
27
|
-
return this.executeBatch(bundle);
|
|
27
|
+
return this.executeBatch(bundle, ...(requestOptions === undefined ? [] : [requestOptions]));
|
|
28
28
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { MedplumRequestOptions } from "@medplum/core";
|
|
1
2
|
import { OvokClient } from "../../ovok-client";
|
|
2
3
|
import { OvokQuestionnaireOperationResponse } from "../types";
|
|
3
|
-
export declare function extractQuestionnaireObservations(this: OvokClient, questionnaireResponseId: string): Promise<OvokQuestionnaireOperationResponse>;
|
|
4
|
+
export declare function extractQuestionnaireObservations(this: OvokClient, questionnaireResponseId: string, requestOptions?: MedplumRequestOptions): Promise<OvokQuestionnaireOperationResponse>;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.extractQuestionnaireObservations = extractQuestionnaireObservations;
|
|
4
4
|
const segment = (value) => encodeURIComponent(value);
|
|
5
|
-
async function extractQuestionnaireObservations(questionnaireResponseId) {
|
|
6
|
-
return this.post(`/fhir/QuestionnaireResponse/${segment(questionnaireResponseId)}/$extract`, {});
|
|
5
|
+
async function extractQuestionnaireObservations(questionnaireResponseId, requestOptions) {
|
|
6
|
+
return this.post(`/fhir/QuestionnaireResponse/${segment(questionnaireResponseId)}/$extract`, {}, undefined, requestOptions);
|
|
7
7
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Parameters } from "@medplum/fhirtypes";
|
|
2
|
+
import type { MedplumRequestOptions } from "@medplum/core";
|
|
2
3
|
import { OvokClient } from "../../ovok-client";
|
|
3
4
|
import { OvokQuestionnaireOperationResponse } from "../types";
|
|
4
|
-
export declare function populateQuestionnaire(this: OvokClient, questionnaireId: string, parameters?: Parameters): Promise<OvokQuestionnaireOperationResponse>;
|
|
5
|
+
export declare function populateQuestionnaire(this: OvokClient, questionnaireId: string, parameters?: Parameters, requestOptions?: MedplumRequestOptions): Promise<OvokQuestionnaireOperationResponse>;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.populateQuestionnaire = populateQuestionnaire;
|
|
4
4
|
const segment = (value) => encodeURIComponent(value);
|
|
5
|
-
async function populateQuestionnaire(questionnaireId, parameters = { resourceType: "Parameters", parameter: [] }) {
|
|
6
|
-
return this.post(`/fhir/Questionnaire/${segment(questionnaireId)}/$populate`, parameters);
|
|
5
|
+
async function populateQuestionnaire(questionnaireId, parameters = { resourceType: "Parameters", parameter: [] }, requestOptions) {
|
|
6
|
+
return this.post(`/fhir/Questionnaire/${segment(questionnaireId)}/$populate`, parameters, undefined, requestOptions);
|
|
7
7
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { Bundle, Observation, QuestionnaireResponse } from "@medplum/fhirtypes";
|
|
2
|
+
import type { MedplumRequestOptions } from "@medplum/core";
|
|
2
3
|
import { OvokClient } from "../../ovok-client";
|
|
3
|
-
export declare function submitQuestionnaireResponse(this: OvokClient, questionnaireResponse: QuestionnaireResponse, observations?: Observation[]): Promise<Bundle>;
|
|
4
|
+
export declare function submitQuestionnaireResponse(this: OvokClient, questionnaireResponse: QuestionnaireResponse, observations?: Observation[], requestOptions?: MedplumRequestOptions): Promise<Bundle>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.submitQuestionnaireResponse = submitQuestionnaireResponse;
|
|
4
|
-
async function submitQuestionnaireResponse(questionnaireResponse, observations = []) {
|
|
5
|
-
return this.createQuestionnaireResponseWithObservations(questionnaireResponse, observations);
|
|
4
|
+
async function submitQuestionnaireResponse(questionnaireResponse, observations = [], requestOptions) {
|
|
5
|
+
return this.createQuestionnaireResponseWithObservations(questionnaireResponse, observations, ...(requestOptions === undefined ? [] : [requestOptions]));
|
|
6
6
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { MedplumRequestOptions } from "@medplum/core";
|
|
1
2
|
import { NotificationNote, NotificationNotes, UpdateNotificationNote } from "../notifications/types";
|
|
2
3
|
import { OvokClient } from "../ovok-client";
|
|
3
4
|
import { EnableSignalsResponse, SetSignalsThresholdBody, SignalsAlert, SignalsAlertsPage, SignalsAlertsQuery, SignalsRawAlert, SignalsRawAlertsPage, SignalsRawAlertsQuery, SignalsSettingsPatch, SignalsSettingsResponse, SignalsThreshold, SignalsThresholds, UnconfirmedLimits, RepushUnconfirmedLimitsResult } from "./types";
|
|
@@ -6,38 +7,38 @@ import { EnableSignalsResponse, SetSignalsThresholdBody, SignalsAlert, SignalsAl
|
|
|
6
7
|
* Observations saved through Ovok are forwarded by the backend, so callers should not submit
|
|
7
8
|
* the same readings to Signals separately.
|
|
8
9
|
*/
|
|
9
|
-
export declare function enableSignalsForPatient(this: OvokClient, patientId: string): Promise<EnableSignalsResponse>;
|
|
10
|
-
export declare function getSignalsThresholds(this: OvokClient, patientId: string): Promise<SignalsThresholds>;
|
|
11
|
-
export declare function listUnconfirmedLimits(this: OvokClient): Promise<UnconfirmedLimits>;
|
|
12
|
-
export declare function repushUnconfirmedLimits(this: OvokClient): Promise<RepushUnconfirmedLimitsResult>;
|
|
13
|
-
export declare function setSignalsThreshold(this: OvokClient, patientId: string, code: string, body: SetSignalsThresholdBody): Promise<SignalsThreshold>;
|
|
14
|
-
export declare function removeSignalsThreshold(this: OvokClient, patientId: string, code: string, reason: string): Promise<void>;
|
|
10
|
+
export declare function enableSignalsForPatient(this: OvokClient, patientId: string, requestOptions?: MedplumRequestOptions): Promise<EnableSignalsResponse>;
|
|
11
|
+
export declare function getSignalsThresholds(this: OvokClient, patientId: string, requestOptions?: MedplumRequestOptions): Promise<SignalsThresholds>;
|
|
12
|
+
export declare function listUnconfirmedLimits(this: OvokClient, requestOptions?: MedplumRequestOptions): Promise<UnconfirmedLimits>;
|
|
13
|
+
export declare function repushUnconfirmedLimits(this: OvokClient, requestOptions?: MedplumRequestOptions): Promise<RepushUnconfirmedLimitsResult>;
|
|
14
|
+
export declare function setSignalsThreshold(this: OvokClient, patientId: string, code: string, body: SetSignalsThresholdBody, requestOptions?: MedplumRequestOptions): Promise<SignalsThreshold>;
|
|
15
|
+
export declare function removeSignalsThreshold(this: OvokClient, patientId: string, code: string, reason: string, requestOptions?: MedplumRequestOptions): Promise<void>;
|
|
15
16
|
export declare function serializeSignalsAlertsQuery(query?: SignalsAlertsQuery | SignalsRawAlertsQuery, keys?: readonly string[]): string;
|
|
16
|
-
export declare function listSignalsAlerts(this: OvokClient, query?: SignalsAlertsQuery): Promise<SignalsAlertsPage>;
|
|
17
|
-
export declare function getSignalsAlert(this: OvokClient, episodeId: string): Promise<SignalsAlert>;
|
|
18
|
-
export declare function acknowledgeSignalsAlert(this: OvokClient, episodeId: string): Promise<SignalsAlert>;
|
|
19
|
-
export declare function listSignalsAlertNotes(this: OvokClient, episodeId: string): Promise<NotificationNotes>;
|
|
17
|
+
export declare function listSignalsAlerts(this: OvokClient, query?: SignalsAlertsQuery, requestOptions?: MedplumRequestOptions): Promise<SignalsAlertsPage>;
|
|
18
|
+
export declare function getSignalsAlert(this: OvokClient, episodeId: string, requestOptions?: MedplumRequestOptions): Promise<SignalsAlert>;
|
|
19
|
+
export declare function acknowledgeSignalsAlert(this: OvokClient, episodeId: string, requestOptions?: MedplumRequestOptions): Promise<SignalsAlert>;
|
|
20
|
+
export declare function listSignalsAlertNotes(this: OvokClient, episodeId: string, requestOptions?: MedplumRequestOptions): Promise<NotificationNotes>;
|
|
20
21
|
export declare function createSignalsAlertNote(this: OvokClient, episodeId: string, body: {
|
|
21
22
|
text: string;
|
|
22
|
-
}): Promise<NotificationNote>;
|
|
23
|
-
export declare function listSignalsRawAlertNotes(this: OvokClient, alertId: string): Promise<NotificationNotes>;
|
|
23
|
+
}, requestOptions?: MedplumRequestOptions): Promise<NotificationNote>;
|
|
24
|
+
export declare function listSignalsRawAlertNotes(this: OvokClient, alertId: string, requestOptions?: MedplumRequestOptions): Promise<NotificationNotes>;
|
|
24
25
|
export declare function createSignalsRawAlertNote(this: OvokClient, alertId: string, body: {
|
|
25
26
|
text: string;
|
|
26
|
-
}): Promise<NotificationNote>;
|
|
27
|
-
export declare function updateSignalsNote(this: OvokClient, noteId: string, body: UpdateNotificationNote): Promise<NotificationNote>;
|
|
28
|
-
export declare function patchSignalsNote(this: OvokClient, noteId: string, body: UpdateNotificationNote): Promise<NotificationNote>;
|
|
29
|
-
export declare function deleteSignalsNote(this: OvokClient, noteId: string): Promise<void>;
|
|
27
|
+
}, requestOptions?: MedplumRequestOptions): Promise<NotificationNote>;
|
|
28
|
+
export declare function updateSignalsNote(this: OvokClient, noteId: string, body: UpdateNotificationNote, requestOptions?: MedplumRequestOptions): Promise<NotificationNote>;
|
|
29
|
+
export declare function patchSignalsNote(this: OvokClient, noteId: string, body: UpdateNotificationNote, requestOptions?: MedplumRequestOptions): Promise<NotificationNote>;
|
|
30
|
+
export declare function deleteSignalsNote(this: OvokClient, noteId: string, requestOptions?: MedplumRequestOptions): Promise<void>;
|
|
30
31
|
/**
|
|
31
32
|
* The project's individual Signals alerts, not episodes: works whether or not the project's
|
|
32
33
|
* `episodicAlerts` is on. `acknowledged: false` lists what is still open for the practitioner.
|
|
33
34
|
*/
|
|
34
|
-
export declare function listSignalsRawAlerts(this: OvokClient, query?: SignalsRawAlertsQuery): Promise<SignalsRawAlertsPage>;
|
|
35
|
-
export declare function getSignalsRawAlert(this: OvokClient, alertId: string): Promise<SignalsRawAlert>;
|
|
35
|
+
export declare function listSignalsRawAlerts(this: OvokClient, query?: SignalsRawAlertsQuery, requestOptions?: MedplumRequestOptions): Promise<SignalsRawAlertsPage>;
|
|
36
|
+
export declare function getSignalsRawAlert(this: OvokClient, alertId: string, requestOptions?: MedplumRequestOptions): Promise<SignalsRawAlert>;
|
|
36
37
|
/**
|
|
37
38
|
* Acknowledges one alert: it resolves, and `acknowledgedAt` and `acknowledgedActor` record when
|
|
38
39
|
* and by whom. Idempotent: an acknowledged alert keeps its first acknowledgement. Needs
|
|
39
40
|
* `signals_alerts:update` and update access to the resident.
|
|
40
41
|
*/
|
|
41
|
-
export declare function acknowledgeSignalsRawAlert(this: OvokClient, alertId: string): Promise<SignalsRawAlert>;
|
|
42
|
-
export declare function getSignalsSettings(this: OvokClient): Promise<SignalsSettingsResponse>;
|
|
43
|
-
export declare function updateSignalsSettings(this: OvokClient, patch: SignalsSettingsPatch, reason?: string | null): Promise<SignalsSettingsResponse>;
|
|
42
|
+
export declare function acknowledgeSignalsRawAlert(this: OvokClient, alertId: string, requestOptions?: MedplumRequestOptions): Promise<SignalsRawAlert>;
|
|
43
|
+
export declare function getSignalsSettings(this: OvokClient, requestOptions?: MedplumRequestOptions): Promise<SignalsSettingsResponse>;
|
|
44
|
+
export declare function updateSignalsSettings(this: OvokClient, patch: SignalsSettingsPatch, reason?: string | null, requestOptions?: MedplumRequestOptions): Promise<SignalsSettingsResponse>;
|
|
@@ -28,23 +28,23 @@ const segment = (value) => encodeURIComponent(value);
|
|
|
28
28
|
* Observations saved through Ovok are forwarded by the backend, so callers should not submit
|
|
29
29
|
* the same readings to Signals separately.
|
|
30
30
|
*/
|
|
31
|
-
function enableSignalsForPatient(patientId) {
|
|
32
|
-
return this.post(`/fhir/Patient/${segment(patientId)}/$enable-signals
|
|
31
|
+
function enableSignalsForPatient(patientId, requestOptions) {
|
|
32
|
+
return this.post(`/fhir/Patient/${segment(patientId)}/$enable-signals`, undefined, undefined, requestOptions);
|
|
33
33
|
}
|
|
34
|
-
function getSignalsThresholds(patientId) {
|
|
35
|
-
return this.get(`/v1/signals/patients/${segment(patientId)}/thresholds
|
|
34
|
+
function getSignalsThresholds(patientId, requestOptions) {
|
|
35
|
+
return this.get(`/v1/signals/patients/${segment(patientId)}/thresholds`, ...(requestOptions === undefined ? [] : [requestOptions]));
|
|
36
36
|
}
|
|
37
|
-
function listUnconfirmedLimits() {
|
|
38
|
-
return this.get("/signals/config/unconfirmed");
|
|
37
|
+
function listUnconfirmedLimits(requestOptions) {
|
|
38
|
+
return this.get("/signals/config/unconfirmed", ...(requestOptions === undefined ? [] : [requestOptions]));
|
|
39
39
|
}
|
|
40
|
-
function repushUnconfirmedLimits() {
|
|
41
|
-
return this.post("/signals/config/unconfirmed/repush");
|
|
40
|
+
function repushUnconfirmedLimits(requestOptions) {
|
|
41
|
+
return this.post("/signals/config/unconfirmed/repush", undefined, undefined, requestOptions);
|
|
42
42
|
}
|
|
43
|
-
function setSignalsThreshold(patientId, code, body) {
|
|
44
|
-
return this.put(`/v1/signals/patients/${segment(patientId)}/thresholds/${segment(code)}`, body);
|
|
43
|
+
function setSignalsThreshold(patientId, code, body, requestOptions) {
|
|
44
|
+
return this.put(`/v1/signals/patients/${segment(patientId)}/thresholds/${segment(code)}`, body, undefined, requestOptions);
|
|
45
45
|
}
|
|
46
|
-
function removeSignalsThreshold(patientId, code, reason) {
|
|
47
|
-
return this.delete(`/v1/signals/patients/${segment(patientId)}/thresholds/${segment(code)}?reason=${segment(reason)}
|
|
46
|
+
function removeSignalsThreshold(patientId, code, reason, requestOptions) {
|
|
47
|
+
return this.delete(`/v1/signals/patients/${segment(patientId)}/thresholds/${segment(code)}?reason=${segment(reason)}`, ...(requestOptions === undefined ? [] : [requestOptions]));
|
|
48
48
|
}
|
|
49
49
|
// Each route's own filters, in the order they are sent: a key outside the list is never sent, so
|
|
50
50
|
// a wider object passed as an episode query can't turn into a refused request.
|
|
@@ -70,62 +70,62 @@ function serializeSignalsAlertsQuery(query = {}, keys = EPISODE_QUERY_KEYS) {
|
|
|
70
70
|
})
|
|
71
71
|
.join("&");
|
|
72
72
|
}
|
|
73
|
-
function listSignalsAlerts(query = {}) {
|
|
73
|
+
function listSignalsAlerts(query = {}, requestOptions) {
|
|
74
74
|
const serialized = serializeSignalsAlertsQuery(query);
|
|
75
|
-
return this.get(`/v1/signals/alerts${serialized ? `?${serialized}` : ""}`, { cache: "reload" });
|
|
75
|
+
return this.get(`/v1/signals/alerts${serialized ? `?${serialized}` : ""}`, { ...{ cache: "reload" }, ...requestOptions });
|
|
76
76
|
}
|
|
77
|
-
function getSignalsAlert(episodeId) {
|
|
78
|
-
return this.get(`/v1/signals/alerts/${segment(episodeId)}`, { cache: "reload" });
|
|
77
|
+
function getSignalsAlert(episodeId, requestOptions) {
|
|
78
|
+
return this.get(`/v1/signals/alerts/${segment(episodeId)}`, { ...{ cache: "reload" }, ...requestOptions });
|
|
79
79
|
}
|
|
80
|
-
function acknowledgeSignalsAlert(episodeId) {
|
|
81
|
-
return this.post(`/v1/signals/alerts/${segment(episodeId)}/ack
|
|
80
|
+
function acknowledgeSignalsAlert(episodeId, requestOptions) {
|
|
81
|
+
return this.post(`/v1/signals/alerts/${segment(episodeId)}/ack`, undefined, undefined, requestOptions);
|
|
82
82
|
}
|
|
83
|
-
function listSignalsAlertNotes(episodeId) {
|
|
84
|
-
return this.get(`/v1/signals/alerts/${segment(episodeId)}/notes`, { cache: "reload" });
|
|
83
|
+
function listSignalsAlertNotes(episodeId, requestOptions) {
|
|
84
|
+
return this.get(`/v1/signals/alerts/${segment(episodeId)}/notes`, { ...{ cache: "reload" }, ...requestOptions });
|
|
85
85
|
}
|
|
86
|
-
function createSignalsAlertNote(episodeId, body) {
|
|
87
|
-
return this.post(`/v1/signals/alerts/${segment(episodeId)}/notes`, body);
|
|
86
|
+
function createSignalsAlertNote(episodeId, body, requestOptions) {
|
|
87
|
+
return this.post(`/v1/signals/alerts/${segment(episodeId)}/notes`, body, undefined, requestOptions);
|
|
88
88
|
}
|
|
89
|
-
function listSignalsRawAlertNotes(alertId) {
|
|
90
|
-
return this.get(`/v1/signals/raw-alerts/${segment(alertId)}/notes`, { cache: "reload" });
|
|
89
|
+
function listSignalsRawAlertNotes(alertId, requestOptions) {
|
|
90
|
+
return this.get(`/v1/signals/raw-alerts/${segment(alertId)}/notes`, { ...{ cache: "reload" }, ...requestOptions });
|
|
91
91
|
}
|
|
92
|
-
function createSignalsRawAlertNote(alertId, body) {
|
|
93
|
-
return this.post(`/v1/signals/raw-alerts/${segment(alertId)}/notes`, body);
|
|
92
|
+
function createSignalsRawAlertNote(alertId, body, requestOptions) {
|
|
93
|
+
return this.post(`/v1/signals/raw-alerts/${segment(alertId)}/notes`, body, undefined, requestOptions);
|
|
94
94
|
}
|
|
95
|
-
function updateSignalsNote(noteId, body) {
|
|
96
|
-
return this.put(`/v1/signals/notes/${segment(noteId)}`, body);
|
|
95
|
+
function updateSignalsNote(noteId, body, requestOptions) {
|
|
96
|
+
return this.put(`/v1/signals/notes/${segment(noteId)}`, body, undefined, requestOptions);
|
|
97
97
|
}
|
|
98
|
-
function patchSignalsNote(noteId, body) {
|
|
99
|
-
return this.patch(`/v1/signals/notes/${segment(noteId)}`, body);
|
|
98
|
+
function patchSignalsNote(noteId, body, requestOptions) {
|
|
99
|
+
return this.patch(`/v1/signals/notes/${segment(noteId)}`, body, ...(requestOptions === undefined ? [] : [requestOptions]));
|
|
100
100
|
}
|
|
101
|
-
async function deleteSignalsNote(noteId) {
|
|
102
|
-
await this.delete(`/v1/signals/notes/${segment(noteId)}
|
|
101
|
+
async function deleteSignalsNote(noteId, requestOptions) {
|
|
102
|
+
await this.delete(`/v1/signals/notes/${segment(noteId)}`, ...(requestOptions === undefined ? [] : [requestOptions]));
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
105
105
|
* The project's individual Signals alerts, not episodes: works whether or not the project's
|
|
106
106
|
* `episodicAlerts` is on. `acknowledged: false` lists what is still open for the practitioner.
|
|
107
107
|
*/
|
|
108
|
-
function listSignalsRawAlerts(query = {}) {
|
|
108
|
+
function listSignalsRawAlerts(query = {}, requestOptions) {
|
|
109
109
|
const serialized = serializeSignalsAlertsQuery(query, RAW_ALERT_QUERY_KEYS);
|
|
110
|
-
return this.get(`/v1/signals/raw-alerts${serialized ? `?${serialized}` : ""}`, { cache: "reload" });
|
|
110
|
+
return this.get(`/v1/signals/raw-alerts${serialized ? `?${serialized}` : ""}`, { ...{ cache: "reload" }, ...requestOptions });
|
|
111
111
|
}
|
|
112
|
-
function getSignalsRawAlert(alertId) {
|
|
113
|
-
return this.get(`/v1/signals/raw-alerts/${segment(alertId)}`, { cache: "reload" });
|
|
112
|
+
function getSignalsRawAlert(alertId, requestOptions) {
|
|
113
|
+
return this.get(`/v1/signals/raw-alerts/${segment(alertId)}`, { ...{ cache: "reload" }, ...requestOptions });
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
116
116
|
* Acknowledges one alert: it resolves, and `acknowledgedAt` and `acknowledgedActor` record when
|
|
117
117
|
* and by whom. Idempotent: an acknowledged alert keeps its first acknowledgement. Needs
|
|
118
118
|
* `signals_alerts:update` and update access to the resident.
|
|
119
119
|
*/
|
|
120
|
-
function acknowledgeSignalsRawAlert(alertId) {
|
|
121
|
-
return this.post(`/v1/signals/raw-alerts/${segment(alertId)}/ack
|
|
120
|
+
function acknowledgeSignalsRawAlert(alertId, requestOptions) {
|
|
121
|
+
return this.post(`/v1/signals/raw-alerts/${segment(alertId)}/ack`, undefined, undefined, requestOptions);
|
|
122
122
|
}
|
|
123
|
-
function getSignalsSettings() {
|
|
124
|
-
return this.get("/v1/signals/settings");
|
|
123
|
+
function getSignalsSettings(requestOptions) {
|
|
124
|
+
return this.get("/v1/signals/settings", ...(requestOptions === undefined ? [] : [requestOptions]));
|
|
125
125
|
}
|
|
126
|
-
function updateSignalsSettings(patch, reason) {
|
|
126
|
+
function updateSignalsSettings(patch, reason, requestOptions) {
|
|
127
127
|
return this.patch("/v1/signals/settings", {
|
|
128
128
|
...patch,
|
|
129
129
|
...(reason !== undefined ? { reason } : {}),
|
|
130
|
-
});
|
|
130
|
+
}, ...(requestOptions === undefined ? [] : [requestOptions]));
|
|
131
131
|
}
|
|
@@ -1,83 +1,119 @@
|
|
|
1
1
|
import { Bundle, Resource } from "@medplum/fhirtypes";
|
|
2
|
-
import {
|
|
2
|
+
import type { MedplumRequestOptions } from "@medplum/core";
|
|
3
|
+
import { SlimAlarmQuery, SlimAlarmsPage, SlimMedicalNotificationsPage, SlimMedicalNotificationDetail, SlimMedicalNotificationRow, SlimMedicalNotificationsQuery, SlimRecentAlarms, SlimRecentOutOfBed } from "../notifications/types";
|
|
3
4
|
import { OvokClient } from "../ovok-client";
|
|
4
|
-
import { SlimAssignDevice, SlimCreateDevice, SlimCreateLocation, SlimCreatePatient, SlimDevice, SlimDeviceListItem, SlimDeviceListQuery, SlimDeviceTelemetry, SlimExportPdf, SlimExportPdfRequest, SlimLiveQuery, SlimLiveTelemetry, SlimLocation, SlimLocationQuery, SlimNotification, SlimNotificationsQuery, SlimNotificationsResponse, SlimObservationIds, SlimPage, SlimPatient, SlimPatientListItem, SlimPatientListQuery, SlimRecentNotificationsResponse, SlimSleepStatistics, SlimThreshold, SlimThresholdSettingsUpdateV1, SlimThresholdV2, SlimThresholdV2Update, SlimPatientThresholdV2, SlimTrends, SlimUpdateDevice, SlimUpdateLocation, SlimUpdatePatient, SlimZone, SlimZoneDetail } from "./types";
|
|
5
|
-
export declare function listSlimPatients(this: OvokClient, params?: SlimPatientListQuery): Promise<SlimPage<SlimPatientListItem>>;
|
|
6
|
-
export declare function getSlimPatient(this: OvokClient, patientId: string): Promise<SlimPatient>;
|
|
7
|
-
export declare function getSlimPatientEverything(this: OvokClient, patientId: string): Promise<Bundle<Resource>>;
|
|
8
|
-
export declare function getSlimPatientCurrentVitals(this: OvokClient, patientId: string): Promise<Record<string, unknown>>;
|
|
9
|
-
export declare function createSlimPatient(this: OvokClient, body: SlimCreatePatient): Promise<SlimPatient>;
|
|
10
|
-
export declare function updateSlimPatient(this: OvokClient, patientId: string, body: SlimUpdatePatient): Promise<SlimPatient>;
|
|
11
|
-
export declare function deleteSlimPatient(this: OvokClient, patientId: string): Promise<void>;
|
|
12
|
-
export declare function listSlimDevices(this: OvokClient, params?: SlimDeviceListQuery): Promise<SlimPage<SlimDeviceListItem>>;
|
|
13
|
-
export declare function getSlimDevice(this: OvokClient, deviceId: string): Promise<SlimDevice>;
|
|
14
|
-
export declare function createSlimDevice(this: OvokClient, body: SlimCreateDevice): Promise<SlimDevice>;
|
|
15
|
-
export declare function updateSlimDevice(this: OvokClient, deviceId: string, body: SlimUpdateDevice): Promise<SlimDevice>;
|
|
16
|
-
export declare function deleteSlimDevice(this: OvokClient, deviceId: string): Promise<void>;
|
|
17
|
-
export declare function assignSlimDeviceToProject(this: OvokClient, body: SlimAssignDevice): Promise<SlimDevice>;
|
|
18
|
-
export declare function listSlimLiveDevices(this: OvokClient, params?: SlimLiveQuery): Promise<SlimPage<Record<string, unknown>>>;
|
|
19
|
-
export declare function listSlimLiveTelemetry(this: OvokClient, params?: SlimLiveQuery): Promise<SlimLiveTelemetry>;
|
|
20
|
-
export declare function getSlimDeviceSleepStatus(this: OvokClient, deviceId: string): Promise<Record<string, unknown>>;
|
|
21
|
-
export declare function getSlimDeviceTelemetry(this: OvokClient, deviceId: string): Promise<SlimDeviceTelemetry>;
|
|
22
|
-
export declare function listSlimEffectiveObservationIds(this: OvokClient): Promise<Record<string, SlimObservationIds>>;
|
|
23
|
-
export declare function listSlimLastObservationIds(this: OvokClient): Promise<Record<string, SlimObservationIds>>;
|
|
24
|
-
export declare function getSlimDeviceEffectiveObservationIds(this: OvokClient, deviceId: string): Promise<Omit<SlimObservationIds, "batch">>;
|
|
25
|
-
export declare function getSlimDeviceLastObservationIds(this: OvokClient, deviceId: string): Promise<SlimObservationIds>;
|
|
5
|
+
import { SlimAssignDevice, SlimCreateDevice, SlimCreateLocation, SlimCreatePatient, SlimDevice, SlimDeviceListItem, SlimDeviceListQuery, SlimDeviceTelemetry, SlimExportPdf, SlimExportPdfRequest, SlimLiveQuery, SlimLiveTelemetry, SlimLocation, SlimLocationQuery, SlimNotification, SlimNotificationsQuery, SlimNotificationsResponse, SlimObservationIds, SlimPage, SlimPatient, SlimPatientListItem, SlimPatientListQuery, SlimRecentNotificationsResponse, SlimSleepStatistics, SlimThreshold, SlimThresholdSettingsUpdateV1, SlimThresholdV2, SlimThresholdV2Update, SlimPatientThresholdV2, SlimProject, SlimProjectRelationships, SlimProjectRelationshipsV2, SlimChildProjectInput, SlimProjectUsersQuery, SlimProjectUsersPage, SlimProjectDeviceCounts, SlimProjectPatientCounts, SlimPolicyListQuery, SlimPolicyList, SlimPolicyResponse, SlimCreatePolicy, SlimUpdatePolicy, SlimOrganization, SlimOrganizationInput, SlimPractitionerInviteInput, SlimPractitionerInviteResponse, SlimUserProfileType, SlimHealth, SlimTrends, SlimGraphType, SlimHistoricalGraphType, SlimUpdateDevice, SlimUpdateLocation, SlimUpdatePatient, SlimZone, SlimZoneDetail } from "./types";
|
|
6
|
+
export declare function listSlimPatients(this: OvokClient, params?: SlimPatientListQuery, requestOptions?: MedplumRequestOptions): Promise<SlimPage<SlimPatientListItem>>;
|
|
7
|
+
export declare function getSlimPatient(this: OvokClient, patientId: string, requestOptions?: MedplumRequestOptions): Promise<SlimPatient>;
|
|
8
|
+
export declare function getSlimPatientEverything(this: OvokClient, patientId: string, requestOptions?: MedplumRequestOptions): Promise<Bundle<Resource>>;
|
|
9
|
+
export declare function getSlimPatientCurrentVitals(this: OvokClient, patientId: string, requestOptions?: MedplumRequestOptions): Promise<Record<string, unknown>>;
|
|
10
|
+
export declare function createSlimPatient(this: OvokClient, body: SlimCreatePatient, requestOptions?: MedplumRequestOptions): Promise<SlimPatient>;
|
|
11
|
+
export declare function updateSlimPatient(this: OvokClient, patientId: string, body: SlimUpdatePatient, requestOptions?: MedplumRequestOptions): Promise<SlimPatient>;
|
|
12
|
+
export declare function deleteSlimPatient(this: OvokClient, patientId: string, requestOptions?: MedplumRequestOptions): Promise<void>;
|
|
13
|
+
export declare function listSlimDevices(this: OvokClient, params?: SlimDeviceListQuery, requestOptions?: MedplumRequestOptions): Promise<SlimPage<SlimDeviceListItem>>;
|
|
14
|
+
export declare function getSlimDevice(this: OvokClient, deviceId: string, requestOptions?: MedplumRequestOptions): Promise<SlimDevice>;
|
|
15
|
+
export declare function createSlimDevice(this: OvokClient, body: SlimCreateDevice, requestOptions?: MedplumRequestOptions): Promise<SlimDevice>;
|
|
16
|
+
export declare function updateSlimDevice(this: OvokClient, deviceId: string, body: SlimUpdateDevice, requestOptions?: MedplumRequestOptions): Promise<SlimDevice>;
|
|
17
|
+
export declare function deleteSlimDevice(this: OvokClient, deviceId: string, requestOptions?: MedplumRequestOptions): Promise<void>;
|
|
18
|
+
export declare function assignSlimDeviceToProject(this: OvokClient, body: SlimAssignDevice, requestOptions?: MedplumRequestOptions): Promise<SlimDevice>;
|
|
19
|
+
export declare function listSlimLiveDevices(this: OvokClient, params?: SlimLiveQuery, requestOptions?: MedplumRequestOptions): Promise<SlimPage<Record<string, unknown>>>;
|
|
20
|
+
export declare function listSlimLiveTelemetry(this: OvokClient, params?: SlimLiveQuery, requestOptions?: MedplumRequestOptions): Promise<SlimLiveTelemetry>;
|
|
21
|
+
export declare function getSlimDeviceSleepStatus(this: OvokClient, deviceId: string, requestOptions?: MedplumRequestOptions): Promise<Record<string, unknown>>;
|
|
22
|
+
export declare function getSlimDeviceTelemetry(this: OvokClient, deviceId: string, requestOptions?: MedplumRequestOptions): Promise<SlimDeviceTelemetry>;
|
|
23
|
+
export declare function listSlimEffectiveObservationIds(this: OvokClient, requestOptions?: MedplumRequestOptions): Promise<Record<string, SlimObservationIds>>;
|
|
24
|
+
export declare function listSlimLastObservationIds(this: OvokClient, requestOptions?: MedplumRequestOptions): Promise<Record<string, SlimObservationIds>>;
|
|
25
|
+
export declare function getSlimDeviceEffectiveObservationIds(this: OvokClient, deviceId: string, requestOptions?: MedplumRequestOptions): Promise<Omit<SlimObservationIds, "batch">>;
|
|
26
|
+
export declare function getSlimDeviceLastObservationIds(this: OvokClient, deviceId: string, requestOptions?: MedplumRequestOptions): Promise<SlimObservationIds>;
|
|
26
27
|
/** @deprecated Use listSlimOutOfBedNotifications, listSlimAlarms, or listSlimMedicalNotifications. */
|
|
27
|
-
export declare function listSlimNotifications(this: OvokClient, params?: SlimNotificationsQuery): Promise<SlimNotificationsResponse>;
|
|
28
|
-
export declare function getRecentSlimNotifications(this: OvokClient, count?: number): Promise<SlimRecentNotificationsResponse>;
|
|
29
|
-
export declare function listSlimAlarms(this: OvokClient, params?: SlimAlarmQuery): Promise<SlimAlarmsPage>;
|
|
30
|
-
export declare function acknowledgeSlimAlarm(this: OvokClient, notificationId: string): Promise<SlimNotification>;
|
|
31
|
-
export declare function getRecentSlimAlarms(this: OvokClient, count?: number): Promise<SlimRecentAlarms>;
|
|
32
|
-
export declare function getRecentAlarms(this: OvokClient, count?: number): Promise<SlimRecentAlarms>;
|
|
33
|
-
export declare function getRecentSlimOutOfBed(this: OvokClient, count?: number): Promise<SlimRecentOutOfBed>;
|
|
34
|
-
export declare function getRecentOutOfBed(this: OvokClient, count?: number): Promise<SlimRecentOutOfBed>;
|
|
35
|
-
export declare function listSlimOutOfBedNotifications(this: OvokClient, params?: Omit<SlimNotificationsQuery, "type"
|
|
36
|
-
export declare function listSlimMedicalNotifications(this: OvokClient, params?: SlimMedicalNotificationsQuery): Promise<SlimMedicalNotificationsPage>;
|
|
37
|
-
export declare function getRecentSlimMedicalNotifications(this: OvokClient, count?: number): Promise<SlimRecentNotificationsResponse>;
|
|
38
|
-
export declare function getSlimMedicalNotification(this: OvokClient, episodeId: string): Promise<
|
|
39
|
-
export declare function acknowledgeSlimMedicalNotification(this: OvokClient, episodeId: string): Promise<
|
|
40
|
-
export declare function acknowledgeSlimNotification(this: OvokClient, notificationId: string): Promise<SlimNotification>;
|
|
41
|
-
export declare function getSlimThreshold(this: OvokClient): Promise<SlimThreshold>;
|
|
28
|
+
export declare function listSlimNotifications(this: OvokClient, params?: SlimNotificationsQuery, requestOptions?: MedplumRequestOptions): Promise<SlimNotificationsResponse>;
|
|
29
|
+
export declare function getRecentSlimNotifications(this: OvokClient, count?: number, requestOptions?: MedplumRequestOptions): Promise<SlimRecentNotificationsResponse>;
|
|
30
|
+
export declare function listSlimAlarms(this: OvokClient, params?: SlimAlarmQuery, requestOptions?: MedplumRequestOptions): Promise<SlimAlarmsPage>;
|
|
31
|
+
export declare function acknowledgeSlimAlarm(this: OvokClient, notificationId: string, requestOptions?: MedplumRequestOptions): Promise<SlimNotification>;
|
|
32
|
+
export declare function getRecentSlimAlarms(this: OvokClient, count?: number, requestOptions?: MedplumRequestOptions): Promise<SlimRecentAlarms>;
|
|
33
|
+
export declare function getRecentAlarms(this: OvokClient, count?: number, requestOptions?: MedplumRequestOptions): Promise<SlimRecentAlarms>;
|
|
34
|
+
export declare function getRecentSlimOutOfBed(this: OvokClient, count?: number, requestOptions?: MedplumRequestOptions): Promise<SlimRecentOutOfBed>;
|
|
35
|
+
export declare function getRecentOutOfBed(this: OvokClient, count?: number, requestOptions?: MedplumRequestOptions): Promise<SlimRecentOutOfBed>;
|
|
36
|
+
export declare function listSlimOutOfBedNotifications(this: OvokClient, params?: Omit<SlimNotificationsQuery, "type">, requestOptions?: MedplumRequestOptions): Promise<SlimNotificationsResponse>;
|
|
37
|
+
export declare function listSlimMedicalNotifications(this: OvokClient, params?: SlimMedicalNotificationsQuery, requestOptions?: MedplumRequestOptions): Promise<SlimMedicalNotificationsPage>;
|
|
38
|
+
export declare function getRecentSlimMedicalNotifications(this: OvokClient, count?: number, requestOptions?: MedplumRequestOptions): Promise<SlimRecentNotificationsResponse>;
|
|
39
|
+
export declare function getSlimMedicalNotification(this: OvokClient, episodeId: string, requestOptions?: MedplumRequestOptions): Promise<SlimMedicalNotificationDetail>;
|
|
40
|
+
export declare function acknowledgeSlimMedicalNotification(this: OvokClient, episodeId: string, requestOptions?: MedplumRequestOptions): Promise<SlimMedicalNotificationRow>;
|
|
41
|
+
export declare function acknowledgeSlimNotification(this: OvokClient, notificationId: string, requestOptions?: MedplumRequestOptions): Promise<SlimNotification>;
|
|
42
|
+
export declare function getSlimThreshold(this: OvokClient, requestOptions?: MedplumRequestOptions): Promise<SlimThreshold>;
|
|
42
43
|
export declare function updateSlimThreshold(this: OvokClient, body: {
|
|
43
44
|
settings: SlimThresholdSettingsUpdateV1;
|
|
44
|
-
}): Promise<SlimThreshold>;
|
|
45
|
-
export declare function getSlimPatientThreshold(this: OvokClient, patientId: string): Promise<Record<string, unknown>>;
|
|
45
|
+
}, requestOptions?: MedplumRequestOptions): Promise<SlimThreshold>;
|
|
46
|
+
export declare function getSlimPatientThreshold(this: OvokClient, patientId: string, requestOptions?: MedplumRequestOptions): Promise<Record<string, unknown>>;
|
|
46
47
|
export declare function updateSlimPatientThreshold(this: OvokClient, patientId: string, body: {
|
|
47
48
|
settings: SlimThresholdSettingsUpdateV1;
|
|
48
|
-
}): Promise<Record<string, unknown>>;
|
|
49
|
-
export declare function getSlimThresholdV2(this: OvokClient): Promise<SlimThresholdV2>;
|
|
50
|
-
export declare function updateSlimThresholdV2(this: OvokClient, body: SlimThresholdV2Update): Promise<SlimThresholdV2>;
|
|
51
|
-
export declare function getSlimPatientThresholdV2(this: OvokClient, patientId: string): Promise<SlimPatientThresholdV2>;
|
|
52
|
-
export declare function updateSlimPatientThresholdV2(this: OvokClient, patientId: string, body: SlimThresholdV2Update): Promise<SlimPatientThresholdV2>;
|
|
49
|
+
}, requestOptions?: MedplumRequestOptions): Promise<Record<string, unknown>>;
|
|
50
|
+
export declare function getSlimThresholdV2(this: OvokClient, requestOptions?: MedplumRequestOptions): Promise<SlimThresholdV2>;
|
|
51
|
+
export declare function updateSlimThresholdV2(this: OvokClient, body: SlimThresholdV2Update, requestOptions?: MedplumRequestOptions): Promise<SlimThresholdV2>;
|
|
52
|
+
export declare function getSlimPatientThresholdV2(this: OvokClient, patientId: string, requestOptions?: MedplumRequestOptions): Promise<SlimPatientThresholdV2>;
|
|
53
|
+
export declare function updateSlimPatientThresholdV2(this: OvokClient, patientId: string, body: SlimThresholdV2Update, requestOptions?: MedplumRequestOptions): Promise<SlimPatientThresholdV2>;
|
|
53
54
|
export declare function getSlimTrends(this: OvokClient, params: {
|
|
54
55
|
patientId: string;
|
|
55
56
|
startDate: string;
|
|
56
57
|
endDate: string;
|
|
57
|
-
graphType:
|
|
58
|
-
}): Promise<SlimTrends>;
|
|
58
|
+
graphType: SlimHistoricalGraphType | readonly SlimHistoricalGraphType[];
|
|
59
|
+
}, requestOptions?: MedplumRequestOptions): Promise<SlimTrends>;
|
|
60
|
+
export declare function getSlimRealtimeTrends(this: OvokClient, params: {
|
|
61
|
+
patientId: string;
|
|
62
|
+
startTime: string;
|
|
63
|
+
endTime: string;
|
|
64
|
+
graphType: SlimGraphType | readonly SlimGraphType[];
|
|
65
|
+
}, requestOptions?: MedplumRequestOptions): Promise<SlimTrends>;
|
|
59
66
|
export declare function getSlimSleepStatistics(this: OvokClient, params: {
|
|
60
67
|
endDate: string;
|
|
61
68
|
lastDayCount?: number;
|
|
62
69
|
patientId: string;
|
|
63
|
-
}): Promise<SlimSleepStatistics>;
|
|
64
|
-
export declare function listSlimLocations(this: OvokClient, params?: SlimLocationQuery): Promise<SlimPage<SlimLocation>>;
|
|
65
|
-
export declare function getSlimLocation(this: OvokClient, locationId: string): Promise<SlimLocation>;
|
|
66
|
-
export declare function createSlimLocation(this: OvokClient, body: SlimCreateLocation): Promise<SlimLocation>;
|
|
67
|
-
export declare function updateSlimLocation(this: OvokClient, locationId: string, body: SlimUpdateLocation): Promise<SlimLocation>;
|
|
68
|
-
export declare function deleteSlimLocation(this: OvokClient, locationId: string): Promise<void>;
|
|
70
|
+
}, requestOptions?: MedplumRequestOptions): Promise<SlimSleepStatistics>;
|
|
71
|
+
export declare function listSlimLocations(this: OvokClient, params?: SlimLocationQuery, requestOptions?: MedplumRequestOptions): Promise<SlimPage<SlimLocation>>;
|
|
72
|
+
export declare function getSlimLocation(this: OvokClient, locationId: string, requestOptions?: MedplumRequestOptions): Promise<SlimLocation>;
|
|
73
|
+
export declare function createSlimLocation(this: OvokClient, body: SlimCreateLocation, requestOptions?: MedplumRequestOptions): Promise<SlimLocation>;
|
|
74
|
+
export declare function updateSlimLocation(this: OvokClient, locationId: string, body: SlimUpdateLocation, requestOptions?: MedplumRequestOptions): Promise<SlimLocation>;
|
|
75
|
+
export declare function deleteSlimLocation(this: OvokClient, locationId: string, requestOptions?: MedplumRequestOptions): Promise<void>;
|
|
69
76
|
export declare function listSlimZones(this: OvokClient, params?: {
|
|
70
77
|
page?: number;
|
|
71
78
|
count?: number;
|
|
72
79
|
sortBy?: string;
|
|
73
80
|
orderBy?: "ASC" | "DESC";
|
|
74
81
|
search?: string;
|
|
75
|
-
}): Promise<SlimPage<SlimZone>>;
|
|
76
|
-
export declare function getSlimZone(this: OvokClient, zoneId: string): Promise<SlimZoneDetail>;
|
|
82
|
+
}, requestOptions?: MedplumRequestOptions): Promise<SlimPage<SlimZone>>;
|
|
83
|
+
export declare function getSlimZone(this: OvokClient, zoneId: string, requestOptions?: MedplumRequestOptions): Promise<SlimZoneDetail>;
|
|
77
84
|
export declare function getSlimZoneDeviceCounts(this: OvokClient, params?: {
|
|
78
85
|
all?: boolean;
|
|
79
86
|
effectiveSleepStatus?: string;
|
|
80
87
|
includeUnassigned?: boolean;
|
|
81
88
|
includeEmpty?: boolean;
|
|
82
|
-
}): Promise<Record<string, unknown>>;
|
|
83
|
-
export declare function exportSlimPatientPdf(this: OvokClient, body: SlimExportPdfRequest): Promise<SlimExportPdf>;
|
|
89
|
+
}, requestOptions?: MedplumRequestOptions): Promise<Record<string, unknown>>;
|
|
90
|
+
export declare function exportSlimPatientPdf(this: OvokClient, body: SlimExportPdfRequest, requestOptions?: MedplumRequestOptions): Promise<SlimExportPdf>;
|
|
91
|
+
export declare function listSlimProjectUsers(this: OvokClient, params?: SlimProjectUsersQuery, requestOptions?: MedplumRequestOptions): Promise<SlimProjectUsersPage>;
|
|
92
|
+
export declare function createSlimChildProject(this: OvokClient, body: SlimChildProjectInput, requestOptions?: MedplumRequestOptions): Promise<{
|
|
93
|
+
projectId: string;
|
|
94
|
+
success: true;
|
|
95
|
+
}>;
|
|
96
|
+
export declare function getSlimProjectRelationships(this: OvokClient, requestOptions?: MedplumRequestOptions): Promise<SlimProjectRelationships>;
|
|
97
|
+
export declare function getSlimProjectRelationshipsV2(this: OvokClient, requestOptions?: MedplumRequestOptions): Promise<SlimProjectRelationshipsV2>;
|
|
98
|
+
export declare function deleteSlimChildProject(this: OvokClient, subProjectId: string, requestOptions?: MedplumRequestOptions): Promise<{
|
|
99
|
+
success: true;
|
|
100
|
+
}>;
|
|
101
|
+
export declare function listSlimProjectUsersById(this: OvokClient, projectId: string, params?: SlimProjectUsersQuery, requestOptions?: MedplumRequestOptions): Promise<SlimProjectUsersPage>;
|
|
102
|
+
export declare function getSlimProjectDeviceCounts(this: OvokClient, projectId: string, requestOptions?: MedplumRequestOptions): Promise<SlimProjectDeviceCounts>;
|
|
103
|
+
export declare function getSlimProjectPatientCounts(this: OvokClient, projectId: string, requestOptions?: MedplumRequestOptions): Promise<SlimProjectPatientCounts>;
|
|
104
|
+
export declare function updateSlimProject(this: OvokClient, projectId: string, body: SlimChildProjectInput, requestOptions?: MedplumRequestOptions): Promise<SlimProject>;
|
|
105
|
+
export declare function getSlimProject(this: OvokClient, projectId: string, requestOptions?: MedplumRequestOptions): Promise<SlimProject>;
|
|
106
|
+
export declare function listSlimPolicies(this: OvokClient, params?: SlimPolicyListQuery, requestOptions?: MedplumRequestOptions): Promise<SlimPolicyList>;
|
|
107
|
+
export declare function getSlimPolicy(this: OvokClient, policyId: string, requestOptions?: MedplumRequestOptions): Promise<SlimPolicyResponse>;
|
|
108
|
+
export declare function createSlimPolicy(this: OvokClient, body: SlimCreatePolicy, requestOptions?: MedplumRequestOptions): Promise<SlimPolicyResponse>;
|
|
109
|
+
export declare function updateSlimPolicy(this: OvokClient, policyId: string, body: SlimUpdatePolicy, requestOptions?: MedplumRequestOptions): Promise<SlimPolicyResponse>;
|
|
110
|
+
export declare function deleteSlimPolicy(this: OvokClient, policyId: string, requestOptions?: MedplumRequestOptions): Promise<void>;
|
|
111
|
+
export declare function getSlimOrganization(this: OvokClient, organizationId: string, requestOptions?: MedplumRequestOptions): Promise<SlimOrganization>;
|
|
112
|
+
export declare function createSlimOrganization(this: OvokClient, body: SlimOrganizationInput, requestOptions?: MedplumRequestOptions): Promise<SlimOrganization>;
|
|
113
|
+
export declare function updateSlimOrganization(this: OvokClient, organizationId: string, body: SlimOrganizationInput, requestOptions?: MedplumRequestOptions): Promise<SlimOrganization>;
|
|
114
|
+
export declare function deleteSlimOrganization(this: OvokClient, organizationId: string, requestOptions?: MedplumRequestOptions): Promise<void>;
|
|
115
|
+
export declare function inviteSlimPractitioner(this: OvokClient, body: SlimPractitionerInviteInput, requestOptions?: MedplumRequestOptions): Promise<SlimPractitionerInviteResponse>;
|
|
116
|
+
export declare function deleteSlimUser(this: OvokClient, profileType: SlimUserProfileType, profileId: string, requestOptions?: MedplumRequestOptions): Promise<{
|
|
117
|
+
success: boolean;
|
|
118
|
+
}>;
|
|
119
|
+
export declare function getSlimHealth(this: OvokClient, requestOptions?: MedplumRequestOptions): Promise<SlimHealth>;
|