@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.
Files changed (127) hide show
  1. package/dist/cjs/config.d.ts +2 -1
  2. package/dist/cjs/index.cjs +82 -12
  3. package/dist/cjs/index.cjs.map +1 -1
  4. package/dist/cjs/index.min.cjs +1 -1
  5. package/dist/cjs/index.min.cjs.map +1 -1
  6. package/dist/cjs/resources/classes/developer.d.ts +2 -2
  7. package/dist/cjs/resources/classes/erx.d.ts +17 -17
  8. package/dist/cjs/resources/classes/erxV1.d.ts +31 -0
  9. package/dist/cjs/resources/classes/erxV2.d.ts +15 -0
  10. package/dist/cjs/resources/classes/index.d.ts +5 -1
  11. package/dist/cjs/resources/classes/m2m.d.ts +2 -2
  12. package/dist/cjs/resources/classes/user.d.ts +2 -2
  13. package/dist/cjs/resources/types/ErxCheckAllergyInteractionsParams.d.ts +3 -0
  14. package/dist/cjs/resources/types/ErxCheckAllergyInteractionsResponse.d.ts +9 -0
  15. package/dist/cjs/resources/types/ErxCheckMedicationInteractionsParams.d.ts +3 -0
  16. package/dist/cjs/resources/types/ErxCheckMedicationInteractionsResponse.d.ts +21 -0
  17. package/dist/cjs/resources/types/ErxCheckPrecheckInteractionsParams.d.ts +4 -0
  18. package/dist/cjs/resources/types/ErxCheckPrecheckInteractionsResponse.d.ts +29 -0
  19. package/dist/cjs/resources/types/ErxConnectPractitionerParams.d.ts +4 -0
  20. package/dist/cjs/resources/types/ErxConnectPractitionerResponse.d.ts +9 -0
  21. package/dist/cjs/resources/types/ErxSearchAllergensParams.d.ts +3 -0
  22. package/dist/cjs/resources/types/ErxSearchAllergensResponse.d.ts +21 -0
  23. package/dist/cjs/resources/types/ErxSearchMedicationsParams.d.ts +3 -0
  24. package/dist/cjs/resources/types/ErxSearchMedicationsResponse.d.ts +27 -0
  25. package/dist/cjs/resources/types/ErxV1AllergySearchParams.d.ts +3 -0
  26. package/dist/{esm/resources/types/ErxAllergySearchResponse.d.ts → cjs/resources/types/ErxV1AllergySearchResponse.d.ts} +1 -1
  27. package/dist/{esm/resources/types/ErxCancelOrderParams.d.ts → cjs/resources/types/ErxV1CancelOrderParams.d.ts} +1 -1
  28. package/dist/{esm/resources/types/ErxCancelOrderResponse.d.ts → cjs/resources/types/ErxV1CancelOrderResponse.d.ts} +1 -1
  29. package/dist/cjs/resources/types/{ErxCancelPrescriptionParams.d.ts → ErxV1CancelPrescriptionParams.d.ts} +1 -1
  30. package/dist/cjs/resources/types/{ErxCancelPrescriptionResponse.d.ts → ErxV1CancelPrescriptionResponse.d.ts} +1 -1
  31. package/dist/cjs/resources/types/{ErxMedicationSearchParams.d.ts → ErxV1MedicationSearchParams.d.ts} +1 -1
  32. package/dist/cjs/resources/types/{ErxMedicationSearchResponse.d.ts → ErxV1MedicationSearchResponse.d.ts} +1 -1
  33. package/dist/cjs/resources/types/ErxV1SyncPatientParams.d.ts +3 -0
  34. package/dist/{esm/resources/types/ErxSyncPatientResponse.d.ts → cjs/resources/types/ErxV1SyncPatientResponse.d.ts} +1 -1
  35. package/dist/cjs/resources/types/ErxV2MedicationSearchParams.d.ts +4 -0
  36. package/dist/cjs/resources/types/{ErxMedicationSearchV2Response.d.ts → ErxV2MedicationSearchResponse.d.ts} +1 -1
  37. package/dist/cjs/resources/types/index.d.ts +25 -12
  38. package/dist/esm/config.d.ts +2 -1
  39. package/dist/esm/index.min.js +1 -1
  40. package/dist/esm/index.min.js.map +1 -1
  41. package/dist/esm/resources/classes/developer.d.ts +2 -2
  42. package/dist/esm/resources/classes/developer.js +1 -1
  43. package/dist/esm/resources/classes/developer.js.map +1 -1
  44. package/dist/esm/resources/classes/erx.d.ts +17 -17
  45. package/dist/esm/resources/classes/erx.js +25 -19
  46. package/dist/esm/resources/classes/erx.js.map +1 -1
  47. package/dist/esm/resources/classes/erxV1.d.ts +31 -0
  48. package/dist/esm/resources/classes/erxV1.js +48 -0
  49. package/dist/esm/resources/classes/erxV1.js.map +1 -0
  50. package/dist/esm/resources/classes/erxV2.d.ts +15 -0
  51. package/dist/esm/resources/classes/erxV2.js +24 -0
  52. package/dist/esm/resources/classes/erxV2.js.map +1 -0
  53. package/dist/esm/resources/classes/index.d.ts +5 -1
  54. package/dist/esm/resources/classes/index.js +5 -1
  55. package/dist/esm/resources/classes/index.js.map +1 -1
  56. package/dist/esm/resources/classes/m2m.d.ts +2 -2
  57. package/dist/esm/resources/classes/m2m.js +1 -1
  58. package/dist/esm/resources/classes/m2m.js.map +1 -1
  59. package/dist/esm/resources/classes/user.d.ts +2 -2
  60. package/dist/esm/resources/classes/user.js +1 -1
  61. package/dist/esm/resources/classes/user.js.map +1 -1
  62. package/dist/esm/resources/types/ErxCheckAllergyInteractionsParams.d.ts +3 -0
  63. package/dist/esm/resources/types/ErxCheckAllergyInteractionsResponse.d.ts +9 -0
  64. package/dist/esm/resources/types/ErxCheckMedicationInteractionsParams.d.ts +3 -0
  65. package/dist/esm/resources/types/ErxCheckMedicationInteractionsResponse.d.ts +21 -0
  66. package/dist/esm/resources/types/ErxCheckPrecheckInteractionsParams.d.ts +4 -0
  67. package/dist/esm/resources/types/ErxCheckPrecheckInteractionsResponse.d.ts +29 -0
  68. package/dist/esm/resources/types/ErxConnectPractitionerParams.d.ts +4 -0
  69. package/dist/esm/resources/types/ErxConnectPractitionerResponse.d.ts +9 -0
  70. package/dist/esm/resources/types/ErxSearchAllergensParams.d.ts +3 -0
  71. package/dist/esm/resources/types/ErxSearchAllergensResponse.d.ts +21 -0
  72. package/dist/esm/resources/types/ErxSearchMedicationsParams.d.ts +3 -0
  73. package/dist/esm/resources/types/ErxSearchMedicationsResponse.d.ts +27 -0
  74. package/dist/esm/resources/types/ErxV1AllergySearchParams.d.ts +3 -0
  75. package/dist/{cjs/resources/types/ErxAllergySearchResponse.d.ts → esm/resources/types/ErxV1AllergySearchResponse.d.ts} +1 -1
  76. package/dist/{cjs/resources/types/ErxCancelOrderParams.d.ts → esm/resources/types/ErxV1CancelOrderParams.d.ts} +1 -1
  77. package/dist/{cjs/resources/types/ErxCancelOrderResponse.d.ts → esm/resources/types/ErxV1CancelOrderResponse.d.ts} +1 -1
  78. package/dist/esm/resources/types/{ErxCancelPrescriptionParams.d.ts → ErxV1CancelPrescriptionParams.d.ts} +1 -1
  79. package/dist/esm/resources/types/{ErxCancelPrescriptionResponse.d.ts → ErxV1CancelPrescriptionResponse.d.ts} +1 -1
  80. package/dist/esm/resources/types/{ErxMedicationSearchParams.d.ts → ErxV1MedicationSearchParams.d.ts} +1 -1
  81. package/dist/esm/resources/types/{ErxMedicationSearchResponse.d.ts → ErxV1MedicationSearchResponse.d.ts} +1 -1
  82. package/dist/esm/resources/types/ErxV1SyncPatientParams.d.ts +3 -0
  83. package/dist/{cjs/resources/types/ErxSyncPatientResponse.d.ts → esm/resources/types/ErxV1SyncPatientResponse.d.ts} +1 -1
  84. package/dist/esm/resources/types/ErxV2MedicationSearchParams.d.ts +4 -0
  85. package/dist/esm/resources/types/{ErxMedicationSearchV2Response.d.ts → ErxV2MedicationSearchResponse.d.ts} +1 -1
  86. package/dist/esm/resources/types/index.d.ts +25 -12
  87. package/package.json +3 -3
  88. package/src/config.ts +2 -1
  89. package/src/resources/classes/developer.ts +3 -3
  90. package/src/resources/classes/erx.ts +68 -51
  91. package/src/resources/classes/erxV1.ts +73 -0
  92. package/src/resources/classes/erxV2.ts +34 -0
  93. package/src/resources/classes/index.ts +8 -2
  94. package/src/resources/classes/m2m.ts +3 -3
  95. package/src/resources/classes/user.ts +3 -3
  96. package/src/resources/types/ErxCheckAllergyInteractionsParams.ts +5 -0
  97. package/src/resources/types/ErxCheckAllergyInteractionsResponse.ts +11 -0
  98. package/src/resources/types/ErxCheckMedicationInteractionsParams.ts +5 -0
  99. package/src/resources/types/ErxCheckMedicationInteractionsResponse.ts +23 -0
  100. package/src/resources/types/ErxCheckPrecheckInteractionsParams.ts +6 -0
  101. package/src/resources/types/ErxCheckPrecheckInteractionsResponse.ts +31 -0
  102. package/src/resources/types/ErxConnectPractitionerParams.ts +6 -0
  103. package/src/resources/types/ErxConnectPractitionerResponse.ts +11 -0
  104. package/src/resources/types/{ErxAllergySearchParams.ts → ErxSearchAllergensParams.ts} +1 -1
  105. package/src/resources/types/ErxSearchAllergensResponse.ts +28 -0
  106. package/src/resources/types/ErxSearchMedicationsParams.ts +5 -0
  107. package/src/resources/types/ErxSearchMedicationsResponse.ts +29 -0
  108. package/src/resources/types/ErxV1AllergySearchParams.ts +5 -0
  109. package/src/resources/types/{ErxAllergySearchResponse.ts → ErxV1AllergySearchResponse.ts} +1 -1
  110. package/src/resources/types/{ErxCancelOrderParams.ts → ErxV1CancelOrderParams.ts} +1 -1
  111. package/src/resources/types/{ErxCancelOrderResponse.ts → ErxV1CancelOrderResponse.ts} +1 -1
  112. package/src/resources/types/{ErxCancelPrescriptionParams.ts → ErxV1CancelPrescriptionParams.ts} +1 -1
  113. package/src/resources/types/{ErxCancelPrescriptionResponse.ts → ErxV1CancelPrescriptionResponse.ts} +1 -1
  114. package/src/resources/types/{ErxMedicationSearchParams.ts → ErxV1MedicationSearchParams.ts} +1 -1
  115. package/src/resources/types/{ErxMedicationSearchResponse.ts → ErxV1MedicationSearchResponse.ts} +1 -1
  116. package/src/resources/types/ErxV1SyncPatientParams.ts +5 -0
  117. package/src/resources/types/{ErxSyncPatientResponse.ts → ErxV1SyncPatientResponse.ts} +1 -1
  118. package/src/resources/types/{ErxMedicationSearchV2Params.ts → ErxV2MedicationSearchParams.ts} +1 -1
  119. package/src/resources/types/{ErxMedicationSearchV2Response.ts → ErxV2MedicationSearchResponse.ts} +1 -1
  120. package/src/resources/types/index.ts +25 -12
  121. package/dist/cjs/resources/types/ErxAllergySearchParams.d.ts +0 -3
  122. package/dist/cjs/resources/types/ErxMedicationSearchV2Params.d.ts +0 -4
  123. package/dist/esm/node_modules/tslib/package.json +0 -1
  124. package/dist/esm/node_modules/tslib/tslib.es6.js +0 -40
  125. package/dist/esm/node_modules/tslib/tslib.es6.js.map +0 -1
  126. package/dist/esm/resources/types/ErxAllergySearchParams.d.ts +0 -3
  127. 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 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.
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 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
+ * 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 { ErxAllergySearchParams, ErxAllergySearchResponse, ErxCancelOrderParams, ErxCancelOrderResponse, ErxCancelPrescriptionParams, ErxCancelPrescriptionResponse, ErxMedicationSearchParams, ErxMedicationSearchResponse, ErxMedicationSearchV2Params, ErxMedicationSearchV2Response, ErxSyncPatientParams, ErxSyncPatientResponse, OystehrClientRequest } from '../..';
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
- * Retrieve patient properties from FHIR service and sync them with eRx service
8
+ * Search for allergens
9
9
  */
10
- syncPatient(params: ErxSyncPatientParams, request?: OystehrClientRequest): Promise<ErxSyncPatientResponse>;
10
+ searchAllergens(params: ErxSearchAllergensParams, request?: OystehrClientRequest): Promise<ErxSearchAllergensResponse>;
11
11
  /**
12
- * Search for allergies
12
+ * Search for medications. Provide at least one of code or name filters
13
13
  */
14
- allergySearch(params: ErxAllergySearchParams, request?: OystehrClientRequest): Promise<ErxAllergySearchResponse>;
14
+ searchMedications(params: ErxSearchMedicationsParams, request?: OystehrClientRequest): Promise<ErxSearchMedicationsResponse>;
15
15
  /**
16
- * Cancel photon order
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
- cancelOrder(params: ErxCancelOrderParams, request?: OystehrClientRequest): Promise<ErxCancelOrderResponse>;
18
+ checkAllergyInteractions(params: ErxCheckAllergyInteractionsParams, request?: OystehrClientRequest): Promise<ErxCheckAllergyInteractionsResponse>;
19
19
  /**
20
- * Cancel photon prescription
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
- cancelPrescription(params: ErxCancelPrescriptionParams, request?: OystehrClientRequest): Promise<ErxCancelPrescriptionResponse>;
22
+ checkMedicationInteractions(params: ErxCheckMedicationInteractionsParams, request?: OystehrClientRequest): Promise<ErxCheckMedicationInteractionsResponse>;
23
23
  /**
24
- * Search for medications. Provide at least one of code or name filters
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
- medicationSearch(params: ErxMedicationSearchParams, request?: OystehrClientRequest): Promise<ErxMedicationSearchResponse>;
26
+ checkPrecheckInteractions(params: ErxCheckPrecheckInteractionsParams, request?: OystehrClientRequest): Promise<ErxCheckPrecheckInteractionsResponse>;
27
27
  /**
28
- * Search for medications. Provide at least one of code or name filters
28
+ * Syncs demographic, allergy, and medication data for a patient with the upstream eRx provider.
29
29
  */
30
- medicationSearch(request?: OystehrClientRequest): Promise<ErxMedicationSearchResponse>;
30
+ syncPatient(params: ErxSyncPatientParams, request?: OystehrClientRequest): Promise<void>;
31
31
  /**
32
- * Search for medications. Provide at least one of code or name filters
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
- medicationSearchV2(params: ErxMedicationSearchV2Params, request?: OystehrClientRequest): Promise<ErxMedicationSearchV2Response>;
34
+ connectPractitioner(params: ErxConnectPractitionerParams, request?: OystehrClientRequest): Promise<ErxConnectPractitionerResponse>;
35
35
  /**
36
- * Search for medications. Provide at least one of code or name filters
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
- medicationSearchV2(request?: OystehrClientRequest): Promise<ErxMedicationSearchV2Response>;
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 erx: Erx;
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 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).
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 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).
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 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.
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 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.
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,3 @@
1
+ export interface ErxCheckAllergyInteractionsParams {
2
+ patientId: string;
3
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Success
3
+ */
4
+ export type ErxCheckAllergyInteractionsResponse = {
5
+ /**
6
+ * Message describing the interaction.
7
+ */
8
+ message: string;
9
+ }[];
@@ -0,0 +1,3 @@
1
+ export interface ErxCheckMedicationInteractionsParams {
2
+ patientId: string;
3
+ }
@@ -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,4 @@
1
+ export interface ErxCheckPrecheckInteractionsParams {
2
+ patientId: string;
3
+ drugId: string;
4
+ }
@@ -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,4 @@
1
+ export interface ErxConnectPractitionerParams {
2
+ patientId?: string;
3
+ encounterId?: string;
4
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Success
3
+ */
4
+ export interface ErxConnectPractitionerResponse {
5
+ /**
6
+ * The SSO link for the practitioner.
7
+ */
8
+ ssoLink: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ export interface ErxSearchAllergensParams {
2
+ name: string;
3
+ }
@@ -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,3 @@
1
+ export interface ErxSearchMedicationsParams {
2
+ name: string;
3
+ }
@@ -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
+ }[];
@@ -0,0 +1,3 @@
1
+ export interface ErxV1AllergySearchParams {
2
+ name: string;
3
+ }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Allergens
3
3
  */
4
- export interface ErxAllergySearchResponse {
4
+ export interface ErxV1AllergySearchResponse {
5
5
  allergens?: {
6
6
  /**
7
7
  * The Photon identifier for the allergen.
@@ -1,4 +1,4 @@
1
- export interface ErxCancelOrderParams {
1
+ export interface ErxV1CancelOrderParams {
2
2
  /**
3
3
  * A photon id of the order to cancel.
4
4
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Cancelled order
3
3
  */
4
- export interface ErxCancelOrderResponse {
4
+ export interface ErxV1CancelOrderResponse {
5
5
  orderId: string;
6
6
  }
@@ -1,4 +1,4 @@
1
- export interface ErxCancelPrescriptionParams {
1
+ export interface ErxV1CancelPrescriptionParams {
2
2
  /**
3
3
  * A photon id of the prescription to cancel.
4
4
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Cancelled prescription
3
3
  */
4
- export interface ErxCancelPrescriptionResponse {
4
+ export interface ErxV1CancelPrescriptionResponse {
5
5
  prescriptionId: string;
6
6
  }
@@ -1,4 +1,4 @@
1
- export interface ErxMedicationSearchParams {
1
+ export interface ErxV1MedicationSearchParams {
2
2
  name?: string;
3
3
  code?: string;
4
4
  after?: string;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Medications
3
3
  */
4
- export interface ErxMedicationSearchResponse {
4
+ export interface ErxV1MedicationSearchResponse {
5
5
  medications?: {
6
6
  /**
7
7
  * The Photon identifier for the medication.
@@ -0,0 +1,3 @@
1
+ export interface ErxV1SyncPatientParams {
2
+ patientId: string;
3
+ }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Photon sync response
3
3
  */
4
- export interface ErxSyncPatientResponse {
4
+ export interface ErxV1SyncPatientResponse {
5
5
  /**
6
6
  * The Photon identifier for the patient.
7
7
  */
@@ -0,0 +1,4 @@
1
+ export interface ErxV2MedicationSearchParams {
2
+ name?: string;
3
+ code?: string;
4
+ }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Medications
3
3
  */
4
- export interface ErxMedicationSearchV2Response {
4
+ export interface ErxV2MedicationSearchResponse {
5
5
  medications?: {
6
6
  /**
7
7
  * Internal identifier for the medication.
@@ -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 './ErxSyncPatientParams';
95
- export * from './ErxSyncPatientResponse';
96
- export * from './ErxAllergySearchParams';
97
- export * from './ErxAllergySearchResponse';
98
- export * from './ErxCancelOrderParams';
99
- export * from './ErxCancelOrderResponse';
100
- export * from './ErxCancelPrescriptionParams';
101
- export * from './ErxCancelPrescriptionResponse';
102
- export * from './ErxMedicationSearchParams';
103
- export * from './ErxMedicationSearchResponse';
104
- export * from './ErxMedicationSearchV2Params';
105
- export * from './ErxMedicationSearchV2Response';
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';
@@ -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