candidhealth 0.17.4 → 0.17.5
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/resources/v2/client/Client.js +1 -1
- package/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +1 -2
- package/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js +0 -1
- package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +1 -1
- package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +1 -1
- package/api/resources/claims/types/Claim.d.ts +3 -1
- package/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/api/resources/eligibility/resources/v2/client/Client.js +2 -2
- package/api/resources/encounters/resources/v4/client/Client.js +8 -5
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +19 -0
- package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -0
- package/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +4 -0
- package/api/resources/encounters/resources/v4/types/Encounter.d.ts +18 -1
- package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +0 -14
- package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +3 -1
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
- package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/api/resources/serviceFacility/client/Client.js +1 -1
- package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +5 -1
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
- package/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +1 -2
- package/dist/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js +0 -1
- package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +1 -1
- package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +1 -1
- package/dist/api/resources/claims/types/Claim.d.ts +3 -1
- package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +2 -2
- package/dist/api/resources/encounters/resources/v4/client/Client.js +8 -5
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +19 -0
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -0
- package/dist/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +4 -0
- package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +18 -1
- package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +0 -14
- package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +3 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/dist/api/resources/serviceFacility/client/Client.js +1 -1
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +5 -1
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
- package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +1 -1
- package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js +1 -1
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +2 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +2 -0
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +0 -2
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.js +0 -2
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +2 -0
- package/package.json +1 -1
- package/serialization/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +1 -1
- package/serialization/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js +1 -1
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +2 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +2 -0
- package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
- package/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +0 -2
- package/serialization/resources/encounters/resources/v4/types/EncounterBase.js +0 -2
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +2 -0
|
@@ -61,7 +61,7 @@ class V2 {
|
|
|
61
61
|
Authorization: await this._getAuthorizationHeader(),
|
|
62
62
|
"X-Fern-Language": "JavaScript",
|
|
63
63
|
"X-Fern-SDK-Name": "candidhealth",
|
|
64
|
-
"X-Fern-SDK-Version": "0.17.
|
|
64
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
65
65
|
},
|
|
66
66
|
contentType: "application/json",
|
|
67
67
|
body: await serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, {
|
|
@@ -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.17.
|
|
51
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
body: await serializers.billingNotes.v2.StandaloneBillingNoteCreate.jsonOrThrow(request, {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export declare type ClaimFrequencyTypeCode = "1" | "
|
|
4
|
+
export declare type ClaimFrequencyTypeCode = "1" | "7" | "8";
|
|
5
5
|
export declare const ClaimFrequencyTypeCode: {
|
|
6
6
|
readonly Original: "1";
|
|
7
|
-
readonly Corrected: "6";
|
|
8
7
|
readonly Replacement: "7";
|
|
9
8
|
readonly Void: "8";
|
|
10
9
|
};
|
|
@@ -15,7 +15,7 @@ import * as CandidApi from "../../../../..";
|
|
|
15
15
|
* @example
|
|
16
16
|
* {
|
|
17
17
|
* submittedAt: new Date("2023-01-04T12:00:00.000Z"),
|
|
18
|
-
* claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.
|
|
18
|
+
* claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Replacement,
|
|
19
19
|
* payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary
|
|
20
20
|
* }
|
|
21
21
|
*/
|
|
@@ -13,7 +13,7 @@ import * as CandidApi from "../../../../..";
|
|
|
13
13
|
* payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary
|
|
14
14
|
* }, {
|
|
15
15
|
* submittedAt: new Date("2023-01-04T12:00:00.000Z"),
|
|
16
|
-
* claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.
|
|
16
|
+
* claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Replacement,
|
|
17
17
|
* payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary
|
|
18
18
|
* }]
|
|
19
19
|
* }
|
|
@@ -69,7 +69,9 @@ import * as CandidApi from "../../..";
|
|
|
69
69
|
* dateOfServiceRange: {
|
|
70
70
|
* startDate: CandidApi.Date_("2023-01-01"),
|
|
71
71
|
* endDate: CandidApi.Date_("2023-01-03")
|
|
72
|
-
* }
|
|
72
|
+
* },
|
|
73
|
+
* dateOfService: "2023-01-01",
|
|
74
|
+
* endDateOfService: "2023-01-03"
|
|
73
75
|
* }],
|
|
74
76
|
* eras: [{
|
|
75
77
|
* eraId: CandidApi.EraId("4D844EF1-2253-43CD-A4F1-6DB7E65CB54B"),
|
|
@@ -49,7 +49,7 @@ class V2 {
|
|
|
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.17.
|
|
52
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
53
53
|
},
|
|
54
54
|
contentType: "application/json",
|
|
55
55
|
timeoutMs: 60000,
|
|
@@ -136,7 +136,7 @@ class V2 {
|
|
|
136
136
|
Authorization: await this._getAuthorizationHeader(),
|
|
137
137
|
"X-Fern-Language": "JavaScript",
|
|
138
138
|
"X-Fern-SDK-Name": "candidhealth",
|
|
139
|
-
"X-Fern-SDK-Version": "0.17.
|
|
139
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
140
140
|
},
|
|
141
141
|
contentType: "application/json",
|
|
142
142
|
queryParameters: _queryParams,
|
|
@@ -169,7 +169,7 @@ class V2 {
|
|
|
169
169
|
Authorization: await this._getAuthorizationHeader(),
|
|
170
170
|
"X-Fern-Language": "JavaScript",
|
|
171
171
|
"X-Fern-SDK-Name": "candidhealth",
|
|
172
|
-
"X-Fern-SDK-Version": "0.17.
|
|
172
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
173
173
|
},
|
|
174
174
|
contentType: "application/json",
|
|
175
175
|
body: await serializers.contracts.v2.ContractCreate.jsonOrThrow(request, {
|
|
@@ -201,7 +201,7 @@ class V2 {
|
|
|
201
201
|
Authorization: await this._getAuthorizationHeader(),
|
|
202
202
|
"X-Fern-Language": "JavaScript",
|
|
203
203
|
"X-Fern-SDK-Name": "candidhealth",
|
|
204
|
-
"X-Fern-SDK-Version": "0.17.
|
|
204
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
205
205
|
},
|
|
206
206
|
contentType: "application/json",
|
|
207
207
|
timeoutMs: 60000,
|
|
@@ -239,7 +239,7 @@ class V2 {
|
|
|
239
239
|
Authorization: await this._getAuthorizationHeader(),
|
|
240
240
|
"X-Fern-Language": "JavaScript",
|
|
241
241
|
"X-Fern-SDK-Name": "candidhealth",
|
|
242
|
-
"X-Fern-SDK-Version": "0.17.
|
|
242
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
243
243
|
},
|
|
244
244
|
contentType: "application/json",
|
|
245
245
|
body: await serializers.contracts.v2.ContractUpdate.jsonOrThrow(request, {
|
|
@@ -64,7 +64,7 @@ class V2 {
|
|
|
64
64
|
Authorization: await this._getAuthorizationHeader(),
|
|
65
65
|
"X-Fern-Language": "JavaScript",
|
|
66
66
|
"X-Fern-SDK-Name": "candidhealth",
|
|
67
|
-
"X-Fern-SDK-Version": "0.17.
|
|
67
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
68
68
|
},
|
|
69
69
|
contentType: "application/json",
|
|
70
70
|
body: request,
|
|
@@ -115,7 +115,7 @@ class V2 {
|
|
|
115
115
|
Authorization: await this._getAuthorizationHeader(),
|
|
116
116
|
"X-Fern-Language": "JavaScript",
|
|
117
117
|
"X-Fern-SDK-Name": "candidhealth",
|
|
118
|
-
"X-Fern-SDK-Version": "0.17.
|
|
118
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
119
119
|
},
|
|
120
120
|
contentType: "application/json",
|
|
121
121
|
timeoutMs: 60000,
|
|
@@ -42,7 +42,7 @@ class V4 {
|
|
|
42
42
|
this.options = options;
|
|
43
43
|
}
|
|
44
44
|
async getAll(request = {}) {
|
|
45
|
-
const { limit, claimStatus, sort, pageToken, dateOfServiceMin, dateOfServiceMax, primaryPayerNames, searchTerm, externalId, diagnosesUpdatedSince, tagIds, workQueueId, billableStatus, responsibleParty, ownerOfNextAction, } = request;
|
|
45
|
+
const { limit, claimStatus, sort, pageToken, dateOfServiceMin, dateOfServiceMax, primaryPayerNames, searchTerm, externalId, diagnosesUpdatedSince, tagIds, workQueueId, billableStatus, responsibleParty, ownerOfNextAction, patientExternalId, } = request;
|
|
46
46
|
const _queryParams = new url_search_params_1.default();
|
|
47
47
|
if (limit != null) {
|
|
48
48
|
_queryParams.append("limit", limit.toString());
|
|
@@ -96,6 +96,9 @@ class V4 {
|
|
|
96
96
|
if (ownerOfNextAction != null) {
|
|
97
97
|
_queryParams.append("owner_of_next_action", ownerOfNextAction);
|
|
98
98
|
}
|
|
99
|
+
if (patientExternalId != null) {
|
|
100
|
+
_queryParams.append("patient_external_id", patientExternalId);
|
|
101
|
+
}
|
|
99
102
|
const _response = await core.fetcher({
|
|
100
103
|
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, "/api/encounters/v4"),
|
|
101
104
|
method: "GET",
|
|
@@ -103,7 +106,7 @@ class V4 {
|
|
|
103
106
|
Authorization: await this._getAuthorizationHeader(),
|
|
104
107
|
"X-Fern-Language": "JavaScript",
|
|
105
108
|
"X-Fern-SDK-Name": "candidhealth",
|
|
106
|
-
"X-Fern-SDK-Version": "0.17.
|
|
109
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
107
110
|
},
|
|
108
111
|
contentType: "application/json",
|
|
109
112
|
queryParameters: _queryParams,
|
|
@@ -133,7 +136,7 @@ class V4 {
|
|
|
133
136
|
Authorization: await this._getAuthorizationHeader(),
|
|
134
137
|
"X-Fern-Language": "JavaScript",
|
|
135
138
|
"X-Fern-SDK-Name": "candidhealth",
|
|
136
|
-
"X-Fern-SDK-Version": "0.17.
|
|
139
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
137
140
|
},
|
|
138
141
|
contentType: "application/json",
|
|
139
142
|
timeoutMs: 60000,
|
|
@@ -162,7 +165,7 @@ class V4 {
|
|
|
162
165
|
Authorization: await this._getAuthorizationHeader(),
|
|
163
166
|
"X-Fern-Language": "JavaScript",
|
|
164
167
|
"X-Fern-SDK-Name": "candidhealth",
|
|
165
|
-
"X-Fern-SDK-Version": "0.17.
|
|
168
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
166
169
|
},
|
|
167
170
|
contentType: "application/json",
|
|
168
171
|
body: await serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, {
|
|
@@ -213,7 +216,7 @@ class V4 {
|
|
|
213
216
|
Authorization: await this._getAuthorizationHeader(),
|
|
214
217
|
"X-Fern-Language": "JavaScript",
|
|
215
218
|
"X-Fern-SDK-Name": "candidhealth",
|
|
216
|
-
"X-Fern-SDK-Version": "0.17.
|
|
219
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
217
220
|
},
|
|
218
221
|
contentType: "application/json",
|
|
219
222
|
body: await serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
|
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../../..";
|
|
5
5
|
export interface EncounterCreate extends CandidApi.encounters.v4.EncounterBase {
|
|
6
|
+
/**
|
|
7
|
+
* Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
|
8
|
+
* This date must be the local date in the timezone where the service occurred.
|
|
9
|
+
* Box 24a on the CMS-1500 claim form.
|
|
10
|
+
* If service occurred over a range of dates, this should be the start date.
|
|
11
|
+
* date_of_service must be defined on either the encounter or the service lines but not both.
|
|
12
|
+
* If there are greater than zero service lines, it is recommended to specify date_of_service on the service_line instead of on the encounter to prepare for future API versions.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
dateOfService?: CandidApi.Date_;
|
|
16
|
+
/**
|
|
17
|
+
* Date formatted as YYYY-MM-DD; eg: 2019-08-25.
|
|
18
|
+
* This date must be the local date in the timezone where the service occurred.
|
|
19
|
+
* If omitted, the Encounter is assumed to be for a single day.
|
|
20
|
+
* Must not be temporally before the date_of_service field.
|
|
21
|
+
* If there are greater than zero service lines, it is recommended to specify end_date_of_service on the service_line instead of on the encounter to prepare for future API versions.
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
endDateOfService?: CandidApi.Date_;
|
|
6
25
|
/**
|
|
7
26
|
* Contains the identification information of the individual receiving medical services.
|
|
8
27
|
*
|
|
@@ -17,6 +17,7 @@ export interface EncounterUpdate {
|
|
|
17
17
|
* This date must be the local date in the timezone where the service occurred.
|
|
18
18
|
* Box 24a on the CMS-1500 claim form.
|
|
19
19
|
* If service occurred over a range of dates, this should be the start date.
|
|
20
|
+
* If service lines have distinct date_of_service values, updating the encounter's date_of_service will fail. If all service line date_of_service values are the same, updating the encounter's date_of_service will update all service line date_of_service values.
|
|
20
21
|
*
|
|
21
22
|
*/
|
|
22
23
|
dateOfService?: CandidApi.Date_;
|
|
@@ -73,6 +74,7 @@ export interface EncounterUpdate {
|
|
|
73
74
|
* This date must be the local date in the timezone where the service occurred.
|
|
74
75
|
* If omitted, the Encounter is assumed to be for a single day.
|
|
75
76
|
* Must not be temporally before the date_of_service field.
|
|
77
|
+
* If service lines have distinct end_date_of_service values, updating the encounter's end_date_of_service will fail. If all service line end_date_of_service values are the same, updating the encounter's end_date_of_service will update all service line date_of_service values.
|
|
76
78
|
*
|
|
77
79
|
*/
|
|
78
80
|
endDateOfService?: CandidApi.Date_;
|
|
@@ -59,4 +59,8 @@ export interface GetAllEncountersRequest {
|
|
|
59
59
|
* The party who is responsible for taking the next action on an Encounter, as defined by ownership of open Tasks.
|
|
60
60
|
*/
|
|
61
61
|
ownerOfNextAction?: CandidApi.encounters.v4.EncounterOwnerOfNextActionType;
|
|
62
|
+
/**
|
|
63
|
+
* The patient ID from the external EMR platform for the patient
|
|
64
|
+
*/
|
|
65
|
+
patientExternalId?: string;
|
|
62
66
|
}
|
|
@@ -71,7 +71,9 @@ import * as CandidApi from "../../../../..";
|
|
|
71
71
|
* dateOfServiceRange: {
|
|
72
72
|
* startDate: CandidApi.Date_("2023-01-01"),
|
|
73
73
|
* endDate: CandidApi.Date_("2023-01-03")
|
|
74
|
-
* }
|
|
74
|
+
* },
|
|
75
|
+
* dateOfService: "2023-01-01",
|
|
76
|
+
* endDateOfService: "2023-01-03"
|
|
75
77
|
* }],
|
|
76
78
|
* eras: [{
|
|
77
79
|
* eraId: CandidApi.EraId("4D844EF1-2253-43CD-A4F1-6DB7E65CB54B"),
|
|
@@ -376,6 +378,21 @@ import * as CandidApi from "../../../../..";
|
|
|
376
378
|
* }
|
|
377
379
|
*/
|
|
378
380
|
export interface Encounter extends CandidApi.encounters.v4.EncounterBase {
|
|
381
|
+
/**
|
|
382
|
+
* Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
|
383
|
+
* This date must be the local date in the timezone where the service occurred.
|
|
384
|
+
* Box 24a on the CMS-1500 claim form.
|
|
385
|
+
* If service occurred over a range of dates, this should be the start date.
|
|
386
|
+
* date_of_service must be defined on either the encounter or the service lines but not both.
|
|
387
|
+
*/
|
|
388
|
+
dateOfService: CandidApi.Date_;
|
|
389
|
+
/**
|
|
390
|
+
* Date formatted as YYYY-MM-DD; eg: 2019-08-25.
|
|
391
|
+
* This date must be the local date in the timezone where the service occurred.
|
|
392
|
+
* If omitted, the Encounter is assumed to be for a single day.
|
|
393
|
+
* Must not be temporally before the date_of_service field.
|
|
394
|
+
*/
|
|
395
|
+
endDateOfService?: CandidApi.Date_;
|
|
379
396
|
encounterId: CandidApi.EncounterId;
|
|
380
397
|
claims: CandidApi.Claim[];
|
|
381
398
|
/** Contains the identification information of the individual receiving medical services. */
|
|
@@ -9,20 +9,6 @@ export interface EncounterBase {
|
|
|
9
9
|
* This field should not contain PHI.
|
|
10
10
|
*/
|
|
11
11
|
externalId: CandidApi.EncounterExternalId;
|
|
12
|
-
/**
|
|
13
|
-
* Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
|
14
|
-
* This date must be the local date in the timezone where the service occurred.
|
|
15
|
-
* Box 24a on the CMS-1500 claim form.
|
|
16
|
-
* If service occurred over a range of dates, this should be the start date.
|
|
17
|
-
*/
|
|
18
|
-
dateOfService: CandidApi.Date_;
|
|
19
|
-
/**
|
|
20
|
-
* Date formatted as YYYY-MM-DD; eg: 2019-08-25.
|
|
21
|
-
* This date must be the local date in the timezone where the service occurred.
|
|
22
|
-
* If omitted, the Encounter is assumed to be for a single day.
|
|
23
|
-
* Must not be temporally before the date_of_service field.
|
|
24
|
-
*/
|
|
25
|
-
endDateOfService?: CandidApi.Date_;
|
|
26
12
|
/** Box 23 on the CMS-1500 claim form. */
|
|
27
13
|
priorAuthorizationNumber?: CandidApi.encounters.v4.PriorAuthorizationNumber;
|
|
28
14
|
/**
|
|
@@ -72,7 +72,9 @@ import * as CandidApi from "../../../../..";
|
|
|
72
72
|
* dateOfServiceRange: {
|
|
73
73
|
* startDate: CandidApi.Date_("2023-01-01"),
|
|
74
74
|
* endDate: CandidApi.Date_("2023-01-03")
|
|
75
|
-
* }
|
|
75
|
+
* },
|
|
76
|
+
* dateOfService: "2023-01-01",
|
|
77
|
+
* endDateOfService: "2023-01-03"
|
|
76
78
|
* }],
|
|
77
79
|
* eras: [{
|
|
78
80
|
* eraId: CandidApi.EraId("4D844EF1-2253-43CD-A4F1-6DB7E65CB54B"),
|
|
@@ -51,7 +51,7 @@ class V1 {
|
|
|
51
51
|
Authorization: await this._getAuthorizationHeader(),
|
|
52
52
|
"X-Fern-Language": "JavaScript",
|
|
53
53
|
"X-Fern-SDK-Name": "candidhealth",
|
|
54
|
-
"X-Fern-SDK-Version": "0.17.
|
|
54
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
55
55
|
},
|
|
56
56
|
contentType: "application/json",
|
|
57
57
|
body: await serializers.expectedNetworkStatus.v1.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
|
|
@@ -53,7 +53,7 @@ class V2 {
|
|
|
53
53
|
Authorization: await this._getAuthorizationHeader(),
|
|
54
54
|
"X-Fern-Language": "JavaScript",
|
|
55
55
|
"X-Fern-SDK-Name": "candidhealth",
|
|
56
|
-
"X-Fern-SDK-Version": "0.17.
|
|
56
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
57
57
|
},
|
|
58
58
|
contentType: "application/json",
|
|
59
59
|
body: await serializers.expectedNetworkStatus.v2.ExpectedNetworkStatusRequestV2.jsonOrThrow(request, {
|
|
@@ -107,7 +107,7 @@ class V2 {
|
|
|
107
107
|
Authorization: await this._getAuthorizationHeader(),
|
|
108
108
|
"X-Fern-Language": "JavaScript",
|
|
109
109
|
"X-Fern-SDK-Name": "candidhealth",
|
|
110
|
-
"X-Fern-SDK-Version": "0.17.
|
|
110
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
111
111
|
},
|
|
112
112
|
contentType: "application/json",
|
|
113
113
|
body: await serializers.expectedNetworkStatus.v2.ComputeAllInNetworkProvidersRequest.jsonOrThrow(request, {
|
|
@@ -67,7 +67,7 @@ class V3 {
|
|
|
67
67
|
Authorization: await this._getAuthorizationHeader(),
|
|
68
68
|
"X-Fern-Language": "JavaScript",
|
|
69
69
|
"X-Fern-SDK-Name": "candidhealth",
|
|
70
|
-
"X-Fern-SDK-Version": "0.17.
|
|
70
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
71
71
|
},
|
|
72
72
|
contentType: "application/json",
|
|
73
73
|
queryParameters: _queryParams,
|
|
@@ -51,7 +51,7 @@ class V1 {
|
|
|
51
51
|
Authorization: await this._getAuthorizationHeader(),
|
|
52
52
|
"X-Fern-Language": "JavaScript",
|
|
53
53
|
"X-Fern-SDK-Name": "candidhealth",
|
|
54
|
-
"X-Fern-SDK-Version": "0.17.
|
|
54
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
55
55
|
},
|
|
56
56
|
contentType: "application/json",
|
|
57
57
|
body: await serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, {
|
|
@@ -100,7 +100,7 @@ class V1 {
|
|
|
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.17.
|
|
103
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
104
104
|
},
|
|
105
105
|
contentType: "application/json",
|
|
106
106
|
timeoutMs: 60000,
|
|
@@ -132,7 +132,7 @@ class V1 {
|
|
|
132
132
|
Authorization: await this._getAuthorizationHeader(),
|
|
133
133
|
"X-Fern-Language": "JavaScript",
|
|
134
134
|
"X-Fern-SDK-Name": "candidhealth",
|
|
135
|
-
"X-Fern-SDK-Version": "0.17.
|
|
135
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
136
136
|
},
|
|
137
137
|
contentType: "application/json",
|
|
138
138
|
body: await serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, {
|
|
@@ -51,7 +51,7 @@ class V1 {
|
|
|
51
51
|
Authorization: await this._getAuthorizationHeader(),
|
|
52
52
|
"X-Fern-Language": "JavaScript",
|
|
53
53
|
"X-Fern-SDK-Name": "candidhealth",
|
|
54
|
-
"X-Fern-SDK-Version": "0.17.
|
|
54
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
55
55
|
},
|
|
56
56
|
contentType: "application/json",
|
|
57
57
|
timeoutMs: 60000,
|
|
@@ -83,7 +83,7 @@ class V1 {
|
|
|
83
83
|
Authorization: await this._getAuthorizationHeader(),
|
|
84
84
|
"X-Fern-Language": "JavaScript",
|
|
85
85
|
"X-Fern-SDK-Name": "candidhealth",
|
|
86
|
-
"X-Fern-SDK-Version": "0.17.
|
|
86
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
87
87
|
},
|
|
88
88
|
contentType: "application/json",
|
|
89
89
|
body: await serializers.insuranceAdjudications.v1.InsuranceAdjudicationCreate.jsonOrThrow(request, {
|
|
@@ -132,7 +132,7 @@ class V1 {
|
|
|
132
132
|
Authorization: await this._getAuthorizationHeader(),
|
|
133
133
|
"X-Fern-Language": "JavaScript",
|
|
134
134
|
"X-Fern-SDK-Name": "candidhealth",
|
|
135
|
-
"X-Fern-SDK-Version": "0.17.
|
|
135
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
136
136
|
},
|
|
137
137
|
contentType: "application/json",
|
|
138
138
|
timeoutMs: 60000,
|
|
@@ -78,7 +78,7 @@ class V1 {
|
|
|
78
78
|
Authorization: await this._getAuthorizationHeader(),
|
|
79
79
|
"X-Fern-Language": "JavaScript",
|
|
80
80
|
"X-Fern-SDK-Name": "candidhealth",
|
|
81
|
-
"X-Fern-SDK-Version": "0.17.
|
|
81
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
82
82
|
},
|
|
83
83
|
contentType: "application/json",
|
|
84
84
|
queryParameters: _queryParams,
|
|
@@ -127,7 +127,7 @@ class V1 {
|
|
|
127
127
|
Authorization: await this._getAuthorizationHeader(),
|
|
128
128
|
"X-Fern-Language": "JavaScript",
|
|
129
129
|
"X-Fern-SDK-Name": "candidhealth",
|
|
130
|
-
"X-Fern-SDK-Version": "0.17.
|
|
130
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
131
131
|
},
|
|
132
132
|
contentType: "application/json",
|
|
133
133
|
timeoutMs: 60000,
|
|
@@ -176,7 +176,7 @@ class V1 {
|
|
|
176
176
|
Authorization: await this._getAuthorizationHeader(),
|
|
177
177
|
"X-Fern-Language": "JavaScript",
|
|
178
178
|
"X-Fern-SDK-Name": "candidhealth",
|
|
179
|
-
"X-Fern-SDK-Version": "0.17.
|
|
179
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
180
180
|
},
|
|
181
181
|
contentType: "application/json",
|
|
182
182
|
body: await serializers.insurancePayments.v1.InsurancePaymentCreate.jsonOrThrow(request, {
|
|
@@ -228,7 +228,7 @@ class V1 {
|
|
|
228
228
|
Authorization: await this._getAuthorizationHeader(),
|
|
229
229
|
"X-Fern-Language": "JavaScript",
|
|
230
230
|
"X-Fern-SDK-Name": "candidhealth",
|
|
231
|
-
"X-Fern-SDK-Version": "0.17.
|
|
231
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
232
232
|
},
|
|
233
233
|
contentType: "application/json",
|
|
234
234
|
body: await serializers.insurancePayments.v1.InsurancePaymentUpdate.jsonOrThrow(request, {
|
|
@@ -281,7 +281,7 @@ class V1 {
|
|
|
281
281
|
Authorization: await this._getAuthorizationHeader(),
|
|
282
282
|
"X-Fern-Language": "JavaScript",
|
|
283
283
|
"X-Fern-SDK-Name": "candidhealth",
|
|
284
|
-
"X-Fern-SDK-Version": "0.17.
|
|
284
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
285
285
|
},
|
|
286
286
|
contentType: "application/json",
|
|
287
287
|
timeoutMs: 60000,
|
|
@@ -79,7 +79,7 @@ class V1 {
|
|
|
79
79
|
Authorization: await this._getAuthorizationHeader(),
|
|
80
80
|
"X-Fern-Language": "JavaScript",
|
|
81
81
|
"X-Fern-SDK-Name": "candidhealth",
|
|
82
|
-
"X-Fern-SDK-Version": "0.17.
|
|
82
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
83
83
|
},
|
|
84
84
|
contentType: "application/json",
|
|
85
85
|
queryParameters: _queryParams,
|
|
@@ -128,7 +128,7 @@ class V1 {
|
|
|
128
128
|
Authorization: await this._getAuthorizationHeader(),
|
|
129
129
|
"X-Fern-Language": "JavaScript",
|
|
130
130
|
"X-Fern-SDK-Name": "candidhealth",
|
|
131
|
-
"X-Fern-SDK-Version": "0.17.
|
|
131
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
132
132
|
},
|
|
133
133
|
contentType: "application/json",
|
|
134
134
|
timeoutMs: 60000,
|
|
@@ -177,7 +177,7 @@ class V1 {
|
|
|
177
177
|
Authorization: await this._getAuthorizationHeader(),
|
|
178
178
|
"X-Fern-Language": "JavaScript",
|
|
179
179
|
"X-Fern-SDK-Name": "candidhealth",
|
|
180
|
-
"X-Fern-SDK-Version": "0.17.
|
|
180
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
181
181
|
},
|
|
182
182
|
contentType: "application/json",
|
|
183
183
|
body: await serializers.insuranceRefunds.v1.InsuranceRefundCreate.jsonOrThrow(request, {
|
|
@@ -229,7 +229,7 @@ class V1 {
|
|
|
229
229
|
Authorization: await this._getAuthorizationHeader(),
|
|
230
230
|
"X-Fern-Language": "JavaScript",
|
|
231
231
|
"X-Fern-SDK-Name": "candidhealth",
|
|
232
|
-
"X-Fern-SDK-Version": "0.17.
|
|
232
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
233
233
|
},
|
|
234
234
|
contentType: "application/json",
|
|
235
235
|
body: await serializers.insuranceRefunds.v1.InsuranceRefundUpdate.jsonOrThrow(request, {
|
|
@@ -282,7 +282,7 @@ class V1 {
|
|
|
282
282
|
Authorization: await this._getAuthorizationHeader(),
|
|
283
283
|
"X-Fern-Language": "JavaScript",
|
|
284
284
|
"X-Fern-SDK-Name": "candidhealth",
|
|
285
|
-
"X-Fern-SDK-Version": "0.17.
|
|
285
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
286
286
|
},
|
|
287
287
|
contentType: "application/json",
|
|
288
288
|
timeoutMs: 60000,
|
|
@@ -49,7 +49,7 @@ class V3 {
|
|
|
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.17.
|
|
52
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
53
53
|
},
|
|
54
54
|
contentType: "application/json",
|
|
55
55
|
timeoutMs: 60000,
|
|
@@ -115,7 +115,7 @@ class V3 {
|
|
|
115
115
|
Authorization: await this._getAuthorizationHeader(),
|
|
116
116
|
"X-Fern-Language": "JavaScript",
|
|
117
117
|
"X-Fern-SDK-Name": "candidhealth",
|
|
118
|
-
"X-Fern-SDK-Version": "0.17.
|
|
118
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
119
119
|
},
|
|
120
120
|
contentType: "application/json",
|
|
121
121
|
queryParameters: _queryParams,
|
|
@@ -145,7 +145,7 @@ class V3 {
|
|
|
145
145
|
Authorization: await this._getAuthorizationHeader(),
|
|
146
146
|
"X-Fern-Language": "JavaScript",
|
|
147
147
|
"X-Fern-SDK-Name": "candidhealth",
|
|
148
|
-
"X-Fern-SDK-Version": "0.17.
|
|
148
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
149
149
|
},
|
|
150
150
|
contentType: "application/json",
|
|
151
151
|
body: await serializers.organizationProviders.v3.OrganizationProviderCreateV2.jsonOrThrow(request, {
|
|
@@ -192,7 +192,7 @@ class V3 {
|
|
|
192
192
|
Authorization: await this._getAuthorizationHeader(),
|
|
193
193
|
"X-Fern-Language": "JavaScript",
|
|
194
194
|
"X-Fern-SDK-Name": "candidhealth",
|
|
195
|
-
"X-Fern-SDK-Version": "0.17.
|
|
195
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
196
196
|
},
|
|
197
197
|
contentType: "application/json",
|
|
198
198
|
body: await serializers.organizationProviders.v3.OrganizationProviderUpdateV2.jsonOrThrow(request, {
|
|
@@ -49,7 +49,7 @@ class V2 {
|
|
|
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.17.
|
|
52
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
53
53
|
},
|
|
54
54
|
contentType: "application/json",
|
|
55
55
|
timeoutMs: 60000,
|
|
@@ -103,7 +103,7 @@ class V2 {
|
|
|
103
103
|
Authorization: await this._getAuthorizationHeader(),
|
|
104
104
|
"X-Fern-Language": "JavaScript",
|
|
105
105
|
"X-Fern-SDK-Name": "candidhealth",
|
|
106
|
-
"X-Fern-SDK-Version": "0.17.
|
|
106
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
107
107
|
},
|
|
108
108
|
contentType: "application/json",
|
|
109
109
|
queryParameters: _queryParams,
|
|
@@ -133,7 +133,7 @@ class V2 {
|
|
|
133
133
|
Authorization: await this._getAuthorizationHeader(),
|
|
134
134
|
"X-Fern-Language": "JavaScript",
|
|
135
135
|
"X-Fern-SDK-Name": "candidhealth",
|
|
136
|
-
"X-Fern-SDK-Version": "0.17.
|
|
136
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
137
137
|
},
|
|
138
138
|
contentType: "application/json",
|
|
139
139
|
body: await serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -177,7 +177,7 @@ class V2 {
|
|
|
177
177
|
Authorization: await this._getAuthorizationHeader(),
|
|
178
178
|
"X-Fern-Language": "JavaScript",
|
|
179
179
|
"X-Fern-SDK-Name": "candidhealth",
|
|
180
|
-
"X-Fern-SDK-Version": "0.17.
|
|
180
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
181
181
|
},
|
|
182
182
|
contentType: "application/json",
|
|
183
183
|
body: await serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -222,7 +222,7 @@ class V2 {
|
|
|
222
222
|
Authorization: await this._getAuthorizationHeader(),
|
|
223
223
|
"X-Fern-Language": "JavaScript",
|
|
224
224
|
"X-Fern-SDK-Name": "candidhealth",
|
|
225
|
-
"X-Fern-SDK-Version": "0.17.
|
|
225
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
226
226
|
},
|
|
227
227
|
contentType: "application/json",
|
|
228
228
|
timeoutMs: 60000,
|
|
@@ -95,7 +95,7 @@ class V4 {
|
|
|
95
95
|
Authorization: await this._getAuthorizationHeader(),
|
|
96
96
|
"X-Fern-Language": "JavaScript",
|
|
97
97
|
"X-Fern-SDK-Name": "candidhealth",
|
|
98
|
-
"X-Fern-SDK-Version": "0.17.
|
|
98
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
99
99
|
},
|
|
100
100
|
contentType: "application/json",
|
|
101
101
|
queryParameters: _queryParams,
|
|
@@ -143,7 +143,7 @@ class V4 {
|
|
|
143
143
|
Authorization: await this._getAuthorizationHeader(),
|
|
144
144
|
"X-Fern-Language": "JavaScript",
|
|
145
145
|
"X-Fern-SDK-Name": "candidhealth",
|
|
146
|
-
"X-Fern-SDK-Version": "0.17.
|
|
146
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
147
147
|
},
|
|
148
148
|
contentType: "application/json",
|
|
149
149
|
timeoutMs: 60000,
|
|
@@ -192,7 +192,7 @@ class V4 {
|
|
|
192
192
|
Authorization: await this._getAuthorizationHeader(),
|
|
193
193
|
"X-Fern-Language": "JavaScript",
|
|
194
194
|
"X-Fern-SDK-Name": "candidhealth",
|
|
195
|
-
"X-Fern-SDK-Version": "0.17.
|
|
195
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
196
196
|
},
|
|
197
197
|
contentType: "application/json",
|
|
198
198
|
body: await serializers.patientPayments.v4.PatientPaymentCreate.jsonOrThrow(request, {
|
|
@@ -243,7 +243,7 @@ class V4 {
|
|
|
243
243
|
Authorization: await this._getAuthorizationHeader(),
|
|
244
244
|
"X-Fern-Language": "JavaScript",
|
|
245
245
|
"X-Fern-SDK-Name": "candidhealth",
|
|
246
|
-
"X-Fern-SDK-Version": "0.17.
|
|
246
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
247
247
|
},
|
|
248
248
|
contentType: "application/json",
|
|
249
249
|
body: await serializers.patientPayments.v4.PatientPaymentUpdate.jsonOrThrow(request, {
|
|
@@ -294,7 +294,7 @@ class V4 {
|
|
|
294
294
|
Authorization: await this._getAuthorizationHeader(),
|
|
295
295
|
"X-Fern-Language": "JavaScript",
|
|
296
296
|
"X-Fern-SDK-Name": "candidhealth",
|
|
297
|
-
"X-Fern-SDK-Version": "0.17.
|
|
297
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
298
298
|
},
|
|
299
299
|
contentType: "application/json",
|
|
300
300
|
timeoutMs: 60000,
|