@oystehr/sdk 3.0.5 → 3.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +51 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.min.cjs +1 -1
- package/dist/cjs/index.min.cjs.map +1 -1
- package/dist/cjs/resources/classes/erx.d.ts +9 -1
- package/dist/cjs/resources/classes/fax.d.ts +30 -0
- package/dist/cjs/resources/classes/index.d.ts +2 -0
- package/dist/cjs/resources/classes/rcm.d.ts +1 -1
- package/dist/cjs/resources/types/ErxCancelOrderParams.d.ts +6 -0
- package/dist/cjs/resources/types/ErxCancelOrderResponse.d.ts +6 -0
- package/dist/cjs/resources/types/ErxCancelPrescriptionParams.d.ts +6 -0
- package/dist/cjs/resources/types/ErxCancelPrescriptionResponse.d.ts +6 -0
- package/dist/cjs/resources/types/FaxSendParams.d.ts +18 -0
- package/dist/cjs/resources/types/FaxSendResponse.d.ts +10 -0
- package/dist/cjs/resources/types/index.d.ts +6 -0
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/index.min.js.map +1 -1
- package/dist/esm/resources/classes/erx.d.ts +9 -1
- package/dist/esm/resources/classes/erx.js +12 -0
- package/dist/esm/resources/classes/erx.js.map +1 -1
- package/dist/esm/resources/classes/fax.d.ts +30 -0
- package/dist/esm/resources/classes/fax.js +41 -0
- package/dist/esm/resources/classes/fax.js.map +1 -0
- package/dist/esm/resources/classes/index.d.ts +2 -0
- package/dist/esm/resources/classes/index.js +2 -0
- package/dist/esm/resources/classes/index.js.map +1 -1
- package/dist/esm/resources/classes/rcm.d.ts +1 -1
- package/dist/esm/resources/classes/rcm.js +1 -1
- package/dist/esm/resources/classes/rcm.js.map +1 -1
- package/dist/esm/resources/types/ErxCancelOrderParams.d.ts +6 -0
- package/dist/esm/resources/types/ErxCancelOrderResponse.d.ts +6 -0
- package/dist/esm/resources/types/ErxCancelPrescriptionParams.d.ts +6 -0
- package/dist/esm/resources/types/ErxCancelPrescriptionResponse.d.ts +6 -0
- package/dist/esm/resources/types/FaxSendParams.d.ts +18 -0
- package/dist/esm/resources/types/FaxSendResponse.d.ts +10 -0
- package/dist/esm/resources/types/index.d.ts +6 -0
- package/package.json +2 -2
- package/src/resources/classes/erx.ts +19 -0
- package/src/resources/classes/fax.ts +41 -0
- package/src/resources/classes/index.ts +3 -0
- package/src/resources/classes/rcm.ts +1 -1
- package/src/resources/types/ErxCancelOrderParams.ts +8 -0
- package/src/resources/types/ErxCancelOrderResponse.ts +8 -0
- package/src/resources/types/ErxCancelPrescriptionParams.ts +8 -0
- package/src/resources/types/ErxCancelPrescriptionResponse.ts +8 -0
- package/src/resources/types/FaxSendParams.ts +20 -0
- package/src/resources/types/FaxSendResponse.ts +12 -0
- package/src/resources/types/index.ts +6 -0
- /package/dist/cjs/tests/{common.d.ts → integrational/common.d.ts} +0 -0
- /package/dist/esm/tests/{common.d.ts → integrational/common.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ErxAllergySearchParams, ErxAllergySearchResponse, ErxMedicationSearchParams, ErxMedicationSearchResponse, ErxMedicationSearchV2Params, ErxMedicationSearchV2Response, ErxSyncPatientParams, ErxSyncPatientResponse, OystehrClientRequest } from '../..';
|
|
1
|
+
import { ErxAllergySearchParams, ErxAllergySearchResponse, ErxCancelOrderParams, ErxCancelOrderResponse, ErxCancelPrescriptionParams, ErxCancelPrescriptionResponse, ErxMedicationSearchParams, ErxMedicationSearchResponse, ErxMedicationSearchV2Params, ErxMedicationSearchV2Response, ErxSyncPatientParams, ErxSyncPatientResponse, OystehrClientRequest } from '../..';
|
|
2
2
|
import { SDKResource } from '../../client/client';
|
|
3
3
|
import { OystehrConfig } from '../../config';
|
|
4
4
|
export declare class Erx extends SDKResource {
|
|
@@ -11,6 +11,14 @@ export declare class Erx extends SDKResource {
|
|
|
11
11
|
* Search for allergies
|
|
12
12
|
*/
|
|
13
13
|
allergySearch(params: ErxAllergySearchParams, request?: OystehrClientRequest): Promise<ErxAllergySearchResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Cancel photon order
|
|
16
|
+
*/
|
|
17
|
+
cancelOrder(params: ErxCancelOrderParams, request?: OystehrClientRequest): Promise<ErxCancelOrderResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Cancel photon prescription
|
|
20
|
+
*/
|
|
21
|
+
cancelPrescription(params: ErxCancelPrescriptionParams, request?: OystehrClientRequest): Promise<ErxCancelPrescriptionResponse>;
|
|
14
22
|
/**
|
|
15
23
|
* Search for medications. Provide at least one of code or name filters
|
|
16
24
|
*/
|
|
@@ -17,6 +17,18 @@ class Erx extends SDKResource {
|
|
|
17
17
|
allergySearch(params, request) {
|
|
18
18
|
return this.request('/erx/allergy/search', 'get')(params, request);
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Cancel photon order
|
|
22
|
+
*/
|
|
23
|
+
cancelOrder(params, request) {
|
|
24
|
+
return this.request('/erx/cancel-order', 'post')(params, request);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Cancel photon prescription
|
|
28
|
+
*/
|
|
29
|
+
cancelPrescription(params, request) {
|
|
30
|
+
return this.request('/erx/cancel-prescription', 'post')(params, request);
|
|
31
|
+
}
|
|
20
32
|
/**
|
|
21
33
|
* Search for medications. Provide at least one of code or name filters
|
|
22
34
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"erx.js","sources":["../../../../src/resources/classes/erx.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n ErxAllergySearchParams,\n ErxAllergySearchResponse,\n ErxMedicationSearchParams,\n ErxMedicationSearchResponse,\n ErxMedicationSearchV2Params,\n ErxMedicationSearchV2Response,\n ErxSyncPatientParams,\n ErxSyncPatientResponse,\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 /**\n * Retrieve patient properties from FHIR service and sync them with eRx service\n */\n syncPatient(params: ErxSyncPatientParams, request?: OystehrClientRequest): Promise<ErxSyncPatientResponse> {\n return this.request('/erx/sync-patient/{patientId}', 'post')(params, request);\n }\n /**\n * Search for allergies\n */\n allergySearch(params: ErxAllergySearchParams, request?: OystehrClientRequest): Promise<ErxAllergySearchResponse> {\n return this.request('/erx/allergy/search', 'get')(params, request);\n }\n /**\n * Search for medications. Provide at least one of code or name filters\n */\n medicationSearch(\n params: ErxMedicationSearchParams,\n request?: OystehrClientRequest\n ): Promise<ErxMedicationSearchResponse> {\n return this.request('/erx/medication/search', 'get')(params, request);\n }\n /**\n * Search for medications. Provide at least one of code or name filters\n */\n medicationSearchV2(\n params: ErxMedicationSearchV2Params,\n request?: OystehrClientRequest\n ): Promise<ErxMedicationSearchV2Response> {\n return this.request('/erx/v2/medication/search', 'get')(params, request);\n }\n}\n"],"names":[],"mappings":";;AAAA;
|
|
1
|
+
{"version":3,"file":"erx.js","sources":["../../../../src/resources/classes/erx.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n ErxAllergySearchParams,\n ErxAllergySearchResponse,\n ErxCancelOrderParams,\n ErxCancelOrderResponse,\n ErxCancelPrescriptionParams,\n ErxCancelPrescriptionResponse,\n ErxMedicationSearchParams,\n ErxMedicationSearchResponse,\n ErxMedicationSearchV2Params,\n ErxMedicationSearchV2Response,\n ErxSyncPatientParams,\n ErxSyncPatientResponse,\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 /**\n * Retrieve patient properties from FHIR service and sync them with eRx service\n */\n syncPatient(params: ErxSyncPatientParams, request?: OystehrClientRequest): Promise<ErxSyncPatientResponse> {\n return this.request('/erx/sync-patient/{patientId}', 'post')(params, request);\n }\n /**\n * Search for allergies\n */\n allergySearch(params: ErxAllergySearchParams, request?: OystehrClientRequest): Promise<ErxAllergySearchResponse> {\n return this.request('/erx/allergy/search', 'get')(params, request);\n }\n /**\n * Cancel photon order\n */\n cancelOrder(params: ErxCancelOrderParams, request?: OystehrClientRequest): Promise<ErxCancelOrderResponse> {\n return this.request('/erx/cancel-order', 'post')(params, request);\n }\n /**\n * Cancel photon prescription\n */\n cancelPrescription(\n params: ErxCancelPrescriptionParams,\n request?: OystehrClientRequest\n ): Promise<ErxCancelPrescriptionResponse> {\n return this.request('/erx/cancel-prescription', 'post')(params, request);\n }\n /**\n * Search for medications. Provide at least one of code or name filters\n */\n medicationSearch(\n params: ErxMedicationSearchParams,\n request?: OystehrClientRequest\n ): Promise<ErxMedicationSearchResponse> {\n return this.request('/erx/medication/search', 'get')(params, request);\n }\n /**\n * Search for medications. Provide at least one of code or name filters\n */\n medicationSearchV2(\n params: ErxMedicationSearchV2Params,\n request?: OystehrClientRequest\n ): Promise<ErxMedicationSearchV2Response> {\n return this.request('/erx/v2/medication/search', 'get')(params, request);\n }\n}\n"],"names":[],"mappings":";;AAAA;AAoBM,MAAO,GAAI,SAAQ,WAAW,CAAA;AAClC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;AACD;;AAEG;IACH,WAAW,CAAC,MAA4B,EAAE,OAA8B,EAAA;AACtE,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,+BAA+B,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC/E;AACD;;AAEG;IACH,aAAa,CAAC,MAA8B,EAAE,OAA8B,EAAA;AAC1E,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACpE;AACD;;AAEG;IACH,WAAW,CAAC,MAA4B,EAAE,OAA8B,EAAA;AACtE,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACnE;AACD;;AAEG;IACH,kBAAkB,CAChB,MAAmC,EACnC,OAA8B,EAAA;AAE9B,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,0BAA0B,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC1E;AACD;;AAEG;IACH,gBAAgB,CACd,MAAiC,EACjC,OAA8B,EAAA;AAE9B,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACvE;AACD;;AAEG;IACH,kBAAkB,CAChB,MAAmC,EACnC,OAA8B,EAAA;AAE9B,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC1E;AACF;;;;"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { FaxSendParams, FaxSendResponse, OystehrClientRequest } from '../..';
|
|
2
|
+
import { SDKResource } from '../../client/client';
|
|
3
|
+
import { OystehrConfig } from '../../config';
|
|
4
|
+
export declare class Fax extends SDKResource {
|
|
5
|
+
constructor(config: OystehrConfig);
|
|
6
|
+
/**
|
|
7
|
+
* Offboard a fax number. Oystehr's [offboard](https://docs.oystehr.com/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.
|
|
8
|
+
*
|
|
9
|
+
* Access Policy Requirements:
|
|
10
|
+
* Action: `Fax:Offboard`
|
|
11
|
+
* Access Policy Resource: `Fax:Number`
|
|
12
|
+
*/
|
|
13
|
+
offboard(request?: OystehrClientRequest): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* Onboard a fax number. Oystehr's [onboard](https://docs.oystehr.com/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.
|
|
16
|
+
*
|
|
17
|
+
* Access Policy Requirements:
|
|
18
|
+
* Action: `Fax:Onboard`
|
|
19
|
+
* Access Policy Resource: `Fax:Number`
|
|
20
|
+
*/
|
|
21
|
+
onboard(request?: OystehrClientRequest): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Send a fax. Oystehr's [fax sending](https://docs.oystehr.com/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.
|
|
24
|
+
*
|
|
25
|
+
* Access Policy Requirements:
|
|
26
|
+
* Action: `Fax:Send`
|
|
27
|
+
* Access Policy Resource: `Fax:Fax`
|
|
28
|
+
*/
|
|
29
|
+
send(params: FaxSendParams, request?: OystehrClientRequest): Promise<FaxSendResponse>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { SDKResource } from '../../client/client.js';
|
|
2
|
+
|
|
3
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
4
|
+
class Fax extends SDKResource {
|
|
5
|
+
constructor(config) {
|
|
6
|
+
super(config);
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Offboard a fax number. Oystehr's [offboard](https://docs.oystehr.com/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.
|
|
10
|
+
*
|
|
11
|
+
* Access Policy Requirements:
|
|
12
|
+
* Action: `Fax:Offboard`
|
|
13
|
+
* Access Policy Resource: `Fax:Number`
|
|
14
|
+
*/
|
|
15
|
+
offboard(request) {
|
|
16
|
+
return this.request('/fax/offboard', 'post')(request);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Onboard a fax number. Oystehr's [onboard](https://docs.oystehr.com/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.
|
|
20
|
+
*
|
|
21
|
+
* Access Policy Requirements:
|
|
22
|
+
* Action: `Fax:Onboard`
|
|
23
|
+
* Access Policy Resource: `Fax:Number`
|
|
24
|
+
*/
|
|
25
|
+
onboard(request) {
|
|
26
|
+
return this.request('/fax/onboard', 'post')(request);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Send a fax. Oystehr's [fax sending](https://docs.oystehr.com/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.
|
|
30
|
+
*
|
|
31
|
+
* Access Policy Requirements:
|
|
32
|
+
* Action: `Fax:Send`
|
|
33
|
+
* Access Policy Resource: `Fax:Fax`
|
|
34
|
+
*/
|
|
35
|
+
send(params, request) {
|
|
36
|
+
return this.request('/fax/send', 'post')(params, request);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { Fax };
|
|
41
|
+
//# sourceMappingURL=fax.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fax.js","sources":["../../../../src/resources/classes/fax.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport { 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 /**\n * Offboard a fax number. Oystehr's [offboard](https://docs.oystehr.com/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('/fax/offboard', 'post')(request);\n }\n /**\n * Onboard a fax number. Oystehr's [onboard](https://docs.oystehr.com/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<void> {\n return this.request('/fax/onboard', 'post')(request);\n }\n /**\n * Send a fax. Oystehr's [fax sending](https://docs.oystehr.com/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('/fax/send', 'post')(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;AACD;;;;;;AAMG;AACH,IAAA,QAAQ,CAAC,OAA8B,EAAA;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;KACvD;AACD;;;;;;AAMG;AACH,IAAA,OAAO,CAAC,OAA8B,EAAA;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;KACtD;AACD;;;;;;AAMG;IACH,IAAI,CAAC,MAAqB,EAAE,OAA8B,EAAA;AACxD,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC3D;AACF;;;;"}
|
|
@@ -4,6 +4,7 @@ import { Charge } from './charge';
|
|
|
4
4
|
import { Conversation } from './conversation';
|
|
5
5
|
import { Developer } from './developer';
|
|
6
6
|
import { Erx } from './erx';
|
|
7
|
+
import { Fax } from './fax';
|
|
7
8
|
import { Fhir } from './fhir';
|
|
8
9
|
import { M2m } from './m2m';
|
|
9
10
|
import { Messaging } from './messaging';
|
|
@@ -32,6 +33,7 @@ export declare class Oystehr {
|
|
|
32
33
|
readonly project: Project;
|
|
33
34
|
readonly rcm: Rcm;
|
|
34
35
|
readonly erx: Erx;
|
|
36
|
+
readonly fax: Fax;
|
|
35
37
|
readonly role: Role;
|
|
36
38
|
readonly secret: Secret;
|
|
37
39
|
readonly telemed: Telemed;
|
|
@@ -3,6 +3,7 @@ import { Charge } from './charge.js';
|
|
|
3
3
|
import { Conversation } from './conversation.js';
|
|
4
4
|
import { Developer } from './developer.js';
|
|
5
5
|
import { Erx } from './erx.js';
|
|
6
|
+
import { Fax } from './fax.js';
|
|
6
7
|
import { Fhir } from './fhir.js';
|
|
7
8
|
import { M2m } from './m2m.js';
|
|
8
9
|
import { Messaging } from './messaging.js';
|
|
@@ -34,6 +35,7 @@ let Oystehr$1 = class Oystehr {
|
|
|
34
35
|
this.project = new Project(config);
|
|
35
36
|
this.rcm = new Rcm(config);
|
|
36
37
|
this.erx = new Erx(config);
|
|
38
|
+
this.fax = new Fax(config);
|
|
37
39
|
this.role = new Role(config);
|
|
38
40
|
this.secret = new Secret(config);
|
|
39
41
|
this.telemed = new Telemed(config);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/resources/classes/index.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport { OystehrConfig } from '../../config';\nimport { Application } from './application';\nimport { Charge } from './charge';\nimport { Conversation } from './conversation';\nimport { Developer } from './developer';\nimport { Erx } from './erx';\nimport { Fhir } from './fhir';\nimport { M2m } from './m2m';\nimport { Messaging } from './messaging';\nimport { PaymentMethod } from './paymentMethod';\nimport { Project } from './project';\nimport { Rcm } from './rcm';\nimport { Role } from './role';\nimport { Secret } from './secret';\nimport { Telemed } from './telemed';\nimport { TransactionalSMS } from './transactionalSMS';\nimport { User } from './user';\nimport { Version } from './version';\nimport { Z3 } from './z3';\nimport { Zambda } from './zambda';\nimport { ZambdaLogStream } from './zambdaLogStream';\n\nexport class Oystehr {\n readonly config: OystehrConfig;\n readonly application: Application;\n readonly developer: Developer;\n readonly m2m: M2m;\n readonly messaging: Messaging;\n readonly conversation: Conversation;\n readonly transactionalSMS: TransactionalSMS;\n readonly paymentMethod: PaymentMethod;\n readonly charge: Charge;\n readonly project: Project;\n readonly rcm: Rcm;\n readonly erx: Erx;\n readonly role: Role;\n readonly secret: Secret;\n readonly telemed: Telemed;\n readonly user: User;\n readonly version: Version;\n readonly z3: Z3;\n readonly zambda: Zambda;\n readonly zambdaLogStream: ZambdaLogStream;\n readonly fhir: Fhir;\n constructor(config: OystehrConfig) {\n this.config = config;\n this.application = new Application(config);\n this.developer = new Developer(config);\n this.m2m = new M2m(config);\n this.messaging = new Messaging(config);\n this.conversation = new Conversation(config);\n this.transactionalSMS = new TransactionalSMS(config);\n this.paymentMethod = new PaymentMethod(config);\n this.charge = new Charge(config);\n this.project = new Project(config);\n this.rcm = new Rcm(config);\n this.erx = new Erx(config);\n this.role = new Role(config);\n this.secret = new Secret(config);\n this.telemed = new Telemed(config);\n this.user = new User(config);\n this.version = new Version(config);\n this.z3 = new Z3(config);\n this.zambda = new Zambda(config);\n this.zambdaLogStream = new ZambdaLogStream(config);\n this.fhir = new Fhir(config);\n }\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/resources/classes/index.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport { OystehrConfig } from '../../config';\nimport { Application } from './application';\nimport { Charge } from './charge';\nimport { Conversation } from './conversation';\nimport { Developer } from './developer';\nimport { Erx } from './erx';\nimport { Fax } from './fax';\nimport { Fhir } from './fhir';\nimport { M2m } from './m2m';\nimport { Messaging } from './messaging';\nimport { PaymentMethod } from './paymentMethod';\nimport { Project } from './project';\nimport { Rcm } from './rcm';\nimport { Role } from './role';\nimport { Secret } from './secret';\nimport { Telemed } from './telemed';\nimport { TransactionalSMS } from './transactionalSMS';\nimport { User } from './user';\nimport { Version } from './version';\nimport { Z3 } from './z3';\nimport { Zambda } from './zambda';\nimport { ZambdaLogStream } from './zambdaLogStream';\n\nexport class Oystehr {\n readonly config: OystehrConfig;\n readonly application: Application;\n readonly developer: Developer;\n readonly m2m: M2m;\n readonly messaging: Messaging;\n readonly conversation: Conversation;\n readonly transactionalSMS: TransactionalSMS;\n readonly paymentMethod: PaymentMethod;\n readonly charge: Charge;\n readonly project: Project;\n readonly rcm: Rcm;\n readonly erx: Erx;\n readonly fax: Fax;\n readonly role: Role;\n readonly secret: Secret;\n readonly telemed: Telemed;\n readonly user: User;\n readonly version: Version;\n readonly z3: Z3;\n readonly zambda: Zambda;\n readonly zambdaLogStream: ZambdaLogStream;\n readonly fhir: Fhir;\n constructor(config: OystehrConfig) {\n this.config = config;\n this.application = new Application(config);\n this.developer = new Developer(config);\n this.m2m = new M2m(config);\n this.messaging = new Messaging(config);\n this.conversation = new Conversation(config);\n this.transactionalSMS = new TransactionalSMS(config);\n this.paymentMethod = new PaymentMethod(config);\n this.charge = new Charge(config);\n this.project = new Project(config);\n this.rcm = new Rcm(config);\n this.erx = new Erx(config);\n this.fax = new Fax(config);\n this.role = new Role(config);\n this.secret = new Secret(config);\n this.telemed = new Telemed(config);\n this.user = new User(config);\n this.version = new Version(config);\n this.z3 = new Z3(config);\n this.zambda = new Zambda(config);\n this.zambdaLogStream = new ZambdaLogStream(config);\n this.fhir = new Fhir(config);\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;sBAyBa,OAAO,CAAA;AAuBlB,IAAA,WAAA,CAAY,MAAqB,EAAA;AAC/B,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,WAAW,GAAG,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;QAC3C,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC,MAAM,CAAC,CAAC;QACvC,IAAI,CAAC,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC,MAAM,CAAC,CAAC;QACvC,IAAI,CAAC,YAAY,GAAG,IAAI,YAAY,CAAC,MAAM,CAAC,CAAC;QAC7C,IAAI,CAAC,gBAAgB,GAAG,IAAI,gBAAgB,CAAC,MAAM,CAAC,CAAC;QACrD,IAAI,CAAC,aAAa,GAAG,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC;QAC/C,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC;QACjC,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;QACnC,IAAI,CAAC,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;QAC3B,IAAI,CAAC,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;QAC3B,IAAI,CAAC,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;QAC3B,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC;QAC7B,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC;QACjC,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;QACnC,IAAI,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC,MAAM,CAAC,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC;QACjC,IAAI,CAAC,eAAe,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;QACnD,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC;KAC9B;AACF;;;;"}
|
|
@@ -9,7 +9,7 @@ export declare class Rcm extends SDKResource {
|
|
|
9
9
|
* Access Policy Action: `RCM:CheckInsuranceEligibility`
|
|
10
10
|
* Access Policy Resource: `RCM:InsuranceEligibility`
|
|
11
11
|
*
|
|
12
|
-
*
|
|
12
|
+
* Access Policy Action: `FHIR:Create`
|
|
13
13
|
* Access Policy Resource: `FHIR:CoverageEligibilityResponse`
|
|
14
14
|
*/
|
|
15
15
|
eligibilityCheck(params: RcmEligibilityCheckParams, request?: OystehrClientRequest): Promise<RcmEligibilityCheckResponse>;
|
|
@@ -11,7 +11,7 @@ class Rcm extends SDKResource {
|
|
|
11
11
|
* Access Policy Action: `RCM:CheckInsuranceEligibility`
|
|
12
12
|
* Access Policy Resource: `RCM:InsuranceEligibility`
|
|
13
13
|
*
|
|
14
|
-
*
|
|
14
|
+
* Access Policy Action: `FHIR:Create`
|
|
15
15
|
* Access Policy Resource: `FHIR:CoverageEligibilityResponse`
|
|
16
16
|
*/
|
|
17
17
|
eligibilityCheck(params, request) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rcm.js","sources":["../../../../src/resources/classes/rcm.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n RcmEligibilityCheckParams,\n RcmEligibilityCheckResponse,\n RcmSubmitProfessionalClaimParams,\n RcmSubmitProfessionalClaimResponse,\n RcmValidateProfessionalClaimParams,\n RcmValidateProfessionalClaimResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Rcm extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n /**\n * Check [Insurance Eligibility](https://docs.oystehr.com/services/rcm/eligibility/).\n *\n * Access Policy Action: `RCM:CheckInsuranceEligibility`\n * Access Policy Resource: `RCM:InsuranceEligibility`\n *\n *
|
|
1
|
+
{"version":3,"file":"rcm.js","sources":["../../../../src/resources/classes/rcm.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n RcmEligibilityCheckParams,\n RcmEligibilityCheckResponse,\n RcmSubmitProfessionalClaimParams,\n RcmSubmitProfessionalClaimResponse,\n RcmValidateProfessionalClaimParams,\n RcmValidateProfessionalClaimResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Rcm extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n /**\n * Check [Insurance Eligibility](https://docs.oystehr.com/services/rcm/eligibility/).\n *\n * Access Policy Action: `RCM:CheckInsuranceEligibility`\n * Access Policy Resource: `RCM:InsuranceEligibility`\n *\n * Access Policy Action: `FHIR:Create`\n * Access Policy Resource: `FHIR:CoverageEligibilityResponse`\n */\n eligibilityCheck(\n params: RcmEligibilityCheckParams,\n request?: OystehrClientRequest\n ): Promise<RcmEligibilityCheckResponse> {\n return this.request('/rcm/eligibility-check', 'post')(params, request);\n }\n /**\n * Check [Validate Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).\n *\n * Access Policy Action: `RCM:ValidateProfessionalClaim`\n * Access Policy Resource: `RCM:Claim`\n *\n * Access Policy Action: `FHIR:Create`\n * Access Policy Resource: `FHIR:AuditEvent`\n */\n validateProfessionalClaim(\n params: RcmValidateProfessionalClaimParams,\n request?: OystehrClientRequest\n ): Promise<RcmValidateProfessionalClaimResponse> {\n return this.request('/rcm/professional-claim/validate', 'post')(params, request);\n }\n /**\n * Check [Submit Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).\n *\n * Access Policy Action: `RCM:SubmitProfessionalClaim`\n * Access Policy Resource: `RCM:Claim`\n *\n * Access Policy Action: `FHIR:Create`\n * Access Policy Resource: `FHIR:AuditEvent`\n *\n * Access Policy Actions: `FHIR:Create, FHIR:Update`\n * Access Policy Resource: `FHIR:Claim`\n */\n submitProfessionalClaim(\n params: RcmSubmitProfessionalClaimParams,\n request?: OystehrClientRequest\n ): Promise<RcmSubmitProfessionalClaimResponse> {\n return this.request('/rcm/professional-claim/submit', 'post')(params, request);\n }\n}\n"],"names":[],"mappings":";;AAAA;AAcM,MAAO,GAAI,SAAQ,WAAW,CAAA;AAClC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;AACD;;;;;;;;AAQG;IACH,gBAAgB,CACd,MAAiC,EACjC,OAA8B,EAAA;AAE9B,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACxE;AACD;;;;;;;;AAQG;IACH,yBAAyB,CACvB,MAA0C,EAC1C,OAA8B,EAAA;AAE9B,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,kCAAkC,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAClF;AACD;;;;;;;;;;;AAWG;IACH,uBAAuB,CACrB,MAAwC,EACxC,OAA8B,EAAA;AAE9B,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,gCAAgC,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAChF;AACF;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface FaxSendParams {
|
|
2
|
+
/**
|
|
3
|
+
* A Z3 URL of the document you want to send. Your user must have access to this document.
|
|
4
|
+
*/
|
|
5
|
+
media: string;
|
|
6
|
+
/**
|
|
7
|
+
* The quality of the document you want sent.
|
|
8
|
+
*/
|
|
9
|
+
quality: 'standard' | 'fine' | 'superfine';
|
|
10
|
+
/**
|
|
11
|
+
* The recipient of the fax. This must be a valid FHIR CareTeam, HealthcareService, Organization, Patient, Practitioner, PractitionerRole, or RelatedPerson relative reference in the format: `the-resource-type/some-valid-uuid`. This reference must be a valid resource and have a number in the `telecom` field with a `system` of `fax`.
|
|
12
|
+
*/
|
|
13
|
+
recipient: string;
|
|
14
|
+
/**
|
|
15
|
+
* The sender of the fax. This must be a valid FHIR HealthcareService, Organization, Patient, Practitioner, PractitionerRole, or RelatedPerson relative reference in the format: `the-resource-type/some-valid-uuid`. This reference must be a valid resource and have your [onboarded fax number](https://docs.oystehr.com/services/fax/number/) in the `telecom` field with a `system` of `fax`.
|
|
16
|
+
*/
|
|
17
|
+
sender: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Communication } from 'fhir/r4b';
|
|
2
|
+
/**
|
|
3
|
+
* Successfully sent a fax.
|
|
4
|
+
*/
|
|
5
|
+
export interface FaxSendResponse {
|
|
6
|
+
/**
|
|
7
|
+
* The FHIR Communication resource that represents the sent fax in the FHIR Store modified to include the https://extensions.fhir.oystehr.com/outbound-fax-status extension which holds the fax status that will be updated automatically.
|
|
8
|
+
*/
|
|
9
|
+
communicationResource: Communication;
|
|
10
|
+
}
|
|
@@ -95,10 +95,16 @@ export * from './ErxSyncPatientParams';
|
|
|
95
95
|
export * from './ErxSyncPatientResponse';
|
|
96
96
|
export * from './ErxAllergySearchParams';
|
|
97
97
|
export * from './ErxAllergySearchResponse';
|
|
98
|
+
export * from './ErxCancelOrderParams';
|
|
99
|
+
export * from './ErxCancelOrderResponse';
|
|
100
|
+
export * from './ErxCancelPrescriptionParams';
|
|
101
|
+
export * from './ErxCancelPrescriptionResponse';
|
|
98
102
|
export * from './ErxMedicationSearchParams';
|
|
99
103
|
export * from './ErxMedicationSearchResponse';
|
|
100
104
|
export * from './ErxMedicationSearchV2Params';
|
|
101
105
|
export * from './ErxMedicationSearchV2Response';
|
|
106
|
+
export * from './FaxSendParams';
|
|
107
|
+
export * from './FaxSendResponse';
|
|
102
108
|
export * from './RoleListResponse';
|
|
103
109
|
export * from './RoleCreateParams';
|
|
104
110
|
export * from './RoleCreateResponse';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oystehr/sdk",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"description": "Oystehr SDK",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"lint": "eslint .",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"rollup": "npm run rollup-cjs && npm run rollup-mjs",
|
|
11
11
|
"rollup-cjs": "node --max-old-space-size=8192 ../../node_modules/rollup/dist/bin/rollup --config rollup.config-cjs.mjs",
|
|
12
12
|
"rollup-mjs": "node --max-old-space-size=8192 ../../node_modules/rollup/dist/bin/rollup --config rollup.config-mjs.mjs",
|
|
13
|
-
"test": "jest
|
|
13
|
+
"test": "NODE_OPTIONS=--experimental-vm-modules jest --runInBand",
|
|
14
14
|
"parser": "ts-node debug-parser.ts",
|
|
15
15
|
"publish-to-npmjs": "npm run build && npm publish",
|
|
16
16
|
"publish-to-npmjs-next": "npm run build && npm publish --tag next",
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
import {
|
|
4
4
|
ErxAllergySearchParams,
|
|
5
5
|
ErxAllergySearchResponse,
|
|
6
|
+
ErxCancelOrderParams,
|
|
7
|
+
ErxCancelOrderResponse,
|
|
8
|
+
ErxCancelPrescriptionParams,
|
|
9
|
+
ErxCancelPrescriptionResponse,
|
|
6
10
|
ErxMedicationSearchParams,
|
|
7
11
|
ErxMedicationSearchResponse,
|
|
8
12
|
ErxMedicationSearchV2Params,
|
|
@@ -30,6 +34,21 @@ export class Erx extends SDKResource {
|
|
|
30
34
|
allergySearch(params: ErxAllergySearchParams, request?: OystehrClientRequest): Promise<ErxAllergySearchResponse> {
|
|
31
35
|
return this.request('/erx/allergy/search', 'get')(params, request);
|
|
32
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* Cancel photon order
|
|
39
|
+
*/
|
|
40
|
+
cancelOrder(params: ErxCancelOrderParams, request?: OystehrClientRequest): Promise<ErxCancelOrderResponse> {
|
|
41
|
+
return this.request('/erx/cancel-order', 'post')(params, request);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Cancel photon prescription
|
|
45
|
+
*/
|
|
46
|
+
cancelPrescription(
|
|
47
|
+
params: ErxCancelPrescriptionParams,
|
|
48
|
+
request?: OystehrClientRequest
|
|
49
|
+
): Promise<ErxCancelPrescriptionResponse> {
|
|
50
|
+
return this.request('/erx/cancel-prescription', 'post')(params, request);
|
|
51
|
+
}
|
|
33
52
|
/**
|
|
34
53
|
* Search for medications. Provide at least one of code or name filters
|
|
35
54
|
*/
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import { FaxSendParams, FaxSendResponse, OystehrClientRequest } from '../..';
|
|
4
|
+
import { SDKResource } from '../../client/client';
|
|
5
|
+
import { OystehrConfig } from '../../config';
|
|
6
|
+
|
|
7
|
+
export class Fax extends SDKResource {
|
|
8
|
+
constructor(config: OystehrConfig) {
|
|
9
|
+
super(config);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Offboard a fax number. Oystehr's [offboard](https://docs.oystehr.com/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.
|
|
13
|
+
*
|
|
14
|
+
* Access Policy Requirements:
|
|
15
|
+
* Action: `Fax:Offboard`
|
|
16
|
+
* Access Policy Resource: `Fax:Number`
|
|
17
|
+
*/
|
|
18
|
+
offboard(request?: OystehrClientRequest): Promise<void> {
|
|
19
|
+
return this.request('/fax/offboard', 'post')(request);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Onboard a fax number. Oystehr's [onboard](https://docs.oystehr.com/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.
|
|
23
|
+
*
|
|
24
|
+
* Access Policy Requirements:
|
|
25
|
+
* Action: `Fax:Onboard`
|
|
26
|
+
* Access Policy Resource: `Fax:Number`
|
|
27
|
+
*/
|
|
28
|
+
onboard(request?: OystehrClientRequest): Promise<void> {
|
|
29
|
+
return this.request('/fax/onboard', 'post')(request);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Send a fax. Oystehr's [fax sending](https://docs.oystehr.com/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
|
+
*
|
|
34
|
+
* Access Policy Requirements:
|
|
35
|
+
* Action: `Fax:Send`
|
|
36
|
+
* Access Policy Resource: `Fax:Fax`
|
|
37
|
+
*/
|
|
38
|
+
send(params: FaxSendParams, request?: OystehrClientRequest): Promise<FaxSendResponse> {
|
|
39
|
+
return this.request('/fax/send', 'post')(params, request);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -6,6 +6,7 @@ import { Charge } from './charge';
|
|
|
6
6
|
import { Conversation } from './conversation';
|
|
7
7
|
import { Developer } from './developer';
|
|
8
8
|
import { Erx } from './erx';
|
|
9
|
+
import { Fax } from './fax';
|
|
9
10
|
import { Fhir } from './fhir';
|
|
10
11
|
import { M2m } from './m2m';
|
|
11
12
|
import { Messaging } from './messaging';
|
|
@@ -35,6 +36,7 @@ export class Oystehr {
|
|
|
35
36
|
readonly project: Project;
|
|
36
37
|
readonly rcm: Rcm;
|
|
37
38
|
readonly erx: Erx;
|
|
39
|
+
readonly fax: Fax;
|
|
38
40
|
readonly role: Role;
|
|
39
41
|
readonly secret: Secret;
|
|
40
42
|
readonly telemed: Telemed;
|
|
@@ -57,6 +59,7 @@ export class Oystehr {
|
|
|
57
59
|
this.project = new Project(config);
|
|
58
60
|
this.rcm = new Rcm(config);
|
|
59
61
|
this.erx = new Erx(config);
|
|
62
|
+
this.fax = new Fax(config);
|
|
60
63
|
this.role = new Role(config);
|
|
61
64
|
this.secret = new Secret(config);
|
|
62
65
|
this.telemed = new Telemed(config);
|
|
@@ -22,7 +22,7 @@ export class Rcm extends SDKResource {
|
|
|
22
22
|
* Access Policy Action: `RCM:CheckInsuranceEligibility`
|
|
23
23
|
* Access Policy Resource: `RCM:InsuranceEligibility`
|
|
24
24
|
*
|
|
25
|
-
*
|
|
25
|
+
* Access Policy Action: `FHIR:Create`
|
|
26
26
|
* Access Policy Resource: `FHIR:CoverageEligibilityResponse`
|
|
27
27
|
*/
|
|
28
28
|
eligibilityCheck(
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
export interface FaxSendParams {
|
|
4
|
+
/**
|
|
5
|
+
* A Z3 URL of the document you want to send. Your user must have access to this document.
|
|
6
|
+
*/
|
|
7
|
+
media: string;
|
|
8
|
+
/**
|
|
9
|
+
* The quality of the document you want sent.
|
|
10
|
+
*/
|
|
11
|
+
quality: 'standard' | 'fine' | 'superfine';
|
|
12
|
+
/**
|
|
13
|
+
* The recipient of the fax. This must be a valid FHIR CareTeam, HealthcareService, Organization, Patient, Practitioner, PractitionerRole, or RelatedPerson relative reference in the format: `the-resource-type/some-valid-uuid`. This reference must be a valid resource and have a number in the `telecom` field with a `system` of `fax`.
|
|
14
|
+
*/
|
|
15
|
+
recipient: string;
|
|
16
|
+
/**
|
|
17
|
+
* The sender of the fax. This must be a valid FHIR HealthcareService, Organization, Patient, Practitioner, PractitionerRole, or RelatedPerson relative reference in the format: `the-resource-type/some-valid-uuid`. This reference must be a valid resource and have your [onboarded fax number](https://docs.oystehr.com/services/fax/number/) in the `telecom` field with a `system` of `fax`.
|
|
18
|
+
*/
|
|
19
|
+
sender: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import { Communication } from 'fhir/r4b';
|
|
4
|
+
/**
|
|
5
|
+
* Successfully sent a fax.
|
|
6
|
+
*/
|
|
7
|
+
export interface FaxSendResponse {
|
|
8
|
+
/**
|
|
9
|
+
* The FHIR Communication resource that represents the sent fax in the FHIR Store modified to include the https://extensions.fhir.oystehr.com/outbound-fax-status extension which holds the fax status that will be updated automatically.
|
|
10
|
+
*/
|
|
11
|
+
communicationResource: Communication;
|
|
12
|
+
}
|
|
@@ -97,10 +97,16 @@ export * from './ErxSyncPatientParams';
|
|
|
97
97
|
export * from './ErxSyncPatientResponse';
|
|
98
98
|
export * from './ErxAllergySearchParams';
|
|
99
99
|
export * from './ErxAllergySearchResponse';
|
|
100
|
+
export * from './ErxCancelOrderParams';
|
|
101
|
+
export * from './ErxCancelOrderResponse';
|
|
102
|
+
export * from './ErxCancelPrescriptionParams';
|
|
103
|
+
export * from './ErxCancelPrescriptionResponse';
|
|
100
104
|
export * from './ErxMedicationSearchParams';
|
|
101
105
|
export * from './ErxMedicationSearchResponse';
|
|
102
106
|
export * from './ErxMedicationSearchV2Params';
|
|
103
107
|
export * from './ErxMedicationSearchV2Response';
|
|
108
|
+
export * from './FaxSendParams';
|
|
109
|
+
export * from './FaxSendResponse';
|
|
104
110
|
export * from './RoleListResponse';
|
|
105
111
|
export * from './RoleCreateParams';
|
|
106
112
|
export * from './RoleCreateResponse';
|
|
File without changes
|
|
File without changes
|