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