candidhealth 0.6.4 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (845) hide show
  1. package/Client.d.ts +15 -0
  2. package/Client.js +29 -4
  3. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  4. package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  5. package/api/resources/claimSubmission/index.d.ts +1 -0
  6. package/api/resources/claimSubmission/index.js +17 -0
  7. package/api/resources/claimSubmission/resources/index.d.ts +1 -0
  8. package/api/resources/claimSubmission/resources/index.js +27 -0
  9. package/api/resources/claimSubmission/resources/v1/index.d.ts +1 -0
  10. package/api/resources/claimSubmission/resources/v1/index.js +17 -0
  11. package/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +10 -0
  12. package/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js +12 -0
  13. package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +27 -0
  14. package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.js +5 -0
  15. package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +32 -0
  16. package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.js +5 -0
  17. package/api/resources/claimSubmission/resources/v1/types/index.d.ts +3 -0
  18. package/api/resources/claimSubmission/resources/v1/types/index.js +19 -0
  19. package/api/resources/commons/types/ClaimAdjustmentGroupCodes.d.ts +15 -0
  20. package/api/resources/commons/types/ClaimAdjustmentGroupCodes.js +17 -0
  21. package/api/resources/commons/types/ClaimSubmissionPayerResponsibilityType.d.ts +8 -0
  22. package/api/resources/commons/types/ClaimSubmissionPayerResponsibilityType.js +10 -0
  23. package/api/resources/commons/types/ProcedureModifier.d.ts +5 -1
  24. package/api/resources/commons/types/ProcedureModifier.js +1 -0
  25. package/api/resources/commons/types/ProviderId.d.ts +8 -0
  26. package/api/resources/commons/types/ProviderId.js +10 -0
  27. package/api/resources/commons/types/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage.d.ts +6 -0
  28. package/api/resources/commons/types/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage.js +5 -0
  29. package/api/resources/commons/types/index.d.ts +5 -0
  30. package/api/resources/commons/types/index.js +5 -0
  31. package/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  32. package/api/resources/encounters/resources/v4/client/Client.js +4 -4
  33. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +7 -0
  34. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +6 -0
  35. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +2 -2
  36. package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +6 -0
  37. package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +2 -2
  38. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +5 -0
  39. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +6 -1
  40. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  41. package/api/resources/financials/index.d.ts +1 -0
  42. package/api/resources/financials/index.js +17 -0
  43. package/api/resources/financials/types/Allocation.d.ts +8 -0
  44. package/api/resources/financials/types/Allocation.js +5 -0
  45. package/api/resources/financials/types/AllocationCreate.d.ts +8 -0
  46. package/api/resources/financials/types/AllocationCreate.js +5 -0
  47. package/api/resources/financials/types/AllocationRecipient.d.ts +19 -0
  48. package/api/resources/financials/types/AllocationRecipient.js +5 -0
  49. package/api/resources/financials/types/AllocationRecipientCreate.d.ts +19 -0
  50. package/api/resources/financials/types/AllocationRecipientCreate.js +5 -0
  51. package/api/resources/financials/types/RefundAllocation.d.ts +8 -0
  52. package/api/resources/financials/types/RefundAllocation.js +5 -0
  53. package/api/resources/financials/types/RefundAllocationCreate.d.ts +8 -0
  54. package/api/resources/financials/types/RefundAllocationCreate.js +5 -0
  55. package/api/resources/financials/types/RefundReason.d.ts +7 -0
  56. package/api/resources/financials/types/RefundReason.js +9 -0
  57. package/api/resources/financials/types/index.d.ts +7 -0
  58. package/api/resources/financials/types/index.js +23 -0
  59. package/api/resources/guarantor/resources/v1/client/Client.d.ts +15 -0
  60. package/api/resources/guarantor/resources/v1/client/Client.js +18 -3
  61. package/api/resources/index.d.ts +8 -0
  62. package/api/resources/index.js +9 -1
  63. package/api/resources/individual/types/Subscriber.d.ts +1 -1
  64. package/api/resources/insuranceAdjudication/client/Client.d.ts +18 -0
  65. package/api/resources/insuranceAdjudication/client/Client.js +18 -0
  66. package/api/resources/insuranceAdjudication/client/index.d.ts +1 -0
  67. package/api/resources/insuranceAdjudication/client/index.js +2 -0
  68. package/api/resources/insuranceAdjudication/index.d.ts +2 -0
  69. package/api/resources/insuranceAdjudication/index.js +18 -0
  70. package/api/resources/insuranceAdjudication/resources/index.d.ts +1 -0
  71. package/api/resources/insuranceAdjudication/resources/index.js +27 -0
  72. package/api/resources/insuranceAdjudication/resources/v1/client/Client.d.ts +35 -0
  73. package/api/resources/insuranceAdjudication/resources/v1/client/Client.js +151 -0
  74. package/api/resources/insuranceAdjudication/resources/v1/client/create.d.ts +22 -0
  75. package/api/resources/insuranceAdjudication/resources/v1/client/create.js +47 -0
  76. package/api/resources/insuranceAdjudication/resources/v1/client/delete.d.ts +22 -0
  77. package/api/resources/insuranceAdjudication/resources/v1/client/delete.js +47 -0
  78. package/api/resources/insuranceAdjudication/resources/v1/client/get.d.ts +22 -0
  79. package/api/resources/insuranceAdjudication/resources/v1/client/get.js +47 -0
  80. package/api/resources/insuranceAdjudication/resources/v1/client/index.d.ts +3 -0
  81. package/api/resources/insuranceAdjudication/resources/v1/client/index.js +29 -0
  82. package/api/resources/insuranceAdjudication/resources/v1/index.d.ts +2 -0
  83. package/api/resources/insuranceAdjudication/resources/v1/index.js +18 -0
  84. package/api/resources/insuranceAdjudication/resources/v1/types/ClaimAdjudication.d.ts +10 -0
  85. package/api/resources/insuranceAdjudication/resources/v1/types/ClaimAdjudication.js +5 -0
  86. package/api/resources/insuranceAdjudication/resources/v1/types/ClaimAdjudicationCreate.d.ts +10 -0
  87. package/api/resources/insuranceAdjudication/resources/v1/types/ClaimAdjudicationCreate.js +5 -0
  88. package/api/resources/insuranceAdjudication/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +9 -0
  89. package/api/resources/insuranceAdjudication/resources/v1/types/ClaimAdjustmentReasonCode.js +5 -0
  90. package/api/resources/insuranceAdjudication/resources/v1/types/InsuranceAdjudication.d.ts +14 -0
  91. package/api/resources/insuranceAdjudication/resources/v1/types/InsuranceAdjudication.js +5 -0
  92. package/api/resources/insuranceAdjudication/resources/v1/types/InsuranceAdjudicationCreate.d.ts +13 -0
  93. package/api/resources/insuranceAdjudication/resources/v1/types/InsuranceAdjudicationCreate.js +5 -0
  94. package/api/resources/insuranceAdjudication/resources/v1/types/InsuranceAdjudicationId.d.ts +8 -0
  95. package/api/resources/insuranceAdjudication/resources/v1/types/InsuranceAdjudicationId.js +10 -0
  96. package/api/resources/insuranceAdjudication/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +7 -0
  97. package/api/resources/insuranceAdjudication/resources/v1/types/RemittanceAdviceRemarkCode.js +5 -0
  98. package/api/resources/insuranceAdjudication/resources/v1/types/ServiceLineAdjudication.d.ts +16 -0
  99. package/api/resources/insuranceAdjudication/resources/v1/types/ServiceLineAdjudication.js +5 -0
  100. package/api/resources/insuranceAdjudication/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +15 -0
  101. package/api/resources/insuranceAdjudication/resources/v1/types/ServiceLineAdjudicationCreate.js +5 -0
  102. package/api/resources/insuranceAdjudication/resources/v1/types/ServiceLineAdjudicationId.d.ts +8 -0
  103. package/api/resources/insuranceAdjudication/resources/v1/types/ServiceLineAdjudicationId.js +10 -0
  104. package/api/resources/insuranceAdjudication/resources/v1/types/index.d.ts +10 -0
  105. package/api/resources/insuranceAdjudication/resources/v1/types/index.js +26 -0
  106. package/api/resources/insuranceCard/types/InsuranceCard.d.ts +1 -1
  107. package/api/resources/insuranceRefunds/client/Client.d.ts +18 -0
  108. package/api/resources/insuranceRefunds/client/Client.js +18 -0
  109. package/api/resources/insuranceRefunds/client/index.d.ts +1 -0
  110. package/api/resources/insuranceRefunds/client/index.js +2 -0
  111. package/api/resources/insuranceRefunds/index.d.ts +2 -0
  112. package/api/resources/insuranceRefunds/index.js +18 -0
  113. package/api/resources/insuranceRefunds/resources/index.d.ts +1 -0
  114. package/api/resources/insuranceRefunds/resources/index.js +27 -0
  115. package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +40 -0
  116. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +156 -0
  117. package/api/resources/insuranceRefunds/resources/v1/client/create.d.ts +22 -0
  118. package/api/resources/insuranceRefunds/resources/v1/client/create.js +47 -0
  119. package/api/resources/insuranceRefunds/resources/v1/client/delete.d.ts +22 -0
  120. package/api/resources/insuranceRefunds/resources/v1/client/delete.js +47 -0
  121. package/api/resources/insuranceRefunds/resources/v1/client/get.d.ts +22 -0
  122. package/api/resources/insuranceRefunds/resources/v1/client/get.js +47 -0
  123. package/api/resources/insuranceRefunds/resources/v1/client/index.d.ts +3 -0
  124. package/api/resources/insuranceRefunds/resources/v1/client/index.js +29 -0
  125. package/api/resources/insuranceRefunds/resources/v1/index.d.ts +2 -0
  126. package/api/resources/insuranceRefunds/resources/v1/index.js +18 -0
  127. package/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefund.d.ts +11 -0
  128. package/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefund.js +5 -0
  129. package/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundCreate.d.ts +10 -0
  130. package/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundCreate.js +5 -0
  131. package/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundId.d.ts +8 -0
  132. package/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundId.js +10 -0
  133. package/api/resources/insuranceRefunds/resources/v1/types/index.d.ts +3 -0
  134. package/api/resources/insuranceRefunds/resources/v1/types/index.js +19 -0
  135. package/api/resources/invoices/types/index.d.ts +0 -1
  136. package/api/resources/invoices/types/index.js +0 -1
  137. package/api/resources/organizationProviders/resources/v3/client/Client.js +6 -4
  138. package/api/resources/organizationProviders/resources/v3/client/create.d.ts +7 -1
  139. package/api/resources/organizationProviders/resources/v3/client/create.js +11 -0
  140. package/api/resources/organizationProviders/resources/v3/client/update.d.ts +7 -1
  141. package/api/resources/organizationProviders/resources/v3/client/update.js +11 -0
  142. package/api/resources/patientPayments/client/Client.d.ts +18 -0
  143. package/api/resources/patientPayments/client/Client.js +18 -0
  144. package/api/resources/patientPayments/client/index.d.ts +1 -0
  145. package/api/resources/patientPayments/client/index.js +2 -0
  146. package/api/resources/patientPayments/index.d.ts +1 -0
  147. package/api/resources/patientPayments/index.js +1 -0
  148. package/api/resources/patientPayments/resources/index.d.ts +1 -0
  149. package/api/resources/patientPayments/resources/index.js +2 -1
  150. package/api/resources/patientPayments/resources/v4/client/Client.d.ts +37 -0
  151. package/api/resources/patientPayments/resources/v4/client/Client.js +153 -0
  152. package/api/resources/patientPayments/resources/v4/client/create.d.ts +22 -0
  153. package/api/resources/patientPayments/resources/v4/client/create.js +47 -0
  154. package/api/resources/patientPayments/resources/v4/client/delete.d.ts +22 -0
  155. package/api/resources/patientPayments/resources/v4/client/delete.js +47 -0
  156. package/api/resources/patientPayments/resources/v4/client/get.d.ts +22 -0
  157. package/api/resources/patientPayments/resources/v4/client/get.js +47 -0
  158. package/api/resources/patientPayments/resources/v4/client/index.d.ts +4 -0
  159. package/api/resources/patientPayments/resources/v4/client/index.js +33 -0
  160. package/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentCreate.d.ts +12 -0
  161. package/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentCreate.js +5 -0
  162. package/api/resources/patientPayments/resources/v4/client/requests/index.d.ts +1 -0
  163. package/api/resources/patientPayments/resources/v4/client/requests/index.js +2 -0
  164. package/api/resources/patientPayments/resources/v4/index.d.ts +2 -0
  165. package/api/resources/patientPayments/resources/v4/index.js +18 -0
  166. package/api/resources/patientPayments/resources/v4/types/PatientPayment.d.ts +14 -0
  167. package/api/resources/patientPayments/resources/v4/types/PatientPayment.js +5 -0
  168. package/api/resources/patientPayments/resources/v4/types/PatientPaymentId.d.ts +8 -0
  169. package/api/resources/patientPayments/resources/v4/types/PatientPaymentId.js +10 -0
  170. package/api/resources/patientPayments/resources/v4/types/index.d.ts +2 -0
  171. package/api/resources/patientPayments/resources/v4/types/index.js +18 -0
  172. package/api/resources/patientRefunds/client/Client.d.ts +18 -0
  173. package/api/resources/patientRefunds/client/Client.js +18 -0
  174. package/api/resources/patientRefunds/client/index.d.ts +1 -0
  175. package/api/resources/patientRefunds/client/index.js +2 -0
  176. package/api/resources/patientRefunds/index.d.ts +2 -0
  177. package/api/resources/patientRefunds/index.js +18 -0
  178. package/api/resources/patientRefunds/resources/index.d.ts +1 -0
  179. package/api/resources/patientRefunds/resources/index.js +27 -0
  180. package/api/resources/patientRefunds/resources/v1/client/Client.d.ts +37 -0
  181. package/api/resources/patientRefunds/resources/v1/client/Client.js +153 -0
  182. package/api/resources/patientRefunds/resources/v1/client/create.d.ts +22 -0
  183. package/api/resources/patientRefunds/resources/v1/client/create.js +47 -0
  184. package/api/resources/patientRefunds/resources/v1/client/delete.d.ts +22 -0
  185. package/api/resources/patientRefunds/resources/v1/client/delete.js +47 -0
  186. package/api/resources/patientRefunds/resources/v1/client/get.d.ts +22 -0
  187. package/api/resources/patientRefunds/resources/v1/client/get.js +47 -0
  188. package/api/resources/patientRefunds/resources/v1/client/index.d.ts +4 -0
  189. package/api/resources/patientRefunds/resources/v1/client/index.js +33 -0
  190. package/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundCreate.d.ts +12 -0
  191. package/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundCreate.js +5 -0
  192. package/api/resources/patientRefunds/resources/v1/client/requests/index.d.ts +1 -0
  193. package/api/resources/patientRefunds/resources/v1/client/requests/index.js +2 -0
  194. package/api/resources/patientRefunds/resources/v1/index.d.ts +2 -0
  195. package/api/resources/patientRefunds/resources/v1/index.js +18 -0
  196. package/api/resources/patientRefunds/resources/v1/types/PatientRefund.d.ts +14 -0
  197. package/api/resources/patientRefunds/resources/v1/types/PatientRefund.js +5 -0
  198. package/api/resources/patientRefunds/resources/v1/types/PatientRefundId.d.ts +8 -0
  199. package/api/resources/patientRefunds/resources/v1/types/PatientRefundId.js +10 -0
  200. package/api/resources/patientRefunds/resources/v1/types/index.d.ts +2 -0
  201. package/api/resources/patientRefunds/resources/v1/types/index.js +18 -0
  202. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  203. package/api/resources/writeOffs/client/Client.d.ts +18 -0
  204. package/api/resources/writeOffs/client/Client.js +18 -0
  205. package/api/resources/writeOffs/client/index.d.ts +1 -0
  206. package/api/resources/writeOffs/client/index.js +2 -0
  207. package/api/resources/writeOffs/index.d.ts +2 -0
  208. package/api/resources/writeOffs/index.js +18 -0
  209. package/api/resources/writeOffs/resources/index.d.ts +1 -0
  210. package/api/resources/writeOffs/resources/index.js +27 -0
  211. package/api/resources/writeOffs/resources/v1/client/Client.d.ts +37 -0
  212. package/api/resources/writeOffs/resources/v1/client/Client.js +158 -0
  213. package/api/resources/writeOffs/resources/v1/client/create.d.ts +22 -0
  214. package/api/resources/writeOffs/resources/v1/client/create.js +47 -0
  215. package/api/resources/writeOffs/resources/v1/client/get.d.ts +22 -0
  216. package/api/resources/writeOffs/resources/v1/client/get.js +47 -0
  217. package/api/resources/writeOffs/resources/v1/client/index.d.ts +4 -0
  218. package/api/resources/writeOffs/resources/v1/client/index.js +33 -0
  219. package/api/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.d.ts +7 -0
  220. package/api/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.js +5 -0
  221. package/api/resources/writeOffs/resources/v1/client/requests/index.d.ts +1 -0
  222. package/api/resources/writeOffs/resources/v1/client/requests/index.js +2 -0
  223. package/api/resources/writeOffs/resources/v1/client/revert.d.ts +22 -0
  224. package/api/resources/writeOffs/resources/v1/client/revert.js +47 -0
  225. package/api/resources/writeOffs/resources/v1/index.d.ts +2 -0
  226. package/api/resources/writeOffs/resources/v1/index.js +18 -0
  227. package/api/resources/writeOffs/resources/v1/types/WriteOff.d.ts +11 -0
  228. package/api/resources/writeOffs/resources/v1/types/WriteOff.js +5 -0
  229. package/api/resources/writeOffs/resources/v1/types/WriteOffCreate.d.ts +10 -0
  230. package/api/resources/writeOffs/resources/v1/types/WriteOffCreate.js +5 -0
  231. package/api/resources/writeOffs/resources/v1/types/WriteOffId.d.ts +8 -0
  232. package/api/resources/writeOffs/resources/v1/types/WriteOffId.js +10 -0
  233. package/api/resources/writeOffs/resources/v1/types/WriteOffReason.d.ts +10 -0
  234. package/api/resources/writeOffs/resources/v1/types/WriteOffReason.js +12 -0
  235. package/api/resources/writeOffs/resources/v1/types/index.d.ts +4 -0
  236. package/api/resources/writeOffs/resources/v1/types/index.js +20 -0
  237. package/api/resources/x12/index.d.ts +1 -0
  238. package/api/resources/x12/index.js +17 -0
  239. package/api/resources/x12/resources/index.d.ts +1 -0
  240. package/api/resources/x12/resources/index.js +27 -0
  241. package/api/resources/x12/resources/v1/index.d.ts +1 -0
  242. package/api/resources/x12/resources/v1/index.js +17 -0
  243. package/api/resources/x12/resources/v1/types/Carc.d.ts +272 -0
  244. package/api/resources/x12/resources/v1/types/Carc.js +274 -0
  245. package/api/resources/x12/resources/v1/types/Rarc.d.ts +1066 -0
  246. package/api/resources/x12/resources/v1/types/Rarc.js +1068 -0
  247. package/api/resources/x12/resources/v1/types/index.d.ts +2 -0
  248. package/api/resources/x12/resources/v1/types/index.js +18 -0
  249. package/dist/Client.d.ts +15 -0
  250. package/dist/Client.js +29 -4
  251. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  252. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  253. package/dist/api/resources/claimSubmission/index.d.ts +1 -0
  254. package/dist/api/resources/claimSubmission/index.js +17 -0
  255. package/dist/api/resources/claimSubmission/resources/index.d.ts +1 -0
  256. package/dist/api/resources/claimSubmission/resources/index.js +27 -0
  257. package/dist/api/resources/claimSubmission/resources/v1/index.d.ts +1 -0
  258. package/dist/api/resources/claimSubmission/resources/v1/index.js +17 -0
  259. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +10 -0
  260. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js +12 -0
  261. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +27 -0
  262. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.js +5 -0
  263. package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +32 -0
  264. package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.js +5 -0
  265. package/dist/api/resources/claimSubmission/resources/v1/types/index.d.ts +3 -0
  266. package/dist/api/resources/claimSubmission/resources/v1/types/index.js +19 -0
  267. package/dist/api/resources/commons/types/ClaimAdjustmentGroupCodes.d.ts +15 -0
  268. package/dist/api/resources/commons/types/ClaimAdjustmentGroupCodes.js +17 -0
  269. package/dist/api/resources/commons/types/ClaimSubmissionPayerResponsibilityType.d.ts +8 -0
  270. package/dist/api/resources/commons/types/ClaimSubmissionPayerResponsibilityType.js +10 -0
  271. package/dist/api/resources/commons/types/ProcedureModifier.d.ts +5 -1
  272. package/dist/api/resources/commons/types/ProcedureModifier.js +1 -0
  273. package/dist/api/resources/commons/types/ProviderId.d.ts +8 -0
  274. package/dist/api/resources/commons/types/ProviderId.js +10 -0
  275. package/dist/api/resources/commons/types/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage.d.ts +6 -0
  276. package/dist/api/resources/commons/types/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage.js +5 -0
  277. package/dist/api/resources/commons/types/index.d.ts +5 -0
  278. package/dist/api/resources/commons/types/index.js +5 -0
  279. package/dist/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  280. package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
  281. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +7 -0
  282. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +6 -0
  283. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +2 -2
  284. package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +6 -0
  285. package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +2 -2
  286. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +5 -0
  287. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +6 -1
  288. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  289. package/dist/api/resources/financials/index.d.ts +1 -0
  290. package/dist/api/resources/financials/index.js +17 -0
  291. package/dist/api/resources/financials/types/Allocation.d.ts +8 -0
  292. package/dist/api/resources/financials/types/Allocation.js +5 -0
  293. package/dist/api/resources/financials/types/AllocationCreate.d.ts +8 -0
  294. package/dist/api/resources/financials/types/AllocationCreate.js +5 -0
  295. package/dist/api/resources/financials/types/AllocationRecipient.d.ts +19 -0
  296. package/dist/api/resources/financials/types/AllocationRecipient.js +5 -0
  297. package/dist/api/resources/financials/types/AllocationRecipientCreate.d.ts +19 -0
  298. package/dist/api/resources/financials/types/AllocationRecipientCreate.js +5 -0
  299. package/dist/api/resources/financials/types/RefundAllocation.d.ts +8 -0
  300. package/dist/api/resources/financials/types/RefundAllocation.js +5 -0
  301. package/dist/api/resources/financials/types/RefundAllocationCreate.d.ts +8 -0
  302. package/dist/api/resources/financials/types/RefundAllocationCreate.js +5 -0
  303. package/dist/api/resources/financials/types/RefundReason.d.ts +7 -0
  304. package/dist/api/resources/financials/types/RefundReason.js +9 -0
  305. package/dist/api/resources/financials/types/index.d.ts +7 -0
  306. package/dist/api/resources/financials/types/index.js +23 -0
  307. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +15 -0
  308. package/dist/api/resources/guarantor/resources/v1/client/Client.js +18 -3
  309. package/dist/api/resources/index.d.ts +8 -0
  310. package/dist/api/resources/index.js +9 -1
  311. package/dist/api/resources/individual/types/Subscriber.d.ts +1 -1
  312. package/dist/api/resources/insuranceAdjudication/client/Client.d.ts +18 -0
  313. package/dist/api/resources/insuranceAdjudication/client/Client.js +18 -0
  314. package/dist/api/resources/insuranceAdjudication/client/index.d.ts +1 -0
  315. package/dist/api/resources/insuranceAdjudication/client/index.js +2 -0
  316. package/dist/api/resources/insuranceAdjudication/index.d.ts +2 -0
  317. package/dist/api/resources/insuranceAdjudication/index.js +18 -0
  318. package/dist/api/resources/insuranceAdjudication/resources/index.d.ts +1 -0
  319. package/dist/api/resources/insuranceAdjudication/resources/index.js +27 -0
  320. package/dist/api/resources/insuranceAdjudication/resources/v1/client/Client.d.ts +35 -0
  321. package/dist/api/resources/insuranceAdjudication/resources/v1/client/Client.js +151 -0
  322. package/dist/api/resources/insuranceAdjudication/resources/v1/client/create.d.ts +22 -0
  323. package/dist/api/resources/insuranceAdjudication/resources/v1/client/create.js +47 -0
  324. package/dist/api/resources/insuranceAdjudication/resources/v1/client/delete.d.ts +22 -0
  325. package/dist/api/resources/insuranceAdjudication/resources/v1/client/delete.js +47 -0
  326. package/dist/api/resources/insuranceAdjudication/resources/v1/client/get.d.ts +22 -0
  327. package/dist/api/resources/insuranceAdjudication/resources/v1/client/get.js +47 -0
  328. package/dist/api/resources/insuranceAdjudication/resources/v1/client/index.d.ts +3 -0
  329. package/dist/api/resources/insuranceAdjudication/resources/v1/client/index.js +29 -0
  330. package/dist/api/resources/insuranceAdjudication/resources/v1/index.d.ts +2 -0
  331. package/dist/api/resources/insuranceAdjudication/resources/v1/index.js +18 -0
  332. package/dist/api/resources/insuranceAdjudication/resources/v1/types/ClaimAdjudication.d.ts +10 -0
  333. package/dist/api/resources/insuranceAdjudication/resources/v1/types/ClaimAdjudication.js +5 -0
  334. package/dist/api/resources/insuranceAdjudication/resources/v1/types/ClaimAdjudicationCreate.d.ts +10 -0
  335. package/dist/api/resources/insuranceAdjudication/resources/v1/types/ClaimAdjudicationCreate.js +5 -0
  336. package/dist/api/resources/insuranceAdjudication/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +9 -0
  337. package/dist/api/resources/insuranceAdjudication/resources/v1/types/ClaimAdjustmentReasonCode.js +5 -0
  338. package/dist/api/resources/insuranceAdjudication/resources/v1/types/InsuranceAdjudication.d.ts +14 -0
  339. package/dist/api/resources/insuranceAdjudication/resources/v1/types/InsuranceAdjudication.js +5 -0
  340. package/dist/api/resources/insuranceAdjudication/resources/v1/types/InsuranceAdjudicationCreate.d.ts +13 -0
  341. package/dist/api/resources/insuranceAdjudication/resources/v1/types/InsuranceAdjudicationCreate.js +5 -0
  342. package/dist/api/resources/insuranceAdjudication/resources/v1/types/InsuranceAdjudicationId.d.ts +8 -0
  343. package/dist/api/resources/insuranceAdjudication/resources/v1/types/InsuranceAdjudicationId.js +10 -0
  344. package/dist/api/resources/insuranceAdjudication/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +7 -0
  345. package/dist/api/resources/insuranceAdjudication/resources/v1/types/RemittanceAdviceRemarkCode.js +5 -0
  346. package/dist/api/resources/insuranceAdjudication/resources/v1/types/ServiceLineAdjudication.d.ts +16 -0
  347. package/dist/api/resources/insuranceAdjudication/resources/v1/types/ServiceLineAdjudication.js +5 -0
  348. package/dist/api/resources/insuranceAdjudication/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +15 -0
  349. package/dist/api/resources/insuranceAdjudication/resources/v1/types/ServiceLineAdjudicationCreate.js +5 -0
  350. package/dist/api/resources/insuranceAdjudication/resources/v1/types/ServiceLineAdjudicationId.d.ts +8 -0
  351. package/dist/api/resources/insuranceAdjudication/resources/v1/types/ServiceLineAdjudicationId.js +10 -0
  352. package/dist/api/resources/insuranceAdjudication/resources/v1/types/index.d.ts +10 -0
  353. package/dist/api/resources/insuranceAdjudication/resources/v1/types/index.js +26 -0
  354. package/dist/api/resources/insuranceCard/types/InsuranceCard.d.ts +1 -1
  355. package/dist/api/resources/insuranceRefunds/client/Client.d.ts +18 -0
  356. package/dist/api/resources/insuranceRefunds/client/Client.js +18 -0
  357. package/dist/api/resources/insuranceRefunds/client/index.d.ts +1 -0
  358. package/dist/api/resources/insuranceRefunds/client/index.js +2 -0
  359. package/dist/api/resources/insuranceRefunds/index.d.ts +2 -0
  360. package/dist/api/resources/insuranceRefunds/index.js +18 -0
  361. package/dist/api/resources/insuranceRefunds/resources/index.d.ts +1 -0
  362. package/dist/api/resources/insuranceRefunds/resources/index.js +27 -0
  363. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +40 -0
  364. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +156 -0
  365. package/dist/api/resources/insuranceRefunds/resources/v1/client/create.d.ts +22 -0
  366. package/dist/api/resources/insuranceRefunds/resources/v1/client/create.js +47 -0
  367. package/dist/api/resources/insuranceRefunds/resources/v1/client/delete.d.ts +22 -0
  368. package/dist/api/resources/insuranceRefunds/resources/v1/client/delete.js +47 -0
  369. package/dist/api/resources/insuranceRefunds/resources/v1/client/get.d.ts +22 -0
  370. package/dist/api/resources/insuranceRefunds/resources/v1/client/get.js +47 -0
  371. package/dist/api/resources/insuranceRefunds/resources/v1/client/index.d.ts +3 -0
  372. package/dist/api/resources/insuranceRefunds/resources/v1/client/index.js +29 -0
  373. package/dist/api/resources/insuranceRefunds/resources/v1/index.d.ts +2 -0
  374. package/dist/api/resources/insuranceRefunds/resources/v1/index.js +18 -0
  375. package/dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefund.d.ts +11 -0
  376. package/dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefund.js +5 -0
  377. package/dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundCreate.d.ts +10 -0
  378. package/dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundCreate.js +5 -0
  379. package/dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundId.d.ts +8 -0
  380. package/dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundId.js +10 -0
  381. package/dist/api/resources/insuranceRefunds/resources/v1/types/index.d.ts +3 -0
  382. package/dist/api/resources/insuranceRefunds/resources/v1/types/index.js +19 -0
  383. package/dist/api/resources/invoices/types/index.d.ts +0 -1
  384. package/dist/api/resources/invoices/types/index.js +0 -1
  385. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +6 -4
  386. package/dist/api/resources/organizationProviders/resources/v3/client/create.d.ts +7 -1
  387. package/dist/api/resources/organizationProviders/resources/v3/client/create.js +11 -0
  388. package/dist/api/resources/organizationProviders/resources/v3/client/update.d.ts +7 -1
  389. package/dist/api/resources/organizationProviders/resources/v3/client/update.js +11 -0
  390. package/dist/api/resources/patientPayments/client/Client.d.ts +18 -0
  391. package/dist/api/resources/patientPayments/client/Client.js +18 -0
  392. package/dist/api/resources/patientPayments/client/index.d.ts +1 -0
  393. package/dist/api/resources/patientPayments/client/index.js +2 -0
  394. package/dist/api/resources/patientPayments/index.d.ts +1 -0
  395. package/dist/api/resources/patientPayments/index.js +1 -0
  396. package/dist/api/resources/patientPayments/resources/index.d.ts +1 -0
  397. package/dist/api/resources/patientPayments/resources/index.js +2 -1
  398. package/dist/api/resources/patientPayments/resources/v4/client/Client.d.ts +37 -0
  399. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +153 -0
  400. package/dist/api/resources/patientPayments/resources/v4/client/create.d.ts +22 -0
  401. package/dist/api/resources/patientPayments/resources/v4/client/create.js +47 -0
  402. package/dist/api/resources/patientPayments/resources/v4/client/delete.d.ts +22 -0
  403. package/dist/api/resources/patientPayments/resources/v4/client/delete.js +47 -0
  404. package/dist/api/resources/patientPayments/resources/v4/client/get.d.ts +22 -0
  405. package/dist/api/resources/patientPayments/resources/v4/client/get.js +47 -0
  406. package/dist/api/resources/patientPayments/resources/v4/client/index.d.ts +4 -0
  407. package/dist/api/resources/patientPayments/resources/v4/client/index.js +33 -0
  408. package/dist/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentCreate.d.ts +12 -0
  409. package/dist/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentCreate.js +5 -0
  410. package/dist/api/resources/patientPayments/resources/v4/client/requests/index.d.ts +1 -0
  411. package/dist/api/resources/patientPayments/resources/v4/client/requests/index.js +2 -0
  412. package/dist/api/resources/patientPayments/resources/v4/index.d.ts +2 -0
  413. package/dist/api/resources/patientPayments/resources/v4/index.js +18 -0
  414. package/dist/api/resources/patientPayments/resources/v4/types/PatientPayment.d.ts +14 -0
  415. package/dist/api/resources/patientPayments/resources/v4/types/PatientPayment.js +5 -0
  416. package/dist/api/resources/patientPayments/resources/v4/types/PatientPaymentId.d.ts +8 -0
  417. package/dist/api/resources/patientPayments/resources/v4/types/PatientPaymentId.js +10 -0
  418. package/dist/api/resources/patientPayments/resources/v4/types/index.d.ts +2 -0
  419. package/dist/api/resources/patientPayments/resources/v4/types/index.js +18 -0
  420. package/dist/api/resources/patientRefunds/client/Client.d.ts +18 -0
  421. package/dist/api/resources/patientRefunds/client/Client.js +18 -0
  422. package/dist/api/resources/patientRefunds/client/index.d.ts +1 -0
  423. package/dist/api/resources/patientRefunds/client/index.js +2 -0
  424. package/dist/api/resources/patientRefunds/index.d.ts +2 -0
  425. package/dist/api/resources/patientRefunds/index.js +18 -0
  426. package/dist/api/resources/patientRefunds/resources/index.d.ts +1 -0
  427. package/dist/api/resources/patientRefunds/resources/index.js +27 -0
  428. package/dist/api/resources/patientRefunds/resources/v1/client/Client.d.ts +37 -0
  429. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +153 -0
  430. package/dist/api/resources/patientRefunds/resources/v1/client/create.d.ts +22 -0
  431. package/dist/api/resources/patientRefunds/resources/v1/client/create.js +47 -0
  432. package/dist/api/resources/patientRefunds/resources/v1/client/delete.d.ts +22 -0
  433. package/dist/api/resources/patientRefunds/resources/v1/client/delete.js +47 -0
  434. package/dist/api/resources/patientRefunds/resources/v1/client/get.d.ts +22 -0
  435. package/dist/api/resources/patientRefunds/resources/v1/client/get.js +47 -0
  436. package/dist/api/resources/patientRefunds/resources/v1/client/index.d.ts +4 -0
  437. package/dist/api/resources/patientRefunds/resources/v1/client/index.js +33 -0
  438. package/dist/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundCreate.d.ts +12 -0
  439. package/dist/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundCreate.js +5 -0
  440. package/dist/api/resources/patientRefunds/resources/v1/client/requests/index.d.ts +1 -0
  441. package/dist/api/resources/patientRefunds/resources/v1/client/requests/index.js +2 -0
  442. package/dist/api/resources/patientRefunds/resources/v1/index.d.ts +2 -0
  443. package/dist/api/resources/patientRefunds/resources/v1/index.js +18 -0
  444. package/dist/api/resources/patientRefunds/resources/v1/types/PatientRefund.d.ts +14 -0
  445. package/dist/api/resources/patientRefunds/resources/v1/types/PatientRefund.js +5 -0
  446. package/dist/api/resources/patientRefunds/resources/v1/types/PatientRefundId.d.ts +8 -0
  447. package/dist/api/resources/patientRefunds/resources/v1/types/PatientRefundId.js +10 -0
  448. package/dist/api/resources/patientRefunds/resources/v1/types/index.d.ts +2 -0
  449. package/dist/api/resources/patientRefunds/resources/v1/types/index.js +18 -0
  450. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  451. package/dist/api/resources/writeOffs/client/Client.d.ts +18 -0
  452. package/dist/api/resources/writeOffs/client/Client.js +18 -0
  453. package/dist/api/resources/writeOffs/client/index.d.ts +1 -0
  454. package/dist/api/resources/writeOffs/client/index.js +2 -0
  455. package/dist/api/resources/writeOffs/index.d.ts +2 -0
  456. package/dist/api/resources/writeOffs/index.js +18 -0
  457. package/dist/api/resources/writeOffs/resources/index.d.ts +1 -0
  458. package/dist/api/resources/writeOffs/resources/index.js +27 -0
  459. package/dist/api/resources/writeOffs/resources/v1/client/Client.d.ts +37 -0
  460. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +158 -0
  461. package/dist/api/resources/writeOffs/resources/v1/client/create.d.ts +22 -0
  462. package/dist/api/resources/writeOffs/resources/v1/client/create.js +47 -0
  463. package/dist/api/resources/writeOffs/resources/v1/client/get.d.ts +22 -0
  464. package/dist/api/resources/writeOffs/resources/v1/client/get.js +47 -0
  465. package/dist/api/resources/writeOffs/resources/v1/client/index.d.ts +4 -0
  466. package/dist/api/resources/writeOffs/resources/v1/client/index.js +33 -0
  467. package/dist/api/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.d.ts +7 -0
  468. package/dist/api/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.js +5 -0
  469. package/dist/api/resources/writeOffs/resources/v1/client/requests/index.d.ts +1 -0
  470. package/dist/api/resources/writeOffs/resources/v1/client/requests/index.js +2 -0
  471. package/dist/api/resources/writeOffs/resources/v1/client/revert.d.ts +22 -0
  472. package/dist/api/resources/writeOffs/resources/v1/client/revert.js +47 -0
  473. package/dist/api/resources/writeOffs/resources/v1/index.d.ts +2 -0
  474. package/dist/api/resources/writeOffs/resources/v1/index.js +18 -0
  475. package/dist/api/resources/writeOffs/resources/v1/types/WriteOff.d.ts +11 -0
  476. package/dist/api/resources/writeOffs/resources/v1/types/WriteOff.js +5 -0
  477. package/dist/api/resources/writeOffs/resources/v1/types/WriteOffCreate.d.ts +10 -0
  478. package/dist/api/resources/writeOffs/resources/v1/types/WriteOffCreate.js +5 -0
  479. package/dist/api/resources/writeOffs/resources/v1/types/WriteOffId.d.ts +8 -0
  480. package/dist/api/resources/writeOffs/resources/v1/types/WriteOffId.js +10 -0
  481. package/dist/api/resources/writeOffs/resources/v1/types/WriteOffReason.d.ts +10 -0
  482. package/dist/api/resources/writeOffs/resources/v1/types/WriteOffReason.js +12 -0
  483. package/dist/api/resources/writeOffs/resources/v1/types/index.d.ts +4 -0
  484. package/dist/api/resources/writeOffs/resources/v1/types/index.js +20 -0
  485. package/dist/api/resources/x12/index.d.ts +1 -0
  486. package/dist/api/resources/x12/index.js +17 -0
  487. package/dist/api/resources/x12/resources/index.d.ts +1 -0
  488. package/dist/api/resources/x12/resources/index.js +27 -0
  489. package/dist/api/resources/x12/resources/v1/index.d.ts +1 -0
  490. package/dist/api/resources/x12/resources/v1/index.js +17 -0
  491. package/dist/api/resources/x12/resources/v1/types/Carc.d.ts +272 -0
  492. package/dist/api/resources/x12/resources/v1/types/Carc.js +274 -0
  493. package/dist/api/resources/x12/resources/v1/types/Rarc.d.ts +1066 -0
  494. package/dist/api/resources/x12/resources/v1/types/Rarc.js +1068 -0
  495. package/dist/api/resources/x12/resources/v1/types/index.d.ts +2 -0
  496. package/dist/api/resources/x12/resources/v1/types/index.js +18 -0
  497. package/dist/serialization/resources/claimSubmission/index.d.ts +1 -0
  498. package/dist/serialization/resources/claimSubmission/index.js +17 -0
  499. package/dist/serialization/resources/claimSubmission/resources/index.d.ts +1 -0
  500. package/dist/serialization/resources/claimSubmission/resources/index.js +27 -0
  501. package/dist/serialization/resources/claimSubmission/resources/v1/index.d.ts +1 -0
  502. package/dist/serialization/resources/claimSubmission/resources/v1/index.js +17 -0
  503. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +10 -0
  504. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js +31 -0
  505. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +14 -0
  506. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.js +35 -0
  507. package/dist/serialization/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +14 -0
  508. package/dist/serialization/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.js +35 -0
  509. package/dist/serialization/resources/claimSubmission/resources/v1/types/index.d.ts +3 -0
  510. package/dist/serialization/resources/claimSubmission/resources/v1/types/index.js +19 -0
  511. package/dist/serialization/resources/commons/types/ClaimAdjustmentGroupCodes.d.ts +10 -0
  512. package/dist/serialization/resources/commons/types/ClaimAdjustmentGroupCodes.js +31 -0
  513. package/dist/serialization/resources/commons/types/ClaimSubmissionPayerResponsibilityType.d.ts +10 -0
  514. package/dist/serialization/resources/commons/types/ClaimSubmissionPayerResponsibilityType.js +31 -0
  515. package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  516. package/dist/serialization/resources/commons/types/ProcedureModifier.js +1 -0
  517. package/dist/serialization/resources/commons/types/ProviderId.d.ts +10 -0
  518. package/dist/serialization/resources/commons/types/ProviderId.js +35 -0
  519. package/dist/serialization/resources/commons/types/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage.d.ts +12 -0
  520. package/dist/serialization/resources/commons/types/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage.js +33 -0
  521. package/dist/serialization/resources/commons/types/index.d.ts +5 -0
  522. package/dist/serialization/resources/commons/types/index.js +5 -0
  523. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -0
  524. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +3 -0
  525. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +1 -0
  526. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +1 -0
  527. package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +1 -0
  528. package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.js +1 -0
  529. package/dist/serialization/resources/financials/index.d.ts +1 -0
  530. package/dist/serialization/resources/financials/index.js +17 -0
  531. package/dist/serialization/resources/financials/types/Allocation.d.ts +13 -0
  532. package/dist/serialization/resources/financials/types/Allocation.js +34 -0
  533. package/dist/serialization/resources/financials/types/AllocationCreate.d.ts +13 -0
  534. package/dist/serialization/resources/financials/types/AllocationCreate.js +34 -0
  535. package/dist/serialization/resources/financials/types/AllocationRecipient.d.ts +22 -0
  536. package/dist/serialization/resources/financials/types/AllocationRecipient.js +46 -0
  537. package/dist/serialization/resources/financials/types/AllocationRecipientCreate.d.ts +22 -0
  538. package/dist/serialization/resources/financials/types/AllocationRecipientCreate.js +46 -0
  539. package/dist/serialization/resources/financials/types/RefundAllocation.d.ts +13 -0
  540. package/dist/serialization/resources/financials/types/RefundAllocation.js +34 -0
  541. package/dist/serialization/resources/financials/types/RefundAllocationCreate.d.ts +13 -0
  542. package/dist/serialization/resources/financials/types/RefundAllocationCreate.js +34 -0
  543. package/dist/serialization/resources/financials/types/RefundReason.d.ts +10 -0
  544. package/dist/serialization/resources/financials/types/RefundReason.js +31 -0
  545. package/dist/serialization/resources/financials/types/index.d.ts +7 -0
  546. package/dist/serialization/resources/financials/types/index.js +23 -0
  547. package/dist/serialization/resources/index.d.ts +8 -0
  548. package/dist/serialization/resources/index.js +9 -1
  549. package/dist/serialization/resources/insuranceAdjudication/index.d.ts +1 -0
  550. package/dist/serialization/resources/insuranceAdjudication/index.js +17 -0
  551. package/dist/serialization/resources/insuranceAdjudication/resources/index.d.ts +1 -0
  552. package/dist/serialization/resources/insuranceAdjudication/resources/index.js +27 -0
  553. package/dist/serialization/resources/insuranceAdjudication/resources/v1/index.d.ts +1 -0
  554. package/dist/serialization/resources/insuranceAdjudication/resources/v1/index.js +17 -0
  555. package/dist/serialization/resources/insuranceAdjudication/resources/v1/types/ClaimAdjudication.d.ts +15 -0
  556. package/dist/serialization/resources/insuranceAdjudication/resources/v1/types/ClaimAdjudication.js +36 -0
  557. package/dist/serialization/resources/insuranceAdjudication/resources/v1/types/ClaimAdjudicationCreate.d.ts +15 -0
  558. package/dist/serialization/resources/insuranceAdjudication/resources/v1/types/ClaimAdjudicationCreate.js +36 -0
  559. package/dist/serialization/resources/insuranceAdjudication/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +14 -0
  560. package/dist/serialization/resources/insuranceAdjudication/resources/v1/types/ClaimAdjustmentReasonCode.js +35 -0
  561. package/dist/serialization/resources/insuranceAdjudication/resources/v1/types/InsuranceAdjudication.d.ts +19 -0
  562. package/dist/serialization/resources/insuranceAdjudication/resources/v1/types/InsuranceAdjudication.js +40 -0
  563. package/dist/serialization/resources/insuranceAdjudication/resources/v1/types/InsuranceAdjudicationCreate.d.ts +18 -0
  564. package/dist/serialization/resources/insuranceAdjudication/resources/v1/types/InsuranceAdjudicationCreate.js +39 -0
  565. package/dist/serialization/resources/insuranceAdjudication/resources/v1/types/InsuranceAdjudicationId.d.ts +10 -0
  566. package/dist/serialization/resources/insuranceAdjudication/resources/v1/types/InsuranceAdjudicationId.js +35 -0
  567. package/dist/serialization/resources/insuranceAdjudication/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +12 -0
  568. package/dist/serialization/resources/insuranceAdjudication/resources/v1/types/RemittanceAdviceRemarkCode.js +33 -0
  569. package/dist/serialization/resources/insuranceAdjudication/resources/v1/types/ServiceLineAdjudication.d.ts +20 -0
  570. package/dist/serialization/resources/insuranceAdjudication/resources/v1/types/ServiceLineAdjudication.js +43 -0
  571. package/dist/serialization/resources/insuranceAdjudication/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +19 -0
  572. package/dist/serialization/resources/insuranceAdjudication/resources/v1/types/ServiceLineAdjudicationCreate.js +42 -0
  573. package/dist/serialization/resources/insuranceAdjudication/resources/v1/types/ServiceLineAdjudicationId.d.ts +10 -0
  574. package/dist/serialization/resources/insuranceAdjudication/resources/v1/types/ServiceLineAdjudicationId.js +35 -0
  575. package/dist/serialization/resources/insuranceAdjudication/resources/v1/types/index.d.ts +10 -0
  576. package/dist/serialization/resources/insuranceAdjudication/resources/v1/types/index.js +26 -0
  577. package/dist/serialization/resources/insuranceRefunds/index.d.ts +1 -0
  578. package/dist/serialization/resources/insuranceRefunds/index.js +17 -0
  579. package/dist/serialization/resources/insuranceRefunds/resources/index.d.ts +1 -0
  580. package/dist/serialization/resources/insuranceRefunds/resources/index.js +27 -0
  581. package/dist/serialization/resources/insuranceRefunds/resources/v1/index.d.ts +1 -0
  582. package/dist/serialization/resources/insuranceRefunds/resources/v1/index.js +17 -0
  583. package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefund.d.ts +16 -0
  584. package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefund.js +37 -0
  585. package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundCreate.d.ts +15 -0
  586. package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundCreate.js +36 -0
  587. package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundId.d.ts +10 -0
  588. package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundId.js +35 -0
  589. package/dist/serialization/resources/insuranceRefunds/resources/v1/types/index.d.ts +3 -0
  590. package/dist/serialization/resources/insuranceRefunds/resources/v1/types/index.js +19 -0
  591. package/dist/serialization/resources/invoices/types/index.d.ts +0 -1
  592. package/dist/serialization/resources/invoices/types/index.js +0 -1
  593. package/dist/serialization/resources/organizationProviders/resources/v3/client/create.d.ts +5 -1
  594. package/dist/serialization/resources/organizationProviders/resources/v3/client/create.js +5 -0
  595. package/dist/serialization/resources/organizationProviders/resources/v3/client/update.d.ts +5 -1
  596. package/dist/serialization/resources/organizationProviders/resources/v3/client/update.js +5 -0
  597. package/dist/serialization/resources/patientPayments/resources/index.d.ts +1 -0
  598. package/dist/serialization/resources/patientPayments/resources/index.js +2 -1
  599. package/dist/serialization/resources/patientPayments/resources/v4/client/index.d.ts +1 -0
  600. package/dist/serialization/resources/patientPayments/resources/v4/client/index.js +17 -0
  601. package/dist/serialization/resources/patientPayments/resources/v4/client/requests/PatientPaymentCreate.d.ts +17 -0
  602. package/dist/serialization/resources/patientPayments/resources/v4/client/requests/PatientPaymentCreate.js +38 -0
  603. package/dist/serialization/resources/patientPayments/resources/v4/client/requests/index.d.ts +1 -0
  604. package/dist/serialization/resources/patientPayments/resources/v4/client/requests/index.js +5 -0
  605. package/dist/serialization/resources/patientPayments/resources/v4/index.d.ts +2 -0
  606. package/dist/serialization/resources/patientPayments/resources/v4/index.js +18 -0
  607. package/dist/serialization/resources/patientPayments/resources/v4/types/PatientPayment.d.ts +19 -0
  608. package/dist/serialization/resources/patientPayments/resources/v4/types/PatientPayment.js +40 -0
  609. package/dist/serialization/resources/patientPayments/resources/v4/types/PatientPaymentId.d.ts +10 -0
  610. package/dist/serialization/resources/patientPayments/resources/v4/types/PatientPaymentId.js +35 -0
  611. package/dist/serialization/resources/patientPayments/resources/v4/types/index.d.ts +2 -0
  612. package/dist/serialization/resources/patientPayments/resources/v4/types/index.js +18 -0
  613. package/dist/serialization/resources/patientRefunds/index.d.ts +1 -0
  614. package/dist/serialization/resources/patientRefunds/index.js +17 -0
  615. package/dist/serialization/resources/patientRefunds/resources/index.d.ts +1 -0
  616. package/dist/serialization/resources/patientRefunds/resources/index.js +27 -0
  617. package/dist/serialization/resources/patientRefunds/resources/v1/client/index.d.ts +1 -0
  618. package/dist/serialization/resources/patientRefunds/resources/v1/client/index.js +17 -0
  619. package/dist/serialization/resources/patientRefunds/resources/v1/client/requests/PatientRefundCreate.d.ts +17 -0
  620. package/dist/serialization/resources/patientRefunds/resources/v1/client/requests/PatientRefundCreate.js +38 -0
  621. package/dist/serialization/resources/patientRefunds/resources/v1/client/requests/index.d.ts +1 -0
  622. package/dist/serialization/resources/patientRefunds/resources/v1/client/requests/index.js +5 -0
  623. package/dist/serialization/resources/patientRefunds/resources/v1/index.d.ts +2 -0
  624. package/dist/serialization/resources/patientRefunds/resources/v1/index.js +18 -0
  625. package/dist/serialization/resources/patientRefunds/resources/v1/types/PatientRefund.d.ts +19 -0
  626. package/dist/serialization/resources/patientRefunds/resources/v1/types/PatientRefund.js +40 -0
  627. package/dist/serialization/resources/patientRefunds/resources/v1/types/PatientRefundId.d.ts +10 -0
  628. package/dist/serialization/resources/patientRefunds/resources/v1/types/PatientRefundId.js +35 -0
  629. package/dist/serialization/resources/patientRefunds/resources/v1/types/index.d.ts +2 -0
  630. package/dist/serialization/resources/patientRefunds/resources/v1/types/index.js +18 -0
  631. package/dist/serialization/resources/writeOffs/index.d.ts +1 -0
  632. package/dist/serialization/resources/writeOffs/index.js +17 -0
  633. package/dist/serialization/resources/writeOffs/resources/index.d.ts +1 -0
  634. package/dist/serialization/resources/writeOffs/resources/index.js +27 -0
  635. package/dist/serialization/resources/writeOffs/resources/v1/client/create.d.ts +10 -0
  636. package/dist/serialization/resources/writeOffs/resources/v1/client/create.js +31 -0
  637. package/dist/serialization/resources/writeOffs/resources/v1/client/index.d.ts +2 -0
  638. package/dist/serialization/resources/writeOffs/resources/v1/client/index.js +31 -0
  639. package/dist/serialization/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.d.ts +12 -0
  640. package/dist/serialization/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.js +33 -0
  641. package/dist/serialization/resources/writeOffs/resources/v1/client/requests/index.d.ts +1 -0
  642. package/dist/serialization/resources/writeOffs/resources/v1/client/requests/index.js +5 -0
  643. package/dist/serialization/resources/writeOffs/resources/v1/index.d.ts +2 -0
  644. package/dist/serialization/resources/writeOffs/resources/v1/index.js +18 -0
  645. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOff.d.ts +16 -0
  646. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOff.js +37 -0
  647. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffCreate.d.ts +15 -0
  648. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffCreate.js +36 -0
  649. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffId.d.ts +10 -0
  650. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffId.js +35 -0
  651. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffReason.d.ts +10 -0
  652. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffReason.js +31 -0
  653. package/dist/serialization/resources/writeOffs/resources/v1/types/index.d.ts +4 -0
  654. package/dist/serialization/resources/writeOffs/resources/v1/types/index.js +20 -0
  655. package/dist/serialization/resources/x12/index.d.ts +1 -0
  656. package/dist/serialization/resources/x12/index.js +17 -0
  657. package/dist/serialization/resources/x12/resources/index.d.ts +1 -0
  658. package/dist/serialization/resources/x12/resources/index.js +27 -0
  659. package/dist/serialization/resources/x12/resources/v1/index.d.ts +1 -0
  660. package/dist/serialization/resources/x12/resources/v1/index.js +17 -0
  661. package/dist/serialization/resources/x12/resources/v1/types/Carc.d.ts +10 -0
  662. package/dist/serialization/resources/x12/resources/v1/types/Carc.js +298 -0
  663. package/dist/serialization/resources/x12/resources/v1/types/Rarc.d.ts +10 -0
  664. package/dist/serialization/resources/x12/resources/v1/types/Rarc.js +1092 -0
  665. package/dist/serialization/resources/x12/resources/v1/types/index.d.ts +2 -0
  666. package/dist/serialization/resources/x12/resources/v1/types/index.js +18 -0
  667. package/package.json +1 -1
  668. package/serialization/resources/claimSubmission/index.d.ts +1 -0
  669. package/serialization/resources/claimSubmission/index.js +17 -0
  670. package/serialization/resources/claimSubmission/resources/index.d.ts +1 -0
  671. package/serialization/resources/claimSubmission/resources/index.js +27 -0
  672. package/serialization/resources/claimSubmission/resources/v1/index.d.ts +1 -0
  673. package/serialization/resources/claimSubmission/resources/v1/index.js +17 -0
  674. package/serialization/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +10 -0
  675. package/serialization/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js +31 -0
  676. package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +14 -0
  677. package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.js +35 -0
  678. package/serialization/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +14 -0
  679. package/serialization/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.js +35 -0
  680. package/serialization/resources/claimSubmission/resources/v1/types/index.d.ts +3 -0
  681. package/serialization/resources/claimSubmission/resources/v1/types/index.js +19 -0
  682. package/serialization/resources/commons/types/ClaimAdjustmentGroupCodes.d.ts +10 -0
  683. package/serialization/resources/commons/types/ClaimAdjustmentGroupCodes.js +31 -0
  684. package/serialization/resources/commons/types/ClaimSubmissionPayerResponsibilityType.d.ts +10 -0
  685. package/serialization/resources/commons/types/ClaimSubmissionPayerResponsibilityType.js +31 -0
  686. package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  687. package/serialization/resources/commons/types/ProcedureModifier.js +1 -0
  688. package/serialization/resources/commons/types/ProviderId.d.ts +10 -0
  689. package/serialization/resources/commons/types/ProviderId.js +35 -0
  690. package/serialization/resources/commons/types/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage.d.ts +12 -0
  691. package/serialization/resources/commons/types/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage.js +33 -0
  692. package/serialization/resources/commons/types/index.d.ts +5 -0
  693. package/serialization/resources/commons/types/index.js +5 -0
  694. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -0
  695. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +3 -0
  696. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +1 -0
  697. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +1 -0
  698. package/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +1 -0
  699. package/serialization/resources/encounters/resources/v4/types/EncounterBase.js +1 -0
  700. package/serialization/resources/financials/index.d.ts +1 -0
  701. package/serialization/resources/financials/index.js +17 -0
  702. package/serialization/resources/financials/types/Allocation.d.ts +13 -0
  703. package/serialization/resources/financials/types/Allocation.js +34 -0
  704. package/serialization/resources/financials/types/AllocationCreate.d.ts +13 -0
  705. package/serialization/resources/financials/types/AllocationCreate.js +34 -0
  706. package/serialization/resources/financials/types/AllocationRecipient.d.ts +22 -0
  707. package/serialization/resources/financials/types/AllocationRecipient.js +46 -0
  708. package/serialization/resources/financials/types/AllocationRecipientCreate.d.ts +22 -0
  709. package/serialization/resources/financials/types/AllocationRecipientCreate.js +46 -0
  710. package/serialization/resources/financials/types/RefundAllocation.d.ts +13 -0
  711. package/serialization/resources/financials/types/RefundAllocation.js +34 -0
  712. package/serialization/resources/financials/types/RefundAllocationCreate.d.ts +13 -0
  713. package/serialization/resources/financials/types/RefundAllocationCreate.js +34 -0
  714. package/serialization/resources/financials/types/RefundReason.d.ts +10 -0
  715. package/serialization/resources/financials/types/RefundReason.js +31 -0
  716. package/serialization/resources/financials/types/index.d.ts +7 -0
  717. package/serialization/resources/financials/types/index.js +23 -0
  718. package/serialization/resources/index.d.ts +8 -0
  719. package/serialization/resources/index.js +9 -1
  720. package/serialization/resources/insuranceAdjudication/index.d.ts +1 -0
  721. package/serialization/resources/insuranceAdjudication/index.js +17 -0
  722. package/serialization/resources/insuranceAdjudication/resources/index.d.ts +1 -0
  723. package/serialization/resources/insuranceAdjudication/resources/index.js +27 -0
  724. package/serialization/resources/insuranceAdjudication/resources/v1/index.d.ts +1 -0
  725. package/serialization/resources/insuranceAdjudication/resources/v1/index.js +17 -0
  726. package/serialization/resources/insuranceAdjudication/resources/v1/types/ClaimAdjudication.d.ts +15 -0
  727. package/serialization/resources/insuranceAdjudication/resources/v1/types/ClaimAdjudication.js +36 -0
  728. package/serialization/resources/insuranceAdjudication/resources/v1/types/ClaimAdjudicationCreate.d.ts +15 -0
  729. package/serialization/resources/insuranceAdjudication/resources/v1/types/ClaimAdjudicationCreate.js +36 -0
  730. package/serialization/resources/insuranceAdjudication/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +14 -0
  731. package/serialization/resources/insuranceAdjudication/resources/v1/types/ClaimAdjustmentReasonCode.js +35 -0
  732. package/serialization/resources/insuranceAdjudication/resources/v1/types/InsuranceAdjudication.d.ts +19 -0
  733. package/serialization/resources/insuranceAdjudication/resources/v1/types/InsuranceAdjudication.js +40 -0
  734. package/serialization/resources/insuranceAdjudication/resources/v1/types/InsuranceAdjudicationCreate.d.ts +18 -0
  735. package/serialization/resources/insuranceAdjudication/resources/v1/types/InsuranceAdjudicationCreate.js +39 -0
  736. package/serialization/resources/insuranceAdjudication/resources/v1/types/InsuranceAdjudicationId.d.ts +10 -0
  737. package/serialization/resources/insuranceAdjudication/resources/v1/types/InsuranceAdjudicationId.js +35 -0
  738. package/serialization/resources/insuranceAdjudication/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +12 -0
  739. package/serialization/resources/insuranceAdjudication/resources/v1/types/RemittanceAdviceRemarkCode.js +33 -0
  740. package/serialization/resources/insuranceAdjudication/resources/v1/types/ServiceLineAdjudication.d.ts +20 -0
  741. package/serialization/resources/insuranceAdjudication/resources/v1/types/ServiceLineAdjudication.js +43 -0
  742. package/serialization/resources/insuranceAdjudication/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +19 -0
  743. package/serialization/resources/insuranceAdjudication/resources/v1/types/ServiceLineAdjudicationCreate.js +42 -0
  744. package/serialization/resources/insuranceAdjudication/resources/v1/types/ServiceLineAdjudicationId.d.ts +10 -0
  745. package/serialization/resources/insuranceAdjudication/resources/v1/types/ServiceLineAdjudicationId.js +35 -0
  746. package/serialization/resources/insuranceAdjudication/resources/v1/types/index.d.ts +10 -0
  747. package/serialization/resources/insuranceAdjudication/resources/v1/types/index.js +26 -0
  748. package/serialization/resources/insuranceRefunds/index.d.ts +1 -0
  749. package/serialization/resources/insuranceRefunds/index.js +17 -0
  750. package/serialization/resources/insuranceRefunds/resources/index.d.ts +1 -0
  751. package/serialization/resources/insuranceRefunds/resources/index.js +27 -0
  752. package/serialization/resources/insuranceRefunds/resources/v1/index.d.ts +1 -0
  753. package/serialization/resources/insuranceRefunds/resources/v1/index.js +17 -0
  754. package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefund.d.ts +16 -0
  755. package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefund.js +37 -0
  756. package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundCreate.d.ts +15 -0
  757. package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundCreate.js +36 -0
  758. package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundId.d.ts +10 -0
  759. package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundId.js +35 -0
  760. package/serialization/resources/insuranceRefunds/resources/v1/types/index.d.ts +3 -0
  761. package/serialization/resources/insuranceRefunds/resources/v1/types/index.js +19 -0
  762. package/serialization/resources/invoices/types/index.d.ts +0 -1
  763. package/serialization/resources/invoices/types/index.js +0 -1
  764. package/serialization/resources/organizationProviders/resources/v3/client/create.d.ts +5 -1
  765. package/serialization/resources/organizationProviders/resources/v3/client/create.js +5 -0
  766. package/serialization/resources/organizationProviders/resources/v3/client/update.d.ts +5 -1
  767. package/serialization/resources/organizationProviders/resources/v3/client/update.js +5 -0
  768. package/serialization/resources/patientPayments/resources/index.d.ts +1 -0
  769. package/serialization/resources/patientPayments/resources/index.js +2 -1
  770. package/serialization/resources/patientPayments/resources/v4/client/index.d.ts +1 -0
  771. package/serialization/resources/patientPayments/resources/v4/client/index.js +17 -0
  772. package/serialization/resources/patientPayments/resources/v4/client/requests/PatientPaymentCreate.d.ts +17 -0
  773. package/serialization/resources/patientPayments/resources/v4/client/requests/PatientPaymentCreate.js +38 -0
  774. package/serialization/resources/patientPayments/resources/v4/client/requests/index.d.ts +1 -0
  775. package/serialization/resources/patientPayments/resources/v4/client/requests/index.js +5 -0
  776. package/serialization/resources/patientPayments/resources/v4/index.d.ts +2 -0
  777. package/serialization/resources/patientPayments/resources/v4/index.js +18 -0
  778. package/serialization/resources/patientPayments/resources/v4/types/PatientPayment.d.ts +19 -0
  779. package/serialization/resources/patientPayments/resources/v4/types/PatientPayment.js +40 -0
  780. package/serialization/resources/patientPayments/resources/v4/types/PatientPaymentId.d.ts +10 -0
  781. package/serialization/resources/patientPayments/resources/v4/types/PatientPaymentId.js +35 -0
  782. package/serialization/resources/patientPayments/resources/v4/types/index.d.ts +2 -0
  783. package/serialization/resources/patientPayments/resources/v4/types/index.js +18 -0
  784. package/serialization/resources/patientRefunds/index.d.ts +1 -0
  785. package/serialization/resources/patientRefunds/index.js +17 -0
  786. package/serialization/resources/patientRefunds/resources/index.d.ts +1 -0
  787. package/serialization/resources/patientRefunds/resources/index.js +27 -0
  788. package/serialization/resources/patientRefunds/resources/v1/client/index.d.ts +1 -0
  789. package/serialization/resources/patientRefunds/resources/v1/client/index.js +17 -0
  790. package/serialization/resources/patientRefunds/resources/v1/client/requests/PatientRefundCreate.d.ts +17 -0
  791. package/serialization/resources/patientRefunds/resources/v1/client/requests/PatientRefundCreate.js +38 -0
  792. package/serialization/resources/patientRefunds/resources/v1/client/requests/index.d.ts +1 -0
  793. package/serialization/resources/patientRefunds/resources/v1/client/requests/index.js +5 -0
  794. package/serialization/resources/patientRefunds/resources/v1/index.d.ts +2 -0
  795. package/serialization/resources/patientRefunds/resources/v1/index.js +18 -0
  796. package/serialization/resources/patientRefunds/resources/v1/types/PatientRefund.d.ts +19 -0
  797. package/serialization/resources/patientRefunds/resources/v1/types/PatientRefund.js +40 -0
  798. package/serialization/resources/patientRefunds/resources/v1/types/PatientRefundId.d.ts +10 -0
  799. package/serialization/resources/patientRefunds/resources/v1/types/PatientRefundId.js +35 -0
  800. package/serialization/resources/patientRefunds/resources/v1/types/index.d.ts +2 -0
  801. package/serialization/resources/patientRefunds/resources/v1/types/index.js +18 -0
  802. package/serialization/resources/writeOffs/index.d.ts +1 -0
  803. package/serialization/resources/writeOffs/index.js +17 -0
  804. package/serialization/resources/writeOffs/resources/index.d.ts +1 -0
  805. package/serialization/resources/writeOffs/resources/index.js +27 -0
  806. package/serialization/resources/writeOffs/resources/v1/client/create.d.ts +10 -0
  807. package/serialization/resources/writeOffs/resources/v1/client/create.js +31 -0
  808. package/serialization/resources/writeOffs/resources/v1/client/index.d.ts +2 -0
  809. package/serialization/resources/writeOffs/resources/v1/client/index.js +31 -0
  810. package/serialization/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.d.ts +12 -0
  811. package/serialization/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.js +33 -0
  812. package/serialization/resources/writeOffs/resources/v1/client/requests/index.d.ts +1 -0
  813. package/serialization/resources/writeOffs/resources/v1/client/requests/index.js +5 -0
  814. package/serialization/resources/writeOffs/resources/v1/index.d.ts +2 -0
  815. package/serialization/resources/writeOffs/resources/v1/index.js +18 -0
  816. package/serialization/resources/writeOffs/resources/v1/types/WriteOff.d.ts +16 -0
  817. package/serialization/resources/writeOffs/resources/v1/types/WriteOff.js +37 -0
  818. package/serialization/resources/writeOffs/resources/v1/types/WriteOffCreate.d.ts +15 -0
  819. package/serialization/resources/writeOffs/resources/v1/types/WriteOffCreate.js +36 -0
  820. package/serialization/resources/writeOffs/resources/v1/types/WriteOffId.d.ts +10 -0
  821. package/serialization/resources/writeOffs/resources/v1/types/WriteOffId.js +35 -0
  822. package/serialization/resources/writeOffs/resources/v1/types/WriteOffReason.d.ts +10 -0
  823. package/serialization/resources/writeOffs/resources/v1/types/WriteOffReason.js +31 -0
  824. package/serialization/resources/writeOffs/resources/v1/types/index.d.ts +4 -0
  825. package/serialization/resources/writeOffs/resources/v1/types/index.js +20 -0
  826. package/serialization/resources/x12/index.d.ts +1 -0
  827. package/serialization/resources/x12/index.js +17 -0
  828. package/serialization/resources/x12/resources/index.d.ts +1 -0
  829. package/serialization/resources/x12/resources/index.js +27 -0
  830. package/serialization/resources/x12/resources/v1/index.d.ts +1 -0
  831. package/serialization/resources/x12/resources/v1/index.js +17 -0
  832. package/serialization/resources/x12/resources/v1/types/Carc.d.ts +10 -0
  833. package/serialization/resources/x12/resources/v1/types/Carc.js +298 -0
  834. package/serialization/resources/x12/resources/v1/types/Rarc.d.ts +10 -0
  835. package/serialization/resources/x12/resources/v1/types/Rarc.js +1092 -0
  836. package/serialization/resources/x12/resources/v1/types/index.d.ts +2 -0
  837. package/serialization/resources/x12/resources/v1/types/index.js +18 -0
  838. /package/api/resources/{invoices → commons}/types/InvoiceId.d.ts +0 -0
  839. /package/api/resources/{invoices → commons}/types/InvoiceId.js +0 -0
  840. /package/dist/api/resources/{invoices → commons}/types/InvoiceId.d.ts +0 -0
  841. /package/dist/api/resources/{invoices → commons}/types/InvoiceId.js +0 -0
  842. /package/dist/serialization/resources/{invoices → commons}/types/InvoiceId.d.ts +0 -0
  843. /package/dist/serialization/resources/{invoices → commons}/types/InvoiceId.js +0 -0
  844. /package/serialization/resources/{invoices → commons}/types/InvoiceId.d.ts +0 -0
  845. /package/serialization/resources/{invoices → commons}/types/InvoiceId.js +0 -0
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.InsuranceRefundId = void 0;
7
+ function InsuranceRefundId(value) {
8
+ return value;
9
+ }
10
+ exports.InsuranceRefundId = InsuranceRefundId;
@@ -0,0 +1,3 @@
1
+ export * from "./InsuranceRefundId";
2
+ export * from "./InsuranceRefund";
3
+ export * from "./InsuranceRefundCreate";
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./InsuranceRefundId"), exports);
18
+ __exportStar(require("./InsuranceRefund"), exports);
19
+ __exportStar(require("./InsuranceRefundCreate"), exports);
@@ -1,4 +1,3 @@
1
- export * from "./InvoiceId";
2
1
  export * from "./Invoice";
3
2
  export * from "./InvoiceItem";
4
3
  export * from "./InvoiceStatus";
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./InvoiceId"), exports);
18
17
  __exportStar(require("./Invoice"), exports);
19
18
  __exportStar(require("./InvoiceItem"), exports);
20
19
  __exportStar(require("./InvoiceStatus"), exports);
@@ -49,7 +49,7 @@ class V3 {
49
49
  Authorization: await this._getAuthorizationHeader(),
50
50
  "X-Fern-Language": "JavaScript",
51
51
  "X-Fern-SDK-Name": "candidhealth",
52
- "X-Fern-SDK-Version": "0.6.4",
52
+ "X-Fern-SDK-Version": "0.7.1",
53
53
  },
54
54
  contentType: "application/json",
55
55
  timeoutMs: 60000,
@@ -115,7 +115,7 @@ class V3 {
115
115
  Authorization: await this._getAuthorizationHeader(),
116
116
  "X-Fern-Language": "JavaScript",
117
117
  "X-Fern-SDK-Name": "candidhealth",
118
- "X-Fern-SDK-Version": "0.6.4",
118
+ "X-Fern-SDK-Version": "0.7.1",
119
119
  },
120
120
  contentType: "application/json",
121
121
  queryParameters: _queryParams,
@@ -145,7 +145,7 @@ class V3 {
145
145
  Authorization: await this._getAuthorizationHeader(),
146
146
  "X-Fern-Language": "JavaScript",
147
147
  "X-Fern-SDK-Name": "candidhealth",
148
- "X-Fern-SDK-Version": "0.6.4",
148
+ "X-Fern-SDK-Version": "0.7.1",
149
149
  },
150
150
  contentType: "application/json",
151
151
  body: await serializers.organizationProviders.v3.OrganizationProviderCreateV2.jsonOrThrow(request, {
@@ -167,6 +167,7 @@ class V3 {
167
167
  if (_response.error.reason === "status-code") {
168
168
  switch (_response.error.body?.errorName) {
169
169
  case "HttpRequestValidationError":
170
+ case "UpdatesDisabledDueToExternalSystemIntegrationError":
170
171
  return {
171
172
  ok: false,
172
173
  error: await serializers.organizationProviders.v3.create.Error.parseOrThrow(_response.error.body, {
@@ -191,7 +192,7 @@ class V3 {
191
192
  Authorization: await this._getAuthorizationHeader(),
192
193
  "X-Fern-Language": "JavaScript",
193
194
  "X-Fern-SDK-Name": "candidhealth",
194
- "X-Fern-SDK-Version": "0.6.4",
195
+ "X-Fern-SDK-Version": "0.7.1",
195
196
  },
196
197
  contentType: "application/json",
197
198
  body: await serializers.organizationProviders.v3.OrganizationProviderUpdateV2.jsonOrThrow(request, {
@@ -214,6 +215,7 @@ class V3 {
214
215
  switch (_response.error.body?.errorName) {
215
216
  case "HttpRequestValidationError":
216
217
  case "EntityNotFoundError":
218
+ case "UpdatesDisabledDueToExternalSystemIntegrationError":
217
219
  return {
218
220
  ok: false,
219
221
  error: await serializers.organizationProviders.v3.update.Error.parseOrThrow(_response.error.body, {
@@ -3,12 +3,16 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
5
  import * as core from "../../../../../../core";
6
- export declare type Error = CandidApi.organizationProviders.v3.create.Error.HttpRequestValidationError | CandidApi.organizationProviders.v3.create.Error._Unknown;
6
+ export declare type Error = CandidApi.organizationProviders.v3.create.Error.HttpRequestValidationError | CandidApi.organizationProviders.v3.create.Error.UpdatesDisabledDueToExternalSystemIntegrationError | CandidApi.organizationProviders.v3.create.Error._Unknown;
7
7
  export declare namespace Error {
8
8
  interface HttpRequestValidationError extends _Utils {
9
9
  errorName: "HttpRequestValidationError";
10
10
  content: CandidApi.RequestValidationError;
11
11
  }
12
+ interface UpdatesDisabledDueToExternalSystemIntegrationError extends _Utils {
13
+ errorName: "UpdatesDisabledDueToExternalSystemIntegrationError";
14
+ content: CandidApi.UpdatesDisabledDueToExternalSystemIntegrationErrorMessage;
15
+ }
12
16
  interface _Unknown extends _Utils {
13
17
  errorName: void;
14
18
  content: core.Fetcher.Error;
@@ -18,11 +22,13 @@ export declare namespace Error {
18
22
  }
19
23
  interface _Visitor<_Result> {
20
24
  httpRequestValidationError: (value: CandidApi.RequestValidationError) => _Result;
25
+ updatesDisabledDueToExternalSystemIntegrationError: (value: CandidApi.UpdatesDisabledDueToExternalSystemIntegrationErrorMessage) => _Result;
21
26
  _other: (value: core.Fetcher.Error) => _Result;
22
27
  }
23
28
  }
24
29
  export declare const Error: {
25
30
  readonly httpRequestValidationError: (value: CandidApi.RequestValidationError) => CandidApi.organizationProviders.v3.create.Error.HttpRequestValidationError;
31
+ readonly updatesDisabledDueToExternalSystemIntegrationError: (value: CandidApi.UpdatesDisabledDueToExternalSystemIntegrationErrorMessage) => CandidApi.organizationProviders.v3.create.Error.UpdatesDisabledDueToExternalSystemIntegrationError;
26
32
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.organizationProviders.v3.create.Error._Unknown;
27
33
  readonly _visit: <_Result>(value: CandidApi.organizationProviders.v3.create.Error, visitor: CandidApi.organizationProviders.v3.create.Error._Visitor<_Result>) => _Result;
28
34
  };
@@ -38,6 +38,15 @@ exports.Error = {
38
38
  },
39
39
  };
40
40
  },
41
+ updatesDisabledDueToExternalSystemIntegrationError: (value) => {
42
+ return {
43
+ content: value,
44
+ errorName: "UpdatesDisabledDueToExternalSystemIntegrationError",
45
+ _visit: function (visitor) {
46
+ return CandidApi.organizationProviders.v3.create.Error._visit(this, visitor);
47
+ },
48
+ };
49
+ },
41
50
  _unknown: (fetcherError) => {
42
51
  return {
43
52
  errorName: undefined,
@@ -51,6 +60,8 @@ exports.Error = {
51
60
  switch (value.errorName) {
52
61
  case "HttpRequestValidationError":
53
62
  return visitor.httpRequestValidationError(value.content);
63
+ case "UpdatesDisabledDueToExternalSystemIntegrationError":
64
+ return visitor.updatesDisabledDueToExternalSystemIntegrationError(value.content);
54
65
  default:
55
66
  return visitor._other(value);
56
67
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
5
  import * as core from "../../../../../../core";
6
- export declare type Error = CandidApi.organizationProviders.v3.update.Error.HttpRequestValidationError | CandidApi.organizationProviders.v3.update.Error.EntityNotFoundError | CandidApi.organizationProviders.v3.update.Error._Unknown;
6
+ export declare type Error = CandidApi.organizationProviders.v3.update.Error.HttpRequestValidationError | CandidApi.organizationProviders.v3.update.Error.EntityNotFoundError | CandidApi.organizationProviders.v3.update.Error.UpdatesDisabledDueToExternalSystemIntegrationError | CandidApi.organizationProviders.v3.update.Error._Unknown;
7
7
  export declare namespace Error {
8
8
  interface HttpRequestValidationError extends _Utils {
9
9
  errorName: "HttpRequestValidationError";
@@ -13,6 +13,10 @@ export declare namespace Error {
13
13
  errorName: "EntityNotFoundError";
14
14
  content: CandidApi.EntityNotFoundErrorMessage;
15
15
  }
16
+ interface UpdatesDisabledDueToExternalSystemIntegrationError extends _Utils {
17
+ errorName: "UpdatesDisabledDueToExternalSystemIntegrationError";
18
+ content: CandidApi.UpdatesDisabledDueToExternalSystemIntegrationErrorMessage;
19
+ }
16
20
  interface _Unknown extends _Utils {
17
21
  errorName: void;
18
22
  content: core.Fetcher.Error;
@@ -23,12 +27,14 @@ export declare namespace Error {
23
27
  interface _Visitor<_Result> {
24
28
  httpRequestValidationError: (value: CandidApi.RequestValidationError) => _Result;
25
29
  entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
30
+ updatesDisabledDueToExternalSystemIntegrationError: (value: CandidApi.UpdatesDisabledDueToExternalSystemIntegrationErrorMessage) => _Result;
26
31
  _other: (value: core.Fetcher.Error) => _Result;
27
32
  }
28
33
  }
29
34
  export declare const Error: {
30
35
  readonly httpRequestValidationError: (value: CandidApi.RequestValidationError) => CandidApi.organizationProviders.v3.update.Error.HttpRequestValidationError;
31
36
  readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.organizationProviders.v3.update.Error.EntityNotFoundError;
37
+ readonly updatesDisabledDueToExternalSystemIntegrationError: (value: CandidApi.UpdatesDisabledDueToExternalSystemIntegrationErrorMessage) => CandidApi.organizationProviders.v3.update.Error.UpdatesDisabledDueToExternalSystemIntegrationError;
32
38
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.organizationProviders.v3.update.Error._Unknown;
33
39
  readonly _visit: <_Result>(value: CandidApi.organizationProviders.v3.update.Error, visitor: CandidApi.organizationProviders.v3.update.Error._Visitor<_Result>) => _Result;
34
40
  };
@@ -47,6 +47,15 @@ exports.Error = {
47
47
  },
48
48
  };
49
49
  },
50
+ updatesDisabledDueToExternalSystemIntegrationError: (value) => {
51
+ return {
52
+ content: value,
53
+ errorName: "UpdatesDisabledDueToExternalSystemIntegrationError",
54
+ _visit: function (visitor) {
55
+ return CandidApi.organizationProviders.v3.update.Error._visit(this, visitor);
56
+ },
57
+ };
58
+ },
50
59
  _unknown: (fetcherError) => {
51
60
  return {
52
61
  errorName: undefined,
@@ -62,6 +71,8 @@ exports.Error = {
62
71
  return visitor.httpRequestValidationError(value.content);
63
72
  case "EntityNotFoundError":
64
73
  return visitor.entityNotFoundError(value.content);
74
+ case "UpdatesDisabledDueToExternalSystemIntegrationError":
75
+ return visitor.updatesDisabledDueToExternalSystemIntegrationError(value.content);
65
76
  default:
66
77
  return visitor._other(value);
67
78
  }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import { V4 } from "../resources/v4/client/Client";
7
+ export declare namespace PatientPayments {
8
+ interface Options {
9
+ environment?: environments.CandidApiEnvironment | string;
10
+ token?: core.Supplier<core.BearerToken | undefined>;
11
+ }
12
+ }
13
+ export declare class PatientPayments {
14
+ protected readonly options: PatientPayments.Options;
15
+ constructor(options: PatientPayments.Options);
16
+ protected _v4: V4 | undefined;
17
+ get v4(): V4;
18
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PatientPayments = void 0;
7
+ const Client_1 = require("../resources/v4/client/Client");
8
+ class PatientPayments {
9
+ options;
10
+ constructor(options) {
11
+ this.options = options;
12
+ }
13
+ _v4;
14
+ get v4() {
15
+ return (this._v4 ??= new Client_1.V4(this.options));
16
+ }
17
+ }
18
+ exports.PatientPayments = PatientPayments;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
1
  export * from "./resources";
2
+ export * from "./client";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./resources"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -1 +1,2 @@
1
1
  export * as v3 from "./v3";
2
+ export * as v4 from "./v4";
@@ -23,5 +23,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.v3 = void 0;
26
+ exports.v4 = exports.v3 = void 0;
27
27
  exports.v3 = __importStar(require("./v3"));
28
+ exports.v4 = __importStar(require("./v4"));
@@ -0,0 +1,37 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments";
5
+ import * as core from "../../../../../../core";
6
+ import * as CandidApi from "../../../../..";
7
+ export declare namespace V4 {
8
+ interface Options {
9
+ environment?: environments.CandidApiEnvironment | string;
10
+ token?: core.Supplier<core.BearerToken | undefined>;
11
+ }
12
+ }
13
+ export declare class V4 {
14
+ protected readonly options: V4.Options;
15
+ constructor(options: V4.Options);
16
+ /**
17
+ * **This endpoint is incubating.**
18
+ * Retrieves a previously created patient payment by its `patient_payment_id`.
19
+ *
20
+ */
21
+ get(patientPaymentId: CandidApi.patientPayments.v4.PatientPaymentId): Promise<core.APIResponse<CandidApi.patientPayments.v4.PatientPayment, CandidApi.patientPayments.v4.get.Error>>;
22
+ /**
23
+ * **This endpoint is incubating.**
24
+ * Creates a new patient payment record and returns the newly created PatientPayment object.
25
+ * The allocations can describe whether the payment is being applied toward a specific service line,
26
+ * claim, or billing provider.
27
+ *
28
+ */
29
+ create(request: CandidApi.patientPayments.v4.PatientPaymentCreate): Promise<core.APIResponse<CandidApi.patientPayments.v4.PatientPayment, CandidApi.patientPayments.v4.create.Error>>;
30
+ /**
31
+ * **This endpoint is incubating.**
32
+ * Deletes the patient payment record matching the provided patient_payment_id.
33
+ *
34
+ */
35
+ delete(patientPaymentId: CandidApi.patientPayments.v4.PatientPaymentId): Promise<core.APIResponse<void, CandidApi.patientPayments.v4.delete.Error>>;
36
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
37
+ }
@@ -0,0 +1,153 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __importDefault = (this && this.__importDefault) || function (mod) {
29
+ return (mod && mod.__esModule) ? mod : { "default": mod };
30
+ };
31
+ Object.defineProperty(exports, "__esModule", { value: true });
32
+ exports.V4 = void 0;
33
+ const environments = __importStar(require("../../../../../../environments"));
34
+ const core = __importStar(require("../../../../../../core"));
35
+ const CandidApi = __importStar(require("../../../../.."));
36
+ const serializers = __importStar(require("../../../../../../serialization"));
37
+ const url_join_1 = __importDefault(require("url-join"));
38
+ class V4 {
39
+ options;
40
+ constructor(options) {
41
+ this.options = options;
42
+ }
43
+ /**
44
+ * **This endpoint is incubating.**
45
+ * Retrieves a previously created patient payment by its `patient_payment_id`.
46
+ *
47
+ */
48
+ async get(patientPaymentId) {
49
+ const _response = await core.fetcher({
50
+ url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/patient-payments/v4/${await serializers.patientPayments.v4.PatientPaymentId.jsonOrThrow(patientPaymentId)}`),
51
+ method: "GET",
52
+ headers: {
53
+ Authorization: await this._getAuthorizationHeader(),
54
+ "X-Fern-Language": "JavaScript",
55
+ "X-Fern-SDK-Name": "candidhealth",
56
+ "X-Fern-SDK-Version": "0.7.1",
57
+ },
58
+ contentType: "application/json",
59
+ timeoutMs: 60000,
60
+ });
61
+ if (_response.ok) {
62
+ return {
63
+ ok: true,
64
+ body: await serializers.patientPayments.v4.PatientPayment.parseOrThrow(_response.body, {
65
+ unrecognizedObjectKeys: "passthrough",
66
+ allowUnrecognizedUnionMembers: true,
67
+ allowUnrecognizedEnumValues: true,
68
+ breadcrumbsPrefix: ["response"],
69
+ }),
70
+ };
71
+ }
72
+ return {
73
+ ok: false,
74
+ error: CandidApi.patientPayments.v4.get.Error._unknown(_response.error),
75
+ };
76
+ }
77
+ /**
78
+ * **This endpoint is incubating.**
79
+ * Creates a new patient payment record and returns the newly created PatientPayment object.
80
+ * The allocations can describe whether the payment is being applied toward a specific service line,
81
+ * claim, or billing provider.
82
+ *
83
+ */
84
+ async create(request) {
85
+ const _response = await core.fetcher({
86
+ url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, "/api/patient-payments/v4"),
87
+ method: "POST",
88
+ headers: {
89
+ Authorization: await this._getAuthorizationHeader(),
90
+ "X-Fern-Language": "JavaScript",
91
+ "X-Fern-SDK-Name": "candidhealth",
92
+ "X-Fern-SDK-Version": "0.7.1",
93
+ },
94
+ contentType: "application/json",
95
+ body: await serializers.patientPayments.v4.PatientPaymentCreate.jsonOrThrow(request, {
96
+ unrecognizedObjectKeys: "strip",
97
+ }),
98
+ timeoutMs: 60000,
99
+ });
100
+ if (_response.ok) {
101
+ return {
102
+ ok: true,
103
+ body: await serializers.patientPayments.v4.PatientPayment.parseOrThrow(_response.body, {
104
+ unrecognizedObjectKeys: "passthrough",
105
+ allowUnrecognizedUnionMembers: true,
106
+ allowUnrecognizedEnumValues: true,
107
+ breadcrumbsPrefix: ["response"],
108
+ }),
109
+ };
110
+ }
111
+ return {
112
+ ok: false,
113
+ error: CandidApi.patientPayments.v4.create.Error._unknown(_response.error),
114
+ };
115
+ }
116
+ /**
117
+ * **This endpoint is incubating.**
118
+ * Deletes the patient payment record matching the provided patient_payment_id.
119
+ *
120
+ */
121
+ async delete(patientPaymentId) {
122
+ const _response = await core.fetcher({
123
+ url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/patient-payments/v4/${await serializers.patientPayments.v4.PatientPaymentId.jsonOrThrow(patientPaymentId)}`),
124
+ method: "DELETE",
125
+ headers: {
126
+ Authorization: await this._getAuthorizationHeader(),
127
+ "X-Fern-Language": "JavaScript",
128
+ "X-Fern-SDK-Name": "candidhealth",
129
+ "X-Fern-SDK-Version": "0.7.1",
130
+ },
131
+ contentType: "application/json",
132
+ timeoutMs: 60000,
133
+ });
134
+ if (_response.ok) {
135
+ return {
136
+ ok: true,
137
+ body: undefined,
138
+ };
139
+ }
140
+ return {
141
+ ok: false,
142
+ error: CandidApi.patientPayments.v4.delete.Error._unknown(_response.error),
143
+ };
144
+ }
145
+ async _getAuthorizationHeader() {
146
+ const bearer = await core.Supplier.get(this.options.token);
147
+ if (bearer != null) {
148
+ return `Bearer ${bearer}`;
149
+ }
150
+ return undefined;
151
+ }
152
+ }
153
+ exports.V4 = V4;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../..";
5
+ import * as core from "../../../../../../core";
6
+ export declare type Error = CandidApi.patientPayments.v4.create.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface _Unknown extends _Utils {
9
+ errorName: void;
10
+ content: core.Fetcher.Error;
11
+ }
12
+ interface _Utils {
13
+ _visit: <_Result>(visitor: CandidApi.patientPayments.v4.create.Error._Visitor<_Result>) => _Result;
14
+ }
15
+ interface _Visitor<_Result> {
16
+ _other: (value: core.Fetcher.Error) => _Result;
17
+ }
18
+ }
19
+ export declare const Error: {
20
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.patientPayments.v4.create.Error._Unknown;
21
+ readonly _visit: <_Result>(value: CandidApi.patientPayments.v4.create.Error, visitor: CandidApi.patientPayments.v4.create.Error._Visitor<_Result>) => _Result;
22
+ };
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Error = void 0;
30
+ const CandidApi = __importStar(require("../../../../.."));
31
+ exports.Error = {
32
+ _unknown: (fetcherError) => {
33
+ return {
34
+ errorName: undefined,
35
+ content: fetcherError,
36
+ _visit: function (visitor) {
37
+ return CandidApi.patientPayments.v4.create.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ _visit: (value, visitor) => {
42
+ switch (value.errorName) {
43
+ default:
44
+ return visitor._other(value);
45
+ }
46
+ },
47
+ };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../..";
5
+ import * as core from "../../../../../../core";
6
+ export declare type Error = CandidApi.patientPayments.v4.delete.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface _Unknown extends _Utils {
9
+ errorName: void;
10
+ content: core.Fetcher.Error;
11
+ }
12
+ interface _Utils {
13
+ _visit: <_Result>(visitor: CandidApi.patientPayments.v4.delete.Error._Visitor<_Result>) => _Result;
14
+ }
15
+ interface _Visitor<_Result> {
16
+ _other: (value: core.Fetcher.Error) => _Result;
17
+ }
18
+ }
19
+ export declare const Error: {
20
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.patientPayments.v4.delete.Error._Unknown;
21
+ readonly _visit: <_Result>(value: CandidApi.patientPayments.v4.delete.Error, visitor: CandidApi.patientPayments.v4.delete.Error._Visitor<_Result>) => _Result;
22
+ };
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Error = void 0;
30
+ const CandidApi = __importStar(require("../../../../.."));
31
+ exports.Error = {
32
+ _unknown: (fetcherError) => {
33
+ return {
34
+ errorName: undefined,
35
+ content: fetcherError,
36
+ _visit: function (visitor) {
37
+ return CandidApi.patientPayments.v4.delete.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ _visit: (value, visitor) => {
42
+ switch (value.errorName) {
43
+ default:
44
+ return visitor._other(value);
45
+ }
46
+ },
47
+ };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../..";
5
+ import * as core from "../../../../../../core";
6
+ export declare type Error = CandidApi.patientPayments.v4.get.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface _Unknown extends _Utils {
9
+ errorName: void;
10
+ content: core.Fetcher.Error;
11
+ }
12
+ interface _Utils {
13
+ _visit: <_Result>(visitor: CandidApi.patientPayments.v4.get.Error._Visitor<_Result>) => _Result;
14
+ }
15
+ interface _Visitor<_Result> {
16
+ _other: (value: core.Fetcher.Error) => _Result;
17
+ }
18
+ }
19
+ export declare const Error: {
20
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.patientPayments.v4.get.Error._Unknown;
21
+ readonly _visit: <_Result>(value: CandidApi.patientPayments.v4.get.Error, visitor: CandidApi.patientPayments.v4.get.Error._Visitor<_Result>) => _Result;
22
+ };