candidhealth 0.42.0 → 0.42.3
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 +3 -3
- package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +26 -2
- package/api/resources/chargeCapture/resources/v1/client/Client.js +189 -13
- package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +131 -6
- package/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +1 -0
- package/api/resources/chargeCapture/resources/v1/types/ChargeCapturePage.d.ts +1 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +11 -1
- package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +88 -8
- package/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +53 -2
- package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -1
- package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +4 -2
- package/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
- package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/api/resources/diagnoses/client/Client.js +3 -3
- package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
- package/api/resources/encounters/resources/v4/client/Client.js +5 -5
- 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/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
- package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
- package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
- package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
- 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/payerPlanGroups/resources/v1/client/Client.js +5 -5
- package/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/MemberInfo.d.ts +12 -2
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
- package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
- package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
- package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
- package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
- package/api/resources/serviceFacility/client/Client.js +1 -1
- package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
- package/api/resources/superbills/resources/v1/client/Client.js +1 -1
- package/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
- package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +26 -2
- package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +189 -13
- package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +131 -6
- package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +1 -0
- package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapturePage.d.ts +1 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +11 -1
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +88 -8
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +53 -2
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -1
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +4 -2
- package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/diagnoses/client/Client.js +3 -3
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
- package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
- 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/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
- 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/payerPlanGroups/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/MemberInfo.d.ts +12 -2
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
- package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
- package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/serviceFacility/client/Client.js +1 -1
- package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/superbills/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
- package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +1 -0
- package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +1 -0
- package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePage.d.ts +1 -0
- package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePage.js +1 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -1
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +1 -1
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +2 -1
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js +2 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MemberInfo.d.ts +2 -2
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MemberInfo.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +37 -3
- package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +1 -0
- package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +1 -0
- package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePage.d.ts +1 -0
- package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePage.js +1 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -1
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +1 -1
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +2 -1
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js +2 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MemberInfo.d.ts +2 -2
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MemberInfo.js +2 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -77,7 +77,7 @@ class V1 {
|
|
|
77
77
|
const _response = yield core.fetcher({
|
|
78
78
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/charge_captures/v1"),
|
|
79
79
|
method: "POST",
|
|
80
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.
|
|
80
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.3", "User-Agent": "candidhealth/0.42.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
81
81
|
contentType: "application/json",
|
|
82
82
|
requestType: "json",
|
|
83
83
|
body: serializers.chargeCapture.v1.CreateChargeCaptureRequest.jsonOrThrow(request, {
|
|
@@ -135,7 +135,7 @@ class V1 {
|
|
|
135
135
|
const _response = yield core.fetcher({
|
|
136
136
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
|
|
137
137
|
method: "DELETE",
|
|
138
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.
|
|
138
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.3", "User-Agent": "candidhealth/0.42.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
139
139
|
contentType: "application/json",
|
|
140
140
|
requestType: "json",
|
|
141
141
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -189,7 +189,7 @@ class V1 {
|
|
|
189
189
|
const _response = yield core.fetcher({
|
|
190
190
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
|
|
191
191
|
method: "PATCH",
|
|
192
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.
|
|
192
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.3", "User-Agent": "candidhealth/0.42.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
193
193
|
contentType: "application/json",
|
|
194
194
|
requestType: "json",
|
|
195
195
|
body: serializers.chargeCapture.v1.ChargeCaptureUpdate.jsonOrThrow(request, {
|
|
@@ -247,7 +247,7 @@ class V1 {
|
|
|
247
247
|
const _response = yield core.fetcher({
|
|
248
248
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
|
|
249
249
|
method: "GET",
|
|
250
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.
|
|
250
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.3", "User-Agent": "candidhealth/0.42.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
251
251
|
contentType: "application/json",
|
|
252
252
|
requestType: "json",
|
|
253
253
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -284,15 +284,39 @@ class V1 {
|
|
|
284
284
|
* patientExternalId: "string",
|
|
285
285
|
* status: "planned",
|
|
286
286
|
* chargeExternalId: "string",
|
|
287
|
-
*
|
|
287
|
+
* dateOfServiceMin: "2023-01-15",
|
|
288
|
+
* dateOfServiceMax: "2023-01-15",
|
|
289
|
+
* claimIds: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
288
290
|
* bundleId: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
289
|
-
*
|
|
291
|
+
* bundleIds: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
292
|
+
* billingProviderNpis: "string",
|
|
293
|
+
* serviceFacilityName: "string",
|
|
294
|
+
* primaryPayerIds: "string",
|
|
295
|
+
* renderingProviderNpis: "string",
|
|
296
|
+
* renderingProviderNames: "string",
|
|
297
|
+
* supervisingProviderNpis: "string",
|
|
298
|
+
* supervisingProviderNames: "string",
|
|
299
|
+
* excludeChargesLinkedToClaims: true,
|
|
300
|
+
* patientExternalIdRankedSort: "string",
|
|
301
|
+
* statusRankedSort: "planned",
|
|
302
|
+
* chargeExternalIdRankedSort: "string",
|
|
303
|
+
* dateOfServiceMinRankedSort: "2023-01-15",
|
|
304
|
+
* dateOfServiceMaxRankedSort: "2023-01-15",
|
|
305
|
+
* claimIdsRankedSort: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
306
|
+
* bundleIdsRankedSort: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
307
|
+
* billingProviderNpisRankedSort: "string",
|
|
308
|
+
* serviceFacilityNameRankedSort: "string",
|
|
309
|
+
* primaryPayerIdsRankedSort: "string",
|
|
310
|
+
* renderingProviderNpisRankedSort: "string",
|
|
311
|
+
* renderingProviderNamesRankedSort: "string",
|
|
312
|
+
* supervisingProviderNpisRankedSort: "string",
|
|
313
|
+
* supervisingProviderNamesRankedSort: "string"
|
|
290
314
|
* })
|
|
291
315
|
*/
|
|
292
316
|
getAll() {
|
|
293
317
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
294
318
|
var _a, _b;
|
|
295
|
-
const { limit, sort, sortDirection, pageToken, patientExternalId, status, chargeExternalId,
|
|
319
|
+
const { limit, sort, sortDirection, pageToken, patientExternalId, status, chargeExternalId, dateOfServiceMin, dateOfServiceMax, claimIds, bundleId, bundleIds, billingProviderNpis, serviceFacilityName, primaryPayerIds, renderingProviderNpis, renderingProviderNames, supervisingProviderNpis, supervisingProviderNames, excludeChargesLinkedToClaims, patientExternalIdRankedSort, statusRankedSort, chargeExternalIdRankedSort, dateOfServiceMinRankedSort, dateOfServiceMaxRankedSort, claimIdsRankedSort, bundleIdsRankedSort, billingProviderNpisRankedSort, serviceFacilityNameRankedSort, primaryPayerIdsRankedSort, renderingProviderNpisRankedSort, renderingProviderNamesRankedSort, supervisingProviderNpisRankedSort, supervisingProviderNamesRankedSort, } = request;
|
|
296
320
|
const _queryParams = {};
|
|
297
321
|
if (limit != null) {
|
|
298
322
|
_queryParams["limit"] = limit.toString();
|
|
@@ -321,19 +345,171 @@ class V1 {
|
|
|
321
345
|
if (chargeExternalId != null) {
|
|
322
346
|
_queryParams["charge_external_id"] = chargeExternalId;
|
|
323
347
|
}
|
|
324
|
-
if (
|
|
325
|
-
_queryParams["
|
|
348
|
+
if (dateOfServiceMin != null) {
|
|
349
|
+
_queryParams["date_of_service_min"] = dateOfServiceMin;
|
|
350
|
+
}
|
|
351
|
+
if (dateOfServiceMax != null) {
|
|
352
|
+
_queryParams["date_of_service_max"] = dateOfServiceMax;
|
|
353
|
+
}
|
|
354
|
+
if (claimIds != null) {
|
|
355
|
+
if (Array.isArray(claimIds)) {
|
|
356
|
+
_queryParams["claim_ids"] = claimIds.map((item) => serializers.EncounterId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" }));
|
|
357
|
+
}
|
|
358
|
+
else {
|
|
359
|
+
_queryParams["claim_ids"] = claimIds;
|
|
360
|
+
}
|
|
326
361
|
}
|
|
327
362
|
if (bundleId != null) {
|
|
328
363
|
_queryParams["bundle_id"] = bundleId;
|
|
329
364
|
}
|
|
330
|
-
if (
|
|
331
|
-
|
|
365
|
+
if (bundleIds != null) {
|
|
366
|
+
if (Array.isArray(bundleIds)) {
|
|
367
|
+
_queryParams["bundle_ids"] = bundleIds.map((item) => serializers.ChargeCaptureBundleId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" }));
|
|
368
|
+
}
|
|
369
|
+
else {
|
|
370
|
+
_queryParams["bundle_ids"] = bundleIds;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
if (billingProviderNpis != null) {
|
|
374
|
+
if (Array.isArray(billingProviderNpis)) {
|
|
375
|
+
_queryParams["billing_provider_npis"] = billingProviderNpis.map((item) => item);
|
|
376
|
+
}
|
|
377
|
+
else {
|
|
378
|
+
_queryParams["billing_provider_npis"] = billingProviderNpis;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
if (serviceFacilityName != null) {
|
|
382
|
+
_queryParams["service_facility_name"] = serviceFacilityName;
|
|
383
|
+
}
|
|
384
|
+
if (primaryPayerIds != null) {
|
|
385
|
+
if (Array.isArray(primaryPayerIds)) {
|
|
386
|
+
_queryParams["primary_payer_ids"] = primaryPayerIds.map((item) => item);
|
|
387
|
+
}
|
|
388
|
+
else {
|
|
389
|
+
_queryParams["primary_payer_ids"] = primaryPayerIds;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
if (renderingProviderNpis != null) {
|
|
393
|
+
if (Array.isArray(renderingProviderNpis)) {
|
|
394
|
+
_queryParams["rendering_provider_npis"] = renderingProviderNpis.map((item) => item);
|
|
395
|
+
}
|
|
396
|
+
else {
|
|
397
|
+
_queryParams["rendering_provider_npis"] = renderingProviderNpis;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
if (renderingProviderNames != null) {
|
|
401
|
+
if (Array.isArray(renderingProviderNames)) {
|
|
402
|
+
_queryParams["rendering_provider_names"] = renderingProviderNames.map((item) => item);
|
|
403
|
+
}
|
|
404
|
+
else {
|
|
405
|
+
_queryParams["rendering_provider_names"] = renderingProviderNames;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
if (supervisingProviderNpis != null) {
|
|
409
|
+
if (Array.isArray(supervisingProviderNpis)) {
|
|
410
|
+
_queryParams["supervising_provider_npis"] = supervisingProviderNpis.map((item) => item);
|
|
411
|
+
}
|
|
412
|
+
else {
|
|
413
|
+
_queryParams["supervising_provider_npis"] = supervisingProviderNpis;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
if (supervisingProviderNames != null) {
|
|
417
|
+
if (Array.isArray(supervisingProviderNames)) {
|
|
418
|
+
_queryParams["supervising_provider_names"] = supervisingProviderNames.map((item) => item);
|
|
419
|
+
}
|
|
420
|
+
else {
|
|
421
|
+
_queryParams["supervising_provider_names"] = supervisingProviderNames;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
if (excludeChargesLinkedToClaims != null) {
|
|
425
|
+
_queryParams["exclude_charges_linked_to_claims"] = excludeChargesLinkedToClaims.toString();
|
|
426
|
+
}
|
|
427
|
+
if (patientExternalIdRankedSort != null) {
|
|
428
|
+
_queryParams["patient_external_id_ranked_sort"] = patientExternalIdRankedSort;
|
|
429
|
+
}
|
|
430
|
+
if (statusRankedSort != null) {
|
|
431
|
+
_queryParams["status_ranked_sort"] = serializers.chargeCapture.v1.ChargeCaptureStatus.jsonOrThrow(statusRankedSort, { unrecognizedObjectKeys: "strip" });
|
|
432
|
+
}
|
|
433
|
+
if (chargeExternalIdRankedSort != null) {
|
|
434
|
+
_queryParams["charge_external_id_ranked_sort"] = chargeExternalIdRankedSort;
|
|
435
|
+
}
|
|
436
|
+
if (dateOfServiceMinRankedSort != null) {
|
|
437
|
+
_queryParams["date_of_service_min_ranked_sort"] = dateOfServiceMinRankedSort;
|
|
438
|
+
}
|
|
439
|
+
if (dateOfServiceMaxRankedSort != null) {
|
|
440
|
+
_queryParams["date_of_service_max_ranked_sort"] = dateOfServiceMaxRankedSort;
|
|
441
|
+
}
|
|
442
|
+
if (claimIdsRankedSort != null) {
|
|
443
|
+
if (Array.isArray(claimIdsRankedSort)) {
|
|
444
|
+
_queryParams["claim_ids_ranked_sort"] = claimIdsRankedSort.map((item) => serializers.EncounterId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" }));
|
|
445
|
+
}
|
|
446
|
+
else {
|
|
447
|
+
_queryParams["claim_ids_ranked_sort"] = claimIdsRankedSort;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
if (bundleIdsRankedSort != null) {
|
|
451
|
+
if (Array.isArray(bundleIdsRankedSort)) {
|
|
452
|
+
_queryParams["bundle_ids_ranked_sort"] = bundleIdsRankedSort.map((item) => serializers.ChargeCaptureBundleId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" }));
|
|
453
|
+
}
|
|
454
|
+
else {
|
|
455
|
+
_queryParams["bundle_ids_ranked_sort"] = bundleIdsRankedSort;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
if (billingProviderNpisRankedSort != null) {
|
|
459
|
+
if (Array.isArray(billingProviderNpisRankedSort)) {
|
|
460
|
+
_queryParams["billing_provider_npis_ranked_sort"] = billingProviderNpisRankedSort.map((item) => item);
|
|
461
|
+
}
|
|
462
|
+
else {
|
|
463
|
+
_queryParams["billing_provider_npis_ranked_sort"] = billingProviderNpisRankedSort;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
if (serviceFacilityNameRankedSort != null) {
|
|
467
|
+
_queryParams["service_facility_name_ranked_sort"] = serviceFacilityNameRankedSort;
|
|
468
|
+
}
|
|
469
|
+
if (primaryPayerIdsRankedSort != null) {
|
|
470
|
+
if (Array.isArray(primaryPayerIdsRankedSort)) {
|
|
471
|
+
_queryParams["primary_payer_ids_ranked_sort"] = primaryPayerIdsRankedSort.map((item) => item);
|
|
472
|
+
}
|
|
473
|
+
else {
|
|
474
|
+
_queryParams["primary_payer_ids_ranked_sort"] = primaryPayerIdsRankedSort;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
if (renderingProviderNpisRankedSort != null) {
|
|
478
|
+
if (Array.isArray(renderingProviderNpisRankedSort)) {
|
|
479
|
+
_queryParams["rendering_provider_npis_ranked_sort"] = renderingProviderNpisRankedSort.map((item) => item);
|
|
480
|
+
}
|
|
481
|
+
else {
|
|
482
|
+
_queryParams["rendering_provider_npis_ranked_sort"] = renderingProviderNpisRankedSort;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
if (renderingProviderNamesRankedSort != null) {
|
|
486
|
+
if (Array.isArray(renderingProviderNamesRankedSort)) {
|
|
487
|
+
_queryParams["rendering_provider_names_ranked_sort"] = renderingProviderNamesRankedSort.map((item) => item);
|
|
488
|
+
}
|
|
489
|
+
else {
|
|
490
|
+
_queryParams["rendering_provider_names_ranked_sort"] = renderingProviderNamesRankedSort;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
if (supervisingProviderNpisRankedSort != null) {
|
|
494
|
+
if (Array.isArray(supervisingProviderNpisRankedSort)) {
|
|
495
|
+
_queryParams["supervising_provider_npis_ranked_sort"] = supervisingProviderNpisRankedSort.map((item) => item);
|
|
496
|
+
}
|
|
497
|
+
else {
|
|
498
|
+
_queryParams["supervising_provider_npis_ranked_sort"] = supervisingProviderNpisRankedSort;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
if (supervisingProviderNamesRankedSort != null) {
|
|
502
|
+
if (Array.isArray(supervisingProviderNamesRankedSort)) {
|
|
503
|
+
_queryParams["supervising_provider_names_ranked_sort"] = supervisingProviderNamesRankedSort.map((item) => item);
|
|
504
|
+
}
|
|
505
|
+
else {
|
|
506
|
+
_queryParams["supervising_provider_names_ranked_sort"] = supervisingProviderNamesRankedSort;
|
|
507
|
+
}
|
|
332
508
|
}
|
|
333
509
|
const _response = yield core.fetcher({
|
|
334
510
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/charge_captures/v1"),
|
|
335
511
|
method: "GET",
|
|
336
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.
|
|
512
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.3", "User-Agent": "candidhealth/0.42.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
337
513
|
contentType: "application/json",
|
|
338
514
|
queryParameters: _queryParams,
|
|
339
515
|
requestType: "json",
|
|
@@ -374,7 +550,7 @@ class V1 {
|
|
|
374
550
|
const _response = yield core.fetcher({
|
|
375
551
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/charge_captures/v1/changes/${encodeURIComponent(serializers.ChargeCapturePostBilledChangeId.jsonOrThrow(chargeCaptureChangeId))}`),
|
|
376
552
|
method: "PATCH",
|
|
377
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.
|
|
553
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.3", "User-Agent": "candidhealth/0.42.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
378
554
|
contentType: "application/json",
|
|
379
555
|
requestType: "json",
|
|
380
556
|
body: serializers.chargeCapture.v1.ChargeCapturePostBilledChangeUpdate.jsonOrThrow(request, {
|
|
@@ -12,9 +12,33 @@ import * as CandidApi from "../../../../../../index";
|
|
|
12
12
|
* patientExternalId: "string",
|
|
13
13
|
* status: "planned",
|
|
14
14
|
* chargeExternalId: "string",
|
|
15
|
-
*
|
|
15
|
+
* dateOfServiceMin: "2023-01-15",
|
|
16
|
+
* dateOfServiceMax: "2023-01-15",
|
|
17
|
+
* claimIds: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
16
18
|
* bundleId: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
17
|
-
*
|
|
19
|
+
* bundleIds: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
20
|
+
* billingProviderNpis: "string",
|
|
21
|
+
* serviceFacilityName: "string",
|
|
22
|
+
* primaryPayerIds: "string",
|
|
23
|
+
* renderingProviderNpis: "string",
|
|
24
|
+
* renderingProviderNames: "string",
|
|
25
|
+
* supervisingProviderNpis: "string",
|
|
26
|
+
* supervisingProviderNames: "string",
|
|
27
|
+
* excludeChargesLinkedToClaims: true,
|
|
28
|
+
* patientExternalIdRankedSort: "string",
|
|
29
|
+
* statusRankedSort: "planned",
|
|
30
|
+
* chargeExternalIdRankedSort: "string",
|
|
31
|
+
* dateOfServiceMinRankedSort: "2023-01-15",
|
|
32
|
+
* dateOfServiceMaxRankedSort: "2023-01-15",
|
|
33
|
+
* claimIdsRankedSort: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
34
|
+
* bundleIdsRankedSort: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
35
|
+
* billingProviderNpisRankedSort: "string",
|
|
36
|
+
* serviceFacilityNameRankedSort: "string",
|
|
37
|
+
* primaryPayerIdsRankedSort: "string",
|
|
38
|
+
* renderingProviderNpisRankedSort: "string",
|
|
39
|
+
* renderingProviderNamesRankedSort: "string",
|
|
40
|
+
* supervisingProviderNpisRankedSort: "string",
|
|
41
|
+
* supervisingProviderNamesRankedSort: "string"
|
|
18
42
|
* }
|
|
19
43
|
*/
|
|
20
44
|
export interface GetAllChargeCapturesRequest {
|
|
@@ -49,13 +73,114 @@ export interface GetAllChargeCapturesRequest {
|
|
|
49
73
|
* Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
|
50
74
|
* This date must be the local date in the timezone where the service occurred.
|
|
51
75
|
*/
|
|
52
|
-
|
|
76
|
+
dateOfServiceMin?: string;
|
|
53
77
|
/**
|
|
54
|
-
*
|
|
78
|
+
* Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
|
79
|
+
* This date must be the local date in the timezone where the service occurred.
|
|
80
|
+
*/
|
|
81
|
+
dateOfServiceMax?: string;
|
|
82
|
+
/**
|
|
83
|
+
* A list of claim IDs to filter by. This will return all charge captures that have a resulting claim with one of the IDs in this list.
|
|
84
|
+
*/
|
|
85
|
+
claimIds?: CandidApi.EncounterId | CandidApi.EncounterId[];
|
|
86
|
+
/**
|
|
87
|
+
* A list of bundle IDs to filter by. Use `bundle_ids` instead.
|
|
55
88
|
*/
|
|
56
89
|
bundleId?: CandidApi.ChargeCaptureBundleId;
|
|
57
90
|
/**
|
|
58
|
-
*
|
|
91
|
+
* A list of bundle IDs to filter by.
|
|
92
|
+
*/
|
|
93
|
+
bundleIds?: CandidApi.ChargeCaptureBundleId | CandidApi.ChargeCaptureBundleId[];
|
|
94
|
+
/**
|
|
95
|
+
* A list of billing provider NPIs to filter by. This will return all charge captures with one of the NPIs in this list.
|
|
96
|
+
*/
|
|
97
|
+
billingProviderNpis?: string | string[];
|
|
98
|
+
/**
|
|
99
|
+
* A string to filter by. This will return all charge captures with this service facility name.
|
|
100
|
+
*/
|
|
101
|
+
serviceFacilityName?: string;
|
|
102
|
+
/**
|
|
103
|
+
* A list of primary payer IDs to filter by. This will return all charge captures with one of the primary payer IDs in this list.
|
|
104
|
+
*/
|
|
105
|
+
primaryPayerIds?: string | string[];
|
|
106
|
+
/**
|
|
107
|
+
* A list of rendering provider NPIs to filter by. This will return all charge captures with one of the NPIs in this list.
|
|
108
|
+
*/
|
|
109
|
+
renderingProviderNpis?: string | string[];
|
|
110
|
+
/**
|
|
111
|
+
* A list of rendering provider names to filter by. This will return all charge captures with one of the names in this list.
|
|
112
|
+
*/
|
|
113
|
+
renderingProviderNames?: string | string[];
|
|
114
|
+
/**
|
|
115
|
+
* A list of supervising provider NPIs to filter by. This will return all charge captures with one of the NPIs in this list.
|
|
116
|
+
*/
|
|
117
|
+
supervisingProviderNpis?: string | string[];
|
|
118
|
+
/**
|
|
119
|
+
* A list of supervising provider names to filter by. This will return all charge captures with one of the names in this list.
|
|
120
|
+
*/
|
|
121
|
+
supervisingProviderNames?: string | string[];
|
|
122
|
+
/**
|
|
123
|
+
* Whether to exclude charge captures which are part of a claim creation.
|
|
124
|
+
*/
|
|
125
|
+
excludeChargesLinkedToClaims?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* The patient ID from the external EMR platform for the patient
|
|
128
|
+
*/
|
|
129
|
+
patientExternalIdRankedSort?: string;
|
|
130
|
+
/**
|
|
131
|
+
* The charge capture status to show first
|
|
132
|
+
*/
|
|
133
|
+
statusRankedSort?: CandidApi.chargeCapture.v1.ChargeCaptureStatus;
|
|
134
|
+
/**
|
|
135
|
+
* A client-specified unique ID to associate with this encounter;
|
|
136
|
+
* for example, your internal encounter ID or a Dr. Chrono encounter ID.
|
|
137
|
+
* This field should not contain PHI.
|
|
138
|
+
*/
|
|
139
|
+
chargeExternalIdRankedSort?: string;
|
|
140
|
+
/**
|
|
141
|
+
* Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
|
142
|
+
* This date must be the local date in the timezone where the service occurred.
|
|
143
|
+
*/
|
|
144
|
+
dateOfServiceMinRankedSort?: string;
|
|
145
|
+
/**
|
|
146
|
+
* Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
|
147
|
+
* This date must be the local date in the timezone where the service occurred.
|
|
148
|
+
*/
|
|
149
|
+
dateOfServiceMaxRankedSort?: string;
|
|
150
|
+
/**
|
|
151
|
+
* A list of claim IDs to show first. This will return all charge captures that have a resulting claim with one of the IDs in this list.
|
|
152
|
+
*/
|
|
153
|
+
claimIdsRankedSort?: CandidApi.EncounterId | CandidApi.EncounterId[];
|
|
154
|
+
/**
|
|
155
|
+
* A list of bundle IDs to show first.
|
|
156
|
+
*/
|
|
157
|
+
bundleIdsRankedSort?: CandidApi.ChargeCaptureBundleId | CandidApi.ChargeCaptureBundleId[];
|
|
158
|
+
/**
|
|
159
|
+
* A list of billing provider NPIs to show first. This will return all charge captures with one of the NPIs in this list.
|
|
160
|
+
*/
|
|
161
|
+
billingProviderNpisRankedSort?: string | string[];
|
|
162
|
+
/**
|
|
163
|
+
* A string to show first. This will return all charge captures with this service facility name.
|
|
164
|
+
*/
|
|
165
|
+
serviceFacilityNameRankedSort?: string;
|
|
166
|
+
/**
|
|
167
|
+
* A list of primary payer IDs to show first. This will return all charge captures with one of the primary payer IDs in this list.
|
|
168
|
+
*/
|
|
169
|
+
primaryPayerIdsRankedSort?: string | string[];
|
|
170
|
+
/**
|
|
171
|
+
* A list of rendering provider NPIs to show first. This will return all charge captures with one of the NPIs in this list.
|
|
172
|
+
*/
|
|
173
|
+
renderingProviderNpisRankedSort?: string | string[];
|
|
174
|
+
/**
|
|
175
|
+
* A list of rendering provider names to show first. This will return all charge captures with one of the names in this list.
|
|
176
|
+
*/
|
|
177
|
+
renderingProviderNamesRankedSort?: string | string[];
|
|
178
|
+
/**
|
|
179
|
+
* A list of supervising provider NPIs to show first. This will return all charge captures with one of the NPIs in this list.
|
|
180
|
+
*/
|
|
181
|
+
supervisingProviderNpisRankedSort?: string | string[];
|
|
182
|
+
/**
|
|
183
|
+
* A list of supervising provider names to show first. This will return all charge captures with one of the names in this list.
|
|
59
184
|
*/
|
|
60
|
-
|
|
185
|
+
supervisingProviderNamesRankedSort?: string | string[];
|
|
61
186
|
}
|
|
@@ -6,6 +6,7 @@ export interface ChargeCapture {
|
|
|
6
6
|
id: CandidApi.ChargeCaptureId;
|
|
7
7
|
status: CandidApi.chargeCapture.v1.ChargeCaptureStatus;
|
|
8
8
|
chargeCaptureData: CandidApi.chargeCapture.v1.ChargeCaptureData;
|
|
9
|
+
dateOfService?: string;
|
|
9
10
|
patientExternalId: CandidApi.PatientExternalId;
|
|
10
11
|
chargeExternalId: string;
|
|
11
12
|
ehrSourceUrl?: string;
|
|
@@ -62,7 +62,17 @@ export declare class V1 {
|
|
|
62
62
|
* bundleStatus: "not-started",
|
|
63
63
|
* chargeStatus: "planned",
|
|
64
64
|
* chargeExternalId: "string",
|
|
65
|
-
*
|
|
65
|
+
* dateOfServiceMin: "2023-01-15",
|
|
66
|
+
* dateOfServiceMax: "2023-01-15",
|
|
67
|
+
* claimIds: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
68
|
+
* bundleIds: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
69
|
+
* billingProviderNpis: "string",
|
|
70
|
+
* serviceFacilityName: "string",
|
|
71
|
+
* primaryPayerIds: "string",
|
|
72
|
+
* renderingProviderNpis: "string",
|
|
73
|
+
* renderingProviderNames: "string",
|
|
74
|
+
* supervisingProviderNpis: "string",
|
|
75
|
+
* supervisingProviderNames: "string",
|
|
66
76
|
* hasChargeCaptureUpdates: true
|
|
67
77
|
* })
|
|
68
78
|
*/
|
|
@@ -71,7 +71,7 @@ class V1 {
|
|
|
71
71
|
const _response = yield core.fetcher({
|
|
72
72
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/charge_capture_bundle/v1/${encodeURIComponent(serializers.ChargeCaptureBundleId.jsonOrThrow(chargeCaptureBundleId))}`),
|
|
73
73
|
method: "GET",
|
|
74
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.
|
|
74
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.3", "User-Agent": "candidhealth/0.42.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
75
75
|
contentType: "application/json",
|
|
76
76
|
requestType: "json",
|
|
77
77
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -107,7 +107,7 @@ class V1 {
|
|
|
107
107
|
const _response = yield core.fetcher({
|
|
108
108
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/charge_capture_bundle/v1/all/summary"),
|
|
109
109
|
method: "GET",
|
|
110
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.
|
|
110
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.3", "User-Agent": "candidhealth/0.42.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
111
111
|
contentType: "application/json",
|
|
112
112
|
requestType: "json",
|
|
113
113
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -144,7 +144,7 @@ class V1 {
|
|
|
144
144
|
const _response = yield core.fetcher({
|
|
145
145
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/charge_capture_bundle/v1/${encodeURIComponent(serializers.ChargeCaptureBundleId.jsonOrThrow(chargeCaptureBundleId))}`),
|
|
146
146
|
method: "POST",
|
|
147
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.
|
|
147
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.3", "User-Agent": "candidhealth/0.42.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
148
148
|
contentType: "application/json",
|
|
149
149
|
requestType: "json",
|
|
150
150
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -196,14 +196,24 @@ class V1 {
|
|
|
196
196
|
* bundleStatus: "not-started",
|
|
197
197
|
* chargeStatus: "planned",
|
|
198
198
|
* chargeExternalId: "string",
|
|
199
|
-
*
|
|
199
|
+
* dateOfServiceMin: "2023-01-15",
|
|
200
|
+
* dateOfServiceMax: "2023-01-15",
|
|
201
|
+
* claimIds: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
202
|
+
* bundleIds: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
203
|
+
* billingProviderNpis: "string",
|
|
204
|
+
* serviceFacilityName: "string",
|
|
205
|
+
* primaryPayerIds: "string",
|
|
206
|
+
* renderingProviderNpis: "string",
|
|
207
|
+
* renderingProviderNames: "string",
|
|
208
|
+
* supervisingProviderNpis: "string",
|
|
209
|
+
* supervisingProviderNames: "string",
|
|
200
210
|
* hasChargeCaptureUpdates: true
|
|
201
211
|
* })
|
|
202
212
|
*/
|
|
203
213
|
getAll() {
|
|
204
214
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
205
215
|
var _a, _b;
|
|
206
|
-
const { limit, sort, sortDirection, pageToken, patientExternalId, bundleStatus, chargeStatus, chargeExternalId,
|
|
216
|
+
const { limit, sort, sortDirection, pageToken, patientExternalId, bundleStatus, chargeStatus, chargeExternalId, dateOfServiceMin, dateOfServiceMax, claimIds, bundleIds, billingProviderNpis, serviceFacilityName, primaryPayerIds, renderingProviderNpis, renderingProviderNames, supervisingProviderNpis, supervisingProviderNames, hasChargeCaptureUpdates, } = request;
|
|
207
217
|
const _queryParams = {};
|
|
208
218
|
if (limit != null) {
|
|
209
219
|
_queryParams["limit"] = limit.toString();
|
|
@@ -235,8 +245,78 @@ class V1 {
|
|
|
235
245
|
if (chargeExternalId != null) {
|
|
236
246
|
_queryParams["charge_external_id"] = chargeExternalId;
|
|
237
247
|
}
|
|
238
|
-
if (
|
|
239
|
-
_queryParams["
|
|
248
|
+
if (dateOfServiceMin != null) {
|
|
249
|
+
_queryParams["date_of_service_min"] = dateOfServiceMin;
|
|
250
|
+
}
|
|
251
|
+
if (dateOfServiceMax != null) {
|
|
252
|
+
_queryParams["date_of_service_max"] = dateOfServiceMax;
|
|
253
|
+
}
|
|
254
|
+
if (claimIds != null) {
|
|
255
|
+
if (Array.isArray(claimIds)) {
|
|
256
|
+
_queryParams["claim_ids"] = claimIds.map((item) => serializers.EncounterId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" }));
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
_queryParams["claim_ids"] = claimIds;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
if (bundleIds != null) {
|
|
263
|
+
if (Array.isArray(bundleIds)) {
|
|
264
|
+
_queryParams["bundle_ids"] = bundleIds.map((item) => serializers.ChargeCaptureBundleId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" }));
|
|
265
|
+
}
|
|
266
|
+
else {
|
|
267
|
+
_queryParams["bundle_ids"] = bundleIds;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
if (billingProviderNpis != null) {
|
|
271
|
+
if (Array.isArray(billingProviderNpis)) {
|
|
272
|
+
_queryParams["billing_provider_npis"] = billingProviderNpis.map((item) => item);
|
|
273
|
+
}
|
|
274
|
+
else {
|
|
275
|
+
_queryParams["billing_provider_npis"] = billingProviderNpis;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
if (serviceFacilityName != null) {
|
|
279
|
+
_queryParams["service_facility_name"] = serviceFacilityName;
|
|
280
|
+
}
|
|
281
|
+
if (primaryPayerIds != null) {
|
|
282
|
+
if (Array.isArray(primaryPayerIds)) {
|
|
283
|
+
_queryParams["primary_payer_ids"] = primaryPayerIds.map((item) => item);
|
|
284
|
+
}
|
|
285
|
+
else {
|
|
286
|
+
_queryParams["primary_payer_ids"] = primaryPayerIds;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
if (renderingProviderNpis != null) {
|
|
290
|
+
if (Array.isArray(renderingProviderNpis)) {
|
|
291
|
+
_queryParams["rendering_provider_npis"] = renderingProviderNpis.map((item) => item);
|
|
292
|
+
}
|
|
293
|
+
else {
|
|
294
|
+
_queryParams["rendering_provider_npis"] = renderingProviderNpis;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
if (renderingProviderNames != null) {
|
|
298
|
+
if (Array.isArray(renderingProviderNames)) {
|
|
299
|
+
_queryParams["rendering_provider_names"] = renderingProviderNames.map((item) => item);
|
|
300
|
+
}
|
|
301
|
+
else {
|
|
302
|
+
_queryParams["rendering_provider_names"] = renderingProviderNames;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
if (supervisingProviderNpis != null) {
|
|
306
|
+
if (Array.isArray(supervisingProviderNpis)) {
|
|
307
|
+
_queryParams["supervising_provider_npis"] = supervisingProviderNpis.map((item) => item);
|
|
308
|
+
}
|
|
309
|
+
else {
|
|
310
|
+
_queryParams["supervising_provider_npis"] = supervisingProviderNpis;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
if (supervisingProviderNames != null) {
|
|
314
|
+
if (Array.isArray(supervisingProviderNames)) {
|
|
315
|
+
_queryParams["supervising_provider_names"] = supervisingProviderNames.map((item) => item);
|
|
316
|
+
}
|
|
317
|
+
else {
|
|
318
|
+
_queryParams["supervising_provider_names"] = supervisingProviderNames;
|
|
319
|
+
}
|
|
240
320
|
}
|
|
241
321
|
if (hasChargeCaptureUpdates != null) {
|
|
242
322
|
_queryParams["has_charge_capture_updates"] = hasChargeCaptureUpdates.toString();
|
|
@@ -244,7 +324,7 @@ class V1 {
|
|
|
244
324
|
const _response = yield core.fetcher({
|
|
245
325
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/charge_capture_bundle/v1"),
|
|
246
326
|
method: "GET",
|
|
247
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.
|
|
327
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.3", "User-Agent": "candidhealth/0.42.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
248
328
|
contentType: "application/json",
|
|
249
329
|
queryParameters: _queryParams,
|
|
250
330
|
requestType: "json",
|