candidhealth 0.41.1 → 0.41.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 (144) 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.js +6 -6
  4. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
  5. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +4 -2
  6. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  7. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  8. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  9. package/api/resources/diagnoses/client/Client.js +3 -3
  10. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  11. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  12. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  13. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  14. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  15. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  16. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  17. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  18. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  19. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  20. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  21. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  22. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  23. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  24. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  25. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  26. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  27. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  28. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  29. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  30. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  31. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  32. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  33. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  34. package/api/resources/preEncounter/resources/common/types/Gender.d.ts +3 -1
  35. package/api/resources/preEncounter/resources/common/types/Gender.js +2 -0
  36. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +16 -0
  37. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +52 -9
  38. package/api/resources/preEncounter/resources/coverages/resources/v1/client/batchUpdatePpg.d.ts +22 -0
  39. package/api/resources/preEncounter/resources/coverages/resources/v1/client/batchUpdatePpg.js +57 -0
  40. package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -0
  41. package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +2 -1
  42. package/api/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.d.ts +10 -0
  43. package/api/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.js +5 -0
  44. package/api/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -0
  45. package/api/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -0
  46. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  47. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  48. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  49. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  50. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +3 -0
  51. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +14 -11
  52. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +1 -0
  53. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +1 -0
  54. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  55. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  56. package/api/resources/serviceFacility/client/Client.js +1 -1
  57. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  58. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  59. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  60. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  61. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  62. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +6 -6
  63. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
  64. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +4 -2
  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/common/types/Gender.d.ts +3 -1
  94. package/dist/api/resources/preEncounter/resources/common/types/Gender.js +2 -0
  95. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +16 -0
  96. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +52 -9
  97. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/batchUpdatePpg.d.ts +22 -0
  98. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/batchUpdatePpg.js +57 -0
  99. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -0
  100. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +2 -1
  101. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.d.ts +10 -0
  102. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.js +5 -0
  103. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -0
  104. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -0
  105. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  106. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  107. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  108. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  109. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +3 -0
  110. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +14 -11
  111. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +1 -0
  112. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +1 -0
  113. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  114. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  115. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  116. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  117. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  118. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  119. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +1 -0
  120. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js +1 -0
  121. package/dist/serialization/resources/preEncounter/resources/common/types/Gender.d.ts +1 -1
  122. package/dist/serialization/resources/preEncounter/resources/common/types/Gender.js +11 -1
  123. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.d.ts +18 -0
  124. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.js +49 -0
  125. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -0
  126. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -0
  127. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +1 -0
  128. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +1 -0
  129. package/dist/version.d.ts +1 -1
  130. package/dist/version.js +1 -1
  131. package/package.json +1 -1
  132. package/reference.md +82 -0
  133. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +1 -0
  134. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js +1 -0
  135. package/serialization/resources/preEncounter/resources/common/types/Gender.d.ts +1 -1
  136. package/serialization/resources/preEncounter/resources/common/types/Gender.js +11 -1
  137. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.d.ts +18 -0
  138. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.js +49 -0
  139. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -0
  140. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -0
  141. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +1 -0
  142. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +1 -0
  143. package/version.d.ts +1 -1
  144. package/version.js +1 -1
@@ -30,6 +30,7 @@ import * as CandidApi from "../../../../../../../../index";
30
30
  * socialSecurityNumber: "string",
31
31
  * biologicalSex: "FEMALE",
32
32
  * sexualOrientation: "HETEROSEXUAL",
33
+ * pronouns: ["string"],
33
34
  * race: "AMERICAN_INDIAN_OR_ALASKA_NATIVE",
34
35
  * ethnicity: "HISPANIC_OR_LATINO",
35
36
  * disabilityStatus: "DISABLED",
@@ -31,6 +31,7 @@ import * as CandidApi from "../../../../../../../../index";
31
31
  * socialSecurityNumber: "string",
32
32
  * biologicalSex: "FEMALE",
33
33
  * sexualOrientation: "HETEROSEXUAL",
34
+ * pronouns: ["string"],
34
35
  * race: "AMERICAN_INDIAN_OR_ALASKA_NATIVE",
35
36
  * ethnicity: "HISPANIC_OR_LATINO",
36
37
  * disabilityStatus: "DISABLED",
@@ -18,6 +18,8 @@ export interface MutablePatient {
18
18
  biologicalSex: CandidApi.preEncounter.Sex;
19
19
  /** The sexual orientation of the patient. */
20
20
  sexualOrientation?: CandidApi.preEncounter.SexualOrientation;
21
+ /** The pronouns of the patient. */
22
+ pronouns?: string[];
21
23
  race?: CandidApi.preEncounter.Race;
22
24
  ethnicity?: CandidApi.preEncounter.Ethnicity;
23
25
  disabilityStatus?: CandidApi.preEncounter.DisabilityStatus;
@@ -73,7 +73,7 @@ class V1 {
73
73
  const _response = yield core.fetcher({
74
74
  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).preEncounter, `/tags/v1/${encodeURIComponent(serializers.preEncounter.TagId.jsonOrThrow(id))}`),
75
75
  method: "GET",
76
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.2", "User-Agent": "candidhealth/0.41.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
77
  contentType: "application/json",
78
78
  requestType: "json",
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -123,7 +123,7 @@ class V1 {
123
123
  const _response = yield core.fetcher({
124
124
  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).preEncounter, "/tags/v1"),
125
125
  method: "GET",
126
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
126
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.2", "User-Agent": "candidhealth/0.41.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
127
127
  contentType: "application/json",
128
128
  queryParameters: _queryParams,
129
129
  requestType: "json",
@@ -165,7 +165,7 @@ class V1 {
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).preEncounter, "/tags/v1"),
167
167
  method: "POST",
168
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "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.41.2", "User-Agent": "candidhealth/0.41.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.preEncounter.tags.v1.MutableTag.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -209,7 +209,7 @@ class V1 {
209
209
  const _response = yield core.fetcher({
210
210
  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).preEncounter, `/tags/v1/${encodeURIComponent(serializers.preEncounter.TagId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
211
211
  method: "PUT",
212
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
212
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.2", "User-Agent": "candidhealth/0.41.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
213
213
  contentType: "application/json",
214
214
  requestType: "json",
215
215
  body: serializers.preEncounter.tags.v1.MutableTag.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -250,7 +250,7 @@ class V1 {
250
250
  const _response = yield core.fetcher({
251
251
  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).preEncounter, `/tags/v1/${encodeURIComponent(serializers.preEncounter.TagId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
252
252
  method: "DELETE",
253
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
253
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.2", "User-Agent": "candidhealth/0.41.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
254
254
  contentType: "application/json",
255
255
  requestType: "json",
256
256
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -82,7 +82,7 @@ class ServiceFacility {
82
82
  const _response = yield core.fetcher({
83
83
  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/service_facility/v2/${encodeURIComponent(serializers.ServiceFacilityId.jsonOrThrow(serviceFacilityId))}`),
84
84
  method: "PATCH",
85
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.2", "User-Agent": "candidhealth/0.41.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  body: serializers.EncounterServiceFacilityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -120,7 +120,7 @@ class V2 {
120
120
  const _response = yield core.fetcher({
121
121
  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/service-lines/v2"),
122
122
  method: "POST",
123
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
123
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.2", "User-Agent": "candidhealth/0.41.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
124
124
  contentType: "application/json",
125
125
  requestType: "json",
126
126
  body: serializers.serviceLines.v2.ServiceLineCreateStandalone.jsonOrThrow(request, {
@@ -209,7 +209,7 @@ class V2 {
209
209
  const _response = yield core.fetcher({
210
210
  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/service-lines/v2/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}`),
211
211
  method: "PATCH",
212
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
212
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.2", "User-Agent": "candidhealth/0.41.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
213
213
  contentType: "application/json",
214
214
  requestType: "json",
215
215
  body: serializers.serviceLines.v2.ServiceLineUpdate.jsonOrThrow(request, {
@@ -265,7 +265,7 @@ class V2 {
265
265
  const _response = yield core.fetcher({
266
266
  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/service-lines/v2/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}`),
267
267
  method: "DELETE",
268
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
268
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.2", "User-Agent": "candidhealth/0.41.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
269
269
  contentType: "application/json",
270
270
  requestType: "json",
271
271
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -71,7 +71,7 @@ class V3 {
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/tasks/v3/${encodeURIComponent(serializers.TaskId.jsonOrThrow(taskId))}/actions`),
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.1", "User-Agent": "candidhealth/0.41.1", "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.41.2", "User-Agent": "candidhealth/0.41.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,
@@ -169,7 +169,7 @@ class V3 {
169
169
  const _response = yield core.fetcher({
170
170
  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/tasks/v3"),
171
171
  method: "GET",
172
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
172
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.2", "User-Agent": "candidhealth/0.41.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
173
173
  contentType: "application/json",
174
174
  queryParameters: _queryParams,
175
175
  requestType: "json",
@@ -221,7 +221,7 @@ class V3 {
221
221
  const _response = yield core.fetcher({
222
222
  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/tasks/v3/${encodeURIComponent(serializers.TaskId.jsonOrThrow(taskId))}`),
223
223
  method: "GET",
224
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
224
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.2", "User-Agent": "candidhealth/0.41.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
225
225
  contentType: "application/json",
226
226
  requestType: "json",
227
227
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -281,7 +281,7 @@ class V3 {
281
281
  const _response = yield core.fetcher({
282
282
  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/tasks/v3"),
283
283
  method: "POST",
284
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
284
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.2", "User-Agent": "candidhealth/0.41.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
285
285
  contentType: "application/json",
286
286
  requestType: "json",
287
287
  body: serializers.tasks.v3.TaskCreateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -324,7 +324,7 @@ class V3 {
324
324
  const _response = yield core.fetcher({
325
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/tasks/v3/${encodeURIComponent(serializers.TaskId.jsonOrThrow(taskId))}`),
326
326
  method: "PATCH",
327
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "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.41.2", "User-Agent": "candidhealth/0.41.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
328
328
  contentType: "application/json",
329
329
  requestType: "json",
330
330
  body: serializers.tasks.v3.TaskUpdateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -127,7 +127,7 @@ class V1 {
127
127
  const _response = yield core.fetcher({
128
128
  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/write-offs/v1"),
129
129
  method: "GET",
130
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
130
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.2", "User-Agent": "candidhealth/0.41.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
131
131
  contentType: "application/json",
132
132
  queryParameters: _queryParams,
133
133
  requestType: "json",
@@ -167,7 +167,7 @@ class V1 {
167
167
  const _response = yield core.fetcher({
168
168
  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/write-offs/v1/${encodeURIComponent(serializers.writeOffs.v1.WriteOffId.jsonOrThrow(writeOffId))}`),
169
169
  method: "GET",
170
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
170
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.2", "User-Agent": "candidhealth/0.41.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
171
171
  contentType: "application/json",
172
172
  requestType: "json",
173
173
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -216,7 +216,7 @@ class V1 {
216
216
  const _response = yield core.fetcher({
217
217
  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/write-offs/v1"),
218
218
  method: "POST",
219
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
219
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.2", "User-Agent": "candidhealth/0.41.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
220
220
  contentType: "application/json",
221
221
  requestType: "json",
222
222
  body: serializers.writeOffs.v1.CreateWriteOffsRequest.jsonOrThrow(request, {
@@ -258,7 +258,7 @@ class V1 {
258
258
  const _response = yield core.fetcher({
259
259
  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/write-offs/v1/${encodeURIComponent(serializers.writeOffs.v1.WriteOffId.jsonOrThrow(writeOffId))}/revert`),
260
260
  method: "POST",
261
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
261
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.2", "User-Agent": "candidhealth/0.41.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
262
262
  contentType: "application/json",
263
263
  requestType: "json",
264
264
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -297,7 +297,7 @@ class V1 {
297
297
  const _response = yield core.fetcher({
298
298
  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/write-offs/v1/${encodeURIComponent(serializers.AdjustmentId.jsonOrThrow(adjustmentId))}/revert`),
299
299
  method: "POST",
300
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
300
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.2", "User-Agent": "candidhealth/0.41.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
301
301
  contentType: "application/json",
302
302
  requestType: "json",
303
303
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -336,7 +336,7 @@ class V1 {
336
336
  const _response = yield core.fetcher({
337
337
  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/write-offs/v1/${encodeURIComponent(serializers.AdjustmentId.jsonOrThrow(adjustmentId))}/revert-era-originated`),
338
338
  method: "POST",
339
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
339
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.2", "User-Agent": "candidhealth/0.41.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
340
340
  contentType: "application/json",
341
341
  requestType: "json",
342
342
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -8,6 +8,7 @@ export declare const ChargeCaptureBundleSummary: core.serialization.ObjectSchema
8
8
  export declare namespace ChargeCaptureBundleSummary {
9
9
  interface Raw {
10
10
  charge_capture_unbundled_count: number;
11
+ charge_capture_bundles_not_started_count: number;
11
12
  charge_capture_bundles_in_error_count: number;
12
13
  charge_capture_unresolved_change_count: number;
13
14
  }
@@ -40,6 +40,7 @@ exports.ChargeCaptureBundleSummary = void 0;
40
40
  const core = __importStar(require("../../../../../../core"));
41
41
  exports.ChargeCaptureBundleSummary = core.serialization.object({
42
42
  chargeCaptureUnbundledCount: core.serialization.property("charge_capture_unbundled_count", core.serialization.number()),
43
+ chargeCaptureBundlesNotStartedCount: core.serialization.property("charge_capture_bundles_not_started_count", core.serialization.number()),
43
44
  chargeCaptureBundlesInErrorCount: core.serialization.property("charge_capture_bundles_in_error_count", core.serialization.number()),
44
45
  chargeCaptureUnresolvedChangeCount: core.serialization.property("charge_capture_unresolved_change_count", core.serialization.number()),
45
46
  });
@@ -6,5 +6,5 @@ import * as CandidApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  export declare const Gender: core.serialization.Schema<serializers.preEncounter.Gender.Raw, CandidApi.preEncounter.Gender>;
8
8
  export declare namespace Gender {
9
- type Raw = "MAN" | "WOMAN" | "NON_BINARY" | "TWO_SPIRIT" | "OTHER" | "UNKNOWN" | "REFUSED";
9
+ type Raw = "MAN" | "WOMAN" | "NON_BINARY" | "TWO_SPIRIT" | "FEMALE_TO_MALE" | "MALE_TO_FEMALE" | "OTHER" | "UNKNOWN" | "REFUSED";
10
10
  }
@@ -38,4 +38,14 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Gender = void 0;
40
40
  const core = __importStar(require("../../../../../../core"));
41
- exports.Gender = core.serialization.enum_(["MAN", "WOMAN", "NON_BINARY", "TWO_SPIRIT", "OTHER", "UNKNOWN", "REFUSED"]);
41
+ exports.Gender = core.serialization.enum_([
42
+ "MAN",
43
+ "WOMAN",
44
+ "NON_BINARY",
45
+ "TWO_SPIRIT",
46
+ "FEMALE_TO_MALE",
47
+ "MALE_TO_FEMALE",
48
+ "OTHER",
49
+ "UNKNOWN",
50
+ "REFUSED",
51
+ ]);
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../index";
5
+ import * as CandidApi from "../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../core";
7
+ import { PayerPlanGroupId } from "../../../../common/types/PayerPlanGroupId";
8
+ import { PayerId } from "../../../../common/types/PayerId";
9
+ import { NetworkType } from "./NetworkType";
10
+ export declare const PayerPlanGroupFields: core.serialization.ObjectSchema<serializers.preEncounter.coverages.v1.PayerPlanGroupFields.Raw, CandidApi.preEncounter.coverages.v1.PayerPlanGroupFields>;
11
+ export declare namespace PayerPlanGroupFields {
12
+ interface Raw {
13
+ payer_plan_group_id: PayerPlanGroupId.Raw;
14
+ payer_id: PayerId.Raw;
15
+ payer_name: string;
16
+ plan_type: NetworkType.Raw;
17
+ }
18
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.PayerPlanGroupFields = void 0;
40
+ const core = __importStar(require("../../../../../../../../core"));
41
+ const PayerPlanGroupId_1 = require("../../../../common/types/PayerPlanGroupId");
42
+ const PayerId_1 = require("../../../../common/types/PayerId");
43
+ const NetworkType_1 = require("./NetworkType");
44
+ exports.PayerPlanGroupFields = core.serialization.object({
45
+ payerPlanGroupId: core.serialization.property("payer_plan_group_id", PayerPlanGroupId_1.PayerPlanGroupId),
46
+ payerId: core.serialization.property("payer_id", PayerId_1.PayerId),
47
+ payerName: core.serialization.property("payer_name", core.serialization.string()),
48
+ planType: core.serialization.property("plan_type", NetworkType_1.NetworkType),
49
+ });
@@ -1,3 +1,4 @@
1
+ export * from "./PayerPlanGroupFields";
1
2
  export * from "./CoveragesPage";
2
3
  export * from "./LatestEligibilityCheck";
3
4
  export * from "./EligibilityCheckMetadata";
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./PayerPlanGroupFields"), exports);
17
18
  __exportStar(require("./CoveragesPage"), exports);
18
19
  __exportStar(require("./LatestEligibilityCheck"), exports);
19
20
  __exportStar(require("./EligibilityCheckMetadata"), exports);
@@ -38,6 +38,7 @@ export declare namespace MutablePatient {
38
38
  social_security_number?: string | null;
39
39
  biological_sex: Sex.Raw;
40
40
  sexual_orientation?: SexualOrientation.Raw | null;
41
+ pronouns?: string[] | null;
41
42
  race?: Race.Raw | null;
42
43
  ethnicity?: Ethnicity.Raw | null;
43
44
  disability_status?: DisabilityStatus.Raw | null;
@@ -70,6 +70,7 @@ exports.MutablePatient = core.serialization.object({
70
70
  socialSecurityNumber: core.serialization.property("social_security_number", core.serialization.string().optional()),
71
71
  biologicalSex: core.serialization.property("biological_sex", Sex_1.Sex),
72
72
  sexualOrientation: core.serialization.property("sexual_orientation", SexualOrientation_1.SexualOrientation.optional()),
73
+ pronouns: core.serialization.list(core.serialization.string()).optional(),
73
74
  race: Race_1.Race.optional(),
74
75
  ethnicity: Ethnicity_1.Ethnicity.optional(),
75
76
  disabilityStatus: core.serialization.property("disability_status", DisabilityStatus_1.DisabilityStatus.optional()),
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.41.1";
1
+ export declare const SDK_VERSION = "0.41.2";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.41.1";
4
+ exports.SDK_VERSION = "0.41.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "candidhealth",
3
- "version": "0.41.1",
3
+ "version": "0.41.2",
4
4
  "private": false,
5
5
  "repository": "https://github.com/candidhealth/candid-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -10964,6 +10964,85 @@ await client.preEncounter.coverages.v1.scan({
10964
10964
  </dl>
10965
10965
  </details>
10966
10966
 
10967
+ <details><summary><code>client.preEncounter.coverages.v1.<a href="/src/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.ts">batchUpdatePpg</a>(ppgId, { ...params }) -> core.APIResponse<void, CandidApi.preEncounter.coverages.v1.batchUpdatePpg.Error></code></summary>
10968
+ <dl>
10969
+ <dd>
10970
+
10971
+ #### 📝 Description
10972
+
10973
+ <dl>
10974
+ <dd>
10975
+
10976
+ <dl>
10977
+ <dd>
10978
+
10979
+ Finds all coverages associated with the given ppg_id and updates the ppg_fields for each coverage.
10980
+
10981
+ </dd>
10982
+ </dl>
10983
+ </dd>
10984
+ </dl>
10985
+
10986
+ #### 🔌 Usage
10987
+
10988
+ <dl>
10989
+ <dd>
10990
+
10991
+ <dl>
10992
+ <dd>
10993
+
10994
+ ```typescript
10995
+ await client.preEncounter.coverages.v1.batchUpdatePpg(
10996
+ CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
10997
+ {
10998
+ payerPlanGroupId: CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
10999
+ payerId: CandidApi.PayerId("string"),
11000
+ payerName: "string",
11001
+ planType: "09",
11002
+ },
11003
+ );
11004
+ ```
11005
+
11006
+ </dd>
11007
+ </dl>
11008
+ </dd>
11009
+ </dl>
11010
+
11011
+ #### ⚙️ Parameters
11012
+
11013
+ <dl>
11014
+ <dd>
11015
+
11016
+ <dl>
11017
+ <dd>
11018
+
11019
+ **ppgId:** `CandidApi.PayerPlanGroupId`
11020
+
11021
+ </dd>
11022
+ </dl>
11023
+
11024
+ <dl>
11025
+ <dd>
11026
+
11027
+ **request:** `CandidApi.PayerPlanGroupFields`
11028
+
11029
+ </dd>
11030
+ </dl>
11031
+
11032
+ <dl>
11033
+ <dd>
11034
+
11035
+ **requestOptions:** `V1.RequestOptions`
11036
+
11037
+ </dd>
11038
+ </dl>
11039
+ </dd>
11040
+ </dl>
11041
+
11042
+ </dd>
11043
+ </dl>
11044
+ </details>
11045
+
10967
11046
  <details><summary><code>client.preEncounter.coverages.v1.<a href="/src/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.ts">checkEligibility</a>(id, { ...params }) -> core.APIResponse<CandidApi.EligibilityCheckMetadata, CandidApi.preEncounter.coverages.v1.checkEligibility.Error></code></summary>
10968
11047
  <dl>
10969
11048
  <dd>
@@ -12058,6 +12137,7 @@ await client.preEncounter.patients.v1.create({
12058
12137
  socialSecurityNumber: "string",
12059
12138
  biologicalSex: "FEMALE",
12060
12139
  sexualOrientation: "HETEROSEXUAL",
12140
+ pronouns: ["string"],
12061
12141
  race: "AMERICAN_INDIAN_OR_ALASKA_NATIVE",
12062
12142
  ethnicity: "HISPANIC_OR_LATINO",
12063
12143
  disabilityStatus: "DISABLED",
@@ -12329,6 +12409,7 @@ await client.preEncounter.patients.v1.createWithMrn({
12329
12409
  socialSecurityNumber: "string",
12330
12410
  biologicalSex: "FEMALE",
12331
12411
  sexualOrientation: "HETEROSEXUAL",
12412
+ pronouns: ["string"],
12332
12413
  race: "AMERICAN_INDIAN_OR_ALASKA_NATIVE",
12333
12414
  ethnicity: "HISPANIC_OR_LATINO",
12334
12415
  disabilityStatus: "DISABLED",
@@ -12857,6 +12938,7 @@ await client.preEncounter.patients.v1.update(CandidApi.PatientId("string"), "str
12857
12938
  socialSecurityNumber: "string",
12858
12939
  biologicalSex: "FEMALE",
12859
12940
  sexualOrientation: "HETEROSEXUAL",
12941
+ pronouns: ["string"],
12860
12942
  race: "AMERICAN_INDIAN_OR_ALASKA_NATIVE",
12861
12943
  ethnicity: "HISPANIC_OR_LATINO",
12862
12944
  disabilityStatus: "DISABLED",
@@ -8,6 +8,7 @@ export declare const ChargeCaptureBundleSummary: core.serialization.ObjectSchema
8
8
  export declare namespace ChargeCaptureBundleSummary {
9
9
  interface Raw {
10
10
  charge_capture_unbundled_count: number;
11
+ charge_capture_bundles_not_started_count: number;
11
12
  charge_capture_bundles_in_error_count: number;
12
13
  charge_capture_unresolved_change_count: number;
13
14
  }
@@ -40,6 +40,7 @@ exports.ChargeCaptureBundleSummary = void 0;
40
40
  const core = __importStar(require("../../../../../../core"));
41
41
  exports.ChargeCaptureBundleSummary = core.serialization.object({
42
42
  chargeCaptureUnbundledCount: core.serialization.property("charge_capture_unbundled_count", core.serialization.number()),
43
+ chargeCaptureBundlesNotStartedCount: core.serialization.property("charge_capture_bundles_not_started_count", core.serialization.number()),
43
44
  chargeCaptureBundlesInErrorCount: core.serialization.property("charge_capture_bundles_in_error_count", core.serialization.number()),
44
45
  chargeCaptureUnresolvedChangeCount: core.serialization.property("charge_capture_unresolved_change_count", core.serialization.number()),
45
46
  });
@@ -6,5 +6,5 @@ import * as CandidApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  export declare const Gender: core.serialization.Schema<serializers.preEncounter.Gender.Raw, CandidApi.preEncounter.Gender>;
8
8
  export declare namespace Gender {
9
- type Raw = "MAN" | "WOMAN" | "NON_BINARY" | "TWO_SPIRIT" | "OTHER" | "UNKNOWN" | "REFUSED";
9
+ type Raw = "MAN" | "WOMAN" | "NON_BINARY" | "TWO_SPIRIT" | "FEMALE_TO_MALE" | "MALE_TO_FEMALE" | "OTHER" | "UNKNOWN" | "REFUSED";
10
10
  }
@@ -38,4 +38,14 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Gender = void 0;
40
40
  const core = __importStar(require("../../../../../../core"));
41
- exports.Gender = core.serialization.enum_(["MAN", "WOMAN", "NON_BINARY", "TWO_SPIRIT", "OTHER", "UNKNOWN", "REFUSED"]);
41
+ exports.Gender = core.serialization.enum_([
42
+ "MAN",
43
+ "WOMAN",
44
+ "NON_BINARY",
45
+ "TWO_SPIRIT",
46
+ "FEMALE_TO_MALE",
47
+ "MALE_TO_FEMALE",
48
+ "OTHER",
49
+ "UNKNOWN",
50
+ "REFUSED",
51
+ ]);
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../index";
5
+ import * as CandidApi from "../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../core";
7
+ import { PayerPlanGroupId } from "../../../../common/types/PayerPlanGroupId";
8
+ import { PayerId } from "../../../../common/types/PayerId";
9
+ import { NetworkType } from "./NetworkType";
10
+ export declare const PayerPlanGroupFields: core.serialization.ObjectSchema<serializers.preEncounter.coverages.v1.PayerPlanGroupFields.Raw, CandidApi.preEncounter.coverages.v1.PayerPlanGroupFields>;
11
+ export declare namespace PayerPlanGroupFields {
12
+ interface Raw {
13
+ payer_plan_group_id: PayerPlanGroupId.Raw;
14
+ payer_id: PayerId.Raw;
15
+ payer_name: string;
16
+ plan_type: NetworkType.Raw;
17
+ }
18
+ }