candidhealth 0.43.1 → 0.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) 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/billingNotes/resources/v2/types/index.d.ts +0 -1
  4. package/api/resources/billingNotes/resources/v2/types/index.js +0 -1
  5. package/api/resources/chargeCapture/resources/v1/client/Client.js +6 -6
  6. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +27 -1
  7. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +3 -3
  8. package/api/resources/commons/types/StreetAddressOptionalBase.d.ts +12 -0
  9. package/api/resources/commons/types/StreetAddressShortZipOptional.d.ts +19 -0
  10. package/api/resources/commons/types/index.d.ts +2 -0
  11. package/api/resources/commons/types/index.js +2 -0
  12. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  13. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  14. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  15. package/api/resources/diagnoses/client/Client.js +3 -3
  16. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  17. package/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
  18. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  19. package/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +27 -0
  20. package/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.js +5 -0
  21. package/api/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.d.ts +14 -0
  22. package/api/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.js +5 -0
  23. package/api/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.d.ts +13 -0
  24. package/api/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.js +5 -0
  25. package/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.d.ts +13 -0
  26. package/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.js +5 -0
  27. package/api/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.d.ts +13 -0
  28. package/api/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.js +5 -0
  29. package/api/resources/encounterProviders/resources/v2/types/index.d.ts +5 -0
  30. package/api/resources/encounterProviders/resources/v2/types/index.js +5 -0
  31. package/api/resources/encounters/resources/v4/client/Client.d.ts +128 -0
  32. package/api/resources/encounters/resources/v4/client/Client.js +133 -5
  33. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +6 -0
  34. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +168 -0
  35. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  36. package/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +2 -26
  37. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  38. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  39. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  40. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  41. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  42. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  43. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  44. package/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +23 -0
  45. package/api/resources/individual/types/PatientUpdateWithOptionalAddress.js +5 -0
  46. package/api/resources/individual/types/index.d.ts +1 -0
  47. package/api/resources/individual/types/index.js +1 -0
  48. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  49. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  50. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  51. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  52. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  53. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  54. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  55. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  56. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  57. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  58. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  59. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  60. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  61. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  62. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
  63. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  64. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  65. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  66. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  67. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  68. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  69. package/api/resources/serviceFacility/client/Client.js +1 -1
  70. package/api/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.d.ts +20 -0
  71. package/api/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.js +5 -0
  72. package/api/resources/serviceFacility/types/index.d.ts +1 -0
  73. package/api/resources/serviceFacility/types/index.js +1 -0
  74. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  75. package/api/resources/superbills/resources/v1/client/Client.js +1 -1
  76. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  77. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  78. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  79. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  80. package/dist/api/resources/billingNotes/resources/v2/types/index.d.ts +0 -1
  81. package/dist/api/resources/billingNotes/resources/v2/types/index.js +0 -1
  82. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +6 -6
  83. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +27 -1
  84. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +3 -3
  85. package/dist/api/resources/commons/types/StreetAddressOptionalBase.d.ts +12 -0
  86. package/dist/api/resources/commons/types/StreetAddressOptionalBase.js +5 -0
  87. package/dist/api/resources/commons/types/StreetAddressShortZipOptional.d.ts +19 -0
  88. package/dist/api/resources/commons/types/StreetAddressShortZipOptional.js +5 -0
  89. package/dist/api/resources/commons/types/index.d.ts +2 -0
  90. package/dist/api/resources/commons/types/index.js +2 -0
  91. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  92. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  93. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  94. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  95. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  96. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
  97. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  98. package/dist/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +27 -0
  99. package/dist/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.js +5 -0
  100. package/dist/api/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.d.ts +14 -0
  101. package/dist/api/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.js +5 -0
  102. package/dist/api/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.d.ts +13 -0
  103. package/dist/api/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.js +5 -0
  104. package/dist/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.d.ts +13 -0
  105. package/dist/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.js +5 -0
  106. package/dist/api/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.d.ts +13 -0
  107. package/dist/api/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.js +5 -0
  108. package/dist/api/resources/encounterProviders/resources/v2/types/index.d.ts +5 -0
  109. package/dist/api/resources/encounterProviders/resources/v2/types/index.js +5 -0
  110. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +128 -0
  111. package/dist/api/resources/encounters/resources/v4/client/Client.js +133 -5
  112. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +6 -0
  113. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +168 -0
  114. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  115. package/dist/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +2 -26
  116. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  117. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  118. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  119. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  120. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  121. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  122. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  123. package/dist/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +23 -0
  124. package/dist/api/resources/individual/types/PatientUpdateWithOptionalAddress.js +5 -0
  125. package/dist/api/resources/individual/types/index.d.ts +1 -0
  126. package/dist/api/resources/individual/types/index.js +1 -0
  127. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  128. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  129. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  130. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  131. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  132. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  133. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  134. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  135. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  136. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  137. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  138. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  139. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  140. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  141. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
  142. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  143. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  144. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  145. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  146. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  147. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  148. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  149. package/dist/api/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.d.ts +20 -0
  150. package/dist/api/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.js +5 -0
  151. package/dist/api/resources/serviceFacility/types/index.d.ts +1 -0
  152. package/dist/api/resources/serviceFacility/types/index.js +1 -0
  153. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  154. package/dist/api/resources/superbills/resources/v1/client/Client.js +1 -1
  155. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  156. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  157. package/dist/serialization/resources/billingNotes/resources/v2/types/index.d.ts +0 -1
  158. package/dist/serialization/resources/billingNotes/resources/v2/types/index.js +0 -1
  159. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +18 -2
  160. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +18 -2
  161. package/dist/serialization/resources/commons/types/StreetAddressOptionalBase.d.ts +17 -0
  162. package/dist/serialization/resources/commons/types/StreetAddressOptionalBase.js +48 -0
  163. package/dist/serialization/resources/commons/types/StreetAddressShortZipOptional.d.ts +13 -0
  164. package/dist/serialization/resources/commons/types/StreetAddressShortZipOptional.js +46 -0
  165. package/dist/serialization/resources/commons/types/index.d.ts +2 -0
  166. package/dist/serialization/resources/commons/types/index.js +2 -0
  167. package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +19 -0
  168. package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.js +52 -0
  169. package/dist/serialization/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.d.ts +18 -0
  170. package/dist/serialization/resources/{billingNotes/resources/v2/types/BillingNoteOptional.js → encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.js} +10 -11
  171. package/dist/serialization/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.d.ts +16 -0
  172. package/{serialization/resources/billingNotes/resources/v2/types/BillingNoteOptional.js → dist/serialization/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.js} +8 -11
  173. package/dist/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.d.ts +16 -0
  174. package/dist/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.js +49 -0
  175. package/dist/serialization/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.d.ts +16 -0
  176. package/dist/serialization/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.js +49 -0
  177. package/dist/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +5 -0
  178. package/dist/serialization/resources/encounterProviders/resources/v2/types/index.js +5 -0
  179. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -0
  180. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +1 -0
  181. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +16 -0
  182. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +16 -0
  183. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  184. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -0
  185. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +1 -16
  186. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +1 -16
  187. package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +29 -0
  188. package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +60 -0
  189. package/dist/serialization/resources/individual/types/index.d.ts +1 -0
  190. package/dist/serialization/resources/individual/types/index.js +1 -0
  191. package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.d.ts +16 -0
  192. package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.js +47 -0
  193. package/dist/serialization/resources/serviceFacility/types/index.d.ts +1 -0
  194. package/dist/serialization/resources/serviceFacility/types/index.js +1 -0
  195. package/dist/version.d.ts +1 -1
  196. package/dist/version.js +1 -1
  197. package/package.json +1 -1
  198. package/reference.md +134 -0
  199. package/serialization/resources/billingNotes/resources/v2/types/index.d.ts +0 -1
  200. package/serialization/resources/billingNotes/resources/v2/types/index.js +0 -1
  201. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +18 -2
  202. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +18 -2
  203. package/serialization/resources/commons/types/StreetAddressOptionalBase.d.ts +17 -0
  204. package/serialization/resources/commons/types/StreetAddressOptionalBase.js +48 -0
  205. package/serialization/resources/commons/types/StreetAddressShortZipOptional.d.ts +13 -0
  206. package/serialization/resources/commons/types/StreetAddressShortZipOptional.js +46 -0
  207. package/serialization/resources/commons/types/index.d.ts +2 -0
  208. package/serialization/resources/commons/types/index.js +2 -0
  209. package/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +19 -0
  210. package/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.js +52 -0
  211. package/serialization/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.d.ts +18 -0
  212. package/serialization/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.js +51 -0
  213. package/serialization/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.d.ts +16 -0
  214. package/serialization/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.js +49 -0
  215. package/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.d.ts +16 -0
  216. package/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.js +49 -0
  217. package/serialization/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.d.ts +16 -0
  218. package/serialization/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.js +49 -0
  219. package/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +5 -0
  220. package/serialization/resources/encounterProviders/resources/v2/types/index.js +5 -0
  221. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -0
  222. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +1 -0
  223. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +16 -0
  224. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +16 -0
  225. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  226. package/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -0
  227. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +1 -16
  228. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +1 -16
  229. package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +29 -0
  230. package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +60 -0
  231. package/serialization/resources/individual/types/index.d.ts +1 -0
  232. package/serialization/resources/individual/types/index.js +1 -0
  233. package/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.d.ts +16 -0
  234. package/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.js +47 -0
  235. package/serialization/resources/serviceFacility/types/index.d.ts +1 -0
  236. package/serialization/resources/serviceFacility/types/index.js +1 -0
  237. package/version.d.ts +1 -1
  238. package/version.js +1 -1
  239. package/api/resources/billingNotes/resources/v2/types/BillingNoteOptional.d.ts +0 -15
  240. package/dist/api/resources/billingNotes/resources/v2/types/BillingNoteOptional.d.ts +0 -15
  241. package/dist/serialization/resources/billingNotes/resources/v2/types/BillingNoteOptional.d.ts +0 -19
  242. package/serialization/resources/billingNotes/resources/v2/types/BillingNoteOptional.d.ts +0 -19
  243. /package/api/resources/{billingNotes/resources/v2/types/BillingNoteOptional.js → commons/types/StreetAddressOptionalBase.js} +0 -0
  244. /package/{dist/api/resources/billingNotes/resources/v2/types/BillingNoteOptional.js → api/resources/commons/types/StreetAddressShortZipOptional.js} +0 -0
@@ -5,11 +5,140 @@ import * as CandidApi from "../../../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
8
+ * payToAddress: {
9
+ * address1: "123 Main St",
10
+ * address2: "Apt 1",
11
+ * city: "New York",
12
+ * state: "NY",
13
+ * zipCode: "10001",
14
+ * zipPlusFourCode: "1234"
15
+ * },
8
16
  * diagnosisIds: [CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
17
+ * initialReferringProvider: {
18
+ * npi: "string",
19
+ * taxonomyCode: "string",
20
+ * address: {
21
+ * address1: "123 Main St",
22
+ * address2: "Apt 1",
23
+ * city: "New York",
24
+ * state: "NY",
25
+ * zipCode: "10001",
26
+ * zipPlusFourCode: "1234"
27
+ * },
28
+ * qualifier: "DQ",
29
+ * firstName: "string",
30
+ * lastName: "string",
31
+ * organizationName: "string"
32
+ * },
33
+ * referringProvider: {
34
+ * npi: "string",
35
+ * taxonomyCode: "string",
36
+ * address: {
37
+ * address1: "123 Main St",
38
+ * address2: "Apt 1",
39
+ * city: "New York",
40
+ * state: "NY",
41
+ * zipCode: "10001",
42
+ * zipPlusFourCode: "1234"
43
+ * },
44
+ * firstName: "string",
45
+ * lastName: "string",
46
+ * organizationName: "string"
47
+ * },
48
+ * patient: {
49
+ * firstName: "string",
50
+ * lastName: "string",
51
+ * gender: "male",
52
+ * externalId: "string",
53
+ * dateOfBirth: "2023-01-15",
54
+ * address: {
55
+ * address1: "123 Main St",
56
+ * address2: "Apt 1",
57
+ * city: "New York",
58
+ * state: "NY",
59
+ * zipCode: "10001",
60
+ * zipPlusFourCode: "1234"
61
+ * },
62
+ * phoneNumbers: [{
63
+ * number: "1234567890",
64
+ * type: "Home"
65
+ * }],
66
+ * phoneConsent: true,
67
+ * email: CandidApi.Email("johndoe@joincandidhealth.com"),
68
+ * emailConsent: true,
69
+ * nonInsurancePayers: [CandidApi.nonInsurancePayers.v1.NonInsurancePayerId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
70
+ * nonInsurancePayersInfo: [{
71
+ * nonInsurancePayerId: CandidApi.nonInsurancePayers.v1.NonInsurancePayerId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
72
+ * memberId: "string",
73
+ * clinicalTrialInfo: [{
74
+ * clinicalTrialId: CandidApi.ClinicalTrialId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
75
+ * }]
76
+ * }]
77
+ * },
78
+ * renderingProvider: {
79
+ * npi: "string",
80
+ * taxonomyCode: "string",
81
+ * address: {
82
+ * address1: "123 Main St",
83
+ * address2: "Apt 1",
84
+ * city: "New York",
85
+ * state: "NY",
86
+ * zipCode: "10001",
87
+ * zipPlusFourCode: "1234"
88
+ * },
89
+ * firstName: "string",
90
+ * lastName: "string",
91
+ * organizationName: "string"
92
+ * },
93
+ * serviceFacility: {
94
+ * organizationName: "Test Organization",
95
+ * address: {
96
+ * address1: "123 Main St",
97
+ * address2: "Apt 1",
98
+ * city: "New York",
99
+ * state: "NY",
100
+ * zipCode: "10001",
101
+ * zipPlusFourCode: "1234"
102
+ * }
103
+ * },
104
+ * supervisingProvider: {
105
+ * npi: "string",
106
+ * taxonomyCode: "string",
107
+ * address: {
108
+ * address1: "123 Main St",
109
+ * address2: "Apt 1",
110
+ * city: "New York",
111
+ * state: "NY",
112
+ * zipCode: "10001",
113
+ * zipPlusFourCode: "1234"
114
+ * },
115
+ * firstName: "string",
116
+ * lastName: "string",
117
+ * organizationName: "string"
118
+ * },
119
+ * billingProvider: {
120
+ * address: {
121
+ * address1: "123 Main St",
122
+ * address2: "Apt 1",
123
+ * city: "New York",
124
+ * state: "NY",
125
+ * zipCode: "10001",
126
+ * zipPlusFourCode: "1234"
127
+ * },
128
+ * taxId: "string",
129
+ * npi: "string",
130
+ * taxonomyCode: "string",
131
+ * providerCommercialLicenseType: "0",
132
+ * firstName: "string",
133
+ * lastName: "string",
134
+ * organizationName: "string"
135
+ * },
9
136
  * placeOfServiceCodeAsSubmitted: "01"
10
137
  * }
11
138
  */
12
139
  export interface EncounterUpdate extends CandidApi.encounters.v4.EncounterOptional {
140
+ /** Specifies the address to which payments for the claim should be sent. */
141
+ payToAddress?: CandidApi.StreetAddressLongZip;
13
142
  /**
14
143
  * Ideally, this field should contain no more than 12 diagnoses. However, more diagnoses
15
144
  * may be submitted at this time, and coders will later prioritize the 12 that will be
@@ -17,6 +146,45 @@ export interface EncounterUpdate extends CandidApi.encounters.v4.EncounterOption
17
146
  *
18
147
  */
19
148
  diagnosisIds?: CandidApi.DiagnosisId[];
149
+ /**
150
+ * The second iteration of Loop ID-2310. Use code "P3 - Primary Care Provider" in this loop to
151
+ * indicate the initial referral from the primary care provider or whatever provider wrote the initial referral for this patient's episode of care being billed/reported in this transaction.
152
+ *
153
+ */
154
+ initialReferringProvider?: CandidApi.encounterProviders.v2.InitialReferringProviderUpdate;
155
+ /**
156
+ * The final provider who referred the services that were rendered.
157
+ * All physicians who order services or refer Medicare beneficiaries must
158
+ * report this data.
159
+ *
160
+ */
161
+ referringProvider?: CandidApi.encounterProviders.v2.ReferringProviderUpdate;
162
+ /**
163
+ * Contains the identification information of the individual receiving medical services.
164
+ *
165
+ */
166
+ patient?: CandidApi.PatientUpdate;
167
+ /**
168
+ * The rendering provider is the practitioner -- physician, nurse practitioner, etc. -- performing the service.
169
+ * For telehealth services, the rendering provider performs the visit, asynchronous communication, or other service. The rendering provider address should generally be the same as the service facility address.
170
+ *
171
+ */
172
+ renderingProvider?: CandidApi.encounterProviders.v2.RenderingProviderUpdate;
173
+ /**
174
+ * Encounter Service facility is typically the location a medical service was rendered, such as a provider office or hospital. For telehealth, service facility can represent the provider's location when the service was delivered (e.g., home), or the location where an in-person visit would have taken place, whichever is easier to identify. If the provider is in-network, service facility may be defined in payer contracts. Box 32 on the CMS-1500 claim form. Note that for an in-network claim to be successfully adjudicated, the service facility address listed on claims must match what was provided to the payer during the credentialing process.
175
+ *
176
+ */
177
+ serviceFacility?: CandidApi.EncounterServiceFacilityUpdate;
178
+ /**
179
+ * Required when the rendering provider is supervised by a physician. If not required by this implementation guide, do not send.
180
+ *
181
+ */
182
+ supervisingProvider?: CandidApi.encounterProviders.v2.SupervisingProviderUpdate;
183
+ /**
184
+ * The billing provider is the provider or business entity submitting the claim. Billing provider may be, but is not necessarily, the same person/NPI as the rendering provider. From a payer's perspective, this represents the person or entity being reimbursed. When a contract exists with the target payer, the billing provider should be the entity contracted with the payer. In some circumstances, this will be an individual provider. In that case, submit that provider's NPI and the tax ID (TIN) that the provider gave to the payer during contracting. In other cases, the billing entity will be a medical group. If so, submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim form.
185
+ *
186
+ */
187
+ billingProvider?: CandidApi.encounterProviders.v2.BillingProviderUpdate;
20
188
  /**
21
189
  * Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for telemedicine, 11 for in-person. Full list [here](https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
22
190
  *
@@ -509,6 +509,8 @@ export interface Encounter extends CandidApi.encounters.v4.EncounterBase {
509
509
  epsdtReferral?: CandidApi.encounters.v4.EpsdtReferral;
510
510
  /** Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are permitted. */
511
511
  claimSupplementalInformation?: CandidApi.encounters.v4.ClaimSupplementalInformation[];
512
+ /** When Medicaid is billed as the secondary payer the Carrier Code is used to identify the primary payer. This is required for certain states. */
513
+ secondaryPayerCarrierCode?: string;
512
514
  /** The date and time the encounter was last submitted to a payer. */
513
515
  lastSubmittedAt?: Date;
514
516
  /** The date and time the encounter was created. */
@@ -25,8 +25,6 @@ export interface EncounterOptional {
25
25
  tagIds?: CandidApi.TagId[];
26
26
  /** Holds a collection of clinical observations made by healthcare providers during patient encounters. */
27
27
  clinicalNotes?: CandidApi.encounters.v4.ClinicalNoteCategoryCreate[];
28
- /** Specifies the address to which payments for the claim should be sent. */
29
- payToAddress?: CandidApi.StreetAddressLongZip;
30
28
  /** Defines if the Encounter is to be billed by Candid to the responsible_party. Examples for when this should be set to NOT_BILLABLE include if the Encounter has not occurred yet or if there is no intention of ever billing the responsible_party. */
31
29
  billableStatus?: CandidApi.encounters.v4.BillableStatusType;
32
30
  /** Defines the party to be billed with the initial balance owed on the claim. Use SELF_PAY if you intend to bill self pay/cash pay. */
@@ -94,8 +92,6 @@ export interface EncounterOptional {
94
92
  * Code indicating the reason why a request was delayed
95
93
  */
96
94
  delayReasonCode?: CandidApi.DelayReasonCode;
97
- /** Contains the identification information of the individual receiving medical services. */
98
- patient?: CandidApi.PatientUpdate;
99
95
  /**
100
96
  * Whether this patient has authorized the release of medical information
101
97
  * for billing purpose.
@@ -119,34 +115,14 @@ export interface EncounterOptional {
119
115
  * Note all current existing medications on encounter will be overridden with this list.
120
116
  */
121
117
  existingMedications?: CandidApi.encounters.v4.Medication[];
122
- /**
123
- * The rendering provider is the practitioner -- physician, nurse practitioner, etc. -- performing the service.
124
- * For telehealth services, the rendering provider performs the visit, asynchronous communication, or other service. The rendering provider address should generally be the same as the service facility address.
125
- */
126
- renderingProvider?: CandidApi.encounterProviders.v2.RenderingProviderUpdate;
127
- /** Encounter Service facility is typically the location a medical service was rendered, such as a provider office or hospital. For telehealth, service facility can represent the provider's location when the service was delivered (e.g., home), or the location where an in-person visit would have taken place, whichever is easier to identify. If the provider is in-network, service facility may be defined in payer contracts. Box 32 on the CMS-1500 claim form. Note that for an in-network claim to be successfully adjudicated, the service facility address listed on claims must match what was provided to the payer during the credentialing process. */
128
- serviceFacility?: CandidApi.EncounterServiceFacilityUpdate;
129
118
  /** Personal and contact info for the guarantor of the patient responsibility. */
130
119
  guarantor?: CandidApi.guarantor.v1.GuarantorUpdate;
131
- /** The billing provider is the provider or business entity submitting the claim. Billing provider may be, but is not necessarily, the same person/NPI as the rendering provider. From a payer's perspective, this represents the person or entity being reimbursed. When a contract exists with the target payer, the billing provider should be the entity contracted with the payer. In some circumstances, this will be an individual provider. In that case, submit that provider's NPI and the tax ID (TIN) that the provider gave to the payer during contracting. In other cases, the billing entity will be a medical group. If so, submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim form. */
132
- billingProvider?: CandidApi.encounterProviders.v2.BillingProviderUpdate;
133
- /** Required when the rendering provider is supervised by a physician. If not required by this implementation guide, do not send. */
134
- supervisingProvider?: CandidApi.encounterProviders.v2.SupervisingProviderUpdate;
135
- /**
136
- * The final provider who referred the services that were rendered.
137
- * All physicians who order services or refer Medicare beneficiaries must
138
- * report this data.
139
- */
140
- referringProvider?: CandidApi.encounterProviders.v2.ReferringProviderUpdate;
141
- /**
142
- * The second iteration of Loop ID-2310. Use code "P3 - Primary Care Provider" in this loop to
143
- * indicate the initial referral from the primary care provider or whatever provider wrote the initial referral for this patient's episode of care being billed/reported in this transaction.
144
- */
145
- initialReferringProvider?: CandidApi.encounterProviders.v2.InitialReferringProviderUpdate;
146
120
  /** Refers to REF\*9F on the 837p. Value cannot be greater than 50 characters. */
147
121
  referralNumber?: string;
148
122
  /** Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the 837P form */
149
123
  epsdtReferral?: CandidApi.encounters.v4.EpsdtReferral;
150
124
  /** Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are permitted. */
151
125
  claimSupplementalInformation?: CandidApi.encounters.v4.ClaimSupplementalInformation[];
126
+ /** When Medicaid is billed as the secondary payer the Carrier Code is used to identify the primary payer. This is required for certain states. */
127
+ secondaryPayerCarrierCode?: string;
152
128
  }
@@ -84,7 +84,7 @@ class V1 {
84
84
  const _response = yield core.fetcher({
85
85
  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/expected-network-status/v1"),
86
86
  method: "POST",
87
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  requestType: "json",
90
90
  body: serializers.expectedNetworkStatus.v1.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
@@ -101,7 +101,7 @@ class V2 {
101
101
  const _response = yield core.fetcher({
102
102
  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/expected-network-status/v2/compute/${encodeURIComponent(serializers.organizationProviders.v2.OrganizationProviderId.jsonOrThrow(renderingProviderId))}`),
103
103
  method: "POST",
104
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
104
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
105
105
  contentType: "application/json",
106
106
  requestType: "json",
107
107
  body: serializers.expectedNetworkStatus.v2.ExpectedNetworkStatusRequestV2.jsonOrThrow(request, {
@@ -186,7 +186,7 @@ class V2 {
186
186
  const _response = yield core.fetcher({
187
187
  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/expected-network-status/v2/compute"),
188
188
  method: "POST",
189
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
189
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
190
190
  contentType: "application/json",
191
191
  requestType: "json",
192
192
  body: serializers.expectedNetworkStatus.v2.ComputeAllInNetworkProvidersRequest.jsonOrThrow(request, {
@@ -95,7 +95,7 @@ class V3 {
95
95
  const _response = yield core.fetcher({
96
96
  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/exports/v3"),
97
97
  method: "GET",
98
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
98
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
99
99
  contentType: "application/json",
100
100
  queryParameters: _queryParams,
101
101
  requestType: "json",
@@ -87,7 +87,7 @@ class V1 {
87
87
  const _response = yield core.fetcher({
88
88
  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/external-payment-account-config/v1"),
89
89
  method: "GET",
90
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
90
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
91
91
  contentType: "application/json",
92
92
  queryParameters: _queryParams,
93
93
  requestType: "json",
@@ -73,7 +73,7 @@ class V3 {
73
73
  const _response = yield core.fetcher({
74
74
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/fee-schedules/v3/service-line/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}/match`),
75
75
  method: "GET",
76
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
77
  contentType: "application/json",
78
78
  requestType: "json",
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -128,7 +128,7 @@ class V3 {
128
128
  const _response = yield core.fetcher({
129
129
  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/fee-schedules/v3/service-line/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}/match/${encodeURIComponent(serializers.RateId.jsonOrThrow(rateId))}`),
130
130
  method: "GET",
131
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
131
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
132
132
  contentType: "application/json",
133
133
  requestType: "json",
134
134
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -280,7 +280,7 @@ class V3 {
280
280
  const _response = yield core.fetcher({
281
281
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/fee-schedules/v3"),
282
282
  method: "GET",
283
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
283
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
284
284
  contentType: "application/json",
285
285
  queryParameters: _queryParams,
286
286
  requestType: "json",
@@ -418,7 +418,7 @@ class V3 {
418
418
  const _response = yield core.fetcher({
419
419
  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/fee-schedules/v3/unique-dimension-values"),
420
420
  method: "GET",
421
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
421
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
422
422
  contentType: "application/json",
423
423
  queryParameters: _queryParams,
424
424
  requestType: "json",
@@ -458,7 +458,7 @@ class V3 {
458
458
  const _response = yield core.fetcher({
459
459
  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/fee-schedules/v3/${encodeURIComponent(serializers.RateId.jsonOrThrow(rateId))}/history`),
460
460
  method: "GET",
461
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
461
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
462
462
  contentType: "application/json",
463
463
  requestType: "json",
464
464
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -533,7 +533,7 @@ class V3 {
533
533
  const _response = yield core.fetcher({
534
534
  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/fee-schedules/v3"),
535
535
  method: "POST",
536
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
536
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
537
537
  contentType: "application/json",
538
538
  requestType: "json",
539
539
  body: serializers.feeSchedules.v3.FeeScheduleUploadRequest.jsonOrThrow(request, {
@@ -590,7 +590,7 @@ class V3 {
590
590
  const _response = yield core.fetcher({
591
591
  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/fee-schedules/v3/${encodeURIComponent(serializers.RateId.jsonOrThrow(rateId))}/${encodeURIComponent(version)}`),
592
592
  method: "DELETE",
593
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
593
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
594
594
  contentType: "application/json",
595
595
  requestType: "json",
596
596
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -638,7 +638,7 @@ class V3 {
638
638
  const _response = yield core.fetcher({
639
639
  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/fee-schedules/v3/payer-threshold/default"),
640
640
  method: "GET",
641
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
641
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
642
642
  contentType: "application/json",
643
643
  requestType: "json",
644
644
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -687,7 +687,7 @@ class V3 {
687
687
  const _response = yield core.fetcher({
688
688
  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/fee-schedules/v3/payer-threshold"),
689
689
  method: "GET",
690
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
690
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
691
691
  contentType: "application/json",
692
692
  queryParameters: _queryParams,
693
693
  requestType: "json",
@@ -732,7 +732,7 @@ class V3 {
732
732
  const _response = yield core.fetcher({
733
733
  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/fee-schedules/v3/payer-threshold/${encodeURIComponent(serializers.payers.v3.PayerUuid.jsonOrThrow(payerUuid))}`),
734
734
  method: "PUT",
735
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
735
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
736
736
  contentType: "application/json",
737
737
  requestType: "json",
738
738
  body: serializers.feeSchedules.v3.PayerThreshold.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -94,7 +94,7 @@ class V1 {
94
94
  const _response = yield core.fetcher({
95
95
  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/guarantors/v1/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
96
96
  method: "POST",
97
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
97
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
98
98
  contentType: "application/json",
99
99
  requestType: "json",
100
100
  body: serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -149,7 +149,7 @@ class V1 {
149
149
  const _response = yield core.fetcher({
150
150
  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/guarantors/v1/${encodeURIComponent(serializers.guarantor.v1.GuarantorId.jsonOrThrow(guarantorId))}`),
151
151
  method: "GET",
152
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
152
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
153
153
  contentType: "application/json",
154
154
  requestType: "json",
155
155
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -209,7 +209,7 @@ class V1 {
209
209
  const _response = yield core.fetcher({
210
210
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/guarantors/v1/${encodeURIComponent(serializers.guarantor.v1.GuarantorId.jsonOrThrow(guarantorId))}`),
211
211
  method: "PATCH",
212
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
212
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
213
213
  contentType: "application/json",
214
214
  requestType: "json",
215
215
  body: serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -89,7 +89,7 @@ class V1 {
89
89
  const _response = yield core.fetcher({
90
90
  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/import-invoice/v1"),
91
91
  method: "POST",
92
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
92
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
93
  contentType: "application/json",
94
94
  requestType: "json",
95
95
  body: serializers.importInvoice.v1.CreateImportInvoiceRequest.jsonOrThrow(request, {
@@ -200,7 +200,7 @@ class V1 {
200
200
  const _response = yield core.fetcher({
201
201
  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/import-invoice/v1"),
202
202
  method: "GET",
203
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
203
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
204
204
  contentType: "application/json",
205
205
  queryParameters: _queryParams,
206
206
  requestType: "json",
@@ -240,7 +240,7 @@ class V1 {
240
240
  const _response = yield core.fetcher({
241
241
  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/import-invoice/v1/${encodeURIComponent(serializers.InvoiceId.jsonOrThrow(invoiceId))}`),
242
242
  method: "GET",
243
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
243
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
244
244
  contentType: "application/json",
245
245
  requestType: "json",
246
246
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -309,7 +309,7 @@ class V1 {
309
309
  const _response = yield core.fetcher({
310
310
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/import-invoice/v1/${encodeURIComponent(serializers.InvoiceId.jsonOrThrow(invoiceId))}`),
311
311
  method: "PATCH",
312
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
312
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
313
313
  contentType: "application/json",
314
314
  requestType: "json",
315
315
  body: serializers.importInvoice.v1.ImportInvoiceUpdateRequest.jsonOrThrow(request, {
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../index";
5
+ export interface PatientUpdateWithOptionalAddress {
6
+ firstName?: string;
7
+ lastName?: string;
8
+ gender?: CandidApi.Gender;
9
+ /** The ID used to identify this individual in your system. For example, your internal patient ID or an EHR patient ID. */
10
+ externalId?: string;
11
+ /** Box 3 on the CMS-1500 claim form. The date format should be in ISO 8601 date; formatted YYYY-MM-DD (i.e. 2012-02-01) */
12
+ dateOfBirth?: string;
13
+ /** Box 5 on the CMS-1500 claim form. */
14
+ address?: CandidApi.StreetAddressShortZipOptional;
15
+ phoneNumbers?: CandidApi.PhoneNumber[];
16
+ phoneConsent?: boolean;
17
+ email?: CandidApi.Email;
18
+ emailConsent?: boolean;
19
+ /** On update, we will replace the existing list of non-insurance payers with the new list if populated. */
20
+ nonInsurancePayers?: CandidApi.nonInsurancePayers.v1.NonInsurancePayerId[];
21
+ /** On update, we will replace the existing list of non-insurance payers with the new list if populated. */
22
+ nonInsurancePayersInfo?: CandidApi.PatientNonInsurancePayerInfoCreate[];
23
+ }
@@ -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 });
@@ -10,5 +10,6 @@ export * from "./PatientNonInsurancePayerInfo";
10
10
  export * from "./PatientCreate";
11
11
  export * from "./PatientUpdate";
12
12
  export * from "./PatientBase";
13
+ export * from "./PatientUpdateWithOptionalAddress";
13
14
  export * from "./Patient";
14
15
  export * from "./Gender";
@@ -26,5 +26,6 @@ __exportStar(require("./PatientNonInsurancePayerInfo"), exports);
26
26
  __exportStar(require("./PatientCreate"), exports);
27
27
  __exportStar(require("./PatientUpdate"), exports);
28
28
  __exportStar(require("./PatientBase"), exports);
29
+ __exportStar(require("./PatientUpdateWithOptionalAddress"), exports);
29
30
  __exportStar(require("./Patient"), exports);
30
31
  __exportStar(require("./Gender"), exports);
@@ -73,7 +73,7 @@ class V1 {
73
73
  const _response = yield core.fetcher({
74
74
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/insurance-adjudications/v1/${encodeURIComponent(serializers.insuranceAdjudications.v1.InsuranceAdjudicationId.jsonOrThrow(insuranceAdjudicationId))}`),
75
75
  method: "GET",
76
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
77
  contentType: "application/json",
78
78
  requestType: "json",
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -135,7 +135,7 @@ class V1 {
135
135
  const _response = yield core.fetcher({
136
136
  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/insurance-adjudications/v1"),
137
137
  method: "POST",
138
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
138
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
139
139
  contentType: "application/json",
140
140
  requestType: "json",
141
141
  body: serializers.insuranceAdjudications.v1.InsuranceAdjudicationCreate.jsonOrThrow(request, {
@@ -191,7 +191,7 @@ class V1 {
191
191
  const _response = yield core.fetcher({
192
192
  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/insurance-adjudications/v1/${encodeURIComponent(serializers.insuranceAdjudications.v1.InsuranceAdjudicationId.jsonOrThrow(insuranceAdjudicationId))}`),
193
193
  method: "DELETE",
194
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
194
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
195
195
  contentType: "application/json",
196
196
  requestType: "json",
197
197
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -112,7 +112,7 @@ class V1 {
112
112
  const _response = yield core.fetcher({
113
113
  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/insurance-payments/v1"),
114
114
  method: "GET",
115
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
115
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
116
116
  contentType: "application/json",
117
117
  queryParameters: _queryParams,
118
118
  requestType: "json",
@@ -168,7 +168,7 @@ class V1 {
168
168
  const _response = yield core.fetcher({
169
169
  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/insurance-payments/v1/${encodeURIComponent(serializers.insurancePayments.v1.InsurancePaymentId.jsonOrThrow(insurancePaymentId))}`),
170
170
  method: "GET",
171
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
171
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
172
172
  contentType: "application/json",
173
173
  requestType: "json",
174
174
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,