candidhealth 0.42.2 → 0.42.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) 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 +17 -2
  4. package/api/resources/chargeCapture/resources/v1/client/Client.js +111 -11
  5. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +84 -4
  6. package/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +1 -0
  7. package/api/resources/chargeCapture/resources/v1/types/ChargeCapturePage.d.ts +1 -0
  8. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +2 -1
  9. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +12 -8
  10. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +8 -2
  11. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -1
  12. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +1 -1
  13. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  14. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  15. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  16. package/api/resources/diagnoses/client/Client.js +3 -3
  17. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  18. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  19. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  20. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  21. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  22. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  23. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  24. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  25. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  26. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  27. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  28. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  29. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  30. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  31. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  32. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  33. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  34. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  35. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  36. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  37. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  38. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  39. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  40. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  41. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
  42. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  43. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  44. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  45. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  46. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  47. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  48. package/api/resources/serviceFacility/client/Client.js +1 -1
  49. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  50. package/api/resources/superbills/resources/v1/client/Client.js +1 -1
  51. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  52. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  53. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  54. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  55. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +17 -2
  56. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +111 -11
  57. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +84 -4
  58. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +1 -0
  59. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapturePage.d.ts +1 -0
  60. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +2 -1
  61. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +12 -8
  62. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +8 -2
  63. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -1
  64. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +1 -1
  65. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  66. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  67. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  68. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  69. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  70. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  71. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  72. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  73. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  74. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  75. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  76. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  77. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  78. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  79. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  80. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  81. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  82. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  83. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  84. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  85. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  86. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  87. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  88. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  89. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  90. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  91. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  92. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  93. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
  94. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  95. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  96. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  97. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  98. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  99. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  100. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  101. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  102. package/dist/api/resources/superbills/resources/v1/client/Client.js +1 -1
  103. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  104. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  105. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +1 -0
  106. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +1 -0
  107. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePage.d.ts +1 -0
  108. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePage.js +1 -0
  109. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -1
  110. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +1 -1
  111. package/dist/version.d.ts +1 -1
  112. package/dist/version.js +1 -1
  113. package/package.json +1 -1
  114. package/reference.md +18 -2
  115. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +1 -0
  116. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +1 -0
  117. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePage.d.ts +1 -0
  118. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePage.js +1 -0
  119. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -1
  120. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +1 -1
  121. package/version.d.ts +1 -1
  122. 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.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),
95
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.4", "User-Agent": "candidhealth/0.42.4", "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.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),
77
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.4", "User-Agent": "candidhealth/0.42.4", "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.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),
117
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.4", "User-Agent": "candidhealth/0.42.4", "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.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),
168
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.4", "User-Agent": "candidhealth/0.42.4", "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, {
@@ -83,7 +83,8 @@ export declare class V1 {
83
83
  * patientExternalId: "string",
84
84
  * status: "planned",
85
85
  * chargeExternalId: "string",
86
- * dateOfService: "2023-01-15",
86
+ * dateOfServiceMin: "2023-01-15",
87
+ * dateOfServiceMax: "2023-01-15",
87
88
  * claimIds: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
88
89
  * bundleId: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
89
90
  * bundleIds: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
@@ -94,7 +95,21 @@ export declare class V1 {
94
95
  * renderingProviderNames: "string",
95
96
  * supervisingProviderNpis: "string",
96
97
  * supervisingProviderNames: "string",
97
- * excludeChargesLinkedToClaims: true
98
+ * excludeChargesLinkedToClaims: true,
99
+ * patientExternalIdRankedSort: "string",
100
+ * statusRankedSort: "planned",
101
+ * chargeExternalIdRankedSort: "string",
102
+ * dateOfServiceMinRankedSort: "2023-01-15",
103
+ * dateOfServiceMaxRankedSort: "2023-01-15",
104
+ * claimIdsRankedSort: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
105
+ * bundleIdsRankedSort: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
106
+ * billingProviderNpisRankedSort: "string",
107
+ * serviceFacilityNameRankedSort: "string",
108
+ * primaryPayerIdsRankedSort: "string",
109
+ * renderingProviderNpisRankedSort: "string",
110
+ * renderingProviderNamesRankedSort: "string",
111
+ * supervisingProviderNpisRankedSort: "string",
112
+ * supervisingProviderNamesRankedSort: "string"
98
113
  * })
99
114
  */
100
115
  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.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),
80
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.4", "User-Agent": "candidhealth/0.42.4", "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.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),
138
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.4", "User-Agent": "candidhealth/0.42.4", "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.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),
192
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.4", "User-Agent": "candidhealth/0.42.4", "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.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),
250
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.4", "User-Agent": "candidhealth/0.42.4", "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,7 +284,8 @@ class V1 {
284
284
  * patientExternalId: "string",
285
285
  * status: "planned",
286
286
  * chargeExternalId: "string",
287
- * dateOfService: "2023-01-15",
287
+ * dateOfServiceMin: "2023-01-15",
288
+ * dateOfServiceMax: "2023-01-15",
288
289
  * claimIds: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
289
290
  * bundleId: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
290
291
  * bundleIds: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
@@ -295,13 +296,27 @@ class V1 {
295
296
  * renderingProviderNames: "string",
296
297
  * supervisingProviderNpis: "string",
297
298
  * supervisingProviderNames: "string",
298
- * excludeChargesLinkedToClaims: true
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"
299
314
  * })
300
315
  */
301
316
  getAll() {
302
317
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
303
318
  var _a, _b;
304
- const { limit, sort, sortDirection, pageToken, patientExternalId, status, chargeExternalId, dateOfService, claimIds, bundleId, bundleIds, billingProviderNpis, serviceFacilityName, primaryPayerIds, renderingProviderNpis, renderingProviderNames, supervisingProviderNpis, supervisingProviderNames, excludeChargesLinkedToClaims, } = request;
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;
305
320
  const _queryParams = {};
306
321
  if (limit != null) {
307
322
  _queryParams["limit"] = limit.toString();
@@ -330,8 +345,11 @@ class V1 {
330
345
  if (chargeExternalId != null) {
331
346
  _queryParams["charge_external_id"] = chargeExternalId;
332
347
  }
333
- if (dateOfService != null) {
334
- _queryParams["date_of_service"] = dateOfService;
348
+ if (dateOfServiceMin != null) {
349
+ _queryParams["date_of_service_min"] = dateOfServiceMin;
350
+ }
351
+ if (dateOfServiceMax != null) {
352
+ _queryParams["date_of_service_max"] = dateOfServiceMax;
335
353
  }
336
354
  if (claimIds != null) {
337
355
  if (Array.isArray(claimIds)) {
@@ -406,10 +424,92 @@ class V1 {
406
424
  if (excludeChargesLinkedToClaims != null) {
407
425
  _queryParams["exclude_charges_linked_to_claims"] = excludeChargesLinkedToClaims.toString();
408
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
+ }
508
+ }
409
509
  const _response = yield core.fetcher({
410
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"),
411
511
  method: "GET",
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),
512
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.4", "User-Agent": "candidhealth/0.42.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
413
513
  contentType: "application/json",
414
514
  queryParameters: _queryParams,
415
515
  requestType: "json",
@@ -450,7 +550,7 @@ class V1 {
450
550
  const _response = yield core.fetcher({
451
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))}`),
452
552
  method: "PATCH",
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),
553
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.4", "User-Agent": "candidhealth/0.42.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
454
554
  contentType: "application/json",
455
555
  requestType: "json",
456
556
  body: serializers.chargeCapture.v1.ChargeCapturePostBilledChangeUpdate.jsonOrThrow(request, {
@@ -12,7 +12,8 @@ import * as CandidApi from "../../../../../../index";
12
12
  * patientExternalId: "string",
13
13
  * status: "planned",
14
14
  * chargeExternalId: "string",
15
- * dateOfService: "2023-01-15",
15
+ * dateOfServiceMin: "2023-01-15",
16
+ * dateOfServiceMax: "2023-01-15",
16
17
  * claimIds: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
17
18
  * bundleId: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
18
19
  * bundleIds: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
@@ -23,7 +24,21 @@ import * as CandidApi from "../../../../../../index";
23
24
  * renderingProviderNames: "string",
24
25
  * supervisingProviderNpis: "string",
25
26
  * supervisingProviderNames: "string",
26
- * excludeChargesLinkedToClaims: true
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"
27
42
  * }
28
43
  */
29
44
  export interface GetAllChargeCapturesRequest {
@@ -58,7 +73,12 @@ export interface GetAllChargeCapturesRequest {
58
73
  * Date formatted as YYYY-MM-DD; eg: 2019-08-24.
59
74
  * This date must be the local date in the timezone where the service occurred.
60
75
  */
61
- dateOfService?: string;
76
+ dateOfServiceMin?: string;
77
+ /**
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;
62
82
  /**
63
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.
64
84
  */
@@ -100,7 +120,67 @@ export interface GetAllChargeCapturesRequest {
100
120
  */
101
121
  supervisingProviderNames?: string | string[];
102
122
  /**
103
- * Whether to exclude charge captures which are part of a bundle that has a created claim.
123
+ * Whether to exclude charge captures which are part of a claim creation.
104
124
  */
105
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.
184
+ */
185
+ supervisingProviderNamesRankedSort?: string | string[];
106
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;
@@ -4,4 +4,5 @@
4
4
  import * as CandidApi from "../../../../../index";
5
5
  export interface ChargeCapturePage extends CandidApi.ResourcePage {
6
6
  items: CandidApi.chargeCapture.v1.ChargeCapture[];
7
+ itemCount: number;
7
8
  }
@@ -62,7 +62,8 @@ export declare class V1 {
62
62
  * bundleStatus: "not-started",
63
63
  * chargeStatus: "planned",
64
64
  * chargeExternalId: "string",
65
- * dateOfService: "2023-01-15",
65
+ * dateOfServiceMin: "2023-01-15",
66
+ * dateOfServiceMax: "2023-01-15",
66
67
  * claimIds: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
67
68
  * bundleIds: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
68
69
  * billingProviderNpis: "string",
@@ -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.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),
74
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.4", "User-Agent": "candidhealth/0.42.4", "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.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),
110
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.4", "User-Agent": "candidhealth/0.42.4", "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.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),
147
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.4", "User-Agent": "candidhealth/0.42.4", "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,7 +196,8 @@ class V1 {
196
196
  * bundleStatus: "not-started",
197
197
  * chargeStatus: "planned",
198
198
  * chargeExternalId: "string",
199
- * dateOfService: "2023-01-15",
199
+ * dateOfServiceMin: "2023-01-15",
200
+ * dateOfServiceMax: "2023-01-15",
200
201
  * claimIds: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
201
202
  * bundleIds: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
202
203
  * billingProviderNpis: "string",
@@ -212,7 +213,7 @@ class V1 {
212
213
  getAll() {
213
214
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
214
215
  var _a, _b;
215
- const { limit, sort, sortDirection, pageToken, patientExternalId, bundleStatus, chargeStatus, chargeExternalId, dateOfService, claimIds, bundleIds, billingProviderNpis, serviceFacilityName, primaryPayerIds, renderingProviderNpis, renderingProviderNames, supervisingProviderNpis, supervisingProviderNames, hasChargeCaptureUpdates, } = request;
216
+ const { limit, sort, sortDirection, pageToken, patientExternalId, bundleStatus, chargeStatus, chargeExternalId, dateOfServiceMin, dateOfServiceMax, claimIds, bundleIds, billingProviderNpis, serviceFacilityName, primaryPayerIds, renderingProviderNpis, renderingProviderNames, supervisingProviderNpis, supervisingProviderNames, hasChargeCaptureUpdates, } = request;
216
217
  const _queryParams = {};
217
218
  if (limit != null) {
218
219
  _queryParams["limit"] = limit.toString();
@@ -244,8 +245,11 @@ class V1 {
244
245
  if (chargeExternalId != null) {
245
246
  _queryParams["charge_external_id"] = chargeExternalId;
246
247
  }
247
- if (dateOfService != null) {
248
- _queryParams["date_of_service"] = dateOfService;
248
+ if (dateOfServiceMin != null) {
249
+ _queryParams["date_of_service_min"] = dateOfServiceMin;
250
+ }
251
+ if (dateOfServiceMax != null) {
252
+ _queryParams["date_of_service_max"] = dateOfServiceMax;
249
253
  }
250
254
  if (claimIds != null) {
251
255
  if (Array.isArray(claimIds)) {
@@ -320,7 +324,7 @@ class V1 {
320
324
  const _response = yield core.fetcher({
321
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"),
322
326
  method: "GET",
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),
327
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.4", "User-Agent": "candidhealth/0.42.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
324
328
  contentType: "application/json",
325
329
  queryParameters: _queryParams,
326
330
  requestType: "json",
@@ -13,7 +13,8 @@ import * as CandidApi from "../../../../../../index";
13
13
  * bundleStatus: "not-started",
14
14
  * chargeStatus: "planned",
15
15
  * chargeExternalId: "string",
16
- * dateOfService: "2023-01-15",
16
+ * dateOfServiceMin: "2023-01-15",
17
+ * dateOfServiceMax: "2023-01-15",
17
18
  * claimIds: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
18
19
  * bundleIds: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
19
20
  * billingProviderNpis: "string",
@@ -62,7 +63,12 @@ export interface GetAllChargeCaptureBundlesRequest {
62
63
  * Date formatted as YYYY-MM-DD; eg: 2019-08-24.
63
64
  * This date must be the local date in the timezone where the service occurred.
64
65
  */
65
- dateOfService?: string;
66
+ dateOfServiceMin?: string;
67
+ /**
68
+ * Date formatted as YYYY-MM-DD; eg: 2019-08-24.
69
+ * This date must be the local date in the timezone where the service occurred.
70
+ */
71
+ dateOfServiceMax?: string;
66
72
  /**
67
73
  * 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
74
  */
@@ -11,7 +11,7 @@ export interface ChargeCaptureBundle {
11
11
  * A dictionary of characteristics that are used to group charge captures together based on the bundling configuration.
12
12
  * Example: {"service_facility.npi": "99999999", "date_of_service": "2023-01-01"}
13
13
  */
14
- characteristics: Record<string, string>;
14
+ characteristics: Record<string, string | undefined>;
15
15
  /** All the underlying ChargeCaptures that are present in a ChargeCaptureBundle. */
16
16
  chargeCaptures: CandidApi.chargeCapture.v1.ChargeCapture[];
17
17
  /**
@@ -2,7 +2,7 @@
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 part of a bundle with a created claim. */
5
+ /** The count of charge captures which are not part of a claim creation. */
6
6
  chargeCaptureChargesNotLinkedToClaimsCount: number;
7
7
  /** The count of charge capture bundles that have a bundle status of NOT_STARTED. */
8
8
  chargeCaptureBundlesNotStartedCount: number;
@@ -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.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),
74
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.4", "User-Agent": "candidhealth/0.42.4", "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.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),
173
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.4", "User-Agent": "candidhealth/0.42.4", "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.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),
240
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.4", "User-Agent": "candidhealth/0.42.4", "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.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),
278
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.4", "User-Agent": "candidhealth/0.42.4", "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.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),
358
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.4", "User-Agent": "candidhealth/0.42.4", "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" }),