@healthcloudai/hc-sdk 0.6.0 → 0.7.2
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 +121 -159
- package/dist/index.cjs +1813 -1487
- package/dist/index.d.cts +8181 -1907
- package/dist/index.d.ts +8181 -1907
- package/dist/index.js +1809 -1485
- package/package.json +8 -5
package/dist/index.js
CHANGED
|
@@ -11,7 +11,8 @@ var SERVICES = [
|
|
|
11
11
|
"telehealth",
|
|
12
12
|
"fieldagent",
|
|
13
13
|
"mcp",
|
|
14
|
-
"connectors"
|
|
14
|
+
"connectors",
|
|
15
|
+
"person"
|
|
15
16
|
];
|
|
16
17
|
function isServiceName(value) {
|
|
17
18
|
return SERVICES.includes(value);
|
|
@@ -223,9 +224,60 @@ var AppointmentsClient = class extends BaseServiceClient {
|
|
|
223
224
|
constructor(http) {
|
|
224
225
|
super(http, "appointments");
|
|
225
226
|
}
|
|
227
|
+
// ─── Connectivity ────────────────────────────────────────────────────
|
|
226
228
|
connect() {
|
|
227
229
|
return this.connectService();
|
|
228
230
|
}
|
|
231
|
+
// ─── Slots ───────────────────────────────────────────────────────────
|
|
232
|
+
/**
|
|
233
|
+
* List available time slots.
|
|
234
|
+
* GET /slots?provider_id=&specialty_code=&date_from=&date_to=
|
|
235
|
+
*/
|
|
236
|
+
listSlots(query) {
|
|
237
|
+
return this.send("GET", "/slots", {
|
|
238
|
+
query
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
// ─── Appointments ────────────────────────────────────────────────────
|
|
242
|
+
/**
|
|
243
|
+
* Book an appointment for a specific slot.
|
|
244
|
+
* POST /appointments/book
|
|
245
|
+
*/
|
|
246
|
+
book(request) {
|
|
247
|
+
return this.send("POST", "/appointments/book", {
|
|
248
|
+
body: request
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Cancel an appointment.
|
|
253
|
+
* POST /appointments/{appointment_id}/cancel
|
|
254
|
+
*/
|
|
255
|
+
cancel(appointmentId) {
|
|
256
|
+
return this.send("POST", "/appointments/{appointment_id}/cancel", {
|
|
257
|
+
pathParams: { appointment_id: appointmentId }
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Reschedule an appointment to a new slot.
|
|
262
|
+
* POST /appointments/{appointment_id}/reschedule
|
|
263
|
+
*/
|
|
264
|
+
reschedule(appointmentId, request) {
|
|
265
|
+
return this.send("POST", "/appointments/{appointment_id}/reschedule", {
|
|
266
|
+
pathParams: { appointment_id: appointmentId },
|
|
267
|
+
body: request
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
// ─── Patient Appointments ────────────────────────────────────────────
|
|
271
|
+
/**
|
|
272
|
+
* List all appointments for a patient.
|
|
273
|
+
* GET /patients/{patient_id}/appointments?status=
|
|
274
|
+
*/
|
|
275
|
+
listPatientAppointments(patientId, query) {
|
|
276
|
+
return this.send("GET", "/patients/{patient_id}/appointments", {
|
|
277
|
+
pathParams: { patient_id: patientId },
|
|
278
|
+
query
|
|
279
|
+
});
|
|
280
|
+
}
|
|
229
281
|
};
|
|
230
282
|
|
|
231
283
|
// src/clients/AuthClient.ts
|
|
@@ -271,16 +323,57 @@ var DiagnosticsClient = class extends BaseServiceClient {
|
|
|
271
323
|
connect() {
|
|
272
324
|
return this.connectService();
|
|
273
325
|
}
|
|
274
|
-
|
|
275
|
-
|
|
326
|
+
// ─── Diagnostics ─────────────────────────────────────────────────────
|
|
327
|
+
/**
|
|
328
|
+
* List all diagnostics/observations for a patient.
|
|
329
|
+
* GET /patients/{patient_id}/diagnostics
|
|
330
|
+
*/
|
|
331
|
+
list(patientId) {
|
|
332
|
+
return this.send("GET", "/patients/{patient_id}/diagnostics", {
|
|
333
|
+
pathParams: { patient_id: patientId }
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
// ─── GS1 Lookup ──────────────────────────────────────────────────────
|
|
337
|
+
/**
|
|
338
|
+
* Look up test information by GS1 barcode.
|
|
339
|
+
* GET /patients/{patient_id}/diagnostics/lookup?gs1=...
|
|
340
|
+
*/
|
|
341
|
+
lookupByGs1(patientId, query) {
|
|
342
|
+
return this.send("GET", "/patients/{patient_id}/diagnostics/lookup", {
|
|
343
|
+
pathParams: { patient_id: patientId },
|
|
344
|
+
query
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
// ─── Scan Upload URL ─────────────────────────────────────────────────
|
|
348
|
+
/**
|
|
349
|
+
* Get a presigned S3/Wasabi upload URL for a diagnostic scan.
|
|
350
|
+
* POST /patients/{patient_id}/diagnostics/scan-upload-url
|
|
351
|
+
*/
|
|
352
|
+
getScanUploadUrl(patientId, request) {
|
|
353
|
+
return this.send("POST", "/patients/{patient_id}/diagnostics/scan-upload-url", {
|
|
276
354
|
pathParams: { patient_id: patientId },
|
|
277
355
|
body: request
|
|
278
356
|
});
|
|
279
357
|
}
|
|
280
|
-
//
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
358
|
+
// ─── Test Result ─────────────────────────────────────────────────────
|
|
359
|
+
/**
|
|
360
|
+
* Get a specific diagnostic test result by ID.
|
|
361
|
+
* GET /patients/{patient_id}/diagnostics/{test_id}
|
|
362
|
+
*/
|
|
363
|
+
getTestResult(patientId, testId) {
|
|
364
|
+
return this.send("GET", "/patients/{patient_id}/diagnostics/{test_id}", {
|
|
365
|
+
pathParams: { patient_id: patientId, test_id: testId }
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
// ─── Rapid Test (legacy) ─────────────────────────────────────────────
|
|
369
|
+
/**
|
|
370
|
+
* Create/record a rapid test result.
|
|
371
|
+
* POST /patients/{patient_id}/diagnostics/rapid-tests
|
|
372
|
+
*/
|
|
373
|
+
createRapidTest(patientId, request) {
|
|
374
|
+
return this.send("POST", "/patients/{patient_id}/diagnostics/rapid-tests", {
|
|
375
|
+
pathParams: { patient_id: patientId },
|
|
376
|
+
body: request
|
|
284
377
|
});
|
|
285
378
|
}
|
|
286
379
|
};
|
|
@@ -635,6 +728,108 @@ var PatientClient = class extends BaseServiceClient {
|
|
|
635
728
|
}
|
|
636
729
|
};
|
|
637
730
|
|
|
731
|
+
// src/clients/PersonClient.ts
|
|
732
|
+
var PersonClient = class extends BaseServiceClient {
|
|
733
|
+
constructor(http) {
|
|
734
|
+
super(http, "person");
|
|
735
|
+
}
|
|
736
|
+
// ─── Connectivity ────────────────────────────────────────────────────
|
|
737
|
+
connect() {
|
|
738
|
+
return this.connectService();
|
|
739
|
+
}
|
|
740
|
+
// ─── Auth (public, no Bearer token) ──────────────────────────────────
|
|
741
|
+
/**
|
|
742
|
+
* Register a new person.
|
|
743
|
+
* POST /auth/register (public)
|
|
744
|
+
*/
|
|
745
|
+
register(request) {
|
|
746
|
+
return this.send("POST", "/auth/register", {
|
|
747
|
+
body: request,
|
|
748
|
+
auth: false
|
|
749
|
+
});
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* Log in an existing person.
|
|
753
|
+
* POST /auth/login (public)
|
|
754
|
+
*/
|
|
755
|
+
login(request) {
|
|
756
|
+
return this.send("POST", "/auth/login", {
|
|
757
|
+
body: request,
|
|
758
|
+
auth: false
|
|
759
|
+
});
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* Verify a person's email address with OTP.
|
|
763
|
+
* POST /auth/verify-email (public)
|
|
764
|
+
*/
|
|
765
|
+
verifyEmail(request) {
|
|
766
|
+
return this.send("POST", "/auth/verify-email", {
|
|
767
|
+
body: request,
|
|
768
|
+
auth: false
|
|
769
|
+
});
|
|
770
|
+
}
|
|
771
|
+
/**
|
|
772
|
+
* Initiate password reset flow (sends code to email).
|
|
773
|
+
* POST /auth/reset-password (public)
|
|
774
|
+
*/
|
|
775
|
+
resetPassword(request) {
|
|
776
|
+
return this.send("POST", "/auth/reset-password", {
|
|
777
|
+
body: request,
|
|
778
|
+
auth: false
|
|
779
|
+
});
|
|
780
|
+
}
|
|
781
|
+
// ─── Person CRUD (authenticated) ─────────────────────────────────────
|
|
782
|
+
/**
|
|
783
|
+
* Get a person by ID.
|
|
784
|
+
* GET /persons/{person_id}
|
|
785
|
+
*/
|
|
786
|
+
get(personId) {
|
|
787
|
+
return this.send("GET", "/persons/{person_id}", {
|
|
788
|
+
pathParams: { person_id: personId }
|
|
789
|
+
});
|
|
790
|
+
}
|
|
791
|
+
/**
|
|
792
|
+
* Update a person's fields.
|
|
793
|
+
* PATCH /persons/{person_id}
|
|
794
|
+
*/
|
|
795
|
+
update(personId, request) {
|
|
796
|
+
return this.send("PATCH", "/persons/{person_id}", {
|
|
797
|
+
pathParams: { person_id: personId },
|
|
798
|
+
body: request
|
|
799
|
+
});
|
|
800
|
+
}
|
|
801
|
+
// ─── Photo ───────────────────────────────────────────────────────────
|
|
802
|
+
/**
|
|
803
|
+
* Get a presigned upload URL for a person's photo.
|
|
804
|
+
* GET /persons/{person_id}/photo/upload-url
|
|
805
|
+
*/
|
|
806
|
+
getPhotoUploadUrl(personId) {
|
|
807
|
+
return this.send("GET", "/persons/{person_id}/photo/upload-url", {
|
|
808
|
+
pathParams: { person_id: personId }
|
|
809
|
+
});
|
|
810
|
+
}
|
|
811
|
+
/**
|
|
812
|
+
* Upload a person's photo (base64).
|
|
813
|
+
* POST /persons/{person_id}/photo
|
|
814
|
+
*/
|
|
815
|
+
uploadPhoto(personId, request) {
|
|
816
|
+
return this.send("POST", "/persons/{person_id}/photo", {
|
|
817
|
+
pathParams: { person_id: personId },
|
|
818
|
+
body: request
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
/**
|
|
822
|
+
* Get a person's photo by binary_id.
|
|
823
|
+
* GET /persons/{person_id}/photo?binary_id=...
|
|
824
|
+
*/
|
|
825
|
+
getPhoto(personId, query) {
|
|
826
|
+
return this.send("GET", "/persons/{person_id}/photo", {
|
|
827
|
+
pathParams: { person_id: personId },
|
|
828
|
+
query
|
|
829
|
+
});
|
|
830
|
+
}
|
|
831
|
+
};
|
|
832
|
+
|
|
638
833
|
// src/clients/ProviderClient.ts
|
|
639
834
|
var ProviderClient = class extends BaseServiceClient {
|
|
640
835
|
constructor(http) {
|
|
@@ -697,10 +892,159 @@ var VitalsClient = class extends BaseServiceClient {
|
|
|
697
892
|
}
|
|
698
893
|
};
|
|
699
894
|
|
|
700
|
-
// src/clients/
|
|
701
|
-
|
|
702
|
-
|
|
895
|
+
// src/clients/connectors/ConnectorFactory.ts
|
|
896
|
+
function assertConfigObject(connectorName, config) {
|
|
897
|
+
if (typeof config !== "object" || config === null || Array.isArray(config)) {
|
|
898
|
+
throw new TypeError(`${connectorName}.createClient(...) requires a configuration object.`);
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
function validateRequestCredentials(connectorName, credentials) {
|
|
902
|
+
const missing = Object.entries(credentials).filter(([, value]) => value === void 0 || value === null || typeof value === "string" && value.trim() === "").map(([key]) => key).sort();
|
|
903
|
+
if (missing.length > 0) {
|
|
904
|
+
throw new Error(`Missing required connector configuration for ${connectorName}: ${missing.join(", ")}`);
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
var ConnectorFactory = class {
|
|
908
|
+
constructor(connectorName, http, Client, mapConfig) {
|
|
909
|
+
this.connectorName = connectorName;
|
|
910
|
+
this.http = http;
|
|
911
|
+
this.Client = Client;
|
|
912
|
+
this.mapConfig = mapConfig;
|
|
913
|
+
}
|
|
914
|
+
createClient(config) {
|
|
915
|
+
assertConfigObject(this.connectorName, config);
|
|
916
|
+
const credentials = this.mapConfig(config);
|
|
917
|
+
validateRequestCredentials(this.connectorName, credentials);
|
|
918
|
+
return new this.Client(this.http, credentials);
|
|
919
|
+
}
|
|
920
|
+
};
|
|
921
|
+
var PublicConnectorFactory = class {
|
|
922
|
+
constructor(http, Client) {
|
|
923
|
+
this.http = http;
|
|
924
|
+
this.Client = Client;
|
|
925
|
+
}
|
|
926
|
+
createClient() {
|
|
927
|
+
return new this.Client(this.http, {});
|
|
928
|
+
}
|
|
929
|
+
};
|
|
930
|
+
|
|
931
|
+
// src/clients/connectors/ConnectorClient.ts
|
|
932
|
+
var SENSITIVE_KEYS = /* @__PURE__ */ new Set([
|
|
933
|
+
"api_key",
|
|
934
|
+
"auth_token",
|
|
935
|
+
"basic_token",
|
|
936
|
+
"client_secret",
|
|
937
|
+
"password",
|
|
938
|
+
"private_key",
|
|
939
|
+
"secret",
|
|
940
|
+
"secret_key",
|
|
941
|
+
"token"
|
|
942
|
+
]);
|
|
943
|
+
function isPlainObject(value) {
|
|
944
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) return false;
|
|
945
|
+
const proto = Object.getPrototypeOf(value);
|
|
946
|
+
return proto === Object.prototype || proto === null;
|
|
947
|
+
}
|
|
948
|
+
function snakeCaseKey(key) {
|
|
949
|
+
return key.replace(/([a-z0-9])([A-Z])/g, "$1_$2").replace(/([A-Z])([A-Z][a-z])/g, "$1_$2").replace(/([A-Za-z])(ID|URL|URI|NPI|API|UUID|GUID|SSN|DOB)$/g, "$1_$2").replace(/[ -]/g, "_").toLowerCase();
|
|
950
|
+
}
|
|
951
|
+
function toSnakeCase(value) {
|
|
952
|
+
if (Array.isArray(value)) return value.map(toSnakeCase);
|
|
953
|
+
if (!isPlainObject(value)) return value;
|
|
954
|
+
return Object.fromEntries(
|
|
955
|
+
Object.entries(value).map(([key, child]) => [snakeCaseKey(key), toSnakeCase(child)])
|
|
956
|
+
);
|
|
957
|
+
}
|
|
958
|
+
var ConnectorClient = class extends BaseServiceClient {
|
|
959
|
+
constructor(http, credentials = {}) {
|
|
703
960
|
super(http, "connectors");
|
|
961
|
+
this.connectorCredentials = Object.freeze({ ...credentials });
|
|
962
|
+
}
|
|
963
|
+
async send(method, path, options = {}) {
|
|
964
|
+
const requestOptions = this.withCredentials(method, options);
|
|
965
|
+
try {
|
|
966
|
+
return toSnakeCase(await super.send(method, path, requestOptions));
|
|
967
|
+
} catch (error) {
|
|
968
|
+
if (!(error instanceof SDKError)) throw error;
|
|
969
|
+
throw new SDKError({
|
|
970
|
+
message: this.redactText(error.message),
|
|
971
|
+
statusCode: error.statusCode,
|
|
972
|
+
response: toSnakeCase(this.redactValue(error.response)),
|
|
973
|
+
cause: error.cause
|
|
974
|
+
});
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
withCredentials(method, options) {
|
|
978
|
+
if (method === "GET" || method === "DELETE") return options;
|
|
979
|
+
const body = options.body;
|
|
980
|
+
const merged = { ...this.connectorCredentials };
|
|
981
|
+
if (body === void 0) {
|
|
982
|
+
return { ...options, body: toSnakeCase(merged) };
|
|
983
|
+
}
|
|
984
|
+
if (!isPlainObject(body)) {
|
|
985
|
+
return options;
|
|
986
|
+
}
|
|
987
|
+
for (const [key, value] of Object.entries(body)) {
|
|
988
|
+
if (value === void 0 || value === null) continue;
|
|
989
|
+
if (SENSITIVE_KEYS.has(key) && key in this.connectorCredentials) continue;
|
|
990
|
+
merged[key] = value;
|
|
991
|
+
}
|
|
992
|
+
return { ...options, body: toSnakeCase(merged) };
|
|
993
|
+
}
|
|
994
|
+
sensitiveValues() {
|
|
995
|
+
return Object.entries(this.connectorCredentials).filter(([key, value]) => SENSITIVE_KEYS.has(key) && typeof value === "string" && value.length > 0).map(([, value]) => value).sort((a, b) => b.length - a.length);
|
|
996
|
+
}
|
|
997
|
+
redactText(value) {
|
|
998
|
+
let redacted = value;
|
|
999
|
+
for (const secret of this.sensitiveValues()) {
|
|
1000
|
+
redacted = redacted.split(secret).join("[REDACTED]");
|
|
1001
|
+
}
|
|
1002
|
+
return redacted.replace(/(bearer\s+)[A-Za-z0-9._~+/=-]+/gi, "$1[REDACTED]");
|
|
1003
|
+
}
|
|
1004
|
+
redactValue(value, key) {
|
|
1005
|
+
if (key && SENSITIVE_KEYS.has(key)) return "[REDACTED]";
|
|
1006
|
+
if (Array.isArray(value)) return value.map((item) => this.redactValue(item));
|
|
1007
|
+
if (isPlainObject(value)) {
|
|
1008
|
+
return Object.fromEntries(
|
|
1009
|
+
Object.entries(value).map(([childKey, child]) => [childKey, this.redactValue(child, childKey)])
|
|
1010
|
+
);
|
|
1011
|
+
}
|
|
1012
|
+
if (typeof value === "string") return this.redactText(value);
|
|
1013
|
+
return value;
|
|
1014
|
+
}
|
|
1015
|
+
};
|
|
1016
|
+
|
|
1017
|
+
// src/clients/connectors/AnthropicClient.ts
|
|
1018
|
+
var AnthropicClient = class extends ConnectorClient {
|
|
1019
|
+
constructor(http, credentials) {
|
|
1020
|
+
super(http, credentials);
|
|
1021
|
+
}
|
|
1022
|
+
/** Send a message to an Anthropic Claude model. */
|
|
1023
|
+
message(body) {
|
|
1024
|
+
return this.send("POST", "/connectors/anthropic/message", { body });
|
|
1025
|
+
}
|
|
1026
|
+
};
|
|
1027
|
+
|
|
1028
|
+
// src/clients/connectors/AppleAuthClient.ts
|
|
1029
|
+
var AppleAuthClient = class extends ConnectorClient {
|
|
1030
|
+
constructor(http, credentials) {
|
|
1031
|
+
super(http, credentials);
|
|
1032
|
+
}
|
|
1033
|
+
exchangeCode(body) {
|
|
1034
|
+
return this.send("POST", "/connectors/apple-auth/exchange-code", { body });
|
|
1035
|
+
}
|
|
1036
|
+
decodeIdToken(body) {
|
|
1037
|
+
return this.send("POST", "/connectors/apple-auth/decode-id-token", { body });
|
|
1038
|
+
}
|
|
1039
|
+
generateClientSecret(body = {}) {
|
|
1040
|
+
return this.send("POST", "/connectors/apple-auth/generate-client-secret", { body });
|
|
1041
|
+
}
|
|
1042
|
+
};
|
|
1043
|
+
|
|
1044
|
+
// src/clients/connectors/AthenaHealthClient.ts
|
|
1045
|
+
var AthenaHealthClient = class extends ConnectorClient {
|
|
1046
|
+
constructor(http, credentials) {
|
|
1047
|
+
super(http, credentials);
|
|
704
1048
|
}
|
|
705
1049
|
a(op, body) {
|
|
706
1050
|
return this.send("POST", `/connectors/athena-health/${op}`, { body });
|
|
@@ -1314,1790 +1658,1676 @@ var AthenaHealthClient = class extends BaseServiceClient {
|
|
|
1314
1658
|
}
|
|
1315
1659
|
};
|
|
1316
1660
|
|
|
1317
|
-
// src/clients/
|
|
1318
|
-
var
|
|
1319
|
-
constructor(http) {
|
|
1320
|
-
super(http,
|
|
1661
|
+
// src/clients/connectors/CalClient.ts
|
|
1662
|
+
var CalClient = class extends ConnectorClient {
|
|
1663
|
+
constructor(http, credentials) {
|
|
1664
|
+
super(http, credentials);
|
|
1321
1665
|
}
|
|
1322
|
-
|
|
1323
|
-
return this.send("POST", `/connectors/
|
|
1666
|
+
c(op, body = {}) {
|
|
1667
|
+
return this.send("POST", `/connectors/cal/${op}`, { body });
|
|
1324
1668
|
}
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
return this.s("create-payment-intent", body);
|
|
1669
|
+
getAllBookings(body = {}) {
|
|
1670
|
+
return this.c("get-all-bookings", body);
|
|
1328
1671
|
}
|
|
1329
|
-
/**
|
|
1330
|
-
|
|
1331
|
-
|
|
1672
|
+
/**
|
|
1673
|
+
* The connector route invokes CalConnector.create_booking(booking), so the
|
|
1674
|
+
* public booking payload must be wrapped for the gateway's named argument.
|
|
1675
|
+
*/
|
|
1676
|
+
createBooking(body) {
|
|
1677
|
+
return this.c("create-booking", { booking: body });
|
|
1332
1678
|
}
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
return this.s("create-customer", body);
|
|
1679
|
+
getEventTypes(body = {}) {
|
|
1680
|
+
return this.c("get-event-types", body);
|
|
1336
1681
|
}
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
return this.s("create-subscription", body);
|
|
1682
|
+
getAvailableSlots(body) {
|
|
1683
|
+
return this.c("get-available-slots", body);
|
|
1340
1684
|
}
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
return this.s("create-session", body);
|
|
1685
|
+
getScheduleForEventType(body) {
|
|
1686
|
+
return this.c("get-schedule-for-event-type", body);
|
|
1344
1687
|
}
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
return this.s("list-products", body);
|
|
1688
|
+
getScheduleById(body) {
|
|
1689
|
+
return this.c("get-schedule-by-id", body);
|
|
1348
1690
|
}
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
return this.s("create-copay-price", body);
|
|
1691
|
+
createSchedule(body) {
|
|
1692
|
+
return this.c("create-schedule", body);
|
|
1352
1693
|
}
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
return this.s("verify-connection", body);
|
|
1694
|
+
assignScheduleToEventType(body) {
|
|
1695
|
+
return this.c("assign-schedule-to-event-type", body);
|
|
1356
1696
|
}
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
return this.s("validate-and-tokenize-card", body);
|
|
1697
|
+
updateSchedule(body) {
|
|
1698
|
+
return this.c("update-schedule", body);
|
|
1360
1699
|
}
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1700
|
+
updateAvailabilityFromAthenaSlots(body) {
|
|
1701
|
+
return this.c("update-availability-from-athena-slots", body);
|
|
1702
|
+
}
|
|
1703
|
+
syncWithAthena(body = {}) {
|
|
1704
|
+
return this.c("sync-with-athena", body);
|
|
1364
1705
|
}
|
|
1365
1706
|
};
|
|
1366
1707
|
|
|
1367
|
-
// src/clients/
|
|
1368
|
-
var
|
|
1369
|
-
constructor(http) {
|
|
1370
|
-
super(http,
|
|
1708
|
+
// src/clients/connectors/CarequalityClient.ts
|
|
1709
|
+
var CarequalityClient = class extends ConnectorClient {
|
|
1710
|
+
constructor(http, credentials) {
|
|
1711
|
+
super(http, credentials);
|
|
1371
1712
|
}
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
return this.send("POST", "/connectors/twilio/send-sms", { body });
|
|
1713
|
+
discoverPatient(body) {
|
|
1714
|
+
return this.send("POST", "/connectors/carequality/discover-patient", { body });
|
|
1375
1715
|
}
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
return this.send("POST", "/connectors/twilio/get-message", { body });
|
|
1716
|
+
queryDocuments(body) {
|
|
1717
|
+
return this.send("POST", "/connectors/carequality/query-documents", { body });
|
|
1379
1718
|
}
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1719
|
+
retrieveDocuments(body) {
|
|
1720
|
+
return this.send("POST", "/connectors/carequality/retrieve-documents", { body });
|
|
1721
|
+
}
|
|
1722
|
+
importPatientDocuments(body) {
|
|
1723
|
+
return this.send("POST", "/connectors/carequality/import-patient-documents", { body });
|
|
1383
1724
|
}
|
|
1384
1725
|
};
|
|
1385
1726
|
|
|
1386
|
-
// src/clients/
|
|
1387
|
-
var
|
|
1388
|
-
constructor(http) {
|
|
1389
|
-
super(http,
|
|
1727
|
+
// src/clients/connectors/CmsClient.ts
|
|
1728
|
+
var CmsClient = class extends ConnectorClient {
|
|
1729
|
+
constructor(http, credentials) {
|
|
1730
|
+
super(http, credentials);
|
|
1390
1731
|
}
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
return this.send("POST", "/connectors/stedi/check-eligibility", { body });
|
|
1732
|
+
searchHealthPlans(body) {
|
|
1733
|
+
return this.send("POST", "/connectors/cms/search-health-plans", { body });
|
|
1394
1734
|
}
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
return this.send("POST", "/connectors/stedi/submit-claim", { body });
|
|
1735
|
+
getCountyFips(body) {
|
|
1736
|
+
return this.send("POST", "/connectors/cms/get-county-fips", { body });
|
|
1398
1737
|
}
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1738
|
+
};
|
|
1739
|
+
|
|
1740
|
+
// src/clients/connectors/ConnectureClient.ts
|
|
1741
|
+
var ConnectureClient = class extends ConnectorClient {
|
|
1742
|
+
constructor(http, credentials) {
|
|
1743
|
+
super(http, credentials);
|
|
1402
1744
|
}
|
|
1403
|
-
|
|
1404
|
-
return this.send("POST", "/connectors/
|
|
1745
|
+
getAccessToken(body = {}) {
|
|
1746
|
+
return this.send("POST", "/connectors/connecture/get-access-token", { body });
|
|
1405
1747
|
}
|
|
1406
|
-
|
|
1407
|
-
return this.send("POST", "/connectors/
|
|
1748
|
+
createSession(body) {
|
|
1749
|
+
return this.send("POST", "/connectors/connecture/create-session", { body });
|
|
1408
1750
|
}
|
|
1409
|
-
|
|
1410
|
-
return this.send("POST", "/connectors/
|
|
1751
|
+
getSession(body) {
|
|
1752
|
+
return this.send("POST", "/connectors/connecture/get-session", { body });
|
|
1411
1753
|
}
|
|
1412
|
-
|
|
1413
|
-
return this.send("POST", "/connectors/
|
|
1754
|
+
updateSession(body) {
|
|
1755
|
+
return this.send("POST", "/connectors/connecture/update-session", { body });
|
|
1414
1756
|
}
|
|
1415
|
-
|
|
1416
|
-
return this.send("POST", "/connectors/
|
|
1757
|
+
checkEligibility(body) {
|
|
1758
|
+
return this.send("POST", "/connectors/connecture/check-eligibility", { body });
|
|
1417
1759
|
}
|
|
1418
|
-
|
|
1419
|
-
return this.send("POST", "/connectors/
|
|
1760
|
+
planCount(body) {
|
|
1761
|
+
return this.send("POST", "/connectors/connecture/plan-count", { body });
|
|
1420
1762
|
}
|
|
1421
|
-
|
|
1422
|
-
return this.send("POST", "/connectors/
|
|
1763
|
+
sessionPlans(body) {
|
|
1764
|
+
return this.send("POST", "/connectors/connecture/session-plans", { body });
|
|
1765
|
+
}
|
|
1766
|
+
sessionPlanById(body) {
|
|
1767
|
+
return this.send("POST", "/connectors/connecture/session-plan-by-id", { body });
|
|
1768
|
+
}
|
|
1769
|
+
enroll(body) {
|
|
1770
|
+
return this.send("POST", "/connectors/connecture/enroll", { body });
|
|
1771
|
+
}
|
|
1772
|
+
lookupPlans(body) {
|
|
1773
|
+
return this.send("POST", "/connectors/connecture/lookup-plans", { body });
|
|
1423
1774
|
}
|
|
1424
1775
|
};
|
|
1425
1776
|
|
|
1426
|
-
// src/clients/
|
|
1427
|
-
var
|
|
1428
|
-
constructor(http) {
|
|
1429
|
-
super(http,
|
|
1777
|
+
// src/clients/connectors/ElevenLabsClient.ts
|
|
1778
|
+
var ElevenLabsClient = class extends ConnectorClient {
|
|
1779
|
+
constructor(http, credentials) {
|
|
1780
|
+
super(http, credentials);
|
|
1430
1781
|
}
|
|
1431
|
-
/**
|
|
1432
|
-
|
|
1433
|
-
return this.send("POST", "/connectors/
|
|
1782
|
+
/** Synthesize speech from text using ElevenLabs TTS. */
|
|
1783
|
+
synthesize(body) {
|
|
1784
|
+
return this.send("POST", "/connectors/elevenlabs/synthesize", { body });
|
|
1434
1785
|
}
|
|
1435
|
-
/**
|
|
1436
|
-
|
|
1437
|
-
return this.send("POST", "/connectors/
|
|
1786
|
+
/** List available ElevenLabs voices. */
|
|
1787
|
+
listVoices(body) {
|
|
1788
|
+
return this.send("POST", "/connectors/elevenlabs/list-voices", { body });
|
|
1438
1789
|
}
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
return this.send("POST", "/connectors/salesforce/get", { body });
|
|
1790
|
+
createAgent(body = {}) {
|
|
1791
|
+
return this.send("POST", "/connectors/elevenlabs/create-agent", { body });
|
|
1442
1792
|
}
|
|
1443
|
-
|
|
1444
|
-
return this.send("POST", "/connectors/
|
|
1793
|
+
createTool(body) {
|
|
1794
|
+
return this.send("POST", "/connectors/elevenlabs/create-tool", { body });
|
|
1445
1795
|
}
|
|
1446
|
-
|
|
1447
|
-
return this.send("POST", "/connectors/
|
|
1796
|
+
deleteAgent(body) {
|
|
1797
|
+
return this.send("POST", "/connectors/elevenlabs/delete-agent", { body });
|
|
1448
1798
|
}
|
|
1449
|
-
|
|
1450
|
-
return this.send("POST", "/connectors/
|
|
1799
|
+
deleteTool(body) {
|
|
1800
|
+
return this.send("POST", "/connectors/elevenlabs/delete-tool", { body });
|
|
1451
1801
|
}
|
|
1452
|
-
|
|
1453
|
-
return this.send("POST", "/connectors/
|
|
1802
|
+
duplicateAgent(body) {
|
|
1803
|
+
return this.send("POST", "/connectors/elevenlabs/duplicate-agent", { body });
|
|
1454
1804
|
}
|
|
1455
|
-
|
|
1456
|
-
return this.send("POST", "/connectors/
|
|
1805
|
+
getAgent(body) {
|
|
1806
|
+
return this.send("POST", "/connectors/elevenlabs/get-agent", { body });
|
|
1457
1807
|
}
|
|
1458
|
-
|
|
1459
|
-
return this.send("POST", "/connectors/
|
|
1808
|
+
getAllAgents(body = {}) {
|
|
1809
|
+
return this.send("POST", "/connectors/elevenlabs/get-all-agents", { body });
|
|
1460
1810
|
}
|
|
1461
|
-
|
|
1462
|
-
return this.send("POST", "/connectors/
|
|
1811
|
+
getAllConversations(body = {}) {
|
|
1812
|
+
return this.send("POST", "/connectors/elevenlabs/get-all-conversations", { body });
|
|
1463
1813
|
}
|
|
1464
|
-
|
|
1465
|
-
return this.send("POST", "/connectors/
|
|
1814
|
+
getAllTools(body = {}) {
|
|
1815
|
+
return this.send("POST", "/connectors/elevenlabs/get-all-tools", { body });
|
|
1466
1816
|
}
|
|
1467
|
-
|
|
1468
|
-
return this.send("POST", "/connectors/
|
|
1817
|
+
getConversation(body) {
|
|
1818
|
+
return this.send("POST", "/connectors/elevenlabs/get-conversation", { body });
|
|
1469
1819
|
}
|
|
1470
|
-
|
|
1471
|
-
return this.send("POST", "/connectors/
|
|
1820
|
+
getTool(body) {
|
|
1821
|
+
return this.send("POST", "/connectors/elevenlabs/get-tool", { body });
|
|
1472
1822
|
}
|
|
1473
|
-
|
|
1474
|
-
return this.send("POST", "/connectors/
|
|
1823
|
+
getToolDependentAgents(body) {
|
|
1824
|
+
return this.send("POST", "/connectors/elevenlabs/get-tool-dependent-agents", { body });
|
|
1475
1825
|
}
|
|
1476
|
-
|
|
1477
|
-
return this.send("POST", "/connectors/
|
|
1826
|
+
getUser(body = {}) {
|
|
1827
|
+
return this.send("POST", "/connectors/elevenlabs/get-user", { body });
|
|
1478
1828
|
}
|
|
1479
|
-
|
|
1480
|
-
return this.send("POST", "/connectors/
|
|
1829
|
+
getVoice(body) {
|
|
1830
|
+
return this.send("POST", "/connectors/elevenlabs/get-voice", { body });
|
|
1481
1831
|
}
|
|
1482
|
-
|
|
1483
|
-
return this.send("POST", "/connectors/
|
|
1832
|
+
updateAgent(body) {
|
|
1833
|
+
return this.send("POST", "/connectors/elevenlabs/update-agent", { body });
|
|
1484
1834
|
}
|
|
1485
|
-
|
|
1486
|
-
return this.send("POST", "/connectors/
|
|
1835
|
+
updateTool(body) {
|
|
1836
|
+
return this.send("POST", "/connectors/elevenlabs/update-tool", { body });
|
|
1487
1837
|
}
|
|
1488
|
-
|
|
1489
|
-
|
|
1838
|
+
};
|
|
1839
|
+
|
|
1840
|
+
// src/clients/connectors/FedExClient.ts
|
|
1841
|
+
var FedExClient = class extends ConnectorClient {
|
|
1842
|
+
constructor(http, credentials) {
|
|
1843
|
+
super(http, credentials);
|
|
1490
1844
|
}
|
|
1491
|
-
|
|
1492
|
-
return this.send("POST", "/connectors/
|
|
1845
|
+
createShipment(body) {
|
|
1846
|
+
return this.send("POST", "/connectors/fedex/create-shipment", { body });
|
|
1493
1847
|
}
|
|
1494
|
-
|
|
1495
|
-
return this.send("POST", "/connectors/
|
|
1848
|
+
trackShipment(body) {
|
|
1849
|
+
return this.send("POST", "/connectors/fedex/track-shipment", { body });
|
|
1496
1850
|
}
|
|
1497
|
-
|
|
1498
|
-
|
|
1851
|
+
};
|
|
1852
|
+
|
|
1853
|
+
// src/clients/connectors/GoogleAIClient.ts
|
|
1854
|
+
var GoogleAIClient = class extends ConnectorClient {
|
|
1855
|
+
constructor(http, credentials) {
|
|
1856
|
+
super(http, credentials);
|
|
1499
1857
|
}
|
|
1500
|
-
|
|
1501
|
-
|
|
1858
|
+
/** Generate a response from a Gemini model. */
|
|
1859
|
+
generate(body) {
|
|
1860
|
+
return this.send("POST", "/connectors/google-ai/generate", { body });
|
|
1502
1861
|
}
|
|
1503
|
-
|
|
1504
|
-
|
|
1862
|
+
/** Generate text embeddings via Gemini. */
|
|
1863
|
+
embed(body) {
|
|
1864
|
+
return this.send("POST", "/connectors/google-ai/embed", { body });
|
|
1505
1865
|
}
|
|
1506
|
-
|
|
1507
|
-
return this.send("POST", "/connectors/
|
|
1866
|
+
invokeA1cVisionCapture(body) {
|
|
1867
|
+
return this.send("POST", "/connectors/google-ai/invoke-a1c-vision-capture", { body });
|
|
1508
1868
|
}
|
|
1509
|
-
|
|
1510
|
-
|
|
1869
|
+
};
|
|
1870
|
+
|
|
1871
|
+
// src/clients/connectors/GooglePlacesClient.ts
|
|
1872
|
+
var GooglePlacesClient = class extends ConnectorClient {
|
|
1873
|
+
constructor(http, credentials) {
|
|
1874
|
+
super(http, credentials);
|
|
1511
1875
|
}
|
|
1512
|
-
|
|
1513
|
-
|
|
1876
|
+
/** Find places near a lat/lng coordinate within a radius. */
|
|
1877
|
+
nearbySearch(body) {
|
|
1878
|
+
return this.send("POST", "/connectors/google-places/nearby-search", { body });
|
|
1514
1879
|
}
|
|
1515
|
-
|
|
1516
|
-
|
|
1880
|
+
/** Retrieve detailed information about a place by place_id. */
|
|
1881
|
+
placeDetails(body) {
|
|
1882
|
+
return this.send("POST", "/connectors/google-places/place-details", { body });
|
|
1517
1883
|
}
|
|
1518
|
-
|
|
1519
|
-
|
|
1884
|
+
/** Search for places by text query. */
|
|
1885
|
+
textSearch(body) {
|
|
1886
|
+
return this.send("POST", "/connectors/google-places/text-search", { body });
|
|
1520
1887
|
}
|
|
1521
|
-
|
|
1522
|
-
|
|
1888
|
+
};
|
|
1889
|
+
|
|
1890
|
+
// src/clients/connectors/GrokClient.ts
|
|
1891
|
+
var GrokClient = class extends ConnectorClient {
|
|
1892
|
+
constructor(http, credentials) {
|
|
1893
|
+
super(http, credentials);
|
|
1523
1894
|
}
|
|
1524
|
-
|
|
1525
|
-
return this.send("POST", "/connectors/
|
|
1895
|
+
getUmlsCodes(body) {
|
|
1896
|
+
return this.send("POST", "/connectors/grok/get-umls-codes", { body });
|
|
1526
1897
|
}
|
|
1527
|
-
|
|
1528
|
-
return this.send("POST", "/connectors/
|
|
1898
|
+
convertCcdaToFhir(body) {
|
|
1899
|
+
return this.send("POST", "/connectors/grok/convert-ccda-to-fhir", { body });
|
|
1529
1900
|
}
|
|
1530
|
-
|
|
1531
|
-
return this.send("POST", "/connectors/
|
|
1901
|
+
convertFhirToCcda(body) {
|
|
1902
|
+
return this.send("POST", "/connectors/grok/convert-fhir-to-ccda", { body });
|
|
1532
1903
|
}
|
|
1533
|
-
|
|
1534
|
-
return this.send("POST", "/connectors/
|
|
1904
|
+
generalRequest(body) {
|
|
1905
|
+
return this.send("POST", "/connectors/grok/general-grok-request", { body });
|
|
1535
1906
|
}
|
|
1536
|
-
|
|
1537
|
-
return this.send("POST", "/connectors/
|
|
1907
|
+
convertFhirToCcdaWithChunking(body) {
|
|
1908
|
+
return this.send("POST", "/connectors/grok/convert-fhir-to-ccda-with-chunking", { body });
|
|
1538
1909
|
}
|
|
1539
|
-
|
|
1540
|
-
return this.send("POST", "/connectors/
|
|
1910
|
+
createClinicalNotes(body) {
|
|
1911
|
+
return this.send("POST", "/connectors/grok/create-clinical-notes", { body });
|
|
1541
1912
|
}
|
|
1542
|
-
|
|
1543
|
-
return this.send("POST", "/connectors/
|
|
1913
|
+
chooseEncounterReasonsFromList(body) {
|
|
1914
|
+
return this.send("POST", "/connectors/grok/choose-encounter-reasons-from-list", { body });
|
|
1544
1915
|
}
|
|
1545
|
-
|
|
1546
|
-
return this.send("POST", "/connectors/
|
|
1916
|
+
chooseTemplatesFromList(body) {
|
|
1917
|
+
return this.send("POST", "/connectors/grok/choose-templates-from-list", { body });
|
|
1547
1918
|
}
|
|
1548
|
-
|
|
1549
|
-
return this.send("POST", "/connectors/
|
|
1919
|
+
createHpiSummary(body) {
|
|
1920
|
+
return this.send("POST", "/connectors/grok/create-hpi-summary", { body });
|
|
1550
1921
|
}
|
|
1551
|
-
|
|
1552
|
-
return this.send("POST", "/connectors/
|
|
1922
|
+
createScreeningSummary(body) {
|
|
1923
|
+
return this.send("POST", "/connectors/grok/create-screening-summary", { body });
|
|
1553
1924
|
}
|
|
1554
|
-
|
|
1555
|
-
return this.send("POST", "/connectors/
|
|
1925
|
+
chooseHealthServiceFromList(body) {
|
|
1926
|
+
return this.send("POST", "/connectors/grok/choose-health-service-from-list", { body });
|
|
1556
1927
|
}
|
|
1557
|
-
|
|
1558
|
-
return this.send("POST", "/connectors/
|
|
1928
|
+
createEhrSummary(body) {
|
|
1929
|
+
return this.send("POST", "/connectors/grok/create-ehr-summary", { body });
|
|
1559
1930
|
}
|
|
1560
|
-
|
|
1561
|
-
|
|
1931
|
+
};
|
|
1932
|
+
|
|
1933
|
+
// src/clients/connectors/HealthieClient.ts
|
|
1934
|
+
var HealthieClient = class extends ConnectorClient {
|
|
1935
|
+
constructor(http, credentials) {
|
|
1936
|
+
super(http, credentials);
|
|
1562
1937
|
}
|
|
1563
|
-
|
|
1564
|
-
return this.send("POST",
|
|
1938
|
+
h(path, body = {}) {
|
|
1939
|
+
return this.send("POST", `/connectors/healthie/${path}`, { body });
|
|
1565
1940
|
}
|
|
1566
|
-
|
|
1567
|
-
|
|
1941
|
+
// API keys
|
|
1942
|
+
createApiKey(body = {}) {
|
|
1943
|
+
return this.h("create-api-key", body);
|
|
1568
1944
|
}
|
|
1569
|
-
|
|
1570
|
-
return this.
|
|
1945
|
+
deleteApiKey(body) {
|
|
1946
|
+
return this.h("delete-api-key", body);
|
|
1571
1947
|
}
|
|
1572
|
-
|
|
1573
|
-
return this.
|
|
1948
|
+
getApiKeys(body = {}) {
|
|
1949
|
+
return this.h("get-api-keys", body);
|
|
1574
1950
|
}
|
|
1575
|
-
|
|
1576
|
-
return this.
|
|
1951
|
+
getCurrentUserId(body = {}) {
|
|
1952
|
+
return this.h("get-current-user-id", body);
|
|
1577
1953
|
}
|
|
1578
|
-
|
|
1579
|
-
return this.
|
|
1954
|
+
getCurrentUser(body = {}) {
|
|
1955
|
+
return this.h("get-current-user", body);
|
|
1580
1956
|
}
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
updateSegment(body) {
|
|
1585
|
-
return this.send("POST", "/connectors/salesforce/update-segment", { body });
|
|
1586
|
-
}
|
|
1587
|
-
};
|
|
1588
|
-
|
|
1589
|
-
// src/clients/vendors/QuestClient.ts
|
|
1590
|
-
var QuestClient = class extends BaseServiceClient {
|
|
1591
|
-
constructor(http) {
|
|
1592
|
-
super(http, "connectors");
|
|
1593
|
-
}
|
|
1594
|
-
/** Create a lab order with Quest Diagnostics. */
|
|
1595
|
-
createOrder(body) {
|
|
1596
|
-
return this.send("POST", "/connectors/quest/create-order", { body });
|
|
1597
|
-
}
|
|
1598
|
-
/** Retrieve lab results for an order or patient. */
|
|
1599
|
-
getResults(body) {
|
|
1600
|
-
return this.send("POST", "/connectors/quest/get-results", { body });
|
|
1601
|
-
}
|
|
1602
|
-
/** Browse the Quest test catalog. */
|
|
1603
|
-
listTests(body) {
|
|
1604
|
-
return this.send("POST", "/connectors/quest/list-tests", { body });
|
|
1605
|
-
}
|
|
1606
|
-
};
|
|
1607
|
-
|
|
1608
|
-
// src/clients/vendors/QuestHl7Client.ts
|
|
1609
|
-
var QuestHl7Client = class extends BaseServiceClient {
|
|
1610
|
-
constructor(http) {
|
|
1611
|
-
super(http, "connectors");
|
|
1612
|
-
}
|
|
1613
|
-
p(operation, body) {
|
|
1614
|
-
return this.send("POST", `/connectors/quest/${operation}`, { body });
|
|
1615
|
-
}
|
|
1616
|
-
getAccessToken(body = {}) {
|
|
1617
|
-
return this.p("get-access-token", body);
|
|
1618
|
-
}
|
|
1619
|
-
clearTokenCache(body = {}) {
|
|
1620
|
-
return this.p("clear-token-cache", body);
|
|
1621
|
-
}
|
|
1622
|
-
submitOrder(body) {
|
|
1623
|
-
return this.p("submit-order", body);
|
|
1624
|
-
}
|
|
1625
|
-
getOrderDocuments(body) {
|
|
1626
|
-
return this.p("get-order-documents", body);
|
|
1627
|
-
}
|
|
1628
|
-
evaluateAbn(body) {
|
|
1629
|
-
return this.p("evaluate-abn", body);
|
|
1630
|
-
}
|
|
1631
|
-
getRequisition(body) {
|
|
1632
|
-
return this.p("get-requisition", body);
|
|
1633
|
-
}
|
|
1634
|
-
evaluateAoe(body) {
|
|
1635
|
-
return this.p("evaluate-aoe", body);
|
|
1636
|
-
}
|
|
1637
|
-
submitFullOrder(body) {
|
|
1638
|
-
return this.p("submit-full-order", body);
|
|
1639
|
-
}
|
|
1640
|
-
getHl7Results(body = {}) {
|
|
1641
|
-
return this.p("get-hl7-results", body);
|
|
1642
|
-
}
|
|
1643
|
-
getPrintableResults(body = {}) {
|
|
1644
|
-
return this.p("get-printable-results", body);
|
|
1645
|
-
}
|
|
1646
|
-
getObservationResults(body = {}) {
|
|
1647
|
-
return this.p("get-observation-results", body);
|
|
1648
|
-
}
|
|
1649
|
-
acknowledgeHl7Results(body) {
|
|
1650
|
-
return this.p("acknowledge-hl7-results", body);
|
|
1651
|
-
}
|
|
1652
|
-
acknowledgePrintableResults(body) {
|
|
1653
|
-
return this.p("acknowledge-printable-results", body);
|
|
1654
|
-
}
|
|
1655
|
-
acknowledgeObservationResults(body) {
|
|
1656
|
-
return this.p("acknowledge-observation-results", body);
|
|
1657
|
-
}
|
|
1658
|
-
buildResultsAck(body) {
|
|
1659
|
-
return this.p("build-results-ack", body);
|
|
1660
|
-
}
|
|
1661
|
-
processPushedResult(body) {
|
|
1662
|
-
return this.p("process-pushed-result", body);
|
|
1663
|
-
}
|
|
1664
|
-
requestCompendiums(body = {}) {
|
|
1665
|
-
return this.p("request-compendiums", body);
|
|
1666
|
-
}
|
|
1667
|
-
requestCompendiumsOnDemand(body) {
|
|
1668
|
-
return this.p("request-compendiums-on-demand", body);
|
|
1669
|
-
}
|
|
1670
|
-
retrieveCompendium(body) {
|
|
1671
|
-
return this.p("retrieve-compendium", body);
|
|
1672
|
-
}
|
|
1673
|
-
retrieveAndExtractCompendium(body) {
|
|
1674
|
-
return this.p("retrieve-and-extract-compendium", body);
|
|
1675
|
-
}
|
|
1676
|
-
acknowledgeCompendium(body) {
|
|
1677
|
-
return this.p("acknowledge-compendium", body);
|
|
1678
|
-
}
|
|
1679
|
-
syncCompendiums(body = {}) {
|
|
1680
|
-
return this.p("sync-compendiums", body);
|
|
1681
|
-
}
|
|
1682
|
-
};
|
|
1683
|
-
|
|
1684
|
-
// src/clients/vendors/OpenAIClient.ts
|
|
1685
|
-
var OpenAIClient = class extends BaseServiceClient {
|
|
1686
|
-
constructor(http) {
|
|
1687
|
-
super(http, "connectors");
|
|
1688
|
-
}
|
|
1689
|
-
/** Send a chat completion request to OpenAI. */
|
|
1690
|
-
chat(body) {
|
|
1691
|
-
return this.send("POST", "/connectors/openai/chat", { body });
|
|
1692
|
-
}
|
|
1693
|
-
/** Generate text embeddings via OpenAI. */
|
|
1694
|
-
embed(body) {
|
|
1695
|
-
return this.send("POST", "/connectors/openai/embed", { body });
|
|
1696
|
-
}
|
|
1697
|
-
buildResponseCreatePayload(body = {}) {
|
|
1698
|
-
return this.send("POST", "/connectors/openai/build-response-create-payload", { body });
|
|
1699
|
-
}
|
|
1700
|
-
chatJson(body) {
|
|
1701
|
-
return this.send("POST", "/connectors/openai/chat-json", { body });
|
|
1957
|
+
// Patients / Users
|
|
1958
|
+
createPatient(body) {
|
|
1959
|
+
return this.h("create-patient", body);
|
|
1702
1960
|
}
|
|
1703
|
-
|
|
1704
|
-
return this.
|
|
1961
|
+
updatePatient(body) {
|
|
1962
|
+
return this.h("update-patient", body);
|
|
1705
1963
|
}
|
|
1706
|
-
|
|
1707
|
-
return this.
|
|
1964
|
+
searchPatients(body = {}) {
|
|
1965
|
+
return this.h("search-patients", body);
|
|
1708
1966
|
}
|
|
1709
|
-
|
|
1710
|
-
return this.
|
|
1967
|
+
getPatient(body) {
|
|
1968
|
+
return this.h("get-patient", body);
|
|
1711
1969
|
}
|
|
1712
|
-
|
|
1713
|
-
return this.
|
|
1970
|
+
getPatientJson(body) {
|
|
1971
|
+
return this.h("get-patient-json", body);
|
|
1714
1972
|
}
|
|
1715
|
-
|
|
1716
|
-
return this.
|
|
1973
|
+
signUpPatient(body) {
|
|
1974
|
+
return this.h("sign-up-patient", body);
|
|
1717
1975
|
}
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
// src/clients/vendors/AnthropicClient.ts
|
|
1721
|
-
var AnthropicClient = class extends BaseServiceClient {
|
|
1722
|
-
constructor(http) {
|
|
1723
|
-
super(http, "connectors");
|
|
1976
|
+
bulkUpdateClients(body) {
|
|
1977
|
+
return this.h("bulk-update-clients", body);
|
|
1724
1978
|
}
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
return this.send("POST", "/connectors/anthropic/message", { body });
|
|
1979
|
+
updateUser(body) {
|
|
1980
|
+
return this.h("update-user", body);
|
|
1728
1981
|
}
|
|
1729
|
-
}
|
|
1730
|
-
|
|
1731
|
-
// src/clients/vendors/GoogleAIClient.ts
|
|
1732
|
-
var GoogleAIClient = class extends BaseServiceClient {
|
|
1733
|
-
constructor(http) {
|
|
1734
|
-
super(http, "connectors");
|
|
1982
|
+
listPatients(body = {}) {
|
|
1983
|
+
return this.h("list-patients", body);
|
|
1735
1984
|
}
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
return this.
|
|
1985
|
+
// Locations
|
|
1986
|
+
createLocation(body) {
|
|
1987
|
+
return this.h("create-location", body);
|
|
1739
1988
|
}
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
return this.send("POST", "/connectors/google-ai/embed", { body });
|
|
1989
|
+
updateLocation(body) {
|
|
1990
|
+
return this.h("update-location", body);
|
|
1743
1991
|
}
|
|
1744
|
-
|
|
1745
|
-
|
|
1992
|
+
// Appointment types
|
|
1993
|
+
getAppointmentType(body) {
|
|
1994
|
+
return this.h("get-appointment-type", body);
|
|
1746
1995
|
}
|
|
1747
|
-
}
|
|
1748
|
-
|
|
1749
|
-
// src/clients/vendors/GooglePlacesClient.ts
|
|
1750
|
-
var GooglePlacesClient = class extends BaseServiceClient {
|
|
1751
|
-
constructor(http) {
|
|
1752
|
-
super(http, "connectors");
|
|
1996
|
+
getAppointmentTypes(body = {}) {
|
|
1997
|
+
return this.h("get-appointment-types", body);
|
|
1753
1998
|
}
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
return this.send("POST", "/connectors/google-places/nearby-search", { body });
|
|
1999
|
+
createAppointmentType(body) {
|
|
2000
|
+
return this.h("create-appointment-type", body);
|
|
1757
2001
|
}
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
return this.send("POST", "/connectors/google-places/place-details", { body });
|
|
2002
|
+
updateAppointmentType(body) {
|
|
2003
|
+
return this.h("update-appointment-type", body);
|
|
1761
2004
|
}
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
return this.send("POST", "/connectors/google-places/text-search", { body });
|
|
2005
|
+
deleteAppointmentType(body) {
|
|
2006
|
+
return this.h("delete-appointment-type", body);
|
|
1765
2007
|
}
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
// src/clients/vendors/SendGridClient.ts
|
|
1769
|
-
var SendGridClient = class extends BaseServiceClient {
|
|
1770
|
-
constructor(http) {
|
|
1771
|
-
super(http, "connectors");
|
|
2008
|
+
getAppointmentSetting(body) {
|
|
2009
|
+
return this.h("get-appointment-setting", body);
|
|
1772
2010
|
}
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
return this.send("POST", "/connectors/sendgrid/send-email", { body });
|
|
2011
|
+
createAppointmentSetting(body) {
|
|
2012
|
+
return this.h("create-appointment-setting", body);
|
|
1776
2013
|
}
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
return this.send("POST", "/connectors/sendgrid/list-templates", { body });
|
|
2014
|
+
updateAppointmentSetting(body) {
|
|
2015
|
+
return this.h("update-appointment-setting", body);
|
|
1780
2016
|
}
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
var ElevenLabsClient = class extends BaseServiceClient {
|
|
1785
|
-
constructor(http) {
|
|
1786
|
-
super(http, "connectors");
|
|
2017
|
+
// Appointments
|
|
2018
|
+
getAppointment(body) {
|
|
2019
|
+
return this.h("get-appointment", body);
|
|
1787
2020
|
}
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
return this.send("POST", "/connectors/elevenlabs/synthesize", { body });
|
|
2021
|
+
getAppointments(body = {}) {
|
|
2022
|
+
return this.h("get-appointments", body);
|
|
1791
2023
|
}
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
return this.send("POST", "/connectors/elevenlabs/list-voices", { body });
|
|
2024
|
+
createAppointment(body) {
|
|
2025
|
+
return this.h("create-appointment", body);
|
|
1795
2026
|
}
|
|
1796
|
-
|
|
1797
|
-
return this.
|
|
2027
|
+
updateAppointment(body) {
|
|
2028
|
+
return this.h("update-appointment", body);
|
|
1798
2029
|
}
|
|
1799
|
-
|
|
1800
|
-
return this.
|
|
2030
|
+
deleteAppointment(body) {
|
|
2031
|
+
return this.h("delete-appointment", body);
|
|
1801
2032
|
}
|
|
1802
|
-
|
|
1803
|
-
return this.
|
|
2033
|
+
getAppointmentBookingWarnings(body) {
|
|
2034
|
+
return this.h("get-appointment-booking-warnings", body);
|
|
1804
2035
|
}
|
|
1805
|
-
|
|
1806
|
-
|
|
2036
|
+
// Availability
|
|
2037
|
+
getAvailabilities(body = {}) {
|
|
2038
|
+
return this.h("get-availabilities", body);
|
|
1807
2039
|
}
|
|
1808
|
-
|
|
1809
|
-
return this.
|
|
2040
|
+
getAvailability(body) {
|
|
2041
|
+
return this.h("get-availability", body);
|
|
1810
2042
|
}
|
|
1811
|
-
|
|
1812
|
-
return this.
|
|
2043
|
+
createAvailability(body) {
|
|
2044
|
+
return this.h("create-availability", body);
|
|
1813
2045
|
}
|
|
1814
|
-
|
|
1815
|
-
return this.
|
|
2046
|
+
createAvailabilitiesBulk(body) {
|
|
2047
|
+
return this.h("create-availabilities-bulk", body);
|
|
1816
2048
|
}
|
|
1817
|
-
|
|
1818
|
-
return this.
|
|
2049
|
+
editAvailability(body) {
|
|
2050
|
+
return this.h("edit-availability", body);
|
|
1819
2051
|
}
|
|
1820
|
-
|
|
1821
|
-
return this.
|
|
2052
|
+
deleteAvailability(body) {
|
|
2053
|
+
return this.h("delete-availability", body);
|
|
1822
2054
|
}
|
|
1823
|
-
|
|
1824
|
-
return this.
|
|
2055
|
+
getDaysAvailableForRange(body) {
|
|
2056
|
+
return this.h("get-days-available-for-range", body);
|
|
1825
2057
|
}
|
|
1826
|
-
|
|
1827
|
-
return this.
|
|
2058
|
+
getAvailableSlotsForRange(body) {
|
|
2059
|
+
return this.h("get-available-slots-for-range", body);
|
|
1828
2060
|
}
|
|
1829
|
-
|
|
1830
|
-
return this.
|
|
2061
|
+
completeCheckout(body) {
|
|
2062
|
+
return this.h("complete-checkout", body);
|
|
1831
2063
|
}
|
|
1832
|
-
|
|
1833
|
-
return this.
|
|
2064
|
+
findAndBookFirstAvailableSlot(body) {
|
|
2065
|
+
return this.h("find-and-book-first-available-slot", body);
|
|
1834
2066
|
}
|
|
1835
|
-
|
|
1836
|
-
|
|
2067
|
+
// Billing
|
|
2068
|
+
getBillingItems(body = {}) {
|
|
2069
|
+
return this.h("get-billing-items", body);
|
|
1837
2070
|
}
|
|
1838
|
-
|
|
1839
|
-
return this.
|
|
2071
|
+
getBillingItem(body) {
|
|
2072
|
+
return this.h("get-billing-item", body);
|
|
1840
2073
|
}
|
|
1841
|
-
|
|
1842
|
-
return this.
|
|
2074
|
+
createBillingItem(body) {
|
|
2075
|
+
return this.h("create-billing-item", body);
|
|
1843
2076
|
}
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
// src/clients/vendors/NppesClient.ts
|
|
1847
|
-
var NppesClient = class extends BaseServiceClient {
|
|
1848
|
-
constructor(http) {
|
|
1849
|
-
super(http, "connectors");
|
|
2077
|
+
updateBillingItem(body) {
|
|
2078
|
+
return this.h("update-billing-item", body);
|
|
1850
2079
|
}
|
|
1851
|
-
|
|
1852
|
-
return this.
|
|
2080
|
+
deleteBillingItem(body) {
|
|
2081
|
+
return this.h("delete-billing-item", body);
|
|
1853
2082
|
}
|
|
1854
|
-
|
|
1855
|
-
|
|
2083
|
+
// Invoices
|
|
2084
|
+
getInvoices(body = {}) {
|
|
2085
|
+
return this.h("get-invoices", body);
|
|
1856
2086
|
}
|
|
1857
|
-
|
|
1858
|
-
return this.
|
|
2087
|
+
getInvoice(body) {
|
|
2088
|
+
return this.h("get-invoice", body);
|
|
1859
2089
|
}
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
// src/clients/vendors/CmsClient.ts
|
|
1863
|
-
var CmsClient = class extends BaseServiceClient {
|
|
1864
|
-
constructor(http) {
|
|
1865
|
-
super(http, "connectors");
|
|
2090
|
+
createInvoice(body) {
|
|
2091
|
+
return this.h("create-invoice", body);
|
|
1866
2092
|
}
|
|
1867
|
-
|
|
1868
|
-
return this.
|
|
2093
|
+
updateInvoice(body) {
|
|
2094
|
+
return this.h("update-invoice", body);
|
|
1869
2095
|
}
|
|
1870
|
-
|
|
1871
|
-
return this.
|
|
2096
|
+
deleteInvoice(body) {
|
|
2097
|
+
return this.h("delete-invoice", body);
|
|
1872
2098
|
}
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
var FedExClient = class extends BaseServiceClient {
|
|
1877
|
-
constructor(http) {
|
|
1878
|
-
super(http, "connectors");
|
|
2099
|
+
// Offerings
|
|
2100
|
+
getOffering(body) {
|
|
2101
|
+
return this.h("get-offering", body);
|
|
1879
2102
|
}
|
|
1880
|
-
|
|
1881
|
-
return this.
|
|
2103
|
+
getOfferings(body = {}) {
|
|
2104
|
+
return this.h("get-offerings", body);
|
|
1882
2105
|
}
|
|
1883
|
-
|
|
1884
|
-
return this.
|
|
2106
|
+
createOffering(body) {
|
|
2107
|
+
return this.h("create-offering", body);
|
|
1885
2108
|
}
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
// src/clients/vendors/ConnectureClient.ts
|
|
1889
|
-
var ConnectureClient = class extends BaseServiceClient {
|
|
1890
|
-
constructor(http) {
|
|
1891
|
-
super(http, "connectors");
|
|
2109
|
+
updateOffering(body) {
|
|
2110
|
+
return this.h("update-offering", body);
|
|
1892
2111
|
}
|
|
1893
|
-
|
|
1894
|
-
return this.
|
|
2112
|
+
copyOffering(body) {
|
|
2113
|
+
return this.h("copy-offering", body);
|
|
1895
2114
|
}
|
|
1896
|
-
|
|
1897
|
-
return this.
|
|
2115
|
+
deleteOffering(body) {
|
|
2116
|
+
return this.h("delete-offering", body);
|
|
1898
2117
|
}
|
|
1899
|
-
|
|
1900
|
-
|
|
2118
|
+
// Insurance
|
|
2119
|
+
getInsurancePayments(body = {}) {
|
|
2120
|
+
return this.h("get-insurance-payments", body);
|
|
1901
2121
|
}
|
|
1902
|
-
|
|
1903
|
-
return this.
|
|
2122
|
+
createInsurancePayment(body) {
|
|
2123
|
+
return this.h("create-insurance-payment", body);
|
|
1904
2124
|
}
|
|
1905
|
-
|
|
1906
|
-
return this.
|
|
2125
|
+
updateManualInsurancePayment(body) {
|
|
2126
|
+
return this.h("update-manual-insurance-payment", body);
|
|
1907
2127
|
}
|
|
1908
|
-
|
|
1909
|
-
return this.
|
|
2128
|
+
updateInsurancePaymentDepositStatus(body) {
|
|
2129
|
+
return this.h("update-insurance-payment-deposit-status", body);
|
|
1910
2130
|
}
|
|
1911
|
-
|
|
1912
|
-
return this.
|
|
2131
|
+
deleteManualInsurancePayment(body) {
|
|
2132
|
+
return this.h("delete-manual-insurance-payment", body);
|
|
1913
2133
|
}
|
|
1914
|
-
|
|
1915
|
-
return this.
|
|
2134
|
+
storePaymentCard(body) {
|
|
2135
|
+
return this.h("store-payment-card", body);
|
|
1916
2136
|
}
|
|
1917
|
-
|
|
1918
|
-
return this.
|
|
2137
|
+
getInsurancePlans(body = {}) {
|
|
2138
|
+
return this.h("get-insurance-plans", body);
|
|
1919
2139
|
}
|
|
1920
|
-
|
|
1921
|
-
return this.
|
|
2140
|
+
acceptInsurancePlans(body) {
|
|
2141
|
+
return this.h("accept-insurance-plans", body);
|
|
1922
2142
|
}
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
// src/clients/vendors/SenaiteClient.ts
|
|
1926
|
-
var SenaiteClient = class extends BaseServiceClient {
|
|
1927
|
-
constructor(http) {
|
|
1928
|
-
super(http, "connectors");
|
|
2143
|
+
removeAcceptedInsurancePlan(body) {
|
|
2144
|
+
return this.h("remove-accepted-insurance-plan", body);
|
|
1929
2145
|
}
|
|
1930
|
-
|
|
1931
|
-
return this.
|
|
2146
|
+
updatePatientInsuranceBilling(body) {
|
|
2147
|
+
return this.h("update-patient-insurance-billing", body);
|
|
1932
2148
|
}
|
|
1933
|
-
|
|
1934
|
-
|
|
2149
|
+
// Super bills / CMS1500
|
|
2150
|
+
getSuperBills(body = {}) {
|
|
2151
|
+
return this.h("get-super-bills", body);
|
|
1935
2152
|
}
|
|
1936
|
-
|
|
1937
|
-
return this.
|
|
2153
|
+
getSuperBill(body) {
|
|
2154
|
+
return this.h("get-super-bill", body);
|
|
1938
2155
|
}
|
|
1939
|
-
|
|
1940
|
-
return this.
|
|
2156
|
+
createSuperBill(body) {
|
|
2157
|
+
return this.h("create-super-bill", body);
|
|
1941
2158
|
}
|
|
1942
|
-
|
|
1943
|
-
return this.
|
|
2159
|
+
updateSuperBill(body) {
|
|
2160
|
+
return this.h("update-super-bill", body);
|
|
1944
2161
|
}
|
|
1945
|
-
|
|
1946
|
-
return this.
|
|
2162
|
+
deleteSuperBill(body) {
|
|
2163
|
+
return this.h("delete-super-bill", body);
|
|
1947
2164
|
}
|
|
1948
|
-
|
|
1949
|
-
return this.
|
|
2165
|
+
getCms1500s(body = {}) {
|
|
2166
|
+
return this.h("get-cms1500s", body);
|
|
1950
2167
|
}
|
|
1951
|
-
|
|
1952
|
-
return this.
|
|
2168
|
+
getCms1500(body) {
|
|
2169
|
+
return this.h("get-cms1500", body);
|
|
1953
2170
|
}
|
|
1954
|
-
|
|
1955
|
-
return this.
|
|
2171
|
+
createCms1500(body) {
|
|
2172
|
+
return this.h("create-cms1500", body);
|
|
1956
2173
|
}
|
|
1957
|
-
|
|
1958
|
-
return this.
|
|
2174
|
+
updateCms1500(body) {
|
|
2175
|
+
return this.h("update-cms1500", body);
|
|
1959
2176
|
}
|
|
1960
|
-
|
|
1961
|
-
return this.
|
|
2177
|
+
deleteCms1500(body) {
|
|
2178
|
+
return this.h("delete-cms1500", body);
|
|
1962
2179
|
}
|
|
1963
|
-
|
|
1964
|
-
|
|
2180
|
+
// Forms
|
|
2181
|
+
getForm(body) {
|
|
2182
|
+
return this.h("get-form", body);
|
|
1965
2183
|
}
|
|
1966
|
-
|
|
1967
|
-
return this.
|
|
2184
|
+
getForms(body = {}) {
|
|
2185
|
+
return this.h("get-forms", body);
|
|
1968
2186
|
}
|
|
1969
|
-
|
|
1970
|
-
return this.
|
|
2187
|
+
createForm(body) {
|
|
2188
|
+
return this.h("create-form", body);
|
|
1971
2189
|
}
|
|
1972
|
-
|
|
1973
|
-
return this.
|
|
2190
|
+
updateForm(body) {
|
|
2191
|
+
return this.h("update-form", body);
|
|
1974
2192
|
}
|
|
1975
|
-
|
|
1976
|
-
return this.
|
|
2193
|
+
deleteForm(body) {
|
|
2194
|
+
return this.h("delete-form", body);
|
|
1977
2195
|
}
|
|
1978
|
-
|
|
1979
|
-
return this.
|
|
2196
|
+
copyForm(body) {
|
|
2197
|
+
return this.h("copy-form", body);
|
|
1980
2198
|
}
|
|
1981
|
-
|
|
1982
|
-
return this.
|
|
2199
|
+
shareForm(body) {
|
|
2200
|
+
return this.h("share-form", body);
|
|
1983
2201
|
}
|
|
1984
|
-
|
|
1985
|
-
return this.
|
|
2202
|
+
createFormAnswerGroup(body) {
|
|
2203
|
+
return this.h("create-form-answer-group", body);
|
|
1986
2204
|
}
|
|
1987
|
-
|
|
1988
|
-
return this.
|
|
2205
|
+
getFormAnswerGroups(body = {}) {
|
|
2206
|
+
return this.h("get-form-answer-groups", body);
|
|
1989
2207
|
}
|
|
1990
|
-
|
|
1991
|
-
return this.
|
|
2208
|
+
fillLabResultReviewForm(body) {
|
|
2209
|
+
return this.h("fill-lab-result-review-form", body);
|
|
1992
2210
|
}
|
|
1993
|
-
|
|
1994
|
-
|
|
2211
|
+
// Onboarding
|
|
2212
|
+
getOnboardingFlows(body = {}) {
|
|
2213
|
+
return this.h("get-onboarding-flows", body);
|
|
1995
2214
|
}
|
|
1996
|
-
|
|
1997
|
-
return this.
|
|
2215
|
+
getOnboardingFlow(body) {
|
|
2216
|
+
return this.h("get-onboarding-flow", body);
|
|
1998
2217
|
}
|
|
1999
|
-
|
|
2000
|
-
return this.
|
|
2218
|
+
createOnboardingFlow(body) {
|
|
2219
|
+
return this.h("create-onboarding-flow", body);
|
|
2001
2220
|
}
|
|
2002
|
-
|
|
2003
|
-
return this.
|
|
2221
|
+
updateOnboardingFlow(body) {
|
|
2222
|
+
return this.h("update-onboarding-flow", body);
|
|
2004
2223
|
}
|
|
2005
|
-
|
|
2006
|
-
return this.
|
|
2224
|
+
deleteOnboardingFlow(body) {
|
|
2225
|
+
return this.h("delete-onboarding-flow", body);
|
|
2007
2226
|
}
|
|
2008
|
-
|
|
2009
|
-
return this.
|
|
2227
|
+
getOnboardingItem(body) {
|
|
2228
|
+
return this.h("get-onboarding-item", body);
|
|
2010
2229
|
}
|
|
2011
|
-
|
|
2012
|
-
return this.
|
|
2230
|
+
createOnboardingItem(body) {
|
|
2231
|
+
return this.h("create-onboarding-item", body);
|
|
2013
2232
|
}
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
// src/clients/vendors/HealthieClient.ts
|
|
2017
|
-
var HealthieClient = class extends BaseServiceClient {
|
|
2018
|
-
constructor(http) {
|
|
2019
|
-
super(http, "connectors");
|
|
2233
|
+
updateOnboardingItem(body) {
|
|
2234
|
+
return this.h("update-onboarding-item", body);
|
|
2020
2235
|
}
|
|
2021
|
-
|
|
2022
|
-
return this.
|
|
2236
|
+
deleteOnboardingItem(body) {
|
|
2237
|
+
return this.h("delete-onboarding-item", body);
|
|
2023
2238
|
}
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
return this.h("create-api-key", body);
|
|
2239
|
+
getAvailableItemTypes(body = {}) {
|
|
2240
|
+
return this.h("get-available-item-types", body);
|
|
2027
2241
|
}
|
|
2028
|
-
|
|
2029
|
-
return this.h("
|
|
2242
|
+
getUnassociatedCompletedOnboardingItems(body = {}) {
|
|
2243
|
+
return this.h("get-unassociated-completed-onboarding-items", body);
|
|
2030
2244
|
}
|
|
2031
|
-
|
|
2032
|
-
return this.h("
|
|
2245
|
+
createCompletedOnboardingItem(body) {
|
|
2246
|
+
return this.h("create-completed-onboarding-item", body);
|
|
2033
2247
|
}
|
|
2034
|
-
|
|
2035
|
-
return this.h("get-
|
|
2248
|
+
getFormCompletionRequests(body = {}) {
|
|
2249
|
+
return this.h("get-form-completion-requests", body);
|
|
2036
2250
|
}
|
|
2037
|
-
|
|
2038
|
-
return this.h("
|
|
2251
|
+
createFormCompletionRequest(body) {
|
|
2252
|
+
return this.h("create-form-completion-request", body);
|
|
2039
2253
|
}
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
return this.h("create-patient", body);
|
|
2254
|
+
deleteFormCompletionRequest(body) {
|
|
2255
|
+
return this.h("delete-form-completion-request", body);
|
|
2043
2256
|
}
|
|
2044
|
-
|
|
2045
|
-
return this.h("
|
|
2257
|
+
createOpenLoopForm(body) {
|
|
2258
|
+
return this.h("create-open-loop-form", body);
|
|
2046
2259
|
}
|
|
2047
|
-
|
|
2048
|
-
|
|
2260
|
+
// Documents
|
|
2261
|
+
getDocuments(body = {}) {
|
|
2262
|
+
return this.h("get-documents", body);
|
|
2049
2263
|
}
|
|
2050
|
-
|
|
2051
|
-
return this.h("get-patient", body);
|
|
2264
|
+
getPatientDocuments(body) {
|
|
2265
|
+
return this.h("get-patient-documents", body);
|
|
2052
2266
|
}
|
|
2053
|
-
|
|
2054
|
-
return this.h("get-
|
|
2267
|
+
getDocument(body) {
|
|
2268
|
+
return this.h("get-document", body);
|
|
2055
2269
|
}
|
|
2056
|
-
|
|
2057
|
-
return this.h("
|
|
2270
|
+
updateDocument(body) {
|
|
2271
|
+
return this.h("update-document", body);
|
|
2058
2272
|
}
|
|
2059
|
-
|
|
2060
|
-
return this.h("
|
|
2273
|
+
deleteDocument(body) {
|
|
2274
|
+
return this.h("delete-document", body);
|
|
2061
2275
|
}
|
|
2062
|
-
|
|
2063
|
-
|
|
2276
|
+
// Notes
|
|
2277
|
+
getPatientNotes(body) {
|
|
2278
|
+
return this.h("get-patient-notes", body);
|
|
2064
2279
|
}
|
|
2065
|
-
|
|
2066
|
-
return this.h("
|
|
2280
|
+
createNote(body) {
|
|
2281
|
+
return this.h("create-note", body);
|
|
2067
2282
|
}
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
return this.h("create-location", body);
|
|
2283
|
+
createPersonalizationQuestionnaire(body) {
|
|
2284
|
+
return this.h("create-personalization-questionnaire", body);
|
|
2071
2285
|
}
|
|
2072
|
-
|
|
2073
|
-
|
|
2286
|
+
// Conversations
|
|
2287
|
+
getConversation(body) {
|
|
2288
|
+
return this.h("get-conversation", body);
|
|
2074
2289
|
}
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
return this.h("get-appointment-type", body);
|
|
2290
|
+
getConversationMemberships(body) {
|
|
2291
|
+
return this.h("get-conversation-memberships", body);
|
|
2078
2292
|
}
|
|
2079
|
-
|
|
2080
|
-
return this.h("
|
|
2293
|
+
createConversation(body) {
|
|
2294
|
+
return this.h("create-conversation", body);
|
|
2081
2295
|
}
|
|
2082
|
-
|
|
2083
|
-
return this.h("
|
|
2296
|
+
updateConversation(body) {
|
|
2297
|
+
return this.h("update-conversation", body);
|
|
2084
2298
|
}
|
|
2085
|
-
|
|
2086
|
-
return this.h("
|
|
2299
|
+
closeConversation(body) {
|
|
2300
|
+
return this.h("close-conversation", body);
|
|
2087
2301
|
}
|
|
2088
|
-
|
|
2089
|
-
return this.h("
|
|
2302
|
+
sendChatMessage(body) {
|
|
2303
|
+
return this.h("send-chat-message", body);
|
|
2090
2304
|
}
|
|
2091
|
-
|
|
2092
|
-
|
|
2305
|
+
// Fax
|
|
2306
|
+
getSentFaxes(body = {}) {
|
|
2307
|
+
return this.h("get-sent-faxes", body);
|
|
2093
2308
|
}
|
|
2094
|
-
|
|
2095
|
-
return this.h("
|
|
2309
|
+
getSentFax(body) {
|
|
2310
|
+
return this.h("get-sent-fax", body);
|
|
2096
2311
|
}
|
|
2097
|
-
|
|
2098
|
-
return this.h("
|
|
2312
|
+
sendFax(body) {
|
|
2313
|
+
return this.h("send-fax", body);
|
|
2099
2314
|
}
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
return this.h("get-appointment", body);
|
|
2315
|
+
getReceivedFaxes(body = {}) {
|
|
2316
|
+
return this.h("get-received-faxes", body);
|
|
2103
2317
|
}
|
|
2104
|
-
|
|
2105
|
-
return this.h("get-
|
|
2318
|
+
getReceivedFax(body) {
|
|
2319
|
+
return this.h("get-received-fax", body);
|
|
2106
2320
|
}
|
|
2107
|
-
|
|
2108
|
-
|
|
2321
|
+
// Entries / Metrics
|
|
2322
|
+
getEntries(body = {}) {
|
|
2323
|
+
return this.h("get-entries", body);
|
|
2109
2324
|
}
|
|
2110
|
-
|
|
2111
|
-
return this.h("
|
|
2325
|
+
getEntry(body) {
|
|
2326
|
+
return this.h("get-entry", body);
|
|
2112
2327
|
}
|
|
2113
|
-
|
|
2114
|
-
return this.h("
|
|
2328
|
+
createEntry(body) {
|
|
2329
|
+
return this.h("create-entry", body);
|
|
2115
2330
|
}
|
|
2116
|
-
|
|
2117
|
-
return this.h("
|
|
2331
|
+
updateEntry(body) {
|
|
2332
|
+
return this.h("update-entry", body);
|
|
2118
2333
|
}
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
return this.h("get-availabilities", body);
|
|
2334
|
+
deleteEntry(body) {
|
|
2335
|
+
return this.h("delete-entry", body);
|
|
2122
2336
|
}
|
|
2123
|
-
|
|
2124
|
-
return this.h("
|
|
2337
|
+
createMetricEntry(body) {
|
|
2338
|
+
return this.h("create-metric-entry", body);
|
|
2125
2339
|
}
|
|
2126
|
-
|
|
2127
|
-
return this.h("
|
|
2340
|
+
getMetricEntries(body = {}) {
|
|
2341
|
+
return this.h("get-metric-entries", body);
|
|
2128
2342
|
}
|
|
2129
|
-
|
|
2130
|
-
|
|
2343
|
+
// Goals
|
|
2344
|
+
getGoals(body = {}) {
|
|
2345
|
+
return this.h("get-goals", body);
|
|
2131
2346
|
}
|
|
2132
|
-
|
|
2133
|
-
return this.h("
|
|
2347
|
+
getGoal(body) {
|
|
2348
|
+
return this.h("get-goal", body);
|
|
2134
2349
|
}
|
|
2135
|
-
|
|
2136
|
-
return this.h("
|
|
2350
|
+
createGoal(body) {
|
|
2351
|
+
return this.h("create-goal", body);
|
|
2137
2352
|
}
|
|
2138
|
-
|
|
2139
|
-
return this.h("
|
|
2353
|
+
updateGoal(body) {
|
|
2354
|
+
return this.h("update-goal", body);
|
|
2140
2355
|
}
|
|
2141
|
-
|
|
2142
|
-
return this.h("
|
|
2356
|
+
deleteGoal(body) {
|
|
2357
|
+
return this.h("delete-goal", body);
|
|
2143
2358
|
}
|
|
2144
|
-
|
|
2145
|
-
return this.h("
|
|
2359
|
+
getGoalHistories(body) {
|
|
2360
|
+
return this.h("get-goal-histories", body);
|
|
2146
2361
|
}
|
|
2147
|
-
|
|
2148
|
-
|
|
2362
|
+
// Tasks
|
|
2363
|
+
getTask(body) {
|
|
2364
|
+
return this.h("get-task", body);
|
|
2149
2365
|
}
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
return this.h("get-billing-items", body);
|
|
2366
|
+
getTasks(body = {}) {
|
|
2367
|
+
return this.h("get-tasks", body);
|
|
2153
2368
|
}
|
|
2154
|
-
|
|
2155
|
-
return this.h("
|
|
2369
|
+
createTask(body) {
|
|
2370
|
+
return this.h("create-task", body);
|
|
2156
2371
|
}
|
|
2157
|
-
|
|
2158
|
-
return this.h("
|
|
2372
|
+
updateTask(body) {
|
|
2373
|
+
return this.h("update-task", body);
|
|
2159
2374
|
}
|
|
2160
|
-
|
|
2161
|
-
return this.h("
|
|
2375
|
+
deleteTask(body) {
|
|
2376
|
+
return this.h("delete-task", body);
|
|
2162
2377
|
}
|
|
2163
|
-
|
|
2164
|
-
return this.h("
|
|
2378
|
+
markTasksAsSeen(body) {
|
|
2379
|
+
return this.h("mark-tasks-as-seen", body);
|
|
2165
2380
|
}
|
|
2166
|
-
//
|
|
2167
|
-
|
|
2168
|
-
return this.h("get-
|
|
2381
|
+
// Care plans
|
|
2382
|
+
getCarePlans(body = {}) {
|
|
2383
|
+
return this.h("get-care-plans", body);
|
|
2169
2384
|
}
|
|
2170
|
-
|
|
2171
|
-
return this.h("get-
|
|
2385
|
+
getCarePlan(body) {
|
|
2386
|
+
return this.h("get-care-plan", body);
|
|
2172
2387
|
}
|
|
2173
|
-
|
|
2174
|
-
return this.h("create-
|
|
2388
|
+
createCarePlan(body) {
|
|
2389
|
+
return this.h("create-care-plan", body);
|
|
2175
2390
|
}
|
|
2176
|
-
|
|
2177
|
-
return this.h("update-
|
|
2391
|
+
updateCarePlan(body) {
|
|
2392
|
+
return this.h("update-care-plan", body);
|
|
2178
2393
|
}
|
|
2179
|
-
|
|
2180
|
-
return this.h("delete-
|
|
2394
|
+
deleteCarePlan(body) {
|
|
2395
|
+
return this.h("delete-care-plan", body);
|
|
2181
2396
|
}
|
|
2182
|
-
//
|
|
2183
|
-
|
|
2184
|
-
return this.h("get-
|
|
2397
|
+
// Programs
|
|
2398
|
+
getPrograms(body = {}) {
|
|
2399
|
+
return this.h("get-programs", body);
|
|
2185
2400
|
}
|
|
2186
|
-
|
|
2187
|
-
return this.h("get-
|
|
2401
|
+
getProgram(body) {
|
|
2402
|
+
return this.h("get-program", body);
|
|
2188
2403
|
}
|
|
2189
|
-
|
|
2190
|
-
return this.h("create-
|
|
2404
|
+
createProgram(body) {
|
|
2405
|
+
return this.h("create-program", body);
|
|
2191
2406
|
}
|
|
2192
|
-
|
|
2193
|
-
return this.h("update-
|
|
2407
|
+
updateProgram(body) {
|
|
2408
|
+
return this.h("update-program", body);
|
|
2194
2409
|
}
|
|
2195
|
-
|
|
2196
|
-
return this.h("
|
|
2410
|
+
deleteProgram(body) {
|
|
2411
|
+
return this.h("delete-program", body);
|
|
2197
2412
|
}
|
|
2198
|
-
|
|
2199
|
-
|
|
2413
|
+
// Episodes of care
|
|
2414
|
+
getPatientEncounter(body) {
|
|
2415
|
+
return this.h("get-patient-encounter", body);
|
|
2200
2416
|
}
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
return this.h("get-insurance-payments", body);
|
|
2417
|
+
getEpisodesOfCare(body = {}) {
|
|
2418
|
+
return this.h("get-episodes-of-care", body);
|
|
2204
2419
|
}
|
|
2205
|
-
|
|
2206
|
-
return this.h("create-
|
|
2420
|
+
createEpisodeOfCare(body) {
|
|
2421
|
+
return this.h("create-episode-of-care", body);
|
|
2207
2422
|
}
|
|
2208
|
-
|
|
2209
|
-
return this.h("update-
|
|
2423
|
+
updateEpisodeOfCare(body) {
|
|
2424
|
+
return this.h("update-episode-of-care", body);
|
|
2210
2425
|
}
|
|
2211
|
-
|
|
2212
|
-
return this.h("
|
|
2426
|
+
deleteEpisodeOfCare(body) {
|
|
2427
|
+
return this.h("delete-episode-of-care", body);
|
|
2213
2428
|
}
|
|
2214
|
-
|
|
2215
|
-
return this.h("
|
|
2429
|
+
linkEncountersToEpisode(body) {
|
|
2430
|
+
return this.h("link-encounters-to-episode", body);
|
|
2216
2431
|
}
|
|
2217
|
-
|
|
2218
|
-
return this.h("
|
|
2432
|
+
unlinkEncountersFromEpisode(body) {
|
|
2433
|
+
return this.h("unlink-encounters-from-episode", body);
|
|
2219
2434
|
}
|
|
2220
|
-
|
|
2221
|
-
|
|
2435
|
+
// CCDA
|
|
2436
|
+
parseCcdaDocument(body) {
|
|
2437
|
+
return this.h("parse-ccda-document", body);
|
|
2222
2438
|
}
|
|
2223
|
-
|
|
2224
|
-
return this.h("
|
|
2439
|
+
completeCcdaReconciliation(body) {
|
|
2440
|
+
return this.h("complete-ccda-reconciliation", body);
|
|
2225
2441
|
}
|
|
2226
|
-
|
|
2227
|
-
|
|
2442
|
+
// Diagnoses / Problems
|
|
2443
|
+
getPatientDiagnoses(body) {
|
|
2444
|
+
return this.h("get-patient-diagnoses", body);
|
|
2228
2445
|
}
|
|
2229
|
-
|
|
2230
|
-
return this.h("
|
|
2446
|
+
addDiagnosis(body) {
|
|
2447
|
+
return this.h("add-diagnosis", body);
|
|
2231
2448
|
}
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
return this.h("get-super-bills", body);
|
|
2449
|
+
updateDiagnosis(body) {
|
|
2450
|
+
return this.h("update-diagnosis", body);
|
|
2235
2451
|
}
|
|
2236
|
-
|
|
2237
|
-
return this.h("
|
|
2452
|
+
removeDiagnosis(body) {
|
|
2453
|
+
return this.h("remove-diagnosis", body);
|
|
2238
2454
|
}
|
|
2239
|
-
|
|
2240
|
-
return this.h("
|
|
2455
|
+
bulkUpdateDiagnoses(body) {
|
|
2456
|
+
return this.h("bulk-update-diagnoses", body);
|
|
2241
2457
|
}
|
|
2242
|
-
|
|
2243
|
-
return this.h("
|
|
2458
|
+
getPatientProblems(body) {
|
|
2459
|
+
return this.h("get-patient-problems", body);
|
|
2244
2460
|
}
|
|
2245
|
-
|
|
2246
|
-
|
|
2461
|
+
// Family history
|
|
2462
|
+
createFamilyHistory(body) {
|
|
2463
|
+
return this.h("create-family-history", body);
|
|
2247
2464
|
}
|
|
2248
|
-
|
|
2249
|
-
return this.h("
|
|
2465
|
+
updateFamilyHistory(body) {
|
|
2466
|
+
return this.h("update-family-history", body);
|
|
2250
2467
|
}
|
|
2251
|
-
|
|
2252
|
-
return this.h("
|
|
2468
|
+
deleteFamilyHistory(body) {
|
|
2469
|
+
return this.h("delete-family-history", body);
|
|
2253
2470
|
}
|
|
2254
|
-
|
|
2255
|
-
|
|
2471
|
+
// Immunizations
|
|
2472
|
+
getPatientImmunizations(body) {
|
|
2473
|
+
return this.h("get-patient-immunizations", body);
|
|
2256
2474
|
}
|
|
2257
|
-
|
|
2258
|
-
return this.h("
|
|
2475
|
+
createImmunization(body) {
|
|
2476
|
+
return this.h("create-immunization", body);
|
|
2259
2477
|
}
|
|
2260
|
-
|
|
2261
|
-
return this.h("
|
|
2478
|
+
updateImmunization(body) {
|
|
2479
|
+
return this.h("update-immunization", body);
|
|
2262
2480
|
}
|
|
2263
|
-
//
|
|
2264
|
-
|
|
2265
|
-
return this.h("get-
|
|
2481
|
+
// Medications
|
|
2482
|
+
getMedications(body) {
|
|
2483
|
+
return this.h("get-medications", body);
|
|
2266
2484
|
}
|
|
2267
|
-
|
|
2268
|
-
return this.h("
|
|
2485
|
+
createMedication(body) {
|
|
2486
|
+
return this.h("create-medication", body);
|
|
2269
2487
|
}
|
|
2270
|
-
|
|
2271
|
-
return this.h("
|
|
2488
|
+
updateMedication(body) {
|
|
2489
|
+
return this.h("update-medication", body);
|
|
2272
2490
|
}
|
|
2273
|
-
|
|
2274
|
-
return this.h("
|
|
2491
|
+
deleteMedication(body) {
|
|
2492
|
+
return this.h("delete-medication", body);
|
|
2275
2493
|
}
|
|
2276
|
-
|
|
2277
|
-
|
|
2494
|
+
// Lab orders
|
|
2495
|
+
getLabOrders(body = {}) {
|
|
2496
|
+
return this.h("get-lab-orders", body);
|
|
2278
2497
|
}
|
|
2279
|
-
|
|
2280
|
-
return this.h("
|
|
2498
|
+
getLabOrder(body) {
|
|
2499
|
+
return this.h("get-lab-order", body);
|
|
2281
2500
|
}
|
|
2282
|
-
|
|
2283
|
-
return this.h("
|
|
2501
|
+
createLabOrder(body) {
|
|
2502
|
+
return this.h("create-lab-order", body);
|
|
2284
2503
|
}
|
|
2285
|
-
|
|
2286
|
-
return this.h("create-
|
|
2504
|
+
createRupaOrder(body) {
|
|
2505
|
+
return this.h("create-rupa-order", body);
|
|
2287
2506
|
}
|
|
2288
|
-
|
|
2289
|
-
return this.h("
|
|
2507
|
+
updateLabOrder(body) {
|
|
2508
|
+
return this.h("update-lab-order", body);
|
|
2290
2509
|
}
|
|
2291
|
-
|
|
2292
|
-
return this.h("
|
|
2510
|
+
getLabResult(body) {
|
|
2511
|
+
return this.h("get-lab-result", body);
|
|
2293
2512
|
}
|
|
2294
|
-
//
|
|
2295
|
-
|
|
2296
|
-
return this.h("get-
|
|
2513
|
+
// Pharmacy
|
|
2514
|
+
getPharmacy(body) {
|
|
2515
|
+
return this.h("get-pharmacy", body);
|
|
2297
2516
|
}
|
|
2298
|
-
|
|
2299
|
-
return this.h("
|
|
2517
|
+
searchPharmacies(body) {
|
|
2518
|
+
return this.h("search-pharmacies", body);
|
|
2300
2519
|
}
|
|
2301
|
-
|
|
2302
|
-
return this.h("
|
|
2520
|
+
addPharmacy(body) {
|
|
2521
|
+
return this.h("add-pharmacy", body);
|
|
2303
2522
|
}
|
|
2304
|
-
|
|
2305
|
-
return this.h("
|
|
2523
|
+
getPatientDefaultPharmacy(body) {
|
|
2524
|
+
return this.h("get-patient-default-pharmacy", body);
|
|
2306
2525
|
}
|
|
2307
|
-
|
|
2308
|
-
|
|
2526
|
+
// Organization
|
|
2527
|
+
getOrganizationDetailed(body = {}) {
|
|
2528
|
+
return this.h("get-organization-detailed", body);
|
|
2309
2529
|
}
|
|
2310
|
-
|
|
2311
|
-
return this.h("
|
|
2530
|
+
listOrganizationMembers(body = {}) {
|
|
2531
|
+
return this.h("list-organization-members", body);
|
|
2312
2532
|
}
|
|
2313
|
-
|
|
2314
|
-
return this.h("create-
|
|
2533
|
+
createOrganizationMembership(body) {
|
|
2534
|
+
return this.h("create-organization-membership", body);
|
|
2315
2535
|
}
|
|
2316
|
-
|
|
2317
|
-
return this.h("update-
|
|
2536
|
+
updateOrganizationMembership(body) {
|
|
2537
|
+
return this.h("update-organization-membership", body);
|
|
2318
2538
|
}
|
|
2319
|
-
|
|
2320
|
-
return this.h("delete-
|
|
2539
|
+
deleteOrganizationMembership(body) {
|
|
2540
|
+
return this.h("delete-organization-membership", body);
|
|
2321
2541
|
}
|
|
2322
|
-
|
|
2323
|
-
return this.h("get-
|
|
2542
|
+
getOrganization(body = {}) {
|
|
2543
|
+
return this.h("get-organization", body);
|
|
2324
2544
|
}
|
|
2325
|
-
|
|
2326
|
-
return this.h("get-
|
|
2545
|
+
getDietitianId(body = {}) {
|
|
2546
|
+
return this.h("get-dietitian-id", body);
|
|
2327
2547
|
}
|
|
2328
|
-
|
|
2329
|
-
return this.h("
|
|
2548
|
+
getOrganizationMembers(body = {}) {
|
|
2549
|
+
return this.h("get-organization-members", body);
|
|
2330
2550
|
}
|
|
2331
|
-
|
|
2332
|
-
return this.h("get-
|
|
2551
|
+
getProvider(body) {
|
|
2552
|
+
return this.h("get-provider", body);
|
|
2333
2553
|
}
|
|
2334
|
-
|
|
2335
|
-
|
|
2554
|
+
// User groups
|
|
2555
|
+
getUserGroup(body) {
|
|
2556
|
+
return this.h("get-user-group", body);
|
|
2336
2557
|
}
|
|
2337
|
-
|
|
2338
|
-
return this.h("
|
|
2558
|
+
getUserGroups(body = {}) {
|
|
2559
|
+
return this.h("get-user-groups", body);
|
|
2339
2560
|
}
|
|
2340
|
-
|
|
2341
|
-
return this.h("create-
|
|
2561
|
+
createUserGroup(body) {
|
|
2562
|
+
return this.h("create-user-group", body);
|
|
2342
2563
|
}
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
return this.h("get-documents", body);
|
|
2564
|
+
updateUserGroup(body) {
|
|
2565
|
+
return this.h("update-user-group", body);
|
|
2346
2566
|
}
|
|
2347
|
-
|
|
2348
|
-
return this.h("
|
|
2567
|
+
deleteUserGroup(body) {
|
|
2568
|
+
return this.h("delete-user-group", body);
|
|
2349
2569
|
}
|
|
2350
|
-
|
|
2351
|
-
|
|
2570
|
+
// Tags
|
|
2571
|
+
getTags(body = {}) {
|
|
2572
|
+
return this.h("get-tags", body);
|
|
2352
2573
|
}
|
|
2353
|
-
|
|
2354
|
-
return this.h("
|
|
2574
|
+
createTag(body) {
|
|
2575
|
+
return this.h("create-tag", body);
|
|
2355
2576
|
}
|
|
2356
|
-
|
|
2357
|
-
return this.h("
|
|
2577
|
+
updateTag(body) {
|
|
2578
|
+
return this.h("update-tag", body);
|
|
2358
2579
|
}
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
return this.h("get-patient-notes", body);
|
|
2580
|
+
deleteTag(body) {
|
|
2581
|
+
return this.h("delete-tag", body);
|
|
2362
2582
|
}
|
|
2363
|
-
|
|
2364
|
-
return this.h("
|
|
2583
|
+
bulkApplyTags(body) {
|
|
2584
|
+
return this.h("bulk-apply-tags", body);
|
|
2365
2585
|
}
|
|
2366
|
-
|
|
2367
|
-
return this.h("
|
|
2586
|
+
removeAppliedTag(body) {
|
|
2587
|
+
return this.h("remove-applied-tag", body);
|
|
2368
2588
|
}
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2589
|
+
};
|
|
2590
|
+
|
|
2591
|
+
// src/clients/connectors/ImpiloClient.ts
|
|
2592
|
+
var ImpiloClient = class extends ConnectorClient {
|
|
2593
|
+
constructor(http, credentials) {
|
|
2594
|
+
super(http, credentials);
|
|
2372
2595
|
}
|
|
2373
|
-
|
|
2374
|
-
return this.
|
|
2596
|
+
i(op, body = {}) {
|
|
2597
|
+
return this.send("POST", `/connectors/impilo/${op}`, { body });
|
|
2375
2598
|
}
|
|
2376
|
-
|
|
2377
|
-
|
|
2599
|
+
// Patients
|
|
2600
|
+
createPatient(body) {
|
|
2601
|
+
return this.i("create-patient", body);
|
|
2378
2602
|
}
|
|
2379
|
-
|
|
2380
|
-
return this.
|
|
2603
|
+
getPatient(body) {
|
|
2604
|
+
return this.i("get-patient", body);
|
|
2381
2605
|
}
|
|
2382
|
-
|
|
2383
|
-
return this.
|
|
2606
|
+
listPatients(body = {}) {
|
|
2607
|
+
return this.i("list-patients", body);
|
|
2384
2608
|
}
|
|
2385
|
-
|
|
2386
|
-
return this.
|
|
2609
|
+
updatePatient(body) {
|
|
2610
|
+
return this.i("update-patient", body);
|
|
2387
2611
|
}
|
|
2388
|
-
//
|
|
2389
|
-
|
|
2390
|
-
return this.
|
|
2612
|
+
// Devices
|
|
2613
|
+
getDevice(body) {
|
|
2614
|
+
return this.i("get-device", body);
|
|
2391
2615
|
}
|
|
2392
|
-
|
|
2393
|
-
return this.
|
|
2616
|
+
listDevices(body = {}) {
|
|
2617
|
+
return this.i("list-devices", body);
|
|
2394
2618
|
}
|
|
2395
|
-
|
|
2396
|
-
return this.
|
|
2619
|
+
associateDevice(body) {
|
|
2620
|
+
return this.i("associate-device", body);
|
|
2621
|
+
}
|
|
2622
|
+
disassociateDevice(body) {
|
|
2623
|
+
return this.i("disassociate-device", body);
|
|
2397
2624
|
}
|
|
2398
|
-
|
|
2399
|
-
return this.
|
|
2625
|
+
enableReadings(body) {
|
|
2626
|
+
return this.i("enable-readings", body);
|
|
2400
2627
|
}
|
|
2401
|
-
|
|
2402
|
-
return this.
|
|
2628
|
+
disableReadings(body) {
|
|
2629
|
+
return this.i("disable-readings", body);
|
|
2403
2630
|
}
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
return this.h("get-entries", body);
|
|
2631
|
+
validateDevice(body) {
|
|
2632
|
+
return this.i("validate-device", body);
|
|
2407
2633
|
}
|
|
2408
|
-
|
|
2409
|
-
|
|
2634
|
+
// Kits
|
|
2635
|
+
getKit(body) {
|
|
2636
|
+
return this.i("get-kit", body);
|
|
2410
2637
|
}
|
|
2411
|
-
|
|
2412
|
-
return this.
|
|
2638
|
+
listKits(body = {}) {
|
|
2639
|
+
return this.i("list-kits", body);
|
|
2413
2640
|
}
|
|
2414
|
-
|
|
2415
|
-
return this.
|
|
2641
|
+
linkKitToPatient(body) {
|
|
2642
|
+
return this.i("link-kit-to-patient", body);
|
|
2416
2643
|
}
|
|
2417
|
-
|
|
2418
|
-
return this.
|
|
2644
|
+
unlinkKitFromPatient(body) {
|
|
2645
|
+
return this.i("unlink-kit-from-patient", body);
|
|
2419
2646
|
}
|
|
2420
|
-
|
|
2421
|
-
|
|
2647
|
+
// Orders
|
|
2648
|
+
createOrder(body) {
|
|
2649
|
+
return this.i("create-order", body);
|
|
2422
2650
|
}
|
|
2423
|
-
|
|
2424
|
-
return this.
|
|
2651
|
+
getOrder(body) {
|
|
2652
|
+
return this.i("get-order", body);
|
|
2425
2653
|
}
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
return this.h("get-goals", body);
|
|
2654
|
+
listOrders(body = {}) {
|
|
2655
|
+
return this.i("list-orders", body);
|
|
2429
2656
|
}
|
|
2430
|
-
|
|
2431
|
-
|
|
2657
|
+
// Readings
|
|
2658
|
+
recordBloodPressureReading(body) {
|
|
2659
|
+
return this.i("record-blood-pressure-reading", body);
|
|
2432
2660
|
}
|
|
2433
|
-
|
|
2434
|
-
return this.
|
|
2661
|
+
getBloodPressureReading(body) {
|
|
2662
|
+
return this.i("get-blood-pressure-reading", body);
|
|
2435
2663
|
}
|
|
2436
|
-
|
|
2437
|
-
return this.
|
|
2664
|
+
listBloodPressureReadings(body = {}) {
|
|
2665
|
+
return this.i("list-blood-pressure-readings", body);
|
|
2438
2666
|
}
|
|
2439
|
-
|
|
2440
|
-
return this.
|
|
2667
|
+
recordBloodGlucoseReading(body) {
|
|
2668
|
+
return this.i("record-blood-glucose-reading", body);
|
|
2441
2669
|
}
|
|
2442
|
-
|
|
2443
|
-
return this.
|
|
2670
|
+
getBloodGlucoseReading(body) {
|
|
2671
|
+
return this.i("get-blood-glucose-reading", body);
|
|
2444
2672
|
}
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
return this.h("get-task", body);
|
|
2673
|
+
listBloodGlucoseReadings(body = {}) {
|
|
2674
|
+
return this.i("list-blood-glucose-readings", body);
|
|
2448
2675
|
}
|
|
2449
|
-
|
|
2450
|
-
return this.
|
|
2676
|
+
recordBloodOxygenReading(body) {
|
|
2677
|
+
return this.i("record-blood-oxygen-reading", body);
|
|
2451
2678
|
}
|
|
2452
|
-
|
|
2453
|
-
return this.
|
|
2679
|
+
getBloodOxygenReading(body) {
|
|
2680
|
+
return this.i("get-blood-oxygen-reading", body);
|
|
2454
2681
|
}
|
|
2455
|
-
|
|
2456
|
-
return this.
|
|
2682
|
+
listBloodOxygenReadings(body = {}) {
|
|
2683
|
+
return this.i("list-blood-oxygen-readings", body);
|
|
2457
2684
|
}
|
|
2458
|
-
|
|
2459
|
-
return this.
|
|
2685
|
+
recordWeightReading(body) {
|
|
2686
|
+
return this.i("record-weight-reading", body);
|
|
2460
2687
|
}
|
|
2461
|
-
|
|
2462
|
-
return this.
|
|
2688
|
+
getWeightReading(body) {
|
|
2689
|
+
return this.i("get-weight-reading", body);
|
|
2463
2690
|
}
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
return this.h("get-care-plans", body);
|
|
2691
|
+
listWeightReadings(body = {}) {
|
|
2692
|
+
return this.i("list-weight-readings", body);
|
|
2467
2693
|
}
|
|
2468
|
-
|
|
2469
|
-
return this.
|
|
2694
|
+
recordTemperatureReading(body) {
|
|
2695
|
+
return this.i("record-temperature-reading", body);
|
|
2470
2696
|
}
|
|
2471
|
-
|
|
2472
|
-
return this.
|
|
2697
|
+
getTemperatureReading(body) {
|
|
2698
|
+
return this.i("get-temperature-reading", body);
|
|
2473
2699
|
}
|
|
2474
|
-
|
|
2475
|
-
return this.
|
|
2700
|
+
listTemperatureReadings(body = {}) {
|
|
2701
|
+
return this.i("list-temperature-readings", body);
|
|
2476
2702
|
}
|
|
2477
|
-
|
|
2478
|
-
return this.
|
|
2703
|
+
recordHeartRateReading(body) {
|
|
2704
|
+
return this.i("record-heart-rate-reading", body);
|
|
2479
2705
|
}
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
return this.h("get-programs", body);
|
|
2706
|
+
getHeartRateReading(body) {
|
|
2707
|
+
return this.i("get-heart-rate-reading", body);
|
|
2483
2708
|
}
|
|
2484
|
-
|
|
2485
|
-
return this.
|
|
2709
|
+
listHeartRateReadings(body = {}) {
|
|
2710
|
+
return this.i("list-heart-rate-readings", body);
|
|
2486
2711
|
}
|
|
2487
|
-
|
|
2488
|
-
return this.
|
|
2712
|
+
listSpirometryReadings(body = {}) {
|
|
2713
|
+
return this.i("list-spirometry-readings", body);
|
|
2489
2714
|
}
|
|
2490
|
-
|
|
2491
|
-
|
|
2715
|
+
// Clinical notes
|
|
2716
|
+
getClinicalNote(body) {
|
|
2717
|
+
return this.i("get-clinical-note", body);
|
|
2492
2718
|
}
|
|
2493
|
-
|
|
2494
|
-
return this.
|
|
2719
|
+
listClinicalNotes(body = {}) {
|
|
2720
|
+
return this.i("list-clinical-notes", body);
|
|
2495
2721
|
}
|
|
2496
|
-
//
|
|
2497
|
-
|
|
2498
|
-
return this.
|
|
2722
|
+
// Inventory
|
|
2723
|
+
listSiteInventory(body = {}) {
|
|
2724
|
+
return this.i("list-site-inventory", body);
|
|
2499
2725
|
}
|
|
2500
|
-
|
|
2501
|
-
return this.
|
|
2726
|
+
listKitInventory(body = {}) {
|
|
2727
|
+
return this.i("list-kit-inventory", body);
|
|
2502
2728
|
}
|
|
2503
|
-
|
|
2504
|
-
|
|
2729
|
+
// Procurements
|
|
2730
|
+
createProcurement(body) {
|
|
2731
|
+
return this.i("create-procurement", body);
|
|
2505
2732
|
}
|
|
2506
|
-
|
|
2507
|
-
return this.
|
|
2733
|
+
listProcurements(body = {}) {
|
|
2734
|
+
return this.i("list-procurements", body);
|
|
2508
2735
|
}
|
|
2509
|
-
|
|
2510
|
-
|
|
2736
|
+
// Items
|
|
2737
|
+
createItem(body) {
|
|
2738
|
+
return this.i("create-item", body);
|
|
2511
2739
|
}
|
|
2512
|
-
|
|
2513
|
-
return this.
|
|
2740
|
+
getItem(body) {
|
|
2741
|
+
return this.i("get-item", body);
|
|
2514
2742
|
}
|
|
2515
|
-
|
|
2516
|
-
return this.
|
|
2743
|
+
listItems(body = {}) {
|
|
2744
|
+
return this.i("list-items", body);
|
|
2517
2745
|
}
|
|
2518
|
-
//
|
|
2519
|
-
|
|
2520
|
-
return this.
|
|
2746
|
+
// Alert configs
|
|
2747
|
+
getPatientAlertConfig(body) {
|
|
2748
|
+
return this.i("get-patient-alert-config", body);
|
|
2521
2749
|
}
|
|
2522
|
-
|
|
2523
|
-
return this.
|
|
2750
|
+
setPatientAlertConfig(body) {
|
|
2751
|
+
return this.i("set-patient-alert-config", body);
|
|
2524
2752
|
}
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
return this.h("get-patient-diagnoses", body);
|
|
2753
|
+
getSiteAlertConfig(body) {
|
|
2754
|
+
return this.i("get-site-alert-config", body);
|
|
2528
2755
|
}
|
|
2529
|
-
|
|
2530
|
-
return this.
|
|
2756
|
+
setSiteAlertConfig(body) {
|
|
2757
|
+
return this.i("set-site-alert-config", body);
|
|
2531
2758
|
}
|
|
2532
|
-
|
|
2533
|
-
return this.
|
|
2759
|
+
getGlobalAlertConfig(body) {
|
|
2760
|
+
return this.i("get-global-alert-config", body);
|
|
2534
2761
|
}
|
|
2535
|
-
|
|
2536
|
-
return this.
|
|
2762
|
+
setGlobalAlertConfig(body) {
|
|
2763
|
+
return this.i("set-global-alert-config", body);
|
|
2537
2764
|
}
|
|
2538
|
-
|
|
2539
|
-
|
|
2765
|
+
// Webhooks
|
|
2766
|
+
registerWebhooks(body) {
|
|
2767
|
+
return this.i("register-webhooks", body);
|
|
2540
2768
|
}
|
|
2541
|
-
|
|
2542
|
-
return this.
|
|
2769
|
+
fetchProcurementDocument(body) {
|
|
2770
|
+
return this.send("POST", "/connectors/impilo/fetch-procurement-document", { body });
|
|
2543
2771
|
}
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
return this.h("create-family-history", body);
|
|
2772
|
+
getOrderSummary(body) {
|
|
2773
|
+
return this.send("POST", "/connectors/impilo/get-order-summary", { body });
|
|
2547
2774
|
}
|
|
2548
|
-
|
|
2549
|
-
|
|
2775
|
+
};
|
|
2776
|
+
|
|
2777
|
+
// src/clients/connectors/JunctionClient.ts
|
|
2778
|
+
var JunctionClient = class extends ConnectorClient {
|
|
2779
|
+
constructor(http, credentials) {
|
|
2780
|
+
super(http, credentials);
|
|
2550
2781
|
}
|
|
2551
|
-
|
|
2552
|
-
return this.
|
|
2782
|
+
orderTestkit(body) {
|
|
2783
|
+
return this.send("POST", "/connectors/junction/order-testkit", { body });
|
|
2553
2784
|
}
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
return this.h("get-patient-immunizations", body);
|
|
2785
|
+
registerTestkit(body) {
|
|
2786
|
+
return this.send("POST", "/connectors/junction/register-testkit", { body });
|
|
2557
2787
|
}
|
|
2558
|
-
|
|
2559
|
-
return this.
|
|
2788
|
+
getTests(body = {}) {
|
|
2789
|
+
return this.send("POST", "/connectors/junction/get-tests", { body });
|
|
2560
2790
|
}
|
|
2561
|
-
|
|
2562
|
-
return this.
|
|
2791
|
+
getOrders(body = {}) {
|
|
2792
|
+
return this.send("POST", "/connectors/junction/get-orders", { body });
|
|
2563
2793
|
}
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2794
|
+
};
|
|
2795
|
+
|
|
2796
|
+
// src/clients/connectors/NppesClient.ts
|
|
2797
|
+
var NppesClient = class extends ConnectorClient {
|
|
2798
|
+
constructor(http, credentials) {
|
|
2799
|
+
super(http, credentials);
|
|
2567
2800
|
}
|
|
2568
|
-
|
|
2569
|
-
return this.
|
|
2801
|
+
verifyProvider(body) {
|
|
2802
|
+
return this.send("POST", "/connectors/nppes/verify-provider", { body });
|
|
2570
2803
|
}
|
|
2571
|
-
|
|
2572
|
-
return this.
|
|
2804
|
+
getProvider(body) {
|
|
2805
|
+
return this.send("POST", "/connectors/nppes/get-provider", { body });
|
|
2573
2806
|
}
|
|
2574
|
-
|
|
2575
|
-
return this.
|
|
2807
|
+
searchProviders(body) {
|
|
2808
|
+
return this.send("POST", "/connectors/nppes/search-providers", { body });
|
|
2576
2809
|
}
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2810
|
+
};
|
|
2811
|
+
|
|
2812
|
+
// src/clients/connectors/OpenAIClient.ts
|
|
2813
|
+
var OpenAIClient = class extends ConnectorClient {
|
|
2814
|
+
constructor(http, credentials) {
|
|
2815
|
+
super(http, credentials);
|
|
2580
2816
|
}
|
|
2581
|
-
|
|
2582
|
-
|
|
2817
|
+
/** Send a chat completion request to OpenAI. */
|
|
2818
|
+
chat(body) {
|
|
2819
|
+
return this.send("POST", "/connectors/openai/chat", { body });
|
|
2583
2820
|
}
|
|
2584
|
-
|
|
2585
|
-
|
|
2821
|
+
/** Generate text embeddings via OpenAI. */
|
|
2822
|
+
embed(body) {
|
|
2823
|
+
return this.send("POST", "/connectors/openai/embed", { body });
|
|
2586
2824
|
}
|
|
2587
|
-
|
|
2588
|
-
return this.
|
|
2825
|
+
buildResponseCreatePayload(body = {}) {
|
|
2826
|
+
return this.send("POST", "/connectors/openai/build-response-create-payload", { body });
|
|
2589
2827
|
}
|
|
2590
|
-
|
|
2591
|
-
return this.
|
|
2828
|
+
chatJson(body) {
|
|
2829
|
+
return this.send("POST", "/connectors/openai/chat-json", { body });
|
|
2592
2830
|
}
|
|
2593
|
-
|
|
2594
|
-
return this.
|
|
2831
|
+
createAssistant(body) {
|
|
2832
|
+
return this.send("POST", "/connectors/openai/create-assistant", { body });
|
|
2595
2833
|
}
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
return this.h("get-pharmacy", body);
|
|
2834
|
+
deleteAssistant(body) {
|
|
2835
|
+
return this.send("POST", "/connectors/openai/delete-assistant", { body });
|
|
2599
2836
|
}
|
|
2600
|
-
|
|
2601
|
-
return this.
|
|
2837
|
+
getAssistant(body) {
|
|
2838
|
+
return this.send("POST", "/connectors/openai/get-assistant", { body });
|
|
2602
2839
|
}
|
|
2603
|
-
|
|
2604
|
-
return this.
|
|
2840
|
+
moderate(body) {
|
|
2841
|
+
return this.send("POST", "/connectors/openai/moderate", { body });
|
|
2605
2842
|
}
|
|
2606
|
-
|
|
2607
|
-
return this.
|
|
2843
|
+
updateAssistant(body) {
|
|
2844
|
+
return this.send("POST", "/connectors/openai/update-assistant", { body });
|
|
2608
2845
|
}
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2846
|
+
};
|
|
2847
|
+
|
|
2848
|
+
// src/clients/connectors/OuraClient.ts
|
|
2849
|
+
var OuraClient = class extends ConnectorClient {
|
|
2850
|
+
constructor(http, credentials) {
|
|
2851
|
+
super(http, credentials);
|
|
2612
2852
|
}
|
|
2613
|
-
|
|
2614
|
-
return this.
|
|
2853
|
+
o(op, body = {}) {
|
|
2854
|
+
return this.send("POST", `/connectors/oura/${op}`, { body });
|
|
2615
2855
|
}
|
|
2616
|
-
|
|
2617
|
-
return this.
|
|
2856
|
+
buildAuthorizationUrl(body = {}) {
|
|
2857
|
+
return this.o("build-authorization-url", body);
|
|
2618
2858
|
}
|
|
2619
|
-
|
|
2620
|
-
return this.
|
|
2859
|
+
exchangeAuthorizationCode(body) {
|
|
2860
|
+
return this.o("exchange-authorization-code", body);
|
|
2621
2861
|
}
|
|
2622
|
-
|
|
2623
|
-
return this.
|
|
2862
|
+
refreshAccessToken(body) {
|
|
2863
|
+
return this.o("refresh-access-token", body);
|
|
2624
2864
|
}
|
|
2625
|
-
|
|
2626
|
-
return this.
|
|
2865
|
+
getPersonalInfo(body = {}) {
|
|
2866
|
+
return this.o("get-personal-info", body);
|
|
2627
2867
|
}
|
|
2628
|
-
|
|
2629
|
-
return this.
|
|
2868
|
+
getDailyActivities(body = {}) {
|
|
2869
|
+
return this.o("get-daily-activities", body);
|
|
2630
2870
|
}
|
|
2631
|
-
|
|
2632
|
-
return this.
|
|
2871
|
+
getDailyActivity(body) {
|
|
2872
|
+
return this.o("get-daily-activity", body);
|
|
2633
2873
|
}
|
|
2634
|
-
|
|
2635
|
-
return this.
|
|
2874
|
+
getDailySleeps(body = {}) {
|
|
2875
|
+
return this.o("get-daily-sleeps", body);
|
|
2636
2876
|
}
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
return this.h("get-user-group", body);
|
|
2877
|
+
getDailySleep(body) {
|
|
2878
|
+
return this.o("get-daily-sleep", body);
|
|
2640
2879
|
}
|
|
2641
|
-
|
|
2642
|
-
return this.
|
|
2880
|
+
getSleeps(body = {}) {
|
|
2881
|
+
return this.o("get-sleeps", body);
|
|
2643
2882
|
}
|
|
2644
|
-
|
|
2645
|
-
return this.
|
|
2883
|
+
getSleep(body) {
|
|
2884
|
+
return this.o("get-sleep", body);
|
|
2646
2885
|
}
|
|
2647
|
-
|
|
2648
|
-
return this.
|
|
2886
|
+
getAllSleeps(body = {}) {
|
|
2887
|
+
return this.o("get-all-sleeps", body);
|
|
2649
2888
|
}
|
|
2650
|
-
|
|
2651
|
-
return this.
|
|
2889
|
+
getDailyReadiness(body = {}) {
|
|
2890
|
+
return this.o("get-daily-readiness", body);
|
|
2652
2891
|
}
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
return this.h("get-tags", body);
|
|
2892
|
+
getDailyReadinessById(body) {
|
|
2893
|
+
return this.o("get-daily-readiness-by-id", body);
|
|
2656
2894
|
}
|
|
2657
|
-
|
|
2658
|
-
return this.
|
|
2895
|
+
getHeartRates(body = {}) {
|
|
2896
|
+
return this.o("get-heart-rates", body);
|
|
2659
2897
|
}
|
|
2660
|
-
|
|
2661
|
-
return this.
|
|
2898
|
+
getWorkouts(body = {}) {
|
|
2899
|
+
return this.o("get-workouts", body);
|
|
2662
2900
|
}
|
|
2663
|
-
|
|
2664
|
-
return this.
|
|
2901
|
+
getWorkout(body) {
|
|
2902
|
+
return this.o("get-workout", body);
|
|
2665
2903
|
}
|
|
2666
|
-
|
|
2667
|
-
return this.
|
|
2904
|
+
getDailySpo2(body = {}) {
|
|
2905
|
+
return this.o("get-daily-spo2", body);
|
|
2668
2906
|
}
|
|
2669
|
-
|
|
2670
|
-
return this.
|
|
2907
|
+
getDailyStress(body = {}) {
|
|
2908
|
+
return this.o("get-daily-stress", body);
|
|
2671
2909
|
}
|
|
2672
|
-
}
|
|
2673
|
-
|
|
2674
|
-
// src/clients/vendors/GrokClient.ts
|
|
2675
|
-
var GrokClient = class extends BaseServiceClient {
|
|
2676
|
-
constructor(http) {
|
|
2677
|
-
super(http, "connectors");
|
|
2910
|
+
getDailyResilience(body = {}) {
|
|
2911
|
+
return this.o("get-daily-resilience", body);
|
|
2678
2912
|
}
|
|
2679
|
-
|
|
2680
|
-
return this.
|
|
2913
|
+
getDailyCardiovascularAge(body = {}) {
|
|
2914
|
+
return this.o("get-daily-cardiovascular-age", body);
|
|
2681
2915
|
}
|
|
2682
|
-
|
|
2683
|
-
return this.
|
|
2916
|
+
getVo2Max(body = {}) {
|
|
2917
|
+
return this.o("get-vo2-max", body);
|
|
2684
2918
|
}
|
|
2685
|
-
|
|
2686
|
-
return this.
|
|
2919
|
+
getRingConfigurations(body = {}) {
|
|
2920
|
+
return this.o("get-ring-configurations", body);
|
|
2687
2921
|
}
|
|
2688
|
-
|
|
2689
|
-
return this.
|
|
2922
|
+
getSessions(body = {}) {
|
|
2923
|
+
return this.o("get-sessions", body);
|
|
2690
2924
|
}
|
|
2691
|
-
|
|
2692
|
-
return this.
|
|
2925
|
+
getSleepTimes(body = {}) {
|
|
2926
|
+
return this.o("get-sleep-times", body);
|
|
2693
2927
|
}
|
|
2694
|
-
|
|
2695
|
-
return this.
|
|
2928
|
+
getTags(body = {}) {
|
|
2929
|
+
return this.o("get-tags", body);
|
|
2696
2930
|
}
|
|
2697
|
-
|
|
2698
|
-
return this.
|
|
2931
|
+
getEnhancedTags(body = {}) {
|
|
2932
|
+
return this.o("get-enhanced-tags", body);
|
|
2699
2933
|
}
|
|
2700
|
-
|
|
2701
|
-
return this.
|
|
2934
|
+
getRestModePeriods(body = {}) {
|
|
2935
|
+
return this.o("get-rest-mode-periods", body);
|
|
2702
2936
|
}
|
|
2703
|
-
|
|
2704
|
-
|
|
2937
|
+
};
|
|
2938
|
+
|
|
2939
|
+
// src/clients/connectors/PlaidClient.ts
|
|
2940
|
+
var PlaidClient = class extends ConnectorClient {
|
|
2941
|
+
constructor(http, credentials) {
|
|
2942
|
+
super(http, credentials);
|
|
2705
2943
|
}
|
|
2706
|
-
|
|
2707
|
-
return this.send("POST", "/connectors/
|
|
2944
|
+
createIdentityVerification(body) {
|
|
2945
|
+
return this.send("POST", "/connectors/plaid/create-identity-verification", { body });
|
|
2708
2946
|
}
|
|
2709
|
-
|
|
2710
|
-
return this.send("POST", "/connectors/
|
|
2947
|
+
getIdentityVerification(body) {
|
|
2948
|
+
return this.send("POST", "/connectors/plaid/get-identity-verification", { body });
|
|
2711
2949
|
}
|
|
2712
|
-
|
|
2713
|
-
return this.send("POST", "/connectors/
|
|
2950
|
+
listIdentityVerifications(body) {
|
|
2951
|
+
return this.send("POST", "/connectors/plaid/list-identity-verifications", { body });
|
|
2714
2952
|
}
|
|
2715
2953
|
};
|
|
2716
2954
|
|
|
2717
|
-
// src/clients/
|
|
2718
|
-
var
|
|
2719
|
-
constructor(http) {
|
|
2720
|
-
super(http,
|
|
2955
|
+
// src/clients/connectors/QuestClient.ts
|
|
2956
|
+
var QuestClient = class extends ConnectorClient {
|
|
2957
|
+
constructor(http, credentials) {
|
|
2958
|
+
super(http, credentials);
|
|
2721
2959
|
}
|
|
2722
|
-
|
|
2723
|
-
return this.send("POST", `/connectors/
|
|
2960
|
+
p(operation, body) {
|
|
2961
|
+
return this.send("POST", `/connectors/quest/${operation}`, { body });
|
|
2724
2962
|
}
|
|
2725
|
-
|
|
2726
|
-
|
|
2963
|
+
// ── REST-style operations ──────────────────────────────────────────────────
|
|
2964
|
+
/** Create a lab order with Quest Diagnostics. */
|
|
2965
|
+
createOrder(body) {
|
|
2966
|
+
return this.send("POST", "/connectors/quest/create-order", { body });
|
|
2727
2967
|
}
|
|
2728
|
-
|
|
2729
|
-
|
|
2968
|
+
/** Retrieve lab results for an order or patient. */
|
|
2969
|
+
getResults(body) {
|
|
2970
|
+
return this.send("POST", "/connectors/quest/get-results", { body });
|
|
2730
2971
|
}
|
|
2731
|
-
|
|
2732
|
-
|
|
2972
|
+
/** Browse the Quest test catalog. */
|
|
2973
|
+
listTests(body) {
|
|
2974
|
+
return this.send("POST", "/connectors/quest/list-tests", { body });
|
|
2733
2975
|
}
|
|
2734
|
-
|
|
2735
|
-
|
|
2976
|
+
// ── HL7 message-based operations ───────────────────────────────────────────
|
|
2977
|
+
getAccessToken(body = {}) {
|
|
2978
|
+
return this.p("get-access-token", body);
|
|
2736
2979
|
}
|
|
2737
|
-
|
|
2738
|
-
return this.
|
|
2980
|
+
clearTokenCache(body = {}) {
|
|
2981
|
+
return this.p("clear-token-cache", body);
|
|
2739
2982
|
}
|
|
2740
|
-
|
|
2741
|
-
return this.
|
|
2983
|
+
submitOrder(body) {
|
|
2984
|
+
return this.p("submit-order", body);
|
|
2742
2985
|
}
|
|
2743
|
-
|
|
2744
|
-
return this.
|
|
2986
|
+
getOrderDocuments(body) {
|
|
2987
|
+
return this.p("get-order-documents", body);
|
|
2745
2988
|
}
|
|
2746
|
-
|
|
2747
|
-
return this.
|
|
2989
|
+
evaluateAbn(body) {
|
|
2990
|
+
return this.p("evaluate-abn", body);
|
|
2748
2991
|
}
|
|
2749
|
-
|
|
2750
|
-
return this.
|
|
2992
|
+
getRequisition(body) {
|
|
2993
|
+
return this.p("get-requisition", body);
|
|
2751
2994
|
}
|
|
2752
|
-
|
|
2753
|
-
return this.
|
|
2995
|
+
evaluateAoe(body) {
|
|
2996
|
+
return this.p("evaluate-aoe", body);
|
|
2754
2997
|
}
|
|
2755
|
-
|
|
2756
|
-
return this.
|
|
2998
|
+
submitFullOrder(body) {
|
|
2999
|
+
return this.p("submit-full-order", body);
|
|
2757
3000
|
}
|
|
2758
|
-
}
|
|
2759
|
-
|
|
2760
|
-
// src/clients/vendors/CarequalityClient.ts
|
|
2761
|
-
var CarequalityClient = class extends BaseServiceClient {
|
|
2762
|
-
constructor(http) {
|
|
2763
|
-
super(http, "connectors");
|
|
3001
|
+
getHl7Results(body = {}) {
|
|
3002
|
+
return this.p("get-hl7-results", body);
|
|
2764
3003
|
}
|
|
2765
|
-
|
|
2766
|
-
return this.
|
|
3004
|
+
getPrintableResults(body = {}) {
|
|
3005
|
+
return this.p("get-printable-results", body);
|
|
2767
3006
|
}
|
|
2768
|
-
|
|
2769
|
-
return this.
|
|
3007
|
+
getObservationResults(body = {}) {
|
|
3008
|
+
return this.p("get-observation-results", body);
|
|
2770
3009
|
}
|
|
2771
|
-
|
|
2772
|
-
return this.
|
|
3010
|
+
acknowledgeHl7Results(body) {
|
|
3011
|
+
return this.p("acknowledge-hl7-results", body);
|
|
2773
3012
|
}
|
|
2774
|
-
|
|
2775
|
-
return this.
|
|
3013
|
+
acknowledgePrintableResults(body) {
|
|
3014
|
+
return this.p("acknowledge-printable-results", body);
|
|
2776
3015
|
}
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
// src/clients/vendors/OuraClient.ts
|
|
2780
|
-
var OuraClient = class extends BaseServiceClient {
|
|
2781
|
-
constructor(http) {
|
|
2782
|
-
super(http, "connectors");
|
|
3016
|
+
acknowledgeObservationResults(body) {
|
|
3017
|
+
return this.p("acknowledge-observation-results", body);
|
|
2783
3018
|
}
|
|
2784
|
-
|
|
2785
|
-
return this.
|
|
3019
|
+
buildResultsAck(body) {
|
|
3020
|
+
return this.p("build-results-ack", body);
|
|
2786
3021
|
}
|
|
2787
|
-
|
|
2788
|
-
return this.
|
|
3022
|
+
processPushedResult(body) {
|
|
3023
|
+
return this.p("process-pushed-result", body);
|
|
2789
3024
|
}
|
|
2790
|
-
|
|
2791
|
-
return this.
|
|
3025
|
+
requestCompendiums(body = {}) {
|
|
3026
|
+
return this.p("request-compendiums", body);
|
|
2792
3027
|
}
|
|
2793
|
-
|
|
2794
|
-
return this.
|
|
3028
|
+
requestCompendiumsOnDemand(body) {
|
|
3029
|
+
return this.p("request-compendiums-on-demand", body);
|
|
2795
3030
|
}
|
|
2796
|
-
|
|
2797
|
-
return this.
|
|
3031
|
+
retrieveCompendium(body) {
|
|
3032
|
+
return this.p("retrieve-compendium", body);
|
|
2798
3033
|
}
|
|
2799
|
-
|
|
2800
|
-
return this.
|
|
3034
|
+
retrieveAndExtractCompendium(body) {
|
|
3035
|
+
return this.p("retrieve-and-extract-compendium", body);
|
|
2801
3036
|
}
|
|
2802
|
-
|
|
2803
|
-
return this.
|
|
3037
|
+
acknowledgeCompendium(body) {
|
|
3038
|
+
return this.p("acknowledge-compendium", body);
|
|
2804
3039
|
}
|
|
2805
|
-
|
|
2806
|
-
return this.
|
|
3040
|
+
syncCompendiums(body = {}) {
|
|
3041
|
+
return this.p("sync-compendiums", body);
|
|
2807
3042
|
}
|
|
2808
|
-
|
|
2809
|
-
|
|
3043
|
+
};
|
|
3044
|
+
|
|
3045
|
+
// src/clients/connectors/SalesforceClient.ts
|
|
3046
|
+
var SalesforceClient = class extends ConnectorClient {
|
|
3047
|
+
constructor(http, credentials) {
|
|
3048
|
+
super(http, credentials);
|
|
2810
3049
|
}
|
|
2811
|
-
|
|
2812
|
-
|
|
3050
|
+
/** Execute a SOQL query and return matching records. */
|
|
3051
|
+
query(body) {
|
|
3052
|
+
return this.send("POST", "/connectors/salesforce/query", { body });
|
|
2813
3053
|
}
|
|
2814
|
-
|
|
2815
|
-
|
|
3054
|
+
/** Create a new Salesforce record of the given sObject type. */
|
|
3055
|
+
create(body) {
|
|
3056
|
+
return this.send("POST", "/connectors/salesforce/create", { body });
|
|
2816
3057
|
}
|
|
2817
|
-
|
|
2818
|
-
|
|
3058
|
+
/** Retrieve a single Salesforce record by sObject type and record ID. */
|
|
3059
|
+
get(body) {
|
|
3060
|
+
return this.send("POST", "/connectors/salesforce/get", { body });
|
|
2819
3061
|
}
|
|
2820
|
-
|
|
2821
|
-
return this.
|
|
3062
|
+
buildCaseDescription(body) {
|
|
3063
|
+
return this.send("POST", "/connectors/salesforce/build-case-description", { body });
|
|
2822
3064
|
}
|
|
2823
|
-
|
|
2824
|
-
return this.
|
|
3065
|
+
createAccount(body) {
|
|
3066
|
+
return this.send("POST", "/connectors/salesforce/create-account", { body });
|
|
2825
3067
|
}
|
|
2826
|
-
|
|
2827
|
-
return this.
|
|
3068
|
+
createCallLog(body) {
|
|
3069
|
+
return this.send("POST", "/connectors/salesforce/create-call-log", { body });
|
|
2828
3070
|
}
|
|
2829
|
-
|
|
2830
|
-
return this.
|
|
3071
|
+
createCampaign(body) {
|
|
3072
|
+
return this.send("POST", "/connectors/salesforce/create-campaign", { body });
|
|
2831
3073
|
}
|
|
2832
|
-
|
|
2833
|
-
return this.
|
|
3074
|
+
createCase(body) {
|
|
3075
|
+
return this.send("POST", "/connectors/salesforce/create-case", { body });
|
|
2834
3076
|
}
|
|
2835
|
-
|
|
2836
|
-
return this.
|
|
3077
|
+
createContact(body) {
|
|
3078
|
+
return this.send("POST", "/connectors/salesforce/create-contact", { body });
|
|
2837
3079
|
}
|
|
2838
|
-
|
|
2839
|
-
return this.
|
|
3080
|
+
createEvent(body) {
|
|
3081
|
+
return this.send("POST", "/connectors/salesforce/create-event", { body });
|
|
2840
3082
|
}
|
|
2841
|
-
|
|
2842
|
-
return this.
|
|
3083
|
+
createPatient(body) {
|
|
3084
|
+
return this.send("POST", "/connectors/salesforce/create-patient", { body });
|
|
2843
3085
|
}
|
|
2844
|
-
|
|
2845
|
-
return this.
|
|
3086
|
+
createSegment(body) {
|
|
3087
|
+
return this.send("POST", "/connectors/salesforce/create-segment", { body });
|
|
2846
3088
|
}
|
|
2847
|
-
|
|
2848
|
-
return this.
|
|
3089
|
+
deleteAccount(body) {
|
|
3090
|
+
return this.send("POST", "/connectors/salesforce/delete-account", { body });
|
|
2849
3091
|
}
|
|
2850
|
-
|
|
2851
|
-
return this.
|
|
3092
|
+
deleteCallLog(body) {
|
|
3093
|
+
return this.send("POST", "/connectors/salesforce/delete-call-log", { body });
|
|
2852
3094
|
}
|
|
2853
|
-
|
|
2854
|
-
return this.
|
|
3095
|
+
deleteCampaign(body) {
|
|
3096
|
+
return this.send("POST", "/connectors/salesforce/delete-campaign", { body });
|
|
2855
3097
|
}
|
|
2856
|
-
|
|
2857
|
-
return this.
|
|
3098
|
+
deleteCase(body) {
|
|
3099
|
+
return this.send("POST", "/connectors/salesforce/delete-case", { body });
|
|
2858
3100
|
}
|
|
2859
|
-
|
|
2860
|
-
return this.
|
|
3101
|
+
deleteEvent(body) {
|
|
3102
|
+
return this.send("POST", "/connectors/salesforce/delete-event", { body });
|
|
2861
3103
|
}
|
|
2862
|
-
|
|
2863
|
-
return this.
|
|
3104
|
+
deletePatient(body) {
|
|
3105
|
+
return this.send("POST", "/connectors/salesforce/delete-patient", { body });
|
|
2864
3106
|
}
|
|
2865
|
-
|
|
2866
|
-
return this.
|
|
3107
|
+
deleteSegment(body) {
|
|
3108
|
+
return this.send("POST", "/connectors/salesforce/delete-segment", { body });
|
|
2867
3109
|
}
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
// src/clients/vendors/PlaidClient.ts
|
|
2871
|
-
var PlaidClient = class extends BaseServiceClient {
|
|
2872
|
-
constructor(http) {
|
|
2873
|
-
super(http, "connectors");
|
|
3110
|
+
describe(body) {
|
|
3111
|
+
return this.send("POST", "/connectors/salesforce/describe", { body });
|
|
2874
3112
|
}
|
|
2875
|
-
|
|
2876
|
-
return this.send("POST", "/connectors/
|
|
3113
|
+
getAccount(body) {
|
|
3114
|
+
return this.send("POST", "/connectors/salesforce/get-account", { body });
|
|
2877
3115
|
}
|
|
2878
|
-
|
|
2879
|
-
return this.send("POST", "/connectors/
|
|
3116
|
+
getAccountByTenant(body) {
|
|
3117
|
+
return this.send("POST", "/connectors/salesforce/get-account-by-tenant", { body });
|
|
2880
3118
|
}
|
|
2881
|
-
|
|
2882
|
-
return this.send("POST", "/connectors/
|
|
3119
|
+
getAvailableSlots(body = {}) {
|
|
3120
|
+
return this.send("POST", "/connectors/salesforce/get-available-slots", { body });
|
|
2883
3121
|
}
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
// src/clients/vendors/AppleAuthClient.ts
|
|
2887
|
-
var AppleAuthClient = class extends BaseServiceClient {
|
|
2888
|
-
constructor(http) {
|
|
2889
|
-
super(http, "connectors");
|
|
3122
|
+
getCallLog(body) {
|
|
3123
|
+
return this.send("POST", "/connectors/salesforce/get-call-log", { body });
|
|
2890
3124
|
}
|
|
2891
|
-
|
|
2892
|
-
return this.send("POST", "/connectors/
|
|
3125
|
+
getCampaign(body) {
|
|
3126
|
+
return this.send("POST", "/connectors/salesforce/get-campaign", { body });
|
|
2893
3127
|
}
|
|
2894
|
-
|
|
2895
|
-
return this.send("POST", "/connectors/
|
|
3128
|
+
getCase(body) {
|
|
3129
|
+
return this.send("POST", "/connectors/salesforce/get-case", { body });
|
|
2896
3130
|
}
|
|
2897
|
-
|
|
2898
|
-
return this.send("POST", "/connectors/
|
|
3131
|
+
getConfiguration(body = {}) {
|
|
3132
|
+
return this.send("POST", "/connectors/salesforce/get-configuration", { body });
|
|
2899
3133
|
}
|
|
2900
|
-
}
|
|
2901
|
-
|
|
2902
|
-
// src/clients/vendors/ZocdocClient.ts
|
|
2903
|
-
var ZocdocClient = class extends BaseServiceClient {
|
|
2904
|
-
constructor(http) {
|
|
2905
|
-
super(http, "connectors");
|
|
3134
|
+
getContact(body = {}) {
|
|
3135
|
+
return this.send("POST", "/connectors/salesforce/get-contact", { body });
|
|
2906
3136
|
}
|
|
2907
|
-
|
|
2908
|
-
return this.send("POST",
|
|
3137
|
+
getEvent(body) {
|
|
3138
|
+
return this.send("POST", "/connectors/salesforce/get-event", { body });
|
|
2909
3139
|
}
|
|
2910
|
-
|
|
2911
|
-
return this.
|
|
3140
|
+
getHealthcareOrgIdByTenant(body) {
|
|
3141
|
+
return this.send("POST", "/connectors/salesforce/get-healthcare-org-id-by-tenant", { body });
|
|
2912
3142
|
}
|
|
2913
|
-
|
|
2914
|
-
return this.
|
|
3143
|
+
getNotScheduledEvents(body = {}) {
|
|
3144
|
+
return this.send("POST", "/connectors/salesforce/get-not-scheduled-events", { body });
|
|
2915
3145
|
}
|
|
2916
|
-
|
|
2917
|
-
return this.
|
|
3146
|
+
getPatient(body) {
|
|
3147
|
+
return this.send("POST", "/connectors/salesforce/get-patient", { body });
|
|
2918
3148
|
}
|
|
2919
|
-
|
|
2920
|
-
return this.
|
|
3149
|
+
getPatientByEmail(body) {
|
|
3150
|
+
return this.send("POST", "/connectors/salesforce/get-patient-by-email", { body });
|
|
2921
3151
|
}
|
|
2922
|
-
|
|
2923
|
-
return this.
|
|
3152
|
+
getPatientByPhone(body) {
|
|
3153
|
+
return this.send("POST", "/connectors/salesforce/get-patient-by-phone", { body });
|
|
2924
3154
|
}
|
|
2925
|
-
|
|
2926
|
-
return this.
|
|
3155
|
+
getSegment(body) {
|
|
3156
|
+
return this.send("POST", "/connectors/salesforce/get-segment", { body });
|
|
2927
3157
|
}
|
|
2928
|
-
|
|
2929
|
-
return this.
|
|
3158
|
+
listAccounts(body = {}) {
|
|
3159
|
+
return this.send("POST", "/connectors/salesforce/list-accounts", { body });
|
|
2930
3160
|
}
|
|
2931
|
-
|
|
2932
|
-
return this.
|
|
3161
|
+
listCallLogs(body = {}) {
|
|
3162
|
+
return this.send("POST", "/connectors/salesforce/list-call-logs", { body });
|
|
2933
3163
|
}
|
|
2934
|
-
|
|
2935
|
-
return this.
|
|
3164
|
+
listCampaigns(body = {}) {
|
|
3165
|
+
return this.send("POST", "/connectors/salesforce/list-campaigns", { body });
|
|
2936
3166
|
}
|
|
2937
|
-
|
|
2938
|
-
return this.
|
|
3167
|
+
listCases(body = {}) {
|
|
3168
|
+
return this.send("POST", "/connectors/salesforce/list-cases", { body });
|
|
2939
3169
|
}
|
|
2940
|
-
|
|
2941
|
-
return this.
|
|
3170
|
+
listEvents(body = {}) {
|
|
3171
|
+
return this.send("POST", "/connectors/salesforce/list-events", { body });
|
|
2942
3172
|
}
|
|
2943
|
-
|
|
2944
|
-
return this.
|
|
3173
|
+
listPatients(body = {}) {
|
|
3174
|
+
return this.send("POST", "/connectors/salesforce/list-patients", { body });
|
|
2945
3175
|
}
|
|
2946
|
-
|
|
2947
|
-
return this.
|
|
3176
|
+
listSegments(body = {}) {
|
|
3177
|
+
return this.send("POST", "/connectors/salesforce/list-segments", { body });
|
|
2948
3178
|
}
|
|
2949
|
-
|
|
2950
|
-
return this.
|
|
3179
|
+
scheduleEvent(body) {
|
|
3180
|
+
return this.send("POST", "/connectors/salesforce/schedule-event", { body });
|
|
2951
3181
|
}
|
|
2952
|
-
|
|
2953
|
-
return this.
|
|
3182
|
+
setAccountSenaiteId(body) {
|
|
3183
|
+
return this.send("POST", "/connectors/salesforce/set-account-senaite-id", { body });
|
|
2954
3184
|
}
|
|
2955
|
-
|
|
2956
|
-
return this.
|
|
3185
|
+
update(body) {
|
|
3186
|
+
return this.send("POST", "/connectors/salesforce/update", { body });
|
|
2957
3187
|
}
|
|
2958
|
-
|
|
2959
|
-
return this.
|
|
3188
|
+
updateAccount(body) {
|
|
3189
|
+
return this.send("POST", "/connectors/salesforce/update-account", { body });
|
|
2960
3190
|
}
|
|
2961
|
-
|
|
2962
|
-
return this.
|
|
3191
|
+
updateAccountAssets(body) {
|
|
3192
|
+
return this.send("POST", "/connectors/salesforce/update-account-assets", { body });
|
|
2963
3193
|
}
|
|
2964
|
-
|
|
2965
|
-
return this.
|
|
3194
|
+
updateCallLog(body) {
|
|
3195
|
+
return this.send("POST", "/connectors/salesforce/update-call-log", { body });
|
|
2966
3196
|
}
|
|
2967
|
-
|
|
2968
|
-
return this.
|
|
3197
|
+
updateCampaign(body) {
|
|
3198
|
+
return this.send("POST", "/connectors/salesforce/update-campaign", { body });
|
|
2969
3199
|
}
|
|
2970
|
-
|
|
2971
|
-
return this.
|
|
3200
|
+
updatePatient(body) {
|
|
3201
|
+
return this.send("POST", "/connectors/salesforce/update-patient", { body });
|
|
2972
3202
|
}
|
|
2973
|
-
|
|
2974
|
-
return this.
|
|
3203
|
+
updateSegment(body) {
|
|
3204
|
+
return this.send("POST", "/connectors/salesforce/update-segment", { body });
|
|
2975
3205
|
}
|
|
2976
|
-
|
|
2977
|
-
|
|
3206
|
+
};
|
|
3207
|
+
|
|
3208
|
+
// src/clients/connectors/ScrapflyClient.ts
|
|
3209
|
+
var ScrapflyClient = class extends ConnectorClient {
|
|
3210
|
+
constructor(http, credentials) {
|
|
3211
|
+
super(http, credentials);
|
|
2978
3212
|
}
|
|
2979
|
-
|
|
2980
|
-
return this.
|
|
3213
|
+
scrape(body) {
|
|
3214
|
+
return this.send("POST", "/connectors/scrapfly/scrape", { body });
|
|
2981
3215
|
}
|
|
2982
|
-
|
|
2983
|
-
return this.send("POST", "/connectors/
|
|
3216
|
+
getDocumentLinks(body) {
|
|
3217
|
+
return this.send("POST", "/connectors/scrapfly/get-document-links", { body });
|
|
2984
3218
|
}
|
|
2985
3219
|
};
|
|
2986
|
-
|
|
2987
|
-
// src/clients/
|
|
2988
|
-
var
|
|
2989
|
-
constructor(http) {
|
|
2990
|
-
super(http,
|
|
3220
|
+
|
|
3221
|
+
// src/clients/connectors/SenaiteClient.ts
|
|
3222
|
+
var SenaiteClient = class extends ConnectorClient {
|
|
3223
|
+
constructor(http, credentials) {
|
|
3224
|
+
super(http, credentials);
|
|
2991
3225
|
}
|
|
2992
|
-
|
|
2993
|
-
return this.send("POST", `/connectors/
|
|
3226
|
+
s(op, body = {}) {
|
|
3227
|
+
return this.send("POST", `/connectors/senaite/${op}`, { body });
|
|
2994
3228
|
}
|
|
2995
|
-
|
|
2996
|
-
return this.
|
|
3229
|
+
login(body = {}) {
|
|
3230
|
+
return this.s("login", body);
|
|
2997
3231
|
}
|
|
2998
|
-
|
|
2999
|
-
return this.
|
|
3232
|
+
logout(body = {}) {
|
|
3233
|
+
return this.s("logout", body);
|
|
3000
3234
|
}
|
|
3001
|
-
|
|
3002
|
-
return this.
|
|
3235
|
+
getCurrentUser(body = {}) {
|
|
3236
|
+
return this.s("get-current-user", body);
|
|
3003
3237
|
}
|
|
3004
|
-
|
|
3005
|
-
return this.
|
|
3238
|
+
getAllClients(body = {}) {
|
|
3239
|
+
return this.s("get-all-clients", body);
|
|
3006
3240
|
}
|
|
3007
|
-
|
|
3008
|
-
return this.
|
|
3241
|
+
getClientById(body) {
|
|
3242
|
+
return this.s("get-client-by-id", body);
|
|
3009
3243
|
}
|
|
3010
|
-
|
|
3011
|
-
return this.
|
|
3244
|
+
getClientByUid(body) {
|
|
3245
|
+
return this.s("get-client-by-uid", body);
|
|
3012
3246
|
}
|
|
3013
|
-
|
|
3014
|
-
return this.
|
|
3247
|
+
createClient(body) {
|
|
3248
|
+
return this.s("create-client", body);
|
|
3015
3249
|
}
|
|
3016
|
-
|
|
3017
|
-
return this.
|
|
3250
|
+
updateClient(body) {
|
|
3251
|
+
return this.s("update-client", body);
|
|
3018
3252
|
}
|
|
3019
|
-
|
|
3020
|
-
return this.
|
|
3253
|
+
deactivateClient(body) {
|
|
3254
|
+
return this.s("deactivate-client", body);
|
|
3021
3255
|
}
|
|
3022
|
-
|
|
3023
|
-
return this.
|
|
3256
|
+
getAllSamples(body = {}) {
|
|
3257
|
+
return this.s("get-all-samples", body);
|
|
3024
3258
|
}
|
|
3025
|
-
|
|
3026
|
-
return this.
|
|
3259
|
+
getSamplesByClientId(body) {
|
|
3260
|
+
return this.s("get-samples-by-client-id", body);
|
|
3027
3261
|
}
|
|
3028
|
-
|
|
3029
|
-
return this.
|
|
3262
|
+
getSampleById(body) {
|
|
3263
|
+
return this.s("get-sample-by-id", body);
|
|
3030
3264
|
}
|
|
3031
|
-
|
|
3032
|
-
return this.
|
|
3265
|
+
getSampleByUid(body) {
|
|
3266
|
+
return this.s("get-sample-by-uid", body);
|
|
3033
3267
|
}
|
|
3034
|
-
|
|
3035
|
-
return this.
|
|
3268
|
+
createSample(body) {
|
|
3269
|
+
return this.s("create-sample", body);
|
|
3036
3270
|
}
|
|
3037
|
-
|
|
3038
|
-
return this.
|
|
3271
|
+
updateSample(body) {
|
|
3272
|
+
return this.s("update-sample", body);
|
|
3039
3273
|
}
|
|
3040
|
-
|
|
3041
|
-
return this.
|
|
3274
|
+
cancelSample(body) {
|
|
3275
|
+
return this.s("cancel-sample", body);
|
|
3042
3276
|
}
|
|
3043
|
-
|
|
3044
|
-
return this.
|
|
3277
|
+
createContact(body) {
|
|
3278
|
+
return this.s("create-contact", body);
|
|
3045
3279
|
}
|
|
3046
|
-
|
|
3047
|
-
return this.
|
|
3280
|
+
getContactsForClient(body) {
|
|
3281
|
+
return this.s("get-contacts-for-client", body);
|
|
3048
3282
|
}
|
|
3049
|
-
|
|
3050
|
-
return this.
|
|
3283
|
+
getSampleTypes(body = {}) {
|
|
3284
|
+
return this.s("get-sample-types", body);
|
|
3051
3285
|
}
|
|
3052
|
-
|
|
3053
|
-
return this.
|
|
3286
|
+
createSampleType(body) {
|
|
3287
|
+
return this.s("create-sample-type", body);
|
|
3054
3288
|
}
|
|
3055
|
-
|
|
3056
|
-
return this.
|
|
3289
|
+
getAnalysisServices(body = {}) {
|
|
3290
|
+
return this.s("get-analysis-services", body);
|
|
3057
3291
|
}
|
|
3058
|
-
|
|
3059
|
-
return this.
|
|
3292
|
+
createAnalysisService(body) {
|
|
3293
|
+
return this.s("create-analysis-service", body);
|
|
3060
3294
|
}
|
|
3061
|
-
|
|
3062
|
-
return this.
|
|
3295
|
+
createDepartment(body) {
|
|
3296
|
+
return this.s("create-department", body);
|
|
3063
3297
|
}
|
|
3064
|
-
|
|
3065
|
-
return this.
|
|
3298
|
+
createAnalysisCategory(body) {
|
|
3299
|
+
return this.s("create-analysis-category", body);
|
|
3066
3300
|
}
|
|
3067
|
-
|
|
3068
|
-
return this.
|
|
3301
|
+
getCatalogs(body = {}) {
|
|
3302
|
+
return this.s("get-catalogs", body);
|
|
3069
3303
|
}
|
|
3070
|
-
|
|
3071
|
-
return this.
|
|
3304
|
+
search(body) {
|
|
3305
|
+
return this.s("search", body);
|
|
3072
3306
|
}
|
|
3073
|
-
|
|
3074
|
-
return this.
|
|
3307
|
+
ensureClientForTenant(body) {
|
|
3308
|
+
return this.s("ensure-senaite-client-for-tenant", body);
|
|
3075
3309
|
}
|
|
3076
3310
|
};
|
|
3077
3311
|
|
|
3078
|
-
// src/clients/
|
|
3079
|
-
var
|
|
3080
|
-
constructor(http) {
|
|
3081
|
-
super(http,
|
|
3082
|
-
}
|
|
3083
|
-
orderTestkit(body) {
|
|
3084
|
-
return this.send("POST", "/connectors/junction/order-testkit", { body });
|
|
3085
|
-
}
|
|
3086
|
-
registerTestkit(body) {
|
|
3087
|
-
return this.send("POST", "/connectors/junction/register-testkit", { body });
|
|
3312
|
+
// src/clients/connectors/SendGridClient.ts
|
|
3313
|
+
var SendGridClient = class extends ConnectorClient {
|
|
3314
|
+
constructor(http, credentials) {
|
|
3315
|
+
super(http, credentials);
|
|
3088
3316
|
}
|
|
3089
|
-
|
|
3090
|
-
|
|
3317
|
+
/** Send a transactional email via SendGrid. Supports static content and dynamic templates. */
|
|
3318
|
+
sendEmail(body) {
|
|
3319
|
+
return this.send("POST", "/connectors/sendgrid/send-email", { body });
|
|
3091
3320
|
}
|
|
3092
|
-
|
|
3093
|
-
|
|
3321
|
+
/** List SendGrid email templates. */
|
|
3322
|
+
listTemplates(body) {
|
|
3323
|
+
return this.send("POST", "/connectors/sendgrid/list-templates", { body });
|
|
3094
3324
|
}
|
|
3095
3325
|
};
|
|
3096
3326
|
|
|
3097
|
-
// src/clients/
|
|
3098
|
-
var SteadyMDClient = class extends
|
|
3099
|
-
constructor(http) {
|
|
3100
|
-
super(http,
|
|
3327
|
+
// src/clients/connectors/SteadyMDClient.ts
|
|
3328
|
+
var SteadyMDClient = class extends ConnectorClient {
|
|
3329
|
+
constructor(http, credentials) {
|
|
3330
|
+
super(http, credentials);
|
|
3101
3331
|
}
|
|
3102
3332
|
m(op, body = {}) {
|
|
3103
3333
|
return this.send("POST", `/connectors/steadymd/${op}`, { body });
|
|
@@ -3233,243 +3463,329 @@ var SteadyMDClient = class extends BaseServiceClient {
|
|
|
3233
3463
|
}
|
|
3234
3464
|
};
|
|
3235
3465
|
|
|
3236
|
-
// src/clients/
|
|
3237
|
-
var
|
|
3238
|
-
constructor(http) {
|
|
3239
|
-
super(http,
|
|
3466
|
+
// src/clients/connectors/StediClient.ts
|
|
3467
|
+
var StediClient = class extends ConnectorClient {
|
|
3468
|
+
constructor(http, credentials) {
|
|
3469
|
+
super(http, credentials);
|
|
3240
3470
|
}
|
|
3241
|
-
|
|
3242
|
-
|
|
3471
|
+
/** Check insurance eligibility via the Stedi 270/271 API. */
|
|
3472
|
+
checkEligibility(body) {
|
|
3473
|
+
return this.send("POST", "/connectors/stedi/check-eligibility", { body });
|
|
3243
3474
|
}
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
return this.
|
|
3475
|
+
/** Submit an X12 837 medical claim. */
|
|
3476
|
+
submitClaim(body) {
|
|
3477
|
+
return this.send("POST", "/connectors/stedi/submit-claim", { body });
|
|
3247
3478
|
}
|
|
3248
|
-
|
|
3249
|
-
|
|
3479
|
+
/** Verify a provider by NPI via NPPES (routed through Stedi). */
|
|
3480
|
+
verifyProvider(body) {
|
|
3481
|
+
return this.send("POST", "/connectors/stedi/verify-provider", { body });
|
|
3250
3482
|
}
|
|
3251
|
-
|
|
3252
|
-
return this.
|
|
3483
|
+
checkClaimStatus(body = {}) {
|
|
3484
|
+
return this.send("POST", "/connectors/stedi/check-claim-status", { body });
|
|
3253
3485
|
}
|
|
3254
|
-
|
|
3255
|
-
return this.
|
|
3486
|
+
checkCoordinationOfBenefits(body = {}) {
|
|
3487
|
+
return this.send("POST", "/connectors/stedi/check-coordination-of-benefits", { body });
|
|
3256
3488
|
}
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
return this.i("get-device", body);
|
|
3489
|
+
discoverInsurance(body = {}) {
|
|
3490
|
+
return this.send("POST", "/connectors/stedi/discover-insurance", { body });
|
|
3260
3491
|
}
|
|
3261
|
-
|
|
3262
|
-
return this.
|
|
3492
|
+
get835EraReport(body) {
|
|
3493
|
+
return this.send("POST", "/connectors/stedi/get-835-era-report", { body });
|
|
3263
3494
|
}
|
|
3264
|
-
|
|
3265
|
-
return this.
|
|
3495
|
+
getInsuranceDiscoveryResults(body) {
|
|
3496
|
+
return this.send("POST", "/connectors/stedi/get-insurance-discovery-results", { body });
|
|
3266
3497
|
}
|
|
3267
|
-
|
|
3268
|
-
return this.
|
|
3498
|
+
submitInstitutionalClaim(body = {}) {
|
|
3499
|
+
return this.send("POST", "/connectors/stedi/submit-institutional-claim", { body });
|
|
3500
|
+
}
|
|
3501
|
+
submitProfessionalClaim(body = {}) {
|
|
3502
|
+
return this.send("POST", "/connectors/stedi/submit-professional-claim", { body });
|
|
3503
|
+
}
|
|
3504
|
+
};
|
|
3505
|
+
|
|
3506
|
+
// src/clients/connectors/StripeClient.ts
|
|
3507
|
+
var StripeClient = class extends ConnectorClient {
|
|
3508
|
+
constructor(http, credentials) {
|
|
3509
|
+
super(http, credentials);
|
|
3510
|
+
}
|
|
3511
|
+
s(op, body) {
|
|
3512
|
+
return this.send("POST", `/connectors/stripe/${op}`, { body });
|
|
3513
|
+
}
|
|
3514
|
+
/** Create a Stripe PaymentIntent. Returns the client_secret for client-side confirmation. */
|
|
3515
|
+
createPaymentIntent(body) {
|
|
3516
|
+
return this.s("create-payment-intent", body);
|
|
3517
|
+
}
|
|
3518
|
+
/** Retrieve the status of an existing PaymentIntent. */
|
|
3519
|
+
getPaymentIntentStatus(body) {
|
|
3520
|
+
return this.s("get-payment-intent-status", body);
|
|
3521
|
+
}
|
|
3522
|
+
/** Create a Stripe Customer record. */
|
|
3523
|
+
createCustomer(body) {
|
|
3524
|
+
return this.s("create-customer", body);
|
|
3525
|
+
}
|
|
3526
|
+
/** Create a Stripe Subscription for an existing customer and price. */
|
|
3527
|
+
createSubscription(body) {
|
|
3528
|
+
return this.s("create-subscription", body);
|
|
3529
|
+
}
|
|
3530
|
+
/** Create a Stripe Checkout Session. */
|
|
3531
|
+
createSession(body) {
|
|
3532
|
+
return this.s("create-session", body);
|
|
3533
|
+
}
|
|
3534
|
+
/** List active Stripe products. */
|
|
3535
|
+
listProducts(body = {}) {
|
|
3536
|
+
return this.s("list-products", body);
|
|
3537
|
+
}
|
|
3538
|
+
/** Create a new Stripe Price for an existing product. */
|
|
3539
|
+
createCopayPrice(body) {
|
|
3540
|
+
return this.s("create-copay-price", body);
|
|
3541
|
+
}
|
|
3542
|
+
/** Verify that the configured Stripe credentials are valid. */
|
|
3543
|
+
verifyConnection(body = {}) {
|
|
3544
|
+
return this.s("verify-connection", body);
|
|
3545
|
+
}
|
|
3546
|
+
/** Validate a card payment method without charging it. */
|
|
3547
|
+
validateAndTokenizeCard(body) {
|
|
3548
|
+
return this.s("validate-and-tokenize-card", body);
|
|
3549
|
+
}
|
|
3550
|
+
/** Create a direct charge against a source or customer. */
|
|
3551
|
+
chargePaymentSession(body) {
|
|
3552
|
+
return this.s("charge-payment-session", body);
|
|
3553
|
+
}
|
|
3554
|
+
};
|
|
3555
|
+
|
|
3556
|
+
// src/clients/connectors/TwilioClient.ts
|
|
3557
|
+
var TwilioClient = class extends ConnectorClient {
|
|
3558
|
+
constructor(http, credentials) {
|
|
3559
|
+
super(http, credentials);
|
|
3560
|
+
}
|
|
3561
|
+
/** Send an SMS message via Twilio. */
|
|
3562
|
+
sendSms(body) {
|
|
3563
|
+
return this.send("POST", "/connectors/twilio/send-sms", { body });
|
|
3564
|
+
}
|
|
3565
|
+
/** Retrieve a specific Twilio message by SID. */
|
|
3566
|
+
getMessage(body) {
|
|
3567
|
+
return this.send("POST", "/connectors/twilio/get-message", { body });
|
|
3568
|
+
}
|
|
3569
|
+
/** List Twilio messages, optionally filtered by to/from/date. */
|
|
3570
|
+
listMessages(body) {
|
|
3571
|
+
return this.send("POST", "/connectors/twilio/list-messages", { body });
|
|
3572
|
+
}
|
|
3573
|
+
};
|
|
3574
|
+
|
|
3575
|
+
// src/clients/connectors/UberClient.ts
|
|
3576
|
+
var UberClient = class extends ConnectorClient {
|
|
3577
|
+
constructor(http, credentials) {
|
|
3578
|
+
super(http, credentials);
|
|
3579
|
+
}
|
|
3580
|
+
p(operation, body) {
|
|
3581
|
+
return this.send("POST", `/connectors/uber/${operation}`, { body });
|
|
3582
|
+
}
|
|
3583
|
+
createDelivery(body) {
|
|
3584
|
+
return this.p("create-delivery", body);
|
|
3585
|
+
}
|
|
3586
|
+
createQuote(body) {
|
|
3587
|
+
return this.p("create-quote", body);
|
|
3588
|
+
}
|
|
3589
|
+
getDeliveries(body = {}) {
|
|
3590
|
+
return this.p("get-deliveries", body);
|
|
3591
|
+
}
|
|
3592
|
+
getUndeliveredOrders(body = {}) {
|
|
3593
|
+
return this.p("get-undelivered-orders", body);
|
|
3269
3594
|
}
|
|
3270
|
-
|
|
3271
|
-
return this.
|
|
3595
|
+
getDelivery(body) {
|
|
3596
|
+
return this.p("get-delivery", body);
|
|
3272
3597
|
}
|
|
3273
|
-
|
|
3274
|
-
return this.
|
|
3598
|
+
updateDelivery(body) {
|
|
3599
|
+
return this.p("update-delivery", body);
|
|
3275
3600
|
}
|
|
3276
|
-
|
|
3277
|
-
return this.
|
|
3601
|
+
cancelDelivery(body) {
|
|
3602
|
+
return this.p("cancel-delivery", body);
|
|
3278
3603
|
}
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
return this.i("get-kit", body);
|
|
3604
|
+
findStores(body) {
|
|
3605
|
+
return this.p("find-stores", body);
|
|
3282
3606
|
}
|
|
3283
|
-
|
|
3284
|
-
|
|
3607
|
+
};
|
|
3608
|
+
|
|
3609
|
+
// src/clients/connectors/WhoopClient.ts
|
|
3610
|
+
var WhoopClient = class extends ConnectorClient {
|
|
3611
|
+
constructor(http, credentials) {
|
|
3612
|
+
super(http, credentials);
|
|
3285
3613
|
}
|
|
3286
|
-
|
|
3287
|
-
return this.
|
|
3614
|
+
w(op, body = {}) {
|
|
3615
|
+
return this.send("POST", `/connectors/whoop/${op}`, { body });
|
|
3288
3616
|
}
|
|
3289
|
-
|
|
3290
|
-
return this.
|
|
3617
|
+
buildAuthorizationUrl(body = {}) {
|
|
3618
|
+
return this.w("build-authorization-url", body);
|
|
3291
3619
|
}
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
return this.i("create-order", body);
|
|
3620
|
+
exchangeAuthorizationCode(body) {
|
|
3621
|
+
return this.w("exchange-authorization-code", body);
|
|
3295
3622
|
}
|
|
3296
|
-
|
|
3297
|
-
return this.
|
|
3623
|
+
refreshAccessToken(body) {
|
|
3624
|
+
return this.w("refresh-access-token", body);
|
|
3298
3625
|
}
|
|
3299
|
-
|
|
3300
|
-
return this.
|
|
3626
|
+
getPartnerToken(body = {}) {
|
|
3627
|
+
return this.w("get-partner-token", body);
|
|
3301
3628
|
}
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
return this.i("record-blood-pressure-reading", body);
|
|
3629
|
+
revokeUserOauthAccess(body = {}) {
|
|
3630
|
+
return this.w("revoke-user-oauth-access", body);
|
|
3305
3631
|
}
|
|
3306
|
-
|
|
3307
|
-
return this.
|
|
3632
|
+
getUserProfile(body = {}) {
|
|
3633
|
+
return this.w("get-user-profile", body);
|
|
3308
3634
|
}
|
|
3309
|
-
|
|
3310
|
-
return this.
|
|
3635
|
+
getUserBodyMeasurement(body = {}) {
|
|
3636
|
+
return this.w("get-user-body-measurement", body);
|
|
3311
3637
|
}
|
|
3312
|
-
|
|
3313
|
-
return this.
|
|
3638
|
+
getCycle(body) {
|
|
3639
|
+
return this.w("get-cycle", body);
|
|
3314
3640
|
}
|
|
3315
|
-
|
|
3316
|
-
return this.
|
|
3641
|
+
getCycles(body = {}) {
|
|
3642
|
+
return this.w("get-cycles", body);
|
|
3317
3643
|
}
|
|
3318
|
-
|
|
3319
|
-
return this.
|
|
3644
|
+
getAllCycles(body = {}) {
|
|
3645
|
+
return this.w("get-all-cycles", body);
|
|
3320
3646
|
}
|
|
3321
|
-
|
|
3322
|
-
return this.
|
|
3647
|
+
getSleep(body) {
|
|
3648
|
+
return this.w("get-sleep", body);
|
|
3323
3649
|
}
|
|
3324
|
-
|
|
3325
|
-
return this.
|
|
3650
|
+
getSleepForCycle(body) {
|
|
3651
|
+
return this.w("get-sleep-for-cycle", body);
|
|
3326
3652
|
}
|
|
3327
|
-
|
|
3328
|
-
return this.
|
|
3653
|
+
getSleeps(body = {}) {
|
|
3654
|
+
return this.w("get-sleeps", body);
|
|
3329
3655
|
}
|
|
3330
|
-
|
|
3331
|
-
return this.
|
|
3656
|
+
getAllSleeps(body = {}) {
|
|
3657
|
+
return this.w("get-all-sleeps", body);
|
|
3332
3658
|
}
|
|
3333
|
-
|
|
3334
|
-
return this.
|
|
3659
|
+
getRecoveryForCycle(body) {
|
|
3660
|
+
return this.w("get-recovery-for-cycle", body);
|
|
3335
3661
|
}
|
|
3336
|
-
|
|
3337
|
-
return this.
|
|
3662
|
+
getRecoveries(body = {}) {
|
|
3663
|
+
return this.w("get-recoveries", body);
|
|
3338
3664
|
}
|
|
3339
|
-
|
|
3340
|
-
return this.
|
|
3665
|
+
getAllRecoveries(body = {}) {
|
|
3666
|
+
return this.w("get-all-recoveries", body);
|
|
3341
3667
|
}
|
|
3342
|
-
|
|
3343
|
-
return this.
|
|
3668
|
+
getWorkout(body) {
|
|
3669
|
+
return this.w("get-workout", body);
|
|
3344
3670
|
}
|
|
3345
|
-
|
|
3346
|
-
return this.
|
|
3671
|
+
getWorkouts(body = {}) {
|
|
3672
|
+
return this.w("get-workouts", body);
|
|
3347
3673
|
}
|
|
3348
|
-
|
|
3349
|
-
return this.
|
|
3674
|
+
getAllWorkouts(body = {}) {
|
|
3675
|
+
return this.w("get-all-workouts", body);
|
|
3350
3676
|
}
|
|
3351
|
-
|
|
3352
|
-
return this.
|
|
3677
|
+
getActivityMapping(body = {}) {
|
|
3678
|
+
return this.w("get-activity-mapping", body);
|
|
3353
3679
|
}
|
|
3354
|
-
|
|
3355
|
-
return this.
|
|
3680
|
+
getLabRequisition(body = {}) {
|
|
3681
|
+
return this.w("get-lab-requisition", body);
|
|
3356
3682
|
}
|
|
3357
|
-
|
|
3358
|
-
return this.
|
|
3683
|
+
getServiceRequest(body) {
|
|
3684
|
+
return this.w("get-service-request", body);
|
|
3359
3685
|
}
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
return this.i("get-clinical-note", body);
|
|
3686
|
+
updateServiceRequestStatus(body) {
|
|
3687
|
+
return this.w("update-service-request-status", body);
|
|
3363
3688
|
}
|
|
3364
|
-
|
|
3365
|
-
return this.
|
|
3689
|
+
uploadDiagnosticReportResults(body) {
|
|
3690
|
+
return this.w("upload-diagnostic-report-results", body);
|
|
3366
3691
|
}
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
return this.i("list-site-inventory", body);
|
|
3692
|
+
addTestData(body) {
|
|
3693
|
+
return this.w("add-test-data", body);
|
|
3370
3694
|
}
|
|
3371
|
-
|
|
3372
|
-
return this.
|
|
3695
|
+
submitVitalsFromDevice(body) {
|
|
3696
|
+
return this.w("submit-vitals-from-device", body);
|
|
3373
3697
|
}
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3698
|
+
};
|
|
3699
|
+
|
|
3700
|
+
// src/clients/connectors/ZocdocClient.ts
|
|
3701
|
+
var ZocdocClient = class extends ConnectorClient {
|
|
3702
|
+
constructor(http, credentials) {
|
|
3703
|
+
super(http, credentials);
|
|
3377
3704
|
}
|
|
3378
|
-
|
|
3379
|
-
return this.
|
|
3705
|
+
z(op, body = {}) {
|
|
3706
|
+
return this.send("POST", `/connectors/zocdoc/${op}`, { body });
|
|
3380
3707
|
}
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
return this.i("create-item", body);
|
|
3708
|
+
getDirectoryNpis(body = {}) {
|
|
3709
|
+
return this.z("get-directory-npis", body);
|
|
3384
3710
|
}
|
|
3385
|
-
|
|
3386
|
-
return this.
|
|
3711
|
+
getProvidersByNpis(body) {
|
|
3712
|
+
return this.z("get-providers-by-npis", body);
|
|
3387
3713
|
}
|
|
3388
|
-
|
|
3389
|
-
return this.
|
|
3714
|
+
getProviderByNpi(body) {
|
|
3715
|
+
return this.z("get-provider-by-npi", body);
|
|
3390
3716
|
}
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
return this.i("get-patient-alert-config", body);
|
|
3717
|
+
searchProviderLocations(body) {
|
|
3718
|
+
return this.z("search-provider-locations", body);
|
|
3394
3719
|
}
|
|
3395
|
-
|
|
3396
|
-
return this.
|
|
3720
|
+
getProviderLocationById(body) {
|
|
3721
|
+
return this.z("get-provider-location-by-id", body);
|
|
3397
3722
|
}
|
|
3398
|
-
|
|
3399
|
-
return this.
|
|
3723
|
+
getMultipleLocationsAvailability(body) {
|
|
3724
|
+
return this.z("get-multiple-locations-availability", body);
|
|
3400
3725
|
}
|
|
3401
|
-
|
|
3402
|
-
return this.
|
|
3726
|
+
createAppointment(body) {
|
|
3727
|
+
return this.z("create-appointment", body);
|
|
3403
3728
|
}
|
|
3404
|
-
|
|
3405
|
-
return this.
|
|
3729
|
+
listAppointments(body = {}) {
|
|
3730
|
+
return this.z("list-appointments", body);
|
|
3406
3731
|
}
|
|
3407
|
-
|
|
3408
|
-
return this.
|
|
3732
|
+
getAppointmentById(body) {
|
|
3733
|
+
return this.z("get-appointment-by-id", body);
|
|
3409
3734
|
}
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
return this.i("register-webhooks", body);
|
|
3735
|
+
confirmAppointment(body) {
|
|
3736
|
+
return this.z("confirm-appointment", body);
|
|
3413
3737
|
}
|
|
3414
|
-
|
|
3415
|
-
return this.
|
|
3738
|
+
rescheduleAppointment(body) {
|
|
3739
|
+
return this.z("reschedule-appointment", body);
|
|
3416
3740
|
}
|
|
3417
|
-
|
|
3418
|
-
return this.
|
|
3741
|
+
cancelAppointment(body) {
|
|
3742
|
+
return this.z("cancel-appointment", body);
|
|
3419
3743
|
}
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
// src/clients/vendors/ScrapflyClient.ts
|
|
3423
|
-
var ScrapflyClient = class extends BaseServiceClient {
|
|
3424
|
-
constructor(http) {
|
|
3425
|
-
super(http, "connectors");
|
|
3744
|
+
getAppointmentParticipants(body) {
|
|
3745
|
+
return this.z("get-appointment-participants", body);
|
|
3426
3746
|
}
|
|
3427
|
-
|
|
3428
|
-
return this.
|
|
3747
|
+
updateAppointmentStatus(body) {
|
|
3748
|
+
return this.z("update-appointment-status", body);
|
|
3429
3749
|
}
|
|
3430
|
-
|
|
3431
|
-
return this.
|
|
3750
|
+
bookAndConfirmAppointment(body) {
|
|
3751
|
+
return this.z("book-and-confirm-appointment", body);
|
|
3432
3752
|
}
|
|
3433
|
-
}
|
|
3434
|
-
|
|
3435
|
-
// src/clients/vendors/UberClient.ts
|
|
3436
|
-
var UberClient = class extends BaseServiceClient {
|
|
3437
|
-
constructor(http) {
|
|
3438
|
-
super(http, "connectors");
|
|
3753
|
+
getInsurancePlans(body = {}) {
|
|
3754
|
+
return this.z("get-insurance-plans", body);
|
|
3439
3755
|
}
|
|
3440
|
-
|
|
3441
|
-
return this.
|
|
3756
|
+
getInsurancePlanById(body) {
|
|
3757
|
+
return this.z("get-insurance-plan-by-id", body);
|
|
3442
3758
|
}
|
|
3443
|
-
|
|
3444
|
-
return this.
|
|
3759
|
+
getProviderLocationInsuranceMappings(body) {
|
|
3760
|
+
return this.z("get-provider-location-insurance-mappings", body);
|
|
3445
3761
|
}
|
|
3446
|
-
|
|
3447
|
-
return this.
|
|
3762
|
+
updateProviderLocationInsuranceMappings(body) {
|
|
3763
|
+
return this.z("update-provider-location-insurance-mappings", body);
|
|
3448
3764
|
}
|
|
3449
|
-
|
|
3450
|
-
return this.
|
|
3765
|
+
getSchedulableEntities(body = {}) {
|
|
3766
|
+
return this.z("get-schedulable-entities", body);
|
|
3451
3767
|
}
|
|
3452
|
-
|
|
3453
|
-
return this.
|
|
3768
|
+
searchFacilities(body = {}) {
|
|
3769
|
+
return this.z("search-facilities", body);
|
|
3454
3770
|
}
|
|
3455
|
-
|
|
3456
|
-
return this.
|
|
3771
|
+
getFacilityById(body) {
|
|
3772
|
+
return this.z("get-facility-by-id", body);
|
|
3457
3773
|
}
|
|
3458
|
-
|
|
3459
|
-
return this.
|
|
3774
|
+
getProviderCalendarTimeslots(body) {
|
|
3775
|
+
return this.z("get-provider-calendar-timeslots", body);
|
|
3460
3776
|
}
|
|
3461
|
-
|
|
3462
|
-
return this.
|
|
3777
|
+
setProviderCalendarTimeslots(body) {
|
|
3778
|
+
return this.z("set-provider-calendar-timeslots", body);
|
|
3463
3779
|
}
|
|
3464
|
-
|
|
3465
|
-
return this.
|
|
3780
|
+
createAppointmentAttachment(body) {
|
|
3781
|
+
return this.send("POST", "/connectors/zocdoc/create-appointment-attachment", { body });
|
|
3466
3782
|
}
|
|
3467
3783
|
};
|
|
3468
3784
|
|
|
3469
|
-
// src/clients/
|
|
3470
|
-
var ZusClient = class extends
|
|
3471
|
-
constructor(http) {
|
|
3472
|
-
super(http,
|
|
3785
|
+
// src/clients/connectors/ZusClient.ts
|
|
3786
|
+
var ZusClient = class extends ConnectorClient {
|
|
3787
|
+
constructor(http, credentials) {
|
|
3788
|
+
super(http, credentials);
|
|
3473
3789
|
}
|
|
3474
3790
|
p(operation, body) {
|
|
3475
3791
|
return this.send("POST", `/connectors/zus/${operation}`, { body });
|
|
@@ -3500,42 +3816,47 @@ var ZusClient = class extends BaseServiceClient {
|
|
|
3500
3816
|
}
|
|
3501
3817
|
};
|
|
3502
3818
|
|
|
3503
|
-
// src/clients/
|
|
3504
|
-
|
|
3819
|
+
// src/clients/connectors/ConnectorsNamespace.ts
|
|
3820
|
+
function mode(value) {
|
|
3821
|
+
return value != null ? value : "sandbox";
|
|
3822
|
+
}
|
|
3823
|
+
var ConnectorsNamespace = class {
|
|
3505
3824
|
constructor(http) {
|
|
3506
|
-
this.
|
|
3507
|
-
this.
|
|
3508
|
-
this.
|
|
3509
|
-
this.
|
|
3510
|
-
this.
|
|
3511
|
-
this.
|
|
3512
|
-
this.
|
|
3513
|
-
this.
|
|
3514
|
-
this.
|
|
3515
|
-
this.googleAI = new GoogleAIClient(
|
|
3516
|
-
this.googlePlaces = new GooglePlacesClient(
|
|
3517
|
-
this.
|
|
3518
|
-
this.
|
|
3519
|
-
this.
|
|
3520
|
-
this.
|
|
3521
|
-
this.
|
|
3522
|
-
this.
|
|
3523
|
-
this.
|
|
3524
|
-
this.
|
|
3525
|
-
this.
|
|
3526
|
-
this.
|
|
3527
|
-
this.
|
|
3528
|
-
this.
|
|
3529
|
-
this.
|
|
3530
|
-
this.
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
this.
|
|
3535
|
-
this.
|
|
3536
|
-
this.
|
|
3537
|
-
this.uber = new UberClient(
|
|
3538
|
-
this.
|
|
3825
|
+
this.anthropic = new ConnectorFactory("anthropic", http, AnthropicClient, (c) => ({ api_key: c.api_key, mode: mode(c.mode) }));
|
|
3826
|
+
this.appleAuth = new ConnectorFactory("appleAuth", http, AppleAuthClient, (c) => ({ team_id: c.team_id, client_id: c.client_id, key_id: c.key_id, redirect_uri: c.redirect_uri, private_key: c.private_key }));
|
|
3827
|
+
this.athena = new ConnectorFactory("athena", http, AthenaHealthClient, (c) => ({ secret_key: c.secret_key, practice_id: c.practice_id, department_id: c.department_id, provider_id: c.provider_id, mode: mode(c.mode) }));
|
|
3828
|
+
this.cal = new ConnectorFactory("cal", http, CalClient, (c) => ({ api_key: c.api_key }));
|
|
3829
|
+
this.carequality = new ConnectorFactory("carequality", http, CarequalityClient, (c) => ({ api_key: c.api_key, initiator_url: c.initiator_url }));
|
|
3830
|
+
this.cms = new ConnectorFactory("cms", http, CmsClient, (c) => ({ api_key: c.api_key }));
|
|
3831
|
+
this.connecture = new ConnectorFactory("connecture", http, ConnectureClient, (c) => ({ basic_token: c.basic_token, client_key: c.client_key, client_secret: c.client_secret }));
|
|
3832
|
+
this.elevenlabs = new ConnectorFactory("elevenlabs", http, ElevenLabsClient, (c) => ({ api_key: c.api_key }));
|
|
3833
|
+
this.fedex = new ConnectorFactory("fedex", http, FedExClient, (c) => ({ client_id: c.client_id, client_secret: c.client_secret, account_number: c.account_number, mode: mode(c.mode) }));
|
|
3834
|
+
this.googleAI = new ConnectorFactory("googleAI", http, GoogleAIClient, (c) => ({ api_key: c.api_key }));
|
|
3835
|
+
this.googlePlaces = new ConnectorFactory("googlePlaces", http, GooglePlacesClient, (c) => ({ api_key: c.api_key, mode: mode(c.mode) }));
|
|
3836
|
+
this.grok = new ConnectorFactory("grok", http, GrokClient, (c) => ({ api_key: c.api_key }));
|
|
3837
|
+
this.healthie = new ConnectorFactory("healthie", http, HealthieClient, (c) => ({ secret_key: c.secret_key, mode: mode(c.mode), ...c.shard_id ? { shard_id: c.shard_id } : {} }));
|
|
3838
|
+
this.impilo = new ConnectorFactory("impilo", http, ImpiloClient, (c) => ({ api_key: c.api_key }));
|
|
3839
|
+
this.junction = new ConnectorFactory("junction", http, JunctionClient, (c) => ({ api_key: c.api_key }));
|
|
3840
|
+
this.nppes = new PublicConnectorFactory(http, NppesClient);
|
|
3841
|
+
this.openai = new ConnectorFactory("openai", http, OpenAIClient, (c) => ({ api_key: c.api_key }));
|
|
3842
|
+
this.oura = new ConnectorFactory("oura", http, OuraClient, (c) => ({ client_id: c.client_id, client_secret: c.client_secret, mode: mode(c.mode) }));
|
|
3843
|
+
this.plaid = new ConnectorFactory("plaid", http, PlaidClient, (c) => ({ client_id: c.client_id, secret: c.secret, template_id: c.template_id, mode: mode(c.mode) }));
|
|
3844
|
+
this.quest = new ConnectorFactory("quest", http, QuestClient, (c) => ({ client_id: c.client_id, client_secret: c.client_secret, mode: mode(c.mode) }));
|
|
3845
|
+
this.salesforce = new ConnectorFactory("salesforce", http, SalesforceClient, (c) => ({ client_id: c.client_id, client_secret: c.client_secret, username: c.username, password: c.password, mode: mode(c.mode) }));
|
|
3846
|
+
this.scrapfly = new ConnectorFactory("scrapfly", http, ScrapflyClient, (c) => ({ api_key: c.api_key }));
|
|
3847
|
+
this.senaite = new ConnectorFactory("senaite", http, SenaiteClient, (c) => ({ base_url: c.base_url, username: c.username, password: c.password }));
|
|
3848
|
+
this.sendgrid = new ConnectorFactory("sendgrid", http, SendGridClient, (c) => ({ api_key: c.api_key, mode: mode(c.mode) }));
|
|
3849
|
+
this.steadymd = new ConnectorFactory("steadymd", http, SteadyMDClient, (c) => {
|
|
3850
|
+
var _a;
|
|
3851
|
+
return { api_key: (_a = c.api_key) != null ? _a : c.token, mode: mode(c.mode), ...c.api_url ? { api_url: c.api_url } : {} };
|
|
3852
|
+
});
|
|
3853
|
+
this.stedi = new ConnectorFactory("stedi", http, StediClient, (c) => ({ api_key: c.api_key }));
|
|
3854
|
+
this.stripe = new ConnectorFactory("stripe", http, StripeClient, (c) => ({ secret_key: c.api_key }));
|
|
3855
|
+
this.twilio = new ConnectorFactory("twilio", http, TwilioClient, (c) => ({ account_sid: c.account_sid, auth_token: c.auth_token, from_number: c.from_number, mode: mode(c.mode) }));
|
|
3856
|
+
this.uber = new ConnectorFactory("uber", http, UberClient, (c) => ({ client_id: c.client_id, client_secret: c.client_secret, customer_id: c.customer_id, mode: mode(c.mode) }));
|
|
3857
|
+
this.whoop = new ConnectorFactory("whoop", http, WhoopClient, (c) => ({ client_id: c.client_id, client_secret: c.client_secret, mode: mode(c.mode) }));
|
|
3858
|
+
this.zocdoc = new ConnectorFactory("zocdoc", http, ZocdocClient, (c) => ({ api_key: c.api_key }));
|
|
3859
|
+
this.zus = new ConnectorFactory("zus", http, ZusClient, (c) => ({ client_id: c.client_id, client_secret: c.client_secret, mode: mode(c.mode) }));
|
|
3539
3860
|
}
|
|
3540
3861
|
};
|
|
3541
3862
|
|
|
@@ -3555,6 +3876,7 @@ var HCSDK = class {
|
|
|
3555
3876
|
() => this.state.tenantId
|
|
3556
3877
|
);
|
|
3557
3878
|
this.patient = new PatientClient(this.http);
|
|
3879
|
+
this.person = new PersonClient(this.http);
|
|
3558
3880
|
this.vitals = new VitalsClient(this.http);
|
|
3559
3881
|
this.diagnostics = new DiagnosticsClient(this.http);
|
|
3560
3882
|
this.provider = new ProviderClient(this.http);
|
|
@@ -3569,7 +3891,7 @@ var HCSDK = class {
|
|
|
3569
3891
|
() => this.state.tenantId
|
|
3570
3892
|
);
|
|
3571
3893
|
this.mcp = new MCPClient(this.http);
|
|
3572
|
-
this.
|
|
3894
|
+
this.connectors = new ConnectorsNamespace(this.http);
|
|
3573
3895
|
}
|
|
3574
3896
|
setAccessToken(token) {
|
|
3575
3897
|
this.state.accessToken = token;
|
|
@@ -3670,6 +3992,9 @@ export {
|
|
|
3670
3992
|
CalClient,
|
|
3671
3993
|
CarequalityClient,
|
|
3672
3994
|
CmsClient,
|
|
3995
|
+
ConnectorClient,
|
|
3996
|
+
ConnectorFactory,
|
|
3997
|
+
ConnectorsNamespace,
|
|
3673
3998
|
ConnectureClient,
|
|
3674
3999
|
ElevenLabsClient,
|
|
3675
4000
|
FedExClient,
|
|
@@ -3688,8 +4013,8 @@ export {
|
|
|
3688
4013
|
OpenAIClient,
|
|
3689
4014
|
OuraClient,
|
|
3690
4015
|
PlaidClient,
|
|
4016
|
+
PublicConnectorFactory,
|
|
3691
4017
|
QuestClient,
|
|
3692
|
-
QuestHl7Client,
|
|
3693
4018
|
SDKError,
|
|
3694
4019
|
SalesforceClient,
|
|
3695
4020
|
ScrapflyClient,
|
|
@@ -3700,7 +4025,6 @@ export {
|
|
|
3700
4025
|
StripeClient,
|
|
3701
4026
|
TwilioClient,
|
|
3702
4027
|
UberClient,
|
|
3703
|
-
VendorsNamespace,
|
|
3704
4028
|
WhoopClient,
|
|
3705
4029
|
ZocdocClient,
|
|
3706
4030
|
ZusClient,
|