@oystehr/sdk 3.0.15 → 4.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/config.d.ts +2 -1
- package/dist/cjs/index.cjs +82 -12
- 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/developer.d.ts +2 -2
- package/dist/cjs/resources/classes/erx.d.ts +17 -17
- package/dist/cjs/resources/classes/erxV1.d.ts +31 -0
- package/dist/cjs/resources/classes/erxV2.d.ts +15 -0
- package/dist/cjs/resources/classes/index.d.ts +5 -1
- package/dist/cjs/resources/classes/m2m.d.ts +2 -2
- package/dist/cjs/resources/classes/user.d.ts +2 -2
- package/dist/cjs/resources/types/ErxCheckAllergyInteractionsParams.d.ts +3 -0
- package/dist/cjs/resources/types/ErxCheckAllergyInteractionsResponse.d.ts +9 -0
- package/dist/cjs/resources/types/ErxCheckMedicationInteractionsParams.d.ts +3 -0
- package/dist/cjs/resources/types/ErxCheckMedicationInteractionsResponse.d.ts +21 -0
- package/dist/cjs/resources/types/ErxCheckPrecheckInteractionsParams.d.ts +4 -0
- package/dist/cjs/resources/types/ErxCheckPrecheckInteractionsResponse.d.ts +29 -0
- package/dist/cjs/resources/types/ErxConnectPractitionerParams.d.ts +4 -0
- package/dist/cjs/resources/types/ErxConnectPractitionerResponse.d.ts +9 -0
- package/dist/cjs/resources/types/ErxSearchAllergensParams.d.ts +3 -0
- package/dist/cjs/resources/types/ErxSearchAllergensResponse.d.ts +21 -0
- package/dist/cjs/resources/types/ErxSearchMedicationsParams.d.ts +3 -0
- package/dist/cjs/resources/types/ErxSearchMedicationsResponse.d.ts +27 -0
- package/dist/cjs/resources/types/ErxV1AllergySearchParams.d.ts +3 -0
- package/dist/{esm/resources/types/ErxAllergySearchResponse.d.ts → cjs/resources/types/ErxV1AllergySearchResponse.d.ts} +1 -1
- package/dist/{esm/resources/types/ErxCancelOrderParams.d.ts → cjs/resources/types/ErxV1CancelOrderParams.d.ts} +1 -1
- package/dist/{esm/resources/types/ErxCancelOrderResponse.d.ts → cjs/resources/types/ErxV1CancelOrderResponse.d.ts} +1 -1
- package/dist/cjs/resources/types/{ErxCancelPrescriptionParams.d.ts → ErxV1CancelPrescriptionParams.d.ts} +1 -1
- package/dist/cjs/resources/types/{ErxCancelPrescriptionResponse.d.ts → ErxV1CancelPrescriptionResponse.d.ts} +1 -1
- package/dist/cjs/resources/types/{ErxMedicationSearchParams.d.ts → ErxV1MedicationSearchParams.d.ts} +1 -1
- package/dist/cjs/resources/types/{ErxMedicationSearchResponse.d.ts → ErxV1MedicationSearchResponse.d.ts} +1 -1
- package/dist/cjs/resources/types/ErxV1SyncPatientParams.d.ts +3 -0
- package/dist/{esm/resources/types/ErxSyncPatientResponse.d.ts → cjs/resources/types/ErxV1SyncPatientResponse.d.ts} +1 -1
- package/dist/cjs/resources/types/ErxV2MedicationSearchParams.d.ts +4 -0
- package/dist/cjs/resources/types/{ErxMedicationSearchV2Response.d.ts → ErxV2MedicationSearchResponse.d.ts} +1 -1
- package/dist/cjs/resources/types/FaxSendParams.d.ts +13 -1
- package/dist/cjs/resources/types/FaxSendResponse.d.ts +1 -1
- package/dist/cjs/resources/types/index.d.ts +25 -12
- package/dist/esm/config.d.ts +2 -1
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/index.min.js.map +1 -1
- package/dist/esm/resources/classes/developer.d.ts +2 -2
- package/dist/esm/resources/classes/developer.js +1 -1
- package/dist/esm/resources/classes/developer.js.map +1 -1
- package/dist/esm/resources/classes/erx.d.ts +17 -17
- package/dist/esm/resources/classes/erx.js +25 -19
- package/dist/esm/resources/classes/erx.js.map +1 -1
- package/dist/esm/resources/classes/erxV1.d.ts +31 -0
- package/dist/esm/resources/classes/erxV1.js +48 -0
- package/dist/esm/resources/classes/erxV1.js.map +1 -0
- package/dist/esm/resources/classes/erxV2.d.ts +15 -0
- package/dist/esm/resources/classes/erxV2.js +24 -0
- package/dist/esm/resources/classes/erxV2.js.map +1 -0
- package/dist/esm/resources/classes/index.d.ts +5 -1
- package/dist/esm/resources/classes/index.js +5 -1
- package/dist/esm/resources/classes/index.js.map +1 -1
- package/dist/esm/resources/classes/m2m.d.ts +2 -2
- package/dist/esm/resources/classes/m2m.js +1 -1
- package/dist/esm/resources/classes/m2m.js.map +1 -1
- package/dist/esm/resources/classes/user.d.ts +2 -2
- package/dist/esm/resources/classes/user.js +1 -1
- package/dist/esm/resources/classes/user.js.map +1 -1
- package/dist/esm/resources/types/ErxCheckAllergyInteractionsParams.d.ts +3 -0
- package/dist/esm/resources/types/ErxCheckAllergyInteractionsResponse.d.ts +9 -0
- package/dist/esm/resources/types/ErxCheckMedicationInteractionsParams.d.ts +3 -0
- package/dist/esm/resources/types/ErxCheckMedicationInteractionsResponse.d.ts +21 -0
- package/dist/esm/resources/types/ErxCheckPrecheckInteractionsParams.d.ts +4 -0
- package/dist/esm/resources/types/ErxCheckPrecheckInteractionsResponse.d.ts +29 -0
- package/dist/esm/resources/types/ErxConnectPractitionerParams.d.ts +4 -0
- package/dist/esm/resources/types/ErxConnectPractitionerResponse.d.ts +9 -0
- package/dist/esm/resources/types/ErxSearchAllergensParams.d.ts +3 -0
- package/dist/esm/resources/types/ErxSearchAllergensResponse.d.ts +21 -0
- package/dist/esm/resources/types/ErxSearchMedicationsParams.d.ts +3 -0
- package/dist/esm/resources/types/ErxSearchMedicationsResponse.d.ts +27 -0
- package/dist/esm/resources/types/ErxV1AllergySearchParams.d.ts +3 -0
- package/dist/{cjs/resources/types/ErxAllergySearchResponse.d.ts → esm/resources/types/ErxV1AllergySearchResponse.d.ts} +1 -1
- package/dist/{cjs/resources/types/ErxCancelOrderParams.d.ts → esm/resources/types/ErxV1CancelOrderParams.d.ts} +1 -1
- package/dist/{cjs/resources/types/ErxCancelOrderResponse.d.ts → esm/resources/types/ErxV1CancelOrderResponse.d.ts} +1 -1
- package/dist/esm/resources/types/{ErxCancelPrescriptionParams.d.ts → ErxV1CancelPrescriptionParams.d.ts} +1 -1
- package/dist/esm/resources/types/{ErxCancelPrescriptionResponse.d.ts → ErxV1CancelPrescriptionResponse.d.ts} +1 -1
- package/dist/esm/resources/types/{ErxMedicationSearchParams.d.ts → ErxV1MedicationSearchParams.d.ts} +1 -1
- package/dist/esm/resources/types/{ErxMedicationSearchResponse.d.ts → ErxV1MedicationSearchResponse.d.ts} +1 -1
- package/dist/esm/resources/types/ErxV1SyncPatientParams.d.ts +3 -0
- package/dist/{cjs/resources/types/ErxSyncPatientResponse.d.ts → esm/resources/types/ErxV1SyncPatientResponse.d.ts} +1 -1
- package/dist/esm/resources/types/ErxV2MedicationSearchParams.d.ts +4 -0
- package/dist/esm/resources/types/{ErxMedicationSearchV2Response.d.ts → ErxV2MedicationSearchResponse.d.ts} +1 -1
- package/dist/esm/resources/types/FaxSendParams.d.ts +13 -1
- package/dist/esm/resources/types/FaxSendResponse.d.ts +1 -1
- package/dist/esm/resources/types/index.d.ts +25 -12
- package/package.json +3 -3
- package/src/config.ts +2 -1
- package/src/resources/classes/developer.ts +3 -3
- package/src/resources/classes/erx.ts +68 -51
- package/src/resources/classes/erxV1.ts +73 -0
- package/src/resources/classes/erxV2.ts +34 -0
- package/src/resources/classes/index.ts +8 -2
- package/src/resources/classes/m2m.ts +3 -3
- package/src/resources/classes/user.ts +3 -3
- package/src/resources/types/ErxCheckAllergyInteractionsParams.ts +5 -0
- package/src/resources/types/ErxCheckAllergyInteractionsResponse.ts +11 -0
- package/src/resources/types/ErxCheckMedicationInteractionsParams.ts +5 -0
- package/src/resources/types/ErxCheckMedicationInteractionsResponse.ts +23 -0
- package/src/resources/types/ErxCheckPrecheckInteractionsParams.ts +6 -0
- package/src/resources/types/ErxCheckPrecheckInteractionsResponse.ts +31 -0
- package/src/resources/types/ErxConnectPractitionerParams.ts +6 -0
- package/src/resources/types/ErxConnectPractitionerResponse.ts +11 -0
- package/src/resources/types/{ErxAllergySearchParams.ts → ErxSearchAllergensParams.ts} +1 -1
- package/src/resources/types/ErxSearchAllergensResponse.ts +28 -0
- package/src/resources/types/ErxSearchMedicationsParams.ts +5 -0
- package/src/resources/types/ErxSearchMedicationsResponse.ts +29 -0
- package/src/resources/types/ErxV1AllergySearchParams.ts +5 -0
- package/src/resources/types/{ErxAllergySearchResponse.ts → ErxV1AllergySearchResponse.ts} +1 -1
- package/src/resources/types/{ErxCancelOrderParams.ts → ErxV1CancelOrderParams.ts} +1 -1
- package/src/resources/types/{ErxCancelOrderResponse.ts → ErxV1CancelOrderResponse.ts} +1 -1
- package/src/resources/types/{ErxCancelPrescriptionParams.ts → ErxV1CancelPrescriptionParams.ts} +1 -1
- package/src/resources/types/{ErxCancelPrescriptionResponse.ts → ErxV1CancelPrescriptionResponse.ts} +1 -1
- package/src/resources/types/{ErxMedicationSearchParams.ts → ErxV1MedicationSearchParams.ts} +1 -1
- package/src/resources/types/{ErxMedicationSearchResponse.ts → ErxV1MedicationSearchResponse.ts} +1 -1
- package/src/resources/types/ErxV1SyncPatientParams.ts +5 -0
- package/src/resources/types/{ErxSyncPatientResponse.ts → ErxV1SyncPatientResponse.ts} +1 -1
- package/src/resources/types/{ErxMedicationSearchV2Params.ts → ErxV2MedicationSearchParams.ts} +1 -1
- package/src/resources/types/{ErxMedicationSearchV2Response.ts → ErxV2MedicationSearchResponse.ts} +1 -1
- package/src/resources/types/FaxSendParams.ts +13 -1
- package/src/resources/types/FaxSendResponse.ts +1 -1
- package/src/resources/types/index.ts +25 -12
- package/dist/cjs/resources/types/ErxAllergySearchParams.d.ts +0 -3
- package/dist/cjs/resources/types/ErxMedicationSearchV2Params.d.ts +0 -4
- package/dist/esm/node_modules/tslib/package.json +0 -1
- package/dist/esm/node_modules/tslib/tslib.es6.js +0 -40
- package/dist/esm/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/esm/resources/types/ErxAllergySearchParams.d.ts +0 -3
- package/dist/esm/resources/types/ErxMedicationSearchV2Params.d.ts +0 -4
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
ErxV1AllergySearchParams,
|
|
5
|
+
ErxV1AllergySearchResponse,
|
|
6
|
+
ErxV1CancelOrderParams,
|
|
7
|
+
ErxV1CancelOrderResponse,
|
|
8
|
+
ErxV1CancelPrescriptionParams,
|
|
9
|
+
ErxV1CancelPrescriptionResponse,
|
|
10
|
+
ErxV1MedicationSearchParams,
|
|
11
|
+
ErxV1MedicationSearchResponse,
|
|
12
|
+
ErxV1SyncPatientParams,
|
|
13
|
+
ErxV1SyncPatientResponse,
|
|
14
|
+
OystehrClientRequest,
|
|
15
|
+
} from '../..';
|
|
16
|
+
import { SDKResource } from '../../client/client';
|
|
17
|
+
import { OystehrConfig } from '../../config';
|
|
18
|
+
|
|
19
|
+
export class ErxV1 extends SDKResource {
|
|
20
|
+
constructor(config: OystehrConfig) {
|
|
21
|
+
super(config);
|
|
22
|
+
}
|
|
23
|
+
#baseUrlThunk(): string {
|
|
24
|
+
return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Retrieve patient properties from FHIR service and sync them with eRx service
|
|
28
|
+
*/
|
|
29
|
+
syncPatient(params: ErxV1SyncPatientParams, request?: OystehrClientRequest): Promise<ErxV1SyncPatientResponse> {
|
|
30
|
+
return this.request('/erx/sync-patient/{patientId}', 'post', this.#baseUrlThunk.bind(this))(params, request);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Search for allergies
|
|
34
|
+
*/
|
|
35
|
+
allergySearch(params: ErxV1AllergySearchParams, request?: OystehrClientRequest): Promise<ErxV1AllergySearchResponse> {
|
|
36
|
+
return this.request('/erx/allergy/search', 'get', this.#baseUrlThunk.bind(this))(params, request);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Cancel photon order
|
|
40
|
+
*/
|
|
41
|
+
cancelOrder(params: ErxV1CancelOrderParams, request?: OystehrClientRequest): Promise<ErxV1CancelOrderResponse> {
|
|
42
|
+
return this.request('/erx/cancel-order', 'post', this.#baseUrlThunk.bind(this))(params, request);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Cancel photon prescription
|
|
46
|
+
*/
|
|
47
|
+
cancelPrescription(
|
|
48
|
+
params: ErxV1CancelPrescriptionParams,
|
|
49
|
+
request?: OystehrClientRequest
|
|
50
|
+
): Promise<ErxV1CancelPrescriptionResponse> {
|
|
51
|
+
return this.request('/erx/cancel-prescription', 'post', this.#baseUrlThunk.bind(this))(params, request);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Search for medications. Provide at least one of code or name filters
|
|
55
|
+
*/
|
|
56
|
+
medicationSearch(
|
|
57
|
+
params: ErxV1MedicationSearchParams,
|
|
58
|
+
request?: OystehrClientRequest
|
|
59
|
+
): Promise<ErxV1MedicationSearchResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* Search for medications. Provide at least one of code or name filters
|
|
62
|
+
*/
|
|
63
|
+
medicationSearch(request?: OystehrClientRequest): Promise<ErxV1MedicationSearchResponse>;
|
|
64
|
+
/**
|
|
65
|
+
* Search for medications. Provide at least one of code or name filters
|
|
66
|
+
*/
|
|
67
|
+
medicationSearch(
|
|
68
|
+
params?: ErxV1MedicationSearchParams | OystehrClientRequest,
|
|
69
|
+
request?: OystehrClientRequest
|
|
70
|
+
): Promise<ErxV1MedicationSearchResponse> {
|
|
71
|
+
return this.request('/erx/medication/search', 'get', this.#baseUrlThunk.bind(this))(params, request);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import { ErxV2MedicationSearchParams, ErxV2MedicationSearchResponse, OystehrClientRequest } from '../..';
|
|
4
|
+
import { SDKResource } from '../../client/client';
|
|
5
|
+
import { OystehrConfig } from '../../config';
|
|
6
|
+
|
|
7
|
+
export class ErxV2 extends SDKResource {
|
|
8
|
+
constructor(config: OystehrConfig) {
|
|
9
|
+
super(config);
|
|
10
|
+
}
|
|
11
|
+
#baseUrlThunk(): string {
|
|
12
|
+
return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Search for medications. Provide at least one of code or name filters
|
|
16
|
+
*/
|
|
17
|
+
medicationSearch(
|
|
18
|
+
params: ErxV2MedicationSearchParams,
|
|
19
|
+
request?: OystehrClientRequest
|
|
20
|
+
): Promise<ErxV2MedicationSearchResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Search for medications. Provide at least one of code or name filters
|
|
23
|
+
*/
|
|
24
|
+
medicationSearch(request?: OystehrClientRequest): Promise<ErxV2MedicationSearchResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Search for medications. Provide at least one of code or name filters
|
|
27
|
+
*/
|
|
28
|
+
medicationSearch(
|
|
29
|
+
params?: ErxV2MedicationSearchParams | OystehrClientRequest,
|
|
30
|
+
request?: OystehrClientRequest
|
|
31
|
+
): Promise<ErxV2MedicationSearchResponse> {
|
|
32
|
+
return this.request('/erx/v2/medication/search', 'get', this.#baseUrlThunk.bind(this))(params, request);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -6,6 +6,8 @@ import { Charge } from './charge';
|
|
|
6
6
|
import { Conversation } from './conversation';
|
|
7
7
|
import { Developer } from './developer';
|
|
8
8
|
import { Erx } from './erx';
|
|
9
|
+
import { ErxV1 } from './erxV1';
|
|
10
|
+
import { ErxV2 } from './erxV2';
|
|
9
11
|
import { Fax } from './fax';
|
|
10
12
|
import { Fhir } from './fhir';
|
|
11
13
|
import { Lab } from './lab';
|
|
@@ -36,7 +38,8 @@ export class Oystehr {
|
|
|
36
38
|
readonly charge: Charge;
|
|
37
39
|
readonly project: Project;
|
|
38
40
|
readonly rcm: Rcm;
|
|
39
|
-
readonly
|
|
41
|
+
readonly erxV1: ErxV1;
|
|
42
|
+
readonly erxV2: ErxV2;
|
|
40
43
|
readonly role: Role;
|
|
41
44
|
readonly secret: Secret;
|
|
42
45
|
readonly telemed: Telemed;
|
|
@@ -47,6 +50,7 @@ export class Oystehr {
|
|
|
47
50
|
readonly zambdaLogStream: ZambdaLogStream;
|
|
48
51
|
readonly fax: Fax;
|
|
49
52
|
readonly lab: Lab;
|
|
53
|
+
readonly erx: Erx;
|
|
50
54
|
readonly fhir: Fhir;
|
|
51
55
|
constructor(config: OystehrConfig) {
|
|
52
56
|
this.config = config;
|
|
@@ -63,7 +67,8 @@ export class Oystehr {
|
|
|
63
67
|
this.charge = new Charge(config);
|
|
64
68
|
this.project = new Project(config);
|
|
65
69
|
this.rcm = new Rcm(config);
|
|
66
|
-
this.
|
|
70
|
+
this.erxV1 = new ErxV1(config);
|
|
71
|
+
this.erxV2 = new ErxV2(config);
|
|
67
72
|
this.role = new Role(config);
|
|
68
73
|
this.secret = new Secret(config);
|
|
69
74
|
this.telemed = new Telemed(config);
|
|
@@ -74,6 +79,7 @@ export class Oystehr {
|
|
|
74
79
|
this.zambdaLogStream = new ZambdaLogStream(config);
|
|
75
80
|
this.fax = new Fax(config);
|
|
76
81
|
this.lab = new Lab(config);
|
|
82
|
+
this.erx = new Erx(config);
|
|
77
83
|
this.fhir = new Fhir(config);
|
|
78
84
|
}
|
|
79
85
|
}
|
|
@@ -82,21 +82,21 @@ export class M2m extends SDKResource {
|
|
|
82
82
|
return this.request('/m2m/{id}/rotate-secret', 'post', this.#baseUrlThunk.bind(this))(params, request);
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
|
-
* Get M2M clients in the Project with pagination, sort, sort
|
|
85
|
+
* Get M2M clients in the Project with pagination, sort, sort order and filtering. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).
|
|
86
86
|
*
|
|
87
87
|
* Access Policy Action: `App:ListAllM2MClients`
|
|
88
88
|
* Access Policy Resource: `IAM:M2MClient`
|
|
89
89
|
*/
|
|
90
90
|
listV2(params: M2mListV2Params, request?: OystehrClientRequest): Promise<M2mListV2Response>;
|
|
91
91
|
/**
|
|
92
|
-
* Get M2M clients in the Project with pagination, sort, sort
|
|
92
|
+
* Get M2M clients in the Project with pagination, sort, sort order and filtering. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).
|
|
93
93
|
*
|
|
94
94
|
* Access Policy Action: `App:ListAllM2MClients`
|
|
95
95
|
* Access Policy Resource: `IAM:M2MClient`
|
|
96
96
|
*/
|
|
97
97
|
listV2(request?: OystehrClientRequest): Promise<M2mListV2Response>;
|
|
98
98
|
/**
|
|
99
|
-
* Get M2M clients in the Project with pagination, sort, sort
|
|
99
|
+
* Get M2M clients in the Project with pagination, sort, sort order and filtering. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).
|
|
100
100
|
*
|
|
101
101
|
* Access Policy Action: `App:ListAllM2MClients`
|
|
102
102
|
* Access Policy Resource: `IAM:M2MClient`
|
|
@@ -80,21 +80,21 @@ export class User extends SDKResource {
|
|
|
80
80
|
return this.request('/user', 'get', this.#baseUrlThunk.bind(this))(request);
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
|
-
* Get Users in the Project with pagination, sort, sort
|
|
83
|
+
* Get Users in the Project with pagination, sort, sort order and filtering. [Users](https://docs.oystehr.com/oystehr/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
84
84
|
*
|
|
85
85
|
* Access Policy Action: `Project:ListAllUsers`
|
|
86
86
|
* Access Policy Resource: `Project:Settings`
|
|
87
87
|
*/
|
|
88
88
|
listV2(params: UserListV2Params, request?: OystehrClientRequest): Promise<UserListV2Response>;
|
|
89
89
|
/**
|
|
90
|
-
* Get Users in the Project with pagination, sort, sort
|
|
90
|
+
* Get Users in the Project with pagination, sort, sort order and filtering. [Users](https://docs.oystehr.com/oystehr/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
91
91
|
*
|
|
92
92
|
* Access Policy Action: `Project:ListAllUsers`
|
|
93
93
|
* Access Policy Resource: `Project:Settings`
|
|
94
94
|
*/
|
|
95
95
|
listV2(request?: OystehrClientRequest): Promise<UserListV2Response>;
|
|
96
96
|
/**
|
|
97
|
-
* Get Users in the Project with pagination, sort, sort
|
|
97
|
+
* Get Users in the Project with pagination, sort, sort order and filtering. [Users](https://docs.oystehr.com/oystehr/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
98
98
|
*
|
|
99
99
|
* Access Policy Action: `Project:ListAllUsers`
|
|
100
100
|
* Access Policy Resource: `Project:Settings`
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Success
|
|
5
|
+
*/
|
|
6
|
+
export type ErxCheckMedicationInteractionsResponse = {
|
|
7
|
+
/**
|
|
8
|
+
* Message describing the interaction.
|
|
9
|
+
*/
|
|
10
|
+
message: string;
|
|
11
|
+
/**
|
|
12
|
+
* Severity level of the interaction.
|
|
13
|
+
*/
|
|
14
|
+
severityLevel: 'MajorInteraction' | 'ModerateInteraction' | 'MinorInteraction' | 'Unknown';
|
|
15
|
+
/**
|
|
16
|
+
* List of drug IDs involved in the interaction.
|
|
17
|
+
*/
|
|
18
|
+
drugIds: number[];
|
|
19
|
+
/**
|
|
20
|
+
* Indicates if the interaction includes pending medications.
|
|
21
|
+
*/
|
|
22
|
+
includesPending: boolean;
|
|
23
|
+
}[];
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Success
|
|
5
|
+
*/
|
|
6
|
+
export interface ErxCheckPrecheckInteractionsResponse {
|
|
7
|
+
allergies: {
|
|
8
|
+
/**
|
|
9
|
+
* Message describing the interaction.
|
|
10
|
+
*/
|
|
11
|
+
message: string;
|
|
12
|
+
}[];
|
|
13
|
+
medications: {
|
|
14
|
+
/**
|
|
15
|
+
* Message describing the interaction.
|
|
16
|
+
*/
|
|
17
|
+
message: string;
|
|
18
|
+
/**
|
|
19
|
+
* Severity level of the interaction.
|
|
20
|
+
*/
|
|
21
|
+
severityLevel: 'MajorInteraction' | 'ModerateInteraction' | 'MinorInteraction' | 'Unknown';
|
|
22
|
+
/**
|
|
23
|
+
* List of drug IDs involved in the interaction.
|
|
24
|
+
*/
|
|
25
|
+
drugIds: number[];
|
|
26
|
+
/**
|
|
27
|
+
* Indicates if the interaction includes pending medications.
|
|
28
|
+
*/
|
|
29
|
+
includesPending: boolean;
|
|
30
|
+
}[];
|
|
31
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Allergens
|
|
5
|
+
*/
|
|
6
|
+
export type ErxSearchAllergensResponse = {
|
|
7
|
+
/**
|
|
8
|
+
* The identifier for the allergen.
|
|
9
|
+
*/
|
|
10
|
+
id?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Human readable name of allergen.
|
|
13
|
+
*/
|
|
14
|
+
name?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Type of allergen.
|
|
17
|
+
*/
|
|
18
|
+
type?:
|
|
19
|
+
| 'AllergenClass'
|
|
20
|
+
| 'FoodAndEnvironmentalAllergens'
|
|
21
|
+
| 'NoKnownAllergy'
|
|
22
|
+
| 'RoutedDoseFormDrugs'
|
|
23
|
+
| 'ScreenableIngredient';
|
|
24
|
+
/**
|
|
25
|
+
* Category of allergen.
|
|
26
|
+
*/
|
|
27
|
+
category?: 'CommonAllergens' | 'UncommonAllergens' | 'OtherBrandDrugs';
|
|
28
|
+
}[];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Medications
|
|
5
|
+
*/
|
|
6
|
+
export type ErxSearchMedicationsResponse = {
|
|
7
|
+
/**
|
|
8
|
+
* The identifier for the medication.
|
|
9
|
+
*/
|
|
10
|
+
id: number;
|
|
11
|
+
/**
|
|
12
|
+
* The identifier for the combination of route, dose form, and drug.
|
|
13
|
+
*/
|
|
14
|
+
routedDoseFormDrugId: number;
|
|
15
|
+
/**
|
|
16
|
+
* Human readable name of medication.
|
|
17
|
+
*/
|
|
18
|
+
name: string;
|
|
19
|
+
/**
|
|
20
|
+
* RxNorm Concept Unique (RxCUI) identifier of medication.
|
|
21
|
+
*/
|
|
22
|
+
rxcui: number | null;
|
|
23
|
+
/**
|
|
24
|
+
* RxNorm Concept Unique (RxCUI) identifier of medication.
|
|
25
|
+
*/
|
|
26
|
+
ndc: string | null;
|
|
27
|
+
strength: string;
|
|
28
|
+
isObsolete: boolean;
|
|
29
|
+
}[];
|
|
@@ -5,14 +5,26 @@ export interface FaxSendParams {
|
|
|
5
5
|
* A Z3 URL of the document you want to send. Your user must have access to this document.
|
|
6
6
|
*/
|
|
7
7
|
media: string;
|
|
8
|
+
/**
|
|
9
|
+
* The patient who is the subject of the fax. This must be a valid FHIR Patient relative reference in the format: `Patient/some-valid-uuid`. This reference must be a valid resource.
|
|
10
|
+
*/
|
|
11
|
+
patient?: string;
|
|
8
12
|
/**
|
|
9
13
|
* The quality of the document you want sent.
|
|
10
14
|
*/
|
|
11
15
|
quality: 'standard' | 'fine' | 'superfine';
|
|
12
16
|
/**
|
|
13
17
|
* The recipient of the fax. This must be a valid FHIR CareTeam, HealthcareService, Organization, Patient, Practitioner, PractitionerRole, or RelatedPerson relative reference in the format: `the-resource-type/some-valid-uuid`. This reference must be a valid resource and have a number in the `telecom` field with a `system` of `fax`.
|
|
18
|
+
*
|
|
19
|
+
* Note: One of `recipient` or `recipientNumber` must be provided, but not both.
|
|
20
|
+
*/
|
|
21
|
+
recipient?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The fax number of the recipient. This must be a valid E.164 format fax number.
|
|
24
|
+
*
|
|
25
|
+
* Note: One of `recipient` or `recipientNumber` must be provided, but not both.
|
|
14
26
|
*/
|
|
15
|
-
|
|
27
|
+
recipientNumber?: string;
|
|
16
28
|
/**
|
|
17
29
|
* The sender of the fax. This must be a valid FHIR HealthcareService, Organization, Patient, Practitioner, PractitionerRole, or RelatedPerson relative reference in the format: `the-resource-type/some-valid-uuid`. This reference must be a valid resource and have your [onboarded fax number](https://docs.oystehr.com/oystehr/services/fax/number/) in the `telecom` field with a `system` of `fax`.
|
|
18
30
|
*/
|
|
@@ -6,7 +6,7 @@ import { Communication } from 'fhir/r4b';
|
|
|
6
6
|
*/
|
|
7
7
|
export interface FaxSendResponse {
|
|
8
8
|
/**
|
|
9
|
-
* The FHIR Communication resource that represents the sent fax in the FHIR Store modified to include the https://extensions.fhir.oystehr.com/outbound-fax-status extension which holds the fax status that will be updated automatically.
|
|
9
|
+
* The FHIR Communication resource that represents the sent fax in the FHIR Store modified to include the https://extensions.fhir.oystehr.com/outbound-fax-status extension which holds the fax status that will be updated automatically. If a `recipientNumber` is used instead of a `recipient`, the resource will contain a contained Practitioner resource with the fax number.
|
|
10
10
|
*/
|
|
11
11
|
communicationResource: Communication;
|
|
12
12
|
}
|
|
@@ -93,18 +93,18 @@ export * from './RcmValidateProfessionalClaimParams';
|
|
|
93
93
|
export * from './RcmValidateProfessionalClaimResponse';
|
|
94
94
|
export * from './RcmSubmitProfessionalClaimParams';
|
|
95
95
|
export * from './RcmSubmitProfessionalClaimResponse';
|
|
96
|
-
export * from './
|
|
97
|
-
export * from './
|
|
98
|
-
export * from './
|
|
99
|
-
export * from './
|
|
100
|
-
export * from './
|
|
101
|
-
export * from './
|
|
102
|
-
export * from './
|
|
103
|
-
export * from './
|
|
104
|
-
export * from './
|
|
105
|
-
export * from './
|
|
106
|
-
export * from './
|
|
107
|
-
export * from './
|
|
96
|
+
export * from './ErxV1SyncPatientParams';
|
|
97
|
+
export * from './ErxV1SyncPatientResponse';
|
|
98
|
+
export * from './ErxV1AllergySearchParams';
|
|
99
|
+
export * from './ErxV1AllergySearchResponse';
|
|
100
|
+
export * from './ErxV1CancelOrderParams';
|
|
101
|
+
export * from './ErxV1CancelOrderResponse';
|
|
102
|
+
export * from './ErxV1CancelPrescriptionParams';
|
|
103
|
+
export * from './ErxV1CancelPrescriptionResponse';
|
|
104
|
+
export * from './ErxV1MedicationSearchParams';
|
|
105
|
+
export * from './ErxV1MedicationSearchResponse';
|
|
106
|
+
export * from './ErxV2MedicationSearchParams';
|
|
107
|
+
export * from './ErxV2MedicationSearchResponse';
|
|
108
108
|
export * from './RoleListResponse';
|
|
109
109
|
export * from './RoleCreateParams';
|
|
110
110
|
export * from './RoleCreateResponse';
|
|
@@ -174,3 +174,16 @@ export * from './LabOrderableItemListResponse';
|
|
|
174
174
|
export * from './LabOrderableItemQuestionnaireGetParams';
|
|
175
175
|
export * from './LabOrderableItemQuestionnaireGetResponse';
|
|
176
176
|
export * from './LabOrderSubmitParams';
|
|
177
|
+
export * from './ErxSearchAllergensParams';
|
|
178
|
+
export * from './ErxSearchAllergensResponse';
|
|
179
|
+
export * from './ErxSearchMedicationsParams';
|
|
180
|
+
export * from './ErxSearchMedicationsResponse';
|
|
181
|
+
export * from './ErxCheckAllergyInteractionsParams';
|
|
182
|
+
export * from './ErxCheckAllergyInteractionsResponse';
|
|
183
|
+
export * from './ErxCheckMedicationInteractionsParams';
|
|
184
|
+
export * from './ErxCheckMedicationInteractionsResponse';
|
|
185
|
+
export * from './ErxCheckPrecheckInteractionsParams';
|
|
186
|
+
export * from './ErxCheckPrecheckInteractionsResponse';
|
|
187
|
+
export * from './ErxSyncPatientParams';
|
|
188
|
+
export * from './ErxConnectPractitionerParams';
|
|
189
|
+
export * from './ErxConnectPractitionerResponse';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type": "module"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/******************************************************************************
|
|
2
|
-
Copyright (c) Microsoft Corporation.
|
|
3
|
-
|
|
4
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
-
purpose with or without fee is hereby granted.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
***************************************************************************** */
|
|
15
|
-
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
19
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
20
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
21
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
22
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
23
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
24
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
29
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
30
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
31
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
35
|
-
var e = new Error(message);
|
|
36
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export { __awaiter, __classPrivateFieldGet };
|
|
40
|
-
//# sourceMappingURL=tslib.es6.js.map
|