@oystehr/sdk 4.1.8 → 4.1.10

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 (137) hide show
  1. package/dist/cjs/client/client.cjs.map +1 -1
  2. package/dist/cjs/errors/index.cjs.map +1 -1
  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/application.cjs.map +1 -1
  7. package/dist/cjs/resources/classes/charge.cjs.map +1 -1
  8. package/dist/cjs/resources/classes/conversation-ext.cjs.map +1 -1
  9. package/dist/cjs/resources/classes/conversation.cjs.map +1 -1
  10. package/dist/cjs/resources/classes/developer.cjs.map +1 -1
  11. package/dist/cjs/resources/classes/erx.cjs.map +1 -1
  12. package/dist/cjs/resources/classes/fax.cjs.map +1 -1
  13. package/dist/cjs/resources/classes/fhir-ext.cjs +14 -1
  14. package/dist/cjs/resources/classes/fhir-ext.cjs.map +1 -1
  15. package/dist/cjs/resources/classes/fhir.cjs.map +1 -1
  16. package/dist/cjs/resources/classes/index.cjs +0 -6
  17. package/dist/cjs/resources/classes/index.cjs.map +1 -1
  18. package/dist/cjs/resources/classes/index.d.ts +0 -4
  19. package/dist/cjs/resources/classes/lab.cjs.map +1 -1
  20. package/dist/cjs/resources/classes/m2m.cjs.map +1 -1
  21. package/dist/cjs/resources/classes/messaging.cjs.map +1 -1
  22. package/dist/cjs/resources/classes/paymentMethod.cjs.map +1 -1
  23. package/dist/cjs/resources/classes/project.cjs.map +1 -1
  24. package/dist/cjs/resources/classes/rcm.cjs.map +1 -1
  25. package/dist/cjs/resources/classes/role.cjs.map +1 -1
  26. package/dist/cjs/resources/classes/secret.cjs.map +1 -1
  27. package/dist/cjs/resources/classes/telemed.cjs.map +1 -1
  28. package/dist/cjs/resources/classes/transactionalSMS.cjs.map +1 -1
  29. package/dist/cjs/resources/classes/user.cjs +9 -0
  30. package/dist/cjs/resources/classes/user.cjs.map +1 -1
  31. package/dist/cjs/resources/classes/user.d.ts +8 -1
  32. package/dist/cjs/resources/classes/version.cjs.map +1 -1
  33. package/dist/cjs/resources/classes/z3-ext.cjs.map +1 -1
  34. package/dist/cjs/resources/classes/z3.cjs.map +1 -1
  35. package/dist/cjs/resources/classes/zambda-ext.cjs.map +1 -1
  36. package/dist/cjs/resources/classes/zambda.cjs.map +1 -1
  37. package/dist/cjs/resources/classes/zambdaLogStream.cjs.map +1 -1
  38. package/dist/cjs/resources/types/UserResetPasswordLinkParams.d.ts +7 -0
  39. package/dist/cjs/resources/types/UserUpdateParams.d.ts +4 -0
  40. package/dist/cjs/resources/types/index.d.ts +1 -12
  41. package/dist/esm/client/client.js.map +1 -1
  42. package/dist/esm/errors/index.js.map +1 -1
  43. package/dist/esm/index.js.map +1 -1
  44. package/dist/esm/index.min.js +1 -1
  45. package/dist/esm/index.min.js.map +1 -1
  46. package/dist/esm/resources/classes/application.js.map +1 -1
  47. package/dist/esm/resources/classes/charge.js.map +1 -1
  48. package/dist/esm/resources/classes/conversation-ext.js.map +1 -1
  49. package/dist/esm/resources/classes/conversation.js.map +1 -1
  50. package/dist/esm/resources/classes/developer.js.map +1 -1
  51. package/dist/esm/resources/classes/erx.js.map +1 -1
  52. package/dist/esm/resources/classes/fax.js.map +1 -1
  53. package/dist/esm/resources/classes/fhir-ext.js +14 -1
  54. package/dist/esm/resources/classes/fhir-ext.js.map +1 -1
  55. package/dist/esm/resources/classes/fhir.js.map +1 -1
  56. package/dist/esm/resources/classes/index.d.ts +0 -4
  57. package/dist/esm/resources/classes/index.js +0 -6
  58. package/dist/esm/resources/classes/index.js.map +1 -1
  59. package/dist/esm/resources/classes/lab.js.map +1 -1
  60. package/dist/esm/resources/classes/m2m.js.map +1 -1
  61. package/dist/esm/resources/classes/messaging.js.map +1 -1
  62. package/dist/esm/resources/classes/paymentMethod.js.map +1 -1
  63. package/dist/esm/resources/classes/project.js.map +1 -1
  64. package/dist/esm/resources/classes/rcm.js.map +1 -1
  65. package/dist/esm/resources/classes/role.js.map +1 -1
  66. package/dist/esm/resources/classes/secret.js.map +1 -1
  67. package/dist/esm/resources/classes/telemed.js.map +1 -1
  68. package/dist/esm/resources/classes/transactionalSMS.js.map +1 -1
  69. package/dist/esm/resources/classes/user.d.ts +8 -1
  70. package/dist/esm/resources/classes/user.js +9 -0
  71. package/dist/esm/resources/classes/user.js.map +1 -1
  72. package/dist/esm/resources/classes/version.js.map +1 -1
  73. package/dist/esm/resources/classes/z3-ext.js.map +1 -1
  74. package/dist/esm/resources/classes/z3.js.map +1 -1
  75. package/dist/esm/resources/classes/zambda-ext.js.map +1 -1
  76. package/dist/esm/resources/classes/zambda.js.map +1 -1
  77. package/dist/esm/resources/classes/zambdaLogStream.js.map +1 -1
  78. package/dist/esm/resources/types/UserResetPasswordLinkParams.d.ts +7 -0
  79. package/dist/esm/resources/types/UserUpdateParams.d.ts +4 -0
  80. package/dist/esm/resources/types/index.d.ts +1 -12
  81. package/package.json +5 -3
  82. package/src/resources/classes/fhir-ext.ts +16 -1
  83. package/src/resources/classes/index.ts +0 -6
  84. package/src/resources/classes/user.ts +10 -0
  85. package/src/resources/types/UserResetPasswordLinkParams.ts +9 -0
  86. package/src/resources/types/UserUpdateParams.ts +4 -0
  87. package/src/resources/types/index.ts +1 -12
  88. package/dist/cjs/resources/classes/erxV1.cjs +0 -46
  89. package/dist/cjs/resources/classes/erxV1.cjs.map +0 -1
  90. package/dist/cjs/resources/classes/erxV1.d.ts +0 -31
  91. package/dist/cjs/resources/classes/erxV2.cjs +0 -22
  92. package/dist/cjs/resources/classes/erxV2.cjs.map +0 -1
  93. package/dist/cjs/resources/classes/erxV2.d.ts +0 -15
  94. package/dist/cjs/resources/types/ErxV1AllergySearchParams.d.ts +0 -3
  95. package/dist/cjs/resources/types/ErxV1AllergySearchResponse.d.ts +0 -19
  96. package/dist/cjs/resources/types/ErxV1CancelOrderParams.d.ts +0 -6
  97. package/dist/cjs/resources/types/ErxV1CancelOrderResponse.d.ts +0 -6
  98. package/dist/cjs/resources/types/ErxV1CancelPrescriptionParams.d.ts +0 -6
  99. package/dist/cjs/resources/types/ErxV1CancelPrescriptionResponse.d.ts +0 -6
  100. package/dist/cjs/resources/types/ErxV1MedicationSearchParams.d.ts +0 -6
  101. package/dist/cjs/resources/types/ErxV1MedicationSearchResponse.d.ts +0 -38
  102. package/dist/cjs/resources/types/ErxV1SyncPatientParams.d.ts +0 -3
  103. package/dist/cjs/resources/types/ErxV1SyncPatientResponse.d.ts +0 -9
  104. package/dist/cjs/resources/types/ErxV2MedicationSearchParams.d.ts +0 -4
  105. package/dist/cjs/resources/types/ErxV2MedicationSearchResponse.d.ts +0 -38
  106. package/dist/esm/resources/classes/erxV1.d.ts +0 -31
  107. package/dist/esm/resources/classes/erxV1.js +0 -44
  108. package/dist/esm/resources/classes/erxV1.js.map +0 -1
  109. package/dist/esm/resources/classes/erxV2.d.ts +0 -15
  110. package/dist/esm/resources/classes/erxV2.js +0 -20
  111. package/dist/esm/resources/classes/erxV2.js.map +0 -1
  112. package/dist/esm/resources/types/ErxV1AllergySearchParams.d.ts +0 -3
  113. package/dist/esm/resources/types/ErxV1AllergySearchResponse.d.ts +0 -19
  114. package/dist/esm/resources/types/ErxV1CancelOrderParams.d.ts +0 -6
  115. package/dist/esm/resources/types/ErxV1CancelOrderResponse.d.ts +0 -6
  116. package/dist/esm/resources/types/ErxV1CancelPrescriptionParams.d.ts +0 -6
  117. package/dist/esm/resources/types/ErxV1CancelPrescriptionResponse.d.ts +0 -6
  118. package/dist/esm/resources/types/ErxV1MedicationSearchParams.d.ts +0 -6
  119. package/dist/esm/resources/types/ErxV1MedicationSearchResponse.d.ts +0 -38
  120. package/dist/esm/resources/types/ErxV1SyncPatientParams.d.ts +0 -3
  121. package/dist/esm/resources/types/ErxV1SyncPatientResponse.d.ts +0 -9
  122. package/dist/esm/resources/types/ErxV2MedicationSearchParams.d.ts +0 -4
  123. package/dist/esm/resources/types/ErxV2MedicationSearchResponse.d.ts +0 -38
  124. package/src/resources/classes/erxV1.ts +0 -73
  125. package/src/resources/classes/erxV2.ts +0 -34
  126. package/src/resources/types/ErxV1AllergySearchParams.ts +0 -5
  127. package/src/resources/types/ErxV1AllergySearchResponse.ts +0 -21
  128. package/src/resources/types/ErxV1CancelOrderParams.ts +0 -8
  129. package/src/resources/types/ErxV1CancelOrderResponse.ts +0 -8
  130. package/src/resources/types/ErxV1CancelPrescriptionParams.ts +0 -8
  131. package/src/resources/types/ErxV1CancelPrescriptionResponse.ts +0 -8
  132. package/src/resources/types/ErxV1MedicationSearchParams.ts +0 -8
  133. package/src/resources/types/ErxV1MedicationSearchResponse.ts +0 -40
  134. package/src/resources/types/ErxV1SyncPatientParams.ts +0 -5
  135. package/src/resources/types/ErxV1SyncPatientResponse.ts +0 -11
  136. package/src/resources/types/ErxV2MedicationSearchParams.ts +0 -6
  137. package/src/resources/types/ErxV2MedicationSearchResponse.ts +0 -40
@@ -1,46 +0,0 @@
1
- 'use strict';
2
-
3
- var client = require('../../client/client.cjs');
4
-
5
- // AUTOGENERATED -- DO NOT EDIT
6
- class ErxV1 extends client.SDKResource {
7
- constructor(config) {
8
- super(config);
9
- }
10
- #baseUrlThunk() {
11
- return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
12
- }
13
- /**
14
- * Retrieve patient properties from FHIR service and sync them with eRx service
15
- */
16
- syncPatient(params, request) {
17
- return this.request('/erx/sync-patient/{patientId}', 'post', this.#baseUrlThunk.bind(this))(params, request);
18
- }
19
- /**
20
- * Search for allergies
21
- */
22
- allergySearch(params, request) {
23
- return this.request('/erx/allergy/search', 'get', this.#baseUrlThunk.bind(this))(params, request);
24
- }
25
- /**
26
- * Cancel photon order
27
- */
28
- cancelOrder(params, request) {
29
- return this.request('/erx/cancel-order', 'post', this.#baseUrlThunk.bind(this))(params, request);
30
- }
31
- /**
32
- * Cancel photon prescription
33
- */
34
- cancelPrescription(params, request) {
35
- return this.request('/erx/cancel-prescription', 'post', this.#baseUrlThunk.bind(this))(params, request);
36
- }
37
- /**
38
- * Search for medications. Provide at least one of code or name filters
39
- */
40
- medicationSearch(params, request) {
41
- return this.request('/erx/medication/search', 'get', this.#baseUrlThunk.bind(this))(params, request);
42
- }
43
- }
44
-
45
- exports.ErxV1 = ErxV1;
46
- //# sourceMappingURL=erxV1.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"erxV1.cjs","sources":["../../../../src/resources/classes/erxV1.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n ErxV1AllergySearchParams,\n ErxV1AllergySearchResponse,\n ErxV1CancelOrderParams,\n ErxV1CancelOrderResponse,\n ErxV1CancelPrescriptionParams,\n ErxV1CancelPrescriptionResponse,\n ErxV1MedicationSearchParams,\n ErxV1MedicationSearchResponse,\n ErxV1SyncPatientParams,\n ErxV1SyncPatientResponse,\n OystehrClientRequest,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class ErxV1 extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';\n }\n /**\n * Retrieve patient properties from FHIR service and sync them with eRx service\n */\n syncPatient(params: ErxV1SyncPatientParams, request?: OystehrClientRequest): Promise<ErxV1SyncPatientResponse> {\n return this.request('/erx/sync-patient/{patientId}', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Search for allergies\n */\n allergySearch(params: ErxV1AllergySearchParams, request?: OystehrClientRequest): Promise<ErxV1AllergySearchResponse> {\n return this.request('/erx/allergy/search', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Cancel photon order\n */\n cancelOrder(params: ErxV1CancelOrderParams, request?: OystehrClientRequest): Promise<ErxV1CancelOrderResponse> {\n return this.request('/erx/cancel-order', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Cancel photon prescription\n */\n cancelPrescription(\n params: ErxV1CancelPrescriptionParams,\n request?: OystehrClientRequest\n ): Promise<ErxV1CancelPrescriptionResponse> {\n return this.request('/erx/cancel-prescription', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Search for medications. Provide at least one of code or name filters\n */\n medicationSearch(\n params: ErxV1MedicationSearchParams,\n request?: OystehrClientRequest\n ): Promise<ErxV1MedicationSearchResponse>;\n /**\n * Search for medications. Provide at least one of code or name filters\n */\n medicationSearch(request?: OystehrClientRequest): Promise<ErxV1MedicationSearchResponse>;\n /**\n * Search for medications. Provide at least one of code or name filters\n */\n medicationSearch(\n params?: ErxV1MedicationSearchParams | OystehrClientRequest,\n request?: OystehrClientRequest\n ): Promise<ErxV1MedicationSearchResponse> {\n return this.request('/erx/medication/search', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":["SDKResource"],"mappings":";;;;AAAA;AAkBM,MAAO,KAAM,SAAQA,kBAAW,CAAA;AACpC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;IACD,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,eAAe,CAAC,IAAI,mCAAmC,CAAC;KACvF;AACD;;AAEG;IACH,WAAW,CAAC,MAA8B,EAAE,OAA8B,EAAA;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,+BAA+B,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC9G;AACD;;AAEG;IACH,aAAa,CAAC,MAAgC,EAAE,OAA8B,EAAA;QAC5E,OAAO,IAAI,CAAC,OAAO,CAAC,qBAAqB,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACnG;AACD;;AAEG;IACH,WAAW,CAAC,MAA8B,EAAE,OAA8B,EAAA;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAClG;AACD;;AAEG;IACH,kBAAkB,CAChB,MAAqC,EACrC,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,0BAA0B,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACzG;AAYD;;AAEG;IACH,gBAAgB,CACd,MAA2D,EAC3D,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACtG;AACF;;;;"}
@@ -1,31 +0,0 @@
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
- }
@@ -1,22 +0,0 @@
1
- 'use strict';
2
-
3
- var client = require('../../client/client.cjs');
4
-
5
- // AUTOGENERATED -- DO NOT EDIT
6
- class ErxV2 extends client.SDKResource {
7
- constructor(config) {
8
- super(config);
9
- }
10
- #baseUrlThunk() {
11
- return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
12
- }
13
- /**
14
- * Search for medications. Provide at least one of code or name filters
15
- */
16
- medicationSearch(params, request) {
17
- return this.request('/erx/v2/medication/search', 'get', this.#baseUrlThunk.bind(this))(params, request);
18
- }
19
- }
20
-
21
- exports.ErxV2 = ErxV2;
22
- //# sourceMappingURL=erxV2.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"erxV2.cjs","sources":["../../../../src/resources/classes/erxV2.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport { ErxV2MedicationSearchParams, ErxV2MedicationSearchResponse, OystehrClientRequest } from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class ErxV2 extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';\n }\n /**\n * Search for medications. Provide at least one of code or name filters\n */\n medicationSearch(\n params: ErxV2MedicationSearchParams,\n request?: OystehrClientRequest\n ): Promise<ErxV2MedicationSearchResponse>;\n /**\n * Search for medications. Provide at least one of code or name filters\n */\n medicationSearch(request?: OystehrClientRequest): Promise<ErxV2MedicationSearchResponse>;\n /**\n * Search for medications. Provide at least one of code or name filters\n */\n medicationSearch(\n params?: ErxV2MedicationSearchParams | OystehrClientRequest,\n request?: OystehrClientRequest\n ): Promise<ErxV2MedicationSearchResponse> {\n return this.request('/erx/v2/medication/search', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":["SDKResource"],"mappings":";;;;AAAA;AAMM,MAAO,KAAM,SAAQA,kBAAW,CAAA;AACpC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;IACD,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,eAAe,CAAC,IAAI,mCAAmC,CAAC;KACvF;AAYD;;AAEG;IACH,gBAAgB,CACd,MAA2D,EAC3D,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,2BAA2B,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACzG;AACF;;;;"}
@@ -1,15 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- export interface ErxV1AllergySearchParams {
2
- name: string;
3
- }
@@ -1,19 +0,0 @@
1
- /**
2
- * Allergens
3
- */
4
- export interface ErxV1AllergySearchResponse {
5
- allergens?: {
6
- /**
7
- * The Photon identifier for the allergen.
8
- */
9
- id?: string;
10
- /**
11
- * Human readible name of allergen.
12
- */
13
- name?: string;
14
- /**
15
- * RxNorm Concept Unique (RxCUI) identifier of allergen.
16
- */
17
- rxcui?: string;
18
- }[];
19
- }
@@ -1,6 +0,0 @@
1
- export interface ErxV1CancelOrderParams {
2
- /**
3
- * A photon id of the order to cancel.
4
- */
5
- orderId: string;
6
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * Cancelled order
3
- */
4
- export interface ErxV1CancelOrderResponse {
5
- orderId: string;
6
- }
@@ -1,6 +0,0 @@
1
- export interface ErxV1CancelPrescriptionParams {
2
- /**
3
- * A photon id of the prescription to cancel.
4
- */
5
- prescriptionId: string;
6
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * Cancelled prescription
3
- */
4
- export interface ErxV1CancelPrescriptionResponse {
5
- prescriptionId: string;
6
- }
@@ -1,6 +0,0 @@
1
- export interface ErxV1MedicationSearchParams {
2
- name?: string;
3
- code?: string;
4
- after?: string;
5
- first?: number;
6
- }
@@ -1,38 +0,0 @@
1
- /**
2
- * Medications
3
- */
4
- export interface ErxV1MedicationSearchResponse {
5
- medications?: {
6
- /**
7
- * The Photon identifier for the medication.
8
- */
9
- id: string;
10
- /**
11
- * Human readible name of medication.
12
- */
13
- name: string;
14
- codes: {
15
- /**
16
- * RxNorm Concept Unique (RxCUI) identifier of medication.
17
- */
18
- rxcui?: string | null;
19
- productNDC?: string | null;
20
- packageNDC?: string | null;
21
- SKU?: string | null;
22
- HCPCS?: string | null;
23
- };
24
- /**
25
- * Null implies a medication can not be prescribed
26
- */
27
- type?: ('RX' | 'OTC') | null;
28
- concept: 'DRUG' | 'PRODUCT' | 'PACKAGE';
29
- schedule?: ('I' | 'II' | 'III' | 'IV' | 'V') | null;
30
- controlled: boolean;
31
- brandName?: string | null;
32
- genericName?: string | null;
33
- strength?: string | null;
34
- form?: string | null;
35
- manufacturer?: string | null;
36
- description?: string | null;
37
- }[];
38
- }
@@ -1,3 +0,0 @@
1
- export interface ErxV1SyncPatientParams {
2
- patientId: string;
3
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * Photon sync response
3
- */
4
- export interface ErxV1SyncPatientResponse {
5
- /**
6
- * The Photon identifier for the patient.
7
- */
8
- photonPatientId?: string;
9
- }
@@ -1,4 +0,0 @@
1
- export interface ErxV2MedicationSearchParams {
2
- name?: string;
3
- code?: string;
4
- }
@@ -1,38 +0,0 @@
1
- /**
2
- * Medications
3
- */
4
- export interface ErxV2MedicationSearchResponse {
5
- medications?: {
6
- /**
7
- * Internal identifier for the medication.
8
- */
9
- id: string;
10
- /**
11
- * Human readible name of medication.
12
- */
13
- name: string;
14
- codes: {
15
- /**
16
- * RxNorm Concept Unique (RxCUI) identifier of medication.
17
- */
18
- rxcui?: string | null;
19
- productNDC?: string | null;
20
- packageNDC?: string | null;
21
- SKU?: string | null;
22
- HCPCS?: string | null;
23
- };
24
- /**
25
- * Null implies a medication can not be prescribed
26
- */
27
- type?: ('RX' | 'OTC') | null;
28
- concept?: ('DRUG' | 'PRODUCT' | 'PACKAGE') | null;
29
- schedule?: ('I' | 'II' | 'III' | 'IV' | 'V') | null;
30
- controlled?: boolean | null;
31
- brandName?: string | null;
32
- genericName?: string | null;
33
- strength?: string | null;
34
- form?: string | null;
35
- manufacturer?: string | null;
36
- description?: string | null;
37
- }[];
38
- }
@@ -1,31 +0,0 @@
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
- }
@@ -1,44 +0,0 @@
1
- import { SDKResource } from '../../client/client.js';
2
-
3
- // AUTOGENERATED -- DO NOT EDIT
4
- class ErxV1 extends SDKResource {
5
- constructor(config) {
6
- super(config);
7
- }
8
- #baseUrlThunk() {
9
- return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
10
- }
11
- /**
12
- * Retrieve patient properties from FHIR service and sync them with eRx service
13
- */
14
- syncPatient(params, request) {
15
- return this.request('/erx/sync-patient/{patientId}', 'post', this.#baseUrlThunk.bind(this))(params, request);
16
- }
17
- /**
18
- * Search for allergies
19
- */
20
- allergySearch(params, request) {
21
- return this.request('/erx/allergy/search', 'get', this.#baseUrlThunk.bind(this))(params, request);
22
- }
23
- /**
24
- * Cancel photon order
25
- */
26
- cancelOrder(params, request) {
27
- return this.request('/erx/cancel-order', 'post', this.#baseUrlThunk.bind(this))(params, request);
28
- }
29
- /**
30
- * Cancel photon prescription
31
- */
32
- cancelPrescription(params, request) {
33
- return this.request('/erx/cancel-prescription', 'post', this.#baseUrlThunk.bind(this))(params, request);
34
- }
35
- /**
36
- * Search for medications. Provide at least one of code or name filters
37
- */
38
- medicationSearch(params, request) {
39
- return this.request('/erx/medication/search', 'get', this.#baseUrlThunk.bind(this))(params, request);
40
- }
41
- }
42
-
43
- export { ErxV1 };
44
- //# sourceMappingURL=erxV1.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"erxV1.js","sources":["../../../../src/resources/classes/erxV1.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n ErxV1AllergySearchParams,\n ErxV1AllergySearchResponse,\n ErxV1CancelOrderParams,\n ErxV1CancelOrderResponse,\n ErxV1CancelPrescriptionParams,\n ErxV1CancelPrescriptionResponse,\n ErxV1MedicationSearchParams,\n ErxV1MedicationSearchResponse,\n ErxV1SyncPatientParams,\n ErxV1SyncPatientResponse,\n OystehrClientRequest,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class ErxV1 extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';\n }\n /**\n * Retrieve patient properties from FHIR service and sync them with eRx service\n */\n syncPatient(params: ErxV1SyncPatientParams, request?: OystehrClientRequest): Promise<ErxV1SyncPatientResponse> {\n return this.request('/erx/sync-patient/{patientId}', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Search for allergies\n */\n allergySearch(params: ErxV1AllergySearchParams, request?: OystehrClientRequest): Promise<ErxV1AllergySearchResponse> {\n return this.request('/erx/allergy/search', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Cancel photon order\n */\n cancelOrder(params: ErxV1CancelOrderParams, request?: OystehrClientRequest): Promise<ErxV1CancelOrderResponse> {\n return this.request('/erx/cancel-order', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Cancel photon prescription\n */\n cancelPrescription(\n params: ErxV1CancelPrescriptionParams,\n request?: OystehrClientRequest\n ): Promise<ErxV1CancelPrescriptionResponse> {\n return this.request('/erx/cancel-prescription', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Search for medications. Provide at least one of code or name filters\n */\n medicationSearch(\n params: ErxV1MedicationSearchParams,\n request?: OystehrClientRequest\n ): Promise<ErxV1MedicationSearchResponse>;\n /**\n * Search for medications. Provide at least one of code or name filters\n */\n medicationSearch(request?: OystehrClientRequest): Promise<ErxV1MedicationSearchResponse>;\n /**\n * Search for medications. Provide at least one of code or name filters\n */\n medicationSearch(\n params?: ErxV1MedicationSearchParams | OystehrClientRequest,\n request?: OystehrClientRequest\n ): Promise<ErxV1MedicationSearchResponse> {\n return this.request('/erx/medication/search', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":[],"mappings":";;AAAA;AAkBM,MAAO,KAAM,SAAQ,WAAW,CAAA;AACpC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;IACD,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,eAAe,CAAC,IAAI,mCAAmC,CAAC;KACvF;AACD;;AAEG;IACH,WAAW,CAAC,MAA8B,EAAE,OAA8B,EAAA;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,+BAA+B,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC9G;AACD;;AAEG;IACH,aAAa,CAAC,MAAgC,EAAE,OAA8B,EAAA;QAC5E,OAAO,IAAI,CAAC,OAAO,CAAC,qBAAqB,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACnG;AACD;;AAEG;IACH,WAAW,CAAC,MAA8B,EAAE,OAA8B,EAAA;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAClG;AACD;;AAEG;IACH,kBAAkB,CAChB,MAAqC,EACrC,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,0BAA0B,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACzG;AAYD;;AAEG;IACH,gBAAgB,CACd,MAA2D,EAC3D,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACtG;AACF;;;;"}
@@ -1,15 +0,0 @@
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
- }
@@ -1,20 +0,0 @@
1
- import { SDKResource } from '../../client/client.js';
2
-
3
- // AUTOGENERATED -- DO NOT EDIT
4
- class ErxV2 extends SDKResource {
5
- constructor(config) {
6
- super(config);
7
- }
8
- #baseUrlThunk() {
9
- return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
10
- }
11
- /**
12
- * Search for medications. Provide at least one of code or name filters
13
- */
14
- medicationSearch(params, request) {
15
- return this.request('/erx/v2/medication/search', 'get', this.#baseUrlThunk.bind(this))(params, request);
16
- }
17
- }
18
-
19
- export { ErxV2 };
20
- //# sourceMappingURL=erxV2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"erxV2.js","sources":["../../../../src/resources/classes/erxV2.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport { ErxV2MedicationSearchParams, ErxV2MedicationSearchResponse, OystehrClientRequest } from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class ErxV2 extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';\n }\n /**\n * Search for medications. Provide at least one of code or name filters\n */\n medicationSearch(\n params: ErxV2MedicationSearchParams,\n request?: OystehrClientRequest\n ): Promise<ErxV2MedicationSearchResponse>;\n /**\n * Search for medications. Provide at least one of code or name filters\n */\n medicationSearch(request?: OystehrClientRequest): Promise<ErxV2MedicationSearchResponse>;\n /**\n * Search for medications. Provide at least one of code or name filters\n */\n medicationSearch(\n params?: ErxV2MedicationSearchParams | OystehrClientRequest,\n request?: OystehrClientRequest\n ): Promise<ErxV2MedicationSearchResponse> {\n return this.request('/erx/v2/medication/search', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":[],"mappings":";;AAAA;AAMM,MAAO,KAAM,SAAQ,WAAW,CAAA;AACpC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;IACD,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,eAAe,CAAC,IAAI,mCAAmC,CAAC;KACvF;AAYD;;AAEG;IACH,gBAAgB,CACd,MAA2D,EAC3D,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,2BAA2B,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACzG;AACF;;;;"}
@@ -1,3 +0,0 @@
1
- export interface ErxV1AllergySearchParams {
2
- name: string;
3
- }
@@ -1,19 +0,0 @@
1
- /**
2
- * Allergens
3
- */
4
- export interface ErxV1AllergySearchResponse {
5
- allergens?: {
6
- /**
7
- * The Photon identifier for the allergen.
8
- */
9
- id?: string;
10
- /**
11
- * Human readible name of allergen.
12
- */
13
- name?: string;
14
- /**
15
- * RxNorm Concept Unique (RxCUI) identifier of allergen.
16
- */
17
- rxcui?: string;
18
- }[];
19
- }
@@ -1,6 +0,0 @@
1
- export interface ErxV1CancelOrderParams {
2
- /**
3
- * A photon id of the order to cancel.
4
- */
5
- orderId: string;
6
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * Cancelled order
3
- */
4
- export interface ErxV1CancelOrderResponse {
5
- orderId: string;
6
- }
@@ -1,6 +0,0 @@
1
- export interface ErxV1CancelPrescriptionParams {
2
- /**
3
- * A photon id of the prescription to cancel.
4
- */
5
- prescriptionId: string;
6
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * Cancelled prescription
3
- */
4
- export interface ErxV1CancelPrescriptionResponse {
5
- prescriptionId: string;
6
- }
@@ -1,6 +0,0 @@
1
- export interface ErxV1MedicationSearchParams {
2
- name?: string;
3
- code?: string;
4
- after?: string;
5
- first?: number;
6
- }
@@ -1,38 +0,0 @@
1
- /**
2
- * Medications
3
- */
4
- export interface ErxV1MedicationSearchResponse {
5
- medications?: {
6
- /**
7
- * The Photon identifier for the medication.
8
- */
9
- id: string;
10
- /**
11
- * Human readible name of medication.
12
- */
13
- name: string;
14
- codes: {
15
- /**
16
- * RxNorm Concept Unique (RxCUI) identifier of medication.
17
- */
18
- rxcui?: string | null;
19
- productNDC?: string | null;
20
- packageNDC?: string | null;
21
- SKU?: string | null;
22
- HCPCS?: string | null;
23
- };
24
- /**
25
- * Null implies a medication can not be prescribed
26
- */
27
- type?: ('RX' | 'OTC') | null;
28
- concept: 'DRUG' | 'PRODUCT' | 'PACKAGE';
29
- schedule?: ('I' | 'II' | 'III' | 'IV' | 'V') | null;
30
- controlled: boolean;
31
- brandName?: string | null;
32
- genericName?: string | null;
33
- strength?: string | null;
34
- form?: string | null;
35
- manufacturer?: string | null;
36
- description?: string | null;
37
- }[];
38
- }
@@ -1,3 +0,0 @@
1
- export interface ErxV1SyncPatientParams {
2
- patientId: string;
3
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * Photon sync response
3
- */
4
- export interface ErxV1SyncPatientResponse {
5
- /**
6
- * The Photon identifier for the patient.
7
- */
8
- photonPatientId?: string;
9
- }
@@ -1,4 +0,0 @@
1
- export interface ErxV2MedicationSearchParams {
2
- name?: string;
3
- code?: string;
4
- }
@@ -1,38 +0,0 @@
1
- /**
2
- * Medications
3
- */
4
- export interface ErxV2MedicationSearchResponse {
5
- medications?: {
6
- /**
7
- * Internal identifier for the medication.
8
- */
9
- id: string;
10
- /**
11
- * Human readible name of medication.
12
- */
13
- name: string;
14
- codes: {
15
- /**
16
- * RxNorm Concept Unique (RxCUI) identifier of medication.
17
- */
18
- rxcui?: string | null;
19
- productNDC?: string | null;
20
- packageNDC?: string | null;
21
- SKU?: string | null;
22
- HCPCS?: string | null;
23
- };
24
- /**
25
- * Null implies a medication can not be prescribed
26
- */
27
- type?: ('RX' | 'OTC') | null;
28
- concept?: ('DRUG' | 'PRODUCT' | 'PACKAGE') | null;
29
- schedule?: ('I' | 'II' | 'III' | 'IV' | 'V') | null;
30
- controlled?: boolean | null;
31
- brandName?: string | null;
32
- genericName?: string | null;
33
- strength?: string | null;
34
- form?: string | null;
35
- manufacturer?: string | null;
36
- description?: string | null;
37
- }[];
38
- }