candidhealth 0.39.11 → 0.40.1

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 (428) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  3. package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +2 -1
  4. package/api/resources/chargeCapture/resources/v1/client/Client.js +11 -7
  5. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +6 -1
  6. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +3 -3
  7. package/api/resources/claims/types/Claim.d.ts +3 -0
  8. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  9. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  10. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  11. package/api/resources/diagnoses/client/Client.js +3 -3
  12. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  13. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  14. package/api/resources/encounters/resources/v4/client/Client.d.ts +34 -0
  15. package/api/resources/encounters/resources/v4/client/Client.js +39 -5
  16. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +44 -0
  17. package/api/resources/encounters/resources/v4/types/ClaimSupplementalInformation.d.ts +9 -0
  18. package/api/resources/encounters/resources/v4/types/ClaimSupplementalInformation.js +5 -0
  19. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +7 -0
  20. package/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +4 -0
  21. package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +3 -0
  22. package/api/resources/encounters/resources/v4/types/ReportTransmissionCode.d.ts +14 -0
  23. package/api/resources/encounters/resources/v4/types/ReportTransmissionCode.js +10 -0
  24. package/api/resources/encounters/resources/v4/types/ReportTypeCode.d.ts +250 -0
  25. package/api/resources/encounters/resources/v4/types/ReportTypeCode.js +69 -0
  26. package/api/resources/encounters/resources/v4/types/index.d.ts +3 -0
  27. package/api/resources/encounters/resources/v4/types/index.js +3 -0
  28. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  29. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  30. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  31. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  32. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  33. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  34. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  35. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  36. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  37. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  38. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  39. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  40. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  41. package/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +6 -1
  42. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +12 -7
  43. package/api/resources/nonInsurancePayers/resources/v1/types/CreateNonInsurancePayerRequest.d.ts +2 -0
  44. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  45. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  46. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  47. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  48. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  49. package/api/resources/preEncounter/client/Client.d.ts +3 -0
  50. package/api/resources/preEncounter/client/Client.js +13 -8
  51. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +4 -2
  52. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +11 -9
  53. package/api/resources/preEncounter/resources/common/types/HumanName.d.ts +1 -0
  54. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +4 -2
  55. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +13 -11
  56. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  57. package/api/resources/preEncounter/resources/images/client/Client.d.ts +30 -0
  58. package/api/resources/preEncounter/resources/images/client/Client.js +17 -0
  59. package/api/resources/preEncounter/resources/images/client/index.d.ts +1 -0
  60. package/api/resources/preEncounter/resources/images/client/index.js +2 -0
  61. package/api/resources/preEncounter/resources/images/index.d.ts +2 -0
  62. package/api/resources/preEncounter/resources/images/index.js +18 -0
  63. package/api/resources/preEncounter/resources/images/resources/index.d.ts +1 -0
  64. package/api/resources/preEncounter/resources/images/resources/index.js +37 -0
  65. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.d.ts +111 -0
  66. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +366 -0
  67. package/api/resources/preEncounter/resources/images/resources/v1/client/create.d.ts +28 -0
  68. package/api/resources/preEncounter/resources/images/resources/v1/client/create.js +68 -0
  69. package/api/resources/preEncounter/resources/images/resources/v1/client/deactivate.d.ts +34 -0
  70. package/api/resources/preEncounter/resources/images/resources/v1/client/deactivate.js +79 -0
  71. package/api/resources/preEncounter/resources/images/resources/v1/client/get.d.ts +28 -0
  72. package/api/resources/preEncounter/resources/images/resources/v1/client/get.js +68 -0
  73. package/api/resources/preEncounter/resources/images/resources/v1/client/getMulti.d.ts +22 -0
  74. package/api/resources/preEncounter/resources/images/resources/v1/client/getMulti.js +57 -0
  75. package/api/resources/preEncounter/resources/images/resources/v1/client/index.d.ts +6 -0
  76. package/api/resources/preEncounter/resources/images/resources/v1/client/index.js +45 -0
  77. package/api/resources/preEncounter/resources/images/resources/v1/client/requests/ImageGetMultiRequest.d.ts +14 -0
  78. package/api/resources/preEncounter/resources/images/resources/v1/client/requests/ImageGetMultiRequest.js +5 -0
  79. package/api/resources/preEncounter/resources/images/resources/v1/client/requests/index.d.ts +1 -0
  80. package/api/resources/preEncounter/resources/images/resources/v1/client/requests/index.js +2 -0
  81. package/api/resources/preEncounter/resources/images/resources/v1/client/update.d.ts +34 -0
  82. package/api/resources/preEncounter/resources/images/resources/v1/client/update.js +79 -0
  83. package/api/resources/preEncounter/resources/images/resources/v1/index.d.ts +2 -0
  84. package/api/resources/preEncounter/resources/images/resources/v1/index.js +18 -0
  85. package/api/resources/preEncounter/resources/images/resources/v1/types/CoverageAssociation.d.ts +11 -0
  86. package/api/resources/preEncounter/resources/images/resources/v1/types/CoverageAssociation.js +5 -0
  87. package/api/resources/preEncounter/resources/images/resources/v1/types/CoverageImageSide.d.ts +8 -0
  88. package/api/resources/preEncounter/resources/images/resources/v1/types/CoverageImageSide.js +10 -0
  89. package/api/resources/preEncounter/resources/images/resources/v1/types/Image.d.ts +12 -0
  90. package/api/resources/preEncounter/resources/images/resources/v1/types/Image.js +5 -0
  91. package/api/resources/preEncounter/resources/images/resources/v1/types/ImageId.d.ts +11 -0
  92. package/api/resources/preEncounter/resources/images/resources/v1/types/ImageId.js +9 -0
  93. package/api/resources/preEncounter/resources/images/resources/v1/types/ImageStatus.d.ts +9 -0
  94. package/api/resources/preEncounter/resources/images/resources/v1/types/ImageStatus.js +11 -0
  95. package/api/resources/preEncounter/resources/images/resources/v1/types/MutableImage.d.ts +15 -0
  96. package/api/resources/preEncounter/resources/images/resources/v1/types/MutableImage.js +5 -0
  97. package/api/resources/preEncounter/resources/images/resources/v1/types/PatientAssociation.d.ts +11 -0
  98. package/api/resources/preEncounter/resources/images/resources/v1/types/PatientAssociation.js +5 -0
  99. package/api/resources/preEncounter/resources/images/resources/v1/types/index.d.ts +7 -0
  100. package/api/resources/preEncounter/resources/images/resources/v1/types/index.js +23 -0
  101. package/api/resources/preEncounter/resources/index.d.ts +1 -0
  102. package/api/resources/preEncounter/resources/index.js +2 -1
  103. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  104. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  105. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +51 -18
  106. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +94 -28
  107. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  108. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  109. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +13 -6
  110. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +13 -6
  111. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/SearchProvidersRequest.d.ts +12 -0
  112. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/SearchProvidersRequest.js +5 -0
  113. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/index.d.ts +1 -0
  114. package/api/resources/preEncounter/resources/patients/resources/v1/client/searchProviders.d.ts +22 -0
  115. package/api/resources/preEncounter/resources/patients/resources/v1/client/searchProviders.js +57 -0
  116. package/api/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +2 -0
  117. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  118. package/api/resources/serviceFacility/client/Client.js +1 -1
  119. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  120. package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +7 -1
  121. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +4 -1
  122. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +4 -1
  123. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +3 -3
  124. package/api/resources/serviceLines/resources/v2/types/TestResultType.d.ts +2 -1
  125. package/api/resources/serviceLines/resources/v2/types/TestResultType.js +1 -0
  126. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  127. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  128. package/api/resources/writeOffs/resources/v1/types/NonInsurancePayerWriteOff.d.ts +15 -0
  129. package/api/resources/writeOffs/resources/v1/types/NonInsurancePayerWriteOff.js +5 -0
  130. package/api/resources/writeOffs/resources/v1/types/NonInsurancePayerWriteOffCreate.d.ts +12 -0
  131. package/api/resources/writeOffs/resources/v1/types/NonInsurancePayerWriteOffCreate.js +5 -0
  132. package/api/resources/writeOffs/resources/v1/types/WriteOff.d.ts +4 -1
  133. package/api/resources/writeOffs/resources/v1/types/WriteOffCreate.d.ts +4 -1
  134. package/api/resources/writeOffs/resources/v1/types/index.d.ts +2 -0
  135. package/api/resources/writeOffs/resources/v1/types/index.js +2 -0
  136. package/api/resources/x12/resources/v1/types/Rarc.d.ts +115 -1
  137. package/api/resources/x12/resources/v1/types/Rarc.js +114 -0
  138. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  139. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  140. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +2 -1
  141. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +11 -7
  142. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +6 -1
  143. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +3 -3
  144. package/dist/api/resources/claims/types/Claim.d.ts +3 -0
  145. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  146. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  147. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  148. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  149. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  150. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  151. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +34 -0
  152. package/dist/api/resources/encounters/resources/v4/client/Client.js +39 -5
  153. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +44 -0
  154. package/dist/api/resources/encounters/resources/v4/types/ClaimSupplementalInformation.d.ts +9 -0
  155. package/dist/api/resources/encounters/resources/v4/types/ClaimSupplementalInformation.js +5 -0
  156. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +7 -0
  157. package/dist/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +4 -0
  158. package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +3 -0
  159. package/dist/api/resources/encounters/resources/v4/types/ReportTransmissionCode.d.ts +14 -0
  160. package/dist/api/resources/encounters/resources/v4/types/ReportTransmissionCode.js +10 -0
  161. package/dist/api/resources/encounters/resources/v4/types/ReportTypeCode.d.ts +250 -0
  162. package/dist/api/resources/encounters/resources/v4/types/ReportTypeCode.js +69 -0
  163. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +3 -0
  164. package/dist/api/resources/encounters/resources/v4/types/index.js +3 -0
  165. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  166. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  167. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  168. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  169. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  170. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  171. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  172. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  173. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  174. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  175. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  176. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  177. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  178. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +6 -1
  179. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +12 -7
  180. package/dist/api/resources/nonInsurancePayers/resources/v1/types/CreateNonInsurancePayerRequest.d.ts +2 -0
  181. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  182. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  183. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  184. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  185. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  186. package/dist/api/resources/preEncounter/client/Client.d.ts +3 -0
  187. package/dist/api/resources/preEncounter/client/Client.js +13 -8
  188. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +4 -2
  189. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +11 -9
  190. package/dist/api/resources/preEncounter/resources/common/types/HumanName.d.ts +1 -0
  191. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +4 -2
  192. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +13 -11
  193. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  194. package/dist/api/resources/preEncounter/resources/images/client/Client.d.ts +30 -0
  195. package/dist/api/resources/preEncounter/resources/images/client/Client.js +17 -0
  196. package/dist/api/resources/preEncounter/resources/images/client/index.d.ts +1 -0
  197. package/dist/api/resources/preEncounter/resources/images/client/index.js +2 -0
  198. package/dist/api/resources/preEncounter/resources/images/index.d.ts +2 -0
  199. package/dist/api/resources/preEncounter/resources/images/index.js +18 -0
  200. package/dist/api/resources/preEncounter/resources/images/resources/index.d.ts +1 -0
  201. package/dist/api/resources/preEncounter/resources/images/resources/index.js +37 -0
  202. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.d.ts +111 -0
  203. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +366 -0
  204. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/create.d.ts +28 -0
  205. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/create.js +68 -0
  206. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/deactivate.d.ts +34 -0
  207. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/deactivate.js +79 -0
  208. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/get.d.ts +28 -0
  209. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/get.js +68 -0
  210. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/getMulti.d.ts +22 -0
  211. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/getMulti.js +57 -0
  212. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/index.d.ts +6 -0
  213. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/index.js +45 -0
  214. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/requests/ImageGetMultiRequest.d.ts +14 -0
  215. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/requests/ImageGetMultiRequest.js +5 -0
  216. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/requests/index.d.ts +1 -0
  217. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/requests/index.js +2 -0
  218. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/update.d.ts +34 -0
  219. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/update.js +79 -0
  220. package/dist/api/resources/preEncounter/resources/images/resources/v1/index.d.ts +2 -0
  221. package/dist/api/resources/preEncounter/resources/images/resources/v1/index.js +18 -0
  222. package/dist/api/resources/preEncounter/resources/images/resources/v1/types/CoverageAssociation.d.ts +11 -0
  223. package/dist/api/resources/preEncounter/resources/images/resources/v1/types/CoverageAssociation.js +5 -0
  224. package/dist/api/resources/preEncounter/resources/images/resources/v1/types/CoverageImageSide.d.ts +8 -0
  225. package/dist/api/resources/preEncounter/resources/images/resources/v1/types/CoverageImageSide.js +10 -0
  226. package/dist/api/resources/preEncounter/resources/images/resources/v1/types/Image.d.ts +12 -0
  227. package/dist/api/resources/preEncounter/resources/images/resources/v1/types/Image.js +5 -0
  228. package/dist/api/resources/preEncounter/resources/images/resources/v1/types/ImageId.d.ts +11 -0
  229. package/dist/api/resources/preEncounter/resources/images/resources/v1/types/ImageId.js +9 -0
  230. package/dist/api/resources/preEncounter/resources/images/resources/v1/types/ImageStatus.d.ts +9 -0
  231. package/dist/api/resources/preEncounter/resources/images/resources/v1/types/ImageStatus.js +11 -0
  232. package/dist/api/resources/preEncounter/resources/images/resources/v1/types/MutableImage.d.ts +15 -0
  233. package/dist/api/resources/preEncounter/resources/images/resources/v1/types/MutableImage.js +5 -0
  234. package/dist/api/resources/preEncounter/resources/images/resources/v1/types/PatientAssociation.d.ts +11 -0
  235. package/dist/api/resources/preEncounter/resources/images/resources/v1/types/PatientAssociation.js +5 -0
  236. package/dist/api/resources/preEncounter/resources/images/resources/v1/types/index.d.ts +7 -0
  237. package/dist/api/resources/preEncounter/resources/images/resources/v1/types/index.js +23 -0
  238. package/dist/api/resources/preEncounter/resources/index.d.ts +1 -0
  239. package/dist/api/resources/preEncounter/resources/index.js +2 -1
  240. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  241. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  242. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +51 -18
  243. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +94 -28
  244. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  245. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  246. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +13 -6
  247. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +13 -6
  248. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/SearchProvidersRequest.d.ts +12 -0
  249. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/SearchProvidersRequest.js +5 -0
  250. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/index.d.ts +1 -0
  251. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/searchProviders.d.ts +22 -0
  252. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/searchProviders.js +57 -0
  253. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +2 -0
  254. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  255. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  256. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  257. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +7 -1
  258. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +4 -1
  259. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +4 -1
  260. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +3 -3
  261. package/dist/api/resources/serviceLines/resources/v2/types/TestResultType.d.ts +2 -1
  262. package/dist/api/resources/serviceLines/resources/v2/types/TestResultType.js +1 -0
  263. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  264. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  265. package/dist/api/resources/writeOffs/resources/v1/types/NonInsurancePayerWriteOff.d.ts +15 -0
  266. package/dist/api/resources/writeOffs/resources/v1/types/NonInsurancePayerWriteOff.js +5 -0
  267. package/dist/api/resources/writeOffs/resources/v1/types/NonInsurancePayerWriteOffCreate.d.ts +12 -0
  268. package/dist/api/resources/writeOffs/resources/v1/types/NonInsurancePayerWriteOffCreate.js +5 -0
  269. package/dist/api/resources/writeOffs/resources/v1/types/WriteOff.d.ts +4 -1
  270. package/dist/api/resources/writeOffs/resources/v1/types/WriteOffCreate.d.ts +4 -1
  271. package/dist/api/resources/writeOffs/resources/v1/types/index.d.ts +2 -0
  272. package/dist/api/resources/writeOffs/resources/v1/types/index.js +2 -0
  273. package/dist/api/resources/x12/resources/v1/types/Rarc.d.ts +115 -1
  274. package/dist/api/resources/x12/resources/v1/types/Rarc.js +114 -0
  275. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +3 -0
  276. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +3 -0
  277. package/dist/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformation.d.ts +16 -0
  278. package/dist/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformation.js +47 -0
  279. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +3 -0
  280. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +3 -0
  281. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +3 -0
  282. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +3 -0
  283. package/dist/serialization/resources/encounters/resources/v4/types/ReportTransmissionCode.d.ts +10 -0
  284. package/dist/serialization/resources/encounters/resources/v4/types/ReportTransmissionCode.js +41 -0
  285. package/dist/serialization/resources/encounters/resources/v4/types/ReportTypeCode.d.ts +10 -0
  286. package/dist/serialization/resources/encounters/resources/v4/types/ReportTypeCode.js +103 -0
  287. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +3 -0
  288. package/dist/serialization/resources/encounters/resources/v4/types/index.js +3 -0
  289. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/CreateNonInsurancePayerRequest.d.ts +2 -0
  290. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/CreateNonInsurancePayerRequest.js +2 -0
  291. package/dist/serialization/resources/preEncounter/resources/common/types/HumanName.d.ts +1 -0
  292. package/dist/serialization/resources/preEncounter/resources/common/types/HumanName.js +1 -0
  293. package/dist/serialization/resources/preEncounter/resources/images/index.d.ts +1 -0
  294. package/dist/serialization/resources/preEncounter/resources/images/index.js +17 -0
  295. package/dist/serialization/resources/preEncounter/resources/images/resources/index.d.ts +1 -0
  296. package/dist/serialization/resources/preEncounter/resources/images/resources/index.js +37 -0
  297. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/client/create.d.ts +15 -0
  298. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/client/create.js +71 -0
  299. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/client/deactivate.d.ts +20 -0
  300. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/client/deactivate.js +77 -0
  301. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/client/get.d.ts +15 -0
  302. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/client/get.js +71 -0
  303. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/client/getMulti.d.ts +11 -0
  304. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/client/getMulti.js +42 -0
  305. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/client/index.d.ts +5 -0
  306. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/client/index.js +41 -0
  307. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/client/update.d.ts +20 -0
  308. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/client/update.js +77 -0
  309. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/index.d.ts +2 -0
  310. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/index.js +18 -0
  311. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/types/CoverageAssociation.d.ts +15 -0
  312. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/types/CoverageAssociation.js +46 -0
  313. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/types/CoverageImageSide.d.ts +10 -0
  314. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/types/CoverageImageSide.js +41 -0
  315. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/types/Image.d.ts +16 -0
  316. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/types/Image.js +50 -0
  317. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/types/ImageId.d.ts +10 -0
  318. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/types/ImageId.js +45 -0
  319. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/types/ImageStatus.d.ts +10 -0
  320. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/types/ImageStatus.js +41 -0
  321. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/types/MutableImage.d.ts +20 -0
  322. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/types/MutableImage.js +51 -0
  323. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/types/PatientAssociation.d.ts +14 -0
  324. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/types/PatientAssociation.js +45 -0
  325. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/types/index.d.ts +7 -0
  326. package/dist/serialization/resources/preEncounter/resources/images/resources/v1/types/index.js +23 -0
  327. package/dist/serialization/resources/preEncounter/resources/index.d.ts +1 -0
  328. package/dist/serialization/resources/preEncounter/resources/index.js +2 -1
  329. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  330. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  331. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/searchProviders.d.ts +11 -0
  332. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/searchProviders.js +42 -0
  333. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +1 -0
  334. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.js +1 -0
  335. package/dist/serialization/resources/serviceLines/resources/v2/types/TestResultType.d.ts +1 -1
  336. package/dist/serialization/resources/serviceLines/resources/v2/types/TestResultType.js +1 -1
  337. package/dist/serialization/resources/writeOffs/resources/v1/types/NonInsurancePayerWriteOff.d.ts +24 -0
  338. package/dist/serialization/resources/writeOffs/resources/v1/types/NonInsurancePayerWriteOff.js +55 -0
  339. package/dist/serialization/resources/writeOffs/resources/v1/types/NonInsurancePayerWriteOffCreate.d.ts +20 -0
  340. package/dist/serialization/resources/writeOffs/resources/v1/types/NonInsurancePayerWriteOffCreate.js +51 -0
  341. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOff.d.ts +5 -1
  342. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOff.js +2 -0
  343. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffCreate.d.ts +5 -1
  344. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffCreate.js +2 -0
  345. package/dist/serialization/resources/writeOffs/resources/v1/types/index.d.ts +2 -0
  346. package/dist/serialization/resources/writeOffs/resources/v1/types/index.js +2 -0
  347. package/dist/serialization/resources/x12/resources/v1/types/Rarc.d.ts +1 -1
  348. package/dist/serialization/resources/x12/resources/v1/types/Rarc.js +114 -0
  349. package/dist/version.d.ts +1 -1
  350. package/dist/version.js +1 -1
  351. package/package.json +1 -1
  352. package/reference.md +504 -0
  353. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +3 -0
  354. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +3 -0
  355. package/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformation.d.ts +16 -0
  356. package/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformation.js +47 -0
  357. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +3 -0
  358. package/serialization/resources/encounters/resources/v4/types/Encounter.js +3 -0
  359. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +3 -0
  360. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +3 -0
  361. package/serialization/resources/encounters/resources/v4/types/ReportTransmissionCode.d.ts +10 -0
  362. package/serialization/resources/encounters/resources/v4/types/ReportTransmissionCode.js +41 -0
  363. package/serialization/resources/encounters/resources/v4/types/ReportTypeCode.d.ts +10 -0
  364. package/serialization/resources/encounters/resources/v4/types/ReportTypeCode.js +103 -0
  365. package/serialization/resources/encounters/resources/v4/types/index.d.ts +3 -0
  366. package/serialization/resources/encounters/resources/v4/types/index.js +3 -0
  367. package/serialization/resources/nonInsurancePayers/resources/v1/types/CreateNonInsurancePayerRequest.d.ts +2 -0
  368. package/serialization/resources/nonInsurancePayers/resources/v1/types/CreateNonInsurancePayerRequest.js +2 -0
  369. package/serialization/resources/preEncounter/resources/common/types/HumanName.d.ts +1 -0
  370. package/serialization/resources/preEncounter/resources/common/types/HumanName.js +1 -0
  371. package/serialization/resources/preEncounter/resources/images/index.d.ts +1 -0
  372. package/serialization/resources/preEncounter/resources/images/index.js +17 -0
  373. package/serialization/resources/preEncounter/resources/images/resources/index.d.ts +1 -0
  374. package/serialization/resources/preEncounter/resources/images/resources/index.js +37 -0
  375. package/serialization/resources/preEncounter/resources/images/resources/v1/client/create.d.ts +15 -0
  376. package/serialization/resources/preEncounter/resources/images/resources/v1/client/create.js +71 -0
  377. package/serialization/resources/preEncounter/resources/images/resources/v1/client/deactivate.d.ts +20 -0
  378. package/serialization/resources/preEncounter/resources/images/resources/v1/client/deactivate.js +77 -0
  379. package/serialization/resources/preEncounter/resources/images/resources/v1/client/get.d.ts +15 -0
  380. package/serialization/resources/preEncounter/resources/images/resources/v1/client/get.js +71 -0
  381. package/serialization/resources/preEncounter/resources/images/resources/v1/client/getMulti.d.ts +11 -0
  382. package/serialization/resources/preEncounter/resources/images/resources/v1/client/getMulti.js +42 -0
  383. package/serialization/resources/preEncounter/resources/images/resources/v1/client/index.d.ts +5 -0
  384. package/serialization/resources/preEncounter/resources/images/resources/v1/client/index.js +41 -0
  385. package/serialization/resources/preEncounter/resources/images/resources/v1/client/update.d.ts +20 -0
  386. package/serialization/resources/preEncounter/resources/images/resources/v1/client/update.js +77 -0
  387. package/serialization/resources/preEncounter/resources/images/resources/v1/index.d.ts +2 -0
  388. package/serialization/resources/preEncounter/resources/images/resources/v1/index.js +18 -0
  389. package/serialization/resources/preEncounter/resources/images/resources/v1/types/CoverageAssociation.d.ts +15 -0
  390. package/serialization/resources/preEncounter/resources/images/resources/v1/types/CoverageAssociation.js +46 -0
  391. package/serialization/resources/preEncounter/resources/images/resources/v1/types/CoverageImageSide.d.ts +10 -0
  392. package/serialization/resources/preEncounter/resources/images/resources/v1/types/CoverageImageSide.js +41 -0
  393. package/serialization/resources/preEncounter/resources/images/resources/v1/types/Image.d.ts +16 -0
  394. package/serialization/resources/preEncounter/resources/images/resources/v1/types/Image.js +50 -0
  395. package/serialization/resources/preEncounter/resources/images/resources/v1/types/ImageId.d.ts +10 -0
  396. package/serialization/resources/preEncounter/resources/images/resources/v1/types/ImageId.js +45 -0
  397. package/serialization/resources/preEncounter/resources/images/resources/v1/types/ImageStatus.d.ts +10 -0
  398. package/serialization/resources/preEncounter/resources/images/resources/v1/types/ImageStatus.js +41 -0
  399. package/serialization/resources/preEncounter/resources/images/resources/v1/types/MutableImage.d.ts +20 -0
  400. package/serialization/resources/preEncounter/resources/images/resources/v1/types/MutableImage.js +51 -0
  401. package/serialization/resources/preEncounter/resources/images/resources/v1/types/PatientAssociation.d.ts +14 -0
  402. package/serialization/resources/preEncounter/resources/images/resources/v1/types/PatientAssociation.js +45 -0
  403. package/serialization/resources/preEncounter/resources/images/resources/v1/types/index.d.ts +7 -0
  404. package/serialization/resources/preEncounter/resources/images/resources/v1/types/index.js +23 -0
  405. package/serialization/resources/preEncounter/resources/index.d.ts +1 -0
  406. package/serialization/resources/preEncounter/resources/index.js +2 -1
  407. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  408. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  409. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/searchProviders.d.ts +11 -0
  410. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/searchProviders.js +42 -0
  411. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +1 -0
  412. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.js +1 -0
  413. package/serialization/resources/serviceLines/resources/v2/types/TestResultType.d.ts +1 -1
  414. package/serialization/resources/serviceLines/resources/v2/types/TestResultType.js +1 -1
  415. package/serialization/resources/writeOffs/resources/v1/types/NonInsurancePayerWriteOff.d.ts +24 -0
  416. package/serialization/resources/writeOffs/resources/v1/types/NonInsurancePayerWriteOff.js +55 -0
  417. package/serialization/resources/writeOffs/resources/v1/types/NonInsurancePayerWriteOffCreate.d.ts +20 -0
  418. package/serialization/resources/writeOffs/resources/v1/types/NonInsurancePayerWriteOffCreate.js +51 -0
  419. package/serialization/resources/writeOffs/resources/v1/types/WriteOff.d.ts +5 -1
  420. package/serialization/resources/writeOffs/resources/v1/types/WriteOff.js +2 -0
  421. package/serialization/resources/writeOffs/resources/v1/types/WriteOffCreate.d.ts +5 -1
  422. package/serialization/resources/writeOffs/resources/v1/types/WriteOffCreate.js +2 -0
  423. package/serialization/resources/writeOffs/resources/v1/types/index.d.ts +2 -0
  424. package/serialization/resources/writeOffs/resources/v1/types/index.js +2 -0
  425. package/serialization/resources/x12/resources/v1/types/Rarc.d.ts +1 -1
  426. package/serialization/resources/x12/resources/v1/types/Rarc.js +114 -0
  427. package/version.d.ts +1 -1
  428. package/version.js +1 -1
@@ -83,7 +83,7 @@ class V2 {
83
83
  const _response = yield core.fetcher({
84
84
  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/provider-credentialing-span/v2"),
85
85
  method: "POST",
86
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
87
  contentType: "application/json",
88
88
  requestType: "json",
89
89
  body: serializers.credentialing.v2.ProviderCredentialingSpanCreate.jsonOrThrow(request, {
@@ -138,7 +138,7 @@ class V2 {
138
138
  const _response = yield core.fetcher({
139
139
  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/provider-credentialing-span/v2/${encodeURIComponent(serializers.ProviderCredentialingSpanId.jsonOrThrow(providerCredentialingId))}`),
140
140
  method: "GET",
141
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
141
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
142
142
  contentType: "application/json",
143
143
  requestType: "json",
144
144
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -217,7 +217,7 @@ class V2 {
217
217
  const _response = yield core.fetcher({
218
218
  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/provider-credentialing-span/v2"),
219
219
  method: "GET",
220
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
220
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
221
221
  contentType: "application/json",
222
222
  queryParameters: _queryParams,
223
223
  requestType: "json",
@@ -272,7 +272,7 @@ class V2 {
272
272
  const _response = yield core.fetcher({
273
273
  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/provider-credentialing-span/v2/${encodeURIComponent(serializers.ProviderCredentialingSpanId.jsonOrThrow(providerCredentialingId))}`),
274
274
  method: "DELETE",
275
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
275
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
276
276
  contentType: "application/json",
277
277
  requestType: "json",
278
278
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -331,7 +331,7 @@ class V2 {
331
331
  const _response = yield core.fetcher({
332
332
  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/provider-credentialing-span/v2/${encodeURIComponent(serializers.ProviderCredentialingSpanId.jsonOrThrow(providerCredentialingId))}`),
333
333
  method: "PATCH",
334
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
334
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
335
335
  contentType: "application/json",
336
336
  requestType: "json",
337
337
  body: serializers.credentialing.v2.ProviderCredentialingSpanUpdate.jsonOrThrow(request, {
@@ -72,7 +72,7 @@ class V1 {
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/custom-schemas/v1"),
74
74
  method: "GET",
75
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "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": "0.40.1", "User-Agent": "candidhealth/0.40.1", "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
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -125,7 +125,7 @@ class V1 {
125
125
  const _response = yield core.fetcher({
126
126
  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/custom-schemas/v1/${encodeURIComponent(serializers.SchemaId.jsonOrThrow(schemaId))}`),
127
127
  method: "GET",
128
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
128
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
129
129
  contentType: "application/json",
130
130
  requestType: "json",
131
131
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -196,7 +196,7 @@ class V1 {
196
196
  const _response = yield core.fetcher({
197
197
  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/custom-schemas/v1"),
198
198
  method: "POST",
199
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
199
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
200
200
  contentType: "application/json",
201
201
  requestType: "json",
202
202
  body: serializers.customSchemas.v1.SchemaCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -258,7 +258,7 @@ class V1 {
258
258
  const _response = yield core.fetcher({
259
259
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/custom-schemas/v1/${encodeURIComponent(serializers.SchemaId.jsonOrThrow(schemaId))}`),
260
260
  method: "PATCH",
261
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
261
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
262
262
  contentType: "application/json",
263
263
  requestType: "json",
264
264
  body: serializers.customSchemas.v1.SchemaUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -78,7 +78,7 @@ class Diagnoses {
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).candidApi, "/api/diagnoses/v2"),
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": "0.39.11", "User-Agent": "candidhealth/0.39.11", "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": "0.40.1", "User-Agent": "candidhealth/0.40.1", "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.StandaloneDiagnosisCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -123,7 +123,7 @@ class Diagnoses {
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/diagnoses/v2/${encodeURIComponent(serializers.DiagnosisId.jsonOrThrow(diagnosisId))}`),
125
125
  method: "PATCH",
126
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
126
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "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
  requestType: "json",
129
129
  body: serializers.DiagnosisUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -177,7 +177,7 @@ class Diagnoses {
177
177
  const _response = yield core.fetcher({
178
178
  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/diagnoses/v2/${encodeURIComponent(serializers.DiagnosisId.jsonOrThrow(diagnosisId))}`),
179
179
  method: "DELETE",
180
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
180
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
181
181
  contentType: "application/json",
182
182
  requestType: "json",
183
183
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -91,7 +91,7 @@ class V2 {
91
91
  const _response = yield core.fetcher({
92
92
  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/eligibility/v2"),
93
93
  method: "POST",
94
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
95
95
  contentType: "application/json",
96
96
  requestType: "json",
97
97
  body: request,
@@ -159,7 +159,7 @@ class V2 {
159
159
  const _response = yield core.fetcher({
160
160
  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/eligibility/v2/availity"),
161
161
  method: "GET",
162
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
162
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
163
163
  contentType: "application/json",
164
164
  requestType: "json",
165
165
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -225,7 +225,7 @@ class V2 {
225
225
  const _response = yield core.fetcher({
226
226
  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/eligibility/v2/availity"),
227
227
  method: "POST",
228
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
228
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
229
229
  contentType: "application/json",
230
230
  requestType: "json",
231
231
  body: request,
@@ -86,7 +86,7 @@ class V2 {
86
86
  const _response = yield core.fetcher({
87
87
  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/encounter-providers/v2/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
88
88
  method: "PATCH",
89
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
90
90
  contentType: "application/json",
91
91
  requestType: "json",
92
92
  body: serializers.encounterProviders.v2.ReferringProviderUpdate.jsonOrThrow(request, {
@@ -157,7 +157,7 @@ class V2 {
157
157
  const _response = yield core.fetcher({
158
158
  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/encounter-providers/v2/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}/initial-referring-provider`),
159
159
  method: "PATCH",
160
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
160
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
161
161
  contentType: "application/json",
162
162
  requestType: "json",
163
163
  body: serializers.encounterProviders.v2.InitialReferringProviderUpdate.jsonOrThrow(request, {
@@ -228,7 +228,7 @@ class V2 {
228
228
  const _response = yield core.fetcher({
229
229
  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/encounter-providers/v2/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}/supervising-provider`),
230
230
  method: "PATCH",
231
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
231
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
232
232
  contentType: "application/json",
233
233
  requestType: "json",
234
234
  body: serializers.encounterProviders.v2.SupervisingProviderUpdate.jsonOrThrow(request, {
@@ -299,7 +299,7 @@ class V2 {
299
299
  const _response = yield core.fetcher({
300
300
  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/encounter-providers/v2/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}/ordering-provider`),
301
301
  method: "PATCH",
302
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
302
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
303
303
  contentType: "application/json",
304
304
  requestType: "json",
305
305
  body: serializers.encounterProviders.v2.OrderingProviderUpdate.jsonOrThrow(request, {
@@ -369,7 +369,7 @@ class V2 {
369
369
  const _response = yield core.fetcher({
370
370
  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/encounter-providers/v2/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}/create-referring-provider`),
371
371
  method: "POST",
372
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
372
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
373
373
  contentType: "application/json",
374
374
  requestType: "json",
375
375
  body: serializers.encounterProviders.v2.ReferringProvider.jsonOrThrow(request, {
@@ -441,7 +441,7 @@ class V2 {
441
441
  const _response = yield core.fetcher({
442
442
  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/encounter-providers/v2/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}/create-initial-referring-provider`),
443
443
  method: "POST",
444
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
444
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
445
445
  contentType: "application/json",
446
446
  requestType: "json",
447
447
  body: serializers.encounterProviders.v2.InitialReferringProvider.jsonOrThrow(request, {
@@ -514,7 +514,7 @@ class V2 {
514
514
  const _response = yield core.fetcher({
515
515
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/encounter-providers/v2/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}/create-supervising-provider`),
516
516
  method: "POST",
517
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
517
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
518
518
  contentType: "application/json",
519
519
  requestType: "json",
520
520
  body: serializers.encounterProviders.v2.SupervisingProvider.jsonOrThrow(request, {
@@ -586,7 +586,7 @@ class V2 {
586
586
  const _response = yield core.fetcher({
587
587
  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/encounter-providers/v2/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}/create-ordering-provider`),
588
588
  method: "POST",
589
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
589
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
590
590
  contentType: "application/json",
591
591
  requestType: "json",
592
592
  body: serializers.encounterProviders.v2.OrderingProvider.jsonOrThrow(request, {
@@ -642,7 +642,7 @@ class V2 {
642
642
  const _response = yield core.fetcher({
643
643
  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/encounter-providers/v2/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}/referring-provider`),
644
644
  method: "DELETE",
645
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
645
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
646
646
  contentType: "application/json",
647
647
  requestType: "json",
648
648
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -689,7 +689,7 @@ class V2 {
689
689
  const _response = yield core.fetcher({
690
690
  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/encounter-providers/v2/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}/initial-referring-provider`),
691
691
  method: "DELETE",
692
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
692
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
693
693
  contentType: "application/json",
694
694
  requestType: "json",
695
695
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -736,7 +736,7 @@ class V2 {
736
736
  const _response = yield core.fetcher({
737
737
  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/encounter-providers/v2/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}/supervising-provider`),
738
738
  method: "DELETE",
739
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
739
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
740
740
  contentType: "application/json",
741
741
  requestType: "json",
742
742
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -783,7 +783,7 @@ class V2 {
783
783
  const _response = yield core.fetcher({
784
784
  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/encounter-providers/v2/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}/ordering-provider`),
785
785
  method: "DELETE",
786
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
786
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
787
787
  contentType: "application/json",
788
788
  requestType: "json",
789
789
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -239,6 +239,36 @@ export declare class V4 {
239
239
  * lastName: "string",
240
240
  * gender: "male"
241
241
  * },
242
+ * subscriberTertiary: {
243
+ * insuranceCard: {
244
+ * memberId: "string",
245
+ * payerName: "string",
246
+ * payerId: "string",
247
+ * rxBin: "string",
248
+ * rxPcn: "string",
249
+ * imageUrlFront: "string",
250
+ * imageUrlBack: "string",
251
+ * emrPayerCrosswalk: "HEALTHIE",
252
+ * groupNumber: "string",
253
+ * planName: "string",
254
+ * planType: "09",
255
+ * insuranceType: "01",
256
+ * payerPlanGroupId: CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
257
+ * },
258
+ * patientRelationshipToSubscriberCode: "01",
259
+ * dateOfBirth: "2023-01-15",
260
+ * address: {
261
+ * address1: "123 Main St",
262
+ * address2: "Apt 1",
263
+ * city: "New York",
264
+ * state: "NY",
265
+ * zipCode: "10001",
266
+ * zipPlusFourCode: "1234"
267
+ * },
268
+ * firstName: "string",
269
+ * lastName: "string",
270
+ * gender: "male"
271
+ * },
242
272
  * priorAuthorizationNumber: CandidApi.encounters.v4.PriorAuthorizationNumber("string"),
243
273
  * responsibleParty: "INSURANCE_PAY",
244
274
  * diagnoses: [{
@@ -327,6 +357,10 @@ export declare class V4 {
327
357
  * conditionIndicator2: "AV",
328
358
  * conditionIndicator3: "AV"
329
359
  * },
360
+ * claimSupplementalInformation: [{
361
+ * attachmentReportTypeCode: "03",
362
+ * attachmentTransmissionCode: "BM"
363
+ * }],
330
364
  * externalId: CandidApi.EncounterExternalId("string"),
331
365
  * dateOfService: "2023-01-15",
332
366
  * endDateOfService: "2023-01-15",
@@ -143,7 +143,7 @@ class V4 {
143
143
  const _response = yield core.fetcher({
144
144
  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/encounters/v4"),
145
145
  method: "GET",
146
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
146
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
147
147
  contentType: "application/json",
148
148
  queryParameters: _queryParams,
149
149
  requestType: "json",
@@ -181,7 +181,7 @@ class V4 {
181
181
  const _response = yield core.fetcher({
182
182
  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/encounters/v4/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
183
183
  method: "GET",
184
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
184
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
185
185
  contentType: "application/json",
186
186
  requestType: "json",
187
187
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -392,6 +392,36 @@ class V4 {
392
392
  * lastName: "string",
393
393
  * gender: "male"
394
394
  * },
395
+ * subscriberTertiary: {
396
+ * insuranceCard: {
397
+ * memberId: "string",
398
+ * payerName: "string",
399
+ * payerId: "string",
400
+ * rxBin: "string",
401
+ * rxPcn: "string",
402
+ * imageUrlFront: "string",
403
+ * imageUrlBack: "string",
404
+ * emrPayerCrosswalk: "HEALTHIE",
405
+ * groupNumber: "string",
406
+ * planName: "string",
407
+ * planType: "09",
408
+ * insuranceType: "01",
409
+ * payerPlanGroupId: CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
410
+ * },
411
+ * patientRelationshipToSubscriberCode: "01",
412
+ * dateOfBirth: "2023-01-15",
413
+ * address: {
414
+ * address1: "123 Main St",
415
+ * address2: "Apt 1",
416
+ * city: "New York",
417
+ * state: "NY",
418
+ * zipCode: "10001",
419
+ * zipPlusFourCode: "1234"
420
+ * },
421
+ * firstName: "string",
422
+ * lastName: "string",
423
+ * gender: "male"
424
+ * },
395
425
  * priorAuthorizationNumber: CandidApi.encounters.v4.PriorAuthorizationNumber("string"),
396
426
  * responsibleParty: "INSURANCE_PAY",
397
427
  * diagnoses: [{
@@ -480,6 +510,10 @@ class V4 {
480
510
  * conditionIndicator2: "AV",
481
511
  * conditionIndicator3: "AV"
482
512
  * },
513
+ * claimSupplementalInformation: [{
514
+ * attachmentReportTypeCode: "03",
515
+ * attachmentTransmissionCode: "BM"
516
+ * }],
483
517
  * externalId: CandidApi.EncounterExternalId("string"),
484
518
  * dateOfService: "2023-01-15",
485
519
  * endDateOfService: "2023-01-15",
@@ -547,7 +581,7 @@ class V4 {
547
581
  const _response = yield core.fetcher({
548
582
  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/encounters/v4"),
549
583
  method: "POST",
550
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
584
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
551
585
  contentType: "application/json",
552
586
  requestType: "json",
553
587
  body: serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -824,7 +858,7 @@ class V4 {
824
858
  const _response = yield core.fetcher({
825
859
  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/encounters/v4/create-from-pre-encounter"),
826
860
  method: "POST",
827
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
861
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
828
862
  contentType: "application/json",
829
863
  requestType: "json",
830
864
  body: serializers.encounters.v4.EncounterCreateFromPreEncounter.jsonOrThrow(request, {
@@ -889,7 +923,7 @@ class V4 {
889
923
  const _response = yield core.fetcher({
890
924
  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/encounters/v4/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
891
925
  method: "PATCH",
892
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
926
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
893
927
  contentType: "application/json",
894
928
  requestType: "json",
895
929
  body: serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -186,6 +186,36 @@ import * as CandidApi from "../../../../../../index";
186
186
  * lastName: "string",
187
187
  * gender: "male"
188
188
  * },
189
+ * subscriberTertiary: {
190
+ * insuranceCard: {
191
+ * memberId: "string",
192
+ * payerName: "string",
193
+ * payerId: "string",
194
+ * rxBin: "string",
195
+ * rxPcn: "string",
196
+ * imageUrlFront: "string",
197
+ * imageUrlBack: "string",
198
+ * emrPayerCrosswalk: "HEALTHIE",
199
+ * groupNumber: "string",
200
+ * planName: "string",
201
+ * planType: "09",
202
+ * insuranceType: "01",
203
+ * payerPlanGroupId: CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
204
+ * },
205
+ * patientRelationshipToSubscriberCode: "01",
206
+ * dateOfBirth: "2023-01-15",
207
+ * address: {
208
+ * address1: "123 Main St",
209
+ * address2: "Apt 1",
210
+ * city: "New York",
211
+ * state: "NY",
212
+ * zipCode: "10001",
213
+ * zipPlusFourCode: "1234"
214
+ * },
215
+ * firstName: "string",
216
+ * lastName: "string",
217
+ * gender: "male"
218
+ * },
189
219
  * priorAuthorizationNumber: CandidApi.encounters.v4.PriorAuthorizationNumber("string"),
190
220
  * responsibleParty: "INSURANCE_PAY",
191
221
  * diagnoses: [{
@@ -274,6 +304,10 @@ import * as CandidApi from "../../../../../../index";
274
304
  * conditionIndicator2: "AV",
275
305
  * conditionIndicator3: "AV"
276
306
  * },
307
+ * claimSupplementalInformation: [{
308
+ * attachmentReportTypeCode: "03",
309
+ * attachmentTransmissionCode: "BM"
310
+ * }],
277
311
  * externalId: CandidApi.EncounterExternalId("string"),
278
312
  * dateOfService: "2023-01-15",
279
313
  * endDateOfService: "2023-01-15",
@@ -388,6 +422,11 @@ export interface EncounterCreate extends CandidApi.encounters.v4.EncounterBase {
388
422
  *
389
423
  */
390
424
  subscriberSecondary?: CandidApi.SubscriberCreate;
425
+ /**
426
+ * Please always include this when you have it, even for self-pay claims.
427
+ *
428
+ */
429
+ subscriberTertiary?: CandidApi.SubscriberCreate;
391
430
  /** Box 23 on the CMS-1500 claim form. */
392
431
  priorAuthorizationNumber?: CandidApi.encounters.v4.PriorAuthorizationNumber;
393
432
  /**
@@ -452,4 +491,9 @@ export interface EncounterCreate extends CandidApi.encounters.v4.EncounterBase {
452
491
  *
453
492
  */
454
493
  epsdtReferral?: CandidApi.encounters.v4.EpsdtReferral;
494
+ /**
495
+ * Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are permitted.
496
+ *
497
+ */
498
+ claimSupplementalInformation?: CandidApi.encounters.v4.ClaimSupplementalInformation[];
455
499
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ export interface ClaimSupplementalInformation {
6
+ attachmentReportTypeCode: CandidApi.encounters.v4.ReportTypeCode;
7
+ attachmentTransmissionCode: CandidApi.encounters.v4.ReportTransmissionCode;
8
+ attachmentControlNumber?: string;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -78,6 +78,9 @@ import * as CandidApi from "../../../../../index";
78
78
  * testResults: [{
79
79
  * resultType: CandidApi.serviceLines.v2.TestResultType.Hemoglobin,
80
80
  * value: 51
81
+ * }, {
82
+ * resultType: CandidApi.serviceLines.v2.TestResultType.Ldl,
83
+ * value: 110
81
84
  * }]
82
85
  * }],
83
86
  * eras: [{
@@ -459,6 +462,8 @@ export interface Encounter extends CandidApi.encounters.v4.EncounterBase {
459
462
  subscriberPrimary?: CandidApi.Subscriber;
460
463
  /** Contains details of the secondary insurance subscriber. */
461
464
  subscriberSecondary?: CandidApi.Subscriber;
465
+ /** Contains details of the tertiary insurance subscriber. */
466
+ subscriberTertiary?: CandidApi.Subscriber;
462
467
  /** Box 23 on the CMS-1500 claim form. */
463
468
  priorAuthorizationNumber?: CandidApi.encounters.v4.PriorAuthorizationNumber;
464
469
  /** Defines the party to be billed with the initial balance owed on the claim. */
@@ -502,6 +507,8 @@ export interface Encounter extends CandidApi.encounters.v4.EncounterBase {
502
507
  referralNumber?: string;
503
508
  /** Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the 837P form */
504
509
  epsdtReferral?: CandidApi.encounters.v4.EpsdtReferral;
510
+ /** Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are permitted. */
511
+ claimSupplementalInformation?: CandidApi.encounters.v4.ClaimSupplementalInformation[];
505
512
  /** The date and time the encounter was last submitted to a payer. */
506
513
  lastSubmittedAt?: Date;
507
514
  /** The date and time the encounter was created. */
@@ -51,6 +51,8 @@ export interface EncounterOptional {
51
51
  subscriberPrimary?: CandidApi.SubscriberCreate;
52
52
  /** Contains details of the secondary insurance subscriber. */
53
53
  subscriberSecondary?: CandidApi.SubscriberCreate;
54
+ /** Contains details of the tertiary insurance subscriber. */
55
+ subscriberTertiary?: CandidApi.SubscriberCreate;
54
56
  /**
55
57
  * Defines additional information on the claim needed by the payer.
56
58
  * Box 19 on the CMS-1500 claim form.
@@ -145,4 +147,6 @@ export interface EncounterOptional {
145
147
  referralNumber?: string;
146
148
  /** Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the 837P form */
147
149
  epsdtReferral?: CandidApi.encounters.v4.EpsdtReferral;
150
+ /** Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are permitted. */
151
+ claimSupplementalInformation?: CandidApi.encounters.v4.ClaimSupplementalInformation[];
148
152
  }
@@ -79,6 +79,9 @@ import * as CandidApi from "../../../../../index";
79
79
  * testResults: [{
80
80
  * resultType: CandidApi.serviceLines.v2.TestResultType.Hemoglobin,
81
81
  * value: 51
82
+ * }, {
83
+ * resultType: CandidApi.serviceLines.v2.TestResultType.Ldl,
84
+ * value: 110
82
85
  * }]
83
86
  * }],
84
87
  * eras: [{
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ReportTransmissionCode =
5
+ /**
6
+ * By Mail */
7
+ "BM"
8
+ /**
9
+ * By Fax */
10
+ | "FX";
11
+ export declare const ReportTransmissionCode: {
12
+ readonly Cbm: "BM";
13
+ readonly Cfx: "FX";
14
+ };