@oystehr/sdk 4.1.4 → 4.1.7

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 (43) hide show
  1. package/dist/cjs/index.min.cjs +1 -1
  2. package/dist/cjs/index.min.cjs.map +1 -1
  3. package/dist/cjs/resources/classes/erx.cjs +27 -3
  4. package/dist/cjs/resources/classes/erx.cjs.map +1 -1
  5. package/dist/cjs/resources/classes/erx.d.ts +29 -3
  6. package/dist/cjs/resources/classes/fax.cjs +10 -0
  7. package/dist/cjs/resources/classes/fax.cjs.map +1 -1
  8. package/dist/cjs/resources/classes/fax.d.ts +9 -1
  9. package/dist/cjs/resources/types/Application.d.ts +4 -0
  10. package/dist/cjs/resources/types/FaxGetConfigurationResponse.d.ts +13 -0
  11. package/dist/cjs/resources/types/M2mCreateParams.d.ts +4 -0
  12. package/dist/cjs/resources/types/UserInviteParams.d.ts +4 -0
  13. package/dist/cjs/resources/types/ZambdaCreateParams.d.ts +5 -1
  14. package/dist/cjs/resources/types/ZambdaFunction.d.ts +4 -0
  15. package/dist/cjs/resources/types/ZambdaUpdateParams.d.ts +5 -1
  16. package/dist/cjs/resources/types/index.d.ts +1 -0
  17. package/dist/esm/index.min.js +1 -1
  18. package/dist/esm/index.min.js.map +1 -1
  19. package/dist/esm/resources/classes/erx.d.ts +29 -3
  20. package/dist/esm/resources/classes/erx.js +27 -3
  21. package/dist/esm/resources/classes/erx.js.map +1 -1
  22. package/dist/esm/resources/classes/fax.d.ts +9 -1
  23. package/dist/esm/resources/classes/fax.js +10 -0
  24. package/dist/esm/resources/classes/fax.js.map +1 -1
  25. package/dist/esm/resources/types/Application.d.ts +4 -0
  26. package/dist/esm/resources/types/FaxGetConfigurationResponse.d.ts +13 -0
  27. package/dist/esm/resources/types/M2mCreateParams.d.ts +4 -0
  28. package/dist/esm/resources/types/UserInviteParams.d.ts +4 -0
  29. package/dist/esm/resources/types/ZambdaCreateParams.d.ts +5 -1
  30. package/dist/esm/resources/types/ZambdaFunction.d.ts +4 -0
  31. package/dist/esm/resources/types/ZambdaUpdateParams.d.ts +5 -1
  32. package/dist/esm/resources/types/index.d.ts +1 -0
  33. package/package.json +2 -2
  34. package/src/resources/classes/erx.ts +31 -3
  35. package/src/resources/classes/fax.ts +17 -1
  36. package/src/resources/types/Application.ts +4 -0
  37. package/src/resources/types/FaxGetConfigurationResponse.ts +15 -0
  38. package/src/resources/types/M2mCreateParams.ts +4 -0
  39. package/src/resources/types/UserInviteParams.ts +4 -0
  40. package/src/resources/types/ZambdaCreateParams.ts +5 -1
  41. package/src/resources/types/ZambdaFunction.ts +4 -0
  42. package/src/resources/types/ZambdaUpdateParams.ts +5 -1
  43. package/src/resources/types/index.ts +1 -0
@@ -6,54 +6,80 @@ export declare class Erx extends SDKResource {
6
6
  constructor(config: OystehrConfig);
7
7
  /**
8
8
  * Search for allergens.
9
+ * Action: `eRx:SearchAllergen`
10
+ * Access Policy Resource: `eRx:Allergen`
9
11
  */
10
12
  searchAllergens(params: ErxSearchAllergensParams, request?: OystehrClientRequest): Promise<ErxSearchAllergensResponse>;
11
13
  /**
12
14
  * Search for medications.
15
+ * Action: `eRx:SearchMedication`
16
+ * Access Policy Resource: `eRx:Medication`
13
17
  */
14
18
  searchMedications(params: ErxSearchMedicationsParams, request?: OystehrClientRequest): Promise<ErxSearchMedicationsResponse>;
15
19
  /**
16
20
  * Get eRx configuration for project.
21
+ * Action: `eRx:GetConfiguration`
22
+ * Access Policy Resource: `eRx:Configuration`
17
23
  */
18
24
  getConfiguration(request?: OystehrClientRequest): Promise<ErxGetConfigurationResponse>;
19
25
  /**
20
- * Checks for drug-allergy interactions for a patient. This endpoint requires the patient's allergies to be synced with the upstream eRx provider.
26
+ * Check for drug-allergy interactions for a patient. This endpoint requires the patient's allergies to be synced with the upstream eRx provider.
27
+ * Action: `eRx:Check`
28
+ * Access Policy Resource: `eRx:Interaction`
21
29
  */
22
30
  checkAllergyInteractions(params: ErxCheckAllergyInteractionsParams, request?: OystehrClientRequest): Promise<ErxCheckAllergyInteractionsResponse>;
23
31
  /**
24
- * Checks for drug-drug interactions for a patient. This endpoint requires the patient's medications to be synced with the upstream eRx provider.
32
+ * Check for drug-drug interactions for a patient. This endpoint requires the patient's medications to be synced with the upstream eRx provider.
33
+ * Action: `eRx:Check`
34
+ * Access Policy Resource: `eRx:Interaction`
25
35
  */
26
36
  checkMedicationInteractions(params: ErxCheckMedicationInteractionsParams, request?: OystehrClientRequest): Promise<ErxCheckMedicationInteractionsResponse>;
27
37
  /**
28
- * 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.
38
+ * Check 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.
39
+ * Action: `eRx:Check`
40
+ * Access Policy Resource: `eRx:Interaction`
29
41
  */
30
42
  checkPrecheckInteractions(params: ErxCheckPrecheckInteractionsParams, request?: OystehrClientRequest): Promise<ErxCheckPrecheckInteractionsResponse>;
31
43
  /**
32
44
  * Cancel prescription for patient.
45
+ * Action: `eRx:CancelPrescription`
46
+ * Access Policy Resource: `eRx:Prescription`
33
47
  */
34
48
  cancelPrescription(params: ErxCancelPrescriptionParams, request?: OystehrClientRequest): Promise<void>;
35
49
  /**
36
50
  * Syncs demographic, allergy, and medication data for a patient with the upstream eRx provider.
51
+ * Action: `eRx:SyncPatient`
52
+ * Access Policy Resource: `eRx:Patient`
37
53
  */
38
54
  syncPatient(params: ErxSyncPatientParams, request?: OystehrClientRequest): Promise<void>;
39
55
  /**
40
56
  * Create an SSO link for a practitioner. This link can be used to log in to the eRx service as the specified practitioner.
57
+ * Action: `eRx:Connect`
58
+ * Access Policy Resource: `eRx:SSO`
41
59
  */
42
60
  connectPractitioner(params: ErxConnectPractitionerParams, request?: OystehrClientRequest): Promise<ErxConnectPractitionerResponse>;
43
61
  /**
44
62
  * Create an SSO link for a practitioner. This link can be used to log in to the eRx service as the specified practitioner.
63
+ * Action: `eRx:Connect`
64
+ * Access Policy Resource: `eRx:SSO`
45
65
  */
46
66
  connectPractitioner(request?: OystehrClientRequest): Promise<ErxConnectPractitionerResponse>;
47
67
  /**
48
68
  * Check eRx enrollment for a practitioner.
69
+ * Action: `eRx:Read`
70
+ * Access Policy Resource: `eRx:Enrollment`
49
71
  */
50
72
  checkPractitionerEnrollment(params: ErxCheckPractitionerEnrollmentParams, request?: OystehrClientRequest): Promise<ErxCheckPractitionerEnrollmentResponse>;
51
73
  /**
52
74
  * Enroll a practitioner in the eRx service.
75
+ * Action: `eRx:Create`
76
+ * Access Policy Resource: `eRx:Enrollment`
53
77
  */
54
78
  enrollPractitioner(params: ErxEnrollPractitionerParams, request?: OystehrClientRequest): Promise<void>;
55
79
  /**
56
80
  * Unenroll a practitioner from the eRx service.
81
+ * Action: `eRx:Delete`
82
+ * Access Policy Resource: `eRx:Enrollment`
57
83
  */
58
84
  unenrollPractitioner(params: ErxUnenrollPractitionerParams, request?: OystehrClientRequest): Promise<void>;
59
85
  }
@@ -10,72 +10,96 @@ class Erx extends SDKResource {
10
10
  }
11
11
  /**
12
12
  * Search for allergens.
13
+ * Action: `eRx:SearchAllergen`
14
+ * Access Policy Resource: `eRx:Allergen`
13
15
  */
14
16
  searchAllergens(params, request) {
15
17
  return this.request('/allergen', 'get', this.#baseUrlThunk.bind(this))(params, request);
16
18
  }
17
19
  /**
18
20
  * Search for medications.
21
+ * Action: `eRx:SearchMedication`
22
+ * Access Policy Resource: `eRx:Medication`
19
23
  */
20
24
  searchMedications(params, request) {
21
25
  return this.request('/medication', 'get', this.#baseUrlThunk.bind(this))(params, request);
22
26
  }
23
27
  /**
24
28
  * Get eRx configuration for project.
29
+ * Action: `eRx:GetConfiguration`
30
+ * Access Policy Resource: `eRx:Configuration`
25
31
  */
26
32
  getConfiguration(request) {
27
33
  return this.request('/config', 'get', this.#baseUrlThunk.bind(this))(request);
28
34
  }
29
35
  /**
30
- * Checks for drug-allergy interactions for a patient. This endpoint requires the patient's allergies to be synced with the upstream eRx provider.
36
+ * Check for drug-allergy interactions for a patient. This endpoint requires the patient's allergies to be synced with the upstream eRx provider.
37
+ * Action: `eRx:Check`
38
+ * Access Policy Resource: `eRx:Interaction`
31
39
  */
32
40
  checkAllergyInteractions(params, request) {
33
41
  return this.request('/patient/{patientId}/interactions/allergy', 'get', this.#baseUrlThunk.bind(this))(params, request);
34
42
  }
35
43
  /**
36
- * Checks for drug-drug interactions for a patient. This endpoint requires the patient's medications to be synced with the upstream eRx provider.
44
+ * Check for drug-drug interactions for a patient. This endpoint requires the patient's medications to be synced with the upstream eRx provider.
45
+ * Action: `eRx:Check`
46
+ * Access Policy Resource: `eRx:Interaction`
37
47
  */
38
48
  checkMedicationInteractions(params, request) {
39
49
  return this.request('/patient/{patientId}/interactions/medication', 'get', this.#baseUrlThunk.bind(this))(params, request);
40
50
  }
41
51
  /**
42
- * 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.
52
+ * Check 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.
53
+ * Action: `eRx:Check`
54
+ * Access Policy Resource: `eRx:Interaction`
43
55
  */
44
56
  checkPrecheckInteractions(params, request) {
45
57
  return this.request('/patient/{patientId}/interactions/precheck/{drugId}', 'get', this.#baseUrlThunk.bind(this))(params, request);
46
58
  }
47
59
  /**
48
60
  * Cancel prescription for patient.
61
+ * Action: `eRx:CancelPrescription`
62
+ * Access Policy Resource: `eRx:Prescription`
49
63
  */
50
64
  cancelPrescription(params, request) {
51
65
  return this.request('/patient/{patientId}/prescriptions/{medicationRequestId}', 'delete', this.#baseUrlThunk.bind(this))(params, request);
52
66
  }
53
67
  /**
54
68
  * Syncs demographic, allergy, and medication data for a patient with the upstream eRx provider.
69
+ * Action: `eRx:SyncPatient`
70
+ * Access Policy Resource: `eRx:Patient`
55
71
  */
56
72
  syncPatient(params, request) {
57
73
  return this.request('/patient/{patientId}/sync', 'post', this.#baseUrlThunk.bind(this))(params, request);
58
74
  }
59
75
  /**
60
76
  * Create an SSO link for a practitioner. This link can be used to log in to the eRx service as the specified practitioner.
77
+ * Action: `eRx:Connect`
78
+ * Access Policy Resource: `eRx:SSO`
61
79
  */
62
80
  connectPractitioner(params, request) {
63
81
  return this.request('/practitioner/connect', 'get', this.#baseUrlThunk.bind(this))(params, request);
64
82
  }
65
83
  /**
66
84
  * Check eRx enrollment for a practitioner.
85
+ * Action: `eRx:Read`
86
+ * Access Policy Resource: `eRx:Enrollment`
67
87
  */
68
88
  checkPractitionerEnrollment(params, request) {
69
89
  return this.request('/practitioner/{practitionerId}', 'get', this.#baseUrlThunk.bind(this))(params, request);
70
90
  }
71
91
  /**
72
92
  * Enroll a practitioner in the eRx service.
93
+ * Action: `eRx:Create`
94
+ * Access Policy Resource: `eRx:Enrollment`
73
95
  */
74
96
  enrollPractitioner(params, request) {
75
97
  return this.request('/practitioner/{practitionerId}', 'post', this.#baseUrlThunk.bind(this))(params, request);
76
98
  }
77
99
  /**
78
100
  * Unenroll a practitioner from the eRx service.
101
+ * Action: `eRx:Delete`
102
+ * Access Policy Resource: `eRx:Enrollment`
79
103
  */
80
104
  unenrollPractitioner(params, request) {
81
105
  return this.request('/practitioner/{practitionerId}', 'delete', this.#baseUrlThunk.bind(this))(params, request);
@@ -1 +1 @@
1
- {"version":3,"file":"erx.js","sources":["../../../../src/resources/classes/erx.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n ErxCancelPrescriptionParams,\n ErxCheckAllergyInteractionsParams,\n ErxCheckAllergyInteractionsResponse,\n ErxCheckMedicationInteractionsParams,\n ErxCheckMedicationInteractionsResponse,\n ErxCheckPractitionerEnrollmentParams,\n ErxCheckPractitionerEnrollmentResponse,\n ErxCheckPrecheckInteractionsParams,\n ErxCheckPrecheckInteractionsResponse,\n ErxConnectPractitionerParams,\n ErxConnectPractitionerResponse,\n ErxEnrollPractitionerParams,\n ErxGetConfigurationResponse,\n ErxSearchAllergensParams,\n ErxSearchAllergensResponse,\n ErxSearchMedicationsParams,\n ErxSearchMedicationsResponse,\n ErxSyncPatientParams,\n ErxUnenrollPractitionerParams,\n OystehrClientRequest,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Erx extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['erxApiUrl'] ?? 'https://erx-api.zapehr.com/v3';\n }\n /**\n * Search for allergens.\n */\n searchAllergens(\n params: ErxSearchAllergensParams,\n request?: OystehrClientRequest\n ): Promise<ErxSearchAllergensResponse> {\n return this.request('/allergen', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Search for medications.\n */\n searchMedications(\n params: ErxSearchMedicationsParams,\n request?: OystehrClientRequest\n ): Promise<ErxSearchMedicationsResponse> {\n return this.request('/medication', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Get eRx configuration for project.\n */\n getConfiguration(request?: OystehrClientRequest): Promise<ErxGetConfigurationResponse> {\n return this.request('/config', 'get', this.#baseUrlThunk.bind(this))(request);\n }\n /**\n * Checks for drug-allergy interactions for a patient. This endpoint requires the patient's allergies to be synced with the upstream eRx provider.\n */\n checkAllergyInteractions(\n params: ErxCheckAllergyInteractionsParams,\n request?: OystehrClientRequest\n ): Promise<ErxCheckAllergyInteractionsResponse> {\n return this.request(\n '/patient/{patientId}/interactions/allergy',\n 'get',\n this.#baseUrlThunk.bind(this)\n )(params, request);\n }\n /**\n * Checks for drug-drug interactions for a patient. This endpoint requires the patient's medications to be synced with the upstream eRx provider.\n */\n checkMedicationInteractions(\n params: ErxCheckMedicationInteractionsParams,\n request?: OystehrClientRequest\n ): Promise<ErxCheckMedicationInteractionsResponse> {\n return this.request(\n '/patient/{patientId}/interactions/medication',\n 'get',\n this.#baseUrlThunk.bind(this)\n )(params, request);\n }\n /**\n * 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.\n */\n checkPrecheckInteractions(\n params: ErxCheckPrecheckInteractionsParams,\n request?: OystehrClientRequest\n ): Promise<ErxCheckPrecheckInteractionsResponse> {\n return this.request(\n '/patient/{patientId}/interactions/precheck/{drugId}',\n 'get',\n this.#baseUrlThunk.bind(this)\n )(params, request);\n }\n /**\n * Cancel prescription for patient.\n */\n cancelPrescription(params: ErxCancelPrescriptionParams, request?: OystehrClientRequest): Promise<void> {\n return this.request(\n '/patient/{patientId}/prescriptions/{medicationRequestId}',\n 'delete',\n this.#baseUrlThunk.bind(this)\n )(params, request);\n }\n /**\n * Syncs demographic, allergy, and medication data for a patient with the upstream eRx provider.\n */\n syncPatient(params: ErxSyncPatientParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/patient/{patientId}/sync', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Create an SSO link for a practitioner. This link can be used to log in to the eRx service as the specified practitioner.\n */\n connectPractitioner(\n params: ErxConnectPractitionerParams,\n request?: OystehrClientRequest\n ): Promise<ErxConnectPractitionerResponse>;\n /**\n * Create an SSO link for a practitioner. This link can be used to log in to the eRx service as the specified practitioner.\n */\n connectPractitioner(request?: OystehrClientRequest): Promise<ErxConnectPractitionerResponse>;\n /**\n * Create an SSO link for a practitioner. This link can be used to log in to the eRx service as the specified practitioner.\n */\n connectPractitioner(\n params?: ErxConnectPractitionerParams | OystehrClientRequest,\n request?: OystehrClientRequest\n ): Promise<ErxConnectPractitionerResponse> {\n return this.request('/practitioner/connect', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Check eRx enrollment for a practitioner.\n */\n checkPractitionerEnrollment(\n params: ErxCheckPractitionerEnrollmentParams,\n request?: OystehrClientRequest\n ): Promise<ErxCheckPractitionerEnrollmentResponse> {\n return this.request('/practitioner/{practitionerId}', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Enroll a practitioner in the eRx service.\n */\n enrollPractitioner(params: ErxEnrollPractitionerParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/practitioner/{practitionerId}', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Unenroll a practitioner from the eRx service.\n */\n unenrollPractitioner(params: ErxUnenrollPractitionerParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/practitioner/{practitionerId}', 'delete', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":[],"mappings":";;AAAA;AA2BM,MAAO,GAAI,SAAQ,WAAW,CAAA;AAClC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;IACD,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,WAAW,CAAC,IAAI,+BAA+B,CAAC;KAC/E;AACD;;AAEG;IACH,eAAe,CACb,MAAgC,EAChC,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACzF;AACD;;AAEG;IACH,iBAAiB,CACf,MAAkC,EAClC,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC3F;AACD;;AAEG;AACH,IAAA,gBAAgB,CAAC,OAA8B,EAAA;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;KAC/E;AACD;;AAEG;IACH,wBAAwB,CACtB,MAAyC,EACzC,OAA8B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EAAE,OAAO,CAAC,CAAC;KACrG;AACD;;AAEG;IACH,2BAA2B,CACzB,MAA4C,EAC5C,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,gCAAgC,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC9G;AACD;;AAEG;IACH,kBAAkB,CAAC,MAAmC,EAAE,OAA8B,EAAA;QACpF,OAAO,IAAI,CAAC,OAAO,CAAC,gCAAgC,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC/G;AACD;;AAEG;IACH,oBAAoB,CAAC,MAAqC,EAAE,OAA8B,EAAA;QACxF,OAAO,IAAI,CAAC,OAAO,CAAC,gCAAgC,EAAE,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACjH;AACF;;;;"}
1
+ {"version":3,"file":"erx.js","sources":["../../../../src/resources/classes/erx.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n ErxCancelPrescriptionParams,\n ErxCheckAllergyInteractionsParams,\n ErxCheckAllergyInteractionsResponse,\n ErxCheckMedicationInteractionsParams,\n ErxCheckMedicationInteractionsResponse,\n ErxCheckPractitionerEnrollmentParams,\n ErxCheckPractitionerEnrollmentResponse,\n ErxCheckPrecheckInteractionsParams,\n ErxCheckPrecheckInteractionsResponse,\n ErxConnectPractitionerParams,\n ErxConnectPractitionerResponse,\n ErxEnrollPractitionerParams,\n ErxGetConfigurationResponse,\n ErxSearchAllergensParams,\n ErxSearchAllergensResponse,\n ErxSearchMedicationsParams,\n ErxSearchMedicationsResponse,\n ErxSyncPatientParams,\n ErxUnenrollPractitionerParams,\n OystehrClientRequest,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Erx extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['erxApiUrl'] ?? 'https://erx-api.zapehr.com/v3';\n }\n /**\n * Search for allergens.\n * Action: `eRx:SearchAllergen`\n * Access Policy Resource: `eRx:Allergen`\n */\n searchAllergens(\n params: ErxSearchAllergensParams,\n request?: OystehrClientRequest\n ): Promise<ErxSearchAllergensResponse> {\n return this.request('/allergen', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Search for medications.\n * Action: `eRx:SearchMedication`\n * Access Policy Resource: `eRx:Medication`\n */\n searchMedications(\n params: ErxSearchMedicationsParams,\n request?: OystehrClientRequest\n ): Promise<ErxSearchMedicationsResponse> {\n return this.request('/medication', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Get eRx configuration for project.\n * Action: `eRx:GetConfiguration`\n * Access Policy Resource: `eRx:Configuration`\n */\n getConfiguration(request?: OystehrClientRequest): Promise<ErxGetConfigurationResponse> {\n return this.request('/config', 'get', this.#baseUrlThunk.bind(this))(request);\n }\n /**\n * Check for drug-allergy interactions for a patient. This endpoint requires the patient's allergies to be synced with the upstream eRx provider.\n * Action: `eRx:Check`\n * Access Policy Resource: `eRx:Interaction`\n */\n checkAllergyInteractions(\n params: ErxCheckAllergyInteractionsParams,\n request?: OystehrClientRequest\n ): Promise<ErxCheckAllergyInteractionsResponse> {\n return this.request(\n '/patient/{patientId}/interactions/allergy',\n 'get',\n this.#baseUrlThunk.bind(this)\n )(params, request);\n }\n /**\n * Check for drug-drug interactions for a patient. This endpoint requires the patient's medications to be synced with the upstream eRx provider.\n * Action: `eRx:Check`\n * Access Policy Resource: `eRx:Interaction`\n */\n checkMedicationInteractions(\n params: ErxCheckMedicationInteractionsParams,\n request?: OystehrClientRequest\n ): Promise<ErxCheckMedicationInteractionsResponse> {\n return this.request(\n '/patient/{patientId}/interactions/medication',\n 'get',\n this.#baseUrlThunk.bind(this)\n )(params, request);\n }\n /**\n * Check 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.\n * Action: `eRx:Check`\n * Access Policy Resource: `eRx:Interaction`\n */\n checkPrecheckInteractions(\n params: ErxCheckPrecheckInteractionsParams,\n request?: OystehrClientRequest\n ): Promise<ErxCheckPrecheckInteractionsResponse> {\n return this.request(\n '/patient/{patientId}/interactions/precheck/{drugId}',\n 'get',\n this.#baseUrlThunk.bind(this)\n )(params, request);\n }\n /**\n * Cancel prescription for patient.\n * Action: `eRx:CancelPrescription`\n * Access Policy Resource: `eRx:Prescription`\n */\n cancelPrescription(params: ErxCancelPrescriptionParams, request?: OystehrClientRequest): Promise<void> {\n return this.request(\n '/patient/{patientId}/prescriptions/{medicationRequestId}',\n 'delete',\n this.#baseUrlThunk.bind(this)\n )(params, request);\n }\n /**\n * Syncs demographic, allergy, and medication data for a patient with the upstream eRx provider.\n * Action: `eRx:SyncPatient`\n * Access Policy Resource: `eRx:Patient`\n */\n syncPatient(params: ErxSyncPatientParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/patient/{patientId}/sync', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Create an SSO link for a practitioner. This link can be used to log in to the eRx service as the specified practitioner.\n * Action: `eRx:Connect`\n * Access Policy Resource: `eRx:SSO`\n */\n connectPractitioner(\n params: ErxConnectPractitionerParams,\n request?: OystehrClientRequest\n ): Promise<ErxConnectPractitionerResponse>;\n /**\n * Create an SSO link for a practitioner. This link can be used to log in to the eRx service as the specified practitioner.\n * Action: `eRx:Connect`\n * Access Policy Resource: `eRx:SSO`\n */\n connectPractitioner(request?: OystehrClientRequest): Promise<ErxConnectPractitionerResponse>;\n /**\n * Create an SSO link for a practitioner. This link can be used to log in to the eRx service as the specified practitioner.\n * Action: `eRx:Connect`\n * Access Policy Resource: `eRx:SSO`\n */\n connectPractitioner(\n params?: ErxConnectPractitionerParams | OystehrClientRequest,\n request?: OystehrClientRequest\n ): Promise<ErxConnectPractitionerResponse> {\n return this.request('/practitioner/connect', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Check eRx enrollment for a practitioner.\n * Action: `eRx:Read`\n * Access Policy Resource: `eRx:Enrollment`\n */\n checkPractitionerEnrollment(\n params: ErxCheckPractitionerEnrollmentParams,\n request?: OystehrClientRequest\n ): Promise<ErxCheckPractitionerEnrollmentResponse> {\n return this.request('/practitioner/{practitionerId}', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Enroll a practitioner in the eRx service.\n * Action: `eRx:Create`\n * Access Policy Resource: `eRx:Enrollment`\n */\n enrollPractitioner(params: ErxEnrollPractitionerParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/practitioner/{practitionerId}', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Unenroll a practitioner from the eRx service.\n * Action: `eRx:Delete`\n * Access Policy Resource: `eRx:Enrollment`\n */\n unenrollPractitioner(params: ErxUnenrollPractitionerParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/practitioner/{practitionerId}', 'delete', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":[],"mappings":";;AAAA;AA2BM,MAAO,GAAI,SAAQ,WAAW,CAAA;AAClC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;IACD,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,WAAW,CAAC,IAAI,+BAA+B,CAAC;KAC/E;AACD;;;;AAIG;IACH,eAAe,CACb,MAAgC,EAChC,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACzF;AAC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ams, FaxSendResponse, OystehrClientRequest } from '../..';
1
+ import { FaxGetConfigurationResponse, FaxOnboardResponse, FaxSendParams, FaxSendResponse, OystehrClientRequest } from '../..';
2
2
  import { SDKResource } from '../../client/client';
3
3
  import { OystehrConfig } from '../../config';
4
4
  export declare class Fax extends SDKResource {
@@ -20,6 +20,14 @@ export declare class Fax extends SDKResource {
20
20
  * Access Policy Resource: `Fax:Number`
21
21
  */
22
22
  onboard(request?: OystehrClientRequest): Promise<FaxOnboardResponse>;
23
+ /**
24
+ * Get fax service configuration.
25
+ *
26
+ * Access Policy Requirements:
27
+ * Action: `Fax:GetConfiguration`
28
+ * Access Policy Resource: `Fax:Configuration`
29
+ */
30
+ getConfiguration(request?: OystehrClientRequest): Promise<FaxGetConfigurationResponse>;
23
31
  /**
24
32
  * Send a fax. Oystehr's [fax sending](https://docs.oystehr.com/oystehr/services/fax/send/) feature makes it easy to send a fax to a chosen recipient with a single API call. You can use this feature to send referrals, medical records, prescriptions, and other documents that require fax transmission e.g. for HIPAA compliance.
25
33
  *
@@ -28,6 +28,16 @@ class Fax extends SDKResource {
28
28
  onboard(request) {
29
29
  return this.request('/onboard', 'post', this.#baseUrlThunk.bind(this))(request);
30
30
  }
31
+ /**
32
+ * Get fax service configuration.
33
+ *
34
+ * Access Policy Requirements:
35
+ * Action: `Fax:GetConfiguration`
36
+ * Access Policy Resource: `Fax:Configuration`
37
+ */
38
+ getConfiguration(request) {
39
+ return this.request('/config', 'get', this.#baseUrlThunk.bind(this))(request);
40
+ }
31
41
  /**
32
42
  * Send a fax. Oystehr's [fax sending](https://docs.oystehr.com/oystehr/services/fax/send/) feature makes it easy to send a fax to a chosen recipient with a single API call. You can use this feature to send referrals, medical records, prescriptions, and other documents that require fax transmission e.g. for HIPAA compliance.
33
43
  *
@@ -1 +1 @@
1
- {"version":3,"file":"fax.js","sources":["../../../../src/resources/classes/fax.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport { FaxOnboardResponse, FaxSendParams, FaxSendResponse, OystehrClientRequest } from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Fax extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['faxApiUrl'] ?? 'https://fax-api.zapehr.com/v1';\n }\n /**\n * Offboard a fax number. Oystehr's [offboard](https://docs.oystehr.com/oystehr/services/fax/number/) feature makes it easy to stop using the fax service and release the project's assigned fax number with a single API call. Please note there is no way to guarantee getting the same number back again, so if you think this can break your project in any way we recommend not offboarding and avoid sending faxes until you're sure.\n *\n * Access Policy Requirements:\n * Action: `Fax:Offboard`\n * Access Policy Resource: `Fax:Number`\n */\n offboard(request?: OystehrClientRequest): Promise<void> {\n return this.request('/offboard', 'post', this.#baseUrlThunk.bind(this))(request);\n }\n /**\n * Onboard a fax number. Oystehr's [onboard](https://docs.oystehr.com/oystehr/services/fax/number/) feature makes it easy to start using the fax service and purchase a new fax number for your project with a single API call.\n *\n * Access Policy Requirements:\n * Action: `Fax:Onboard`\n * Access Policy Resource: `Fax:Number`\n */\n onboard(request?: OystehrClientRequest): Promise<FaxOnboardResponse> {\n return this.request('/onboard', 'post', this.#baseUrlThunk.bind(this))(request);\n }\n /**\n * Send a fax. Oystehr's [fax sending](https://docs.oystehr.com/oystehr/services/fax/send/) feature makes it easy to send a fax to a chosen recipient with a single API call. You can use this feature to send referrals, medical records, prescriptions, and other documents that require fax transmission e.g. for HIPAA compliance.\n *\n * Access Policy Requirements:\n * Action: `Fax:Send`\n * Access Policy Resource: `Fax:Fax`\n */\n send(params: FaxSendParams, request?: OystehrClientRequest): Promise<FaxSendResponse> {\n return this.request('/send', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":[],"mappings":";;AAAA;AAMM,MAAO,GAAI,SAAQ,WAAW,CAAA;AAClC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;IACD,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,WAAW,CAAC,IAAI,+BAA+B,CAAC;KAC/E;AACD;;;;;;AAMG;AACH,IAAA,QAAQ,CAAC,OAA8B,EAAA;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;KAClF;AACD;;;;;;AAMG;AACH,IAAA,OAAO,CAAC,OAA8B,EAAA;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;KACjF;AACD;;;;;;AAMG;IACH,IAAI,CAAC,MAAqB,EAAE,OAA8B,EAAA;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACtF;AACF;;;;"}
1
+ {"version":3,"file":"fax.js","sources":["../../../../src/resources/classes/fax.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n FaxGetConfigurationResponse,\n FaxOnboardResponse,\n FaxSendParams,\n FaxSendResponse,\n OystehrClientRequest,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Fax extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['faxApiUrl'] ?? 'https://fax-api.zapehr.com/v1';\n }\n /**\n * Offboard a fax number. Oystehr's [offboard](https://docs.oystehr.com/oystehr/services/fax/number/) feature makes it easy to stop using the fax service and release the project's assigned fax number with a single API call. Please note there is no way to guarantee getting the same number back again, so if you think this can break your project in any way we recommend not offboarding and avoid sending faxes until you're sure.\n *\n * Access Policy Requirements:\n * Action: `Fax:Offboard`\n * Access Policy Resource: `Fax:Number`\n */\n offboard(request?: OystehrClientRequest): Promise<void> {\n return this.request('/offboard', 'post', this.#baseUrlThunk.bind(this))(request);\n }\n /**\n * Onboard a fax number. Oystehr's [onboard](https://docs.oystehr.com/oystehr/services/fax/number/) feature makes it easy to start using the fax service and purchase a new fax number for your project with a single API call.\n *\n * Access Policy Requirements:\n * Action: `Fax:Onboard`\n * Access Policy Resource: `Fax:Number`\n */\n onboard(request?: OystehrClientRequest): Promise<FaxOnboardResponse> {\n return this.request('/onboard', 'post', this.#baseUrlThunk.bind(this))(request);\n }\n /**\n * Get fax service configuration.\n *\n * Access Policy Requirements:\n * Action: `Fax:GetConfiguration`\n * Access Policy Resource: `Fax:Configuration`\n */\n getConfiguration(request?: OystehrClientRequest): Promise<FaxGetConfigurationResponse> {\n return this.request('/config', 'get', this.#baseUrlThunk.bind(this))(request);\n }\n /**\n * Send a fax. Oystehr's [fax sending](https://docs.oystehr.com/oystehr/services/fax/send/) feature makes it easy to send a fax to a chosen recipient with a single API call. You can use this feature to send referrals, medical records, prescriptions, and other documents that require fax transmission e.g. for HIPAA compliance.\n *\n * Access Policy Requirements:\n * Action: `Fax:Send`\n * Access Policy Resource: `Fax:Fax`\n */\n send(params: FaxSendParams, request?: OystehrClientRequest): Promise<FaxSendResponse> {\n return this.request('/send', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":[],"mappings":";;AAAA;AAYM,MAAO,GAAI,SAAQ,WAAW,CAAA;AAClC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;IACD,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,WAAW,CAAC,IAAI,+BAA+B,CAAC;KAC/E;AACD;;;;;;AAMG;AACH,IAAA,QAAQ,CAAC,OAA8B,EAAA;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;KAClF;AACD;;;;;;AAMG;AACH,IAAA,OAAO,CAAC,OAA8B,EAAA;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;KACjF;AACD;;;;;;AAMG;AACH,IAAA,gBAAgB,CAAC,OAA8B,EAAA;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;KAC/E;AACD;;;;;;AAMG;IACH,IAAI,CAAC,MAAqB,EAAE,OAA8B,EAAA;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACtF;AACF;;;;"}
@@ -8,6 +8,10 @@ export interface Application {
8
8
  * The Application's OAuth 2.0 client identifier.
9
9
  */
10
10
  clientId: string;
11
+ /**
12
+ * The Application's connection name for use with frontend components.
13
+ */
14
+ connectionName?: string;
11
15
  /**
12
16
  * A description of the application to help you differentiate it from other applications in the project. This value is not displayed to end users.
13
17
  */
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Successfully retrieved fax service configuration.
3
+ */
4
+ export interface FaxGetConfigurationResponse {
5
+ /**
6
+ * True if the project is configured with the fax service.
7
+ */
8
+ configured: boolean;
9
+ /**
10
+ * An array of fax numbers assigned to your project in E.164 format.
11
+ */
12
+ faxNumbers?: string[];
13
+ }
@@ -17,4 +17,8 @@ export interface M2mCreateParams {
17
17
  * An URL of JWK set used for getting an access token by signed authentication JWT
18
18
  */
19
19
  jwksUrl?: string;
20
+ /**
21
+ * A relative reference to a FHIR relative reference of the format Patient/{uuidV4}. Resource type must be one of Patient, Practitioner, Device.
22
+ */
23
+ profile?: string;
20
24
  }
@@ -32,4 +32,8 @@ export interface UserInviteParams {
32
32
  * A list of Role IDs to assign to the invited user. If the accessPolicy property is not provided this property is required and may not be empty.
33
33
  */
34
34
  roles?: string[];
35
+ /**
36
+ * A relative reference to a FHIR relative reference of the format Patient/{uuidV4}. Resource type must be one of Patient, Practitioner, Device.
37
+ */
38
+ profile?: string;
35
39
  }
@@ -12,7 +12,7 @@ export interface ZambdaCreateParams {
12
12
  /**
13
13
  * The runtime to use for the Zambda Function.
14
14
  */
15
- runtime: 'nodejs18.x' | 'nodejs20.x' | 'nodejs22.x' | 'python3.13' | 'python3.12' | 'java21' | 'dotnet9' | 'ruby3.3';
15
+ runtime: 'nodejs20.x' | 'nodejs22.x' | 'python3.13' | 'python3.12' | 'java21' | 'dotnet9' | 'ruby3.3';
16
16
  /**
17
17
  * The amount of memory in MB to allocate to the Zambda Function. If not specified, a system default (1024MB) will be used. Min: 128MB, Max: 10240MB.
18
18
  */
@@ -21,4 +21,8 @@ export interface ZambdaCreateParams {
21
21
  * The timeout for the Zambda Function in seconds. If not specified, a system default (27 seconds) will be used. Min: 1s, Max: 900s (15 minutes). Note: For 'http_auth' and 'http_open' trigger methods, the timeout cannot exceed 27 seconds due to API Gateway limitations.
22
22
  */
23
23
  timeoutInSeconds?: number;
24
+ /**
25
+ * The ID of the IAM role that the Zambda Function will assume when it is invoked.
26
+ */
27
+ executionRoleId?: string;
24
28
  }
@@ -43,4 +43,8 @@ export interface ZambdaFunction {
43
43
  * The timeout for the Zambda Function in seconds. If not specified, a system default (27 seconds) will be used. Min: 1s, Max: 900s (15 minutes). Note: For 'http_auth' and 'http_open' trigger methods, the timeout cannot exceed 27 seconds due to API Gateway limitations.
44
44
  */
45
45
  timeoutInSeconds?: number;
46
+ /**
47
+ * The ID of the IAM role that the Zambda Function will assume when it is invoked.
48
+ */
49
+ executionRoleId?: string;
46
50
  }
@@ -12,7 +12,7 @@ export interface ZambdaUpdateParams {
12
12
  /**
13
13
  * The runtime to use for the Zambda Function.
14
14
  */
15
- runtime?: 'nodejs18.x' | 'nodejs20.x' | 'nodejs22.x' | 'python3.13' | 'python3.12' | 'java21' | 'dotnet9' | 'ruby3.3';
15
+ runtime?: 'nodejs20.x' | 'nodejs22.x' | 'python3.13' | 'python3.12' | 'java21' | 'dotnet9' | 'ruby3.3';
16
16
  /**
17
17
  * The amount of memory in MB to allocate to the Zambda Function. If not specified, a system default (1024MB) will be used. Min: 128MB, Max: 10240MB.
18
18
  */
@@ -21,5 +21,9 @@ export interface ZambdaUpdateParams {
21
21
  * The timeout for the Zambda Function in seconds. If not specified, a system default (27 seconds) will be used. Min: 1s, Max: 900s (15 minutes). Note: For 'http_auth' and 'http_open' trigger methods, the timeout cannot exceed 27 seconds due to API Gateway limitations.
22
22
  */
23
23
  timeoutInSeconds?: number;
24
+ /**
25
+ * The ID of the IAM role that the Zambda Function will assume when it is invoked.
26
+ */
27
+ executionRoleId?: string;
24
28
  id: string;
25
29
  }
@@ -165,6 +165,7 @@ export * from './ZambdaLogStreamSearchResponse';
165
165
  export * from './ZambdaLogStreamGetParams';
166
166
  export * from './ZambdaLogStreamGetResponse';
167
167
  export * from './FaxOnboardResponse';
168
+ export * from './FaxGetConfigurationResponse';
168
169
  export * from './FaxSendParams';
169
170
  export * from './FaxSendResponse';
170
171
  export * from './LabRouteListResponse';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oystehr/sdk",
3
- "version": "4.1.4",
3
+ "version": "4.1.7",
4
4
  "description": "Oystehr SDK",
5
5
  "scripts": {
6
6
  "lint": "eslint .",
@@ -39,7 +39,7 @@
39
39
  "@types/node": "20.17.58",
40
40
  "fast-json-patch": "3.1.1",
41
41
  "tslib": "2.8.1",
42
- "uuid": "11.0.2"
42
+ "uuid": "11.0.5"
43
43
  },
44
44
  "keywords": [
45
45
  "oystehr",
@@ -34,6 +34,8 @@ export class Erx extends SDKResource {
34
34
  }
35
35
  /**
36
36
  * Search for allergens.
37
+ * Action: `eRx:SearchAllergen`
38
+ * Access Policy Resource: `eRx:Allergen`
37
39
  */
38
40
  searchAllergens(
39
41
  params: ErxSearchAllergensParams,
@@ -43,6 +45,8 @@ export class Erx extends SDKResource {
43
45
  }
44
46
  /**
45
47
  * Search for medications.
48
+ * Action: `eRx:SearchMedication`
49
+ * Access Policy Resource: `eRx:Medication`
46
50
  */
47
51
  searchMedications(
48
52
  params: ErxSearchMedicationsParams,
@@ -52,12 +56,16 @@ export class Erx extends SDKResource {
52
56
  }
53
57
  /**
54
58
  * Get eRx configuration for project.
59
+ * Action: `eRx:GetConfiguration`
60
+ * Access Policy Resource: `eRx:Configuration`
55
61
  */
56
62
  getConfiguration(request?: OystehrClientRequest): Promise<ErxGetConfigurationResponse> {
57
63
  return this.request('/config', 'get', this.#baseUrlThunk.bind(this))(request);
58
64
  }
59
65
  /**
60
- * Checks for drug-allergy interactions for a patient. This endpoint requires the patient's allergies to be synced with the upstream eRx provider.
66
+ * Check for drug-allergy interactions for a patient. This endpoint requires the patient's allergies to be synced with the upstream eRx provider.
67
+ * Action: `eRx:Check`
68
+ * Access Policy Resource: `eRx:Interaction`
61
69
  */
62
70
  checkAllergyInteractions(
63
71
  params: ErxCheckAllergyInteractionsParams,
@@ -70,7 +78,9 @@ export class Erx extends SDKResource {
70
78
  )(params, request);
71
79
  }
72
80
  /**
73
- * Checks for drug-drug interactions for a patient. This endpoint requires the patient's medications to be synced with the upstream eRx provider.
81
+ * Check for drug-drug interactions for a patient. This endpoint requires the patient's medications to be synced with the upstream eRx provider.
82
+ * Action: `eRx:Check`
83
+ * Access Policy Resource: `eRx:Interaction`
74
84
  */
75
85
  checkMedicationInteractions(
76
86
  params: ErxCheckMedicationInteractionsParams,
@@ -83,7 +93,9 @@ export class Erx extends SDKResource {
83
93
  )(params, request);
84
94
  }
85
95
  /**
86
- * 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.
96
+ * Check 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.
97
+ * Action: `eRx:Check`
98
+ * Access Policy Resource: `eRx:Interaction`
87
99
  */
88
100
  checkPrecheckInteractions(
89
101
  params: ErxCheckPrecheckInteractionsParams,
@@ -97,6 +109,8 @@ export class Erx extends SDKResource {
97
109
  }
98
110
  /**
99
111
  * Cancel prescription for patient.
112
+ * Action: `eRx:CancelPrescription`
113
+ * Access Policy Resource: `eRx:Prescription`
100
114
  */
101
115
  cancelPrescription(params: ErxCancelPrescriptionParams, request?: OystehrClientRequest): Promise<void> {
102
116
  return this.request(
@@ -107,12 +121,16 @@ export class Erx extends SDKResource {
107
121
  }
108
122
  /**
109
123
  * Syncs demographic, allergy, and medication data for a patient with the upstream eRx provider.
124
+ * Action: `eRx:SyncPatient`
125
+ * Access Policy Resource: `eRx:Patient`
110
126
  */
111
127
  syncPatient(params: ErxSyncPatientParams, request?: OystehrClientRequest): Promise<void> {
112
128
  return this.request('/patient/{patientId}/sync', 'post', this.#baseUrlThunk.bind(this))(params, request);
113
129
  }
114
130
  /**
115
131
  * Create an SSO link for a practitioner. This link can be used to log in to the eRx service as the specified practitioner.
132
+ * Action: `eRx:Connect`
133
+ * Access Policy Resource: `eRx:SSO`
116
134
  */
117
135
  connectPractitioner(
118
136
  params: ErxConnectPractitionerParams,
@@ -120,10 +138,14 @@ export class Erx extends SDKResource {
120
138
  ): Promise<ErxConnectPractitionerResponse>;
121
139
  /**
122
140
  * Create an SSO link for a practitioner. This link can be used to log in to the eRx service as the specified practitioner.
141
+ * Action: `eRx:Connect`
142
+ * Access Policy Resource: `eRx:SSO`
123
143
  */
124
144
  connectPractitioner(request?: OystehrClientRequest): Promise<ErxConnectPractitionerResponse>;
125
145
  /**
126
146
  * Create an SSO link for a practitioner. This link can be used to log in to the eRx service as the specified practitioner.
147
+ * Action: `eRx:Connect`
148
+ * Access Policy Resource: `eRx:SSO`
127
149
  */
128
150
  connectPractitioner(
129
151
  params?: ErxConnectPractitionerParams | OystehrClientRequest,
@@ -133,6 +155,8 @@ export class Erx extends SDKResource {
133
155
  }
134
156
  /**
135
157
  * Check eRx enrollment for a practitioner.
158
+ * Action: `eRx:Read`
159
+ * Access Policy Resource: `eRx:Enrollment`
136
160
  */
137
161
  checkPractitionerEnrollment(
138
162
  params: ErxCheckPractitionerEnrollmentParams,
@@ -142,12 +166,16 @@ export class Erx extends SDKResource {
142
166
  }
143
167
  /**
144
168
  * Enroll a practitioner in the eRx service.
169
+ * Action: `eRx:Create`
170
+ * Access Policy Resource: `eRx:Enrollment`
145
171
  */
146
172
  enrollPractitioner(params: ErxEnrollPractitionerParams, request?: OystehrClientRequest): Promise<void> {
147
173
  return this.request('/practitioner/{practitionerId}', 'post', this.#baseUrlThunk.bind(this))(params, request);
148
174
  }
149
175
  /**
150
176
  * Unenroll a practitioner from the eRx service.
177
+ * Action: `eRx:Delete`
178
+ * Access Policy Resource: `eRx:Enrollment`
151
179
  */
152
180
  unenrollPractitioner(params: ErxUnenrollPractitionerParams, request?: OystehrClientRequest): Promise<void> {
153
181
  return this.request('/practitioner/{practitionerId}', 'delete', this.#baseUrlThunk.bind(this))(params, request);
@@ -1,6 +1,12 @@
1
1
  // AUTOGENERATED -- DO NOT EDIT
2
2
 
3
- import { FaxOnboardResponse, FaxSendParams, FaxSendResponse, OystehrClientRequest } from '../..';
3
+ import {
4
+ FaxGetConfigurationResponse,
5
+ FaxOnboardResponse,
6
+ FaxSendParams,
7
+ FaxSendResponse,
8
+ OystehrClientRequest,
9
+ } from '../..';
4
10
  import { SDKResource } from '../../client/client';
5
11
  import { OystehrConfig } from '../../config';
6
12
 
@@ -31,6 +37,16 @@ export class Fax extends SDKResource {
31
37
  onboard(request?: OystehrClientRequest): Promise<FaxOnboardResponse> {
32
38
  return this.request('/onboard', 'post', this.#baseUrlThunk.bind(this))(request);
33
39
  }
40
+ /**
41
+ * Get fax service configuration.
42
+ *
43
+ * Access Policy Requirements:
44
+ * Action: `Fax:GetConfiguration`
45
+ * Access Policy Resource: `Fax:Configuration`
46
+ */
47
+ getConfiguration(request?: OystehrClientRequest): Promise<FaxGetConfigurationResponse> {
48
+ return this.request('/config', 'get', this.#baseUrlThunk.bind(this))(request);
49
+ }
34
50
  /**
35
51
  * Send a fax. Oystehr's [fax sending](https://docs.oystehr.com/oystehr/services/fax/send/) feature makes it easy to send a fax to a chosen recipient with a single API call. You can use this feature to send referrals, medical records, prescriptions, and other documents that require fax transmission e.g. for HIPAA compliance.
36
52
  *
@@ -10,6 +10,10 @@ export interface Application {
10
10
  * The Application's OAuth 2.0 client identifier.
11
11
  */
12
12
  clientId: string;
13
+ /**
14
+ * The Application's connection name for use with frontend components.
15
+ */
16
+ connectionName?: string;
13
17
  /**
14
18
  * A description of the application to help you differentiate it from other applications in the project. This value is not displayed to end users.
15
19
  */
@@ -0,0 +1,15 @@
1
+ // AUTOGENERATED -- DO NOT EDIT
2
+
3
+ /**
4
+ * Successfully retrieved fax service configuration.
5
+ */
6
+ export interface FaxGetConfigurationResponse {
7
+ /**
8
+ * True if the project is configured with the fax service.
9
+ */
10
+ configured: boolean;
11
+ /**
12
+ * An array of fax numbers assigned to your project in E.164 format.
13
+ */
14
+ faxNumbers?: string[];
15
+ }
@@ -20,4 +20,8 @@ export interface M2mCreateParams {
20
20
  * An URL of JWK set used for getting an access token by signed authentication JWT
21
21
  */
22
22
  jwksUrl?: string;
23
+ /**
24
+ * A relative reference to a FHIR relative reference of the format Patient/{uuidV4}. Resource type must be one of Patient, Practitioner, Device.
25
+ */
26
+ profile?: string;
23
27
  }
@@ -35,4 +35,8 @@ export interface UserInviteParams {
35
35
  * A list of Role IDs to assign to the invited user. If the accessPolicy property is not provided this property is required and may not be empty.
36
36
  */
37
37
  roles?: string[];
38
+ /**
39
+ * A relative reference to a FHIR relative reference of the format Patient/{uuidV4}. Resource type must be one of Patient, Practitioner, Device.
40
+ */
41
+ profile?: string;
38
42
  }
@@ -15,7 +15,7 @@ export interface ZambdaCreateParams {
15
15
  /**
16
16
  * The runtime to use for the Zambda Function.
17
17
  */
18
- runtime: 'nodejs18.x' | 'nodejs20.x' | 'nodejs22.x' | 'python3.13' | 'python3.12' | 'java21' | 'dotnet9' | 'ruby3.3';
18
+ runtime: 'nodejs20.x' | 'nodejs22.x' | 'python3.13' | 'python3.12' | 'java21' | 'dotnet9' | 'ruby3.3';
19
19
  /**
20
20
  * The amount of memory in MB to allocate to the Zambda Function. If not specified, a system default (1024MB) will be used. Min: 128MB, Max: 10240MB.
21
21
  */
@@ -24,4 +24,8 @@ export interface ZambdaCreateParams {
24
24
  * The timeout for the Zambda Function in seconds. If not specified, a system default (27 seconds) will be used. Min: 1s, Max: 900s (15 minutes). Note: For 'http_auth' and 'http_open' trigger methods, the timeout cannot exceed 27 seconds due to API Gateway limitations.
25
25
  */
26
26
  timeoutInSeconds?: number;
27
+ /**
28
+ * The ID of the IAM role that the Zambda Function will assume when it is invoked.
29
+ */
30
+ executionRoleId?: string;
27
31
  }