@oystehr/sdk 4.3.1 → 4.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/config.d.ts +2 -0
- package/dist/cjs/index.min.cjs +1 -1
- package/dist/cjs/index.min.cjs.map +1 -1
- package/dist/cjs/resources/classes/index.cjs +6 -6
- package/dist/cjs/resources/classes/index.cjs.map +1 -1
- package/dist/cjs/resources/classes/index.d.ts +3 -3
- package/dist/cjs/resources/classes/rcm.cjs +12 -15
- package/dist/cjs/resources/classes/rcm.cjs.map +1 -1
- package/dist/cjs/resources/classes/rcm.d.ts +9 -12
- package/dist/cjs/resources/classes/zambda.cjs +1 -1
- package/dist/cjs/resources/classes/zambda.cjs.map +1 -1
- package/dist/cjs/resources/classes/zambdaLogStream.cjs +1 -1
- package/dist/cjs/resources/classes/zambdaLogStream.cjs.map +1 -1
- package/dist/cjs/resources/types/RcmSetClaimStatusParams.d.ts +7 -0
- package/dist/cjs/resources/types/RcmSetClaimStatusResponse.d.ts +5 -0
- package/dist/cjs/resources/types/RcmSubmitClaimParams.d.ts +3 -0
- package/dist/cjs/resources/types/RcmSubmitClaimResponse.d.ts +5 -0
- package/dist/cjs/resources/types/index.d.ts +29 -29
- package/dist/esm/config.d.ts +2 -0
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/index.min.js.map +1 -1
- package/dist/esm/resources/classes/index.d.ts +3 -3
- package/dist/esm/resources/classes/index.js +6 -6
- package/dist/esm/resources/classes/index.js.map +1 -1
- package/dist/esm/resources/classes/rcm.d.ts +9 -12
- package/dist/esm/resources/classes/rcm.js +12 -15
- package/dist/esm/resources/classes/rcm.js.map +1 -1
- package/dist/esm/resources/classes/zambda.js +1 -1
- package/dist/esm/resources/classes/zambda.js.map +1 -1
- package/dist/esm/resources/classes/zambdaLogStream.js +1 -1
- package/dist/esm/resources/classes/zambdaLogStream.js.map +1 -1
- package/dist/esm/resources/types/RcmSetClaimStatusParams.d.ts +7 -0
- package/dist/esm/resources/types/RcmSetClaimStatusResponse.d.ts +5 -0
- package/dist/esm/resources/types/RcmSubmitClaimParams.d.ts +3 -0
- package/dist/esm/resources/types/RcmSubmitClaimResponse.d.ts +5 -0
- package/dist/esm/resources/types/index.d.ts +29 -29
- package/package.json +2 -2
- package/src/config.ts +2 -0
- package/src/resources/classes/index.ts +6 -6
- package/src/resources/classes/rcm.ts +16 -25
- package/src/resources/classes/zambda.ts +1 -1
- package/src/resources/classes/zambdaLogStream.ts +1 -1
- package/src/resources/types/RcmSetClaimStatusParams.ts +9 -0
- package/src/resources/types/RcmSetClaimStatusResponse.ts +7 -0
- package/src/resources/types/RcmSubmitClaimParams.ts +5 -0
- package/src/resources/types/RcmSubmitClaimResponse.ts +7 -0
- package/src/resources/types/index.ts +29 -29
- package/dist/cjs/resources/types/RcmSubmitProfessionalClaimParams.d.ts +0 -10
- package/dist/cjs/resources/types/RcmSubmitProfessionalClaimResponse.d.ts +0 -5
- package/dist/cjs/resources/types/RcmValidateProfessionalClaimParams.d.ts +0 -6
- package/dist/cjs/resources/types/RcmValidateProfessionalClaimResponse.d.ts +0 -21
- package/dist/esm/resources/types/RcmSubmitProfessionalClaimParams.d.ts +0 -10
- package/dist/esm/resources/types/RcmSubmitProfessionalClaimResponse.d.ts +0 -5
- package/dist/esm/resources/types/RcmValidateProfessionalClaimParams.d.ts +0 -6
- package/dist/esm/resources/types/RcmValidateProfessionalClaimResponse.d.ts +0 -21
- package/src/resources/types/RcmSubmitProfessionalClaimParams.ts +0 -13
- package/src/resources/types/RcmSubmitProfessionalClaimResponse.ts +0 -7
- package/src/resources/types/RcmValidateProfessionalClaimParams.ts +0 -9
- package/src/resources/types/RcmValidateProfessionalClaimResponse.ts +0 -23
|
@@ -33,19 +33,19 @@ export declare class Oystehr {
|
|
|
33
33
|
readonly paymentMethod: PaymentMethod;
|
|
34
34
|
readonly charge: Charge;
|
|
35
35
|
readonly project: Project;
|
|
36
|
-
readonly rcm: Rcm;
|
|
37
36
|
readonly role: Role;
|
|
38
37
|
readonly secret: Secret;
|
|
39
38
|
readonly telemed: Telemed;
|
|
40
39
|
readonly user: User;
|
|
41
40
|
readonly version: Version;
|
|
42
41
|
readonly z3: Z3;
|
|
43
|
-
readonly zambda: Zambda;
|
|
44
|
-
readonly zambdaLogStream: ZambdaLogStream;
|
|
45
42
|
readonly fax: Fax;
|
|
46
43
|
readonly lab: Lab;
|
|
47
44
|
readonly erx: Erx;
|
|
45
|
+
readonly rcm: Rcm;
|
|
48
46
|
readonly terminology: Terminology;
|
|
47
|
+
readonly zambda: Zambda;
|
|
48
|
+
readonly zambdaLogStream: ZambdaLogStream;
|
|
49
49
|
readonly fhir: Fhir;
|
|
50
50
|
constructor(config: OystehrConfig);
|
|
51
51
|
}
|
|
@@ -34,19 +34,19 @@ let Oystehr$1 = class Oystehr {
|
|
|
34
34
|
paymentMethod;
|
|
35
35
|
charge;
|
|
36
36
|
project;
|
|
37
|
-
rcm;
|
|
38
37
|
role;
|
|
39
38
|
secret;
|
|
40
39
|
telemed;
|
|
41
40
|
user;
|
|
42
41
|
version;
|
|
43
42
|
z3;
|
|
44
|
-
zambda;
|
|
45
|
-
zambdaLogStream;
|
|
46
43
|
fax;
|
|
47
44
|
lab;
|
|
48
45
|
erx;
|
|
46
|
+
rcm;
|
|
49
47
|
terminology;
|
|
48
|
+
zambda;
|
|
49
|
+
zambdaLogStream;
|
|
50
50
|
fhir;
|
|
51
51
|
constructor(config) {
|
|
52
52
|
this.config = config;
|
|
@@ -62,19 +62,19 @@ let Oystehr$1 = class Oystehr {
|
|
|
62
62
|
this.paymentMethod = new PaymentMethod(config);
|
|
63
63
|
this.charge = new Charge(config);
|
|
64
64
|
this.project = new Project(config);
|
|
65
|
-
this.rcm = new Rcm(config);
|
|
66
65
|
this.role = new Role(config);
|
|
67
66
|
this.secret = new Secret(config);
|
|
68
67
|
this.telemed = new Telemed(config);
|
|
69
68
|
this.user = new User(config);
|
|
70
69
|
this.version = new Version(config);
|
|
71
70
|
this.z3 = new Z3(config);
|
|
72
|
-
this.zambda = new Zambda(config);
|
|
73
|
-
this.zambdaLogStream = new ZambdaLogStream(config);
|
|
74
71
|
this.fax = new Fax(config);
|
|
75
72
|
this.lab = new Lab(config);
|
|
76
73
|
this.erx = new Erx(config);
|
|
74
|
+
this.rcm = new Rcm(config);
|
|
77
75
|
this.terminology = new Terminology(config);
|
|
76
|
+
this.zambda = new Zambda(config);
|
|
77
|
+
this.zambdaLogStream = new ZambdaLogStream(config);
|
|
78
78
|
this.fhir = new Fhir(config);
|
|
79
79
|
}
|
|
80
80
|
};
|
|
@@ -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 { Fax } from './fax';\nimport { Fhir } from './fhir';\nimport { Lab } from './lab';\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 { Terminology } from './terminology';\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
|
|
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 { Lab } from './lab';\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 { Terminology } from './terminology';\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 role: Role;\n readonly secret: Secret;\n readonly telemed: Telemed;\n readonly user: User;\n readonly version: Version;\n readonly z3: Z3;\n readonly fax: Fax;\n readonly lab: Lab;\n readonly erx: Erx;\n readonly rcm: Rcm;\n readonly terminology: Terminology;\n readonly zambda: Zambda;\n readonly zambdaLogStream: ZambdaLogStream;\n readonly fhir: Fhir;\n constructor(config: OystehrConfig) {\n this.config = config;\n this.config.services ??= {};\n this.config.services['projectApiUrl'] ??= config.projectApiUrl;\n this.config.services['fhirApiUrl'] ??= config.fhirApiUrl;\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.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.fax = new Fax(config);\n this.lab = new Lab(config);\n this.erx = new Erx(config);\n this.rcm = new Rcm(config);\n this.terminology = new Terminology(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;sBA2Ba,OAAO,CAAA;AACT,IAAA,MAAM;AACN,IAAA,WAAW;AACX,IAAA,SAAS;AACT,IAAA,GAAG;AACH,IAAA,SAAS;AACT,IAAA,YAAY;AACZ,IAAA,gBAAgB;AAChB,IAAA,aAAa;AACb,IAAA,MAAM;AACN,IAAA,OAAO;AACP,IAAA,IAAI;AACJ,IAAA,MAAM;AACN,IAAA,OAAO;AACP,IAAA,IAAI;AACJ,IAAA,OAAO;AACP,IAAA,EAAE;AACF,IAAA,GAAG;AACH,IAAA,GAAG;AACH,IAAA,GAAG;AACH,IAAA,GAAG;AACH,IAAA,WAAW;AACX,IAAA,MAAM;AACN,IAAA,eAAe;AACf,IAAA,IAAI;AACb,IAAA,WAAA,CAAY,MAAqB,EAAA;AAC/B,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM;AACpB,QAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,KAAK,EAAE;QAC3B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,KAAK,MAAM,CAAC,aAAa;QAC9D,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,MAAM,CAAC,UAAU;QACxD,IAAI,CAAC,WAAW,GAAG,IAAI,WAAW,CAAC,MAAM,CAAC;QAC1C,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC,MAAM,CAAC;QACtC,IAAI,CAAC,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC,MAAM,CAAC;QACtC,IAAI,CAAC,YAAY,GAAG,IAAI,YAAY,CAAC,MAAM,CAAC;QAC5C,IAAI,CAAC,gBAAgB,GAAG,IAAI,gBAAgB,CAAC,MAAM,CAAC;QACpD,IAAI,CAAC,aAAa,GAAG,IAAI,aAAa,CAAC,MAAM,CAAC;QAC9C,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC;QAClC,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC;QAClC,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC;QAClC,IAAI,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC,MAAM,CAAC;QACxB,IAAI,CAAC,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,WAAW,GAAG,IAAI,WAAW,CAAC,MAAM,CAAC;QAC1C,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,eAAe,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC;QAClD,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC;IAC9B;AACD;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OystehrClientRequest, RcmEligibilityCheckParams, RcmEligibilityCheckResponse,
|
|
1
|
+
import { OystehrClientRequest, RcmEligibilityCheckParams, RcmEligibilityCheckResponse, RcmSetClaimStatusParams, RcmSetClaimStatusResponse, RcmSubmitClaimParams, RcmSubmitClaimResponse } from '../..';
|
|
2
2
|
import { SDKResource } from '../../client/client';
|
|
3
3
|
import { OystehrConfig } from '../../config';
|
|
4
4
|
export declare class Rcm extends SDKResource {
|
|
@@ -15,26 +15,23 @@ export declare class Rcm extends SDKResource {
|
|
|
15
15
|
*/
|
|
16
16
|
eligibilityCheck(params: RcmEligibilityCheckParams, request?: OystehrClientRequest): Promise<RcmEligibilityCheckResponse>;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Submit a claim to a payer.
|
|
19
19
|
*
|
|
20
|
-
* Access Policy Action: `RCM:
|
|
20
|
+
* Access Policy Action: `RCM:SubmitClaim`
|
|
21
21
|
* Access Policy Resource: `RCM:Claim`
|
|
22
22
|
*
|
|
23
23
|
* Access Policy Action: `FHIR:Create`
|
|
24
|
-
* Access Policy Resource: `FHIR:
|
|
24
|
+
* Access Policy Resource: `FHIR:ClaimResponse`
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
submitClaim(params: RcmSubmitClaimParams, request?: OystehrClientRequest): Promise<RcmSubmitClaimResponse>;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Emulate asynchronous claim responses by manually setting claim status.
|
|
29
29
|
*
|
|
30
|
-
* Access Policy Action: `RCM:
|
|
30
|
+
* Access Policy Action: `RCM:SubmitClaim`
|
|
31
31
|
* Access Policy Resource: `RCM:Claim`
|
|
32
32
|
*
|
|
33
33
|
* Access Policy Action: `FHIR:Create`
|
|
34
|
-
* Access Policy Resource: `FHIR:
|
|
35
|
-
*
|
|
36
|
-
* Access Policy Actions: `FHIR:Create, FHIR:Update`
|
|
37
|
-
* Access Policy Resource: `FHIR:Claim`
|
|
34
|
+
* Access Policy Resource: `FHIR:ClaimResponse`
|
|
38
35
|
*/
|
|
39
|
-
|
|
36
|
+
setClaimStatus(params: RcmSetClaimStatusParams, request?: OystehrClientRequest): Promise<RcmSetClaimStatusResponse>;
|
|
40
37
|
}
|
|
@@ -6,7 +6,7 @@ class Rcm extends SDKResource {
|
|
|
6
6
|
super(config);
|
|
7
7
|
}
|
|
8
8
|
#baseUrlThunk() {
|
|
9
|
-
return this.config.services?.['
|
|
9
|
+
return this.config.services?.['rcmApiUrl'] ?? 'https://rcm-api.zapehr.com/v1';
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Check [Insurance Eligibility](https://docs.oystehr.com/oystehr/services/rcm/eligibility/).
|
|
@@ -18,34 +18,31 @@ class Rcm extends SDKResource {
|
|
|
18
18
|
* Access Policy Resource: `FHIR:CoverageEligibilityResponse`
|
|
19
19
|
*/
|
|
20
20
|
eligibilityCheck(params, request) {
|
|
21
|
-
return this.request('/
|
|
21
|
+
return this.request('/eligibility-check', 'post', this.#baseUrlThunk.bind(this))(params, request);
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Submit a claim to a payer.
|
|
25
25
|
*
|
|
26
|
-
* Access Policy Action: `RCM:
|
|
26
|
+
* Access Policy Action: `RCM:SubmitClaim`
|
|
27
27
|
* Access Policy Resource: `RCM:Claim`
|
|
28
28
|
*
|
|
29
29
|
* Access Policy Action: `FHIR:Create`
|
|
30
|
-
* Access Policy Resource: `FHIR:
|
|
30
|
+
* Access Policy Resource: `FHIR:ClaimResponse`
|
|
31
31
|
*/
|
|
32
|
-
|
|
33
|
-
return this.request('/
|
|
32
|
+
submitClaim(params, request) {
|
|
33
|
+
return this.request('/claim/{claimId}/submit', 'post', this.#baseUrlThunk.bind(this))(params, request);
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Emulate asynchronous claim responses by manually setting claim status.
|
|
37
37
|
*
|
|
38
|
-
* Access Policy Action: `RCM:
|
|
38
|
+
* Access Policy Action: `RCM:SubmitClaim`
|
|
39
39
|
* Access Policy Resource: `RCM:Claim`
|
|
40
40
|
*
|
|
41
41
|
* Access Policy Action: `FHIR:Create`
|
|
42
|
-
* Access Policy Resource: `FHIR:
|
|
43
|
-
*
|
|
44
|
-
* Access Policy Actions: `FHIR:Create, FHIR:Update`
|
|
45
|
-
* Access Policy Resource: `FHIR:Claim`
|
|
42
|
+
* Access Policy Resource: `FHIR:ClaimResponse`
|
|
46
43
|
*/
|
|
47
|
-
|
|
48
|
-
return this.request('/
|
|
44
|
+
setClaimStatus(params, request) {
|
|
45
|
+
return this.request('/claim/{claimId}/status', 'post', this.#baseUrlThunk.bind(this))(params, request);
|
|
49
46
|
}
|
|
50
47
|
}
|
|
51
48
|
|
|
@@ -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
|
|
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 RcmSetClaimStatusParams,\n RcmSetClaimStatusResponse,\n RcmSubmitClaimParams,\n RcmSubmitClaimResponse,\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 #baseUrlThunk(): string {\n return this.config.services?.['rcmApiUrl'] ?? 'https://rcm-api.zapehr.com/v1';\n }\n /**\n * Check [Insurance Eligibility](https://docs.oystehr.com/oystehr/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('/eligibility-check', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Submit a claim to a payer.\n *\n * Access Policy Action: `RCM:SubmitClaim`\n * Access Policy Resource: `RCM:Claim`\n *\n * Access Policy Action: `FHIR:Create`\n * Access Policy Resource: `FHIR:ClaimResponse`\n */\n submitClaim(params: RcmSubmitClaimParams, request?: OystehrClientRequest): Promise<RcmSubmitClaimResponse> {\n return this.request('/claim/{claimId}/submit', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Emulate asynchronous claim responses by manually setting claim status.\n *\n * Access Policy Action: `RCM:SubmitClaim`\n * Access Policy Resource: `RCM:Claim`\n *\n * Access Policy Action: `FHIR:Create`\n * Access Policy Resource: `FHIR:ClaimResponse`\n */\n setClaimStatus(params: RcmSetClaimStatusParams, request?: OystehrClientRequest): Promise<RcmSetClaimStatusResponse> {\n return this.request('/claim/{claimId}/status', 'post', this.#baseUrlThunk.bind(this))(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;IACf;IACA,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,WAAW,CAAC,IAAI,+BAA+B;IAC/E;AACA;;;;;;;;AAQG;IACH,gBAAgB,CACd,MAAiC,EACjC,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC;IACnG;AACA;;;;;;;;AAQG;IACH,WAAW,CAAC,MAA4B,EAAE,OAA8B,EAAA;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,yBAAyB,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC;IACxG;AACA;;;;;;;;AAQG;IACH,cAAc,CAAC,MAA+B,EAAE,OAA8B,EAAA;QAC5E,OAAO,IAAI,CAAC,OAAO,CAAC,yBAAyB,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC;IACxG;AACD;;;;"}
|
|
@@ -7,7 +7,7 @@ class Zambda extends SDKResource {
|
|
|
7
7
|
super(config);
|
|
8
8
|
}
|
|
9
9
|
#baseUrlThunk() {
|
|
10
|
-
return this.config.services?.['
|
|
10
|
+
return this.config.services?.['zambdaApiUrl'] ?? 'https://zambda-api.zapehr.com/v1';
|
|
11
11
|
}
|
|
12
12
|
uploadFile = uploadFile;
|
|
13
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zambda.js","sources":["../../../../src/resources/classes/zambda.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n ZambdaCreateParams,\n ZambdaCreateResponse,\n ZambdaDeleteParams,\n ZambdaExecuteParams,\n ZambdaExecutePublicParams,\n ZambdaExecutePublicResponse,\n ZambdaExecuteResponse,\n ZambdaGetParams,\n ZambdaGetResponse,\n ZambdaListResponse,\n ZambdaS3UploadParams,\n ZambdaS3UploadResponse,\n ZambdaUpdateParams,\n ZambdaUpdateResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\nimport * as ext from './zambda-ext';\n\nexport class Zambda extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['
|
|
1
|
+
{"version":3,"file":"zambda.js","sources":["../../../../src/resources/classes/zambda.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n ZambdaCreateParams,\n ZambdaCreateResponse,\n ZambdaDeleteParams,\n ZambdaExecuteParams,\n ZambdaExecutePublicParams,\n ZambdaExecutePublicResponse,\n ZambdaExecuteResponse,\n ZambdaGetParams,\n ZambdaGetResponse,\n ZambdaListResponse,\n ZambdaS3UploadParams,\n ZambdaS3UploadResponse,\n ZambdaUpdateParams,\n ZambdaUpdateResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\nimport * as ext from './zambda-ext';\n\nexport class Zambda extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['zambdaApiUrl'] ?? 'https://zambda-api.zapehr.com/v1';\n }\n uploadFile = ext.uploadFile;\n /**\n * Get a list of all Zambda Functions in the Project. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.\n *\n * Access Policy Action: `Zambda:ListAllFunctions`\n * Access Policy Resource: `Zambda:Function`\n */\n list(request?: OystehrClientRequest): Promise<ZambdaListResponse> {\n return this.request('/zambda', 'get', this.#baseUrlThunk.bind(this))(request);\n }\n /**\n * Create a new Zambda Function. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.\n *\n * Access Policy Action: `Zambda:CreateFunction`\n * Access Policy Resource: `Zambda:Function`\n */\n create(params: ZambdaCreateParams, request?: OystehrClientRequest): Promise<ZambdaCreateResponse> {\n return this.request('/zambda', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Get the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.\n *\n * Access Policy Action: `Zambda:GetFunction`\n * Access Policy Resource: `Zambda:Function`\n */\n get(params: ZambdaGetParams, request?: OystehrClientRequest): Promise<ZambdaGetResponse> {\n return this.request('/zambda/{id}', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Update the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.\n *\n * Access Policy Action: `Zambda:UpdateFunction`\n * Access Policy Resource: `Zambda:Function`\n */\n update(params: ZambdaUpdateParams, request?: OystehrClientRequest): Promise<ZambdaUpdateResponse> {\n return this.request('/zambda/{id}', 'patch', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Delete the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.\n *\n * Access Policy Action: `Zambda:DeleteFunction`\n * Access Policy Resource: `Zambda:Function`\n */\n delete(params: ZambdaDeleteParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/zambda/{id}', 'delete', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Execute the [Authenticated Zambda Function](https://docs.oystehr.com/oystehr/services/zambda/types/authenticated/) with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.\n *\n * Access Policy Action: `Zambda:InvokeFunction`\n * Access Policy Resource: `Zambda:Function`\n */\n execute(params: ZambdaExecuteParams, request?: OystehrClientRequest): Promise<ZambdaExecuteResponse> {\n return this.request('/zambda/{id}/execute', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Execute the [Public Zambda Function](https://docs.oystehr.com/oystehr/services/zambda/types/public/) with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.\n *\n * Execute a zambda that has method http_open. This endpoint is public so there are no access policy requirements.\n */\n executePublic(\n params: ZambdaExecutePublicParams,\n request?: OystehrClientRequest\n ): Promise<ZambdaExecutePublicResponse> {\n return this.request('/zambda/{id}/execute-public', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Returns a URL that is used to deploy code to the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.\n *\n * Access Policy Action: `Zambda:UpdateFunction`\n * Access Policy Resource: `Zambda:Function`\n */\n s3Upload(params: ZambdaS3UploadParams, request?: OystehrClientRequest): Promise<ZambdaS3UploadResponse> {\n return this.request('/zambda/{id}/s3-upload', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":["ext.uploadFile"],"mappings":";;;AAAA;AAuBM,MAAO,MAAO,SAAQ,WAAW,CAAA;AACrC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC;IACf;IACA,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,cAAc,CAAC,IAAI,kCAAkC;IACrF;AACA,IAAA,UAAU,GAAGA,UAAc;AAC3B;;;;;AAKG;AACH,IAAA,IAAI,CAAC,OAA8B,EAAA;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC;IAC/E;AACA;;;;;AAKG;IACH,MAAM,CAAC,MAA0B,EAAE,OAA8B,EAAA;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC;IACxF;AACA;;;;;AAKG;IACH,GAAG,CAAC,MAAuB,EAAE,OAA8B,EAAA;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC;IAC5F;AACA;;;;;AAKG;IACH,MAAM,CAAC,MAA0B,EAAE,OAA8B,EAAA;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC;IAC9F;AACA;;;;;AAKG;IACH,MAAM,CAAC,MAA0B,EAAE,OAA8B,EAAA;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC;IAC/F;AACA;;;;;AAKG;IACH,OAAO,CAAC,MAA2B,EAAE,OAA8B,EAAA;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,sBAAsB,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC;IACrG;AACA;;;;AAIG;IACH,aAAa,CACX,MAAiC,EACjC,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,6BAA6B,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC;IAC5G;AACA;;;;;AAKG;IACH,QAAQ,CAAC,MAA4B,EAAE,OAA8B,EAAA;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC;IACvG;AACD;;;;"}
|
|
@@ -6,7 +6,7 @@ class ZambdaLogStream extends SDKResource {
|
|
|
6
6
|
super(config);
|
|
7
7
|
}
|
|
8
8
|
#baseUrlThunk() {
|
|
9
|
-
return this.config.services?.['
|
|
9
|
+
return this.config.services?.['zambdaApiUrl'] ?? 'https://zambda-api.zapehr.com/v1';
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Get the log streams for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zambdaLogStream.js","sources":["../../../../src/resources/classes/zambdaLogStream.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n ZambdaLogStreamGetParams,\n ZambdaLogStreamGetResponse,\n ZambdaLogStreamListParams,\n ZambdaLogStreamListResponse,\n ZambdaLogStreamSearchParams,\n ZambdaLogStreamSearchResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class ZambdaLogStream extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['
|
|
1
|
+
{"version":3,"file":"zambdaLogStream.js","sources":["../../../../src/resources/classes/zambdaLogStream.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n ZambdaLogStreamGetParams,\n ZambdaLogStreamGetResponse,\n ZambdaLogStreamListParams,\n ZambdaLogStreamListResponse,\n ZambdaLogStreamSearchParams,\n ZambdaLogStreamSearchResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class ZambdaLogStream extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['zambdaApiUrl'] ?? 'https://zambda-api.zapehr.com/v1';\n }\n /**\n * Get the log streams for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.\n *\n * Access Policy Action: `Zambda:ReadLogs`\n * Access Policy Resource: `Zambda:Function`\n */\n list(params: ZambdaLogStreamListParams, request?: OystehrClientRequest): Promise<ZambdaLogStreamListResponse> {\n return this.request('/zambda/{id}/logStream', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Get all logs for the Zambda Function with the provided ID, filtered by any of: text in messages, minimum start date, and/or maximum end date. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.\n *\n * Access Policy Action: `Zambda:ReadLogs`\n * Access Policy Resource: `Zambda:Function`\n */\n search(params: ZambdaLogStreamSearchParams, request?: OystehrClientRequest): Promise<ZambdaLogStreamSearchResponse> {\n return this.request('/zambda/{id}/logStream/search', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Get the logs from the specified log stream for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.\n *\n * Access Policy Action: `Zambda:ReadLogs`\n * Access Policy Resource: `Zambda:Function`\n */\n get(params: ZambdaLogStreamGetParams, request?: OystehrClientRequest): Promise<ZambdaLogStreamGetResponse> {\n return this.request(\n '/zambda/{id}/logStream/{logStreamName}',\n 'post',\n this.#baseUrlThunk.bind(this)\n )(params, request);\n }\n}\n"],"names":[],"mappings":";;AAAA;AAcM,MAAO,eAAgB,SAAQ,WAAW,CAAA;AAC9C,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC;IACf;IACA,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,cAAc,CAAC,IAAI,kCAAkC;IACrF;AACA;;;;;AAKG;IACH,IAAI,CAAC,MAAiC,EAAE,OAA8B,EAAA;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC;IACvG;AACA;;;;;AAKG;IACH,MAAM,CAAC,MAAmC,EAAE,OAA8B,EAAA;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,+BAA+B,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC;IAC9G;AACA;;;;;AAKG;IACH,GAAG,CAAC,MAAgC,EAAE,OAA8B,EAAA;QAClE,OAAO,IAAI,CAAC,OAAO,CACjB,wCAAwC,EACxC,MAAM,EACN,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAC9B,CAAC,MAAM,EAAE,OAAO,CAAC;IACpB;AACD;;;;"}
|
|
@@ -8,9 +8,6 @@ export * from './Application';
|
|
|
8
8
|
export * from './RoleStub';
|
|
9
9
|
export * from './RoleListItem';
|
|
10
10
|
export * from './Role';
|
|
11
|
-
export * from './ZambdaSchedule';
|
|
12
|
-
export * from './ZambdaFunction';
|
|
13
|
-
export * from './ZambdaExecuteResult';
|
|
14
11
|
export * from './Secret';
|
|
15
12
|
export * from './SecretListItem';
|
|
16
13
|
export * from './UserListItem';
|
|
@@ -87,12 +84,6 @@ export * from './ChargeStatusResponse';
|
|
|
87
84
|
export * from './ProjectGetResponse';
|
|
88
85
|
export * from './ProjectUpdateParams';
|
|
89
86
|
export * from './ProjectUpdateResponse';
|
|
90
|
-
export * from './RcmEligibilityCheckParams';
|
|
91
|
-
export * from './RcmEligibilityCheckResponse';
|
|
92
|
-
export * from './RcmValidateProfessionalClaimParams';
|
|
93
|
-
export * from './RcmValidateProfessionalClaimResponse';
|
|
94
|
-
export * from './RcmSubmitProfessionalClaimParams';
|
|
95
|
-
export * from './RcmSubmitProfessionalClaimResponse';
|
|
96
87
|
export * from './RoleListResponse';
|
|
97
88
|
export * from './RoleCreateParams';
|
|
98
89
|
export * from './RoleCreateResponse';
|
|
@@ -134,26 +125,6 @@ export * from './Z3ListObjectsResponse';
|
|
|
134
125
|
export * from './Z3GetPresignedUrlParams';
|
|
135
126
|
export * from './Z3GetPresignedUrlResponse';
|
|
136
127
|
export * from './Z3DeleteObjectParams';
|
|
137
|
-
export * from './ZambdaListResponse';
|
|
138
|
-
export * from './ZambdaCreateParams';
|
|
139
|
-
export * from './ZambdaCreateResponse';
|
|
140
|
-
export * from './ZambdaGetParams';
|
|
141
|
-
export * from './ZambdaGetResponse';
|
|
142
|
-
export * from './ZambdaUpdateParams';
|
|
143
|
-
export * from './ZambdaUpdateResponse';
|
|
144
|
-
export * from './ZambdaDeleteParams';
|
|
145
|
-
export * from './ZambdaExecuteParams';
|
|
146
|
-
export * from './ZambdaExecuteResponse';
|
|
147
|
-
export * from './ZambdaExecutePublicParams';
|
|
148
|
-
export * from './ZambdaExecutePublicResponse';
|
|
149
|
-
export * from './ZambdaLogStreamListParams';
|
|
150
|
-
export * from './ZambdaLogStreamListResponse';
|
|
151
|
-
export * from './ZambdaS3UploadParams';
|
|
152
|
-
export * from './ZambdaS3UploadResponse';
|
|
153
|
-
export * from './ZambdaLogStreamSearchParams';
|
|
154
|
-
export * from './ZambdaLogStreamSearchResponse';
|
|
155
|
-
export * from './ZambdaLogStreamGetParams';
|
|
156
|
-
export * from './ZambdaLogStreamGetResponse';
|
|
157
128
|
export * from './FaxOnboardResponse';
|
|
158
129
|
export * from './FaxGetConfigurationResponse';
|
|
159
130
|
export * from './FaxSendParams';
|
|
@@ -195,7 +166,36 @@ export * from './ErxCheckPractitionerEnrollmentParams';
|
|
|
195
166
|
export * from './ErxCheckPractitionerEnrollmentResponse';
|
|
196
167
|
export * from './ErxEnrollPractitionerParams';
|
|
197
168
|
export * from './ErxUnenrollPractitionerParams';
|
|
169
|
+
export * from './RcmEligibilityCheckParams';
|
|
170
|
+
export * from './RcmEligibilityCheckResponse';
|
|
171
|
+
export * from './RcmSubmitClaimParams';
|
|
172
|
+
export * from './RcmSubmitClaimResponse';
|
|
173
|
+
export * from './RcmSetClaimStatusParams';
|
|
174
|
+
export * from './RcmSetClaimStatusResponse';
|
|
198
175
|
export * from './TerminologySearchCptParams';
|
|
199
176
|
export * from './TerminologySearchCptResponse';
|
|
200
177
|
export * from './TerminologySearchHcpcsParams';
|
|
201
178
|
export * from './TerminologySearchHcpcsResponse';
|
|
179
|
+
export * from './ZambdaSchedule';
|
|
180
|
+
export * from './ZambdaFunction';
|
|
181
|
+
export * from './ZambdaExecuteResult';
|
|
182
|
+
export * from './ZambdaListResponse';
|
|
183
|
+
export * from './ZambdaCreateParams';
|
|
184
|
+
export * from './ZambdaCreateResponse';
|
|
185
|
+
export * from './ZambdaGetParams';
|
|
186
|
+
export * from './ZambdaGetResponse';
|
|
187
|
+
export * from './ZambdaUpdateParams';
|
|
188
|
+
export * from './ZambdaUpdateResponse';
|
|
189
|
+
export * from './ZambdaDeleteParams';
|
|
190
|
+
export * from './ZambdaExecuteParams';
|
|
191
|
+
export * from './ZambdaExecuteResponse';
|
|
192
|
+
export * from './ZambdaExecutePublicParams';
|
|
193
|
+
export * from './ZambdaExecutePublicResponse';
|
|
194
|
+
export * from './ZambdaLogStreamListParams';
|
|
195
|
+
export * from './ZambdaLogStreamListResponse';
|
|
196
|
+
export * from './ZambdaS3UploadParams';
|
|
197
|
+
export * from './ZambdaS3UploadResponse';
|
|
198
|
+
export * from './ZambdaLogStreamSearchParams';
|
|
199
|
+
export * from './ZambdaLogStreamSearchResponse';
|
|
200
|
+
export * from './ZambdaLogStreamGetParams';
|
|
201
|
+
export * from './ZambdaLogStreamGetResponse';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oystehr/sdk",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.2",
|
|
4
4
|
"description": "Oystehr SDK",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"lint": "eslint .",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"parser": "tsx 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",
|
|
17
|
-
"generate": "ts-node --project scripts/tsconfig.json scripts/generate-sdk-v3 project,fax,lab,erx,terminology src/resources"
|
|
17
|
+
"generate": "ts-node --project scripts/tsconfig.json scripts/generate-sdk-v3 project,fax,lab,erx,terminology,zambda,rcm src/resources"
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
20
20
|
"npm": ">=8.0.0",
|
package/src/config.ts
CHANGED
|
@@ -18,7 +18,9 @@ export interface OystehrConfig {
|
|
|
18
18
|
fhirApiUrl?: string;
|
|
19
19
|
labApiUrl?: string;
|
|
20
20
|
projectApiUrl?: string;
|
|
21
|
+
rcmApiUrl?: string;
|
|
21
22
|
terminologyApiUrl?: string;
|
|
23
|
+
zambdaApiUrl?: string;
|
|
22
24
|
};
|
|
23
25
|
/**
|
|
24
26
|
* Optionally provide a custom fetch implementation. This must conform to the
|
|
@@ -36,19 +36,19 @@ export class Oystehr {
|
|
|
36
36
|
readonly paymentMethod: PaymentMethod;
|
|
37
37
|
readonly charge: Charge;
|
|
38
38
|
readonly project: Project;
|
|
39
|
-
readonly rcm: Rcm;
|
|
40
39
|
readonly role: Role;
|
|
41
40
|
readonly secret: Secret;
|
|
42
41
|
readonly telemed: Telemed;
|
|
43
42
|
readonly user: User;
|
|
44
43
|
readonly version: Version;
|
|
45
44
|
readonly z3: Z3;
|
|
46
|
-
readonly zambda: Zambda;
|
|
47
|
-
readonly zambdaLogStream: ZambdaLogStream;
|
|
48
45
|
readonly fax: Fax;
|
|
49
46
|
readonly lab: Lab;
|
|
50
47
|
readonly erx: Erx;
|
|
48
|
+
readonly rcm: Rcm;
|
|
51
49
|
readonly terminology: Terminology;
|
|
50
|
+
readonly zambda: Zambda;
|
|
51
|
+
readonly zambdaLogStream: ZambdaLogStream;
|
|
52
52
|
readonly fhir: Fhir;
|
|
53
53
|
constructor(config: OystehrConfig) {
|
|
54
54
|
this.config = config;
|
|
@@ -64,19 +64,19 @@ export class Oystehr {
|
|
|
64
64
|
this.paymentMethod = new PaymentMethod(config);
|
|
65
65
|
this.charge = new Charge(config);
|
|
66
66
|
this.project = new Project(config);
|
|
67
|
-
this.rcm = new Rcm(config);
|
|
68
67
|
this.role = new Role(config);
|
|
69
68
|
this.secret = new Secret(config);
|
|
70
69
|
this.telemed = new Telemed(config);
|
|
71
70
|
this.user = new User(config);
|
|
72
71
|
this.version = new Version(config);
|
|
73
72
|
this.z3 = new Z3(config);
|
|
74
|
-
this.zambda = new Zambda(config);
|
|
75
|
-
this.zambdaLogStream = new ZambdaLogStream(config);
|
|
76
73
|
this.fax = new Fax(config);
|
|
77
74
|
this.lab = new Lab(config);
|
|
78
75
|
this.erx = new Erx(config);
|
|
76
|
+
this.rcm = new Rcm(config);
|
|
79
77
|
this.terminology = new Terminology(config);
|
|
78
|
+
this.zambda = new Zambda(config);
|
|
79
|
+
this.zambdaLogStream = new ZambdaLogStream(config);
|
|
80
80
|
this.fhir = new Fhir(config);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
OystehrClientRequest,
|
|
5
5
|
RcmEligibilityCheckParams,
|
|
6
6
|
RcmEligibilityCheckResponse,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
RcmSetClaimStatusParams,
|
|
8
|
+
RcmSetClaimStatusResponse,
|
|
9
|
+
RcmSubmitClaimParams,
|
|
10
|
+
RcmSubmitClaimResponse,
|
|
11
11
|
} from '../..';
|
|
12
12
|
import { SDKResource } from '../../client/client';
|
|
13
13
|
import { OystehrConfig } from '../../config';
|
|
@@ -17,7 +17,7 @@ export class Rcm extends SDKResource {
|
|
|
17
17
|
super(config);
|
|
18
18
|
}
|
|
19
19
|
#baseUrlThunk(): string {
|
|
20
|
-
return this.config.services?.['
|
|
20
|
+
return this.config.services?.['rcmApiUrl'] ?? 'https://rcm-api.zapehr.com/v1';
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Check [Insurance Eligibility](https://docs.oystehr.com/oystehr/services/rcm/eligibility/).
|
|
@@ -32,39 +32,30 @@ export class Rcm extends SDKResource {
|
|
|
32
32
|
params: RcmEligibilityCheckParams,
|
|
33
33
|
request?: OystehrClientRequest
|
|
34
34
|
): Promise<RcmEligibilityCheckResponse> {
|
|
35
|
-
return this.request('/
|
|
35
|
+
return this.request('/eligibility-check', 'post', this.#baseUrlThunk.bind(this))(params, request);
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Submit a claim to a payer.
|
|
39
39
|
*
|
|
40
|
-
* Access Policy Action: `RCM:
|
|
40
|
+
* Access Policy Action: `RCM:SubmitClaim`
|
|
41
41
|
* Access Policy Resource: `RCM:Claim`
|
|
42
42
|
*
|
|
43
43
|
* Access Policy Action: `FHIR:Create`
|
|
44
|
-
* Access Policy Resource: `FHIR:
|
|
44
|
+
* Access Policy Resource: `FHIR:ClaimResponse`
|
|
45
45
|
*/
|
|
46
|
-
|
|
47
|
-
params
|
|
48
|
-
request?: OystehrClientRequest
|
|
49
|
-
): Promise<RcmValidateProfessionalClaimResponse> {
|
|
50
|
-
return this.request('/rcm/professional-claim/validate', 'post', this.#baseUrlThunk.bind(this))(params, request);
|
|
46
|
+
submitClaim(params: RcmSubmitClaimParams, request?: OystehrClientRequest): Promise<RcmSubmitClaimResponse> {
|
|
47
|
+
return this.request('/claim/{claimId}/submit', 'post', this.#baseUrlThunk.bind(this))(params, request);
|
|
51
48
|
}
|
|
52
49
|
/**
|
|
53
|
-
*
|
|
50
|
+
* Emulate asynchronous claim responses by manually setting claim status.
|
|
54
51
|
*
|
|
55
|
-
* Access Policy Action: `RCM:
|
|
52
|
+
* Access Policy Action: `RCM:SubmitClaim`
|
|
56
53
|
* Access Policy Resource: `RCM:Claim`
|
|
57
54
|
*
|
|
58
55
|
* Access Policy Action: `FHIR:Create`
|
|
59
|
-
* Access Policy Resource: `FHIR:
|
|
60
|
-
*
|
|
61
|
-
* Access Policy Actions: `FHIR:Create, FHIR:Update`
|
|
62
|
-
* Access Policy Resource: `FHIR:Claim`
|
|
56
|
+
* Access Policy Resource: `FHIR:ClaimResponse`
|
|
63
57
|
*/
|
|
64
|
-
|
|
65
|
-
params
|
|
66
|
-
request?: OystehrClientRequest
|
|
67
|
-
): Promise<RcmSubmitProfessionalClaimResponse> {
|
|
68
|
-
return this.request('/rcm/professional-claim/submit', 'post', this.#baseUrlThunk.bind(this))(params, request);
|
|
58
|
+
setClaimStatus(params: RcmSetClaimStatusParams, request?: OystehrClientRequest): Promise<RcmSetClaimStatusResponse> {
|
|
59
|
+
return this.request('/claim/{claimId}/status', 'post', this.#baseUrlThunk.bind(this))(params, request);
|
|
69
60
|
}
|
|
70
61
|
}
|
|
@@ -26,7 +26,7 @@ export class Zambda extends SDKResource {
|
|
|
26
26
|
super(config);
|
|
27
27
|
}
|
|
28
28
|
#baseUrlThunk(): string {
|
|
29
|
-
return this.config.services?.['
|
|
29
|
+
return this.config.services?.['zambdaApiUrl'] ?? 'https://zambda-api.zapehr.com/v1';
|
|
30
30
|
}
|
|
31
31
|
uploadFile = ext.uploadFile;
|
|
32
32
|
/**
|
|
@@ -17,7 +17,7 @@ export class ZambdaLogStream extends SDKResource {
|
|
|
17
17
|
super(config);
|
|
18
18
|
}
|
|
19
19
|
#baseUrlThunk(): string {
|
|
20
|
-
return this.config.services?.['
|
|
20
|
+
return this.config.services?.['zambdaApiUrl'] ?? 'https://zambda-api.zapehr.com/v1';
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Get the log streams for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|