candidhealth 0.4.2 → 0.4.4
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/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/api/resources/billingNotes/client/Client.js +1 -1
- package/api/resources/commons/types/EntityNotFoundErrorMessage.d.ts +6 -0
- package/api/resources/commons/types/ProcedureModifier.d.ts +13 -1
- package/api/resources/commons/types/ProcedureModifier.js +3 -0
- package/api/resources/commons/types/RequestValidationError.d.ts +7 -0
- package/api/resources/commons/types/UnauthorizedErrorMessage.d.ts +6 -0
- package/api/resources/commons/types/index.d.ts +3 -1
- package/api/resources/commons/types/index.js +3 -1
- package/api/resources/encounters/resources/v4/client/Client.js +14 -8
- package/api/resources/encounters/resources/v4/client/create.d.ts +19 -1
- package/api/resources/encounters/resources/v4/client/create.js +33 -0
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +5 -4
- package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +1 -0
- package/api/resources/encounters/resources/v4/client/update.d.ts +19 -1
- package/api/resources/encounters/resources/v4/client/update.js +33 -0
- package/api/resources/encounters/resources/v4/types/CashPayPayerErrorMessage.d.ts +6 -0
- package/api/resources/encounters/resources/v4/types/CodingAttributionType.d.ts +2 -1
- package/api/resources/encounters/resources/v4/types/CodingAttributionType.js +1 -0
- package/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
- package/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
- package/api/resources/encounters/resources/v4/types/index.js +1 -0
- package/api/resources/expectedNetworkStatus/client/Client.js +1 -1
- package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/api/resources/index.d.ts +0 -1
- package/api/resources/index.js +1 -2
- package/api/resources/payers/client/Client.js +2 -2
- package/api/resources/serviceLines/types/ServiceLineBaseWithOptionals.d.ts +2 -0
- package/api/resources/tasks/resources/v3/client/Client.js +1 -1
- package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/billingNotes/client/Client.js +1 -1
- package/dist/api/resources/commons/types/EntityNotFoundErrorMessage.d.ts +6 -0
- package/dist/api/resources/commons/types/EntityNotFoundErrorMessage.js +5 -0
- package/dist/api/resources/commons/types/ProcedureModifier.d.ts +13 -1
- package/dist/api/resources/commons/types/ProcedureModifier.js +3 -0
- package/dist/api/resources/commons/types/RequestValidationError.d.ts +7 -0
- package/dist/api/resources/commons/types/RequestValidationError.js +5 -0
- package/dist/api/resources/commons/types/UnauthorizedErrorMessage.d.ts +6 -0
- package/dist/api/resources/commons/types/UnauthorizedErrorMessage.js +5 -0
- package/dist/api/resources/commons/types/index.d.ts +3 -1
- package/dist/api/resources/commons/types/index.js +3 -1
- package/dist/api/resources/encounters/resources/v4/client/Client.js +14 -8
- package/dist/api/resources/encounters/resources/v4/client/create.d.ts +19 -1
- package/dist/api/resources/encounters/resources/v4/client/create.js +33 -0
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +5 -4
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +1 -0
- package/dist/api/resources/encounters/resources/v4/client/update.d.ts +19 -1
- package/dist/api/resources/encounters/resources/v4/client/update.js +33 -0
- package/dist/api/resources/encounters/resources/v4/types/CashPayPayerErrorMessage.d.ts +6 -0
- package/dist/api/resources/encounters/resources/v4/types/CashPayPayerErrorMessage.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/CodingAttributionType.d.ts +2 -1
- package/dist/api/resources/encounters/resources/v4/types/CodingAttributionType.js +1 -0
- package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
- package/dist/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
- package/dist/api/resources/encounters/resources/v4/types/index.js +1 -0
- package/dist/api/resources/expectedNetworkStatus/client/Client.js +1 -1
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/index.d.ts +0 -1
- package/dist/api/resources/index.js +1 -2
- package/dist/api/resources/payers/client/Client.js +2 -2
- package/dist/api/resources/serviceLines/types/ServiceLineBaseWithOptionals.d.ts +2 -0
- package/dist/api/resources/tasks/resources/v3/client/Client.js +1 -1
- package/dist/serialization/resources/commons/types/EntityNotFoundErrorMessage.d.ts +12 -0
- package/{serialization/resources/commons/types/UserId.js → dist/serialization/resources/commons/types/EntityNotFoundErrorMessage.js} +3 -7
- package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
- package/dist/serialization/resources/commons/types/ProcedureModifier.js +3 -0
- package/dist/serialization/resources/commons/types/RequestValidationError.d.ts +13 -0
- package/dist/serialization/resources/commons/types/{UserId.js → RequestValidationError.js} +4 -7
- package/dist/serialization/resources/commons/types/UnauthorizedErrorMessage.d.ts +12 -0
- package/dist/serialization/resources/commons/types/UnauthorizedErrorMessage.js +33 -0
- package/dist/serialization/resources/commons/types/index.d.ts +3 -1
- package/dist/serialization/resources/commons/types/index.js +3 -1
- package/dist/serialization/resources/encounters/resources/v4/client/create.d.ts +13 -1
- package/dist/serialization/resources/encounters/resources/v4/client/create.js +15 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +1 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +1 -0
- package/dist/serialization/resources/encounters/resources/v4/client/update.d.ts +13 -1
- package/dist/serialization/resources/encounters/resources/v4/client/update.js +15 -0
- package/dist/serialization/resources/encounters/resources/v4/types/CashPayPayerErrorMessage.d.ts +12 -0
- package/dist/serialization/resources/{workQueues/resources/v1/types/WorkQueueCategoryType.js → encounters/resources/v4/types/CashPayPayerErrorMessage.js} +4 -2
- package/dist/serialization/resources/encounters/resources/v4/types/CodingAttributionType.d.ts +1 -1
- package/dist/serialization/resources/encounters/resources/v4/types/CodingAttributionType.js +1 -1
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -3
- package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
- package/dist/serialization/resources/encounters/resources/v4/types/index.js +1 -0
- package/dist/serialization/resources/index.d.ts +0 -1
- package/dist/serialization/resources/index.js +1 -2
- package/dist/serialization/resources/serviceLines/types/ServiceLineBaseWithOptionals.d.ts +2 -0
- package/dist/serialization/resources/serviceLines/types/ServiceLineBaseWithOptionals.js +2 -0
- package/package.json +1 -1
- package/serialization/resources/commons/types/EntityNotFoundErrorMessage.d.ts +12 -0
- package/serialization/resources/commons/types/EntityNotFoundErrorMessage.js +33 -0
- package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
- package/serialization/resources/commons/types/ProcedureModifier.js +3 -0
- package/serialization/resources/commons/types/RequestValidationError.d.ts +13 -0
- package/serialization/resources/commons/types/RequestValidationError.js +34 -0
- package/serialization/resources/commons/types/UnauthorizedErrorMessage.d.ts +12 -0
- package/serialization/resources/commons/types/UnauthorizedErrorMessage.js +33 -0
- package/serialization/resources/commons/types/index.d.ts +3 -1
- package/serialization/resources/commons/types/index.js +3 -1
- package/serialization/resources/encounters/resources/v4/client/create.d.ts +13 -1
- package/serialization/resources/encounters/resources/v4/client/create.js +15 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +1 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +1 -0
- package/serialization/resources/encounters/resources/v4/client/update.d.ts +13 -1
- package/serialization/resources/encounters/resources/v4/client/update.js +15 -0
- package/serialization/resources/encounters/resources/v4/types/CashPayPayerErrorMessage.d.ts +12 -0
- package/serialization/resources/{workQueues/resources/v1/types/WorkQueueCategoryType.js → encounters/resources/v4/types/CashPayPayerErrorMessage.js} +4 -2
- package/serialization/resources/encounters/resources/v4/types/CodingAttributionType.d.ts +1 -1
- package/serialization/resources/encounters/resources/v4/types/CodingAttributionType.js +1 -1
- package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
- package/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -3
- package/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
- package/serialization/resources/encounters/resources/v4/types/index.js +1 -0
- package/serialization/resources/index.d.ts +0 -1
- package/serialization/resources/index.js +1 -2
- package/serialization/resources/serviceLines/types/ServiceLineBaseWithOptionals.d.ts +2 -0
- package/serialization/resources/serviceLines/types/ServiceLineBaseWithOptionals.js +2 -0
- package/api/resources/commons/types/UserId.d.ts +0 -8
- package/api/resources/commons/types/UserId.js +0 -10
- package/api/resources/workQueues/index.d.ts +0 -1
- package/api/resources/workQueues/index.js +0 -17
- package/api/resources/workQueues/resources/index.d.ts +0 -1
- package/api/resources/workQueues/resources/index.js +0 -27
- package/api/resources/workQueues/resources/v1/index.d.ts +0 -1
- package/api/resources/workQueues/resources/v1/index.js +0 -17
- package/api/resources/workQueues/resources/v1/types/WorkQueue.d.ts +0 -12
- package/api/resources/workQueues/resources/v1/types/WorkQueueCategory.d.ts +0 -9
- package/api/resources/workQueues/resources/v1/types/WorkQueueCategoryType.d.ts +0 -12
- package/api/resources/workQueues/resources/v1/types/WorkQueueCategoryType.js +0 -14
- package/api/resources/workQueues/resources/v1/types/index.d.ts +0 -3
- package/api/resources/workQueues/resources/v1/types/index.js +0 -19
- package/dist/api/resources/commons/types/UserId.d.ts +0 -8
- package/dist/api/resources/commons/types/UserId.js +0 -10
- package/dist/api/resources/workQueues/index.d.ts +0 -1
- package/dist/api/resources/workQueues/index.js +0 -17
- package/dist/api/resources/workQueues/resources/index.d.ts +0 -1
- package/dist/api/resources/workQueues/resources/index.js +0 -27
- package/dist/api/resources/workQueues/resources/v1/index.d.ts +0 -1
- package/dist/api/resources/workQueues/resources/v1/index.js +0 -17
- package/dist/api/resources/workQueues/resources/v1/types/WorkQueue.d.ts +0 -12
- package/dist/api/resources/workQueues/resources/v1/types/WorkQueueCategory.d.ts +0 -9
- package/dist/api/resources/workQueues/resources/v1/types/WorkQueueCategoryType.d.ts +0 -12
- package/dist/api/resources/workQueues/resources/v1/types/WorkQueueCategoryType.js +0 -14
- package/dist/api/resources/workQueues/resources/v1/types/index.d.ts +0 -3
- package/dist/api/resources/workQueues/resources/v1/types/index.js +0 -19
- package/dist/serialization/resources/commons/types/UserId.d.ts +0 -10
- package/dist/serialization/resources/workQueues/index.d.ts +0 -1
- package/dist/serialization/resources/workQueues/index.js +0 -17
- package/dist/serialization/resources/workQueues/resources/index.d.ts +0 -1
- package/dist/serialization/resources/workQueues/resources/index.js +0 -27
- package/dist/serialization/resources/workQueues/resources/v1/index.d.ts +0 -1
- package/dist/serialization/resources/workQueues/resources/v1/index.js +0 -17
- package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueue.d.ts +0 -17
- package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueue.js +0 -38
- package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueueCategory.d.ts +0 -14
- package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueueCategory.js +0 -35
- package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueueCategoryType.d.ts +0 -10
- package/dist/serialization/resources/workQueues/resources/v1/types/index.d.ts +0 -3
- package/dist/serialization/resources/workQueues/resources/v1/types/index.js +0 -19
- package/serialization/resources/commons/types/UserId.d.ts +0 -10
- package/serialization/resources/workQueues/index.d.ts +0 -1
- package/serialization/resources/workQueues/index.js +0 -17
- package/serialization/resources/workQueues/resources/index.d.ts +0 -1
- package/serialization/resources/workQueues/resources/index.js +0 -27
- package/serialization/resources/workQueues/resources/v1/index.d.ts +0 -1
- package/serialization/resources/workQueues/resources/v1/index.js +0 -17
- package/serialization/resources/workQueues/resources/v1/types/WorkQueue.d.ts +0 -17
- package/serialization/resources/workQueues/resources/v1/types/WorkQueue.js +0 -38
- package/serialization/resources/workQueues/resources/v1/types/WorkQueueCategory.d.ts +0 -14
- package/serialization/resources/workQueues/resources/v1/types/WorkQueueCategory.js +0 -35
- package/serialization/resources/workQueues/resources/v1/types/WorkQueueCategoryType.d.ts +0 -10
- package/serialization/resources/workQueues/resources/v1/types/index.d.ts +0 -3
- package/serialization/resources/workQueues/resources/v1/types/index.js +0 -19
- /package/api/resources/{workQueues/resources/v1/types/WorkQueue.js → commons/types/EntityNotFoundErrorMessage.js} +0 -0
- /package/api/resources/{workQueues/resources/v1/types/WorkQueueCategory.js → commons/types/RequestValidationError.js} +0 -0
- /package/{dist/api/resources/workQueues/resources/v1/types/WorkQueue.js → api/resources/commons/types/UnauthorizedErrorMessage.js} +0 -0
- /package/{dist/api/resources/workQueues/resources/v1/types/WorkQueueCategory.js → api/resources/encounters/resources/v4/types/CashPayPayerErrorMessage.js} +0 -0
|
@@ -48,7 +48,7 @@ class V2 {
|
|
|
48
48
|
Authorization: await this._getAuthorizationHeader(),
|
|
49
49
|
"X-Fern-Language": "JavaScript",
|
|
50
50
|
"X-Fern-SDK-Name": "candidhealth",
|
|
51
|
-
"X-Fern-SDK-Version": "0.4.
|
|
51
|
+
"X-Fern-SDK-Version": "0.4.4",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
body: await serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, {
|
|
@@ -48,7 +48,7 @@ class BillingNotes {
|
|
|
48
48
|
Authorization: await this._getAuthorizationHeader(),
|
|
49
49
|
"X-Fern-Language": "JavaScript",
|
|
50
50
|
"X-Fern-SDK-Name": "candidhealth",
|
|
51
|
-
"X-Fern-SDK-Version": "0.4.
|
|
51
|
+
"X-Fern-SDK-Version": "0.4.4",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
body: await serializers.StandaloneBillingNoteCreate.jsonOrThrow(request, {
|
|
@@ -1154,7 +1154,16 @@ export declare type ProcedureModifier =
|
|
|
1154
1154
|
| "UR"
|
|
1155
1155
|
/**
|
|
1156
1156
|
* Six patients served */
|
|
1157
|
-
| "US"
|
|
1157
|
+
| "US"
|
|
1158
|
+
/**
|
|
1159
|
+
* One patient visit in a month */
|
|
1160
|
+
| "V1"
|
|
1161
|
+
/**
|
|
1162
|
+
* Two patient visits in a month */
|
|
1163
|
+
| "V2"
|
|
1164
|
+
/**
|
|
1165
|
+
* Three patient visits in a month */
|
|
1166
|
+
| "V3";
|
|
1158
1167
|
export declare const ProcedureModifier: {
|
|
1159
1168
|
readonly TwentyTwo: "22";
|
|
1160
1169
|
readonly TwentyThree: "23";
|
|
@@ -1539,4 +1548,7 @@ export declare const ProcedureModifier: {
|
|
|
1539
1548
|
readonly Uq: "UQ";
|
|
1540
1549
|
readonly Ur: "UR";
|
|
1541
1550
|
readonly Us: "US";
|
|
1551
|
+
readonly V1: "V1";
|
|
1552
|
+
readonly V2: "V2";
|
|
1553
|
+
readonly V3: "V3";
|
|
1542
1554
|
};
|
|
@@ -6,7 +6,6 @@ export * from "./PatientExternalId";
|
|
|
6
6
|
export * from "./EncounterExternalId";
|
|
7
7
|
export * from "./Npi";
|
|
8
8
|
export * from "./WorkQueueId";
|
|
9
|
-
export * from "./UserId";
|
|
10
9
|
export * from "./LinkUrl";
|
|
11
10
|
export * from "./ContentDownloadUrl";
|
|
12
11
|
export * from "./PageToken";
|
|
@@ -28,6 +27,9 @@ export * from "./ProcedureModifier";
|
|
|
28
27
|
export * from "./ServiceLineUnits";
|
|
29
28
|
export * from "./InsuranceTypeCode";
|
|
30
29
|
export * from "./EmrPayerCrosswalk";
|
|
30
|
+
export * from "./EntityNotFoundErrorMessage";
|
|
31
|
+
export * from "./UnauthorizedErrorMessage";
|
|
32
|
+
export * from "./RequestValidationError";
|
|
31
33
|
export * from "./PhoneNumber";
|
|
32
34
|
export * from "./PhoneNumberType";
|
|
33
35
|
export * from "./Email";
|
|
@@ -22,7 +22,6 @@ __exportStar(require("./PatientExternalId"), exports);
|
|
|
22
22
|
__exportStar(require("./EncounterExternalId"), exports);
|
|
23
23
|
__exportStar(require("./Npi"), exports);
|
|
24
24
|
__exportStar(require("./WorkQueueId"), exports);
|
|
25
|
-
__exportStar(require("./UserId"), exports);
|
|
26
25
|
__exportStar(require("./LinkUrl"), exports);
|
|
27
26
|
__exportStar(require("./ContentDownloadUrl"), exports);
|
|
28
27
|
__exportStar(require("./PageToken"), exports);
|
|
@@ -44,6 +43,9 @@ __exportStar(require("./ProcedureModifier"), exports);
|
|
|
44
43
|
__exportStar(require("./ServiceLineUnits"), exports);
|
|
45
44
|
__exportStar(require("./InsuranceTypeCode"), exports);
|
|
46
45
|
__exportStar(require("./EmrPayerCrosswalk"), exports);
|
|
46
|
+
__exportStar(require("./EntityNotFoundErrorMessage"), exports);
|
|
47
|
+
__exportStar(require("./UnauthorizedErrorMessage"), exports);
|
|
48
|
+
__exportStar(require("./RequestValidationError"), exports);
|
|
47
49
|
__exportStar(require("./PhoneNumber"), exports);
|
|
48
50
|
__exportStar(require("./PhoneNumberType"), exports);
|
|
49
51
|
__exportStar(require("./Email"), exports);
|
|
@@ -100,7 +100,7 @@ class V4 {
|
|
|
100
100
|
Authorization: await this._getAuthorizationHeader(),
|
|
101
101
|
"X-Fern-Language": "JavaScript",
|
|
102
102
|
"X-Fern-SDK-Name": "candidhealth",
|
|
103
|
-
"X-Fern-SDK-Version": "0.4.
|
|
103
|
+
"X-Fern-SDK-Version": "0.4.4",
|
|
104
104
|
},
|
|
105
105
|
contentType: "application/json",
|
|
106
106
|
queryParameters: _queryParams,
|
|
@@ -130,7 +130,7 @@ class V4 {
|
|
|
130
130
|
Authorization: await this._getAuthorizationHeader(),
|
|
131
131
|
"X-Fern-Language": "JavaScript",
|
|
132
132
|
"X-Fern-SDK-Name": "candidhealth",
|
|
133
|
-
"X-Fern-SDK-Version": "0.4.
|
|
133
|
+
"X-Fern-SDK-Version": "0.4.4",
|
|
134
134
|
},
|
|
135
135
|
contentType: "application/json",
|
|
136
136
|
timeoutMs: 60000,
|
|
@@ -159,7 +159,7 @@ class V4 {
|
|
|
159
159
|
Authorization: await this._getAuthorizationHeader(),
|
|
160
160
|
"X-Fern-Language": "JavaScript",
|
|
161
161
|
"X-Fern-SDK-Name": "candidhealth",
|
|
162
|
-
"X-Fern-SDK-Version": "0.4.
|
|
162
|
+
"X-Fern-SDK-Version": "0.4.4",
|
|
163
163
|
},
|
|
164
164
|
contentType: "application/json",
|
|
165
165
|
body: await serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, {
|
|
@@ -181,7 +181,10 @@ class V4 {
|
|
|
181
181
|
if (_response.error.reason === "status-code") {
|
|
182
182
|
switch (_response.error.body?.errorName) {
|
|
183
183
|
case "EncounterExternalIdUniquenessError":
|
|
184
|
+
case "EntityNotFoundError":
|
|
184
185
|
case "EncounterGuarantorMissingContactInfoError":
|
|
186
|
+
case "HttpRequestValidationsError":
|
|
187
|
+
case "CashPayPayerError":
|
|
185
188
|
return {
|
|
186
189
|
ok: false,
|
|
187
190
|
error: await serializers.encounters.v4.create.Error.parseOrThrow(_response.error.body, {
|
|
@@ -206,7 +209,7 @@ class V4 {
|
|
|
206
209
|
Authorization: await this._getAuthorizationHeader(),
|
|
207
210
|
"X-Fern-Language": "JavaScript",
|
|
208
211
|
"X-Fern-SDK-Name": "candidhealth",
|
|
209
|
-
"X-Fern-SDK-Version": "0.4.
|
|
212
|
+
"X-Fern-SDK-Version": "0.4.4",
|
|
210
213
|
},
|
|
211
214
|
contentType: "application/json",
|
|
212
215
|
body: await serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
|
|
@@ -228,6 +231,9 @@ class V4 {
|
|
|
228
231
|
if (_response.error.reason === "status-code") {
|
|
229
232
|
switch (_response.error.body?.errorName) {
|
|
230
233
|
case "EncounterExternalIdUniquenessError":
|
|
234
|
+
case "EntityNotFoundError":
|
|
235
|
+
case "UnauthorizedError":
|
|
236
|
+
case "HttpRequestValidationsError":
|
|
231
237
|
return {
|
|
232
238
|
ok: false,
|
|
233
239
|
error: await serializers.encounters.v4.update.Error.parseOrThrow(_response.error.body, {
|
|
@@ -252,7 +258,7 @@ class V4 {
|
|
|
252
258
|
Authorization: await this._getAuthorizationHeader(),
|
|
253
259
|
"X-Fern-Language": "JavaScript",
|
|
254
260
|
"X-Fern-SDK-Name": "candidhealth",
|
|
255
|
-
"X-Fern-SDK-Version": "0.4.
|
|
261
|
+
"X-Fern-SDK-Version": "0.4.4",
|
|
256
262
|
},
|
|
257
263
|
contentType: "application/json",
|
|
258
264
|
timeoutMs: 60000,
|
|
@@ -281,7 +287,7 @@ class V4 {
|
|
|
281
287
|
Authorization: await this._getAuthorizationHeader(),
|
|
282
288
|
"X-Fern-Language": "JavaScript",
|
|
283
289
|
"X-Fern-SDK-Name": "candidhealth",
|
|
284
|
-
"X-Fern-SDK-Version": "0.4.
|
|
290
|
+
"X-Fern-SDK-Version": "0.4.4",
|
|
285
291
|
},
|
|
286
292
|
contentType: "application/json",
|
|
287
293
|
timeoutMs: 60000,
|
|
@@ -313,7 +319,7 @@ class V4 {
|
|
|
313
319
|
Authorization: await this._getAuthorizationHeader(),
|
|
314
320
|
"X-Fern-Language": "JavaScript",
|
|
315
321
|
"X-Fern-SDK-Name": "candidhealth",
|
|
316
|
-
"X-Fern-SDK-Version": "0.4.
|
|
322
|
+
"X-Fern-SDK-Version": "0.4.4",
|
|
317
323
|
},
|
|
318
324
|
contentType: "application/json",
|
|
319
325
|
timeoutMs: 60000,
|
|
@@ -342,7 +348,7 @@ class V4 {
|
|
|
342
348
|
Authorization: await this._getAuthorizationHeader(),
|
|
343
349
|
"X-Fern-Language": "JavaScript",
|
|
344
350
|
"X-Fern-SDK-Name": "candidhealth",
|
|
345
|
-
"X-Fern-SDK-Version": "0.4.
|
|
351
|
+
"X-Fern-SDK-Version": "0.4.4",
|
|
346
352
|
},
|
|
347
353
|
contentType: "application/json",
|
|
348
354
|
timeoutMs: 60000,
|
|
@@ -3,16 +3,28 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
|
-
export declare type Error = CandidApi.encounters.v4.create.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.create.Error.EncounterGuarantorMissingContactInfoError | CandidApi.encounters.v4.create.Error._Unknown;
|
|
6
|
+
export declare type Error = CandidApi.encounters.v4.create.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.create.Error.EntityNotFoundError | CandidApi.encounters.v4.create.Error.EncounterGuarantorMissingContactInfoError | CandidApi.encounters.v4.create.Error.HttpRequestValidationsError | CandidApi.encounters.v4.create.Error.CashPayPayerError | CandidApi.encounters.v4.create.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface EncounterExternalIdUniquenessError extends _Utils {
|
|
9
9
|
errorName: "EncounterExternalIdUniquenessError";
|
|
10
10
|
content: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType;
|
|
11
11
|
}
|
|
12
|
+
interface EntityNotFoundError extends _Utils {
|
|
13
|
+
errorName: "EntityNotFoundError";
|
|
14
|
+
content: CandidApi.EntityNotFoundErrorMessage;
|
|
15
|
+
}
|
|
12
16
|
interface EncounterGuarantorMissingContactInfoError extends _Utils {
|
|
13
17
|
errorName: "EncounterGuarantorMissingContactInfoError";
|
|
14
18
|
content: CandidApi.encounters.v4.EncounterGuarantorMissingContactInfoErrorType;
|
|
15
19
|
}
|
|
20
|
+
interface HttpRequestValidationsError extends _Utils {
|
|
21
|
+
errorName: "HttpRequestValidationsError";
|
|
22
|
+
content: CandidApi.RequestValidationError[];
|
|
23
|
+
}
|
|
24
|
+
interface CashPayPayerError extends _Utils {
|
|
25
|
+
errorName: "CashPayPayerError";
|
|
26
|
+
content: CandidApi.encounters.v4.CashPayPayerErrorMessage;
|
|
27
|
+
}
|
|
16
28
|
interface _Unknown extends _Utils {
|
|
17
29
|
errorName: void;
|
|
18
30
|
content: core.Fetcher.Error;
|
|
@@ -22,13 +34,19 @@ export declare namespace Error {
|
|
|
22
34
|
}
|
|
23
35
|
interface _Visitor<_Result> {
|
|
24
36
|
encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => _Result;
|
|
37
|
+
entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
|
|
25
38
|
encounterGuarantorMissingContactInfoError: (value: CandidApi.encounters.v4.EncounterGuarantorMissingContactInfoErrorType) => _Result;
|
|
39
|
+
httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
|
|
40
|
+
cashPayPayerError: (value: CandidApi.encounters.v4.CashPayPayerErrorMessage) => _Result;
|
|
26
41
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
27
42
|
}
|
|
28
43
|
}
|
|
29
44
|
export declare const Error: {
|
|
30
45
|
readonly encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => CandidApi.encounters.v4.create.Error.EncounterExternalIdUniquenessError;
|
|
46
|
+
readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.encounters.v4.create.Error.EntityNotFoundError;
|
|
31
47
|
readonly encounterGuarantorMissingContactInfoError: (value: CandidApi.encounters.v4.EncounterGuarantorMissingContactInfoErrorType) => CandidApi.encounters.v4.create.Error.EncounterGuarantorMissingContactInfoError;
|
|
48
|
+
readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.encounters.v4.create.Error.HttpRequestValidationsError;
|
|
49
|
+
readonly cashPayPayerError: (value: CandidApi.encounters.v4.CashPayPayerErrorMessage) => CandidApi.encounters.v4.create.Error.CashPayPayerError;
|
|
32
50
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounters.v4.create.Error._Unknown;
|
|
33
51
|
readonly _visit: <_Result>(value: CandidApi.encounters.v4.create.Error, visitor: CandidApi.encounters.v4.create.Error._Visitor<_Result>) => _Result;
|
|
34
52
|
};
|
|
@@ -38,6 +38,15 @@ exports.Error = {
|
|
|
38
38
|
},
|
|
39
39
|
};
|
|
40
40
|
},
|
|
41
|
+
entityNotFoundError: (value) => {
|
|
42
|
+
return {
|
|
43
|
+
content: value,
|
|
44
|
+
errorName: "EntityNotFoundError",
|
|
45
|
+
_visit: function (visitor) {
|
|
46
|
+
return CandidApi.encounters.v4.create.Error._visit(this, visitor);
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
},
|
|
41
50
|
encounterGuarantorMissingContactInfoError: (value) => {
|
|
42
51
|
return {
|
|
43
52
|
content: value,
|
|
@@ -47,6 +56,24 @@ exports.Error = {
|
|
|
47
56
|
},
|
|
48
57
|
};
|
|
49
58
|
},
|
|
59
|
+
httpRequestValidationsError: (value) => {
|
|
60
|
+
return {
|
|
61
|
+
content: value,
|
|
62
|
+
errorName: "HttpRequestValidationsError",
|
|
63
|
+
_visit: function (visitor) {
|
|
64
|
+
return CandidApi.encounters.v4.create.Error._visit(this, visitor);
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
cashPayPayerError: (value) => {
|
|
69
|
+
return {
|
|
70
|
+
content: value,
|
|
71
|
+
errorName: "CashPayPayerError",
|
|
72
|
+
_visit: function (visitor) {
|
|
73
|
+
return CandidApi.encounters.v4.create.Error._visit(this, visitor);
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
},
|
|
50
77
|
_unknown: (fetcherError) => {
|
|
51
78
|
return {
|
|
52
79
|
errorName: undefined,
|
|
@@ -60,8 +87,14 @@ exports.Error = {
|
|
|
60
87
|
switch (value.errorName) {
|
|
61
88
|
case "EncounterExternalIdUniquenessError":
|
|
62
89
|
return visitor.encounterExternalIdUniquenessError(value.content);
|
|
90
|
+
case "EntityNotFoundError":
|
|
91
|
+
return visitor.entityNotFoundError(value.content);
|
|
63
92
|
case "EncounterGuarantorMissingContactInfoError":
|
|
64
93
|
return visitor.encounterGuarantorMissingContactInfoError(value.content);
|
|
94
|
+
case "HttpRequestValidationsError":
|
|
95
|
+
return visitor.httpRequestValidationsError(value.content);
|
|
96
|
+
case "CashPayPayerError":
|
|
97
|
+
return visitor.cashPayPayerError(value.content);
|
|
65
98
|
default:
|
|
66
99
|
return visitor._other(value);
|
|
67
100
|
}
|
|
@@ -17,14 +17,15 @@ export interface EncounterCreate extends CandidApi.encounters.v4.EncounterBase {
|
|
|
17
17
|
referringProvider?: CandidApi.encounterProviders.v2.ReferringProvider;
|
|
18
18
|
serviceFacility?: CandidApi.EncounterServiceFacilityBase;
|
|
19
19
|
/**
|
|
20
|
-
* Subscriber_primary is required when
|
|
21
|
-
* These are not required fields when
|
|
22
|
-
* However, if you collect this for patients, even
|
|
20
|
+
* Subscriber_primary is required when responsible_party is INSURANCE_PAY (i.e. when the claim should be billed to insurance).
|
|
21
|
+
* These are not required fields when responsible_party is SELF_PAY (i.e. when the claim should be billed to the patient).
|
|
22
|
+
* However, if you collect this for patients, even self-pay, we recommend including it when sending encounters to Candid.
|
|
23
|
+
* Note: Cash Pay is no longer a valid payer_id in v4, please use responsible party to define self-pay claims
|
|
23
24
|
*
|
|
24
25
|
*/
|
|
25
26
|
subscriberPrimary?: CandidApi.SubscriberCreate;
|
|
26
27
|
/**
|
|
27
|
-
* Please always include this when you have it, even for
|
|
28
|
+
* Please always include this when you have it, even for self-pay claims
|
|
28
29
|
*
|
|
29
30
|
*/
|
|
30
31
|
subscriberSecondary?: CandidApi.SubscriberCreate;
|
|
@@ -3,12 +3,24 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
|
-
export declare type Error = CandidApi.encounters.v4.update.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.update.Error._Unknown;
|
|
6
|
+
export declare type Error = CandidApi.encounters.v4.update.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.update.Error.EntityNotFoundError | CandidApi.encounters.v4.update.Error.UnauthorizedError | CandidApi.encounters.v4.update.Error.HttpRequestValidationsError | CandidApi.encounters.v4.update.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface EncounterExternalIdUniquenessError extends _Utils {
|
|
9
9
|
errorName: "EncounterExternalIdUniquenessError";
|
|
10
10
|
content: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType;
|
|
11
11
|
}
|
|
12
|
+
interface EntityNotFoundError extends _Utils {
|
|
13
|
+
errorName: "EntityNotFoundError";
|
|
14
|
+
content: CandidApi.EntityNotFoundErrorMessage;
|
|
15
|
+
}
|
|
16
|
+
interface UnauthorizedError extends _Utils {
|
|
17
|
+
errorName: "UnauthorizedError";
|
|
18
|
+
content: CandidApi.UnauthorizedErrorMessage;
|
|
19
|
+
}
|
|
20
|
+
interface HttpRequestValidationsError extends _Utils {
|
|
21
|
+
errorName: "HttpRequestValidationsError";
|
|
22
|
+
content: CandidApi.RequestValidationError[];
|
|
23
|
+
}
|
|
12
24
|
interface _Unknown extends _Utils {
|
|
13
25
|
errorName: void;
|
|
14
26
|
content: core.Fetcher.Error;
|
|
@@ -18,11 +30,17 @@ export declare namespace Error {
|
|
|
18
30
|
}
|
|
19
31
|
interface _Visitor<_Result> {
|
|
20
32
|
encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => _Result;
|
|
33
|
+
entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
|
|
34
|
+
unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
|
|
35
|
+
httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
|
|
21
36
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
22
37
|
}
|
|
23
38
|
}
|
|
24
39
|
export declare const Error: {
|
|
25
40
|
readonly encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => CandidApi.encounters.v4.update.Error.EncounterExternalIdUniquenessError;
|
|
41
|
+
readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.encounters.v4.update.Error.EntityNotFoundError;
|
|
42
|
+
readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.encounters.v4.update.Error.UnauthorizedError;
|
|
43
|
+
readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.encounters.v4.update.Error.HttpRequestValidationsError;
|
|
26
44
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounters.v4.update.Error._Unknown;
|
|
27
45
|
readonly _visit: <_Result>(value: CandidApi.encounters.v4.update.Error, visitor: CandidApi.encounters.v4.update.Error._Visitor<_Result>) => _Result;
|
|
28
46
|
};
|
|
@@ -38,6 +38,33 @@ exports.Error = {
|
|
|
38
38
|
},
|
|
39
39
|
};
|
|
40
40
|
},
|
|
41
|
+
entityNotFoundError: (value) => {
|
|
42
|
+
return {
|
|
43
|
+
content: value,
|
|
44
|
+
errorName: "EntityNotFoundError",
|
|
45
|
+
_visit: function (visitor) {
|
|
46
|
+
return CandidApi.encounters.v4.update.Error._visit(this, visitor);
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
unauthorizedError: (value) => {
|
|
51
|
+
return {
|
|
52
|
+
content: value,
|
|
53
|
+
errorName: "UnauthorizedError",
|
|
54
|
+
_visit: function (visitor) {
|
|
55
|
+
return CandidApi.encounters.v4.update.Error._visit(this, visitor);
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
},
|
|
59
|
+
httpRequestValidationsError: (value) => {
|
|
60
|
+
return {
|
|
61
|
+
content: value,
|
|
62
|
+
errorName: "HttpRequestValidationsError",
|
|
63
|
+
_visit: function (visitor) {
|
|
64
|
+
return CandidApi.encounters.v4.update.Error._visit(this, visitor);
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
},
|
|
41
68
|
_unknown: (fetcherError) => {
|
|
42
69
|
return {
|
|
43
70
|
errorName: undefined,
|
|
@@ -51,6 +78,12 @@ exports.Error = {
|
|
|
51
78
|
switch (value.errorName) {
|
|
52
79
|
case "EncounterExternalIdUniquenessError":
|
|
53
80
|
return visitor.encounterExternalIdUniquenessError(value.content);
|
|
81
|
+
case "EntityNotFoundError":
|
|
82
|
+
return visitor.entityNotFoundError(value.content);
|
|
83
|
+
case "UnauthorizedError":
|
|
84
|
+
return visitor.unauthorizedError(value.content);
|
|
85
|
+
case "HttpRequestValidationsError":
|
|
86
|
+
return visitor.httpRequestValidationsError(value.content);
|
|
54
87
|
default:
|
|
55
88
|
return visitor._other(value);
|
|
56
89
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export declare type CodingAttributionType = "CANDID" | "CUSTOMER" | "TCN";
|
|
4
|
+
export declare type CodingAttributionType = "CANDID" | "CUSTOMER" | "TCN" | "PJF";
|
|
5
5
|
export declare const CodingAttributionType: {
|
|
6
6
|
readonly Candid: "CANDID";
|
|
7
7
|
readonly Customer: "CUSTOMER";
|
|
8
8
|
readonly Tcn: "TCN";
|
|
9
|
+
readonly Pjf: "PJF";
|
|
9
10
|
};
|
|
@@ -29,5 +29,5 @@ export interface Encounter extends CandidApi.encounters.v4.EncounterBase {
|
|
|
29
29
|
patientPayments: CandidApi.patientPayments.v3.PatientPayment[];
|
|
30
30
|
tags: CandidApi.Tag[];
|
|
31
31
|
codingAttribution?: CandidApi.encounters.v4.CodingAttributionType;
|
|
32
|
-
|
|
32
|
+
workQueueId?: CandidApi.WorkQueueId;
|
|
33
33
|
}
|
|
@@ -56,3 +56,4 @@ __exportStar(require("./IntakeQuestionId"), exports);
|
|
|
56
56
|
__exportStar(require("./IntakeFollowUpId"), exports);
|
|
57
57
|
__exportStar(require("./EncounterExternalIdUniquenessErrorType"), exports);
|
|
58
58
|
__exportStar(require("./EncounterGuarantorMissingContactInfoErrorType"), exports);
|
|
59
|
+
__exportStar(require("./CashPayPayerErrorMessage"), exports);
|
|
@@ -48,7 +48,7 @@ class ExpectedNetworkStatus {
|
|
|
48
48
|
Authorization: await this._getAuthorizationHeader(),
|
|
49
49
|
"X-Fern-Language": "JavaScript",
|
|
50
50
|
"X-Fern-SDK-Name": "candidhealth",
|
|
51
|
-
"X-Fern-SDK-Version": "0.4.
|
|
51
|
+
"X-Fern-SDK-Version": "0.4.4",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
body: await serializers.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
|
|
@@ -48,7 +48,7 @@ class V1 {
|
|
|
48
48
|
Authorization: await this._getAuthorizationHeader(),
|
|
49
49
|
"X-Fern-Language": "JavaScript",
|
|
50
50
|
"X-Fern-SDK-Name": "candidhealth",
|
|
51
|
-
"X-Fern-SDK-Version": "0.4.
|
|
51
|
+
"X-Fern-SDK-Version": "0.4.4",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
body: await serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, {
|
|
@@ -94,7 +94,7 @@ class V1 {
|
|
|
94
94
|
Authorization: await this._getAuthorizationHeader(),
|
|
95
95
|
"X-Fern-Language": "JavaScript",
|
|
96
96
|
"X-Fern-SDK-Name": "candidhealth",
|
|
97
|
-
"X-Fern-SDK-Version": "0.4.
|
|
97
|
+
"X-Fern-SDK-Version": "0.4.4",
|
|
98
98
|
},
|
|
99
99
|
contentType: "application/json",
|
|
100
100
|
timeoutMs: 60000,
|
|
@@ -123,7 +123,7 @@ class V1 {
|
|
|
123
123
|
Authorization: await this._getAuthorizationHeader(),
|
|
124
124
|
"X-Fern-Language": "JavaScript",
|
|
125
125
|
"X-Fern-SDK-Name": "candidhealth",
|
|
126
|
-
"X-Fern-SDK-Version": "0.4.
|
|
126
|
+
"X-Fern-SDK-Version": "0.4.4",
|
|
127
127
|
},
|
|
128
128
|
contentType: "application/json",
|
|
129
129
|
body: await serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, {
|
package/api/resources/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export * as guarantor from "./guarantor";
|
|
|
5
5
|
export * as organizationProviders from "./organizationProviders";
|
|
6
6
|
export * as patientPayments from "./patientPayments";
|
|
7
7
|
export * as tasks from "./tasks";
|
|
8
|
-
export * as workQueues from "./workQueues";
|
|
9
8
|
export * as billingNotes from "./billingNotes";
|
|
10
9
|
export * from "./billingNotes/types";
|
|
11
10
|
export * as claims from "./claims";
|
package/api/resources/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.tags = exports.serviceLines = exports.serviceFacility = exports.payers = exports.invoices = exports.insuranceCard = exports.individual = exports.expectedNetworkStatus = exports.era = exports.diagnoses = exports.credentialing = exports.contracts = exports.commons = exports.claims = exports.billingNotes = exports.
|
|
29
|
+
exports.tags = exports.serviceLines = exports.serviceFacility = exports.payers = exports.invoices = exports.insuranceCard = exports.individual = exports.expectedNetworkStatus = exports.era = exports.diagnoses = exports.credentialing = exports.contracts = exports.commons = exports.claims = exports.billingNotes = exports.tasks = exports.patientPayments = exports.organizationProviders = exports.guarantor = exports.encounters = exports.encounterProviders = exports.auth = void 0;
|
|
30
30
|
exports.auth = __importStar(require("./auth"));
|
|
31
31
|
exports.encounterProviders = __importStar(require("./encounterProviders"));
|
|
32
32
|
exports.encounters = __importStar(require("./encounters"));
|
|
@@ -34,7 +34,6 @@ exports.guarantor = __importStar(require("./guarantor"));
|
|
|
34
34
|
exports.organizationProviders = __importStar(require("./organizationProviders"));
|
|
35
35
|
exports.patientPayments = __importStar(require("./patientPayments"));
|
|
36
36
|
exports.tasks = __importStar(require("./tasks"));
|
|
37
|
-
exports.workQueues = __importStar(require("./workQueues"));
|
|
38
37
|
exports.billingNotes = __importStar(require("./billingNotes"));
|
|
39
38
|
__exportStar(require("./billingNotes/types"), exports);
|
|
40
39
|
exports.claims = __importStar(require("./claims"));
|
|
@@ -49,7 +49,7 @@ class Payers {
|
|
|
49
49
|
Authorization: await this._getAuthorizationHeader(),
|
|
50
50
|
"X-Fern-Language": "JavaScript",
|
|
51
51
|
"X-Fern-SDK-Name": "candidhealth",
|
|
52
|
-
"X-Fern-SDK-Version": "0.4.
|
|
52
|
+
"X-Fern-SDK-Version": "0.4.4",
|
|
53
53
|
},
|
|
54
54
|
contentType: "application/json",
|
|
55
55
|
timeoutMs: 60000,
|
|
@@ -89,7 +89,7 @@ class Payers {
|
|
|
89
89
|
Authorization: await this._getAuthorizationHeader(),
|
|
90
90
|
"X-Fern-Language": "JavaScript",
|
|
91
91
|
"X-Fern-SDK-Name": "candidhealth",
|
|
92
|
-
"X-Fern-SDK-Version": "0.4.
|
|
92
|
+
"X-Fern-SDK-Version": "0.4.4",
|
|
93
93
|
},
|
|
94
94
|
contentType: "application/json",
|
|
95
95
|
queryParameters: _queryParams,
|
|
@@ -5,6 +5,8 @@ import * as CandidApi from "../../..";
|
|
|
5
5
|
export interface ServiceLineBaseWithOptionals extends CandidApi.ServiceLineBase {
|
|
6
6
|
chargeAmountCents?: number;
|
|
7
7
|
allowedAmountCents?: number;
|
|
8
|
+
insuranceBalanceCents?: number;
|
|
9
|
+
patientBalanceCents?: number;
|
|
8
10
|
paidAmountCents?: number;
|
|
9
11
|
patientResponsibilityCents?: number;
|
|
10
12
|
diagnosisIdZero?: CandidApi.DiagnosisId;
|
|
@@ -48,7 +48,7 @@ class V3 {
|
|
|
48
48
|
Authorization: await this._getAuthorizationHeader(),
|
|
49
49
|
"X-Fern-Language": "JavaScript",
|
|
50
50
|
"X-Fern-SDK-Name": "candidhealth",
|
|
51
|
-
"X-Fern-SDK-Version": "0.4.
|
|
51
|
+
"X-Fern-SDK-Version": "0.4.4",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
timeoutMs: 60000,
|
|
@@ -48,7 +48,7 @@ class V2 {
|
|
|
48
48
|
Authorization: await this._getAuthorizationHeader(),
|
|
49
49
|
"X-Fern-Language": "JavaScript",
|
|
50
50
|
"X-Fern-SDK-Name": "candidhealth",
|
|
51
|
-
"X-Fern-SDK-Version": "0.4.
|
|
51
|
+
"X-Fern-SDK-Version": "0.4.4",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
body: await serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, {
|
|
@@ -48,7 +48,7 @@ class BillingNotes {
|
|
|
48
48
|
Authorization: await this._getAuthorizationHeader(),
|
|
49
49
|
"X-Fern-Language": "JavaScript",
|
|
50
50
|
"X-Fern-SDK-Name": "candidhealth",
|
|
51
|
-
"X-Fern-SDK-Version": "0.4.
|
|
51
|
+
"X-Fern-SDK-Version": "0.4.4",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
body: await serializers.StandaloneBillingNoteCreate.jsonOrThrow(request, {
|