@oystehr/sdk 3.0.4 → 3.0.6
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 +3 -3
- package/dist/cjs/config.d.ts +8 -0
- package/dist/cjs/index.cjs +856 -642
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.min.cjs +1 -1
- package/dist/cjs/index.min.cjs.map +1 -1
- package/dist/cjs/resources/classes/application.d.ts +8 -8
- package/dist/cjs/resources/classes/charge.d.ts +2 -2
- package/dist/cjs/resources/classes/conversation.d.ts +5 -5
- package/dist/cjs/resources/classes/developer.d.ts +6 -6
- package/dist/cjs/resources/classes/erx.d.ts +13 -5
- package/dist/cjs/resources/classes/fax.d.ts +30 -0
- package/dist/cjs/resources/classes/index.d.ts +2 -0
- package/dist/cjs/resources/classes/m2m.d.ts +7 -7
- package/dist/cjs/resources/classes/messaging.d.ts +1 -1
- package/dist/cjs/resources/classes/paymentMethod.d.ts +4 -4
- package/dist/cjs/resources/classes/project.d.ts +2 -2
- package/dist/cjs/resources/classes/rcm.d.ts +4 -4
- package/dist/cjs/resources/classes/role.d.ts +5 -5
- package/dist/cjs/resources/classes/secret.d.ts +4 -4
- package/dist/cjs/resources/classes/telemed.d.ts +2 -2
- package/dist/cjs/resources/classes/transactionalSMS.d.ts +1 -1
- package/dist/cjs/resources/classes/user.d.ts +7 -7
- package/dist/cjs/resources/classes/version.d.ts +1 -1
- package/dist/cjs/resources/classes/z3.d.ts +7 -7
- package/dist/cjs/resources/classes/zambda.d.ts +8 -8
- package/dist/cjs/resources/classes/zambdaLogStream.d.ts +3 -3
- package/dist/cjs/resources/types/ConversationAddParticipantParams.d.ts +1 -1
- package/dist/cjs/resources/types/ConversationCreateResponse.d.ts +1 -1
- package/dist/cjs/resources/types/ConversationRemoveParticipantParams.d.ts +1 -1
- package/dist/cjs/resources/types/ErxCancelOrderParams.d.ts +6 -0
- package/dist/cjs/resources/types/ErxCancelOrderResponse.d.ts +6 -0
- package/dist/cjs/resources/types/ErxCancelPrescriptionParams.d.ts +6 -0
- package/dist/cjs/resources/types/ErxCancelPrescriptionResponse.d.ts +6 -0
- package/dist/cjs/resources/types/FaxSendParams.d.ts +18 -0
- package/dist/cjs/resources/types/FaxSendResponse.d.ts +10 -0
- package/dist/cjs/resources/types/TelemedCreateMeetingParams.d.ts +1 -1
- package/dist/cjs/resources/types/TelemedCreateMeetingResponse.d.ts +1 -1
- package/dist/cjs/resources/types/index.d.ts +6 -0
- package/dist/cjs/tests/setup/constants.d.ts +1 -1
- package/dist/esm/client/client.js +14 -11
- package/dist/esm/client/client.js.map +1 -1
- package/dist/esm/config.d.ts +8 -0
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/index.min.js.map +1 -1
- package/dist/esm/resources/classes/application.d.ts +8 -8
- package/dist/esm/resources/classes/application.js +72 -56
- package/dist/esm/resources/classes/application.js.map +1 -1
- package/dist/esm/resources/classes/charge.d.ts +2 -2
- package/dist/esm/resources/classes/charge.js +28 -24
- package/dist/esm/resources/classes/charge.js.map +1 -1
- package/dist/esm/resources/classes/conversation.d.ts +5 -5
- package/dist/esm/resources/classes/conversation.js +59 -49
- package/dist/esm/resources/classes/conversation.js.map +1 -1
- package/dist/esm/resources/classes/developer.d.ts +6 -6
- package/dist/esm/resources/classes/developer.js +56 -44
- package/dist/esm/resources/classes/developer.js.map +1 -1
- package/dist/esm/resources/classes/erx.d.ts +13 -5
- package/dist/esm/resources/classes/erx.js +36 -16
- package/dist/esm/resources/classes/erx.js.map +1 -1
- package/dist/esm/resources/classes/fax.d.ts +30 -0
- package/dist/esm/resources/classes/fax.js +41 -0
- package/dist/esm/resources/classes/fax.js.map +1 -0
- package/dist/esm/resources/classes/fhir-ext.js +3 -0
- package/dist/esm/resources/classes/fhir-ext.js.map +1 -1
- package/dist/esm/resources/classes/index.d.ts +2 -0
- package/dist/esm/resources/classes/index.js +2 -0
- package/dist/esm/resources/classes/index.js.map +1 -1
- package/dist/esm/resources/classes/m2m.d.ts +7 -7
- package/dist/esm/resources/classes/m2m.js +65 -51
- package/dist/esm/resources/classes/m2m.js.map +1 -1
- package/dist/esm/resources/classes/messaging.d.ts +1 -1
- package/dist/esm/resources/classes/messaging.js +6 -4
- package/dist/esm/resources/classes/messaging.js.map +1 -1
- package/dist/esm/resources/classes/paymentMethod.d.ts +4 -4
- package/dist/esm/resources/classes/paymentMethod.js +72 -64
- package/dist/esm/resources/classes/paymentMethod.js.map +1 -1
- package/dist/esm/resources/classes/project.d.ts +2 -2
- package/dist/esm/resources/classes/project.js +18 -14
- package/dist/esm/resources/classes/project.js.map +1 -1
- package/dist/esm/resources/classes/rcm.d.ts +4 -4
- package/dist/esm/resources/classes/rcm.js +39 -33
- package/dist/esm/resources/classes/rcm.js.map +1 -1
- package/dist/esm/resources/classes/role.d.ts +5 -5
- package/dist/esm/resources/classes/role.js +46 -36
- package/dist/esm/resources/classes/role.js.map +1 -1
- package/dist/esm/resources/classes/secret.d.ts +4 -4
- package/dist/esm/resources/classes/secret.js +36 -28
- package/dist/esm/resources/classes/secret.js.map +1 -1
- package/dist/esm/resources/classes/telemed.d.ts +2 -2
- package/dist/esm/resources/classes/telemed.js +27 -23
- package/dist/esm/resources/classes/telemed.js.map +1 -1
- package/dist/esm/resources/classes/transactionalSMS.d.ts +1 -1
- package/dist/esm/resources/classes/transactionalSMS.js +18 -16
- package/dist/esm/resources/classes/transactionalSMS.js.map +1 -1
- package/dist/esm/resources/classes/user.d.ts +7 -7
- package/dist/esm/resources/classes/user.js +64 -50
- package/dist/esm/resources/classes/user.js.map +1 -1
- package/dist/esm/resources/classes/version.d.ts +1 -1
- package/dist/esm/resources/classes/version.js +6 -4
- package/dist/esm/resources/classes/version.js.map +1 -1
- package/dist/esm/resources/classes/z3.d.ts +7 -7
- package/dist/esm/resources/classes/z3.js +55 -43
- package/dist/esm/resources/classes/z3.js.map +1 -1
- package/dist/esm/resources/classes/zambda.d.ts +8 -8
- package/dist/esm/resources/classes/zambda.js +71 -55
- package/dist/esm/resources/classes/zambda.js.map +1 -1
- package/dist/esm/resources/classes/zambdaLogStream.d.ts +3 -3
- package/dist/esm/resources/classes/zambdaLogStream.js +27 -21
- package/dist/esm/resources/classes/zambdaLogStream.js.map +1 -1
- package/dist/esm/resources/types/ConversationAddParticipantParams.d.ts +1 -1
- package/dist/esm/resources/types/ConversationCreateResponse.d.ts +1 -1
- package/dist/esm/resources/types/ConversationRemoveParticipantParams.d.ts +1 -1
- package/dist/esm/resources/types/ErxCancelOrderParams.d.ts +6 -0
- package/dist/esm/resources/types/ErxCancelOrderResponse.d.ts +6 -0
- package/dist/esm/resources/types/ErxCancelPrescriptionParams.d.ts +6 -0
- package/dist/esm/resources/types/ErxCancelPrescriptionResponse.d.ts +6 -0
- package/dist/esm/resources/types/FaxSendParams.d.ts +18 -0
- package/dist/esm/resources/types/FaxSendResponse.d.ts +10 -0
- package/dist/esm/resources/types/TelemedCreateMeetingParams.d.ts +1 -1
- package/dist/esm/resources/types/TelemedCreateMeetingResponse.d.ts +1 -1
- package/dist/esm/resources/types/index.d.ts +6 -0
- package/dist/esm/tests/setup/constants.d.ts +1 -1
- package/package.json +4 -4
- package/src/client/client.ts +8 -3
- package/src/config.ts +8 -0
- package/src/resources/classes/application.ts +27 -19
- package/src/resources/classes/charge.ts +6 -4
- package/src/resources/classes/conversation.ts +15 -10
- package/src/resources/classes/developer.ts +18 -11
- package/src/resources/classes/erx.ts +33 -8
- package/src/resources/classes/fax.ts +41 -0
- package/src/resources/classes/fhir-ext.ts +3 -0
- package/src/resources/classes/index.ts +3 -0
- package/src/resources/classes/m2m.ts +21 -13
- package/src/resources/classes/messaging.ts +3 -2
- package/src/resources/classes/paymentMethod.ts +12 -8
- package/src/resources/classes/project.ts +6 -3
- package/src/resources/classes/rcm.ts +13 -9
- package/src/resources/classes/role.ts +15 -9
- package/src/resources/classes/secret.ts +12 -7
- package/src/resources/classes/telemed.ts +7 -7
- package/src/resources/classes/transactionalSMS.ts +3 -2
- package/src/resources/classes/user.ts +21 -12
- package/src/resources/classes/version.ts +3 -1
- package/src/resources/classes/z3.ts +19 -14
- package/src/resources/classes/zambda.ts +25 -15
- package/src/resources/classes/zambdaLogStream.ts +9 -8
- package/src/resources/types/ConversationAddParticipantParams.ts +1 -1
- package/src/resources/types/ConversationCreateResponse.ts +1 -1
- package/src/resources/types/ConversationRemoveParticipantParams.ts +1 -1
- package/src/resources/types/ErxCancelOrderParams.ts +8 -0
- package/src/resources/types/ErxCancelOrderResponse.ts +8 -0
- package/src/resources/types/ErxCancelPrescriptionParams.ts +8 -0
- package/src/resources/types/ErxCancelPrescriptionResponse.ts +8 -0
- package/src/resources/types/FaxSendParams.ts +20 -0
- package/src/resources/types/FaxSendResponse.ts +12 -0
- package/src/resources/types/TelemedCreateMeetingParams.ts +1 -1
- package/src/resources/types/TelemedCreateMeetingResponse.ts +1 -1
- package/src/resources/types/index.ts +6 -0
- /package/dist/cjs/tests/{common.d.ts → integrational/common.d.ts} +0 -0
- /package/dist/esm/tests/{common.d.ts → integrational/common.d.ts} +0 -0
package/dist/cjs/index.cjs
CHANGED
|
@@ -130,7 +130,7 @@ function isInternalClientRequest(request) {
|
|
|
130
130
|
}
|
|
131
131
|
function fetcher(baseUrlThunk, configThunk, path, methodParam) {
|
|
132
132
|
return (params, request) => __awaiter(this, void 0, void 0, function* () {
|
|
133
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
133
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
134
134
|
// this function supports multiple signatures. fetcher(baseUrl, path, method)(params, request) or fetcher(baseUrl, path, method)(request)
|
|
135
135
|
// or fetcher(baseUrl, path, method)(params) or fetcher(baseUrl, path, method)(). the types for this are handled by Client<Path, Methods>
|
|
136
136
|
// and this is the backend implementation behind it. the heuristic we're using is that if the first param is an object with an accessToken
|
|
@@ -190,13 +190,15 @@ function fetcher(baseUrlThunk, configThunk, path, methodParam) {
|
|
|
190
190
|
}, accessToken ? { Authorization: `Bearer ${accessToken}` } : {}, (requestCtx === null || requestCtx === void 0 ? void 0 : requestCtx.ifMatch) ? { 'If-Match': requestCtx.ifMatch } : {}, { 'x-oystehr-request-id': (_f = requestCtx === null || requestCtx === void 0 ? void 0 : requestCtx.requestId) !== null && _f !== void 0 ? _f : uuid.v4() });
|
|
191
191
|
const retryConfig = {
|
|
192
192
|
retries: (_h = (_g = config.retry) === null || _g === void 0 ? void 0 : _g.retries) !== null && _h !== void 0 ? _h : 3,
|
|
193
|
-
|
|
193
|
+
jitter: (_k = (_j = config.retry) === null || _j === void 0 ? void 0 : _j.jitter) !== null && _k !== void 0 ? _k : 20,
|
|
194
|
+
delay: (_m = (_l = config.retry) === null || _l === void 0 ? void 0 : _l.delay) !== null && _m !== void 0 ? _m : 100,
|
|
195
|
+
onRetry: (_o = config.retry) === null || _o === void 0 ? void 0 : _o.onRetry,
|
|
194
196
|
// Using array instead of set because the length is too short for uniqueness to be important
|
|
195
|
-
retryOn: [...((
|
|
197
|
+
retryOn: [...((_q = (_p = config.retry) === null || _p === void 0 ? void 0 : _p.retryOn) !== null && _q !== void 0 ? _q : []), ...STATUS_CODES_TO_RETRY],
|
|
196
198
|
};
|
|
197
199
|
retryConfig.retryOn.push(...STATUS_CODES_TO_RETRY);
|
|
198
|
-
return retry((
|
|
199
|
-
var
|
|
200
|
+
return retry(() => __awaiter(this, void 0, void 0, function* () {
|
|
201
|
+
var _r, _s, _t, _u, _v, _w;
|
|
200
202
|
const response = yield fetchImpl(new Request(url, {
|
|
201
203
|
method: method.toUpperCase(),
|
|
202
204
|
body,
|
|
@@ -207,21 +209,20 @@ function fetcher(baseUrlThunk, configThunk, path, methodParam) {
|
|
|
207
209
|
try {
|
|
208
210
|
responseJson =
|
|
209
211
|
responseBody &&
|
|
210
|
-
(((
|
|
211
|
-
((
|
|
212
|
+
(((_r = response.headers.get('content-type')) === null || _r === void 0 ? void 0 : _r.includes('application/json')) ||
|
|
213
|
+
((_s = response.headers.get('content-type')) === null || _s === void 0 ? void 0 : _s.includes('application/fhir+json')))
|
|
212
214
|
? JSON.parse(responseBody)
|
|
213
215
|
: null;
|
|
214
216
|
}
|
|
215
|
-
catch (
|
|
217
|
+
catch (_err) {
|
|
216
218
|
// ignore JSON.parse errors
|
|
217
219
|
responseJson = null;
|
|
218
220
|
}
|
|
219
221
|
const isError = !response.ok || response.status >= 400;
|
|
220
222
|
if (isError) {
|
|
221
|
-
headers['x-oystehr-fetch-attempts'] = `${attempt}`;
|
|
222
223
|
const errObj = {
|
|
223
|
-
message: (
|
|
224
|
-
code: (
|
|
224
|
+
message: (_v = (_u = (_t = responseJson === null || responseJson === void 0 ? void 0 : responseJson.message) !== null && _t !== void 0 ? _t : responseJson) !== null && _u !== void 0 ? _u : responseBody) !== null && _v !== void 0 ? _v : response.statusText,
|
|
225
|
+
code: (_w = responseJson === null || responseJson === void 0 ? void 0 : responseJson.code) !== null && _w !== void 0 ? _w : response.status,
|
|
225
226
|
response,
|
|
226
227
|
};
|
|
227
228
|
throw errObj;
|
|
@@ -258,6 +259,8 @@ function retry(work, config) {
|
|
|
258
259
|
if (!isRetryable) {
|
|
259
260
|
break;
|
|
260
261
|
}
|
|
262
|
+
const jitter = Math.floor(Math.random() * (config.jitter + 1));
|
|
263
|
+
yield new Promise((resolve) => setTimeout(resolve, config.delay + jitter));
|
|
261
264
|
if (config.onRetry && attempt !== ((_b = config.retries) !== null && _b !== void 0 ? _b : 0)) {
|
|
262
265
|
config.onRetry(attempt + 1);
|
|
263
266
|
}
|
|
@@ -319,62 +322,78 @@ function addParamsToSearch(params, search) {
|
|
|
319
322
|
class Application extends SDKResource {
|
|
320
323
|
constructor(config) {
|
|
321
324
|
super(config);
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Get a list of Applications. [Applications](https://docs.oystehr.com/services/app/applications/) provide authentication in front of the web and mobile apps you build on Oystehr.
|
|
328
|
+
*
|
|
329
|
+
* Access Policy Action: `App:ListAllApplications`
|
|
330
|
+
* Access Policy Resource: `App:Application`
|
|
331
|
+
*/
|
|
332
|
+
list(request) {
|
|
333
|
+
return this.request('/application', 'get')(request);
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Create a new Application. [Applications](https://docs.oystehr.com/services/app/applications/) provide authentication in front of the web and mobile apps you build on Oystehr.
|
|
337
|
+
*
|
|
338
|
+
* Access Policy Action: `App:CreateApplication`
|
|
339
|
+
* Access Policy Resource: `App:Application`
|
|
340
|
+
*/
|
|
341
|
+
create(params, request) {
|
|
342
|
+
return this.request('/application', 'post')(params, request);
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* Get the Application with the provided ID. [Applications](https://docs.oystehr.com/services/app/applications/) provide authentication in front of the web and mobile apps you build on Oystehr.
|
|
346
|
+
*
|
|
347
|
+
* Access Policy Action: `App:GetApplication`
|
|
348
|
+
* Access Policy Resource: `App:Application`
|
|
349
|
+
*/
|
|
350
|
+
get(params, request) {
|
|
351
|
+
return this.request('/application/{id}', 'get')(params, request);
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* Update the Application with the provided ID. [Applications](https://docs.oystehr.com/services/app/applications/) provide authentication in front of the web and mobile apps you build on Oystehr.
|
|
355
|
+
*
|
|
356
|
+
* Access Policy Action: `App:UpdateApplication`
|
|
357
|
+
* Access Policy Resource: `App:Application`
|
|
358
|
+
*/
|
|
359
|
+
update(params, request) {
|
|
360
|
+
return this.request('/application/{id}', 'patch')(params, request);
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Delete the Application with the provided ID. [Applications](https://docs.oystehr.com/services/app/applications/) provide authentication in front of the web and mobile apps you build on Oystehr.
|
|
364
|
+
*
|
|
365
|
+
* Access Policy Action: `App:DeleteApplication`
|
|
366
|
+
* Access Policy Resource: `App:Application`
|
|
367
|
+
*/
|
|
368
|
+
delete(params, request) {
|
|
369
|
+
return this.request('/application/{id}', 'delete')(params, request);
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Rotate client's secrete associated with an application.
|
|
373
|
+
*
|
|
374
|
+
* Access Policy Action: `App:RotateApplicationSecret`
|
|
375
|
+
* Access Policy Resource: `App:Application`
|
|
376
|
+
*/
|
|
377
|
+
rotateSecret(params, request) {
|
|
378
|
+
return this.request('/application/{id}/rotate-secret', 'post')(params, request);
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* Revokes user's refresh token issued for the application.
|
|
382
|
+
*
|
|
383
|
+
* Access Policy Action: `App:RevokeRefreshToken`
|
|
384
|
+
* Access Policy Resource: `App:Application`
|
|
385
|
+
*/
|
|
386
|
+
revokeRefreshToken(params, request) {
|
|
387
|
+
return this.request('/application/{id}/revoke-refresh-token', 'post')(params, request);
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Revokes user's access token issued for the application.
|
|
391
|
+
*
|
|
392
|
+
* Access Policy Action: `App:RevokeAccessToken`
|
|
393
|
+
* Access Policy Resource: `App:Application`
|
|
394
|
+
*/
|
|
395
|
+
revokeAccessToken(params, request) {
|
|
396
|
+
return this.request('/application/{id}/revoke-access-token', 'post')(params, request);
|
|
378
397
|
}
|
|
379
398
|
}
|
|
380
399
|
|
|
@@ -382,30 +401,34 @@ class Application extends SDKResource {
|
|
|
382
401
|
class Charge extends SDKResource {
|
|
383
402
|
constructor(config) {
|
|
384
403
|
super(config);
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* Charge patient's default payment method for a specified encounter or charge item.
|
|
407
|
+
*
|
|
408
|
+
* Access Policy Requirements:
|
|
409
|
+
* Action: `Payment:Issue`
|
|
410
|
+
* Access Policy Resource: `Payment:Charge`
|
|
411
|
+
* Actions: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
412
|
+
* Access Policy Resource: `FHIR:ChargeItem:*,`FHIR:PaymentReconciliation:*`
|
|
413
|
+
* Action: `FHIR:Read`
|
|
414
|
+
* Access Policy Resources: `FHIR:Patient:*,FHIR:Encounter:*,FHIR:Coverage:*`
|
|
415
|
+
*/
|
|
416
|
+
issue(params, request) {
|
|
417
|
+
return this.request('/payment/charge/issue', 'post')(params, request);
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* Retrieve charge status for a specified encounter or charge item.
|
|
421
|
+
*
|
|
422
|
+
* Access Policy Requirements:
|
|
423
|
+
* Action: `Payment:Status`
|
|
424
|
+
* Access Policy Resource: `Payment:Charge`
|
|
425
|
+
* Actions: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
426
|
+
* Access Policy Resource: `FHIR:ChargeItem:*,`FHIR:PaymentReconciliation:*`
|
|
427
|
+
* Action: `FHIR:Read`
|
|
428
|
+
* Access Policy Resources: `FHIR:Patient:*,FHIR:Encounter:*,FHIR:Coverage:*`
|
|
429
|
+
*/
|
|
430
|
+
status(params, request) {
|
|
431
|
+
return this.request('/payment/charge/status', 'post')(params, request);
|
|
409
432
|
}
|
|
410
433
|
}
|
|
411
434
|
|
|
@@ -447,55 +470,65 @@ class Conversation extends SDKResource {
|
|
|
447
470
|
* @returns conversationId
|
|
448
471
|
*/
|
|
449
472
|
this.getConversationIdFromEncounter = getConversationIdFromEncounter;
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* Create a new Conversation. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
476
|
+
*
|
|
477
|
+
* Access Policy Requirements:
|
|
478
|
+
* Action: `Messaging:CreateConversation`
|
|
479
|
+
* Access Policy Resource: `Messaging:Conversation`
|
|
480
|
+
* Action: `FHIR:Create`
|
|
481
|
+
* Access Policy Resource: `FHIR:Encounter`
|
|
482
|
+
* Action: `FHIR:Update`
|
|
483
|
+
* Access Policy Resource: `FHIR:Encounter`
|
|
484
|
+
*/
|
|
485
|
+
create(params, request) {
|
|
486
|
+
return this.request('/messaging/conversation', 'post')(params, request);
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
* Get a Conversation Token. Conversation Tokens are used to join the Conversation with the Twilio Conversations SDKs. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
490
|
+
*
|
|
491
|
+
* Access Policy Action: `Messaging:GetConversationToken`
|
|
492
|
+
* Access Policy Resource: `Messaging:Conversation`.
|
|
493
|
+
*/
|
|
494
|
+
getToken(request) {
|
|
495
|
+
return this.request('/messaging/conversation/token', 'get')(request);
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* Add a participant to a Conversation. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
499
|
+
*
|
|
500
|
+
* Access Policy Requirements:
|
|
501
|
+
* Action: `Messaging:ConversationAddParticipant`
|
|
502
|
+
* Access Policy Resource: `Messaging:Conversation`
|
|
503
|
+
* Action: `FHIR:Read`
|
|
504
|
+
* Access Policy Resource: `FHIR:Encounter`
|
|
505
|
+
* Action: `FHIR:Update`
|
|
506
|
+
* Access Policy Resource: `FHIR:Encounter`
|
|
507
|
+
*/
|
|
508
|
+
addParticipant(params, request) {
|
|
509
|
+
return this.request('/messaging/conversation/{conversationId}/participant', 'post')(params, request);
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* Remove a participant from a Conversation. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
513
|
+
*
|
|
514
|
+
* Access Policy Requirements:
|
|
515
|
+
* Action: `Messaging:ConversationRemoveParticipant`
|
|
516
|
+
* Access Policy Resource: `Messaging:Conversation`
|
|
517
|
+
* Action: `FHIR:Read`
|
|
518
|
+
* Access Policy Resource: `FHIR:Patient`, `FHIR:Practitioner`, or `FHIR:RelatedPerson`
|
|
519
|
+
*/
|
|
520
|
+
removeParticipant(params, request) {
|
|
521
|
+
return this.request('/messaging/conversation/{conversationId}/participant', 'delete')(params, request);
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* Send a message to a Conversation. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
525
|
+
*
|
|
526
|
+
* Access Policy Requirements:
|
|
527
|
+
* Action: `Messaging:ConversationSendMessage`
|
|
528
|
+
* Access Policy Resource: `Messaging:Conversation`
|
|
529
|
+
*/
|
|
530
|
+
message(params, request) {
|
|
531
|
+
return this.request('/messaging/conversation/{conversationId}/message', 'post')(params, request);
|
|
499
532
|
}
|
|
500
533
|
}
|
|
501
534
|
|
|
@@ -503,50 +536,62 @@ class Conversation extends SDKResource {
|
|
|
503
536
|
class Developer extends SDKResource {
|
|
504
537
|
constructor(config) {
|
|
505
538
|
super(config);
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* Get the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
542
|
+
*
|
|
543
|
+
* Access Policy Action: `IAM:GetDeveloper`
|
|
544
|
+
* Access Policy Resource: `IAM:Developer`
|
|
545
|
+
*/
|
|
546
|
+
get(params, request) {
|
|
547
|
+
return this.request('/developer/{id}', 'get')(params, request);
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* Update the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
551
|
+
*
|
|
552
|
+
* Access Policy Action: `IAM:UpdateDeveloper`
|
|
553
|
+
* Access Policy Resource: `IAM:Developer`
|
|
554
|
+
*/
|
|
555
|
+
update(params, request) {
|
|
556
|
+
return this.request('/developer/{id}', 'patch')(params, request);
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* Remove the Developer with the provided ID from the project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
560
|
+
*
|
|
561
|
+
* Access Policy Action: `IAM:RemoveDeveloper`
|
|
562
|
+
* Access Policy Resource: `IAM:Developer`
|
|
563
|
+
*/
|
|
564
|
+
delete(params, request) {
|
|
565
|
+
return this.request('/developer/{id}', 'delete')(params, request);
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* Invite a new Developer to the Project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
569
|
+
*
|
|
570
|
+
* Access Policy Action: `IAM:InviteDeveloper`
|
|
571
|
+
* Access Policy Resource: `IAM:Developer`
|
|
572
|
+
*/
|
|
573
|
+
invite(params, request) {
|
|
574
|
+
return this.request('/developer/invite', 'post')(params, request);
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_developer-v2-list) instead.
|
|
578
|
+
*
|
|
579
|
+
* Get a list of all Developers who are part of the Project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
580
|
+
*
|
|
581
|
+
* Access Policy Action: `IAM:ListAllDevelopers`
|
|
582
|
+
* Access Policy Resource: `IAM:Developer`
|
|
583
|
+
*/
|
|
584
|
+
list(request) {
|
|
585
|
+
return this.request('/developer', 'get')(request);
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* Get Developers in the Project with pagination, sort, sort Order and filtering. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
589
|
+
*
|
|
590
|
+
* Access Policy Action: `Project:ListAllUsers`
|
|
591
|
+
* Access Policy Resource: `Project:Settings`
|
|
592
|
+
*/
|
|
593
|
+
listV2(params, request) {
|
|
594
|
+
return this.request('/developer/v2/list', 'get')(params, request);
|
|
550
595
|
}
|
|
551
596
|
}
|
|
552
597
|
|
|
@@ -554,22 +599,79 @@ class Developer extends SDKResource {
|
|
|
554
599
|
class Erx extends SDKResource {
|
|
555
600
|
constructor(config) {
|
|
556
601
|
super(config);
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* Retrieve patient properties from FHIR service and sync them with eRx service
|
|
605
|
+
*/
|
|
606
|
+
syncPatient(params, request) {
|
|
607
|
+
return this.request('/erx/sync-patient/{patientId}', 'post')(params, request);
|
|
608
|
+
}
|
|
609
|
+
/**
|
|
610
|
+
* Search for allergies
|
|
611
|
+
*/
|
|
612
|
+
allergySearch(params, request) {
|
|
613
|
+
return this.request('/erx/allergy/search', 'get')(params, request);
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* Cancel photon order
|
|
617
|
+
*/
|
|
618
|
+
cancelOrder(params, request) {
|
|
619
|
+
return this.request('/erx/cancel-order', 'post')(params, request);
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* Cancel photon prescription
|
|
623
|
+
*/
|
|
624
|
+
cancelPrescription(params, request) {
|
|
625
|
+
return this.request('/erx/cancel-prescription', 'post')(params, request);
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* Search for medications. Provide at least one of code or name filters
|
|
629
|
+
*/
|
|
630
|
+
medicationSearch(params, request) {
|
|
631
|
+
return this.request('/erx/medication/search', 'get')(params, request);
|
|
632
|
+
}
|
|
633
|
+
/**
|
|
634
|
+
* Search for medications. Provide at least one of code or name filters
|
|
635
|
+
*/
|
|
636
|
+
medicationSearchV2(params, request) {
|
|
637
|
+
return this.request('/erx/v2/medication/search', 'get')(params, request);
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
642
|
+
class Fax extends SDKResource {
|
|
643
|
+
constructor(config) {
|
|
644
|
+
super(config);
|
|
645
|
+
}
|
|
646
|
+
/**
|
|
647
|
+
* Offboard a fax number. Oystehr's [offboard](https://docs.oystehr.com/services/fax/number/) feature makes it easy to stop using the fax service and release the project's assigned fax number with a single API call. Please note there is no way to guarantee getting the same number back again, so if you think this can break your project in any way we recommend not offboarding and avoid sending faxes until you're sure.
|
|
648
|
+
*
|
|
649
|
+
* Access Policy Requirements:
|
|
650
|
+
* Action: `Fax:Offboard`
|
|
651
|
+
* Access Policy Resource: `Fax:Number`
|
|
652
|
+
*/
|
|
653
|
+
offboard(request) {
|
|
654
|
+
return this.request('/fax/offboard', 'post')(request);
|
|
655
|
+
}
|
|
656
|
+
/**
|
|
657
|
+
* Onboard a fax number. Oystehr's [onboard](https://docs.oystehr.com/services/fax/number/) feature makes it easy to start using the fax service and purchase a new fax number for your project with a single API call.
|
|
658
|
+
*
|
|
659
|
+
* Access Policy Requirements:
|
|
660
|
+
* Action: `Fax:Onboard`
|
|
661
|
+
* Access Policy Resource: `Fax:Number`
|
|
662
|
+
*/
|
|
663
|
+
onboard(request) {
|
|
664
|
+
return this.request('/fax/onboard', 'post')(request);
|
|
665
|
+
}
|
|
666
|
+
/**
|
|
667
|
+
* Send a fax. Oystehr's [fax sending](https://docs.oystehr.com/services/fax/send/) feature makes it easy to send a fax to a chosen recipient with a single API call. You can use this feature to send referrals, medical records, prescriptions, and other documents that require fax transmission e.g. for HIPAA compliance.
|
|
668
|
+
*
|
|
669
|
+
* Access Policy Requirements:
|
|
670
|
+
* Action: `Fax:Send`
|
|
671
|
+
* Access Policy Resource: `Fax:Fax`
|
|
672
|
+
*/
|
|
673
|
+
send(params, request) {
|
|
674
|
+
return this.request('/fax/send', 'post')(params, request);
|
|
573
675
|
}
|
|
574
676
|
}
|
|
575
677
|
|
|
@@ -651,6 +753,9 @@ function batchInputRequestToBundleEntryItem(request) {
|
|
|
651
753
|
return { name, value };
|
|
652
754
|
})
|
|
653
755
|
.reduce((acc, { name, value }) => {
|
|
756
|
+
if (!name) {
|
|
757
|
+
return acc;
|
|
758
|
+
}
|
|
654
759
|
if (!acc[name]) {
|
|
655
760
|
acc[name] = [];
|
|
656
761
|
}
|
|
@@ -772,57 +877,71 @@ class Fhir extends SDKResource {
|
|
|
772
877
|
class M2m extends SDKResource {
|
|
773
878
|
constructor(config) {
|
|
774
879
|
super(config);
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
880
|
+
}
|
|
881
|
+
/**
|
|
882
|
+
* DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_m2m-v2-list) instead.
|
|
883
|
+
*
|
|
884
|
+
* Get a list of all M2M Clients. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
|
|
885
|
+
*
|
|
886
|
+
* Access Policy Action: `App:ListAllM2MClients`
|
|
887
|
+
* Access Policy Resource: `IAM:M2MClient`
|
|
888
|
+
*/
|
|
889
|
+
list(request) {
|
|
890
|
+
return this.request('/m2m', 'get')(request);
|
|
891
|
+
}
|
|
892
|
+
/**
|
|
893
|
+
* Create a new M2M Client. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
|
|
894
|
+
*
|
|
895
|
+
* Access Policy Action: `App:CreateM2MClient`
|
|
896
|
+
* Access Policy Resource: `IAM:M2MClient`
|
|
897
|
+
*/
|
|
898
|
+
create(params, request) {
|
|
899
|
+
return this.request('/m2m', 'post')(params, request);
|
|
900
|
+
}
|
|
901
|
+
/**
|
|
902
|
+
* Get the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
|
|
903
|
+
*
|
|
904
|
+
* Access Policy Action: `App:GetM2MClient`
|
|
905
|
+
* Access Policy Resource: `IAM:M2MClient`
|
|
906
|
+
*/
|
|
907
|
+
get(params, request) {
|
|
908
|
+
return this.request('/m2m/{id}', 'get')(params, request);
|
|
909
|
+
}
|
|
910
|
+
/**
|
|
911
|
+
* Update the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
|
|
912
|
+
*
|
|
913
|
+
* Access Policy Action: `App:UpdateM2MClient`
|
|
914
|
+
* Access Policy Resource: `IAM:M2MClient`
|
|
915
|
+
*/
|
|
916
|
+
update(params, request) {
|
|
917
|
+
return this.request('/m2m/{id}', 'patch')(params, request);
|
|
918
|
+
}
|
|
919
|
+
/**
|
|
920
|
+
* Delete the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
|
|
921
|
+
*
|
|
922
|
+
* Access Policy Action: `App:DeleteM2MClient`
|
|
923
|
+
* Access Policy Resource: `IAM:M2MClient`
|
|
924
|
+
*/
|
|
925
|
+
delete(params, request) {
|
|
926
|
+
return this.request('/m2m/{id}', 'delete')(params, request);
|
|
927
|
+
}
|
|
928
|
+
/**
|
|
929
|
+
* Rotate the client secret for the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
|
|
930
|
+
*
|
|
931
|
+
* Access Policy Action: `App:RotateM2MClientSecret`
|
|
932
|
+
* Access Policy Resource: `IAM:M2MClient`
|
|
933
|
+
*/
|
|
934
|
+
rotateSecret(params, request) {
|
|
935
|
+
return this.request('/m2m/{id}/rotate-secret', 'post')(params, request);
|
|
936
|
+
}
|
|
937
|
+
/**
|
|
938
|
+
* Get M2M clients in the Project with pagination, sort, sort Order and filtering. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
|
|
939
|
+
*
|
|
940
|
+
* Access Policy Action: `App:ListAllM2MClients`
|
|
941
|
+
* Access Policy Resource: `IAM:M2MClient`
|
|
942
|
+
*/
|
|
943
|
+
listV2(params, request) {
|
|
944
|
+
return this.request('/m2m/v2/list', 'get')(params, request);
|
|
826
945
|
}
|
|
827
946
|
}
|
|
828
947
|
|
|
@@ -830,10 +949,12 @@ class M2m extends SDKResource {
|
|
|
830
949
|
class Messaging extends SDKResource {
|
|
831
950
|
constructor(config) {
|
|
832
951
|
super(config);
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
952
|
+
}
|
|
953
|
+
/**
|
|
954
|
+
* Get an information about the Messaging services configuration. This information includes phone number, phone number type and also rate limits of each service.
|
|
955
|
+
*/
|
|
956
|
+
getMessagingConfig(request) {
|
|
957
|
+
return this.request('/messaging/config', 'get')(request);
|
|
837
958
|
}
|
|
838
959
|
}
|
|
839
960
|
|
|
@@ -841,70 +962,78 @@ class Messaging extends SDKResource {
|
|
|
841
962
|
class PaymentMethod extends SDKResource {
|
|
842
963
|
constructor(config) {
|
|
843
964
|
super(config);
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
965
|
+
}
|
|
966
|
+
/**
|
|
967
|
+
* Enter a new credit card or other payment method for the user.
|
|
968
|
+
*
|
|
969
|
+
* Access Policy Requirements:
|
|
970
|
+
* Action: `Payment:Setup`
|
|
971
|
+
* Access Policy Resource: `Payment:PaymentMethod`
|
|
972
|
+
* Actions: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
973
|
+
* Access Policy Resource: `FHIR:Coverage:*`
|
|
974
|
+
* Action: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
975
|
+
* Access Policy Resource: `FHIR:Account:*`
|
|
976
|
+
*
|
|
977
|
+
* Also need to be able to read the patients' details. For example:
|
|
978
|
+
* Action: `FHIR:Read`
|
|
979
|
+
* Access Policy Resource: `FHIR:Patient`
|
|
980
|
+
*/
|
|
981
|
+
setUp(params, request) {
|
|
982
|
+
return this.request('/payment/payment-method/setup', 'post')(params, request);
|
|
983
|
+
}
|
|
984
|
+
/**
|
|
985
|
+
* Set a specified payment method for the user as default.
|
|
986
|
+
*
|
|
987
|
+
* Access Policy Requirements:
|
|
988
|
+
* Action: `Payment:SetDefault`
|
|
989
|
+
* Access Policy Resource: `Payment:PaymentMethod`
|
|
990
|
+
* Actions: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
991
|
+
* Access Policy Resource: `FHIR:Coverage:*`
|
|
992
|
+
* Action: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
993
|
+
* Access Policy Resource: `FHIR:Account:*`
|
|
994
|
+
*
|
|
995
|
+
* Also need to be able to read the patients' details. For example:
|
|
996
|
+
* Action: `FHIR:Read`
|
|
997
|
+
* Access Policy Resource: `FHIR:Patient`
|
|
998
|
+
*/
|
|
999
|
+
setDefault(params, request) {
|
|
1000
|
+
return this.request('/payment/payment-method/set-default', 'post')(params, request);
|
|
1001
|
+
}
|
|
1002
|
+
/**
|
|
1003
|
+
* Delete a specified payment method for the beneficiary.
|
|
1004
|
+
*
|
|
1005
|
+
* Access Policy Requirements:
|
|
1006
|
+
* Action: `Payment:Delete`
|
|
1007
|
+
* Access Policy Resource: `Payment:PaymentMethod`
|
|
1008
|
+
* Actions: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
1009
|
+
* Access Policy Resource: `FHIR:Coverage:*`
|
|
1010
|
+
* Action: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
1011
|
+
* Access Policy Resource: `FHIR:Account:*`
|
|
1012
|
+
*
|
|
1013
|
+
* Also need to be able to read the patients' details. For example:
|
|
1014
|
+
* Action: `FHIR:Read`
|
|
1015
|
+
* Access Policy Resource: `FHIR:Patient`
|
|
1016
|
+
*/
|
|
1017
|
+
delete(params, request) {
|
|
1018
|
+
return this.request('/payment/payment-method', 'delete')(params, request);
|
|
1019
|
+
}
|
|
1020
|
+
/**
|
|
1021
|
+
* List all payment methods for the patient.
|
|
1022
|
+
*
|
|
1023
|
+
* Access Policy Requirements:
|
|
1024
|
+
* Action: `Payment:Setup`
|
|
1025
|
+
* Access Policy Resource: `Payment:PaymentMethod`
|
|
1026
|
+
* Actions: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
1027
|
+
* Access Policy Resource: `FHIR:Coverage:*`
|
|
1028
|
+
* Action: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
1029
|
+
* Access Policy Resource: `FHIR:Account:*`
|
|
1030
|
+
*
|
|
1031
|
+
* Also need to be able to read the patients' details. For example:
|
|
1032
|
+
* Action: `FHIR:Read`
|
|
1033
|
+
* Access Policy Resource: `FHIR:Patient`
|
|
1034
|
+
*/
|
|
1035
|
+
list(params, request) {
|
|
1036
|
+
return this.request('/payment/payment-method/list', 'post')(params, request);
|
|
908
1037
|
}
|
|
909
1038
|
}
|
|
910
1039
|
|
|
@@ -912,20 +1041,24 @@ class PaymentMethod extends SDKResource {
|
|
|
912
1041
|
class Project extends SDKResource {
|
|
913
1042
|
constructor(config) {
|
|
914
1043
|
super(config);
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
1044
|
+
}
|
|
1045
|
+
/**
|
|
1046
|
+
* Get the Project settings for a Project. Developers must specify a [project ID](https://docs.oystehr.com/core-documentation/authenticating-api-requests/#x-zapehr-project-id-header) in the header. A Project is the logically-isolated instance of Oystehr that segments your data from other Projects. [Projects](https://docs.oystehr.com/services/project/) are completely independent from each other, having their own separate [FHIR store](https://docs.oystehr.com/services/fhir/basics/), [Applications](https://docs.oystehr.com/services/app/applications/), [Users](https://docs.oystehr.com/services/app/users/), etc .
|
|
1047
|
+
*
|
|
1048
|
+
* Access Policy Action: `Project:GetProjectInfo`
|
|
1049
|
+
* Access Policy Resource: `Project:Settings`
|
|
1050
|
+
*/
|
|
1051
|
+
get(request) {
|
|
1052
|
+
return this.request('/project', 'get')(request);
|
|
1053
|
+
}
|
|
1054
|
+
/**
|
|
1055
|
+
* Update the Project settings for the Project that corresponds to the project-id in the request header. A [Project](https://docs.oystehr.com/services/project/) is the logically-isolated instance of Oystehr that segments your data from other Projects. Projects are completely independent from each other, having their own separate [FHIR store](https://docs.oystehr.com/services/fhir/basics/), [Applications](https://docs.oystehr.com/services/app/applications/), [Users](https://docs.oystehr.com/services/app/users/), etc .
|
|
1056
|
+
*
|
|
1057
|
+
* Access Policy Action: `Project:UpdateProjectInfo`
|
|
1058
|
+
* Access Policy Resource: `Project:Settings`
|
|
1059
|
+
*/
|
|
1060
|
+
update(params, request) {
|
|
1061
|
+
return this.request('/project', 'patch')(params, request);
|
|
929
1062
|
}
|
|
930
1063
|
}
|
|
931
1064
|
|
|
@@ -933,39 +1066,45 @@ class Project extends SDKResource {
|
|
|
933
1066
|
class Rcm extends SDKResource {
|
|
934
1067
|
constructor(config) {
|
|
935
1068
|
super(config);
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
1069
|
+
}
|
|
1070
|
+
/**
|
|
1071
|
+
* Check [Insurance Eligibility](https://docs.oystehr.com/services/rcm/eligibility/).
|
|
1072
|
+
*
|
|
1073
|
+
* Access Policy Action: `RCM:CheckInsuranceEligibility`
|
|
1074
|
+
* Access Policy Resource: `RCM:InsuranceEligibility`
|
|
1075
|
+
*
|
|
1076
|
+
* Access Policy Action: `FHIR:Create`
|
|
1077
|
+
* Access Policy Resource: `FHIR:CoverageEligibilityResponse`
|
|
1078
|
+
*/
|
|
1079
|
+
eligibilityCheck(params, request) {
|
|
1080
|
+
return this.request('/rcm/eligibility-check', 'post')(params, request);
|
|
1081
|
+
}
|
|
1082
|
+
/**
|
|
1083
|
+
* Check [Validate Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).
|
|
1084
|
+
*
|
|
1085
|
+
* Access Policy Action: `RCM:ValidateProfessionalClaim`
|
|
1086
|
+
* Access Policy Resource: `RCM:Claim`
|
|
1087
|
+
*
|
|
1088
|
+
* Access Policy Action: `FHIR:Create`
|
|
1089
|
+
* Access Policy Resource: `FHIR:AuditEvent`
|
|
1090
|
+
*/
|
|
1091
|
+
validateProfessionalClaim(params, request) {
|
|
1092
|
+
return this.request('/rcm/professional-claim/validate', 'post')(params, request);
|
|
1093
|
+
}
|
|
1094
|
+
/**
|
|
1095
|
+
* Check [Submit Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).
|
|
1096
|
+
*
|
|
1097
|
+
* Access Policy Action: `RCM:SubmitProfessionalClaim`
|
|
1098
|
+
* Access Policy Resource: `RCM:Claim`
|
|
1099
|
+
*
|
|
1100
|
+
* Access Policy Action: `FHIR:Create`
|
|
1101
|
+
* Access Policy Resource: `FHIR:AuditEvent`
|
|
1102
|
+
*
|
|
1103
|
+
* Access Policy Actions: `FHIR:Create, FHIR:Update`
|
|
1104
|
+
* Access Policy Resource: `FHIR:Claim`
|
|
1105
|
+
*/
|
|
1106
|
+
submitProfessionalClaim(params, request) {
|
|
1107
|
+
return this.request('/rcm/professional-claim/submit', 'post')(params, request);
|
|
969
1108
|
}
|
|
970
1109
|
}
|
|
971
1110
|
|
|
@@ -973,42 +1112,52 @@ class Rcm extends SDKResource {
|
|
|
973
1112
|
class Role extends SDKResource {
|
|
974
1113
|
constructor(config) {
|
|
975
1114
|
super(config);
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1115
|
+
}
|
|
1116
|
+
/**
|
|
1117
|
+
* Get a list of all Roles. A [Role](https://docs.oystehr.com/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/services/iam/developers/), [Users](https://docs.oystehr.com/services/app/users/), and [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients/).
|
|
1118
|
+
*
|
|
1119
|
+
* Access Policy Action: `IAM:ListAllRoles`
|
|
1120
|
+
* Access Policy Resource: `IAM:Role`
|
|
1121
|
+
*/
|
|
1122
|
+
list(request) {
|
|
1123
|
+
return this.request('/iam/role', 'get')(request);
|
|
1124
|
+
}
|
|
1125
|
+
/**
|
|
1126
|
+
* Create a new Role. A [Role](https://docs.oystehr.com/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/services/iam/developers/), [Users](https://docs.oystehr.com/services/app/users/), and [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients/).
|
|
1127
|
+
*
|
|
1128
|
+
* Access Policy Action: `IAM:CreateRole`
|
|
1129
|
+
* Access Policy Resource: `IAM:Role`
|
|
1130
|
+
*/
|
|
1131
|
+
create(params, request) {
|
|
1132
|
+
return this.request('/iam/role', 'post')(params, request);
|
|
1133
|
+
}
|
|
1134
|
+
/**
|
|
1135
|
+
* Get the Role with the provided ID. A [Role](https://docs.oystehr.com/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/services/iam/developers/), [Users](https://docs.oystehr.com/services/app/users/), and [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients/).
|
|
1136
|
+
*
|
|
1137
|
+
* Access Policy Action: `IAM:GetRole`
|
|
1138
|
+
* Access Policy Resource: `IAM:Role`
|
|
1139
|
+
*/
|
|
1140
|
+
get(params, request) {
|
|
1141
|
+
return this.request('/iam/role/{roleId}', 'get')(params, request);
|
|
1142
|
+
}
|
|
1143
|
+
/**
|
|
1144
|
+
* Update the Role with the provided ID. A [Role](https://docs.oystehr.com/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/services/iam/developers/), [Users](https://docs.oystehr.com/services/app/users/), and [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients/).
|
|
1145
|
+
*
|
|
1146
|
+
* Access Policy Action: `IAM:UpdateRole`
|
|
1147
|
+
* Access Policy Resource: `IAM:Role`
|
|
1148
|
+
*/
|
|
1149
|
+
update(params, request) {
|
|
1150
|
+
return this.request('/iam/role/{roleId}', 'patch')(params, request);
|
|
1151
|
+
}
|
|
1152
|
+
/**
|
|
1153
|
+
* Delete the Role with the provided ID. A [Role](https://docs.oystehr.com/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/services/iam/developers/), [Users](https://docs.oystehr.com/services/app/users/), and [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients/).
|
|
1154
|
+
*
|
|
1155
|
+
* Access Policy Action: `IAM:DeleteRole`
|
|
1156
|
+
* Access Policy Resource: `IAM:Role`
|
|
1157
|
+
* Will fail if any entities hold the Role or if Role is assigned as the default patient role for the project
|
|
1158
|
+
*/
|
|
1159
|
+
delete(params, request) {
|
|
1160
|
+
return this.request('/iam/role/{roleId}', 'delete')(params, request);
|
|
1012
1161
|
}
|
|
1013
1162
|
}
|
|
1014
1163
|
|
|
@@ -1016,34 +1165,42 @@ class Role extends SDKResource {
|
|
|
1016
1165
|
class Secret extends SDKResource {
|
|
1017
1166
|
constructor(config) {
|
|
1018
1167
|
super(config);
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1168
|
+
}
|
|
1169
|
+
/**
|
|
1170
|
+
* Get a list of all secrets in the Project.
|
|
1171
|
+
*
|
|
1172
|
+
* Access Policy Action: `Zambda:ListAllSecrets`
|
|
1173
|
+
* Access Policy Resource: `Zambda:Secret`
|
|
1174
|
+
*/
|
|
1175
|
+
list(request) {
|
|
1176
|
+
return this.request('/secret', 'get')(request);
|
|
1177
|
+
}
|
|
1178
|
+
/**
|
|
1179
|
+
* Create a secret for a project. If the secret is already defined, update it.
|
|
1180
|
+
*
|
|
1181
|
+
* Access Policy Action: `Zambda:CreateSecret`
|
|
1182
|
+
* Access Policy Resource: `Zambda:Secret`
|
|
1183
|
+
*/
|
|
1184
|
+
set(params, request) {
|
|
1185
|
+
return this.request('/secret', 'post')(params, request);
|
|
1186
|
+
}
|
|
1187
|
+
/**
|
|
1188
|
+
* Get the secret with the provided name.
|
|
1189
|
+
*
|
|
1190
|
+
* Access Policy Action: `Zambda:GetSecret`
|
|
1191
|
+
* Access Policy Resource: `Zambda:Secret`
|
|
1192
|
+
*/
|
|
1193
|
+
get(params, request) {
|
|
1194
|
+
return this.request('/secret/{name}', 'get')(params, request);
|
|
1195
|
+
}
|
|
1196
|
+
/**
|
|
1197
|
+
* Delete the secret with the provided name.
|
|
1198
|
+
*
|
|
1199
|
+
* Access Policy Action: `Zambda:DeleteSecret`
|
|
1200
|
+
* Access Policy Resource: `Zambda:Secret`
|
|
1201
|
+
*/
|
|
1202
|
+
delete(params, request) {
|
|
1203
|
+
return this.request('/secret/{name}', 'delete')(params, request);
|
|
1047
1204
|
}
|
|
1048
1205
|
}
|
|
1049
1206
|
|
|
@@ -1051,29 +1208,33 @@ class Secret extends SDKResource {
|
|
|
1051
1208
|
class Telemed extends SDKResource {
|
|
1052
1209
|
constructor(config) {
|
|
1053
1210
|
super(config);
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1211
|
+
}
|
|
1212
|
+
/**
|
|
1213
|
+
* Create a [telemedicine video meeting](https://docs.oystehr.com/services/telemed/).
|
|
1214
|
+
*
|
|
1215
|
+
* Access Policy Requirements:
|
|
1216
|
+
* Action: `Telemed:CreateMeeting`
|
|
1217
|
+
* Access Policy Resource: `Telemed:Meeting`
|
|
1218
|
+
* Action: `FHIR:Create`
|
|
1219
|
+
* Access Policy Resource: `FHIR:Encounter`
|
|
1220
|
+
* Action: `FHIR:Update`
|
|
1221
|
+
* Access Policy Resource: `FHIR:Encounter`
|
|
1222
|
+
*/
|
|
1223
|
+
createMeeting(params, request) {
|
|
1224
|
+
return this.request('/telemed/v2/meeting', 'post')(params, request);
|
|
1225
|
+
}
|
|
1226
|
+
/**
|
|
1227
|
+
* Get Meeting and Attendee objects necessary to join a telemedicine video meeting.
|
|
1228
|
+
*
|
|
1229
|
+
* Access Policy Requirements:
|
|
1230
|
+
* Action: `Telemed:JoinMeeting`
|
|
1231
|
+
* Access Policy Resource: `Telemed:Meeting`
|
|
1232
|
+
* To use M2M token to join as anonymous user:
|
|
1233
|
+
* Action: `Telemed:AddAnonymousToMeeting`
|
|
1234
|
+
* Access Policy Resource: `Telemed:Meeting`
|
|
1235
|
+
*/
|
|
1236
|
+
joinMeeting(params, request) {
|
|
1237
|
+
return this.request('/telemed/v2/meeting/{encounterId}/join', 'get')(params, request);
|
|
1077
1238
|
}
|
|
1078
1239
|
}
|
|
1079
1240
|
|
|
@@ -1081,22 +1242,24 @@ class Telemed extends SDKResource {
|
|
|
1081
1242
|
class TransactionalSMS extends SDKResource {
|
|
1082
1243
|
constructor(config) {
|
|
1083
1244
|
super(config);
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1245
|
+
}
|
|
1246
|
+
/**
|
|
1247
|
+
* Send an SMS to any phone number. Oystehr's [Transactional SMS](https://docs.oystehr.com/services/messaging/transactional-sms/) feature makes it easy to send a text message to your [Users](https://docs.oystehr.com/services/app/users/) with a single API call. You can use this feature to send appointment reminders, prescription refill reminders, discharge information, and more.
|
|
1248
|
+
*
|
|
1249
|
+
* Access Policy Requirements:
|
|
1250
|
+
* Action: `Messaging:SendTransactionalSMS`
|
|
1251
|
+
* Access Policy Resource: `Messaging:TransactionalSMS`
|
|
1252
|
+
* Action: `FHIR:Create`
|
|
1253
|
+
* Access Policy Resource: `FHIR:Communication`
|
|
1254
|
+
* Action: `FHIR:Update`
|
|
1255
|
+
* Access Policy Resource: `FHIR:Communication`
|
|
1256
|
+
*
|
|
1257
|
+
* You also need Read access for the resource to which you are sending a message. For example:
|
|
1258
|
+
* Action: `FHIR:Read`
|
|
1259
|
+
* Access Policy Resource: `FHIR:Patient`
|
|
1260
|
+
*/
|
|
1261
|
+
send(params, request) {
|
|
1262
|
+
return this.request('/messaging/transactional-sms/send', 'post')(params, request);
|
|
1100
1263
|
}
|
|
1101
1264
|
}
|
|
1102
1265
|
|
|
@@ -1104,56 +1267,70 @@ class TransactionalSMS extends SDKResource {
|
|
|
1104
1267
|
class User extends SDKResource {
|
|
1105
1268
|
constructor(config) {
|
|
1106
1269
|
super(config);
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1270
|
+
}
|
|
1271
|
+
/**
|
|
1272
|
+
* Get your own User details. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1273
|
+
*
|
|
1274
|
+
* Fetch details about the calling User. This endpoint has no access policy requirements, it is available to all authenticated Users.
|
|
1275
|
+
*/
|
|
1276
|
+
me(request) {
|
|
1277
|
+
return this.request('/user/me', 'get')(request);
|
|
1278
|
+
}
|
|
1279
|
+
/**
|
|
1280
|
+
* Get the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1281
|
+
*
|
|
1282
|
+
* Access Policy Action: `App:GetUser`
|
|
1283
|
+
* Access Policy Resource: `App:User`
|
|
1284
|
+
*/
|
|
1285
|
+
get(params, request) {
|
|
1286
|
+
return this.request('/user/{id}', 'get')(params, request);
|
|
1287
|
+
}
|
|
1288
|
+
/**
|
|
1289
|
+
* Update the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1290
|
+
*
|
|
1291
|
+
* Access Policy Action: `App:UpdateUser`
|
|
1292
|
+
* Access Policy Resource: `App:User`
|
|
1293
|
+
*/
|
|
1294
|
+
update(params, request) {
|
|
1295
|
+
return this.request('/user/{id}', 'patch')(params, request);
|
|
1296
|
+
}
|
|
1297
|
+
/**
|
|
1298
|
+
* Delete the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1299
|
+
*
|
|
1300
|
+
* Access Policy Action: `App:DeleteUser`
|
|
1301
|
+
* Access Policy Resource: `App:User`
|
|
1302
|
+
*/
|
|
1303
|
+
delete(params, request) {
|
|
1304
|
+
return this.request('/user/{id}', 'delete')(params, request);
|
|
1305
|
+
}
|
|
1306
|
+
/**
|
|
1307
|
+
* Invite a User to the Project. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1308
|
+
*
|
|
1309
|
+
* Access Policy Action: `App:CreateUser`
|
|
1310
|
+
* Access Policy Resource: `App:User`
|
|
1311
|
+
*/
|
|
1312
|
+
invite(params, request) {
|
|
1313
|
+
return this.request('/user/invite', 'post')(params, request);
|
|
1314
|
+
}
|
|
1315
|
+
/**
|
|
1316
|
+
* DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_user-v2-list) instead.
|
|
1317
|
+
*
|
|
1318
|
+
* Get all Users in the Project. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1319
|
+
*
|
|
1320
|
+
* Access Policy Action: `App:ListAllUsers`
|
|
1321
|
+
* Access Policy Resource: `App:User`
|
|
1322
|
+
*/
|
|
1323
|
+
list(request) {
|
|
1324
|
+
return this.request('/user', 'get')(request);
|
|
1325
|
+
}
|
|
1326
|
+
/**
|
|
1327
|
+
* Get Users in the Project with pagination, sort, sort Order and filtering. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1328
|
+
*
|
|
1329
|
+
* Access Policy Action: `Project:ListAllUsers`
|
|
1330
|
+
* Access Policy Resource: `Project:Settings`
|
|
1331
|
+
*/
|
|
1332
|
+
listV2(params, request) {
|
|
1333
|
+
return this.request('/user/v2/list', 'get')(params, request);
|
|
1157
1334
|
}
|
|
1158
1335
|
}
|
|
1159
1336
|
|
|
@@ -1161,10 +1338,12 @@ class User extends SDKResource {
|
|
|
1161
1338
|
class Version extends SDKResource {
|
|
1162
1339
|
constructor(config) {
|
|
1163
1340
|
super(config);
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1341
|
+
}
|
|
1342
|
+
/**
|
|
1343
|
+
* Get project API version. This endpoint is public so there are no access policy requirements.
|
|
1344
|
+
*/
|
|
1345
|
+
get(request) {
|
|
1346
|
+
return this.request('/version', 'get')(request);
|
|
1168
1347
|
}
|
|
1169
1348
|
}
|
|
1170
1349
|
|
|
@@ -1260,53 +1439,65 @@ class Z3 extends SDKResource {
|
|
|
1260
1439
|
this.downloadFile = downloadFile;
|
|
1261
1440
|
/**
|
|
1262
1441
|
* This helper performs a `getPresignedUrl` request for Z3 URLs of the forms
|
|
1263
|
-
* `https://projects-api.oystehr.com/v1/z3/<bucket>/<key>`
|
|
1442
|
+
* `https://projects-api.oystehr.com/v1/z3/<bucket>/<key>` or `z3://<bucket>/<key>`
|
|
1264
1443
|
* instead of the standard SDK `Z3GetPresignedUrlParams`.
|
|
1265
1444
|
* @param params url and action
|
|
1266
1445
|
*/
|
|
1267
1446
|
this.getPresignedUrlForZ3Url = getPresignedUrlForZ3Url;
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1447
|
+
}
|
|
1448
|
+
/**
|
|
1449
|
+
* List all Z3 Buckets. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
1450
|
+
*
|
|
1451
|
+
* Access Policy Action: `Z3:ListBuckets`
|
|
1452
|
+
* Access Policy Resource: `Z3:BucketName`
|
|
1453
|
+
*/
|
|
1454
|
+
listBuckets(request) {
|
|
1455
|
+
return this.request('/z3', 'get')(request);
|
|
1456
|
+
}
|
|
1457
|
+
/**
|
|
1458
|
+
* Create a Z3 Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
1459
|
+
*
|
|
1460
|
+
* Access Policy Action: `Z3:CreateBucket`
|
|
1461
|
+
* Access Policy Resource: `Z3:BucketName`
|
|
1462
|
+
*/
|
|
1463
|
+
createBucket(params, request) {
|
|
1464
|
+
return this.request('/z3/{bucketName}', 'put')(params, request);
|
|
1465
|
+
}
|
|
1466
|
+
/**
|
|
1467
|
+
* Delete the Z3 Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
1468
|
+
*
|
|
1469
|
+
* Access Policy Action: `Z3:DeleteBucket`
|
|
1470
|
+
* Access Policy Resource: `Z3:BucketName`
|
|
1471
|
+
*/
|
|
1472
|
+
deleteBucket(params, request) {
|
|
1473
|
+
return this.request('/z3/{bucketName}', 'delete')(params, request);
|
|
1474
|
+
}
|
|
1475
|
+
/**
|
|
1476
|
+
* List all Z3 Objects at the provided path in the Bucket with the provided name [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
1477
|
+
*
|
|
1478
|
+
* Access Policy Action: `Z3:ListObjects`
|
|
1479
|
+
* Access Policy Resource: `Z3:BucketName:ObjectPath`
|
|
1480
|
+
*/
|
|
1481
|
+
listObjects(params, request) {
|
|
1482
|
+
return this.request('/z3/{bucketName}/{objectPath+}', 'get')(params, request);
|
|
1483
|
+
}
|
|
1484
|
+
/**
|
|
1485
|
+
* Get a link for downloading or uploading a Z3 Object to the provided path in the Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
1486
|
+
*
|
|
1487
|
+
* Access Policy Action: `Z3:PutObject` or `Z3:GetObject`
|
|
1488
|
+
* Access Policy Resource: `Z3:BucketName:ObjectPath`
|
|
1489
|
+
*/
|
|
1490
|
+
getPresignedUrl(params, request) {
|
|
1491
|
+
return this.request('/z3/{bucketName}/{objectPath+}', 'post')(params, request);
|
|
1492
|
+
}
|
|
1493
|
+
/**
|
|
1494
|
+
* Delete the Z3 Object at the provided path in the Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
1495
|
+
*
|
|
1496
|
+
* Access Policy Action: `Z3:DeleteObject`
|
|
1497
|
+
* Access Policy Resource: `Z3:BucketName:ObjectPath`
|
|
1498
|
+
*/
|
|
1499
|
+
deleteObject(params, request) {
|
|
1500
|
+
return this.request('/z3/{bucketName}/{objectPath+}', 'delete')(params, request);
|
|
1310
1501
|
}
|
|
1311
1502
|
}
|
|
1312
1503
|
|
|
@@ -1325,61 +1516,77 @@ class Zambda extends SDKResource {
|
|
|
1325
1516
|
constructor(config) {
|
|
1326
1517
|
super(config);
|
|
1327
1518
|
this.uploadFile = uploadFile;
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1519
|
+
}
|
|
1520
|
+
/**
|
|
1521
|
+
* Get a list of all Zambda Functions in the Project. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1522
|
+
*
|
|
1523
|
+
* Access Policy Action: `Zambda:ListAllFunctions`
|
|
1524
|
+
* Access Policy Resource: `Zambda:Function`
|
|
1525
|
+
*/
|
|
1526
|
+
list(request) {
|
|
1527
|
+
return this.request('/zambda', 'get')(request);
|
|
1528
|
+
}
|
|
1529
|
+
/**
|
|
1530
|
+
* Create a new Zambda Function. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1531
|
+
*
|
|
1532
|
+
* Access Policy Action: `Zambda:CreateFunction`
|
|
1533
|
+
* Access Policy Resource: `Zambda:Function`
|
|
1534
|
+
*/
|
|
1535
|
+
create(params, request) {
|
|
1536
|
+
return this.request('/zambda', 'post')(params, request);
|
|
1537
|
+
}
|
|
1538
|
+
/**
|
|
1539
|
+
* Get the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1540
|
+
*
|
|
1541
|
+
* Access Policy Action: `Zambda:GetFunction`
|
|
1542
|
+
* Access Policy Resource: `Zambda:Function`
|
|
1543
|
+
*/
|
|
1544
|
+
get(params, request) {
|
|
1545
|
+
return this.request('/zambda/{id}', 'get')(params, request);
|
|
1546
|
+
}
|
|
1547
|
+
/**
|
|
1548
|
+
* Update the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1549
|
+
*
|
|
1550
|
+
* Access Policy Action: `Zambda:UpdateFunction`
|
|
1551
|
+
* Access Policy Resource: `Zambda:Function`
|
|
1552
|
+
*/
|
|
1553
|
+
update(params, request) {
|
|
1554
|
+
return this.request('/zambda/{id}', 'patch')(params, request);
|
|
1555
|
+
}
|
|
1556
|
+
/**
|
|
1557
|
+
* Delete the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1558
|
+
*
|
|
1559
|
+
* Access Policy Action: `Zambda:DeleteFunction`
|
|
1560
|
+
* Access Policy Resource: `Zambda:Function`
|
|
1561
|
+
*/
|
|
1562
|
+
delete(params, request) {
|
|
1563
|
+
return this.request('/zambda/{id}', 'delete')(params, request);
|
|
1564
|
+
}
|
|
1565
|
+
/**
|
|
1566
|
+
* Execute the [Authenticated Zambda Function](https://docs.oystehr.com/services/zambda/types/authenticated/) with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1567
|
+
*
|
|
1568
|
+
* Access Policy Action: `Zambda:InvokeFunction`
|
|
1569
|
+
* Access Policy Resource: `Zambda:Function`
|
|
1570
|
+
*/
|
|
1571
|
+
execute(params, request) {
|
|
1572
|
+
return this.request('/zambda/{id}/execute', 'post')(params, request);
|
|
1573
|
+
}
|
|
1574
|
+
/**
|
|
1575
|
+
* Execute the [Public Zambda Function](https://docs.oystehr.com/services/zambda/types/public/) with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1576
|
+
*
|
|
1577
|
+
* Execute a zambda that has method http_open. This endpoint is public so there are no access policy requirements.
|
|
1578
|
+
*/
|
|
1579
|
+
executePublic(params, request) {
|
|
1580
|
+
return this.request('/zambda/{id}/execute-public', 'post')(params, request);
|
|
1581
|
+
}
|
|
1582
|
+
/**
|
|
1583
|
+
* Returns a URL that is used to deploy code to the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1584
|
+
*
|
|
1585
|
+
* Access Policy Action: `Zambda:UpdateFunction`
|
|
1586
|
+
* Access Policy Resource: `Zambda:Function`
|
|
1587
|
+
*/
|
|
1588
|
+
s3Upload(params, request) {
|
|
1589
|
+
return this.request('/zambda/{id}/s3-upload', 'post')(params, request);
|
|
1383
1590
|
}
|
|
1384
1591
|
}
|
|
1385
1592
|
|
|
@@ -1387,27 +1594,33 @@ class Zambda extends SDKResource {
|
|
|
1387
1594
|
class ZambdaLogStream extends SDKResource {
|
|
1388
1595
|
constructor(config) {
|
|
1389
1596
|
super(config);
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1597
|
+
}
|
|
1598
|
+
/**
|
|
1599
|
+
* Get the log streams for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1600
|
+
*
|
|
1601
|
+
* Access Policy Action: `Zambda:ReadLogs`
|
|
1602
|
+
* Access Policy Resource: `Zambda:Function`
|
|
1603
|
+
*/
|
|
1604
|
+
list(params, request) {
|
|
1605
|
+
return this.request('/zambda/{id}/logStream', 'post')(params, request);
|
|
1606
|
+
}
|
|
1607
|
+
/**
|
|
1608
|
+
* Get all logs for the Zambda Function with the provided ID, filtered by any of: text in messages, minimum start date, and/or maximum end date. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1609
|
+
*
|
|
1610
|
+
* Access Policy Action: `Zambda:ReadLogs`
|
|
1611
|
+
* Access Policy Resource: `Zambda:Function`
|
|
1612
|
+
*/
|
|
1613
|
+
search(params, request) {
|
|
1614
|
+
return this.request('/zambda/{id}/logStream/search', 'post')(params, request);
|
|
1615
|
+
}
|
|
1616
|
+
/**
|
|
1617
|
+
* Get the logs from the specified log stream for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1618
|
+
*
|
|
1619
|
+
* Access Policy Action: `Zambda:ReadLogs`
|
|
1620
|
+
* Access Policy Resource: `Zambda:Function`
|
|
1621
|
+
*/
|
|
1622
|
+
get(params, request) {
|
|
1623
|
+
return this.request('/zambda/{id}/logStream/{logStreamName}', 'post')(params, request);
|
|
1411
1624
|
}
|
|
1412
1625
|
}
|
|
1413
1626
|
|
|
@@ -1426,6 +1639,7 @@ let Oystehr$1 = class Oystehr {
|
|
|
1426
1639
|
this.project = new Project(config);
|
|
1427
1640
|
this.rcm = new Rcm(config);
|
|
1428
1641
|
this.erx = new Erx(config);
|
|
1642
|
+
this.fax = new Fax(config);
|
|
1429
1643
|
this.role = new Role(config);
|
|
1430
1644
|
this.secret = new Secret(config);
|
|
1431
1645
|
this.telemed = new Telemed(config);
|