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
@@ -120,7 +120,7 @@ class V1 {
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/patient-refunds/v1"),
122
122
  method: "GET",
123
- 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),
123
+ 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),
124
124
  contentType: "application/json",
125
125
  queryParameters: _queryParams,
126
126
  requestType: "json",
@@ -175,7 +175,7 @@ class V1 {
175
175
  const _response = yield core.fetcher({
176
176
  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/patient-refunds/v1/${encodeURIComponent(serializers.patientRefunds.v1.PatientRefundId.jsonOrThrow(patientRefundId))}`),
177
177
  method: "GET",
178
- 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),
178
+ 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),
179
179
  contentType: "application/json",
180
180
  requestType: "json",
181
181
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -247,7 +247,7 @@ class V1 {
247
247
  const _response = yield core.fetcher({
248
248
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/patient-refunds/v1"),
249
249
  method: "POST",
250
- 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),
250
+ 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),
251
251
  contentType: "application/json",
252
252
  requestType: "json",
253
253
  body: serializers.patientRefunds.v1.PatientRefundCreate.jsonOrThrow(request, {
@@ -306,7 +306,7 @@ class V1 {
306
306
  const _response = yield core.fetcher({
307
307
  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/patient-refunds/v1/${encodeURIComponent(serializers.patientRefunds.v1.PatientRefundId.jsonOrThrow(patientRefundId))}`),
308
308
  method: "PATCH",
309
- 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),
309
+ 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),
310
310
  contentType: "application/json",
311
311
  requestType: "json",
312
312
  body: serializers.patientRefunds.v1.PatientRefundUpdate.jsonOrThrow(request, {
@@ -364,7 +364,7 @@ class V1 {
364
364
  const _response = yield core.fetcher({
365
365
  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/patient-refunds/v1/${encodeURIComponent(serializers.patientRefunds.v1.PatientRefundId.jsonOrThrow(patientRefundId))}`),
366
366
  method: "DELETE",
367
- 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),
367
+ 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),
368
368
  contentType: "application/json",
369
369
  requestType: "json",
370
370
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -139,7 +139,7 @@ class V1 {
139
139
  const _response = yield core.fetcher({
140
140
  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/payer-plan-groups/v1"),
141
141
  method: "GET",
142
- 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),
142
+ 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),
143
143
  contentType: "application/json",
144
144
  queryParameters: _queryParams,
145
145
  requestType: "json",
@@ -193,7 +193,7 @@ class V1 {
193
193
  const _response = yield core.fetcher({
194
194
  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/payer-plan-groups/v1/${encodeURIComponent(serializers.PayerPlanGroupId.jsonOrThrow(payerPlanGroupId))}`),
195
195
  method: "GET",
196
- 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),
196
+ 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),
197
197
  contentType: "application/json",
198
198
  requestType: "json",
199
199
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -251,7 +251,7 @@ class V1 {
251
251
  const _response = yield core.fetcher({
252
252
  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/payer-plan-groups/v1"),
253
253
  method: "POST",
254
- 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),
254
+ 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),
255
255
  contentType: "application/json",
256
256
  requestType: "json",
257
257
  body: serializers.payerPlanGroups.v1.MutablePayerPlanGroup.jsonOrThrow(request, {
@@ -313,7 +313,7 @@ class V1 {
313
313
  const _response = yield core.fetcher({
314
314
  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/payer-plan-groups/v1/${encodeURIComponent(serializers.PayerPlanGroupId.jsonOrThrow(payerPlanGroupId))}`),
315
315
  method: "PUT",
316
- 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),
316
+ 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),
317
317
  contentType: "application/json",
318
318
  requestType: "json",
319
319
  body: serializers.payerPlanGroups.v1.MutablePayerPlanGroup.jsonOrThrow(request, {
@@ -371,7 +371,7 @@ class V1 {
371
371
  const _response = yield core.fetcher({
372
372
  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/payer-plan-groups/v1/${encodeURIComponent(serializers.PayerPlanGroupId.jsonOrThrow(payerPlanGroupId))}`),
373
373
  method: "PATCH",
374
- 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),
374
+ 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),
375
375
  contentType: "application/json",
376
376
  requestType: "json",
377
377
  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/payers/v3/${encodeURIComponent(serializers.payers.v3.PayerUuid.jsonOrThrow(payerUuid))}`),
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,
@@ -123,7 +123,7 @@ class V3 {
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).candidApi, "/api/payers/v3"),
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": "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),
126
+ 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),
127
127
  contentType: "application/json",
128
128
  queryParameters: _queryParams,
129
129
  requestType: "json",
@@ -71,7 +71,7 @@ export declare class V1 {
71
71
  */
72
72
  getHistory(id: CandidApi.preEncounter.AppointmentId, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.appointments.v1.Appointment[], CandidApi.preEncounter.appointments.v1.getHistory.Error>>;
73
73
  /**
74
- * Updates an appointment. The path must contain the most recent version to prevent race conditions. Updating historic versions is not supported.
74
+ * Updates an appointment. The path must contain the next version number to prevent race conditions. For example, if the current version of the appointment is n, you will need to send a request to this endpoint with `/{id}/n+1` to update the appointment. Updating historic versions is not supported.
75
75
  *
76
76
  * @param {CandidApi.preEncounter.AppointmentId} id
77
77
  * @param {string} version
@@ -78,7 +78,7 @@ class V1 {
78
78
  const _response = yield core.fetcher({
79
79
  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, "/appointments/v1"),
80
80
  method: "POST",
81
- 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),
81
+ 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),
82
82
  contentType: "application/json",
83
83
  requestType: "json",
84
84
  body: serializers.preEncounter.appointments.v1.MutableAppointment.jsonOrThrow(request, {
@@ -154,7 +154,7 @@ class V1 {
154
154
  const _response = yield core.fetcher({
155
155
  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, "/appointments/v1/visits"),
156
156
  method: "GET",
157
- 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),
157
+ 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),
158
158
  contentType: "application/json",
159
159
  queryParameters: _queryParams,
160
160
  requestType: "json",
@@ -208,7 +208,7 @@ class V1 {
208
208
  const _response = yield core.fetcher({
209
209
  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, `/appointments/v1/${encodeURIComponent(serializers.preEncounter.AppointmentId.jsonOrThrow(id))}`),
210
210
  method: "GET",
211
- 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),
211
+ 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),
212
212
  contentType: "application/json",
213
213
  requestType: "json",
214
214
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -261,7 +261,7 @@ class V1 {
261
261
  const _response = yield core.fetcher({
262
262
  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, `/appointments/v1/${encodeURIComponent(serializers.preEncounter.AppointmentId.jsonOrThrow(id))}/history`),
263
263
  method: "GET",
264
- 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),
264
+ 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),
265
265
  contentType: "application/json",
266
266
  requestType: "json",
267
267
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -300,7 +300,7 @@ class V1 {
300
300
  });
301
301
  }
302
302
  /**
303
- * Updates an appointment. The path must contain the most recent version to prevent race conditions. Updating historic versions is not supported.
303
+ * Updates an appointment. The path must contain the next version number to prevent race conditions. For example, if the current version of the appointment is n, you will need to send a request to this endpoint with `/{id}/n+1` to update the appointment. Updating historic versions is not supported.
304
304
  *
305
305
  * @param {CandidApi.preEncounter.AppointmentId} id
306
306
  * @param {string} version
@@ -321,7 +321,7 @@ class V1 {
321
321
  const _response = yield core.fetcher({
322
322
  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, `/appointments/v1/${encodeURIComponent(serializers.preEncounter.AppointmentId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
323
323
  method: "PUT",
324
- 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),
324
+ 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),
325
325
  contentType: "application/json",
326
326
  requestType: "json",
327
327
  body: serializers.preEncounter.appointments.v1.MutableAppointment.jsonOrThrow(request, {
@@ -383,7 +383,7 @@ class V1 {
383
383
  const _response = yield core.fetcher({
384
384
  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, "/appointments/v1/updates/scan"),
385
385
  method: "GET",
386
- 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),
386
+ 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),
387
387
  contentType: "application/json",
388
388
  queryParameters: _queryParams,
389
389
  requestType: "json",
@@ -424,7 +424,7 @@ class V1 {
424
424
  const _response = yield core.fetcher({
425
425
  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, `/appointments/v1/${encodeURIComponent(serializers.preEncounter.AppointmentId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
426
426
  method: "DELETE",
427
- 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),
427
+ 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),
428
428
  contentType: "application/json",
429
429
  requestType: "json",
430
430
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -21,6 +21,7 @@ export interface MutableAppointment {
21
21
  estimatedCopayCents?: number;
22
22
  estimatedPatientResponsibilityCents?: number;
23
23
  patientDepositCents?: number;
24
+ appointmentDetails?: string;
24
25
  /** The timestamp when the patient checked in for their appointment. If status is CHECKED_IN, checked_in_timestamp must be set. If checked_in_timestamp is set, status must be CHECKED_IN. */
25
26
  checkedInTimestamp?: Date;
26
27
  notes?: string;
@@ -10,4 +10,5 @@ export interface Visit {
10
10
  patient: CandidApi.preEncounter.patients.v1.MutablePatientWithMrn;
11
11
  startTime: Date;
12
12
  status: CandidApi.preEncounter.appointments.v1.AppointmentStatus;
13
+ primaryCoverage?: CandidApi.preEncounter.coverages.v1.MutableCoverage;
13
14
  }
@@ -7,7 +7,7 @@ export interface BaseModel {
7
7
  organizationId: CandidApi.preEncounter.OrganizationId;
8
8
  /** True if the object is deactivated. Deactivated objects are not returned in search results but are returned in all other endpoints including scan. */
9
9
  deactivated: boolean;
10
- /** The version of the object. Any update to any property of an object object will create a new version. */
10
+ /** The version of the object. Any update to any property of an object object will create a new version. */
11
11
  version: number;
12
12
  updatedAt: Date;
13
13
  /** The user ID of the user who last updated the object. */
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../../index";
5
5
  /**
6
- * A serialized list of filters separated by commas indicating filters to apply. Each filter is of the form 'path:operator:value'. Example: 'patient.mrn|eq|12345'. Filters are separated by commas. Example: 'patient.mrn|eq|12345,appointment.startDate|gt|67890'. All filters are ANDed together. Valid operators are 'eq', 'gt', 'lt', 'contains'. Path values are camelCase.
6
+ * A serialized list of filters separated by commas indicating filters to apply. Each filter is of the form 'path:operator:value'. Example: 'patient.mrn|eq|12345'. Filters are separated by commas. Example: 'patient.mrn|eq|12345,appointment.startDate|gt|67890'. All filters are ANDed together. Valid operators are 'eq', 'gt', 'lt', 'contains', 'ieq'. ieq is a case-insensitive equality operator. Path values are camelCase.
7
7
  */
8
8
  export type FilterQueryString = string & {
9
9
  preEncounter_FilterQueryString: void;
@@ -55,7 +55,7 @@ export declare class V1 {
55
55
  */
56
56
  create(request: CandidApi.preEncounter.coverages.v1.MutableCoverage, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.coverages.v1.Coverage, CandidApi.preEncounter.coverages.v1.create.Error>>;
57
57
  /**
58
- * Updates a Coverage. The path must contain the most recent version to prevent race conditions. Updating historic versions is not supported.
58
+ * Updates a Coverage. The path must contain the next version number to prevent race conditions. For example, if the current version of the coverage is n, you will need to send a request to this endpoint with `/{id}/n+1` to update the coverage. Updating historic versions is not supported.
59
59
  *
60
60
  * @param {CandidApi.preEncounter.CoverageId} id
61
61
  * @param {string} version
@@ -92,7 +92,7 @@ class V1 {
92
92
  const _response = yield core.fetcher({
93
93
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/coverages/v1"),
94
94
  method: "POST",
95
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "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),
95
+ 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),
96
96
  contentType: "application/json",
97
97
  requestType: "json",
98
98
  body: serializers.preEncounter.coverages.v1.MutableCoverage.jsonOrThrow(request, {
@@ -120,7 +120,7 @@ class V1 {
120
120
  });
121
121
  }
122
122
  /**
123
- * Updates a Coverage. The path must contain the most recent version to prevent race conditions. Updating historic versions is not supported.
123
+ * Updates a Coverage. The path must contain the next version number to prevent race conditions. For example, if the current version of the coverage is n, you will need to send a request to this endpoint with `/{id}/n+1` to update the coverage. Updating historic versions is not supported.
124
124
  *
125
125
  * @param {CandidApi.preEncounter.CoverageId} id
126
126
  * @param {string} version
@@ -155,7 +155,7 @@ class V1 {
155
155
  const _response = yield core.fetcher({
156
156
  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, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
157
157
  method: "PUT",
158
- 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),
158
+ 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),
159
159
  contentType: "application/json",
160
160
  requestType: "json",
161
161
  body: serializers.preEncounter.coverages.v1.MutableCoverage.jsonOrThrow(request, {
@@ -226,7 +226,7 @@ class V1 {
226
226
  const _response = yield core.fetcher({
227
227
  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, "/coverages/v1/get-multi-paginated"),
228
228
  method: "GET",
229
- 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),
229
+ 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),
230
230
  contentType: "application/json",
231
231
  queryParameters: _queryParams,
232
232
  requestType: "json",
@@ -280,7 +280,7 @@ class V1 {
280
280
  const _response = yield core.fetcher({
281
281
  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, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}`),
282
282
  method: "GET",
283
- 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),
283
+ 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),
284
284
  contentType: "application/json",
285
285
  requestType: "json",
286
286
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -319,7 +319,7 @@ class V1 {
319
319
  const _response = yield core.fetcher({
320
320
  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, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/history`),
321
321
  method: "GET",
322
- 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),
322
+ 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),
323
323
  contentType: "application/json",
324
324
  requestType: "json",
325
325
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -377,7 +377,7 @@ class V1 {
377
377
  const _response = yield core.fetcher({
378
378
  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, "/coverages/v1"),
379
379
  method: "GET",
380
- 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),
380
+ 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),
381
381
  contentType: "application/json",
382
382
  queryParameters: _queryParams,
383
383
  requestType: "json",
@@ -422,7 +422,7 @@ class V1 {
422
422
  const _response = yield core.fetcher({
423
423
  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, "/coverages/v1/updates/scan"),
424
424
  method: "GET",
425
- 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),
425
+ 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),
426
426
  contentType: "application/json",
427
427
  queryParameters: _queryParams,
428
428
  requestType: "json",
@@ -468,7 +468,7 @@ class V1 {
468
468
  const _response = yield core.fetcher({
469
469
  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, `/coverages/v1/batch-update-ppg/${encodeURIComponent(serializers.preEncounter.PayerPlanGroupId.jsonOrThrow(ppgId))}`),
470
470
  method: "POST",
471
- 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),
471
+ 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),
472
472
  contentType: "application/json",
473
473
  requestType: "json",
474
474
  body: serializers.preEncounter.coverages.v1.PayerPlanGroupFields.jsonOrThrow(request, {
@@ -510,7 +510,7 @@ class V1 {
510
510
  const _response = yield core.fetcher({
511
511
  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, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/eligibility`),
512
512
  method: "POST",
513
- 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),
513
+ 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),
514
514
  contentType: "application/json",
515
515
  requestType: "json",
516
516
  body: serializers.preEncounter.coverages.v1.CheckEligibilityRequest.jsonOrThrow(request, {
@@ -553,7 +553,7 @@ class V1 {
553
553
  const _response = yield core.fetcher({
554
554
  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, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/eligibility/${encodeURIComponent(checkId)}`),
555
555
  method: "GET",
556
- 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),
556
+ 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),
557
557
  contentType: "application/json",
558
558
  requestType: "json",
559
559
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -9,7 +9,7 @@ export interface MutableCoverage {
9
9
  subscriber: CandidApi.preEncounter.coverages.v1.Subscriber;
10
10
  /** The relationship of beneficiary (patient) to the subscriber. https://hl7.org/fhir/valueset-relationship.html */
11
11
  relationship: CandidApi.preEncounter.Relationship;
12
- /** The patient who benefits from the insurance coverage */
12
+ /** The canonical Candid patient UUID corresponding with the patient who benefits from the insurance coverage */
13
13
  patient: CandidApi.preEncounter.PatientId;
14
14
  insurancePlan: CandidApi.preEncounter.coverages.v1.InsurancePlan;
15
15
  /** A boolean indicating if the coverage has been verified by a user. */
@@ -27,7 +27,6 @@ export declare class V1 {
27
27
  constructor(_options?: V1.Options);
28
28
  /**
29
29
  * Sends real-time eligibility checks to payers through Stedi.
30
- * <Warning>Please only send one concurrent request to this endpoint. Batch requests must be made in succession, otherwise, it will cause this service to fail. A batch endpoint is in development - please reach out to the Candid team for more information.</Warning>
31
30
  *
32
31
  * @param {CandidApi.preEncounter.eligibilityChecks.v1.EligibilityRequest} request
33
32
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
@@ -75,8 +74,6 @@ export declare class V1 {
75
74
  batch(request: CandidApi.preEncounter.eligibilityChecks.v1.EligibilityRequest[], requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.eligibilityChecks.v1.BatchEligibilityResponse, CandidApi.preEncounter.eligibilityChecks.v1.batch.Error>>;
76
75
  /**
77
76
  * Polls the status of a batch eligibility check.
78
- * <Note>Batch eligibility checks are not yet available. Please reach out to the Candid team for more information.</Note>
79
- * path-parameters:
80
77
  *
81
78
  * @param {string} batchId
82
79
  * @param {CandidApi.preEncounter.eligibilityChecks.v1.BatchEligibilityPollRequest} request
@@ -118,10 +115,7 @@ export declare class V1 {
118
115
  * patient: {},
119
116
  * recommendation: {
120
117
  * type: "MEDICARE_ADVANTAGE",
121
- * payload: {
122
- * payerId: "payer_id",
123
- * payerName: "payer_name"
124
- * }
118
+ * payload: {}
125
119
  * }
126
120
  * })
127
121
  */
@@ -60,7 +60,6 @@ class V1 {
60
60
  }
61
61
  /**
62
62
  * Sends real-time eligibility checks to payers through Stedi.
63
- * <Warning>Please only send one concurrent request to this endpoint. Batch requests must be made in succession, otherwise, it will cause this service to fail. A batch endpoint is in development - please reach out to the Candid team for more information.</Warning>
64
63
  *
65
64
  * @param {CandidApi.preEncounter.eligibilityChecks.v1.EligibilityRequest} request
66
65
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
@@ -83,7 +82,7 @@ class V1 {
83
82
  const _response = yield core.fetcher({
84
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).preEncounter, "/eligibility-checks/v1"),
85
84
  method: "POST",
86
- 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),
85
+ 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),
87
86
  contentType: "application/json",
88
87
  requestType: "json",
89
88
  body: serializers.preEncounter.eligibilityChecks.v1.EligibilityRequest.jsonOrThrow(request, {
@@ -143,7 +142,7 @@ class V1 {
143
142
  const _response = yield core.fetcher({
144
143
  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, "/eligibility-checks/v1/batch"),
145
144
  method: "POST",
146
- 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),
145
+ 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),
147
146
  contentType: "application/json",
148
147
  requestType: "json",
149
148
  body: serializers.preEncounter.eligibilityChecks.v1.batch.Request.jsonOrThrow(request, {
@@ -172,8 +171,6 @@ class V1 {
172
171
  }
173
172
  /**
174
173
  * Polls the status of a batch eligibility check.
175
- * <Note>Batch eligibility checks are not yet available. Please reach out to the Candid team for more information.</Note>
176
- * path-parameters:
177
174
  *
178
175
  * @param {string} batchId
179
176
  * @param {CandidApi.preEncounter.eligibilityChecks.v1.BatchEligibilityPollRequest} request
@@ -193,7 +190,7 @@ class V1 {
193
190
  const _response = yield core.fetcher({
194
191
  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, `/eligibility-checks/v1/batch/${encodeURIComponent(batchId)}`),
195
192
  method: "GET",
196
- 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),
193
+ 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),
197
194
  contentType: "application/json",
198
195
  queryParameters: _queryParams,
199
196
  requestType: "json",
@@ -244,7 +241,7 @@ class V1 {
244
241
  const _response = yield core.fetcher({
245
242
  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, "/eligibility-checks/v1/payer/search"),
246
243
  method: "GET",
247
- 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),
244
+ 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),
248
245
  contentType: "application/json",
249
246
  queryParameters: _queryParams,
250
247
  requestType: "json",
@@ -289,7 +286,7 @@ class V1 {
289
286
  const _response = yield core.fetcher({
290
287
  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, "/eligibility-checks/v1/recommendation"),
291
288
  method: "GET",
292
- 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),
289
+ 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),
293
290
  contentType: "application/json",
294
291
  queryParameters: _queryParams,
295
292
  requestType: "json",
@@ -326,10 +323,7 @@ class V1 {
326
323
  * patient: {},
327
324
  * recommendation: {
328
325
  * type: "MEDICARE_ADVANTAGE",
329
- * payload: {
330
- * payerId: "payer_id",
331
- * payerName: "payer_name"
332
- * }
326
+ * payload: {}
333
327
  * }
334
328
  * })
335
329
  */
@@ -339,7 +333,7 @@ class V1 {
339
333
  const _response = yield core.fetcher({
340
334
  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, "/eligibility-checks/v1/recommendation"),
341
335
  method: "POST",
342
- 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),
336
+ 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),
343
337
  contentType: "application/json",
344
338
  requestType: "json",
345
339
  body: serializers.preEncounter.eligibilityChecks.v1.PostEligibilityRecommendationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -5,7 +5,8 @@
5
5
  * An object representing the payload for a Medicare Advantage recommendation.
6
6
  */
7
7
  export interface MedicareAdvantageRecommendationPayload {
8
- payerId: string;
9
- payerName: string;
8
+ maBenefit?: unknown;
9
+ payerId?: string;
10
+ payerName?: string;
10
11
  memberId?: string;
11
12
  }
@@ -78,7 +78,7 @@ class V1 {
78
78
  const _response = yield core.fetcher({
79
79
  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, "/images/v1"),
80
80
  method: "POST",
81
- 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),
81
+ 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),
82
82
  contentType: "application/json",
83
83
  requestType: "json",
84
84
  body: serializers.preEncounter.images.v1.MutableImage.jsonOrThrow(request, {
@@ -134,7 +134,7 @@ class V1 {
134
134
  const _response = yield core.fetcher({
135
135
  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, `/images/v1/${encodeURIComponent(serializers.preEncounter.images.v1.ImageId.jsonOrThrow(id))}`),
136
136
  method: "GET",
137
- 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),
137
+ 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),
138
138
  contentType: "application/json",
139
139
  requestType: "json",
140
140
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -194,7 +194,7 @@ class V1 {
194
194
  const _response = yield core.fetcher({
195
195
  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, `/images/v1/${encodeURIComponent(serializers.preEncounter.images.v1.ImageId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
196
196
  method: "PUT",
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),
197
+ 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
198
  contentType: "application/json",
199
199
  requestType: "json",
200
200
  body: serializers.preEncounter.images.v1.MutableImage.jsonOrThrow(request, {
@@ -252,7 +252,7 @@ class V1 {
252
252
  const _response = yield core.fetcher({
253
253
  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, `/images/v1/${encodeURIComponent(serializers.preEncounter.images.v1.ImageId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
254
254
  method: "DELETE",
255
- 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),
255
+ 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),
256
256
  contentType: "application/json",
257
257
  requestType: "json",
258
258
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -309,7 +309,7 @@ class V1 {
309
309
  const _response = yield core.fetcher({
310
310
  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, "/images/v1"),
311
311
  method: "GET",
312
- 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),
312
+ 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),
313
313
  contentType: "application/json",
314
314
  queryParameters: _queryParams,
315
315
  requestType: "json",