@oystehr/sdk 3.0.16 → 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/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/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/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
|
@@ -42,14 +42,14 @@ export declare class Developer extends SDKResource {
|
|
|
42
42
|
*/
|
|
43
43
|
list(request?: OystehrClientRequest): Promise<DeveloperListResponse>;
|
|
44
44
|
/**
|
|
45
|
-
* Get Developers in the Project with pagination, sort, sort
|
|
45
|
+
* Get Developers 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.
|
|
46
46
|
*
|
|
47
47
|
* Access Policy Action: `Project:ListAllUsers`
|
|
48
48
|
* Access Policy Resource: `Project:Settings`
|
|
49
49
|
*/
|
|
50
50
|
listV2(params: DeveloperListV2Params, request?: OystehrClientRequest): Promise<DeveloperListV2Response>;
|
|
51
51
|
/**
|
|
52
|
-
* Get Developers in the Project with pagination, sort, sort
|
|
52
|
+
* Get Developers 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.
|
|
53
53
|
*
|
|
54
54
|
* Access Policy Action: `Project:ListAllUsers`
|
|
55
55
|
* Access Policy Resource: `Project:Settings`
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ErxCheckAllergyInteractionsParams, ErxCheckAllergyInteractionsResponse, ErxCheckMedicationInteractionsParams, ErxCheckMedicationInteractionsResponse, ErxCheckPrecheckInteractionsParams, ErxCheckPrecheckInteractionsResponse, ErxConnectPractitionerParams, ErxConnectPractitionerResponse, ErxSearchAllergensParams, ErxSearchAllergensResponse, ErxSearchMedicationsParams, ErxSearchMedicationsResponse, ErxSyncPatientParams, OystehrClientRequest } from '../..';
|
|
2
2
|
import { SDKResource } from '../../client/client';
|
|
3
3
|
import { OystehrConfig } from '../../config';
|
|
4
4
|
export declare class Erx extends SDKResource {
|
|
5
5
|
#private;
|
|
6
6
|
constructor(config: OystehrConfig);
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Search for allergens
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
searchAllergens(params: ErxSearchAllergensParams, request?: OystehrClientRequest): Promise<ErxSearchAllergensResponse>;
|
|
11
11
|
/**
|
|
12
|
-
* Search for
|
|
12
|
+
* Search for medications. Provide at least one of code or name filters
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
searchMedications(params: ErxSearchMedicationsParams, request?: OystehrClientRequest): Promise<ErxSearchMedicationsResponse>;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Checks for drug-allergy interactions for a patient. This endpoint requires the patient's allergies to be synced with the upstream eRx provider.
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
checkAllergyInteractions(params: ErxCheckAllergyInteractionsParams, request?: OystehrClientRequest): Promise<ErxCheckAllergyInteractionsResponse>;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Checks for drug-drug interactions for a patient. This endpoint requires the patient's medications to be synced with the upstream eRx provider.
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
checkMedicationInteractions(params: ErxCheckMedicationInteractionsParams, request?: OystehrClientRequest): Promise<ErxCheckMedicationInteractionsResponse>;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Checks for drug-allergy and drug-drug interactions with a specific drug for a patient. This endpoint requires the patient's allergies and medications to be synced with the upstream eRx provider.
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
checkPrecheckInteractions(params: ErxCheckPrecheckInteractionsParams, request?: OystehrClientRequest): Promise<ErxCheckPrecheckInteractionsResponse>;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Syncs demographic, allergy, and medication data for a patient with the upstream eRx provider.
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
syncPatient(params: ErxSyncPatientParams, request?: OystehrClientRequest): Promise<void>;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Create an SSO link for a practitioner. This link can be used to log in to the eRx service as the specified practitioner.
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
connectPractitioner(params: ErxConnectPractitionerParams, request?: OystehrClientRequest): Promise<ErxConnectPractitionerResponse>;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Create an SSO link for a practitioner. This link can be used to log in to the eRx service as the specified practitioner.
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
connectPractitioner(request?: OystehrClientRequest): Promise<ErxConnectPractitionerResponse>;
|
|
39
39
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ErxV1AllergySearchParams, ErxV1AllergySearchResponse, ErxV1CancelOrderParams, ErxV1CancelOrderResponse, ErxV1CancelPrescriptionParams, ErxV1CancelPrescriptionResponse, ErxV1MedicationSearchParams, ErxV1MedicationSearchResponse, ErxV1SyncPatientParams, ErxV1SyncPatientResponse, OystehrClientRequest } from '../..';
|
|
2
|
+
import { SDKResource } from '../../client/client';
|
|
3
|
+
import { OystehrConfig } from '../../config';
|
|
4
|
+
export declare class ErxV1 extends SDKResource {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(config: OystehrConfig);
|
|
7
|
+
/**
|
|
8
|
+
* Retrieve patient properties from FHIR service and sync them with eRx service
|
|
9
|
+
*/
|
|
10
|
+
syncPatient(params: ErxV1SyncPatientParams, request?: OystehrClientRequest): Promise<ErxV1SyncPatientResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Search for allergies
|
|
13
|
+
*/
|
|
14
|
+
allergySearch(params: ErxV1AllergySearchParams, request?: OystehrClientRequest): Promise<ErxV1AllergySearchResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Cancel photon order
|
|
17
|
+
*/
|
|
18
|
+
cancelOrder(params: ErxV1CancelOrderParams, request?: OystehrClientRequest): Promise<ErxV1CancelOrderResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Cancel photon prescription
|
|
21
|
+
*/
|
|
22
|
+
cancelPrescription(params: ErxV1CancelPrescriptionParams, request?: OystehrClientRequest): Promise<ErxV1CancelPrescriptionResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Search for medications. Provide at least one of code or name filters
|
|
25
|
+
*/
|
|
26
|
+
medicationSearch(params: ErxV1MedicationSearchParams, request?: OystehrClientRequest): Promise<ErxV1MedicationSearchResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Search for medications. Provide at least one of code or name filters
|
|
29
|
+
*/
|
|
30
|
+
medicationSearch(request?: OystehrClientRequest): Promise<ErxV1MedicationSearchResponse>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ErxV2MedicationSearchParams, ErxV2MedicationSearchResponse, OystehrClientRequest } from '../..';
|
|
2
|
+
import { SDKResource } from '../../client/client';
|
|
3
|
+
import { OystehrConfig } from '../../config';
|
|
4
|
+
export declare class ErxV2 extends SDKResource {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(config: OystehrConfig);
|
|
7
|
+
/**
|
|
8
|
+
* Search for medications. Provide at least one of code or name filters
|
|
9
|
+
*/
|
|
10
|
+
medicationSearch(params: ErxV2MedicationSearchParams, request?: OystehrClientRequest): Promise<ErxV2MedicationSearchResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Search for medications. Provide at least one of code or name filters
|
|
13
|
+
*/
|
|
14
|
+
medicationSearch(request?: OystehrClientRequest): Promise<ErxV2MedicationSearchResponse>;
|
|
15
|
+
}
|
|
@@ -4,6 +4,8 @@ import { Charge } from './charge';
|
|
|
4
4
|
import { Conversation } from './conversation';
|
|
5
5
|
import { Developer } from './developer';
|
|
6
6
|
import { Erx } from './erx';
|
|
7
|
+
import { ErxV1 } from './erxV1';
|
|
8
|
+
import { ErxV2 } from './erxV2';
|
|
7
9
|
import { Fax } from './fax';
|
|
8
10
|
import { Fhir } from './fhir';
|
|
9
11
|
import { Lab } from './lab';
|
|
@@ -33,7 +35,8 @@ export declare class Oystehr {
|
|
|
33
35
|
readonly charge: Charge;
|
|
34
36
|
readonly project: Project;
|
|
35
37
|
readonly rcm: Rcm;
|
|
36
|
-
readonly
|
|
38
|
+
readonly erxV1: ErxV1;
|
|
39
|
+
readonly erxV2: ErxV2;
|
|
37
40
|
readonly role: Role;
|
|
38
41
|
readonly secret: Secret;
|
|
39
42
|
readonly telemed: Telemed;
|
|
@@ -44,6 +47,7 @@ export declare class Oystehr {
|
|
|
44
47
|
readonly zambdaLogStream: ZambdaLogStream;
|
|
45
48
|
readonly fax: Fax;
|
|
46
49
|
readonly lab: Lab;
|
|
50
|
+
readonly erx: Erx;
|
|
47
51
|
readonly fhir: Fhir;
|
|
48
52
|
constructor(config: OystehrConfig);
|
|
49
53
|
}
|
|
@@ -49,14 +49,14 @@ export declare class M2m extends SDKResource {
|
|
|
49
49
|
*/
|
|
50
50
|
rotateSecret(params: M2mRotateSecretParams, request?: OystehrClientRequest): Promise<M2mRotateSecretResponse>;
|
|
51
51
|
/**
|
|
52
|
-
* Get M2M clients in the Project with pagination, sort, sort
|
|
52
|
+
* 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).
|
|
53
53
|
*
|
|
54
54
|
* Access Policy Action: `App:ListAllM2MClients`
|
|
55
55
|
* Access Policy Resource: `IAM:M2MClient`
|
|
56
56
|
*/
|
|
57
57
|
listV2(params: M2mListV2Params, request?: OystehrClientRequest): Promise<M2mListV2Response>;
|
|
58
58
|
/**
|
|
59
|
-
* Get M2M clients in the Project with pagination, sort, sort
|
|
59
|
+
* 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).
|
|
60
60
|
*
|
|
61
61
|
* Access Policy Action: `App:ListAllM2MClients`
|
|
62
62
|
* Access Policy Resource: `IAM:M2MClient`
|
|
@@ -48,14 +48,14 @@ export declare class User extends SDKResource {
|
|
|
48
48
|
*/
|
|
49
49
|
list(request?: OystehrClientRequest): Promise<UserListResponse>;
|
|
50
50
|
/**
|
|
51
|
-
* Get Users in the Project with pagination, sort, sort
|
|
51
|
+
* 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.
|
|
52
52
|
*
|
|
53
53
|
* Access Policy Action: `Project:ListAllUsers`
|
|
54
54
|
* Access Policy Resource: `Project:Settings`
|
|
55
55
|
*/
|
|
56
56
|
listV2(params: UserListV2Params, request?: OystehrClientRequest): Promise<UserListV2Response>;
|
|
57
57
|
/**
|
|
58
|
-
* Get Users in the Project with pagination, sort, sort
|
|
58
|
+
* 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.
|
|
59
59
|
*
|
|
60
60
|
* Access Policy Action: `Project:ListAllUsers`
|
|
61
61
|
* Access Policy Resource: `Project:Settings`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Success
|
|
3
|
+
*/
|
|
4
|
+
export type ErxCheckMedicationInteractionsResponse = {
|
|
5
|
+
/**
|
|
6
|
+
* Message describing the interaction.
|
|
7
|
+
*/
|
|
8
|
+
message: string;
|
|
9
|
+
/**
|
|
10
|
+
* Severity level of the interaction.
|
|
11
|
+
*/
|
|
12
|
+
severityLevel: 'MajorInteraction' | 'ModerateInteraction' | 'MinorInteraction' | 'Unknown';
|
|
13
|
+
/**
|
|
14
|
+
* List of drug IDs involved in the interaction.
|
|
15
|
+
*/
|
|
16
|
+
drugIds: number[];
|
|
17
|
+
/**
|
|
18
|
+
* Indicates if the interaction includes pending medications.
|
|
19
|
+
*/
|
|
20
|
+
includesPending: boolean;
|
|
21
|
+
}[];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Success
|
|
3
|
+
*/
|
|
4
|
+
export interface ErxCheckPrecheckInteractionsResponse {
|
|
5
|
+
allergies: {
|
|
6
|
+
/**
|
|
7
|
+
* Message describing the interaction.
|
|
8
|
+
*/
|
|
9
|
+
message: string;
|
|
10
|
+
}[];
|
|
11
|
+
medications: {
|
|
12
|
+
/**
|
|
13
|
+
* Message describing the interaction.
|
|
14
|
+
*/
|
|
15
|
+
message: string;
|
|
16
|
+
/**
|
|
17
|
+
* Severity level of the interaction.
|
|
18
|
+
*/
|
|
19
|
+
severityLevel: 'MajorInteraction' | 'ModerateInteraction' | 'MinorInteraction' | 'Unknown';
|
|
20
|
+
/**
|
|
21
|
+
* List of drug IDs involved in the interaction.
|
|
22
|
+
*/
|
|
23
|
+
drugIds: number[];
|
|
24
|
+
/**
|
|
25
|
+
* Indicates if the interaction includes pending medications.
|
|
26
|
+
*/
|
|
27
|
+
includesPending: boolean;
|
|
28
|
+
}[];
|
|
29
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Allergens
|
|
3
|
+
*/
|
|
4
|
+
export type ErxSearchAllergensResponse = {
|
|
5
|
+
/**
|
|
6
|
+
* The identifier for the allergen.
|
|
7
|
+
*/
|
|
8
|
+
id?: number;
|
|
9
|
+
/**
|
|
10
|
+
* Human readable name of allergen.
|
|
11
|
+
*/
|
|
12
|
+
name?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Type of allergen.
|
|
15
|
+
*/
|
|
16
|
+
type?: 'AllergenClass' | 'FoodAndEnvironmentalAllergens' | 'NoKnownAllergy' | 'RoutedDoseFormDrugs' | 'ScreenableIngredient';
|
|
17
|
+
/**
|
|
18
|
+
* Category of allergen.
|
|
19
|
+
*/
|
|
20
|
+
category?: 'CommonAllergens' | 'UncommonAllergens' | 'OtherBrandDrugs';
|
|
21
|
+
}[];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Medications
|
|
3
|
+
*/
|
|
4
|
+
export type ErxSearchMedicationsResponse = {
|
|
5
|
+
/**
|
|
6
|
+
* The identifier for the medication.
|
|
7
|
+
*/
|
|
8
|
+
id: number;
|
|
9
|
+
/**
|
|
10
|
+
* The identifier for the combination of route, dose form, and drug.
|
|
11
|
+
*/
|
|
12
|
+
routedDoseFormDrugId: number;
|
|
13
|
+
/**
|
|
14
|
+
* Human readable name of medication.
|
|
15
|
+
*/
|
|
16
|
+
name: string;
|
|
17
|
+
/**
|
|
18
|
+
* RxNorm Concept Unique (RxCUI) identifier of medication.
|
|
19
|
+
*/
|
|
20
|
+
rxcui: number | null;
|
|
21
|
+
/**
|
|
22
|
+
* RxNorm Concept Unique (RxCUI) identifier of medication.
|
|
23
|
+
*/
|
|
24
|
+
ndc: string | null;
|
|
25
|
+
strength: string;
|
|
26
|
+
isObsolete: boolean;
|
|
27
|
+
}[];
|
|
@@ -91,18 +91,18 @@ export * from './RcmValidateProfessionalClaimParams';
|
|
|
91
91
|
export * from './RcmValidateProfessionalClaimResponse';
|
|
92
92
|
export * from './RcmSubmitProfessionalClaimParams';
|
|
93
93
|
export * from './RcmSubmitProfessionalClaimResponse';
|
|
94
|
-
export * from './
|
|
95
|
-
export * from './
|
|
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 './
|
|
94
|
+
export * from './ErxV1SyncPatientParams';
|
|
95
|
+
export * from './ErxV1SyncPatientResponse';
|
|
96
|
+
export * from './ErxV1AllergySearchParams';
|
|
97
|
+
export * from './ErxV1AllergySearchResponse';
|
|
98
|
+
export * from './ErxV1CancelOrderParams';
|
|
99
|
+
export * from './ErxV1CancelOrderResponse';
|
|
100
|
+
export * from './ErxV1CancelPrescriptionParams';
|
|
101
|
+
export * from './ErxV1CancelPrescriptionResponse';
|
|
102
|
+
export * from './ErxV1MedicationSearchParams';
|
|
103
|
+
export * from './ErxV1MedicationSearchResponse';
|
|
104
|
+
export * from './ErxV2MedicationSearchParams';
|
|
105
|
+
export * from './ErxV2MedicationSearchResponse';
|
|
106
106
|
export * from './RoleListResponse';
|
|
107
107
|
export * from './RoleCreateParams';
|
|
108
108
|
export * from './RoleCreateResponse';
|
|
@@ -172,3 +172,16 @@ export * from './LabOrderableItemListResponse';
|
|
|
172
172
|
export * from './LabOrderableItemQuestionnaireGetParams';
|
|
173
173
|
export * from './LabOrderableItemQuestionnaireGetResponse';
|
|
174
174
|
export * from './LabOrderSubmitParams';
|
|
175
|
+
export * from './ErxSearchAllergensParams';
|
|
176
|
+
export * from './ErxSearchAllergensResponse';
|
|
177
|
+
export * from './ErxSearchMedicationsParams';
|
|
178
|
+
export * from './ErxSearchMedicationsResponse';
|
|
179
|
+
export * from './ErxCheckAllergyInteractionsParams';
|
|
180
|
+
export * from './ErxCheckAllergyInteractionsResponse';
|
|
181
|
+
export * from './ErxCheckMedicationInteractionsParams';
|
|
182
|
+
export * from './ErxCheckMedicationInteractionsResponse';
|
|
183
|
+
export * from './ErxCheckPrecheckInteractionsParams';
|
|
184
|
+
export * from './ErxCheckPrecheckInteractionsResponse';
|
|
185
|
+
export * from './ErxSyncPatientParams';
|
|
186
|
+
export * from './ErxConnectPractitionerParams';
|
|
187
|
+
export * from './ErxConnectPractitionerResponse';
|
package/dist/esm/config.d.ts
CHANGED
|
@@ -13,10 +13,11 @@ export interface OystehrConfig {
|
|
|
13
13
|
fhirApiUrl?: string;
|
|
14
14
|
projectApiUrl?: string;
|
|
15
15
|
services?: {
|
|
16
|
+
erxApiUrl?: string;
|
|
16
17
|
faxApiUrl?: string;
|
|
17
18
|
fhirApiUrl?: string;
|
|
18
|
-
projectApiUrl?: string;
|
|
19
19
|
labApiUrl?: string;
|
|
20
|
+
projectApiUrl?: string;
|
|
20
21
|
};
|
|
21
22
|
/**
|
|
22
23
|
* Optionally provide a custom fetch implementation. This must conform to the
|