candidhealth 0.11.0 → 0.12.0
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/eligibility/resources/v2/client/Client.js +1 -1
- package/api/resources/encounters/resources/v4/client/Client.js +5 -4
- package/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
- package/api/resources/encounters/resources/v4/client/create.js +11 -0
- package/api/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.d.ts +6 -0
- 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/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/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +3 -1
- package/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +2 -1
- package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +1 -1
- package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -1
- package/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.d.ts +2 -2
- package/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +2 -2
- package/api/resources/insuranceAdjudications/resources/v1/types/index.d.ts +0 -2
- package/api/resources/insuranceAdjudications/resources/v1/types/index.js +0 -2
- package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +6 -0
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +66 -4
- package/api/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +22 -0
- package/api/resources/insuranceRefunds/resources/v1/client/getMulti.js +47 -0
- package/api/resources/insuranceRefunds/resources/v1/client/index.d.ts +2 -0
- package/api/resources/insuranceRefunds/resources/v1/client/index.js +6 -1
- package/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.d.ts +23 -0
- package/api/resources/insuranceRefunds/resources/v1/client/requests/index.d.ts +1 -0
- package/api/resources/insuranceRefunds/resources/v1/client/requests/index.js +2 -0
- package/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.d.ts +10 -0
- package/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.js +12 -0
- package/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.d.ts +7 -0
- package/api/resources/insuranceRefunds/resources/v1/types/index.d.ts +2 -0
- package/api/resources/insuranceRefunds/resources/v1/types/index.js +2 -0
- 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 +8 -5
- package/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +1 -0
- package/api/resources/patientRefunds/resources/v1/client/Client.js +8 -5
- package/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +1 -0
- package/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/api/resources/x12/resources/v1/types/RemittanceAdviceRemarkCode.js +5 -0
- package/api/resources/x12/resources/v1/types/index.d.ts +2 -0
- package/api/resources/x12/resources/v1/types/index.js +2 -0
- 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/eligibility/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -4
- package/dist/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
- package/dist/api/resources/encounters/resources/v4/client/create.js +11 -0
- package/dist/api/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.d.ts +6 -0
- package/dist/api/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.js +5 -0
- 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/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/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +3 -1
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +2 -1
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +1 -1
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -1
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.d.ts +2 -2
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +2 -2
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/index.d.ts +0 -2
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/index.js +0 -2
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +6 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +66 -4
- package/dist/api/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +22 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/getMulti.js +47 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/index.d.ts +2 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/index.js +6 -1
- package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.d.ts +23 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.js +5 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/index.js +2 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.d.ts +10 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.js +12 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.d.ts +7 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.js +5 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/types/index.d.ts +2 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/types/index.js +2 -0
- 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 +8 -5
- package/dist/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +1 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +8 -5
- package/dist/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +1 -0
- package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
- 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/api/resources/x12/resources/v1/types/ClaimAdjustmentReasonCode.js +5 -0
- package/dist/api/resources/x12/resources/v1/types/RemittanceAdviceRemarkCode.js +5 -0
- package/dist/api/resources/x12/resources/v1/types/index.d.ts +2 -0
- package/dist/api/resources/x12/resources/v1/types/index.js +2 -0
- package/dist/serialization/resources/encounters/resources/v4/client/create.d.ts +5 -1
- package/dist/serialization/resources/encounters/resources/v4/client/create.js +5 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.d.ts +12 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.js +33 -0
- 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/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +3 -1
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.js +3 -1
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +2 -1
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.js +2 -1
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +1 -1
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.js +1 -1
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -1
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +1 -1
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.d.ts +2 -2
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.js +2 -2
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +2 -2
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.js +2 -2
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/index.d.ts +0 -2
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/index.js +0 -2
- package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.d.ts +10 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.js +31 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.d.ts +12 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.js +35 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/types/index.d.ts +2 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/types/index.js +2 -0
- package/{serialization/resources/insuranceAdjudications → dist/serialization/resources/x12}/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +1 -1
- package/{serialization/resources/insuranceAdjudications → dist/serialization/resources/x12}/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +1 -1
- package/dist/serialization/resources/x12/resources/v1/types/index.d.ts +2 -0
- package/dist/serialization/resources/x12/resources/v1/types/index.js +2 -0
- package/package.json +1 -1
- package/serialization/resources/encounters/resources/v4/client/create.d.ts +5 -1
- package/serialization/resources/encounters/resources/v4/client/create.js +5 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.d.ts +12 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.js +33 -0
- 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/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +3 -1
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.js +3 -1
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +2 -1
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.js +2 -1
- package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +1 -1
- package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.js +1 -1
- package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -1
- package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +1 -1
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.d.ts +2 -2
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.js +2 -2
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +2 -2
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.js +2 -2
- package/serialization/resources/insuranceAdjudications/resources/v1/types/index.d.ts +0 -2
- package/serialization/resources/insuranceAdjudications/resources/v1/types/index.js +0 -2
- package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.d.ts +10 -0
- package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.js +31 -0
- package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.d.ts +12 -0
- package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.js +35 -0
- package/serialization/resources/insuranceRefunds/resources/v1/types/index.d.ts +2 -0
- package/serialization/resources/insuranceRefunds/resources/v1/types/index.js +2 -0
- package/{dist/serialization/resources/insuranceAdjudications → serialization/resources/x12}/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +1 -1
- package/{dist/serialization/resources/insuranceAdjudications → serialization/resources/x12}/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +1 -1
- package/serialization/resources/x12/resources/v1/types/index.d.ts +2 -0
- package/serialization/resources/x12/resources/v1/types/index.js +2 -0
- /package/api/resources/{insuranceAdjudications/resources/v1/types/ClaimAdjustmentReasonCode.js → encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.js} +0 -0
- /package/api/resources/{insuranceAdjudications/resources/v1/types/RemittanceAdviceRemarkCode.js → insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.js} +0 -0
- /package/{dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjustmentReasonCode.js → api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.js} +0 -0
- /package/api/resources/{insuranceAdjudications → x12}/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +0 -0
- /package/{dist/api/resources/insuranceAdjudications/resources/v1/types/RemittanceAdviceRemarkCode.js → api/resources/x12/resources/v1/types/ClaimAdjustmentReasonCode.js} +0 -0
- /package/api/resources/{insuranceAdjudications → x12}/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +0 -0
- /package/dist/api/resources/{insuranceAdjudications → x12}/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +0 -0
- /package/dist/api/resources/{insuranceAdjudications → x12}/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +0 -0
- /package/dist/serialization/resources/{insuranceAdjudications → x12}/resources/v1/types/ClaimAdjustmentReasonCode.js +0 -0
- /package/dist/serialization/resources/{insuranceAdjudications → x12}/resources/v1/types/RemittanceAdviceRemarkCode.js +0 -0
- /package/serialization/resources/{insuranceAdjudications → x12}/resources/v1/types/ClaimAdjustmentReasonCode.js +0 -0
- /package/serialization/resources/{insuranceAdjudications → x12}/resources/v1/types/RemittanceAdviceRemarkCode.js +0 -0
|
@@ -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.
|
|
52
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
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.
|
|
118
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
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.
|
|
148
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
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.
|
|
195
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
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.
|
|
52
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
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.
|
|
106
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
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.
|
|
136
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
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.
|
|
180
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
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.
|
|
225
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
226
226
|
},
|
|
227
227
|
contentType: "application/json",
|
|
228
228
|
timeoutMs: 60000,
|
|
@@ -47,7 +47,7 @@ class V4 {
|
|
|
47
47
|
*
|
|
48
48
|
*/
|
|
49
49
|
async getMulti(request = {}) {
|
|
50
|
-
const { limit, patientExternalId, claimId, serviceLineId, billingProviderId, sources, sort, sortDirection, pageToken, } = request;
|
|
50
|
+
const { limit, patientExternalId, claimId, serviceLineId, billingProviderId, invoiceId, sources, sort, sortDirection, pageToken, } = request;
|
|
51
51
|
const _queryParams = new url_search_params_1.default();
|
|
52
52
|
if (limit != null) {
|
|
53
53
|
_queryParams.append("limit", limit.toString());
|
|
@@ -64,6 +64,9 @@ class V4 {
|
|
|
64
64
|
if (billingProviderId != null) {
|
|
65
65
|
_queryParams.append("billing_provider_id", billingProviderId);
|
|
66
66
|
}
|
|
67
|
+
if (invoiceId != null) {
|
|
68
|
+
_queryParams.append("invoice_id", invoiceId);
|
|
69
|
+
}
|
|
67
70
|
if (sources != null) {
|
|
68
71
|
if (Array.isArray(sources)) {
|
|
69
72
|
for (const _item of sources) {
|
|
@@ -90,7 +93,7 @@ class V4 {
|
|
|
90
93
|
Authorization: await this._getAuthorizationHeader(),
|
|
91
94
|
"X-Fern-Language": "JavaScript",
|
|
92
95
|
"X-Fern-SDK-Name": "candidhealth",
|
|
93
|
-
"X-Fern-SDK-Version": "0.
|
|
96
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
94
97
|
},
|
|
95
98
|
contentType: "application/json",
|
|
96
99
|
queryParameters: _queryParams,
|
|
@@ -124,7 +127,7 @@ class V4 {
|
|
|
124
127
|
Authorization: await this._getAuthorizationHeader(),
|
|
125
128
|
"X-Fern-Language": "JavaScript",
|
|
126
129
|
"X-Fern-SDK-Name": "candidhealth",
|
|
127
|
-
"X-Fern-SDK-Version": "0.
|
|
130
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
128
131
|
},
|
|
129
132
|
contentType: "application/json",
|
|
130
133
|
timeoutMs: 60000,
|
|
@@ -159,7 +162,7 @@ class V4 {
|
|
|
159
162
|
Authorization: await this._getAuthorizationHeader(),
|
|
160
163
|
"X-Fern-Language": "JavaScript",
|
|
161
164
|
"X-Fern-SDK-Name": "candidhealth",
|
|
162
|
-
"X-Fern-SDK-Version": "0.
|
|
165
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
163
166
|
},
|
|
164
167
|
contentType: "application/json",
|
|
165
168
|
body: await serializers.patientPayments.v4.PatientPaymentCreate.jsonOrThrow(request, {
|
|
@@ -195,7 +198,7 @@ class V4 {
|
|
|
195
198
|
Authorization: await this._getAuthorizationHeader(),
|
|
196
199
|
"X-Fern-Language": "JavaScript",
|
|
197
200
|
"X-Fern-SDK-Name": "candidhealth",
|
|
198
|
-
"X-Fern-SDK-Version": "0.
|
|
201
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
199
202
|
},
|
|
200
203
|
contentType: "application/json",
|
|
201
204
|
timeoutMs: 60000,
|
|
@@ -11,6 +11,7 @@ export interface GetMultiPatientPaymentsRequest {
|
|
|
11
11
|
claimId?: CandidApi.ClaimId;
|
|
12
12
|
serviceLineId?: CandidApi.ServiceLineId;
|
|
13
13
|
billingProviderId?: CandidApi.ProviderId;
|
|
14
|
+
invoiceId?: CandidApi.InvoiceId;
|
|
14
15
|
sources?: CandidApi.PatientTransactionSource | CandidApi.PatientTransactionSource[];
|
|
15
16
|
/**
|
|
16
17
|
* Defaults to payment_timestamp
|
|
@@ -47,7 +47,7 @@ class V1 {
|
|
|
47
47
|
*
|
|
48
48
|
*/
|
|
49
49
|
async getMulti(request = {}) {
|
|
50
|
-
const { limit, patientExternalId, claimId, serviceLineId, billingProviderId, sources, sort, sortDirection, pageToken, } = request;
|
|
50
|
+
const { limit, patientExternalId, claimId, serviceLineId, billingProviderId, invoiceId, sources, sort, sortDirection, pageToken, } = request;
|
|
51
51
|
const _queryParams = new url_search_params_1.default();
|
|
52
52
|
if (limit != null) {
|
|
53
53
|
_queryParams.append("limit", limit.toString());
|
|
@@ -64,6 +64,9 @@ class V1 {
|
|
|
64
64
|
if (billingProviderId != null) {
|
|
65
65
|
_queryParams.append("billing_provider_id", billingProviderId);
|
|
66
66
|
}
|
|
67
|
+
if (invoiceId != null) {
|
|
68
|
+
_queryParams.append("invoice_id", invoiceId);
|
|
69
|
+
}
|
|
67
70
|
if (sources != null) {
|
|
68
71
|
if (Array.isArray(sources)) {
|
|
69
72
|
for (const _item of sources) {
|
|
@@ -90,7 +93,7 @@ class V1 {
|
|
|
90
93
|
Authorization: await this._getAuthorizationHeader(),
|
|
91
94
|
"X-Fern-Language": "JavaScript",
|
|
92
95
|
"X-Fern-SDK-Name": "candidhealth",
|
|
93
|
-
"X-Fern-SDK-Version": "0.
|
|
96
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
94
97
|
},
|
|
95
98
|
contentType: "application/json",
|
|
96
99
|
queryParameters: _queryParams,
|
|
@@ -124,7 +127,7 @@ class V1 {
|
|
|
124
127
|
Authorization: await this._getAuthorizationHeader(),
|
|
125
128
|
"X-Fern-Language": "JavaScript",
|
|
126
129
|
"X-Fern-SDK-Name": "candidhealth",
|
|
127
|
-
"X-Fern-SDK-Version": "0.
|
|
130
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
128
131
|
},
|
|
129
132
|
contentType: "application/json",
|
|
130
133
|
timeoutMs: 60000,
|
|
@@ -159,7 +162,7 @@ class V1 {
|
|
|
159
162
|
Authorization: await this._getAuthorizationHeader(),
|
|
160
163
|
"X-Fern-Language": "JavaScript",
|
|
161
164
|
"X-Fern-SDK-Name": "candidhealth",
|
|
162
|
-
"X-Fern-SDK-Version": "0.
|
|
165
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
163
166
|
},
|
|
164
167
|
contentType: "application/json",
|
|
165
168
|
body: await serializers.patientRefunds.v1.PatientRefundCreate.jsonOrThrow(request, {
|
|
@@ -195,7 +198,7 @@ class V1 {
|
|
|
195
198
|
Authorization: await this._getAuthorizationHeader(),
|
|
196
199
|
"X-Fern-Language": "JavaScript",
|
|
197
200
|
"X-Fern-SDK-Name": "candidhealth",
|
|
198
|
-
"X-Fern-SDK-Version": "0.
|
|
201
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
199
202
|
},
|
|
200
203
|
contentType: "application/json",
|
|
201
204
|
timeoutMs: 60000,
|
package/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export interface GetMultiPatientRefundsRequest {
|
|
|
11
11
|
claimId?: CandidApi.ClaimId;
|
|
12
12
|
serviceLineId?: CandidApi.ServiceLineId;
|
|
13
13
|
billingProviderId?: CandidApi.ProviderId;
|
|
14
|
+
invoiceId?: CandidApi.InvoiceId;
|
|
14
15
|
sources?: CandidApi.PatientTransactionSource | CandidApi.PatientTransactionSource[];
|
|
15
16
|
/**
|
|
16
17
|
* Defaults to refund_timestamp
|
|
@@ -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.
|
|
52
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
53
53
|
},
|
|
54
54
|
contentType: "application/json",
|
|
55
55
|
timeoutMs: 60000,
|
|
@@ -89,7 +89,7 @@ class V3 {
|
|
|
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.
|
|
92
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
93
93
|
},
|
|
94
94
|
contentType: "application/json",
|
|
95
95
|
queryParameters: _queryParams,
|
|
@@ -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.
|
|
52
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
53
53
|
},
|
|
54
54
|
contentType: "application/json",
|
|
55
55
|
timeoutMs: 60000,
|
|
@@ -119,7 +119,7 @@ class V3 {
|
|
|
119
119
|
Authorization: await this._getAuthorizationHeader(),
|
|
120
120
|
"X-Fern-Language": "JavaScript",
|
|
121
121
|
"X-Fern-SDK-Name": "candidhealth",
|
|
122
|
-
"X-Fern-SDK-Version": "0.
|
|
122
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
123
123
|
},
|
|
124
124
|
contentType: "application/json",
|
|
125
125
|
queryParameters: _queryParams,
|
|
@@ -163,7 +163,7 @@ class V3 {
|
|
|
163
163
|
Authorization: await this._getAuthorizationHeader(),
|
|
164
164
|
"X-Fern-Language": "JavaScript",
|
|
165
165
|
"X-Fern-SDK-Name": "candidhealth",
|
|
166
|
-
"X-Fern-SDK-Version": "0.
|
|
166
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
167
167
|
},
|
|
168
168
|
contentType: "application/json",
|
|
169
169
|
timeoutMs: 60000,
|
|
@@ -207,7 +207,7 @@ class V3 {
|
|
|
207
207
|
Authorization: await this._getAuthorizationHeader(),
|
|
208
208
|
"X-Fern-Language": "JavaScript",
|
|
209
209
|
"X-Fern-SDK-Name": "candidhealth",
|
|
210
|
-
"X-Fern-SDK-Version": "0.
|
|
210
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
211
211
|
},
|
|
212
212
|
contentType: "application/json",
|
|
213
213
|
body: await serializers.tasks.v3.TaskCreateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -237,7 +237,7 @@ class V3 {
|
|
|
237
237
|
Authorization: await this._getAuthorizationHeader(),
|
|
238
238
|
"X-Fern-Language": "JavaScript",
|
|
239
239
|
"X-Fern-SDK-Name": "candidhealth",
|
|
240
|
-
"X-Fern-SDK-Version": "0.
|
|
240
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
241
241
|
},
|
|
242
242
|
contentType: "application/json",
|
|
243
243
|
body: await serializers.tasks.v3.TaskUpdateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -74,7 +74,7 @@ class V1 {
|
|
|
74
74
|
Authorization: await this._getAuthorizationHeader(),
|
|
75
75
|
"X-Fern-Language": "JavaScript",
|
|
76
76
|
"X-Fern-SDK-Name": "candidhealth",
|
|
77
|
-
"X-Fern-SDK-Version": "0.
|
|
77
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
78
78
|
},
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
queryParameters: _queryParams,
|
|
@@ -108,7 +108,7 @@ class V1 {
|
|
|
108
108
|
Authorization: await this._getAuthorizationHeader(),
|
|
109
109
|
"X-Fern-Language": "JavaScript",
|
|
110
110
|
"X-Fern-SDK-Name": "candidhealth",
|
|
111
|
-
"X-Fern-SDK-Version": "0.
|
|
111
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
112
112
|
},
|
|
113
113
|
contentType: "application/json",
|
|
114
114
|
timeoutMs: 60000,
|
|
@@ -143,7 +143,7 @@ class V1 {
|
|
|
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.
|
|
146
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
147
147
|
},
|
|
148
148
|
contentType: "application/json",
|
|
149
149
|
body: await serializers.writeOffs.v1.CreateWriteOffsRequest.jsonOrThrow(request, {
|
|
@@ -179,7 +179,7 @@ class V1 {
|
|
|
179
179
|
Authorization: await this._getAuthorizationHeader(),
|
|
180
180
|
"X-Fern-Language": "JavaScript",
|
|
181
181
|
"X-Fern-SDK-Name": "candidhealth",
|
|
182
|
-
"X-Fern-SDK-Version": "0.
|
|
182
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
183
183
|
},
|
|
184
184
|
contentType: "application/json",
|
|
185
185
|
timeoutMs: 60000,
|
|
@@ -14,5 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ClaimAdjustmentReasonCode"), exports);
|
|
18
|
+
__exportStar(require("./RemittanceAdviceRemarkCode"), exports);
|
|
17
19
|
__exportStar(require("./Carc"), exports);
|
|
18
20
|
__exportStar(require("./Rarc"), exports);
|
|
@@ -62,7 +62,7 @@ class V2 {
|
|
|
62
62
|
Authorization: await this._getAuthorizationHeader(),
|
|
63
63
|
"X-Fern-Language": "JavaScript",
|
|
64
64
|
"X-Fern-SDK-Name": "candidhealth",
|
|
65
|
-
"X-Fern-SDK-Version": "0.
|
|
65
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
66
66
|
},
|
|
67
67
|
contentType: "application/json",
|
|
68
68
|
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.
|
|
51
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
body: await serializers.billingNotes.v2.StandaloneBillingNoteCreate.jsonOrThrow(request, {
|
|
@@ -65,7 +65,7 @@ class V2 {
|
|
|
65
65
|
Authorization: await this._getAuthorizationHeader(),
|
|
66
66
|
"X-Fern-Language": "JavaScript",
|
|
67
67
|
"X-Fern-SDK-Name": "candidhealth",
|
|
68
|
-
"X-Fern-SDK-Version": "0.
|
|
68
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
69
69
|
},
|
|
70
70
|
contentType: "application/json",
|
|
71
71
|
body: request,
|
|
@@ -103,7 +103,7 @@ class V4 {
|
|
|
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.
|
|
106
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
107
107
|
},
|
|
108
108
|
contentType: "application/json",
|
|
109
109
|
queryParameters: _queryParams,
|
|
@@ -133,7 +133,7 @@ class V4 {
|
|
|
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.
|
|
136
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
137
137
|
},
|
|
138
138
|
contentType: "application/json",
|
|
139
139
|
timeoutMs: 60000,
|
|
@@ -162,7 +162,7 @@ class V4 {
|
|
|
162
162
|
Authorization: await this._getAuthorizationHeader(),
|
|
163
163
|
"X-Fern-Language": "JavaScript",
|
|
164
164
|
"X-Fern-SDK-Name": "candidhealth",
|
|
165
|
-
"X-Fern-SDK-Version": "0.
|
|
165
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
166
166
|
},
|
|
167
167
|
contentType: "application/json",
|
|
168
168
|
body: await serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, {
|
|
@@ -184,6 +184,7 @@ class V4 {
|
|
|
184
184
|
if (_response.error.reason === "status-code") {
|
|
185
185
|
switch (_response.error.body?.errorName) {
|
|
186
186
|
case "EncounterExternalIdUniquenessError":
|
|
187
|
+
case "EncounterPatientControlNumberUniquenessError":
|
|
187
188
|
case "EntityNotFoundError":
|
|
188
189
|
case "EncounterGuarantorMissingContactInfoError":
|
|
189
190
|
case "HttpRequestValidationsError":
|
|
@@ -212,7 +213,7 @@ class V4 {
|
|
|
212
213
|
Authorization: await this._getAuthorizationHeader(),
|
|
213
214
|
"X-Fern-Language": "JavaScript",
|
|
214
215
|
"X-Fern-SDK-Name": "candidhealth",
|
|
215
|
-
"X-Fern-SDK-Version": "0.
|
|
216
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
216
217
|
},
|
|
217
218
|
contentType: "application/json",
|
|
218
219
|
body: await serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
|
|
@@ -3,12 +3,16 @@
|
|
|
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.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;
|
|
6
|
+
export declare type Error = CandidApi.encounters.v4.create.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.create.Error.EncounterPatientControlNumberUniquenessError | 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 EncounterPatientControlNumberUniquenessError extends _Utils {
|
|
13
|
+
errorName: "EncounterPatientControlNumberUniquenessError";
|
|
14
|
+
content: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType;
|
|
15
|
+
}
|
|
12
16
|
interface EntityNotFoundError extends _Utils {
|
|
13
17
|
errorName: "EntityNotFoundError";
|
|
14
18
|
content: CandidApi.EntityNotFoundErrorMessage;
|
|
@@ -34,6 +38,7 @@ export declare namespace Error {
|
|
|
34
38
|
}
|
|
35
39
|
interface _Visitor<_Result> {
|
|
36
40
|
encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => _Result;
|
|
41
|
+
encounterPatientControlNumberUniquenessError: (value: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType) => _Result;
|
|
37
42
|
entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
|
|
38
43
|
encounterGuarantorMissingContactInfoError: (value: CandidApi.encounters.v4.EncounterGuarantorMissingContactInfoErrorType) => _Result;
|
|
39
44
|
httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
|
|
@@ -43,6 +48,7 @@ export declare namespace Error {
|
|
|
43
48
|
}
|
|
44
49
|
export declare const Error: {
|
|
45
50
|
readonly encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => CandidApi.encounters.v4.create.Error.EncounterExternalIdUniquenessError;
|
|
51
|
+
readonly encounterPatientControlNumberUniquenessError: (value: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType) => CandidApi.encounters.v4.create.Error.EncounterPatientControlNumberUniquenessError;
|
|
46
52
|
readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.encounters.v4.create.Error.EntityNotFoundError;
|
|
47
53
|
readonly encounterGuarantorMissingContactInfoError: (value: CandidApi.encounters.v4.EncounterGuarantorMissingContactInfoErrorType) => CandidApi.encounters.v4.create.Error.EncounterGuarantorMissingContactInfoError;
|
|
48
54
|
readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.encounters.v4.create.Error.HttpRequestValidationsError;
|
|
@@ -38,6 +38,15 @@ exports.Error = {
|
|
|
38
38
|
},
|
|
39
39
|
};
|
|
40
40
|
},
|
|
41
|
+
encounterPatientControlNumberUniquenessError: (value) => {
|
|
42
|
+
return {
|
|
43
|
+
content: value,
|
|
44
|
+
errorName: "EncounterPatientControlNumberUniquenessError",
|
|
45
|
+
_visit: function (visitor) {
|
|
46
|
+
return CandidApi.encounters.v4.create.Error._visit(this, visitor);
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
},
|
|
41
50
|
entityNotFoundError: (value) => {
|
|
42
51
|
return {
|
|
43
52
|
content: value,
|
|
@@ -87,6 +96,8 @@ exports.Error = {
|
|
|
87
96
|
switch (value.errorName) {
|
|
88
97
|
case "EncounterExternalIdUniquenessError":
|
|
89
98
|
return visitor.encounterExternalIdUniquenessError(value.content);
|
|
99
|
+
case "EncounterPatientControlNumberUniquenessError":
|
|
100
|
+
return visitor.encounterPatientControlNumberUniquenessError(value.content);
|
|
90
101
|
case "EntityNotFoundError":
|
|
91
102
|
return visitor.entityNotFoundError(value.content);
|
|
92
103
|
case "EncounterGuarantorMissingContactInfoError":
|
|
@@ -28,6 +28,7 @@ export * from "./RxCui";
|
|
|
28
28
|
export * from "./IntakeQuestionId";
|
|
29
29
|
export * from "./IntakeFollowUpId";
|
|
30
30
|
export * from "./EncounterExternalIdUniquenessErrorType";
|
|
31
|
+
export * from "./EncounterPatientControlNumberUniquenessErrorType";
|
|
31
32
|
export * from "./EncounterGuarantorMissingContactInfoErrorType";
|
|
32
33
|
export * from "./CashPayPayerErrorMessage";
|
|
33
34
|
export * from "./ServiceAuthorizationExceptionCode";
|
|
@@ -44,6 +44,7 @@ __exportStar(require("./RxCui"), exports);
|
|
|
44
44
|
__exportStar(require("./IntakeQuestionId"), exports);
|
|
45
45
|
__exportStar(require("./IntakeFollowUpId"), exports);
|
|
46
46
|
__exportStar(require("./EncounterExternalIdUniquenessErrorType"), exports);
|
|
47
|
+
__exportStar(require("./EncounterPatientControlNumberUniquenessErrorType"), exports);
|
|
47
48
|
__exportStar(require("./EncounterGuarantorMissingContactInfoErrorType"), exports);
|
|
48
49
|
__exportStar(require("./CashPayPayerErrorMessage"), exports);
|
|
49
50
|
__exportStar(require("./ServiceAuthorizationExceptionCode"), exports);
|
|
@@ -52,7 +52,7 @@ class V1 {
|
|
|
52
52
|
Authorization: await this._getAuthorizationHeader(),
|
|
53
53
|
"X-Fern-Language": "JavaScript",
|
|
54
54
|
"X-Fern-SDK-Name": "candidhealth",
|
|
55
|
-
"X-Fern-SDK-Version": "0.
|
|
55
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
56
56
|
},
|
|
57
57
|
contentType: "application/json",
|
|
58
58
|
body: await serializers.expectedNetworkStatus.v1.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
|
|
@@ -54,7 +54,7 @@ class V2 {
|
|
|
54
54
|
Authorization: await this._getAuthorizationHeader(),
|
|
55
55
|
"X-Fern-Language": "JavaScript",
|
|
56
56
|
"X-Fern-SDK-Name": "candidhealth",
|
|
57
|
-
"X-Fern-SDK-Version": "0.
|
|
57
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
58
58
|
},
|
|
59
59
|
contentType: "application/json",
|
|
60
60
|
body: await serializers.expectedNetworkStatus.v2.ExpectedNetworkStatusRequestV2.jsonOrThrow(request, {
|
|
@@ -109,7 +109,7 @@ class V2 {
|
|
|
109
109
|
Authorization: await this._getAuthorizationHeader(),
|
|
110
110
|
"X-Fern-Language": "JavaScript",
|
|
111
111
|
"X-Fern-SDK-Name": "candidhealth",
|
|
112
|
-
"X-Fern-SDK-Version": "0.
|
|
112
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
113
113
|
},
|
|
114
114
|
contentType: "application/json",
|
|
115
115
|
body: await serializers.expectedNetworkStatus.v2.ComputeAllInNetworkProvidersRequest.jsonOrThrow(request, {
|
|
@@ -68,7 +68,7 @@ class V3 {
|
|
|
68
68
|
Authorization: await this._getAuthorizationHeader(),
|
|
69
69
|
"X-Fern-Language": "JavaScript",
|
|
70
70
|
"X-Fern-SDK-Name": "candidhealth",
|
|
71
|
-
"X-Fern-SDK-Version": "0.
|
|
71
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
72
72
|
},
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
queryParameters: _queryParams,
|
|
@@ -52,7 +52,7 @@ class V1 {
|
|
|
52
52
|
Authorization: await this._getAuthorizationHeader(),
|
|
53
53
|
"X-Fern-Language": "JavaScript",
|
|
54
54
|
"X-Fern-SDK-Name": "candidhealth",
|
|
55
|
-
"X-Fern-SDK-Version": "0.
|
|
55
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
56
56
|
},
|
|
57
57
|
contentType: "application/json",
|
|
58
58
|
body: await serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, {
|
|
@@ -102,7 +102,7 @@ class V1 {
|
|
|
102
102
|
Authorization: await this._getAuthorizationHeader(),
|
|
103
103
|
"X-Fern-Language": "JavaScript",
|
|
104
104
|
"X-Fern-SDK-Name": "candidhealth",
|
|
105
|
-
"X-Fern-SDK-Version": "0.
|
|
105
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
106
106
|
},
|
|
107
107
|
contentType: "application/json",
|
|
108
108
|
timeoutMs: 60000,
|
|
@@ -135,7 +135,7 @@ class V1 {
|
|
|
135
135
|
Authorization: await this._getAuthorizationHeader(),
|
|
136
136
|
"X-Fern-Language": "JavaScript",
|
|
137
137
|
"X-Fern-SDK-Name": "candidhealth",
|
|
138
|
-
"X-Fern-SDK-Version": "0.
|
|
138
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
139
139
|
},
|
|
140
140
|
contentType: "application/json",
|
|
141
141
|
body: await serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, {
|
|
@@ -52,7 +52,7 @@ class V1 {
|
|
|
52
52
|
Authorization: await this._getAuthorizationHeader(),
|
|
53
53
|
"X-Fern-Language": "JavaScript",
|
|
54
54
|
"X-Fern-SDK-Name": "candidhealth",
|
|
55
|
-
"X-Fern-SDK-Version": "0.
|
|
55
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
56
56
|
},
|
|
57
57
|
contentType: "application/json",
|
|
58
58
|
timeoutMs: 60000,
|
|
@@ -85,7 +85,7 @@ class V1 {
|
|
|
85
85
|
Authorization: await this._getAuthorizationHeader(),
|
|
86
86
|
"X-Fern-Language": "JavaScript",
|
|
87
87
|
"X-Fern-SDK-Name": "candidhealth",
|
|
88
|
-
"X-Fern-SDK-Version": "0.
|
|
88
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
89
89
|
},
|
|
90
90
|
contentType: "application/json",
|
|
91
91
|
body: await serializers.insuranceAdjudications.v1.InsuranceAdjudicationCreate.jsonOrThrow(request, {
|
|
@@ -121,7 +121,7 @@ class V1 {
|
|
|
121
121
|
Authorization: await this._getAuthorizationHeader(),
|
|
122
122
|
"X-Fern-Language": "JavaScript",
|
|
123
123
|
"X-Fern-SDK-Name": "candidhealth",
|
|
124
|
-
"X-Fern-SDK-Version": "0.
|
|
124
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
125
125
|
},
|
|
126
126
|
contentType: "application/json",
|
|
127
127
|
timeoutMs: 60000,
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
export interface ClaimAdjudication {
|
|
6
|
+
claimId: CandidApi.ClaimId;
|
|
6
7
|
insuranceAllowedAmountCents?: number;
|
|
7
8
|
insurancePaidAmountCents?: number;
|
|
9
|
+
chargeAmountCents?: number;
|
|
8
10
|
serviceLines: Record<CandidApi.ServiceLineId, CandidApi.insuranceAdjudications.v1.ServiceLineAdjudication>;
|
|
9
11
|
payerClaimNumber?: string;
|
|
10
|
-
carcs: CandidApi.
|
|
12
|
+
carcs: CandidApi.x12.v1.ClaimAdjustmentReasonCode[];
|
|
11
13
|
}
|
package/dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts
CHANGED
|
@@ -5,7 +5,8 @@ import * as CandidApi from "../../../../..";
|
|
|
5
5
|
export interface ClaimAdjudicationCreate {
|
|
6
6
|
insuranceAllowedAmountCents?: number;
|
|
7
7
|
insurancePaidAmountCents?: number;
|
|
8
|
+
chargeAmountCents?: number;
|
|
8
9
|
serviceLines: Record<CandidApi.ServiceLineId, CandidApi.insuranceAdjudications.v1.ServiceLineAdjudicationCreate>;
|
|
9
10
|
payerClaimNumber?: string;
|
|
10
|
-
carcs: CandidApi.
|
|
11
|
+
carcs: CandidApi.x12.v1.ClaimAdjustmentReasonCode[];
|
|
11
12
|
}
|
package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts
CHANGED
|
@@ -9,5 +9,5 @@ export interface InsuranceAdjudication {
|
|
|
9
9
|
checkNumber?: string;
|
|
10
10
|
checkDate: string;
|
|
11
11
|
note?: string;
|
|
12
|
-
claims: Record<CandidApi.
|
|
12
|
+
claims: Record<CandidApi.ClaimId, CandidApi.insuranceAdjudications.v1.ClaimAdjudication>;
|
|
13
13
|
}
|
|
@@ -9,5 +9,5 @@ export interface InsuranceAdjudicationCreate {
|
|
|
9
9
|
checkNumber?: string;
|
|
10
10
|
checkDate: string;
|
|
11
11
|
note?: string;
|
|
12
|
-
claims: Record<CandidApi.
|
|
12
|
+
claims: Record<CandidApi.ClaimId, CandidApi.insuranceAdjudications.v1.ClaimAdjudicationCreate>;
|
|
13
13
|
}
|