candidhealth 0.41.5 → 0.42.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  3. package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +10 -1
  4. package/api/resources/chargeCapture/resources/v1/client/Client.js +86 -10
  5. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +49 -4
  6. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +9 -0
  7. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +81 -5
  8. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +45 -0
  9. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +4 -2
  10. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  11. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  12. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  13. package/api/resources/diagnoses/client/Client.js +3 -3
  14. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  15. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  16. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  17. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  18. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  19. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  20. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  21. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  22. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  23. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  24. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  25. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  26. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  27. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  28. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  29. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  30. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  31. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  32. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  33. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  34. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  35. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  36. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  37. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  38. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
  39. package/api/resources/preEncounter/resources/coverages/resources/v1/types/MemberInfo.d.ts +12 -2
  40. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  41. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  42. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  43. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  44. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  45. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  46. package/api/resources/serviceFacility/client/Client.js +1 -1
  47. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  48. package/api/resources/superbills/resources/v1/client/Client.js +1 -1
  49. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  50. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  51. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  52. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  53. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +10 -1
  54. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +86 -10
  55. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +49 -4
  56. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +9 -0
  57. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +81 -5
  58. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +45 -0
  59. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +4 -2
  60. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  61. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  62. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  63. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  64. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  65. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  66. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  67. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  68. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  69. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  70. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  71. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  72. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  73. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  74. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  75. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  76. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  77. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  78. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  79. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  80. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  81. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  82. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  83. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  84. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  85. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  86. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  87. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  88. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
  89. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/MemberInfo.d.ts +12 -2
  90. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  91. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  92. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  93. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  94. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  95. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  96. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  97. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  98. package/dist/api/resources/superbills/resources/v1/client/Client.js +1 -1
  99. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  100. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  101. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +2 -1
  102. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js +2 -1
  103. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MemberInfo.d.ts +2 -2
  104. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MemberInfo.js +2 -2
  105. package/dist/version.d.ts +1 -1
  106. package/dist/version.js +1 -1
  107. package/package.json +1 -1
  108. package/reference.md +19 -1
  109. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +2 -1
  110. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js +2 -1
  111. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MemberInfo.d.ts +2 -2
  112. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MemberInfo.js +2 -2
  113. package/version.d.ts +1 -1
  114. package/version.js +1 -1
@@ -92,7 +92,7 @@ class V2 {
92
92
  const _response = yield core.fetcher({
93
93
  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/auth/v2/token"),
94
94
  method: "POST",
95
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.5", "User-Agent": "candidhealth/0.41.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
95
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.2", "User-Agent": "candidhealth/0.42.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
96
96
  contentType: "application/json",
97
97
  requestType: "json",
98
98
  body: serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -74,7 +74,7 @@ class V2 {
74
74
  const _response = yield core.fetcher({
75
75
  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/billing_notes/v2"),
76
76
  method: "POST",
77
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.5", "User-Agent": "candidhealth/0.41.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.2", "User-Agent": "candidhealth/0.42.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
78
  contentType: "application/json",
79
79
  requestType: "json",
80
80
  body: serializers.billingNotes.v2.StandaloneBillingNoteCreate.jsonOrThrow(request, {
@@ -114,7 +114,7 @@ class V2 {
114
114
  const _response = yield core.fetcher({
115
115
  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/billing_notes/v2/${encodeURIComponent(serializers.billingNotes.v2.BillingNoteId.jsonOrThrow(billingNoteId))}`),
116
116
  method: "DELETE",
117
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.5", "User-Agent": "candidhealth/0.41.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
117
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.2", "User-Agent": "candidhealth/0.42.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
118
118
  contentType: "application/json",
119
119
  requestType: "json",
120
120
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -165,7 +165,7 @@ class V2 {
165
165
  const _response = yield core.fetcher({
166
166
  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/billing_notes/v2/${encodeURIComponent(serializers.billingNotes.v2.BillingNoteId.jsonOrThrow(billingNoteId))}`),
167
167
  method: "PATCH",
168
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.5", "User-Agent": "candidhealth/0.41.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.2", "User-Agent": "candidhealth/0.42.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
169
169
  contentType: "application/json",
170
170
  requestType: "json",
171
171
  body: serializers.billingNotes.v2.BillingNoteUpdate.jsonOrThrow(request, {
@@ -84,8 +84,17 @@ export declare class V1 {
84
84
  * status: "planned",
85
85
  * chargeExternalId: "string",
86
86
  * dateOfService: "2023-01-15",
87
+ * claimIds: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
87
88
  * bundleId: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
88
- * excludeBundled: true
89
+ * bundleIds: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
90
+ * billingProviderNpis: "string",
91
+ * serviceFacilityName: "string",
92
+ * primaryPayerIds: "string",
93
+ * renderingProviderNpis: "string",
94
+ * renderingProviderNames: "string",
95
+ * supervisingProviderNpis: "string",
96
+ * supervisingProviderNames: "string",
97
+ * excludeChargesLinkedToClaims: true
89
98
  * })
90
99
  */
91
100
  getAll(request?: CandidApi.chargeCapture.v1.GetAllChargeCapturesRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.chargeCapture.v1.ChargeCapturePage, CandidApi.chargeCapture.v1.getAll.Error>>;
@@ -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.41.5", "User-Agent": "candidhealth/0.41.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.2", "User-Agent": "candidhealth/0.42.2", "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.41.5", "User-Agent": "candidhealth/0.41.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
138
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.2", "User-Agent": "candidhealth/0.42.2", "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.41.5", "User-Agent": "candidhealth/0.41.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
192
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.2", "User-Agent": "candidhealth/0.42.2", "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.41.5", "User-Agent": "candidhealth/0.41.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
250
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.2", "User-Agent": "candidhealth/0.42.2", "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,
@@ -285,14 +285,23 @@ class V1 {
285
285
  * status: "planned",
286
286
  * chargeExternalId: "string",
287
287
  * dateOfService: "2023-01-15",
288
+ * claimIds: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
288
289
  * bundleId: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
289
- * excludeBundled: true
290
+ * bundleIds: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
291
+ * billingProviderNpis: "string",
292
+ * serviceFacilityName: "string",
293
+ * primaryPayerIds: "string",
294
+ * renderingProviderNpis: "string",
295
+ * renderingProviderNames: "string",
296
+ * supervisingProviderNpis: "string",
297
+ * supervisingProviderNames: "string",
298
+ * excludeChargesLinkedToClaims: true
290
299
  * })
291
300
  */
292
301
  getAll() {
293
302
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
294
303
  var _a, _b;
295
- const { limit, sort, sortDirection, pageToken, patientExternalId, status, chargeExternalId, dateOfService, bundleId, excludeBundled, } = request;
304
+ const { limit, sort, sortDirection, pageToken, patientExternalId, status, chargeExternalId, dateOfService, claimIds, bundleId, bundleIds, billingProviderNpis, serviceFacilityName, primaryPayerIds, renderingProviderNpis, renderingProviderNames, supervisingProviderNpis, supervisingProviderNames, excludeChargesLinkedToClaims, } = request;
296
305
  const _queryParams = {};
297
306
  if (limit != null) {
298
307
  _queryParams["limit"] = limit.toString();
@@ -324,16 +333,83 @@ class V1 {
324
333
  if (dateOfService != null) {
325
334
  _queryParams["date_of_service"] = dateOfService;
326
335
  }
336
+ if (claimIds != null) {
337
+ if (Array.isArray(claimIds)) {
338
+ _queryParams["claim_ids"] = claimIds.map((item) => serializers.EncounterId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" }));
339
+ }
340
+ else {
341
+ _queryParams["claim_ids"] = claimIds;
342
+ }
343
+ }
327
344
  if (bundleId != null) {
328
345
  _queryParams["bundle_id"] = bundleId;
329
346
  }
330
- if (excludeBundled != null) {
331
- _queryParams["exclude_bundled"] = excludeBundled.toString();
347
+ if (bundleIds != null) {
348
+ if (Array.isArray(bundleIds)) {
349
+ _queryParams["bundle_ids"] = bundleIds.map((item) => serializers.ChargeCaptureBundleId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" }));
350
+ }
351
+ else {
352
+ _queryParams["bundle_ids"] = bundleIds;
353
+ }
354
+ }
355
+ if (billingProviderNpis != null) {
356
+ if (Array.isArray(billingProviderNpis)) {
357
+ _queryParams["billing_provider_npis"] = billingProviderNpis.map((item) => item);
358
+ }
359
+ else {
360
+ _queryParams["billing_provider_npis"] = billingProviderNpis;
361
+ }
362
+ }
363
+ if (serviceFacilityName != null) {
364
+ _queryParams["service_facility_name"] = serviceFacilityName;
365
+ }
366
+ if (primaryPayerIds != null) {
367
+ if (Array.isArray(primaryPayerIds)) {
368
+ _queryParams["primary_payer_ids"] = primaryPayerIds.map((item) => item);
369
+ }
370
+ else {
371
+ _queryParams["primary_payer_ids"] = primaryPayerIds;
372
+ }
373
+ }
374
+ if (renderingProviderNpis != null) {
375
+ if (Array.isArray(renderingProviderNpis)) {
376
+ _queryParams["rendering_provider_npis"] = renderingProviderNpis.map((item) => item);
377
+ }
378
+ else {
379
+ _queryParams["rendering_provider_npis"] = renderingProviderNpis;
380
+ }
381
+ }
382
+ if (renderingProviderNames != null) {
383
+ if (Array.isArray(renderingProviderNames)) {
384
+ _queryParams["rendering_provider_names"] = renderingProviderNames.map((item) => item);
385
+ }
386
+ else {
387
+ _queryParams["rendering_provider_names"] = renderingProviderNames;
388
+ }
389
+ }
390
+ if (supervisingProviderNpis != null) {
391
+ if (Array.isArray(supervisingProviderNpis)) {
392
+ _queryParams["supervising_provider_npis"] = supervisingProviderNpis.map((item) => item);
393
+ }
394
+ else {
395
+ _queryParams["supervising_provider_npis"] = supervisingProviderNpis;
396
+ }
397
+ }
398
+ if (supervisingProviderNames != null) {
399
+ if (Array.isArray(supervisingProviderNames)) {
400
+ _queryParams["supervising_provider_names"] = supervisingProviderNames.map((item) => item);
401
+ }
402
+ else {
403
+ _queryParams["supervising_provider_names"] = supervisingProviderNames;
404
+ }
405
+ }
406
+ if (excludeChargesLinkedToClaims != null) {
407
+ _queryParams["exclude_charges_linked_to_claims"] = excludeChargesLinkedToClaims.toString();
332
408
  }
333
409
  const _response = yield core.fetcher({
334
410
  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
411
  method: "GET",
336
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.5", "User-Agent": "candidhealth/0.41.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
412
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.2", "User-Agent": "candidhealth/0.42.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
337
413
  contentType: "application/json",
338
414
  queryParameters: _queryParams,
339
415
  requestType: "json",
@@ -374,7 +450,7 @@ class V1 {
374
450
  const _response = yield core.fetcher({
375
451
  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
452
  method: "PATCH",
377
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.5", "User-Agent": "candidhealth/0.41.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
453
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.2", "User-Agent": "candidhealth/0.42.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
378
454
  contentType: "application/json",
379
455
  requestType: "json",
380
456
  body: serializers.chargeCapture.v1.ChargeCapturePostBilledChangeUpdate.jsonOrThrow(request, {
@@ -13,8 +13,17 @@ import * as CandidApi from "../../../../../../index";
13
13
  * status: "planned",
14
14
  * chargeExternalId: "string",
15
15
  * dateOfService: "2023-01-15",
16
+ * claimIds: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
16
17
  * bundleId: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
17
- * excludeBundled: true
18
+ * bundleIds: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
19
+ * billingProviderNpis: "string",
20
+ * serviceFacilityName: "string",
21
+ * primaryPayerIds: "string",
22
+ * renderingProviderNpis: "string",
23
+ * renderingProviderNames: "string",
24
+ * supervisingProviderNpis: "string",
25
+ * supervisingProviderNames: "string",
26
+ * excludeChargesLinkedToClaims: true
18
27
  * }
19
28
  */
20
29
  export interface GetAllChargeCapturesRequest {
@@ -51,11 +60,47 @@ export interface GetAllChargeCapturesRequest {
51
60
  */
52
61
  dateOfService?: string;
53
62
  /**
54
- * The ID of the charge capture bundle to which this charge capture belongs.
63
+ * 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.
64
+ */
65
+ claimIds?: CandidApi.EncounterId | CandidApi.EncounterId[];
66
+ /**
67
+ * A list of bundle IDs to filter by. Use `bundle_ids` instead.
55
68
  */
56
69
  bundleId?: CandidApi.ChargeCaptureBundleId;
57
70
  /**
58
- * Whether to exclude charge captures which are associated with a charge capture bundle.
71
+ * A list of bundle IDs to filter by.
72
+ */
73
+ bundleIds?: CandidApi.ChargeCaptureBundleId | CandidApi.ChargeCaptureBundleId[];
74
+ /**
75
+ * A list of billing provider NPIs to filter by. This will return all charge captures with one of the NPIs in this list.
76
+ */
77
+ billingProviderNpis?: string | string[];
78
+ /**
79
+ * A string to filter by. This will return all charge captures with this service facility name.
80
+ */
81
+ serviceFacilityName?: string;
82
+ /**
83
+ * 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.
84
+ */
85
+ primaryPayerIds?: string | string[];
86
+ /**
87
+ * A list of rendering provider NPIs to filter by. This will return all charge captures with one of the NPIs in this list.
88
+ */
89
+ renderingProviderNpis?: string | string[];
90
+ /**
91
+ * A list of rendering provider names to filter by. This will return all charge captures with one of the names in this list.
92
+ */
93
+ renderingProviderNames?: string | string[];
94
+ /**
95
+ * A list of supervising provider NPIs to filter by. This will return all charge captures with one of the NPIs in this list.
96
+ */
97
+ supervisingProviderNpis?: string | string[];
98
+ /**
99
+ * A list of supervising provider names to filter by. This will return all charge captures with one of the names in this list.
100
+ */
101
+ supervisingProviderNames?: string | string[];
102
+ /**
103
+ * Whether to exclude charge captures which are part of a bundle that has a created claim.
59
104
  */
60
- excludeBundled?: boolean;
105
+ excludeChargesLinkedToClaims?: boolean;
61
106
  }
@@ -63,6 +63,15 @@ export declare class V1 {
63
63
  * chargeStatus: "planned",
64
64
  * chargeExternalId: "string",
65
65
  * dateOfService: "2023-01-15",
66
+ * claimIds: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
67
+ * bundleIds: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
68
+ * billingProviderNpis: "string",
69
+ * serviceFacilityName: "string",
70
+ * primaryPayerIds: "string",
71
+ * renderingProviderNpis: "string",
72
+ * renderingProviderNames: "string",
73
+ * supervisingProviderNpis: "string",
74
+ * supervisingProviderNames: "string",
66
75
  * hasChargeCaptureUpdates: true
67
76
  * })
68
77
  */
@@ -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.41.5", "User-Agent": "candidhealth/0.41.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
74
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.2", "User-Agent": "candidhealth/0.42.2", "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.41.5", "User-Agent": "candidhealth/0.41.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
110
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.2", "User-Agent": "candidhealth/0.42.2", "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.41.5", "User-Agent": "candidhealth/0.41.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
147
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.2", "User-Agent": "candidhealth/0.42.2", "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,
@@ -197,13 +197,22 @@ class V1 {
197
197
  * chargeStatus: "planned",
198
198
  * chargeExternalId: "string",
199
199
  * dateOfService: "2023-01-15",
200
+ * claimIds: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
201
+ * bundleIds: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
202
+ * billingProviderNpis: "string",
203
+ * serviceFacilityName: "string",
204
+ * primaryPayerIds: "string",
205
+ * renderingProviderNpis: "string",
206
+ * renderingProviderNames: "string",
207
+ * supervisingProviderNpis: "string",
208
+ * supervisingProviderNames: "string",
200
209
  * hasChargeCaptureUpdates: true
201
210
  * })
202
211
  */
203
212
  getAll() {
204
213
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
205
214
  var _a, _b;
206
- const { limit, sort, sortDirection, pageToken, patientExternalId, bundleStatus, chargeStatus, chargeExternalId, dateOfService, hasChargeCaptureUpdates, } = request;
215
+ const { limit, sort, sortDirection, pageToken, patientExternalId, bundleStatus, chargeStatus, chargeExternalId, dateOfService, claimIds, bundleIds, billingProviderNpis, serviceFacilityName, primaryPayerIds, renderingProviderNpis, renderingProviderNames, supervisingProviderNpis, supervisingProviderNames, hasChargeCaptureUpdates, } = request;
207
216
  const _queryParams = {};
208
217
  if (limit != null) {
209
218
  _queryParams["limit"] = limit.toString();
@@ -238,13 +247,80 @@ class V1 {
238
247
  if (dateOfService != null) {
239
248
  _queryParams["date_of_service"] = dateOfService;
240
249
  }
250
+ if (claimIds != null) {
251
+ if (Array.isArray(claimIds)) {
252
+ _queryParams["claim_ids"] = claimIds.map((item) => serializers.EncounterId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" }));
253
+ }
254
+ else {
255
+ _queryParams["claim_ids"] = claimIds;
256
+ }
257
+ }
258
+ if (bundleIds != null) {
259
+ if (Array.isArray(bundleIds)) {
260
+ _queryParams["bundle_ids"] = bundleIds.map((item) => serializers.ChargeCaptureBundleId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" }));
261
+ }
262
+ else {
263
+ _queryParams["bundle_ids"] = bundleIds;
264
+ }
265
+ }
266
+ if (billingProviderNpis != null) {
267
+ if (Array.isArray(billingProviderNpis)) {
268
+ _queryParams["billing_provider_npis"] = billingProviderNpis.map((item) => item);
269
+ }
270
+ else {
271
+ _queryParams["billing_provider_npis"] = billingProviderNpis;
272
+ }
273
+ }
274
+ if (serviceFacilityName != null) {
275
+ _queryParams["service_facility_name"] = serviceFacilityName;
276
+ }
277
+ if (primaryPayerIds != null) {
278
+ if (Array.isArray(primaryPayerIds)) {
279
+ _queryParams["primary_payer_ids"] = primaryPayerIds.map((item) => item);
280
+ }
281
+ else {
282
+ _queryParams["primary_payer_ids"] = primaryPayerIds;
283
+ }
284
+ }
285
+ if (renderingProviderNpis != null) {
286
+ if (Array.isArray(renderingProviderNpis)) {
287
+ _queryParams["rendering_provider_npis"] = renderingProviderNpis.map((item) => item);
288
+ }
289
+ else {
290
+ _queryParams["rendering_provider_npis"] = renderingProviderNpis;
291
+ }
292
+ }
293
+ if (renderingProviderNames != null) {
294
+ if (Array.isArray(renderingProviderNames)) {
295
+ _queryParams["rendering_provider_names"] = renderingProviderNames.map((item) => item);
296
+ }
297
+ else {
298
+ _queryParams["rendering_provider_names"] = renderingProviderNames;
299
+ }
300
+ }
301
+ if (supervisingProviderNpis != null) {
302
+ if (Array.isArray(supervisingProviderNpis)) {
303
+ _queryParams["supervising_provider_npis"] = supervisingProviderNpis.map((item) => item);
304
+ }
305
+ else {
306
+ _queryParams["supervising_provider_npis"] = supervisingProviderNpis;
307
+ }
308
+ }
309
+ if (supervisingProviderNames != null) {
310
+ if (Array.isArray(supervisingProviderNames)) {
311
+ _queryParams["supervising_provider_names"] = supervisingProviderNames.map((item) => item);
312
+ }
313
+ else {
314
+ _queryParams["supervising_provider_names"] = supervisingProviderNames;
315
+ }
316
+ }
241
317
  if (hasChargeCaptureUpdates != null) {
242
318
  _queryParams["has_charge_capture_updates"] = hasChargeCaptureUpdates.toString();
243
319
  }
244
320
  const _response = yield core.fetcher({
245
321
  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
322
  method: "GET",
247
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.5", "User-Agent": "candidhealth/0.41.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
323
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.2", "User-Agent": "candidhealth/0.42.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
248
324
  contentType: "application/json",
249
325
  queryParameters: _queryParams,
250
326
  requestType: "json",
@@ -14,6 +14,15 @@ import * as CandidApi from "../../../../../../index";
14
14
  * chargeStatus: "planned",
15
15
  * chargeExternalId: "string",
16
16
  * dateOfService: "2023-01-15",
17
+ * claimIds: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
18
+ * bundleIds: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
19
+ * billingProviderNpis: "string",
20
+ * serviceFacilityName: "string",
21
+ * primaryPayerIds: "string",
22
+ * renderingProviderNpis: "string",
23
+ * renderingProviderNames: "string",
24
+ * supervisingProviderNpis: "string",
25
+ * supervisingProviderNames: "string",
17
26
  * hasChargeCaptureUpdates: true
18
27
  * }
19
28
  */
@@ -54,6 +63,42 @@ export interface GetAllChargeCaptureBundlesRequest {
54
63
  * This date must be the local date in the timezone where the service occurred.
55
64
  */
56
65
  dateOfService?: string;
66
+ /**
67
+ * A list of claim IDs to filter by. This will return all charge capture bundles that have a resulting claim with one of the IDs in this list.
68
+ */
69
+ claimIds?: CandidApi.EncounterId | CandidApi.EncounterId[];
70
+ /**
71
+ * A list of bundle IDs to filter by.
72
+ */
73
+ bundleIds?: CandidApi.ChargeCaptureBundleId | CandidApi.ChargeCaptureBundleId[];
74
+ /**
75
+ * A list of billing provider NPIs to filter by. This will return all charge capture bundles which include one or more charges with one of the NPIs in this list.
76
+ */
77
+ billingProviderNpis?: string | string[];
78
+ /**
79
+ * A string to filter by. This will return all charge capture bundles which include one or more charges with this service facility name.
80
+ */
81
+ serviceFacilityName?: string;
82
+ /**
83
+ * A list of primary payer IDs to filter by. This will return all charge capture bundles which include one or more charges with one of the primary payer IDs in this list.
84
+ */
85
+ primaryPayerIds?: string | string[];
86
+ /**
87
+ * A list of rendering provider NPIs to filter by. This will return all charge capture bundles which include one or more charges with one of the NPIs in this list.
88
+ */
89
+ renderingProviderNpis?: string | string[];
90
+ /**
91
+ * A list of rendering provider names to filter by. This will return all charge capture bundles which include one or more charges with one of the names in this list.
92
+ */
93
+ renderingProviderNames?: string | string[];
94
+ /**
95
+ * A list of supervising provider NPIs to filter by. This will return all charge capture bundles which include one or more charges with one of the NPIs in this list.
96
+ */
97
+ supervisingProviderNpis?: string | string[];
98
+ /**
99
+ * A list of supervising provider names to filter by. This will return all charge capture bundles which include one or more charges with one of the names in this list.
100
+ */
101
+ supervisingProviderNames?: string | string[];
57
102
  /**
58
103
  * If true, only return bundles that have charge captures that have been updated since the bundle has had a status of BILLED. See the updates property on ChargeCapture for more details.
59
104
  */
@@ -2,10 +2,12 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface ChargeCaptureBundleSummary {
5
- /** The count of charge captures which are not in a bundle or in a bundle with a status other than SUCCESSFUL. */
6
- chargeCaptureUnbundledCount: number;
5
+ /** The count of charge captures which are not part of a bundle with a created claim. */
6
+ chargeCaptureChargesNotLinkedToClaimsCount: number;
7
7
  /** The count of charge capture bundles that have a bundle status of NOT_STARTED. */
8
8
  chargeCaptureBundlesNotStartedCount: number;
9
+ /** The count of charge capture bundles that have a bundle status of HELD. */
10
+ chargeCaptureHeldBundlesCount: number;
9
11
  /** The count of charge capture bundles that have a bundle status of IN_ERROR. */
10
12
  chargeCaptureBundlesInErrorCount: number;
11
13
  /** The number of ChargeCapturePostBilledChange items that are unresolved. */
@@ -71,7 +71,7 @@ class V2 {
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/contracts/v2/${encodeURIComponent(serializers.contracts.v2.ContractId.jsonOrThrow(contractId))}`),
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.41.5", "User-Agent": "candidhealth/0.41.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
74
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.2", "User-Agent": "candidhealth/0.42.2", "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,
@@ -170,7 +170,7 @@ class V2 {
170
170
  const _response = yield core.fetcher({
171
171
  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/contracts/v2"),
172
172
  method: "GET",
173
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.5", "User-Agent": "candidhealth/0.41.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
173
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.2", "User-Agent": "candidhealth/0.42.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
174
174
  contentType: "application/json",
175
175
  queryParameters: _queryParams,
176
176
  requestType: "json",
@@ -237,7 +237,7 @@ class V2 {
237
237
  const _response = yield core.fetcher({
238
238
  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/contracts/v2"),
239
239
  method: "POST",
240
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.5", "User-Agent": "candidhealth/0.41.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
240
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.2", "User-Agent": "candidhealth/0.42.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
241
241
  contentType: "application/json",
242
242
  requestType: "json",
243
243
  body: serializers.contracts.v2.ContractCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -275,7 +275,7 @@ class V2 {
275
275
  const _response = yield core.fetcher({
276
276
  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/contracts/v2/${encodeURIComponent(serializers.contracts.v2.ContractId.jsonOrThrow(contractId))}`),
277
277
  method: "DELETE",
278
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.5", "User-Agent": "candidhealth/0.41.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
278
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.2", "User-Agent": "candidhealth/0.42.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
279
279
  contentType: "application/json",
280
280
  requestType: "json",
281
281
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -355,7 +355,7 @@ class V2 {
355
355
  const _response = yield core.fetcher({
356
356
  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/contracts/v2/${encodeURIComponent(serializers.contracts.v2.ContractId.jsonOrThrow(contractId))}`),
357
357
  method: "PATCH",
358
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.5", "User-Agent": "candidhealth/0.41.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
358
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.2", "User-Agent": "candidhealth/0.42.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
359
359
  contentType: "application/json",
360
360
  requestType: "json",
361
361
  body: serializers.contracts.v2.ContractUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),