candidhealth 0.43.0 → 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 (318) 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.d.ts +5 -239
  6. package/api/resources/chargeCapture/resources/v1/client/Client.js +16 -249
  7. package/api/resources/chargeCapture/resources/v1/client/create.d.ts +7 -1
  8. package/api/resources/chargeCapture/resources/v1/client/create.js +11 -0
  9. package/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -1
  10. package/api/resources/chargeCapture/resources/v1/client/index.js +2 -2
  11. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +8 -0
  12. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +1 -118
  13. package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +1 -118
  14. package/{dist/api/resources/chargeCapture/resources/v1/client/updatePostBilledChange.d.ts → api/resources/chargeCapture/resources/v1/client/updatePostBilledChanges.d.ts} +6 -6
  15. package/{dist/api/resources/chargeCapture/resources/v1/client/updatePostBilledChange.js → api/resources/chargeCapture/resources/v1/client/updatePostBilledChanges.js} +3 -3
  16. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +27 -1
  17. package/api/resources/chargeCapture/resources/v1/types/ChargeExternalIdConflictErrorMessage.d.ts +6 -0
  18. package/api/resources/chargeCapture/resources/v1/types/index.d.ts +1 -0
  19. package/api/resources/chargeCapture/resources/v1/types/index.js +1 -0
  20. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +3 -3
  21. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreation.d.ts +3 -1
  22. package/api/resources/commons/types/StreetAddressOptionalBase.d.ts +12 -0
  23. package/api/resources/commons/types/StreetAddressShortZipOptional.d.ts +19 -0
  24. package/api/resources/commons/types/StreetAddressShortZipOptional.js +5 -0
  25. package/api/resources/commons/types/index.d.ts +2 -0
  26. package/api/resources/commons/types/index.js +2 -0
  27. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  28. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  29. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  30. package/api/resources/diagnoses/client/Client.js +3 -3
  31. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  32. package/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +1 -1
  33. package/api/resources/encounterAttachments/resources/v1/client/Client.js +4 -4
  34. package/api/resources/encounterAttachments/resources/v1/types/EncounterAttachmentType.d.ts +3 -1
  35. package/api/resources/encounterAttachments/resources/v1/types/EncounterAttachmentType.js +2 -0
  36. package/api/resources/encounterProviders/resources/v2/client/Client.d.ts +66 -8
  37. package/api/resources/encounterProviders/resources/v2/client/Client.js +78 -20
  38. package/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +27 -0
  39. package/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.js +5 -0
  40. package/api/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.d.ts +14 -0
  41. package/api/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.js +5 -0
  42. package/api/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.d.ts +13 -0
  43. package/api/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.js +5 -0
  44. package/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.d.ts +13 -0
  45. package/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.js +5 -0
  46. package/api/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.d.ts +13 -0
  47. package/api/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.js +5 -0
  48. package/api/resources/encounterProviders/resources/v2/types/index.d.ts +5 -0
  49. package/api/resources/encounterProviders/resources/v2/types/index.js +5 -0
  50. package/api/resources/encounters/resources/v4/client/Client.d.ts +197 -79
  51. package/api/resources/encounters/resources/v4/client/Client.js +202 -84
  52. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +89 -9
  53. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +138 -66
  54. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  55. package/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +2 -26
  56. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  57. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  58. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  59. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  60. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  61. package/api/resources/guarantor/resources/v1/client/Client.d.ts +21 -1
  62. package/api/resources/guarantor/resources/v1/client/Client.js +24 -4
  63. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  64. package/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +23 -0
  65. package/api/resources/individual/types/PatientUpdateWithOptionalAddress.js +5 -0
  66. package/api/resources/individual/types/index.d.ts +1 -0
  67. package/api/resources/individual/types/index.js +1 -0
  68. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  69. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  70. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  71. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  72. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  73. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  74. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  75. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  76. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  77. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  78. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  79. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  80. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  81. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  82. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
  83. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  84. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  85. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  86. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  87. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  88. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  89. package/api/resources/serviceFacility/client/Client.js +1 -1
  90. package/api/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.d.ts +20 -0
  91. package/api/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.js +5 -0
  92. package/api/resources/serviceFacility/types/index.d.ts +1 -0
  93. package/api/resources/serviceFacility/types/index.js +1 -0
  94. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +4 -1
  95. package/api/resources/serviceLines/resources/v2/client/Client.js +7 -4
  96. package/api/resources/superbills/resources/v1/client/Client.js +1 -1
  97. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  98. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  99. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  100. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  101. package/dist/api/resources/billingNotes/resources/v2/types/index.d.ts +0 -1
  102. package/dist/api/resources/billingNotes/resources/v2/types/index.js +0 -1
  103. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +5 -239
  104. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +16 -249
  105. package/dist/api/resources/chargeCapture/resources/v1/client/create.d.ts +7 -1
  106. package/dist/api/resources/chargeCapture/resources/v1/client/create.js +11 -0
  107. package/dist/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -1
  108. package/dist/api/resources/chargeCapture/resources/v1/client/index.js +2 -2
  109. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +8 -0
  110. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +1 -118
  111. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +1 -118
  112. package/{api/resources/chargeCapture/resources/v1/client/updatePostBilledChange.d.ts → dist/api/resources/chargeCapture/resources/v1/client/updatePostBilledChanges.d.ts} +6 -6
  113. package/{api/resources/chargeCapture/resources/v1/client/updatePostBilledChange.js → dist/api/resources/chargeCapture/resources/v1/client/updatePostBilledChanges.js} +3 -3
  114. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +27 -1
  115. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeExternalIdConflictErrorMessage.d.ts +6 -0
  116. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeExternalIdConflictErrorMessage.js +5 -0
  117. package/dist/api/resources/chargeCapture/resources/v1/types/index.d.ts +1 -0
  118. package/dist/api/resources/chargeCapture/resources/v1/types/index.js +1 -0
  119. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +3 -3
  120. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreation.d.ts +3 -1
  121. package/dist/api/resources/commons/types/StreetAddressOptionalBase.d.ts +12 -0
  122. package/dist/api/resources/commons/types/StreetAddressOptionalBase.js +5 -0
  123. package/dist/api/resources/commons/types/StreetAddressShortZipOptional.d.ts +19 -0
  124. package/dist/api/resources/commons/types/StreetAddressShortZipOptional.js +5 -0
  125. package/dist/api/resources/commons/types/index.d.ts +2 -0
  126. package/dist/api/resources/commons/types/index.js +2 -0
  127. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  128. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  129. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  130. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  131. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  132. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +1 -1
  133. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +4 -4
  134. package/dist/api/resources/encounterAttachments/resources/v1/types/EncounterAttachmentType.d.ts +3 -1
  135. package/dist/api/resources/encounterAttachments/resources/v1/types/EncounterAttachmentType.js +2 -0
  136. package/dist/api/resources/encounterProviders/resources/v2/client/Client.d.ts +66 -8
  137. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +78 -20
  138. package/dist/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +27 -0
  139. package/dist/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.js +5 -0
  140. package/dist/api/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.d.ts +14 -0
  141. package/dist/api/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.js +5 -0
  142. package/dist/api/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.d.ts +13 -0
  143. package/dist/api/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.js +5 -0
  144. package/dist/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.d.ts +13 -0
  145. package/dist/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.js +5 -0
  146. package/dist/api/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.d.ts +13 -0
  147. package/dist/api/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.js +5 -0
  148. package/dist/api/resources/encounterProviders/resources/v2/types/index.d.ts +5 -0
  149. package/dist/api/resources/encounterProviders/resources/v2/types/index.js +5 -0
  150. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +197 -79
  151. package/dist/api/resources/encounters/resources/v4/client/Client.js +202 -84
  152. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +89 -9
  153. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +138 -66
  154. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  155. package/dist/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +2 -26
  156. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  157. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  158. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  159. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  160. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  161. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +21 -1
  162. package/dist/api/resources/guarantor/resources/v1/client/Client.js +24 -4
  163. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  164. package/dist/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +23 -0
  165. package/dist/api/resources/individual/types/PatientUpdateWithOptionalAddress.js +5 -0
  166. package/dist/api/resources/individual/types/index.d.ts +1 -0
  167. package/dist/api/resources/individual/types/index.js +1 -0
  168. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  169. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  170. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  171. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  172. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  173. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  174. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  175. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  176. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  177. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  178. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  179. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  180. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  181. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  182. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
  183. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  184. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  185. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  186. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  187. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  188. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  189. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  190. package/dist/api/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.d.ts +20 -0
  191. package/dist/api/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.js +5 -0
  192. package/dist/api/resources/serviceFacility/types/index.d.ts +1 -0
  193. package/dist/api/resources/serviceFacility/types/index.js +1 -0
  194. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +4 -1
  195. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +7 -4
  196. package/dist/api/resources/superbills/resources/v1/client/Client.js +1 -1
  197. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  198. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  199. package/dist/serialization/resources/billingNotes/resources/v2/types/index.d.ts +0 -1
  200. package/dist/serialization/resources/billingNotes/resources/v2/types/index.js +0 -1
  201. package/dist/serialization/resources/chargeCapture/resources/v1/client/create.d.ts +6 -1
  202. package/dist/serialization/resources/chargeCapture/resources/v1/client/create.js +6 -0
  203. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +1 -1
  204. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.js +2 -2
  205. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +2 -0
  206. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.js +2 -0
  207. package/{serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChange.d.ts → dist/serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChanges.d.ts} +6 -1
  208. package/{serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChange.js → dist/serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChanges.js} +5 -3
  209. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +18 -2
  210. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +18 -2
  211. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeExternalIdConflictErrorMessage.d.ts +12 -0
  212. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeExternalIdConflictErrorMessage.js +43 -0
  213. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +1 -0
  214. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.js +1 -0
  215. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreation.d.ts +3 -1
  216. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreation.js +3 -1
  217. package/dist/serialization/resources/commons/types/StreetAddressOptionalBase.d.ts +17 -0
  218. package/dist/serialization/resources/commons/types/StreetAddressOptionalBase.js +48 -0
  219. package/dist/serialization/resources/commons/types/StreetAddressShortZipOptional.d.ts +13 -0
  220. package/dist/serialization/resources/commons/types/StreetAddressShortZipOptional.js +46 -0
  221. package/dist/serialization/resources/commons/types/index.d.ts +2 -0
  222. package/dist/serialization/resources/commons/types/index.js +2 -0
  223. package/dist/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachmentType.d.ts +1 -1
  224. package/dist/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachmentType.js +1 -1
  225. package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +19 -0
  226. package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.js +52 -0
  227. package/dist/serialization/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.d.ts +18 -0
  228. package/dist/serialization/resources/{billingNotes/resources/v2/types/BillingNoteOptional.js → encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.js} +10 -11
  229. package/dist/serialization/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.d.ts +16 -0
  230. package/{serialization/resources/billingNotes/resources/v2/types/BillingNoteOptional.js → dist/serialization/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.js} +8 -11
  231. package/dist/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.d.ts +16 -0
  232. package/dist/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.js +49 -0
  233. package/dist/serialization/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.d.ts +16 -0
  234. package/dist/serialization/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.js +49 -0
  235. package/dist/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +5 -0
  236. package/dist/serialization/resources/encounterProviders/resources/v2/types/index.js +5 -0
  237. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -0
  238. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +1 -0
  239. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +16 -0
  240. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +16 -0
  241. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  242. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -0
  243. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +1 -16
  244. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +1 -16
  245. package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +29 -0
  246. package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +60 -0
  247. package/dist/serialization/resources/individual/types/index.d.ts +1 -0
  248. package/dist/serialization/resources/individual/types/index.js +1 -0
  249. package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.d.ts +16 -0
  250. package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.js +47 -0
  251. package/dist/serialization/resources/serviceFacility/types/index.d.ts +1 -0
  252. package/dist/serialization/resources/serviceFacility/types/index.js +1 -0
  253. package/dist/version.d.ts +1 -1
  254. package/dist/version.js +1 -1
  255. package/package.json +1 -1
  256. package/reference.md +284 -327
  257. package/serialization/resources/billingNotes/resources/v2/types/index.d.ts +0 -1
  258. package/serialization/resources/billingNotes/resources/v2/types/index.js +0 -1
  259. package/serialization/resources/chargeCapture/resources/v1/client/create.d.ts +6 -1
  260. package/serialization/resources/chargeCapture/resources/v1/client/create.js +6 -0
  261. package/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +1 -1
  262. package/serialization/resources/chargeCapture/resources/v1/client/index.js +2 -2
  263. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +2 -0
  264. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.js +2 -0
  265. package/{dist/serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChange.d.ts → serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChanges.d.ts} +6 -1
  266. package/{dist/serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChange.js → serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChanges.js} +5 -3
  267. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +18 -2
  268. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +18 -2
  269. package/serialization/resources/chargeCapture/resources/v1/types/ChargeExternalIdConflictErrorMessage.d.ts +12 -0
  270. package/serialization/resources/chargeCapture/resources/v1/types/ChargeExternalIdConflictErrorMessage.js +43 -0
  271. package/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +1 -0
  272. package/serialization/resources/chargeCapture/resources/v1/types/index.js +1 -0
  273. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreation.d.ts +3 -1
  274. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreation.js +3 -1
  275. package/serialization/resources/commons/types/StreetAddressOptionalBase.d.ts +17 -0
  276. package/serialization/resources/commons/types/StreetAddressOptionalBase.js +48 -0
  277. package/serialization/resources/commons/types/StreetAddressShortZipOptional.d.ts +13 -0
  278. package/serialization/resources/commons/types/StreetAddressShortZipOptional.js +46 -0
  279. package/serialization/resources/commons/types/index.d.ts +2 -0
  280. package/serialization/resources/commons/types/index.js +2 -0
  281. package/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachmentType.d.ts +1 -1
  282. package/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachmentType.js +1 -1
  283. package/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +19 -0
  284. package/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.js +52 -0
  285. package/serialization/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.d.ts +18 -0
  286. package/serialization/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.js +51 -0
  287. package/serialization/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.d.ts +16 -0
  288. package/serialization/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.js +49 -0
  289. package/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.d.ts +16 -0
  290. package/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.js +49 -0
  291. package/serialization/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.d.ts +16 -0
  292. package/serialization/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.js +49 -0
  293. package/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +5 -0
  294. package/serialization/resources/encounterProviders/resources/v2/types/index.js +5 -0
  295. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -0
  296. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +1 -0
  297. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +16 -0
  298. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +16 -0
  299. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  300. package/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -0
  301. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +1 -16
  302. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +1 -16
  303. package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +29 -0
  304. package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +60 -0
  305. package/serialization/resources/individual/types/index.d.ts +1 -0
  306. package/serialization/resources/individual/types/index.js +1 -0
  307. package/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.d.ts +16 -0
  308. package/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.js +47 -0
  309. package/serialization/resources/serviceFacility/types/index.d.ts +1 -0
  310. package/serialization/resources/serviceFacility/types/index.js +1 -0
  311. package/version.d.ts +1 -1
  312. package/version.js +1 -1
  313. package/api/resources/billingNotes/resources/v2/types/BillingNoteOptional.d.ts +0 -15
  314. package/dist/api/resources/billingNotes/resources/v2/types/BillingNoteOptional.d.ts +0 -15
  315. package/dist/serialization/resources/billingNotes/resources/v2/types/BillingNoteOptional.d.ts +0 -19
  316. package/serialization/resources/billingNotes/resources/v2/types/BillingNoteOptional.d.ts +0 -19
  317. /package/api/resources/{billingNotes/resources/v2/types/BillingNoteOptional.js → chargeCapture/resources/v1/types/ChargeExternalIdConflictErrorMessage.js} +0 -0
  318. /package/{dist/api/resources/billingNotes/resources/v2/types/BillingNoteOptional.js → api/resources/commons/types/StreetAddressOptionalBase.js} +0 -0
@@ -64,124 +64,7 @@ class V1 {
64
64
  *
65
65
  * @example
66
66
  * await client.chargeCapture.v1.create({
67
- * data: {
68
- * diagnoses: [],
69
- * interventions: [],
70
- * externalClaimSubmission: {
71
- * claimCreatedAt: "2023-01-01T12:00:00.000000Z",
72
- * patientControlNumber: "PATIENT_CONTROL_NUMBER",
73
- * submissionRecords: [{
74
- * submittedAt: "2023-01-01T13:00:00.000000Z",
75
- * claimFrequencyCode: "1",
76
- * payerResponsibility: "primary",
77
- * intendedSubmissionMedium: "electronic"
78
- * }, {
79
- * submittedAt: "2023-01-04T12:00:00.000000Z",
80
- * claimFrequencyCode: "7",
81
- * payerResponsibility: "primary",
82
- * intendedSubmissionMedium: "paper"
83
- * }]
84
- * },
85
- * serviceLines: [],
86
- * patientHistories: [],
87
- * billingNotes: [],
88
- * benefitsAssignedToProvider: true,
89
- * priorAuthorizationNumber: CandidApi.encounters.v4.PriorAuthorizationNumber("string"),
90
- * externalId: CandidApi.EncounterExternalId("string"),
91
- * dateOfService: "2023-01-15",
92
- * tagIds: [],
93
- * clinicalNotes: [],
94
- * payToAddress: {
95
- * address1: "123 Main St",
96
- * address2: "Apt 1",
97
- * city: "New York",
98
- * state: "NY",
99
- * zipCode: "10001",
100
- * zipPlusFourCode: "1234"
101
- * },
102
- * billableStatus: "BILLABLE",
103
- * responsibleParty: "INSURANCE_PAY",
104
- * providerAcceptsAssignment: true,
105
- * synchronicity: "Synchronous",
106
- * placeOfServiceCode: "01",
107
- * appointmentType: "string",
108
- * endDateOfService: "2023-01-15",
109
- * subscriberPrimary: {
110
- * insuranceCard: {
111
- * memberId: "string",
112
- * payerName: "string",
113
- * payerId: "string"
114
- * },
115
- * patientRelationshipToSubscriberCode: "01",
116
- * firstName: "string",
117
- * lastName: "string",
118
- * gender: "male"
119
- * },
120
- * subscriberSecondary: {
121
- * insuranceCard: {
122
- * memberId: "string",
123
- * payerName: "string",
124
- * payerId: "string"
125
- * },
126
- * patientRelationshipToSubscriberCode: "01",
127
- * firstName: "string",
128
- * lastName: "string",
129
- * gender: "male"
130
- * },
131
- * subscriberTertiary: {
132
- * insuranceCard: {
133
- * memberId: "string",
134
- * payerName: "string",
135
- * payerId: "string"
136
- * },
137
- * patientRelationshipToSubscriberCode: "01",
138
- * firstName: "string",
139
- * lastName: "string",
140
- * gender: "male"
141
- * },
142
- * additionalInformation: "string",
143
- * serviceAuthorizationExceptionCode: "1",
144
- * admissionDate: "2023-01-15",
145
- * dischargeDate: "2023-01-15",
146
- * onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
147
- * lastMenstrualPeriodDate: "2023-01-15",
148
- * delayReasonCode: "1",
149
- * patient: {},
150
- * patientAuthorizedRelease: true,
151
- * schemaInstances: [],
152
- * vitals: {
153
- * heightIn: 70,
154
- * weightLbs: 165,
155
- * bloodPressureSystolicMmhg: 115,
156
- * bloodPressureDiastolicMmhg: 85,
157
- * bodyTemperatureF: 98,
158
- * hemoglobinGdl: 15.1,
159
- * hematocritPct: 51.2
160
- * },
161
- * existingMedications: [],
162
- * renderingProvider: {},
163
- * serviceFacility: {
164
- * organizationName: "Test Organization",
165
- * address: {
166
- * address1: "123 Main St",
167
- * address2: "Apt 1",
168
- * city: "New York",
169
- * state: "NY",
170
- * zipCode: "10001",
171
- * zipPlusFourCode: "1234"
172
- * }
173
- * },
174
- * guarantor: {},
175
- * billingProvider: {},
176
- * supervisingProvider: {},
177
- * referringProvider: {},
178
- * initialReferringProvider: {},
179
- * referralNumber: "string",
180
- * epsdtReferral: {
181
- * conditionIndicator1: "AV"
182
- * },
183
- * claimSupplementalInformation: []
184
- * },
67
+ * data: {},
185
68
  * chargeExternalId: "string",
186
69
  * ehrSourceUrl: "string",
187
70
  * patientExternalId: "string",
@@ -194,7 +77,7 @@ class V1 {
194
77
  const _response = yield core.fetcher({
195
78
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/charge_captures/v1"),
196
79
  method: "POST",
197
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.0", "User-Agent": "candidhealth/0.43.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
+ 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),
198
81
  contentType: "application/json",
199
82
  requestType: "json",
200
83
  body: serializers.chargeCapture.v1.CreateChargeCaptureRequest.jsonOrThrow(request, {
@@ -222,6 +105,7 @@ class V1 {
222
105
  case "HttpRequestValidationsError":
223
106
  case "SchemaInstanceValidationHttpFailure":
224
107
  case "UnprocessableEntityError":
108
+ case "ChargeExternalIdConflictError":
225
109
  return {
226
110
  ok: false,
227
111
  error: serializers.chargeCapture.v1.create.Error.parseOrThrow(_response.error.body, {
@@ -252,7 +136,7 @@ class V1 {
252
136
  const _response = yield core.fetcher({
253
137
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
254
138
  method: "DELETE",
255
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.0", "User-Agent": "candidhealth/0.43.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
139
+ 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),
256
140
  contentType: "application/json",
257
141
  requestType: "json",
258
142
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -293,124 +177,7 @@ class V1 {
293
177
  *
294
178
  * @example
295
179
  * await client.chargeCapture.v1.update(CandidApi.ChargeCaptureId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
296
- * data: {
297
- * diagnoses: [],
298
- * interventions: [],
299
- * externalClaimSubmission: {
300
- * claimCreatedAt: "2023-01-01T12:00:00.000000Z",
301
- * patientControlNumber: "PATIENT_CONTROL_NUMBER",
302
- * submissionRecords: [{
303
- * submittedAt: "2023-01-01T13:00:00.000000Z",
304
- * claimFrequencyCode: "1",
305
- * payerResponsibility: "primary",
306
- * intendedSubmissionMedium: "electronic"
307
- * }, {
308
- * submittedAt: "2023-01-04T12:00:00.000000Z",
309
- * claimFrequencyCode: "7",
310
- * payerResponsibility: "primary",
311
- * intendedSubmissionMedium: "paper"
312
- * }]
313
- * },
314
- * serviceLines: [],
315
- * patientHistories: [],
316
- * billingNotes: [],
317
- * benefitsAssignedToProvider: true,
318
- * priorAuthorizationNumber: CandidApi.encounters.v4.PriorAuthorizationNumber("string"),
319
- * externalId: CandidApi.EncounterExternalId("string"),
320
- * dateOfService: "2023-01-15",
321
- * tagIds: [],
322
- * clinicalNotes: [],
323
- * payToAddress: {
324
- * address1: "123 Main St",
325
- * address2: "Apt 1",
326
- * city: "New York",
327
- * state: "NY",
328
- * zipCode: "10001",
329
- * zipPlusFourCode: "1234"
330
- * },
331
- * billableStatus: "BILLABLE",
332
- * responsibleParty: "INSURANCE_PAY",
333
- * providerAcceptsAssignment: true,
334
- * synchronicity: "Synchronous",
335
- * placeOfServiceCode: "01",
336
- * appointmentType: "string",
337
- * endDateOfService: "2023-01-15",
338
- * subscriberPrimary: {
339
- * insuranceCard: {
340
- * memberId: "string",
341
- * payerName: "string",
342
- * payerId: "string"
343
- * },
344
- * patientRelationshipToSubscriberCode: "01",
345
- * firstName: "string",
346
- * lastName: "string",
347
- * gender: "male"
348
- * },
349
- * subscriberSecondary: {
350
- * insuranceCard: {
351
- * memberId: "string",
352
- * payerName: "string",
353
- * payerId: "string"
354
- * },
355
- * patientRelationshipToSubscriberCode: "01",
356
- * firstName: "string",
357
- * lastName: "string",
358
- * gender: "male"
359
- * },
360
- * subscriberTertiary: {
361
- * insuranceCard: {
362
- * memberId: "string",
363
- * payerName: "string",
364
- * payerId: "string"
365
- * },
366
- * patientRelationshipToSubscriberCode: "01",
367
- * firstName: "string",
368
- * lastName: "string",
369
- * gender: "male"
370
- * },
371
- * additionalInformation: "string",
372
- * serviceAuthorizationExceptionCode: "1",
373
- * admissionDate: "2023-01-15",
374
- * dischargeDate: "2023-01-15",
375
- * onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
376
- * lastMenstrualPeriodDate: "2023-01-15",
377
- * delayReasonCode: "1",
378
- * patient: {},
379
- * patientAuthorizedRelease: true,
380
- * schemaInstances: [],
381
- * vitals: {
382
- * heightIn: 70,
383
- * weightLbs: 165,
384
- * bloodPressureSystolicMmhg: 115,
385
- * bloodPressureDiastolicMmhg: 85,
386
- * bodyTemperatureF: 98,
387
- * hemoglobinGdl: 15.1,
388
- * hematocritPct: 51.2
389
- * },
390
- * existingMedications: [],
391
- * renderingProvider: {},
392
- * serviceFacility: {
393
- * organizationName: "Test Organization",
394
- * address: {
395
- * address1: "123 Main St",
396
- * address2: "Apt 1",
397
- * city: "New York",
398
- * state: "NY",
399
- * zipCode: "10001",
400
- * zipPlusFourCode: "1234"
401
- * }
402
- * },
403
- * guarantor: {},
404
- * billingProvider: {},
405
- * supervisingProvider: {},
406
- * referringProvider: {},
407
- * initialReferringProvider: {},
408
- * referralNumber: "string",
409
- * epsdtReferral: {
410
- * conditionIndicator1: "AV"
411
- * },
412
- * claimSupplementalInformation: []
413
- * },
180
+ * data: {},
414
181
  * chargeExternalId: "string",
415
182
  * ehrSourceUrl: "string",
416
183
  * patientExternalId: "string",
@@ -423,7 +190,7 @@ class V1 {
423
190
  const _response = yield core.fetcher({
424
191
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
425
192
  method: "PATCH",
426
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.0", "User-Agent": "candidhealth/0.43.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
193
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "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),
427
194
  contentType: "application/json",
428
195
  requestType: "json",
429
196
  body: serializers.chargeCapture.v1.ChargeCaptureUpdate.jsonOrThrow(request, {
@@ -481,7 +248,7 @@ class V1 {
481
248
  const _response = yield core.fetcher({
482
249
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
483
250
  method: "GET",
484
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.0", "User-Agent": "candidhealth/0.43.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
251
+ 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),
485
252
  contentType: "application/json",
486
253
  requestType: "json",
487
254
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -739,7 +506,7 @@ class V1 {
739
506
  const _response = yield core.fetcher({
740
507
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/charge_captures/v1"),
741
508
  method: "GET",
742
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.0", "User-Agent": "candidhealth/0.43.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
509
+ 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),
743
510
  contentType: "application/json",
744
511
  queryParameters: _queryParams,
745
512
  requestType: "json",
@@ -765,22 +532,22 @@ class V1 {
765
532
  });
766
533
  }
767
534
  /**
768
- * @param {CandidApi.ChargeCapturePostBilledChangeId} chargeCaptureChangeId
769
535
  * @param {CandidApi.chargeCapture.v1.ChargeCapturePostBilledChangeUpdate} request
770
536
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
771
537
  *
772
538
  * @example
773
- * await client.chargeCapture.v1.updatePostBilledChange(CandidApi.ChargeCapturePostBilledChangeId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
539
+ * await client.chargeCapture.v1.updatePostBilledChanges({
540
+ * chargeCaptureChangeIds: [CandidApi.ChargeCapturePostBilledChangeId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
774
541
  * resolved: true
775
542
  * })
776
543
  */
777
- updatePostBilledChange(chargeCaptureChangeId, request, requestOptions) {
544
+ updatePostBilledChanges(request, requestOptions) {
778
545
  return __awaiter(this, void 0, void 0, function* () {
779
546
  var _a, _b, _c;
780
547
  const _response = yield core.fetcher({
781
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/charge_captures/v1/changes/${encodeURIComponent(serializers.ChargeCapturePostBilledChangeId.jsonOrThrow(chargeCaptureChangeId))}`),
548
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/charge_captures/v1/changes/"),
782
549
  method: "PATCH",
783
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.0", "User-Agent": "candidhealth/0.43.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
550
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "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),
784
551
  contentType: "application/json",
785
552
  requestType: "json",
786
553
  body: serializers.chargeCapture.v1.ChargeCapturePostBilledChangeUpdate.jsonOrThrow(request, {
@@ -793,7 +560,7 @@ class V1 {
793
560
  if (_response.ok) {
794
561
  return {
795
562
  ok: true,
796
- body: serializers.chargeCapture.v1.ChargeCapturePostBilledChange.parseOrThrow(_response.body, {
563
+ body: serializers.chargeCapture.v1.updatePostBilledChanges.Response.parseOrThrow(_response.body, {
797
564
  unrecognizedObjectKeys: "passthrough",
798
565
  allowUnrecognizedUnionMembers: true,
799
566
  allowUnrecognizedEnumValues: true,
@@ -807,7 +574,7 @@ class V1 {
807
574
  case "UnauthorizedError":
808
575
  return {
809
576
  ok: false,
810
- error: serializers.chargeCapture.v1.updatePostBilledChange.Error.parseOrThrow(_response.error.body, {
577
+ error: serializers.chargeCapture.v1.updatePostBilledChanges.Error.parseOrThrow(_response.error.body, {
811
578
  unrecognizedObjectKeys: "passthrough",
812
579
  allowUnrecognizedUnionMembers: true,
813
580
  allowUnrecognizedEnumValues: true,
@@ -818,7 +585,7 @@ class V1 {
818
585
  }
819
586
  return {
820
587
  ok: false,
821
- error: CandidApi.chargeCapture.v1.updatePostBilledChange.Error._unknown(_response.error),
588
+ error: CandidApi.chargeCapture.v1.updatePostBilledChanges.Error._unknown(_response.error),
822
589
  };
823
590
  });
824
591
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../../index";
5
5
  import * as core from "../../../../../../core";
6
- export type Error = CandidApi.chargeCapture.v1.create.Error.EntityNotFoundError | CandidApi.chargeCapture.v1.create.Error.UnauthorizedError | CandidApi.chargeCapture.v1.create.Error.HttpRequestValidationsError | CandidApi.chargeCapture.v1.create.Error.SchemaInstanceValidationHttpFailure | CandidApi.chargeCapture.v1.create.Error.UnprocessableEntityError | CandidApi.chargeCapture.v1.create.Error._Unknown;
6
+ export type Error = CandidApi.chargeCapture.v1.create.Error.EntityNotFoundError | CandidApi.chargeCapture.v1.create.Error.UnauthorizedError | CandidApi.chargeCapture.v1.create.Error.HttpRequestValidationsError | CandidApi.chargeCapture.v1.create.Error.SchemaInstanceValidationHttpFailure | CandidApi.chargeCapture.v1.create.Error.UnprocessableEntityError | CandidApi.chargeCapture.v1.create.Error.ChargeExternalIdConflictError | CandidApi.chargeCapture.v1.create.Error._Unknown;
7
7
  export declare namespace Error {
8
8
  interface EntityNotFoundError extends _Utils {
9
9
  errorName: "EntityNotFoundError";
@@ -25,6 +25,10 @@ export declare namespace Error {
25
25
  errorName: "UnprocessableEntityError";
26
26
  content: CandidApi.UnprocessableEntityErrorMessage;
27
27
  }
28
+ interface ChargeExternalIdConflictError extends _Utils {
29
+ errorName: "ChargeExternalIdConflictError";
30
+ content: CandidApi.chargeCapture.v1.ChargeExternalIdConflictErrorMessage;
31
+ }
28
32
  interface _Unknown extends _Utils {
29
33
  errorName: void;
30
34
  content: core.Fetcher.Error;
@@ -38,6 +42,7 @@ export declare namespace Error {
38
42
  httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
39
43
  schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => _Result;
40
44
  unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
45
+ chargeExternalIdConflictError: (value: CandidApi.chargeCapture.v1.ChargeExternalIdConflictErrorMessage) => _Result;
41
46
  _other: (value: core.Fetcher.Error) => _Result;
42
47
  }
43
48
  }
@@ -47,6 +52,7 @@ export declare const Error: {
47
52
  readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.chargeCapture.v1.create.Error.HttpRequestValidationsError;
48
53
  readonly schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => CandidApi.chargeCapture.v1.create.Error.SchemaInstanceValidationHttpFailure;
49
54
  readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.chargeCapture.v1.create.Error.UnprocessableEntityError;
55
+ readonly chargeExternalIdConflictError: (value: CandidApi.chargeCapture.v1.ChargeExternalIdConflictErrorMessage) => CandidApi.chargeCapture.v1.create.Error.ChargeExternalIdConflictError;
50
56
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.chargeCapture.v1.create.Error._Unknown;
51
57
  readonly _visit: <_Result>(value: CandidApi.chargeCapture.v1.create.Error, visitor: CandidApi.chargeCapture.v1.create.Error._Visitor<_Result>) => _Result;
52
58
  };
@@ -84,6 +84,15 @@ exports.Error = {
84
84
  },
85
85
  };
86
86
  },
87
+ chargeExternalIdConflictError: (value) => {
88
+ return {
89
+ content: value,
90
+ errorName: "ChargeExternalIdConflictError",
91
+ _visit: function (visitor) {
92
+ return CandidApi.chargeCapture.v1.create.Error._visit(this, visitor);
93
+ },
94
+ };
95
+ },
87
96
  _unknown: (fetcherError) => {
88
97
  return {
89
98
  errorName: undefined,
@@ -105,6 +114,8 @@ exports.Error = {
105
114
  return visitor.schemaInstanceValidationHttpFailure(value.content);
106
115
  case "UnprocessableEntityError":
107
116
  return visitor.unprocessableEntityError(value.content);
117
+ case "ChargeExternalIdConflictError":
118
+ return visitor.chargeExternalIdConflictError(value.content);
108
119
  default:
109
120
  return visitor._other(value);
110
121
  }
@@ -4,4 +4,4 @@ export * as delete from "./delete";
4
4
  export * as update from "./update";
5
5
  export * as get from "./get";
6
6
  export * as getAll from "./getAll";
7
- export * as updatePostBilledChange from "./updatePostBilledChange";
7
+ export * as updatePostBilledChanges from "./updatePostBilledChanges";
@@ -36,11 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.updatePostBilledChange = exports.getAll = exports.get = exports.update = exports.delete = exports.create = void 0;
39
+ exports.updatePostBilledChanges = exports.getAll = exports.get = exports.update = exports.delete = exports.create = void 0;
40
40
  __exportStar(require("./requests"), exports);
41
41
  exports.create = __importStar(require("./create"));
42
42
  exports.delete = __importStar(require("./delete"));
43
43
  exports.update = __importStar(require("./update"));
44
44
  exports.get = __importStar(require("./get"));
45
45
  exports.getAll = __importStar(require("./getAll"));
46
- exports.updatePostBilledChange = __importStar(require("./updatePostBilledChange"));
46
+ exports.updatePostBilledChanges = __importStar(require("./updatePostBilledChanges"));
@@ -1,13 +1,21 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as CandidApi from "../../../../../../index";
4
5
  /**
5
6
  * @example
6
7
  * {
8
+ * chargeCaptureChangeIds: [CandidApi.ChargeCapturePostBilledChangeId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
7
9
  * resolved: true
8
10
  * }
9
11
  */
10
12
  export interface ChargeCapturePostBilledChangeUpdate {
13
+ /**
14
+ * A list of UUIDs corresponding to ChargeCapturePostBilledChanges.
15
+ * All of the charges sent will be marked as resolved
16
+ *
17
+ */
18
+ chargeCaptureChangeIds: CandidApi.ChargeCapturePostBilledChangeId[];
11
19
  /**
12
20
  * Whether the change has been resolved. If true, the change will be marked as resolved.
13
21
  * If false, the change will be marked as unresolved.
@@ -5,124 +5,7 @@ import * as CandidApi from "../../../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * data: {
9
- * diagnoses: [],
10
- * interventions: [],
11
- * externalClaimSubmission: {
12
- * claimCreatedAt: "2023-01-01T12:00:00.000000Z",
13
- * patientControlNumber: "PATIENT_CONTROL_NUMBER",
14
- * submissionRecords: [{
15
- * submittedAt: "2023-01-01T13:00:00.000000Z",
16
- * claimFrequencyCode: "1",
17
- * payerResponsibility: "primary",
18
- * intendedSubmissionMedium: "electronic"
19
- * }, {
20
- * submittedAt: "2023-01-04T12:00:00.000000Z",
21
- * claimFrequencyCode: "7",
22
- * payerResponsibility: "primary",
23
- * intendedSubmissionMedium: "paper"
24
- * }]
25
- * },
26
- * serviceLines: [],
27
- * patientHistories: [],
28
- * billingNotes: [],
29
- * benefitsAssignedToProvider: true,
30
- * priorAuthorizationNumber: CandidApi.encounters.v4.PriorAuthorizationNumber("string"),
31
- * externalId: CandidApi.EncounterExternalId("string"),
32
- * dateOfService: "2023-01-15",
33
- * tagIds: [],
34
- * clinicalNotes: [],
35
- * payToAddress: {
36
- * address1: "123 Main St",
37
- * address2: "Apt 1",
38
- * city: "New York",
39
- * state: "NY",
40
- * zipCode: "10001",
41
- * zipPlusFourCode: "1234"
42
- * },
43
- * billableStatus: "BILLABLE",
44
- * responsibleParty: "INSURANCE_PAY",
45
- * providerAcceptsAssignment: true,
46
- * synchronicity: "Synchronous",
47
- * placeOfServiceCode: "01",
48
- * appointmentType: "string",
49
- * endDateOfService: "2023-01-15",
50
- * subscriberPrimary: {
51
- * insuranceCard: {
52
- * memberId: "string",
53
- * payerName: "string",
54
- * payerId: "string"
55
- * },
56
- * patientRelationshipToSubscriberCode: "01",
57
- * firstName: "string",
58
- * lastName: "string",
59
- * gender: "male"
60
- * },
61
- * subscriberSecondary: {
62
- * insuranceCard: {
63
- * memberId: "string",
64
- * payerName: "string",
65
- * payerId: "string"
66
- * },
67
- * patientRelationshipToSubscriberCode: "01",
68
- * firstName: "string",
69
- * lastName: "string",
70
- * gender: "male"
71
- * },
72
- * subscriberTertiary: {
73
- * insuranceCard: {
74
- * memberId: "string",
75
- * payerName: "string",
76
- * payerId: "string"
77
- * },
78
- * patientRelationshipToSubscriberCode: "01",
79
- * firstName: "string",
80
- * lastName: "string",
81
- * gender: "male"
82
- * },
83
- * additionalInformation: "string",
84
- * serviceAuthorizationExceptionCode: "1",
85
- * admissionDate: "2023-01-15",
86
- * dischargeDate: "2023-01-15",
87
- * onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
88
- * lastMenstrualPeriodDate: "2023-01-15",
89
- * delayReasonCode: "1",
90
- * patient: {},
91
- * patientAuthorizedRelease: true,
92
- * schemaInstances: [],
93
- * vitals: {
94
- * heightIn: 70,
95
- * weightLbs: 165,
96
- * bloodPressureSystolicMmhg: 115,
97
- * bloodPressureDiastolicMmhg: 85,
98
- * bodyTemperatureF: 98,
99
- * hemoglobinGdl: 15.1,
100
- * hematocritPct: 51.2
101
- * },
102
- * existingMedications: [],
103
- * renderingProvider: {},
104
- * serviceFacility: {
105
- * organizationName: "Test Organization",
106
- * address: {
107
- * address1: "123 Main St",
108
- * address2: "Apt 1",
109
- * city: "New York",
110
- * state: "NY",
111
- * zipCode: "10001",
112
- * zipPlusFourCode: "1234"
113
- * }
114
- * },
115
- * guarantor: {},
116
- * billingProvider: {},
117
- * supervisingProvider: {},
118
- * referringProvider: {},
119
- * initialReferringProvider: {},
120
- * referralNumber: "string",
121
- * epsdtReferral: {
122
- * conditionIndicator1: "AV"
123
- * },
124
- * claimSupplementalInformation: []
125
- * },
8
+ * data: {},
126
9
  * chargeExternalId: "string",
127
10
  * ehrSourceUrl: "string",
128
11
  * patientExternalId: "string",