candidhealth 1.4.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. package/api/resources/auth/resources/default/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 +33 -0
  4. package/api/resources/chargeCapture/resources/v1/client/Client.js +90 -5
  5. package/api/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.d.ts +58 -0
  6. package/api/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.js +123 -0
  7. package/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  8. package/api/resources/chargeCapture/resources/v1/client/index.js +2 -1
  9. package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.d.ts +30 -0
  10. package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.js +5 -0
  11. package/api/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  12. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
  13. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  14. package/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +1 -1
  15. package/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +1 -1
  16. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  17. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  18. package/api/resources/diagnoses/client/Client.js +4 -3
  19. package/api/resources/diagnoses/client/update.d.ts +7 -1
  20. package/api/resources/diagnoses/client/update.js +11 -0
  21. package/api/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.d.ts +9 -0
  22. package/api/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.js +5 -0
  23. package/api/resources/diagnoses/types/index.d.ts +1 -0
  24. package/api/resources/diagnoses/types/index.js +1 -0
  25. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  26. package/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
  27. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  28. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  29. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  30. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  31. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  32. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  33. package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +18 -0
  34. package/api/resources/feeSchedules/resources/v3/client/Client.js +60 -10
  35. package/api/resources/feeSchedules/resources/v3/client/hardDeleteRates.d.ts +22 -0
  36. package/api/resources/feeSchedules/resources/v3/client/hardDeleteRates.js +57 -0
  37. package/api/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
  38. package/api/resources/feeSchedules/resources/v3/client/index.js +2 -1
  39. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  40. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  41. package/api/resources/individual/types/SubscriberCreate.d.ts +1 -0
  42. package/api/resources/individual/types/SubscriberCreateOptional.d.ts +1 -0
  43. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  44. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  45. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  46. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  47. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  48. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  49. package/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +15 -0
  50. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +79 -7
  51. package/api/resources/nonInsurancePayers/resources/v1/client/getCategories.d.ts +22 -0
  52. package/api/resources/nonInsurancePayers/resources/v1/client/getCategories.js +57 -0
  53. package/api/resources/nonInsurancePayers/resources/v1/client/index.d.ts +1 -0
  54. package/api/resources/nonInsurancePayers/resources/v1/client/index.js +2 -1
  55. package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +15 -0
  56. package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.d.ts +22 -0
  57. package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.js +5 -0
  58. package/api/resources/nonInsurancePayers/resources/v1/client/requests/index.d.ts +1 -0
  59. package/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.d.ts +7 -0
  60. package/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.js +5 -0
  61. package/api/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
  62. package/api/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
  63. package/api/resources/organizationProviders/resources/v3/client/Client.js +15 -5
  64. package/api/resources/organizationProviders/resources/v3/client/requests/GetAllOrganizationProvidersRequestV2.d.ts +4 -0
  65. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +16 -6
  66. package/api/resources/organizationServiceFacilities/resources/v2/client/requests/GetAllOrganizationServiceFacilitiesRequest.d.ts +4 -0
  67. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  68. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  69. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  70. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  71. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +1 -1
  72. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +8 -8
  73. package/api/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +1 -0
  74. package/api/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -0
  75. package/api/resources/preEncounter/resources/common/types/BaseModel.d.ts +1 -1
  76. package/api/resources/preEncounter/resources/common/types/FilterQueryString.d.ts +1 -1
  77. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +1 -1
  78. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +11 -11
  79. package/api/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +1 -1
  80. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +1 -7
  81. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +7 -13
  82. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +3 -2
  83. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  84. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  85. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  86. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +1 -1
  87. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +12 -12
  88. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  89. package/api/resources/serviceFacility/client/Client.js +1 -1
  90. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  91. package/api/resources/superbills/resources/v1/client/Client.js +1 -1
  92. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  93. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  94. package/dist/api/resources/auth/resources/default/client/Client.js +1 -1
  95. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  96. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +33 -0
  97. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +90 -5
  98. package/dist/api/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.d.ts +58 -0
  99. package/dist/api/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.js +123 -0
  100. package/dist/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  101. package/dist/api/resources/chargeCapture/resources/v1/client/index.js +2 -1
  102. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.d.ts +30 -0
  103. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.js +5 -0
  104. package/dist/api/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  105. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
  106. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  107. package/dist/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +1 -1
  108. package/dist/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +1 -1
  109. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  110. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  111. package/dist/api/resources/diagnoses/client/Client.js +4 -3
  112. package/dist/api/resources/diagnoses/client/update.d.ts +7 -1
  113. package/dist/api/resources/diagnoses/client/update.js +11 -0
  114. package/dist/api/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.d.ts +9 -0
  115. package/dist/api/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.js +5 -0
  116. package/dist/api/resources/diagnoses/types/index.d.ts +1 -0
  117. package/dist/api/resources/diagnoses/types/index.js +1 -0
  118. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  119. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
  120. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  121. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  122. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  123. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  124. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  125. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  126. package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +18 -0
  127. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +60 -10
  128. package/dist/api/resources/feeSchedules/resources/v3/client/hardDeleteRates.d.ts +22 -0
  129. package/dist/api/resources/feeSchedules/resources/v3/client/hardDeleteRates.js +57 -0
  130. package/dist/api/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
  131. package/dist/api/resources/feeSchedules/resources/v3/client/index.js +2 -1
  132. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  133. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  134. package/dist/api/resources/individual/types/SubscriberCreate.d.ts +1 -0
  135. package/dist/api/resources/individual/types/SubscriberCreateOptional.d.ts +1 -0
  136. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  137. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  138. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  139. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  140. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  141. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  142. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +15 -0
  143. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +79 -7
  144. package/dist/api/resources/nonInsurancePayers/resources/v1/client/getCategories.d.ts +22 -0
  145. package/dist/api/resources/nonInsurancePayers/resources/v1/client/getCategories.js +57 -0
  146. package/dist/api/resources/nonInsurancePayers/resources/v1/client/index.d.ts +1 -0
  147. package/dist/api/resources/nonInsurancePayers/resources/v1/client/index.js +2 -1
  148. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +15 -0
  149. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.d.ts +22 -0
  150. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.js +5 -0
  151. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/index.d.ts +1 -0
  152. package/dist/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.d.ts +7 -0
  153. package/dist/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.js +5 -0
  154. package/dist/api/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
  155. package/dist/api/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
  156. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +15 -5
  157. package/dist/api/resources/organizationProviders/resources/v3/client/requests/GetAllOrganizationProvidersRequestV2.d.ts +4 -0
  158. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +16 -6
  159. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/requests/GetAllOrganizationServiceFacilitiesRequest.d.ts +4 -0
  160. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  161. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  162. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  163. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  164. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +1 -1
  165. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +8 -8
  166. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +1 -0
  167. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -0
  168. package/dist/api/resources/preEncounter/resources/common/types/BaseModel.d.ts +1 -1
  169. package/dist/api/resources/preEncounter/resources/common/types/FilterQueryString.d.ts +1 -1
  170. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +1 -1
  171. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +11 -11
  172. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +1 -1
  173. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +1 -7
  174. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +7 -13
  175. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +3 -2
  176. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  177. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  178. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  179. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +1 -1
  180. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +12 -12
  181. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  182. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  183. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  184. package/dist/api/resources/superbills/resources/v1/client/Client.js +1 -1
  185. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  186. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  187. package/dist/serialization/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.d.ts +40 -0
  188. package/dist/serialization/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.js +101 -0
  189. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  190. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.js +2 -1
  191. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.d.ts +23 -0
  192. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.js +54 -0
  193. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  194. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/index.js +3 -1
  195. package/dist/serialization/resources/diagnoses/client/update.d.ts +6 -1
  196. package/dist/serialization/resources/diagnoses/client/update.js +6 -0
  197. package/dist/serialization/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.d.ts +15 -0
  198. package/dist/serialization/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.js +46 -0
  199. package/dist/serialization/resources/diagnoses/types/index.d.ts +1 -0
  200. package/dist/serialization/resources/diagnoses/types/index.js +1 -0
  201. package/dist/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRates.d.ts +9 -0
  202. package/dist/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRates.js +41 -0
  203. package/dist/serialization/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
  204. package/dist/serialization/resources/feeSchedules/resources/v3/client/index.js +2 -1
  205. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.d.ts +13 -0
  206. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.js +46 -0
  207. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
  208. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
  209. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +1 -0
  210. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.js +1 -0
  211. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +2 -0
  212. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.js +2 -0
  213. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +3 -2
  214. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.js +3 -2
  215. package/dist/version.d.ts +1 -1
  216. package/dist/version.js +1 -1
  217. package/package.json +1 -1
  218. package/reference.md +233 -10
  219. package/serialization/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.d.ts +40 -0
  220. package/serialization/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.js +101 -0
  221. package/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  222. package/serialization/resources/chargeCapture/resources/v1/client/index.js +2 -1
  223. package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.d.ts +23 -0
  224. package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.js +54 -0
  225. package/serialization/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  226. package/serialization/resources/chargeCapture/resources/v1/client/requests/index.js +3 -1
  227. package/serialization/resources/diagnoses/client/update.d.ts +6 -1
  228. package/serialization/resources/diagnoses/client/update.js +6 -0
  229. package/serialization/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.d.ts +15 -0
  230. package/serialization/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.js +46 -0
  231. package/serialization/resources/diagnoses/types/index.d.ts +1 -0
  232. package/serialization/resources/diagnoses/types/index.js +1 -0
  233. package/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRates.d.ts +9 -0
  234. package/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRates.js +41 -0
  235. package/serialization/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
  236. package/serialization/resources/feeSchedules/resources/v3/client/index.js +2 -1
  237. package/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.d.ts +13 -0
  238. package/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.js +46 -0
  239. package/serialization/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
  240. package/serialization/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
  241. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +1 -0
  242. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.js +1 -0
  243. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +2 -0
  244. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.js +2 -0
  245. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +3 -2
  246. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.js +3 -2
  247. package/version.d.ts +1 -1
  248. package/version.js +1 -1
@@ -106,7 +106,7 @@ class Default {
106
106
  const _response = yield core.fetcher({
107
107
  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"),
108
108
  method: "POST",
109
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
109
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.6.0", "User-Agent": "candidhealth/1.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
110
110
  contentType: "application/json",
111
111
  requestType: "json",
112
112
  body: serializers.auth.default_.AuthGetTokenRequest.jsonOrThrow(request, {
@@ -73,7 +73,7 @@ class V2 {
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).candidApi, "/api/billing_notes/v2"),
75
75
  method: "POST",
76
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "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": "1.6.0", "User-Agent": "candidhealth/1.6.0", "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
  body: serializers.billingNotes.v2.StandaloneBillingNoteCreate.jsonOrThrow(request, {
@@ -113,7 +113,7 @@ class V2 {
113
113
  const _response = yield core.fetcher({
114
114
  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))}`),
115
115
  method: "DELETE",
116
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
116
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.6.0", "User-Agent": "candidhealth/1.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
117
117
  contentType: "application/json",
118
118
  requestType: "json",
119
119
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -164,7 +164,7 @@ class V2 {
164
164
  const _response = yield core.fetcher({
165
165
  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))}`),
166
166
  method: "PATCH",
167
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
167
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.6.0", "User-Agent": "candidhealth/1.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
168
  contentType: "application/json",
169
169
  requestType: "json",
170
170
  body: serializers.billingNotes.v2.BillingNoteUpdate.jsonOrThrow(request, {
@@ -38,6 +38,39 @@ export declare class V1 {
38
38
  * })
39
39
  */
40
40
  create(request: CandidApi.chargeCapture.v1.CreateChargeCaptureRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.chargeCapture.v1.ChargeCapture, CandidApi.chargeCapture.v1.create.Error>>;
41
+ /**
42
+ * Create a Charge Capture from a pre-encounter patient and appointment. This endpoint is intended to be used by consumers who are managing
43
+ * patients and appointments in the pre-encounter service and is currently under development. Consumers who are not taking advantage
44
+ * of the pre-encounter service should use the standard create endpoint.
45
+ *
46
+ * At encounter creation time, information from the provided patient and appointment objects will be populated
47
+ * where applicable. In particular, the following fields are populated from the patient and appointment objects:
48
+ * - Patient
49
+ * - Referring Provider
50
+ * - Subscriber Primary
51
+ * - Subscriber Secondary
52
+ * - Referral Number
53
+ * - Responsible Party
54
+ * - Guarantor
55
+ *
56
+ * Note that these fields should not be populated in the ChargeCaptureData property of this endpoint, as they will be overwritten at encounter creation time.
57
+ *
58
+ * Utilizing this endpoint opts you into automatic updating of the encounter when the patient or appointment is updated, assuming the
59
+ * encounter has not already been submitted or adjudicated.
60
+ *
61
+ * @param {CandidApi.chargeCapture.v1.CreateChargeCaptureFromPreEncounterRequest} request
62
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
63
+ *
64
+ * @example
65
+ * await client.chargeCapture.v1.createFromPreEncounterPatient({
66
+ * data: {},
67
+ * chargeExternalId: "charge_external_id",
68
+ * preEncounterPatientId: CandidApi.PreEncounterPatientId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
69
+ * preEncounterAppointmentIds: [CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
70
+ * status: "planned"
71
+ * })
72
+ */
73
+ createFromPreEncounterPatient(request: CandidApi.chargeCapture.v1.CreateChargeCaptureFromPreEncounterRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.chargeCapture.v1.ChargeCapture, CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error>>;
41
74
  /**
42
75
  * @param {CandidApi.ChargeCaptureId} chargeCaptureId
43
76
  * @param {CandidApi.chargeCapture.v1.ChargeCaptureUpdate} request
@@ -76,7 +76,7 @@ class V1 {
76
76
  const _response = yield core.fetcher({
77
77
  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"),
78
78
  method: "POST",
79
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.6.0", "User-Agent": "candidhealth/1.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  body: serializers.chargeCapture.v1.CreateChargeCaptureRequest.jsonOrThrow(request, {
@@ -122,6 +122,91 @@ class V1 {
122
122
  };
123
123
  });
124
124
  }
125
+ /**
126
+ * Create a Charge Capture from a pre-encounter patient and appointment. This endpoint is intended to be used by consumers who are managing
127
+ * patients and appointments in the pre-encounter service and is currently under development. Consumers who are not taking advantage
128
+ * of the pre-encounter service should use the standard create endpoint.
129
+ *
130
+ * At encounter creation time, information from the provided patient and appointment objects will be populated
131
+ * where applicable. In particular, the following fields are populated from the patient and appointment objects:
132
+ * - Patient
133
+ * - Referring Provider
134
+ * - Subscriber Primary
135
+ * - Subscriber Secondary
136
+ * - Referral Number
137
+ * - Responsible Party
138
+ * - Guarantor
139
+ *
140
+ * Note that these fields should not be populated in the ChargeCaptureData property of this endpoint, as they will be overwritten at encounter creation time.
141
+ *
142
+ * Utilizing this endpoint opts you into automatic updating of the encounter when the patient or appointment is updated, assuming the
143
+ * encounter has not already been submitted or adjudicated.
144
+ *
145
+ * @param {CandidApi.chargeCapture.v1.CreateChargeCaptureFromPreEncounterRequest} request
146
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
147
+ *
148
+ * @example
149
+ * await client.chargeCapture.v1.createFromPreEncounterPatient({
150
+ * data: {},
151
+ * chargeExternalId: "charge_external_id",
152
+ * preEncounterPatientId: CandidApi.PreEncounterPatientId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
153
+ * preEncounterAppointmentIds: [CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
154
+ * status: "planned"
155
+ * })
156
+ */
157
+ createFromPreEncounterPatient(request, requestOptions) {
158
+ return __awaiter(this, void 0, void 0, function* () {
159
+ var _a, _b, _c;
160
+ const _response = yield core.fetcher({
161
+ 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/create-from-pre-encounter"),
162
+ method: "POST",
163
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.6.0", "User-Agent": "candidhealth/1.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
164
+ contentType: "application/json",
165
+ requestType: "json",
166
+ body: serializers.chargeCapture.v1.CreateChargeCaptureFromPreEncounterRequest.jsonOrThrow(request, {
167
+ unrecognizedObjectKeys: "strip",
168
+ }),
169
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
170
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
171
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
172
+ });
173
+ if (_response.ok) {
174
+ return {
175
+ ok: true,
176
+ body: serializers.chargeCapture.v1.ChargeCapture.parseOrThrow(_response.body, {
177
+ unrecognizedObjectKeys: "passthrough",
178
+ allowUnrecognizedUnionMembers: true,
179
+ allowUnrecognizedEnumValues: true,
180
+ breadcrumbsPrefix: ["response"],
181
+ }),
182
+ };
183
+ }
184
+ if (_response.error.reason === "status-code") {
185
+ switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
186
+ case "EntityNotFoundError":
187
+ case "UnauthorizedError":
188
+ case "HttpRequestValidationsError":
189
+ case "SchemaInstanceValidationHttpFailure":
190
+ case "UnprocessableEntityError":
191
+ case "ChargeExternalIdConflictError":
192
+ return {
193
+ ok: false,
194
+ error: serializers.chargeCapture.v1.createFromPreEncounterPatient.Error.parseOrThrow(_response.error
195
+ .body, {
196
+ unrecognizedObjectKeys: "passthrough",
197
+ allowUnrecognizedUnionMembers: true,
198
+ allowUnrecognizedEnumValues: true,
199
+ breadcrumbsPrefix: ["response"],
200
+ }),
201
+ };
202
+ }
203
+ }
204
+ return {
205
+ ok: false,
206
+ error: CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._unknown(_response.error),
207
+ };
208
+ });
209
+ }
125
210
  /**
126
211
  * @param {CandidApi.ChargeCaptureId} chargeCaptureId
127
212
  * @param {CandidApi.chargeCapture.v1.ChargeCaptureUpdate} request
@@ -136,7 +221,7 @@ class V1 {
136
221
  const _response = yield core.fetcher({
137
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/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
138
223
  method: "PATCH",
139
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "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": "1.6.0", "User-Agent": "candidhealth/1.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
140
225
  contentType: "application/json",
141
226
  requestType: "json",
142
227
  body: serializers.chargeCapture.v1.ChargeCaptureUpdate.jsonOrThrow(request, {
@@ -194,7 +279,7 @@ class V1 {
194
279
  const _response = yield core.fetcher({
195
280
  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))}`),
196
281
  method: "GET",
197
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
282
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.6.0", "User-Agent": "candidhealth/1.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
198
283
  contentType: "application/json",
199
284
  requestType: "json",
200
285
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -429,7 +514,7 @@ class V1 {
429
514
  const _response = yield core.fetcher({
430
515
  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"),
431
516
  method: "GET",
432
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
517
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.6.0", "User-Agent": "candidhealth/1.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
433
518
  contentType: "application/json",
434
519
  queryParameters: _queryParams,
435
520
  requestType: "json",
@@ -470,7 +555,7 @@ class V1 {
470
555
  const _response = yield core.fetcher({
471
556
  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/"),
472
557
  method: "PATCH",
473
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
558
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.6.0", "User-Agent": "candidhealth/1.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
474
559
  contentType: "application/json",
475
560
  requestType: "json",
476
561
  body: serializers.chargeCapture.v1.ChargeCapturePostBilledChangeUpdate.jsonOrThrow(request, {
@@ -0,0 +1,58 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ import * as core from "../../../../../../core";
6
+ export type Error = CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.EntityNotFoundError | CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.UnauthorizedError | CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.HttpRequestValidationsError | CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.SchemaInstanceValidationHttpFailure | CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.UnprocessableEntityError | CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.ChargeExternalIdConflictError | CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface EntityNotFoundError extends _Utils {
9
+ errorName: "EntityNotFoundError";
10
+ content: CandidApi.EntityNotFoundErrorMessage;
11
+ }
12
+ interface UnauthorizedError extends _Utils {
13
+ errorName: "UnauthorizedError";
14
+ content: CandidApi.UnauthorizedErrorMessage;
15
+ }
16
+ interface HttpRequestValidationsError extends _Utils {
17
+ errorName: "HttpRequestValidationsError";
18
+ content: CandidApi.RequestValidationError[];
19
+ }
20
+ interface SchemaInstanceValidationHttpFailure extends _Utils {
21
+ errorName: "SchemaInstanceValidationHttpFailure";
22
+ content: CandidApi.encounters.v4.SchemaInstanceValidationFailure;
23
+ }
24
+ interface UnprocessableEntityError extends _Utils {
25
+ errorName: "UnprocessableEntityError";
26
+ content: CandidApi.UnprocessableEntityErrorMessage;
27
+ }
28
+ interface ChargeExternalIdConflictError extends _Utils {
29
+ errorName: "ChargeExternalIdConflictError";
30
+ content: CandidApi.chargeCapture.v1.ChargeExternalIdConflictErrorMessage;
31
+ }
32
+ interface _Unknown extends _Utils {
33
+ errorName: void;
34
+ content: core.Fetcher.Error;
35
+ }
36
+ interface _Utils {
37
+ _visit: <_Result>(visitor: CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._Visitor<_Result>) => _Result;
38
+ }
39
+ interface _Visitor<_Result> {
40
+ entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
41
+ unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
42
+ httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
43
+ schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => _Result;
44
+ unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
45
+ chargeExternalIdConflictError: (value: CandidApi.chargeCapture.v1.ChargeExternalIdConflictErrorMessage) => _Result;
46
+ _other: (value: core.Fetcher.Error) => _Result;
47
+ }
48
+ }
49
+ export declare const Error: {
50
+ readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.EntityNotFoundError;
51
+ readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.UnauthorizedError;
52
+ readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.HttpRequestValidationsError;
53
+ readonly schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.SchemaInstanceValidationHttpFailure;
54
+ readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.UnprocessableEntityError;
55
+ readonly chargeExternalIdConflictError: (value: CandidApi.chargeCapture.v1.ChargeExternalIdConflictErrorMessage) => CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.ChargeExternalIdConflictError;
56
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._Unknown;
57
+ readonly _visit: <_Result>(value: CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error, visitor: CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._Visitor<_Result>) => _Result;
58
+ };
@@ -0,0 +1,123 @@
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.Error = void 0;
40
+ const CandidApi = __importStar(require("../../../../../index"));
41
+ exports.Error = {
42
+ entityNotFoundError: (value) => {
43
+ return {
44
+ content: value,
45
+ errorName: "EntityNotFoundError",
46
+ _visit: function (visitor) {
47
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._visit(this, visitor);
48
+ },
49
+ };
50
+ },
51
+ unauthorizedError: (value) => {
52
+ return {
53
+ content: value,
54
+ errorName: "UnauthorizedError",
55
+ _visit: function (visitor) {
56
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._visit(this, visitor);
57
+ },
58
+ };
59
+ },
60
+ httpRequestValidationsError: (value) => {
61
+ return {
62
+ content: value,
63
+ errorName: "HttpRequestValidationsError",
64
+ _visit: function (visitor) {
65
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._visit(this, visitor);
66
+ },
67
+ };
68
+ },
69
+ schemaInstanceValidationHttpFailure: (value) => {
70
+ return {
71
+ content: value,
72
+ errorName: "SchemaInstanceValidationHttpFailure",
73
+ _visit: function (visitor) {
74
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._visit(this, visitor);
75
+ },
76
+ };
77
+ },
78
+ unprocessableEntityError: (value) => {
79
+ return {
80
+ content: value,
81
+ errorName: "UnprocessableEntityError",
82
+ _visit: function (visitor) {
83
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._visit(this, visitor);
84
+ },
85
+ };
86
+ },
87
+ chargeExternalIdConflictError: (value) => {
88
+ return {
89
+ content: value,
90
+ errorName: "ChargeExternalIdConflictError",
91
+ _visit: function (visitor) {
92
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._visit(this, visitor);
93
+ },
94
+ };
95
+ },
96
+ _unknown: (fetcherError) => {
97
+ return {
98
+ errorName: undefined,
99
+ content: fetcherError,
100
+ _visit: function (visitor) {
101
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._visit(this, visitor);
102
+ },
103
+ };
104
+ },
105
+ _visit: (value, visitor) => {
106
+ switch (value.errorName) {
107
+ case "EntityNotFoundError":
108
+ return visitor.entityNotFoundError(value.content);
109
+ case "UnauthorizedError":
110
+ return visitor.unauthorizedError(value.content);
111
+ case "HttpRequestValidationsError":
112
+ return visitor.httpRequestValidationsError(value.content);
113
+ case "SchemaInstanceValidationHttpFailure":
114
+ return visitor.schemaInstanceValidationHttpFailure(value.content);
115
+ case "UnprocessableEntityError":
116
+ return visitor.unprocessableEntityError(value.content);
117
+ case "ChargeExternalIdConflictError":
118
+ return visitor.chargeExternalIdConflictError(value.content);
119
+ default:
120
+ return visitor._other(value);
121
+ }
122
+ },
123
+ };
@@ -1,5 +1,6 @@
1
1
  export * from "./requests";
2
2
  export * as create from "./create";
3
+ export * as createFromPreEncounterPatient from "./createFromPreEncounterPatient";
3
4
  export * as update from "./update";
4
5
  export * as get from "./get";
5
6
  export * as getAll from "./getAll";
@@ -36,9 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.updatePostBilledChanges = exports.getAll = exports.get = exports.update = exports.create = void 0;
39
+ exports.updatePostBilledChanges = exports.getAll = exports.get = exports.update = exports.createFromPreEncounterPatient = exports.create = void 0;
40
40
  __exportStar(require("./requests"), exports);
41
41
  exports.create = __importStar(require("./create"));
42
+ exports.createFromPreEncounterPatient = __importStar(require("./createFromPreEncounterPatient"));
42
43
  exports.update = __importStar(require("./update"));
43
44
  exports.get = __importStar(require("./get"));
44
45
  exports.getAll = __importStar(require("./getAll"));
@@ -0,0 +1,30 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * data: {},
9
+ * chargeExternalId: "charge_external_id",
10
+ * preEncounterPatientId: CandidApi.PreEncounterPatientId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
11
+ * preEncounterAppointmentIds: [CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
12
+ * status: "planned"
13
+ * }
14
+ */
15
+ export interface CreateChargeCaptureFromPreEncounterRequest {
16
+ /** Charge Capture data contains all the fields needed to create an encounter, but listed as optional. Candid will use this data when attempting to bundle multiple Charge Captures into a single encounter. */
17
+ data: CandidApi.chargeCapture.v1.ChargeCaptureData;
18
+ /** A client-specified unique ID to associate with this encounter; for example, your internal encounter ID or a Dr. Chrono encounter ID. This field should not contain PHI. */
19
+ chargeExternalId: string;
20
+ preEncounterPatientId: CandidApi.PreEncounterPatientId;
21
+ preEncounterAppointmentIds: CandidApi.PreEncounterAppointmentId[];
22
+ /** An optional string field denoting the originating system of the charge. */
23
+ originatingSystem?: string;
24
+ /** An optional string field denoting the user defined category of the claim creation. */
25
+ claimCreationCategory?: string;
26
+ /** External URL reference that links to Charge Capture details within the external system (e.g. the EHR visit page). Send full URL format for the external link (e.g. https://emr_charge_capture_url.com/123). */
27
+ ehrSourceUrl?: string;
28
+ /** the status of the charge capture */
29
+ status: CandidApi.chargeCapture.v1.ChargeCaptureStatus;
30
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,5 @@
1
1
  export { type CreateChargeCaptureRequest } from "./CreateChargeCaptureRequest";
2
+ export { type CreateChargeCaptureFromPreEncounterRequest } from "./CreateChargeCaptureFromPreEncounterRequest";
2
3
  export { type ChargeCaptureUpdate } from "./ChargeCaptureUpdate";
3
4
  export { type GetAllChargeCapturesRequest } from "./GetAllChargeCapturesRequest";
4
5
  export { type ChargeCapturePostBilledChangeUpdate } from "./ChargeCapturePostBilledChangeUpdate";
@@ -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_claim_creation/v1/${encodeURIComponent(serializers.ChargeCaptureClaimCreationId.jsonOrThrow(chargeCaptureClaimCreationId))}`),
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": "1.4.0", "User-Agent": "candidhealth/1.4.0", "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": "1.6.0", "User-Agent": "candidhealth/1.6.0", "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_claim_creation/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": "1.4.0", "User-Agent": "candidhealth/1.4.0", "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": "1.6.0", "User-Agent": "candidhealth/1.6.0", "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,
@@ -145,7 +145,7 @@ class V1 {
145
145
  const _response = yield core.fetcher({
146
146
  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_claim_creation/v1/error/${encodeURIComponent(chargeCaptureBundleErrorId)}`),
147
147
  method: "PATCH",
148
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
148
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.6.0", "User-Agent": "candidhealth/1.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
149
149
  contentType: "application/json",
150
150
  requestType: "json",
151
151
  body: serializers.chargeCaptureBundles.v1.ChargeCaptureBundleErrorResolution.jsonOrThrow(request, {
@@ -305,7 +305,7 @@ class V1 {
305
305
  const _response = yield core.fetcher({
306
306
  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_claim_creation/v1"),
307
307
  method: "GET",
308
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
308
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.6.0", "User-Agent": "candidhealth/1.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
309
309
  contentType: "application/json",
310
310
  queryParameters: _queryParams,
311
311
  requestType: "json",
@@ -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": "1.4.0", "User-Agent": "candidhealth/1.4.0", "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": "1.6.0", "User-Agent": "candidhealth/1.6.0", "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,
@@ -172,7 +172,7 @@ class V2 {
172
172
  const _response = yield core.fetcher({
173
173
  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"),
174
174
  method: "GET",
175
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
175
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.6.0", "User-Agent": "candidhealth/1.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
176
176
  contentType: "application/json",
177
177
  queryParameters: _queryParams,
178
178
  requestType: "json",
@@ -216,7 +216,7 @@ class V2 {
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/contracts/v2"),
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": "1.4.0", "User-Agent": "candidhealth/1.4.0", "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": "1.6.0", "User-Agent": "candidhealth/1.6.0", "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.contracts.v2.ContractCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -254,7 +254,7 @@ class V2 {
254
254
  const _response = yield core.fetcher({
255
255
  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))}`),
256
256
  method: "DELETE",
257
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
257
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.6.0", "User-Agent": "candidhealth/1.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
258
258
  contentType: "application/json",
259
259
  requestType: "json",
260
260
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -301,7 +301,7 @@ class V2 {
301
301
  const _response = yield core.fetcher({
302
302
  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))}`),
303
303
  method: "PATCH",
304
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
304
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.6.0", "User-Agent": "candidhealth/1.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
305
305
  contentType: "application/json",
306
306
  requestType: "json",
307
307
  body: serializers.contracts.v2.ContractUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -16,7 +16,7 @@ export interface ContractCreate extends CandidApi.contracts.v2.ContractBase {
16
16
  /**
17
17
  * A rendering provider isn't contracted directly with the payer but can render
18
18
  * services under the contract held by the contracting provider.
19
- * Max items is 1000.
19
+ * Max items is 4000.
20
20
  */
21
21
  renderingProviderIds: Set<CandidApi.contracts.v2.RenderingProviderid>;
22
22
  /** The UUID of the insurance company under agreement to the contract */
@@ -10,7 +10,7 @@ export interface ContractUpdate {
10
10
  /**
11
11
  * A rendering provider isn't contracted directly with the payer but can render
12
12
  * services under the contract held by the contracting provider.
13
- * Max items is 1000.
13
+ * Max items is 4000.
14
14
  */
15
15
  renderingProviderIds?: Set<CandidApi.contracts.v2.RenderingProviderid>;
16
16
  /** The starting day upon which the contract is effective */