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
@@ -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, "/lists/v1/patient"),
94
94
  method: "GET",
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
  queryParameters: _queryParams,
98
98
  requestType: "json",
@@ -165,7 +165,7 @@ class V1 {
165
165
  const _response = yield core.fetcher({
166
166
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/lists/v1/appointment"),
167
167
  method: "GET",
168
- 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),
168
+ 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),
169
169
  contentType: "application/json",
170
170
  queryParameters: _queryParams,
171
171
  requestType: "json",
@@ -73,7 +73,7 @@ class V1 {
73
73
  const _response = yield core.fetcher({
74
74
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/notes/v1/${encodeURIComponent(serializers.preEncounter.NoteId.jsonOrThrow(id))}`),
75
75
  method: "GET",
76
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "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
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -114,7 +114,7 @@ class V1 {
114
114
  const _response = yield core.fetcher({
115
115
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/notes/v1"),
116
116
  method: "POST",
117
- 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),
117
+ 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),
118
118
  contentType: "application/json",
119
119
  requestType: "json",
120
120
  body: serializers.preEncounter.notes.v1.MutableNote.jsonOrThrow(request, {
@@ -160,7 +160,7 @@ class V1 {
160
160
  const _response = yield core.fetcher({
161
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).preEncounter, `/notes/v1/${encodeURIComponent(serializers.preEncounter.NoteId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
162
162
  method: "PUT",
163
- 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),
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
164
  contentType: "application/json",
165
165
  requestType: "json",
166
166
  body: serializers.preEncounter.notes.v1.MutableNote.jsonOrThrow(request, {
@@ -203,7 +203,7 @@ class V1 {
203
203
  const _response = yield core.fetcher({
204
204
  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, `/notes/v1/${encodeURIComponent(serializers.preEncounter.NoteId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
205
205
  method: "DELETE",
206
- 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),
206
+ 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),
207
207
  contentType: "application/json",
208
208
  requestType: "json",
209
209
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -373,7 +373,7 @@ export declare class V1 {
373
373
  */
374
374
  getHistory(id: CandidApi.preEncounter.PatientId, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.patients.v1.Patient[], CandidApi.preEncounter.patients.v1.getHistory.Error>>;
375
375
  /**
376
- * Updates a patient. The path must contain the most recent version to prevent race conditions. Updating historic versions is not supported.
376
+ * Updates a patient. The path must contain the next version number to prevent race conditions. For example, if the current version of the patient is n, you will need to send a request to this endpoint with `/{id}/n+1` to update the patient. Updating historic versions is not supported.
377
377
  *
378
378
  * @param {CandidApi.preEncounter.PatientId} id
379
379
  * @param {string} version
@@ -220,7 +220,7 @@ class V1 {
220
220
  const _response = yield core.fetcher({
221
221
  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, "/patients/v1"),
222
222
  method: "POST",
223
- 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),
223
+ 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),
224
224
  contentType: "application/json",
225
225
  queryParameters: _queryParams,
226
226
  requestType: "json",
@@ -425,7 +425,7 @@ class V1 {
425
425
  const _response = yield core.fetcher({
426
426
  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, "/patients/v1/with_mrn"),
427
427
  method: "POST",
428
- 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),
428
+ 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),
429
429
  contentType: "application/json",
430
430
  queryParameters: _queryParams,
431
431
  requestType: "json",
@@ -502,7 +502,7 @@ class V1 {
502
502
  const _response = yield core.fetcher({
503
503
  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, "/patients/v1/get_multi"),
504
504
  method: "GET",
505
- 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),
505
+ 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),
506
506
  contentType: "application/json",
507
507
  queryParameters: _queryParams,
508
508
  requestType: "json",
@@ -547,7 +547,7 @@ class V1 {
547
547
  const _response = yield core.fetcher({
548
548
  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, "/patients/v1/search_providers"),
549
549
  method: "GET",
550
- 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),
550
+ 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),
551
551
  contentType: "application/json",
552
552
  queryParameters: _queryParams,
553
553
  requestType: "json",
@@ -587,7 +587,7 @@ class V1 {
587
587
  const _response = yield core.fetcher({
588
588
  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, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}`),
589
589
  method: "GET",
590
- 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),
590
+ 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),
591
591
  contentType: "application/json",
592
592
  requestType: "json",
593
593
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -640,7 +640,7 @@ class V1 {
640
640
  const _response = yield core.fetcher({
641
641
  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, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/history`),
642
642
  method: "GET",
643
- 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),
643
+ 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),
644
644
  contentType: "application/json",
645
645
  requestType: "json",
646
646
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -679,7 +679,7 @@ class V1 {
679
679
  });
680
680
  }
681
681
  /**
682
- * Updates a patient. The path must contain the most recent version to prevent race conditions. Updating historic versions is not supported.
682
+ * Updates a patient. The path must contain the next version number to prevent race conditions. For example, if the current version of the patient is n, you will need to send a request to this endpoint with `/{id}/n+1` to update the patient. Updating historic versions is not supported.
683
683
  *
684
684
  * @param {CandidApi.preEncounter.PatientId} id
685
685
  * @param {string} version
@@ -835,7 +835,7 @@ class V1 {
835
835
  const _response = yield core.fetcher({
836
836
  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, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
837
837
  method: "PUT",
838
- 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),
838
+ 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),
839
839
  contentType: "application/json",
840
840
  requestType: "json",
841
841
  body: serializers.preEncounter.patients.v1.MutablePatient.jsonOrThrow(request, {
@@ -893,7 +893,7 @@ class V1 {
893
893
  const _response = yield core.fetcher({
894
894
  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, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
895
895
  method: "DELETE",
896
- 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),
896
+ 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),
897
897
  contentType: "application/json",
898
898
  requestType: "json",
899
899
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -943,7 +943,7 @@ class V1 {
943
943
  const _response = yield core.fetcher({
944
944
  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, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
945
945
  method: "PATCH",
946
- 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),
946
+ 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),
947
947
  contentType: "application/json",
948
948
  requestType: "json",
949
949
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1000,7 +1000,7 @@ class V1 {
1000
1000
  const _response = yield core.fetcher({
1001
1001
  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, "/patients/v1"),
1002
1002
  method: "GET",
1003
- 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),
1003
+ 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),
1004
1004
  contentType: "application/json",
1005
1005
  queryParameters: _queryParams,
1006
1006
  requestType: "json",
@@ -1045,7 +1045,7 @@ class V1 {
1045
1045
  const _response = yield core.fetcher({
1046
1046
  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, "/patients/v1/updates/scan"),
1047
1047
  method: "GET",
1048
- 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),
1048
+ 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),
1049
1049
  contentType: "application/json",
1050
1050
  queryParameters: _queryParams,
1051
1051
  requestType: "json",
@@ -73,7 +73,7 @@ class V1 {
73
73
  const _response = yield core.fetcher({
74
74
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/tags/v1/${encodeURIComponent(serializers.preEncounter.TagId.jsonOrThrow(id))}`),
75
75
  method: "GET",
76
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "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
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -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).preEncounter, "/tags/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",
@@ -162,7 +162,7 @@ class V1 {
162
162
  const _response = yield core.fetcher({
163
163
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/tags/v1"),
164
164
  method: "POST",
165
- 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),
165
+ 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),
166
166
  contentType: "application/json",
167
167
  requestType: "json",
168
168
  body: serializers.preEncounter.tags.v1.MutableTag.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -206,7 +206,7 @@ class V1 {
206
206
  const _response = yield core.fetcher({
207
207
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/tags/v1/${encodeURIComponent(serializers.preEncounter.TagId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
208
208
  method: "PUT",
209
- 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),
209
+ 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),
210
210
  contentType: "application/json",
211
211
  requestType: "json",
212
212
  body: serializers.preEncounter.tags.v1.MutableTag.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -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).preEncounter, `/tags/v1/${encodeURIComponent(serializers.preEncounter.TagId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
249
249
  method: "DELETE",
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
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -72,7 +72,7 @@ class ServiceFacility {
72
72
  const _response = yield core.fetcher({
73
73
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/service_facility/v2/${encodeURIComponent(serializers.ServiceFacilityId.jsonOrThrow(serviceFacilityId))}`),
74
74
  method: "PATCH",
75
- 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),
75
+ 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),
76
76
  contentType: "application/json",
77
77
  requestType: "json",
78
78
  body: serializers.EncounterServiceFacilityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -76,7 +76,7 @@ class V2 {
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/service-lines/v2"),
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.serviceLines.v2.ServiceLineCreateStandalone.jsonOrThrow(request, {
@@ -131,7 +131,7 @@ class V2 {
131
131
  const _response = yield core.fetcher({
132
132
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/service-lines/v2/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}`),
133
133
  method: "PATCH",
134
- 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),
134
+ 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),
135
135
  contentType: "application/json",
136
136
  requestType: "json",
137
137
  body: serializers.serviceLines.v2.ServiceLineUpdate.jsonOrThrow(request, {
@@ -187,7 +187,7 @@ class V2 {
187
187
  const _response = yield core.fetcher({
188
188
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/service-lines/v2/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}`),
189
189
  method: "DELETE",
190
- 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),
190
+ 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),
191
191
  contentType: "application/json",
192
192
  requestType: "json",
193
193
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -75,7 +75,7 @@ class V1 {
75
75
  const _response = yield core.fetcher({
76
76
  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/superbill/v1"),
77
77
  method: "POST",
78
- 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),
78
+ 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),
79
79
  contentType: "application/json",
80
80
  requestType: "json",
81
81
  body: serializers.superbills.v1.CreateSuperbillRequest.jsonOrThrow(request, {
@@ -71,7 +71,7 @@ class V3 {
71
71
  const _response = yield core.fetcher({
72
72
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/tasks/v3/${encodeURIComponent(serializers.TaskId.jsonOrThrow(taskId))}/actions`),
73
73
  method: "GET",
74
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "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,
@@ -155,7 +155,7 @@ class V3 {
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).candidApi, "/api/tasks/v3"),
157
157
  method: "GET",
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
  queryParameters: _queryParams,
161
161
  requestType: "json",
@@ -207,7 +207,7 @@ class V3 {
207
207
  const _response = yield core.fetcher({
208
208
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/tasks/v3/${encodeURIComponent(serializers.TaskId.jsonOrThrow(taskId))}`),
209
209
  method: "GET",
210
- 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),
210
+ 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),
211
211
  contentType: "application/json",
212
212
  requestType: "json",
213
213
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -264,7 +264,7 @@ class V3 {
264
264
  const _response = yield core.fetcher({
265
265
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/tasks/v3"),
266
266
  method: "POST",
267
- 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),
267
+ 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),
268
268
  contentType: "application/json",
269
269
  requestType: "json",
270
270
  body: serializers.tasks.v3.TaskCreateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -303,7 +303,7 @@ class V3 {
303
303
  const _response = yield core.fetcher({
304
304
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/tasks/v3/${encodeURIComponent(serializers.TaskId.jsonOrThrow(taskId))}`),
305
305
  method: "PATCH",
306
- 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),
306
+ 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),
307
307
  contentType: "application/json",
308
308
  requestType: "json",
309
309
  body: serializers.tasks.v3.TaskUpdateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -116,7 +116,7 @@ class V1 {
116
116
  const _response = yield core.fetcher({
117
117
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/write-offs/v1"),
118
118
  method: "GET",
119
- 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),
119
+ 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),
120
120
  contentType: "application/json",
121
121
  queryParameters: _queryParams,
122
122
  requestType: "json",
@@ -156,7 +156,7 @@ class V1 {
156
156
  const _response = yield core.fetcher({
157
157
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/write-offs/v1/${encodeURIComponent(serializers.writeOffs.v1.WriteOffId.jsonOrThrow(writeOffId))}`),
158
158
  method: "GET",
159
- 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),
159
+ 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),
160
160
  contentType: "application/json",
161
161
  requestType: "json",
162
162
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -210,7 +210,7 @@ class V1 {
210
210
  const _response = yield core.fetcher({
211
211
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/write-offs/v1"),
212
212
  method: "POST",
213
- 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),
213
+ 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),
214
214
  contentType: "application/json",
215
215
  requestType: "json",
216
216
  body: serializers.writeOffs.v1.CreateWriteOffsRequest.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).candidApi, `/api/write-offs/v1/${encodeURIComponent(serializers.writeOffs.v1.WriteOffId.jsonOrThrow(writeOffId))}/revert`),
254
254
  method: "POST",
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,
@@ -291,7 +291,7 @@ class V1 {
291
291
  const _response = yield core.fetcher({
292
292
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/write-offs/v1/${encodeURIComponent(serializers.AdjustmentId.jsonOrThrow(adjustmentId))}/revert`),
293
293
  method: "POST",
294
- 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),
294
+ 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),
295
295
  contentType: "application/json",
296
296
  requestType: "json",
297
297
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -330,7 +330,7 @@ class V1 {
330
330
  const _response = yield core.fetcher({
331
331
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/write-offs/v1/${encodeURIComponent(serializers.AdjustmentId.jsonOrThrow(adjustmentId))}/revert-era-originated`),
332
332
  method: "POST",
333
- 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),
333
+ 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),
334
334
  contentType: "application/json",
335
335
  requestType: "json",
336
336
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -0,0 +1,40 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as CandidApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ import { EntityNotFoundErrorMessage } from "../../../../commons/types/EntityNotFoundErrorMessage";
8
+ import { UnauthorizedErrorMessage } from "../../../../commons/types/UnauthorizedErrorMessage";
9
+ import { RequestValidationError } from "../../../../commons/types/RequestValidationError";
10
+ import { SchemaInstanceValidationFailure } from "../../../../encounters/resources/v4/types/SchemaInstanceValidationFailure";
11
+ import { UnprocessableEntityErrorMessage } from "../../../../commons/types/UnprocessableEntityErrorMessage";
12
+ import { ChargeExternalIdConflictErrorMessage } from "../types/ChargeExternalIdConflictErrorMessage";
13
+ export declare const Error: core.serialization.Schema<serializers.chargeCapture.v1.createFromPreEncounterPatient.Error.Raw, CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error>;
14
+ export declare namespace Error {
15
+ type Raw = Error.EntityNotFoundError | Error.UnauthorizedError | Error.HttpRequestValidationsError | Error.SchemaInstanceValidationHttpFailure | Error.UnprocessableEntityError | Error.ChargeExternalIdConflictError;
16
+ interface EntityNotFoundError {
17
+ errorName: "EntityNotFoundError";
18
+ content: EntityNotFoundErrorMessage.Raw;
19
+ }
20
+ interface UnauthorizedError {
21
+ errorName: "UnauthorizedError";
22
+ content: UnauthorizedErrorMessage.Raw;
23
+ }
24
+ interface HttpRequestValidationsError {
25
+ errorName: "HttpRequestValidationsError";
26
+ content: RequestValidationError.Raw[];
27
+ }
28
+ interface SchemaInstanceValidationHttpFailure {
29
+ errorName: "SchemaInstanceValidationHttpFailure";
30
+ content: SchemaInstanceValidationFailure.Raw;
31
+ }
32
+ interface UnprocessableEntityError {
33
+ errorName: "UnprocessableEntityError";
34
+ content: UnprocessableEntityErrorMessage.Raw;
35
+ }
36
+ interface ChargeExternalIdConflictError {
37
+ errorName: "ChargeExternalIdConflictError";
38
+ content: ChargeExternalIdConflictErrorMessage.Raw;
39
+ }
40
+ }
@@ -0,0 +1,101 @@
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
+ var __rest = (this && this.__rest) || function (s, e) {
39
+ var t = {};
40
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
41
+ t[p] = s[p];
42
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
43
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
44
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
45
+ t[p[i]] = s[p[i]];
46
+ }
47
+ return t;
48
+ };
49
+ Object.defineProperty(exports, "__esModule", { value: true });
50
+ exports.Error = void 0;
51
+ const CandidApi = __importStar(require("../../../../../../api/index"));
52
+ const core = __importStar(require("../../../../../../core"));
53
+ const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
54
+ const UnauthorizedErrorMessage_1 = require("../../../../commons/types/UnauthorizedErrorMessage");
55
+ const RequestValidationError_1 = require("../../../../commons/types/RequestValidationError");
56
+ const SchemaInstanceValidationFailure_1 = require("../../../../encounters/resources/v4/types/SchemaInstanceValidationFailure");
57
+ const UnprocessableEntityErrorMessage_1 = require("../../../../commons/types/UnprocessableEntityErrorMessage");
58
+ const ChargeExternalIdConflictErrorMessage_1 = require("../types/ChargeExternalIdConflictErrorMessage");
59
+ exports.Error = core.serialization
60
+ .union("errorName", {
61
+ EntityNotFoundError: core.serialization.object({
62
+ content: EntityNotFoundErrorMessage_1.EntityNotFoundErrorMessage,
63
+ }),
64
+ UnauthorizedError: core.serialization.object({
65
+ content: UnauthorizedErrorMessage_1.UnauthorizedErrorMessage,
66
+ }),
67
+ HttpRequestValidationsError: core.serialization.object({
68
+ content: core.serialization.list(RequestValidationError_1.RequestValidationError),
69
+ }),
70
+ SchemaInstanceValidationHttpFailure: core.serialization.object({
71
+ content: SchemaInstanceValidationFailure_1.SchemaInstanceValidationFailure,
72
+ }),
73
+ UnprocessableEntityError: core.serialization.object({
74
+ content: UnprocessableEntityErrorMessage_1.UnprocessableEntityErrorMessage,
75
+ }),
76
+ ChargeExternalIdConflictError: core.serialization.object({
77
+ content: ChargeExternalIdConflictErrorMessage_1.ChargeExternalIdConflictErrorMessage,
78
+ }),
79
+ })
80
+ .transform({
81
+ transform: (value) => {
82
+ switch (value.errorName) {
83
+ case "EntityNotFoundError":
84
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.entityNotFoundError(value.content);
85
+ case "UnauthorizedError":
86
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.unauthorizedError(value.content);
87
+ case "HttpRequestValidationsError":
88
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.httpRequestValidationsError(value.content);
89
+ case "SchemaInstanceValidationHttpFailure":
90
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.schemaInstanceValidationHttpFailure(value.content);
91
+ case "UnprocessableEntityError":
92
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.unprocessableEntityError(value.content);
93
+ case "ChargeExternalIdConflictError":
94
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.chargeExternalIdConflictError(value.content);
95
+ }
96
+ },
97
+ untransform: (_a) => {
98
+ var { _visit } = _a, value = __rest(_a, ["_visit"]);
99
+ return value;
100
+ },
101
+ });
@@ -1,4 +1,5 @@
1
1
  export * as create from "./create";
2
+ export * as createFromPreEncounterPatient from "./createFromPreEncounterPatient";
2
3
  export * as update from "./update";
3
4
  export * as updatePostBilledChanges from "./updatePostBilledChanges";
4
5
  export * from "./requests";
@@ -36,8 +36,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.updatePostBilledChanges = exports.update = exports.create = void 0;
39
+ exports.updatePostBilledChanges = exports.update = exports.createFromPreEncounterPatient = exports.create = void 0;
40
40
  exports.create = __importStar(require("./create"));
41
+ exports.createFromPreEncounterPatient = __importStar(require("./createFromPreEncounterPatient"));
41
42
  exports.update = __importStar(require("./update"));
42
43
  exports.updatePostBilledChanges = __importStar(require("./updatePostBilledChanges"));
43
44
  __exportStar(require("./requests"), exports);