candidhealth 0.14.4 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/Client.d.ts +6 -0
  2. package/Client.js +26 -16
  3. package/api/resources/auth/resources/v2/client/Client.d.ts +1 -1
  4. package/api/resources/auth/resources/v2/client/Client.js +2 -2
  5. package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  6. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  7. package/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  8. package/api/resources/encounters/resources/v4/client/Client.js +4 -4
  9. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  10. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  11. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  12. package/api/resources/financials/types/AllocationCreate.d.ts +5 -0
  13. package/api/resources/financials/types/AllocationTarget.d.ts +8 -6
  14. package/api/resources/financials/types/AllocationTargetCreate.d.ts +5 -0
  15. package/api/resources/financials/types/BillingProviderAllocationTarget.d.ts +7 -0
  16. package/api/resources/financials/types/BillingProviderAllocationTarget.js +5 -0
  17. package/api/resources/financials/types/ClaimAllocationTarget.d.ts +8 -0
  18. package/api/resources/financials/types/ClaimAllocationTarget.js +5 -0
  19. package/api/resources/financials/types/ServiceLineAllocationTarget.d.ts +9 -0
  20. package/api/resources/financials/types/ServiceLineAllocationTarget.js +5 -0
  21. package/api/resources/financials/types/index.d.ts +3 -0
  22. package/api/resources/financials/types/index.js +3 -0
  23. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  24. package/api/resources/index.d.ts +2 -0
  25. package/api/resources/index.js +3 -1
  26. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  27. package/api/resources/insurancePayments/client/Client.d.ts +18 -0
  28. package/api/resources/insurancePayments/client/Client.js +18 -0
  29. package/api/resources/insurancePayments/client/index.d.ts +1 -0
  30. package/api/resources/insurancePayments/client/index.js +2 -0
  31. package/api/resources/insurancePayments/index.d.ts +2 -0
  32. package/api/resources/insurancePayments/index.js +18 -0
  33. package/api/resources/insurancePayments/resources/index.d.ts +1 -0
  34. package/api/resources/insurancePayments/resources/index.js +27 -0
  35. package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +48 -0
  36. package/api/resources/insurancePayments/resources/v1/client/Client.js +325 -0
  37. package/api/resources/insurancePayments/resources/v1/client/create.d.ts +28 -0
  38. package/api/resources/insurancePayments/resources/v1/client/create.js +58 -0
  39. package/api/resources/insurancePayments/resources/v1/client/delete.d.ts +34 -0
  40. package/api/resources/insurancePayments/resources/v1/client/delete.js +69 -0
  41. package/api/resources/insurancePayments/resources/v1/client/get.d.ts +34 -0
  42. package/api/resources/insurancePayments/resources/v1/client/get.js +69 -0
  43. package/api/resources/insurancePayments/resources/v1/client/getMulti.d.ts +34 -0
  44. package/api/resources/insurancePayments/resources/v1/client/getMulti.js +69 -0
  45. package/api/resources/insurancePayments/resources/v1/client/index.d.ts +6 -0
  46. package/api/resources/insurancePayments/resources/v1/client/index.js +35 -0
  47. package/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +23 -0
  48. package/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.js +5 -0
  49. package/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +8 -0
  50. package/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js +5 -0
  51. package/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +2 -0
  52. package/api/resources/insurancePayments/resources/v1/client/requests/index.js +2 -0
  53. package/api/resources/insurancePayments/resources/v1/client/update.d.ts +34 -0
  54. package/api/resources/insurancePayments/resources/v1/client/update.js +69 -0
  55. package/api/resources/insurancePayments/resources/v1/index.d.ts +2 -0
  56. package/api/resources/insurancePayments/resources/v1/index.js +18 -0
  57. package/api/resources/insurancePayments/resources/v1/types/InsurancePayment.d.ts +12 -0
  58. package/api/resources/insurancePayments/resources/v1/types/InsurancePayment.js +5 -0
  59. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +11 -0
  60. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js +5 -0
  61. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentId.d.ts +8 -0
  62. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentId.js +10 -0
  63. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.d.ts +9 -0
  64. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.js +11 -0
  65. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.d.ts +7 -0
  66. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.js +5 -0
  67. package/api/resources/insurancePayments/resources/v1/types/index.d.ts +5 -0
  68. package/api/resources/insurancePayments/resources/v1/types/index.js +21 -0
  69. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  70. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  71. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  72. package/api/resources/patientPayments/resources/v4/client/Client.js +9 -6
  73. package/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +4 -0
  74. package/api/resources/patientRefunds/resources/v1/client/Client.js +9 -6
  75. package/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +4 -0
  76. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  77. package/api/resources/serviceFacility/client/Client.d.ts +18 -0
  78. package/api/resources/serviceFacility/client/Client.js +83 -0
  79. package/api/resources/serviceFacility/client/index.d.ts +2 -0
  80. package/api/resources/serviceFacility/client/index.js +31 -0
  81. package/api/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.d.ts +18 -0
  82. package/api/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.js +5 -0
  83. package/api/resources/serviceFacility/client/requests/index.d.ts +1 -0
  84. package/api/resources/serviceFacility/client/requests/index.js +2 -0
  85. package/api/resources/serviceFacility/client/update.d.ts +22 -0
  86. package/api/resources/serviceFacility/client/update.js +47 -0
  87. package/api/resources/serviceFacility/index.d.ts +1 -0
  88. package/api/resources/serviceFacility/index.js +1 -0
  89. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  90. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  91. package/api/resources/x12/resources/v1/types/Carc.d.ts +2 -1
  92. package/api/resources/x12/resources/v1/types/Carc.js +1 -0
  93. package/dist/Client.d.ts +6 -0
  94. package/dist/Client.js +26 -16
  95. package/dist/api/resources/auth/resources/v2/client/Client.d.ts +1 -1
  96. package/dist/api/resources/auth/resources/v2/client/Client.js +2 -2
  97. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  98. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  99. package/dist/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  100. package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
  101. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  102. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  103. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  104. package/dist/api/resources/financials/types/AllocationCreate.d.ts +5 -0
  105. package/dist/api/resources/financials/types/AllocationTarget.d.ts +8 -6
  106. package/dist/api/resources/financials/types/AllocationTargetCreate.d.ts +5 -0
  107. package/dist/api/resources/financials/types/BillingProviderAllocationTarget.d.ts +7 -0
  108. package/dist/api/resources/financials/types/BillingProviderAllocationTarget.js +5 -0
  109. package/dist/api/resources/financials/types/ClaimAllocationTarget.d.ts +8 -0
  110. package/dist/api/resources/financials/types/ClaimAllocationTarget.js +5 -0
  111. package/dist/api/resources/financials/types/ServiceLineAllocationTarget.d.ts +9 -0
  112. package/dist/api/resources/financials/types/ServiceLineAllocationTarget.js +5 -0
  113. package/dist/api/resources/financials/types/index.d.ts +3 -0
  114. package/dist/api/resources/financials/types/index.js +3 -0
  115. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  116. package/dist/api/resources/index.d.ts +2 -0
  117. package/dist/api/resources/index.js +3 -1
  118. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  119. package/dist/api/resources/insurancePayments/client/Client.d.ts +18 -0
  120. package/dist/api/resources/insurancePayments/client/Client.js +18 -0
  121. package/dist/api/resources/insurancePayments/client/index.d.ts +1 -0
  122. package/dist/api/resources/insurancePayments/client/index.js +2 -0
  123. package/dist/api/resources/insurancePayments/index.d.ts +2 -0
  124. package/dist/api/resources/insurancePayments/index.js +18 -0
  125. package/dist/api/resources/insurancePayments/resources/index.d.ts +1 -0
  126. package/dist/api/resources/insurancePayments/resources/index.js +27 -0
  127. package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +48 -0
  128. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +325 -0
  129. package/dist/api/resources/insurancePayments/resources/v1/client/create.d.ts +28 -0
  130. package/dist/api/resources/insurancePayments/resources/v1/client/create.js +58 -0
  131. package/dist/api/resources/insurancePayments/resources/v1/client/delete.d.ts +34 -0
  132. package/dist/api/resources/insurancePayments/resources/v1/client/delete.js +69 -0
  133. package/dist/api/resources/insurancePayments/resources/v1/client/get.d.ts +34 -0
  134. package/dist/api/resources/insurancePayments/resources/v1/client/get.js +69 -0
  135. package/dist/api/resources/insurancePayments/resources/v1/client/getMulti.d.ts +34 -0
  136. package/dist/api/resources/insurancePayments/resources/v1/client/getMulti.js +69 -0
  137. package/dist/api/resources/insurancePayments/resources/v1/client/index.d.ts +6 -0
  138. package/dist/api/resources/insurancePayments/resources/v1/client/index.js +35 -0
  139. package/dist/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +23 -0
  140. package/dist/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.js +5 -0
  141. package/dist/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +8 -0
  142. package/dist/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js +5 -0
  143. package/dist/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +2 -0
  144. package/dist/api/resources/insurancePayments/resources/v1/client/requests/index.js +2 -0
  145. package/dist/api/resources/insurancePayments/resources/v1/client/update.d.ts +34 -0
  146. package/dist/api/resources/insurancePayments/resources/v1/client/update.js +69 -0
  147. package/dist/api/resources/insurancePayments/resources/v1/index.d.ts +2 -0
  148. package/dist/api/resources/insurancePayments/resources/v1/index.js +18 -0
  149. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePayment.d.ts +12 -0
  150. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePayment.js +5 -0
  151. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +11 -0
  152. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js +5 -0
  153. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentId.d.ts +8 -0
  154. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentId.js +10 -0
  155. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.d.ts +9 -0
  156. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.js +11 -0
  157. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.d.ts +7 -0
  158. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.js +5 -0
  159. package/dist/api/resources/insurancePayments/resources/v1/types/index.d.ts +5 -0
  160. package/dist/api/resources/insurancePayments/resources/v1/types/index.js +21 -0
  161. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  162. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  163. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  164. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +9 -6
  165. package/dist/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +4 -0
  166. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +9 -6
  167. package/dist/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +4 -0
  168. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  169. package/dist/api/resources/serviceFacility/client/Client.d.ts +18 -0
  170. package/dist/api/resources/serviceFacility/client/Client.js +83 -0
  171. package/dist/api/resources/serviceFacility/client/index.d.ts +2 -0
  172. package/dist/api/resources/serviceFacility/client/index.js +31 -0
  173. package/dist/api/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.d.ts +18 -0
  174. package/dist/api/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.js +5 -0
  175. package/dist/api/resources/serviceFacility/client/requests/index.d.ts +1 -0
  176. package/dist/api/resources/serviceFacility/client/requests/index.js +2 -0
  177. package/dist/api/resources/serviceFacility/client/update.d.ts +22 -0
  178. package/dist/api/resources/serviceFacility/client/update.js +47 -0
  179. package/dist/api/resources/serviceFacility/index.d.ts +1 -0
  180. package/dist/api/resources/serviceFacility/index.js +1 -0
  181. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  182. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  183. package/dist/api/resources/x12/resources/v1/types/Carc.d.ts +2 -1
  184. package/dist/api/resources/x12/resources/v1/types/Carc.js +1 -0
  185. package/dist/serialization/resources/financials/types/AllocationTarget.d.ts +3 -6
  186. package/dist/serialization/resources/financials/types/AllocationTarget.js +3 -9
  187. package/dist/serialization/resources/financials/types/BillingProviderAllocationTarget.d.ts +12 -0
  188. package/dist/serialization/resources/financials/types/BillingProviderAllocationTarget.js +33 -0
  189. package/dist/serialization/resources/financials/types/ClaimAllocationTarget.d.ts +13 -0
  190. package/dist/serialization/resources/financials/types/ClaimAllocationTarget.js +34 -0
  191. package/dist/serialization/resources/financials/types/ServiceLineAllocationTarget.d.ts +14 -0
  192. package/dist/serialization/resources/financials/types/ServiceLineAllocationTarget.js +35 -0
  193. package/dist/serialization/resources/financials/types/index.d.ts +3 -0
  194. package/dist/serialization/resources/financials/types/index.js +3 -0
  195. package/dist/serialization/resources/index.d.ts +2 -0
  196. package/dist/serialization/resources/index.js +3 -1
  197. package/dist/serialization/resources/insurancePayments/index.d.ts +1 -0
  198. package/dist/serialization/resources/insurancePayments/index.js +17 -0
  199. package/dist/serialization/resources/insurancePayments/resources/index.d.ts +1 -0
  200. package/dist/serialization/resources/insurancePayments/resources/index.js +27 -0
  201. package/dist/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +14 -0
  202. package/dist/serialization/resources/insurancePayments/resources/v1/client/create.js +46 -0
  203. package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +18 -0
  204. package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.js +51 -0
  205. package/dist/serialization/resources/insurancePayments/resources/v1/client/get.d.ts +18 -0
  206. package/dist/serialization/resources/insurancePayments/resources/v1/client/get.js +51 -0
  207. package/dist/serialization/resources/insurancePayments/resources/v1/client/getMulti.d.ts +18 -0
  208. package/dist/serialization/resources/insurancePayments/resources/v1/client/getMulti.js +51 -0
  209. package/dist/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +6 -0
  210. package/dist/serialization/resources/insurancePayments/resources/v1/client/index.js +35 -0
  211. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +13 -0
  212. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js +34 -0
  213. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/index.d.ts +1 -0
  214. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/index.js +5 -0
  215. package/dist/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +18 -0
  216. package/dist/serialization/resources/insurancePayments/resources/v1/client/update.js +51 -0
  217. package/dist/serialization/resources/insurancePayments/resources/v1/index.d.ts +2 -0
  218. package/dist/serialization/resources/insurancePayments/resources/v1/index.js +18 -0
  219. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePayment.d.ts +17 -0
  220. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePayment.js +38 -0
  221. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +16 -0
  222. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js +37 -0
  223. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentId.d.ts +10 -0
  224. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentId.js +35 -0
  225. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.d.ts +10 -0
  226. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.js +31 -0
  227. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.d.ts +12 -0
  228. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.js +35 -0
  229. package/dist/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +5 -0
  230. package/dist/serialization/resources/insurancePayments/resources/v1/types/index.js +21 -0
  231. package/dist/serialization/resources/serviceFacility/client/index.d.ts +1 -0
  232. package/dist/serialization/resources/serviceFacility/client/index.js +17 -0
  233. package/dist/serialization/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.d.ts +14 -0
  234. package/dist/serialization/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.js +35 -0
  235. package/dist/serialization/resources/serviceFacility/client/requests/index.d.ts +1 -0
  236. package/dist/serialization/resources/serviceFacility/client/requests/index.js +5 -0
  237. package/dist/serialization/resources/serviceFacility/index.d.ts +1 -0
  238. package/dist/serialization/resources/serviceFacility/index.js +1 -0
  239. package/dist/serialization/resources/x12/resources/v1/types/Carc.d.ts +1 -1
  240. package/dist/serialization/resources/x12/resources/v1/types/Carc.js +1 -0
  241. package/package.json +1 -1
  242. package/serialization/resources/financials/types/AllocationTarget.d.ts +3 -6
  243. package/serialization/resources/financials/types/AllocationTarget.js +3 -9
  244. package/serialization/resources/financials/types/BillingProviderAllocationTarget.d.ts +12 -0
  245. package/serialization/resources/financials/types/BillingProviderAllocationTarget.js +33 -0
  246. package/serialization/resources/financials/types/ClaimAllocationTarget.d.ts +13 -0
  247. package/serialization/resources/financials/types/ClaimAllocationTarget.js +34 -0
  248. package/serialization/resources/financials/types/ServiceLineAllocationTarget.d.ts +14 -0
  249. package/serialization/resources/financials/types/ServiceLineAllocationTarget.js +35 -0
  250. package/serialization/resources/financials/types/index.d.ts +3 -0
  251. package/serialization/resources/financials/types/index.js +3 -0
  252. package/serialization/resources/index.d.ts +2 -0
  253. package/serialization/resources/index.js +3 -1
  254. package/serialization/resources/insurancePayments/index.d.ts +1 -0
  255. package/serialization/resources/insurancePayments/index.js +17 -0
  256. package/serialization/resources/insurancePayments/resources/index.d.ts +1 -0
  257. package/serialization/resources/insurancePayments/resources/index.js +27 -0
  258. package/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +14 -0
  259. package/serialization/resources/insurancePayments/resources/v1/client/create.js +46 -0
  260. package/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +18 -0
  261. package/serialization/resources/insurancePayments/resources/v1/client/delete.js +51 -0
  262. package/serialization/resources/insurancePayments/resources/v1/client/get.d.ts +18 -0
  263. package/serialization/resources/insurancePayments/resources/v1/client/get.js +51 -0
  264. package/serialization/resources/insurancePayments/resources/v1/client/getMulti.d.ts +18 -0
  265. package/serialization/resources/insurancePayments/resources/v1/client/getMulti.js +51 -0
  266. package/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +6 -0
  267. package/serialization/resources/insurancePayments/resources/v1/client/index.js +35 -0
  268. package/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +13 -0
  269. package/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js +34 -0
  270. package/serialization/resources/insurancePayments/resources/v1/client/requests/index.d.ts +1 -0
  271. package/serialization/resources/insurancePayments/resources/v1/client/requests/index.js +5 -0
  272. package/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +18 -0
  273. package/serialization/resources/insurancePayments/resources/v1/client/update.js +51 -0
  274. package/serialization/resources/insurancePayments/resources/v1/index.d.ts +2 -0
  275. package/serialization/resources/insurancePayments/resources/v1/index.js +18 -0
  276. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePayment.d.ts +17 -0
  277. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePayment.js +38 -0
  278. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +16 -0
  279. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js +37 -0
  280. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentId.d.ts +10 -0
  281. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentId.js +35 -0
  282. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.d.ts +10 -0
  283. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.js +31 -0
  284. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.d.ts +12 -0
  285. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.js +35 -0
  286. package/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +5 -0
  287. package/serialization/resources/insurancePayments/resources/v1/types/index.js +21 -0
  288. package/serialization/resources/serviceFacility/client/index.d.ts +1 -0
  289. package/serialization/resources/serviceFacility/client/index.js +17 -0
  290. package/serialization/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.d.ts +14 -0
  291. package/serialization/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.js +35 -0
  292. package/serialization/resources/serviceFacility/client/requests/index.d.ts +1 -0
  293. package/serialization/resources/serviceFacility/client/requests/index.js +5 -0
  294. package/serialization/resources/serviceFacility/index.d.ts +1 -0
  295. package/serialization/resources/serviceFacility/index.js +1 -0
  296. package/serialization/resources/x12/resources/v1/types/Carc.d.ts +1 -1
  297. package/serialization/resources/x12/resources/v1/types/Carc.js +1 -0
@@ -47,7 +47,7 @@ class V1 {
47
47
  *
48
48
  */
49
49
  async getMulti(request = {}) {
50
- const { limit, patientExternalId, claimId, serviceLineId, billingProviderId, invoiceId, sources, sort, sortDirection, pageToken, } = request;
50
+ const { limit, patientExternalId, claimId, serviceLineId, billingProviderId, unattributed, invoiceId, sources, sort, sortDirection, pageToken, } = request;
51
51
  const _queryParams = new url_search_params_1.default();
52
52
  if (limit != null) {
53
53
  _queryParams.append("limit", limit.toString());
@@ -64,6 +64,9 @@ class V1 {
64
64
  if (billingProviderId != null) {
65
65
  _queryParams.append("billing_provider_id", billingProviderId);
66
66
  }
67
+ if (unattributed != null) {
68
+ _queryParams.append("unattributed", unattributed.toString());
69
+ }
67
70
  if (invoiceId != null) {
68
71
  _queryParams.append("invoice_id", invoiceId);
69
72
  }
@@ -93,7 +96,7 @@ class V1 {
93
96
  Authorization: await this._getAuthorizationHeader(),
94
97
  "X-Fern-Language": "JavaScript",
95
98
  "X-Fern-SDK-Name": "candidhealth",
96
- "X-Fern-SDK-Version": "0.14.4",
99
+ "X-Fern-SDK-Version": "0.16.0",
97
100
  },
98
101
  contentType: "application/json",
99
102
  queryParameters: _queryParams,
@@ -127,7 +130,7 @@ class V1 {
127
130
  Authorization: await this._getAuthorizationHeader(),
128
131
  "X-Fern-Language": "JavaScript",
129
132
  "X-Fern-SDK-Name": "candidhealth",
130
- "X-Fern-SDK-Version": "0.14.4",
133
+ "X-Fern-SDK-Version": "0.16.0",
131
134
  },
132
135
  contentType: "application/json",
133
136
  timeoutMs: 60000,
@@ -162,7 +165,7 @@ class V1 {
162
165
  Authorization: await this._getAuthorizationHeader(),
163
166
  "X-Fern-Language": "JavaScript",
164
167
  "X-Fern-SDK-Name": "candidhealth",
165
- "X-Fern-SDK-Version": "0.14.4",
168
+ "X-Fern-SDK-Version": "0.16.0",
166
169
  },
167
170
  contentType: "application/json",
168
171
  body: await serializers.patientRefunds.v1.PatientRefundCreate.jsonOrThrow(request, {
@@ -198,7 +201,7 @@ class V1 {
198
201
  Authorization: await this._getAuthorizationHeader(),
199
202
  "X-Fern-Language": "JavaScript",
200
203
  "X-Fern-SDK-Name": "candidhealth",
201
- "X-Fern-SDK-Version": "0.14.4",
204
+ "X-Fern-SDK-Version": "0.16.0",
202
205
  },
203
206
  contentType: "application/json",
204
207
  body: await serializers.patientRefunds.v1.PatientRefundUpdate.jsonOrThrow(request, {
@@ -234,7 +237,7 @@ class V1 {
234
237
  Authorization: await this._getAuthorizationHeader(),
235
238
  "X-Fern-Language": "JavaScript",
236
239
  "X-Fern-SDK-Name": "candidhealth",
237
- "X-Fern-SDK-Version": "0.14.4",
240
+ "X-Fern-SDK-Version": "0.16.0",
238
241
  },
239
242
  contentType: "application/json",
240
243
  timeoutMs: 60000,
@@ -11,6 +11,10 @@ export interface GetMultiPatientRefundsRequest {
11
11
  claimId?: CandidApi.ClaimId;
12
12
  serviceLineId?: CandidApi.ServiceLineId;
13
13
  billingProviderId?: CandidApi.ProviderId;
14
+ /**
15
+ * returns payments with unattributed allocations if set to true
16
+ */
17
+ unattributed?: boolean;
14
18
  invoiceId?: CandidApi.InvoiceId;
15
19
  sources?: CandidApi.PatientTransactionSource | CandidApi.PatientTransactionSource[];
16
20
  /**
@@ -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.14.4",
52
+ "X-Fern-SDK-Version": "0.16.0",
53
53
  },
54
54
  contentType: "application/json",
55
55
  timeoutMs: 60000,
@@ -89,7 +89,7 @@ class V3 {
89
89
  Authorization: await this._getAuthorizationHeader(),
90
90
  "X-Fern-Language": "JavaScript",
91
91
  "X-Fern-SDK-Name": "candidhealth",
92
- "X-Fern-SDK-Version": "0.14.4",
92
+ "X-Fern-SDK-Version": "0.16.0",
93
93
  },
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
@@ -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 * as CandidApi from "../../..";
7
+ export declare namespace ServiceFacility {
8
+ interface Options {
9
+ environment?: environments.CandidApiEnvironment | string;
10
+ token?: core.Supplier<core.BearerToken | undefined>;
11
+ }
12
+ }
13
+ export declare class ServiceFacility {
14
+ protected readonly options: ServiceFacility.Options;
15
+ constructor(options: ServiceFacility.Options);
16
+ update(serviceFacilityId: CandidApi.ServiceFacilityId, request?: CandidApi.EncounterServiceFacilityUpdate): Promise<core.APIResponse<CandidApi.EncounterServiceFacility, CandidApi.serviceFacility.update.Error>>;
17
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
18
+ }
@@ -0,0 +1,83 @@
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.ServiceFacility = 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 ServiceFacility {
39
+ options;
40
+ constructor(options) {
41
+ this.options = options;
42
+ }
43
+ async update(serviceFacilityId, request = {}) {
44
+ const _response = await core.fetcher({
45
+ url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/service_facility/v2/${await serializers.ServiceFacilityId.jsonOrThrow(serviceFacilityId)}`),
46
+ method: "PATCH",
47
+ headers: {
48
+ Authorization: await this._getAuthorizationHeader(),
49
+ "X-Fern-Language": "JavaScript",
50
+ "X-Fern-SDK-Name": "candidhealth",
51
+ "X-Fern-SDK-Version": "0.16.0",
52
+ },
53
+ contentType: "application/json",
54
+ body: await serializers.EncounterServiceFacilityUpdate.jsonOrThrow(request, {
55
+ unrecognizedObjectKeys: "strip",
56
+ }),
57
+ timeoutMs: 60000,
58
+ });
59
+ if (_response.ok) {
60
+ return {
61
+ ok: true,
62
+ body: await serializers.EncounterServiceFacility.parseOrThrow(_response.body, {
63
+ unrecognizedObjectKeys: "passthrough",
64
+ allowUnrecognizedUnionMembers: true,
65
+ allowUnrecognizedEnumValues: true,
66
+ breadcrumbsPrefix: ["response"],
67
+ }),
68
+ };
69
+ }
70
+ return {
71
+ ok: false,
72
+ error: CandidApi.serviceFacility.update.Error._unknown(_response.error),
73
+ };
74
+ }
75
+ async _getAuthorizationHeader() {
76
+ const bearer = await core.Supplier.get(this.options.token);
77
+ if (bearer != null) {
78
+ return `Bearer ${bearer}`;
79
+ }
80
+ return undefined;
81
+ }
82
+ }
83
+ exports.ServiceFacility = ServiceFacility;
@@ -0,0 +1,2 @@
1
+ export * from "./requests";
2
+ export * as update from "./update";
@@ -0,0 +1,31 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
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.update = void 0;
30
+ __exportStar(require("./requests"), exports);
31
+ exports.update = __importStar(require("./update"));
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../..";
5
+ export interface EncounterServiceFacilityUpdate {
6
+ organizationName?: string;
7
+ /**
8
+ * An NPI specific to the service facility if applicable, i.e. if it has one and is not under the billing provider's NPI.
9
+ * Box 32 section (a) of the CMS-1500 claim form.
10
+ *
11
+ */
12
+ npi?: string;
13
+ /**
14
+ * zip_plus_four_code is required for service facility address. When the zip_plus_four_code is not available use "9998" as per CMS documentation.
15
+ *
16
+ */
17
+ address?: CandidApi.StreetAddressLongZip;
18
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { EncounterServiceFacilityUpdate } from "./EncounterServiceFacilityUpdate";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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.serviceFacility.update.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.serviceFacility.update.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.serviceFacility.update.Error._Unknown;
21
+ readonly _visit: <_Result>(value: CandidApi.serviceFacility.update.Error, visitor: CandidApi.serviceFacility.update.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.serviceFacility.update.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
+ };
@@ -1 +1,2 @@
1
1
  export * from "./types";
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("./types"), exports);
18
+ __exportStar(require("./client"), 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.14.4",
52
+ "X-Fern-SDK-Version": "0.16.0",
53
53
  },
54
54
  contentType: "application/json",
55
55
  timeoutMs: 60000,
@@ -119,7 +119,7 @@ class V3 {
119
119
  Authorization: await this._getAuthorizationHeader(),
120
120
  "X-Fern-Language": "JavaScript",
121
121
  "X-Fern-SDK-Name": "candidhealth",
122
- "X-Fern-SDK-Version": "0.14.4",
122
+ "X-Fern-SDK-Version": "0.16.0",
123
123
  },
124
124
  contentType: "application/json",
125
125
  queryParameters: _queryParams,
@@ -163,7 +163,7 @@ class V3 {
163
163
  Authorization: await this._getAuthorizationHeader(),
164
164
  "X-Fern-Language": "JavaScript",
165
165
  "X-Fern-SDK-Name": "candidhealth",
166
- "X-Fern-SDK-Version": "0.14.4",
166
+ "X-Fern-SDK-Version": "0.16.0",
167
167
  },
168
168
  contentType: "application/json",
169
169
  timeoutMs: 60000,
@@ -207,7 +207,7 @@ class V3 {
207
207
  Authorization: await this._getAuthorizationHeader(),
208
208
  "X-Fern-Language": "JavaScript",
209
209
  "X-Fern-SDK-Name": "candidhealth",
210
- "X-Fern-SDK-Version": "0.14.4",
210
+ "X-Fern-SDK-Version": "0.16.0",
211
211
  },
212
212
  contentType: "application/json",
213
213
  body: await serializers.tasks.v3.TaskCreateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -237,7 +237,7 @@ class V3 {
237
237
  Authorization: await this._getAuthorizationHeader(),
238
238
  "X-Fern-Language": "JavaScript",
239
239
  "X-Fern-SDK-Name": "candidhealth",
240
- "X-Fern-SDK-Version": "0.14.4",
240
+ "X-Fern-SDK-Version": "0.16.0",
241
241
  },
242
242
  contentType: "application/json",
243
243
  body: await serializers.tasks.v3.TaskUpdateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -92,7 +92,7 @@ class V1 {
92
92
  Authorization: await this._getAuthorizationHeader(),
93
93
  "X-Fern-Language": "JavaScript",
94
94
  "X-Fern-SDK-Name": "candidhealth",
95
- "X-Fern-SDK-Version": "0.14.4",
95
+ "X-Fern-SDK-Version": "0.16.0",
96
96
  },
97
97
  contentType: "application/json",
98
98
  queryParameters: _queryParams,
@@ -126,7 +126,7 @@ class V1 {
126
126
  Authorization: await this._getAuthorizationHeader(),
127
127
  "X-Fern-Language": "JavaScript",
128
128
  "X-Fern-SDK-Name": "candidhealth",
129
- "X-Fern-SDK-Version": "0.14.4",
129
+ "X-Fern-SDK-Version": "0.16.0",
130
130
  },
131
131
  contentType: "application/json",
132
132
  timeoutMs: 60000,
@@ -161,7 +161,7 @@ class V1 {
161
161
  Authorization: await this._getAuthorizationHeader(),
162
162
  "X-Fern-Language": "JavaScript",
163
163
  "X-Fern-SDK-Name": "candidhealth",
164
- "X-Fern-SDK-Version": "0.14.4",
164
+ "X-Fern-SDK-Version": "0.16.0",
165
165
  },
166
166
  contentType: "application/json",
167
167
  body: await serializers.writeOffs.v1.CreateWriteOffsRequest.jsonOrThrow(request, {
@@ -197,7 +197,7 @@ class V1 {
197
197
  Authorization: await this._getAuthorizationHeader(),
198
198
  "X-Fern-Language": "JavaScript",
199
199
  "X-Fern-SDK-Name": "candidhealth",
200
- "X-Fern-SDK-Version": "0.14.4",
200
+ "X-Fern-SDK-Version": "0.16.0",
201
201
  },
202
202
  contentType: "application/json",
203
203
  timeoutMs: 60000,
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type Carc = "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "16" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "26" | "27" | "29" | "31" | "32" | "33" | "34" | "35" | "39" | "40" | "44" | "45" | "49" | "50" | "51" | "53" | "54" | "55" | "56" | "58" | "59" | "60" | "61" | "66" | "69" | "70" | "74" | "75" | "76" | "78" | "85" | "89" | "90" | "91" | "94" | "95" | "96" | "97" | "100" | "101" | "102" | "103" | "104" | "105" | "106" | "107" | "108" | "109" | "110" | "111" | "112" | "114" | "115" | "116" | "117" | "118" | "119" | "121" | "122" | "128" | "129" | "130" | "131" | "132" | "133" | "134" | "135" | "136" | "137" | "139" | "140" | "142" | "143" | "144" | "146" | "147" | "148" | "149" | "150" | "151" | "152" | "153" | "154" | "155" | "157" | "158" | "159" | "160" | "161" | "163" | "164" | "166" | "167" | "169" | "170" | "171" | "172" | "173" | "174" | "175" | "176" | "177" | "178" | "179" | "180" | "181" | "182" | "183" | "184" | "185" | "186" | "187" | "188" | "189" | "190" | "192" | "193" | "194" | "195" | "197" | "198" | "199" | "200" | "201" | "202" | "203" | "204" | "205" | "206" | "207" | "208" | "209" | "210" | "211" | "212" | "213" | "215" | "216" | "219" | "222" | "223" | "224" | "225" | "226" | "227" | "228" | "229" | "231" | "232" | "233" | "234" | "235" | "236" | "237" | "238" | "239" | "240" | "241" | "242" | "243" | "245" | "246" | "247" | "248" | "249" | "250" | "251" | "252" | "253" | "254" | "256" | "257" | "258" | "259" | "260" | "261" | "262" | "263" | "264" | "265" | "266" | "267" | "268" | "269" | "270" | "271" | "272" | "273" | "274" | "275" | "276" | "277" | "278" | "279" | "280" | "281" | "282" | "283" | "284" | "285" | "286" | "287" | "288" | "289" | "290" | "291" | "292" | "293" | "294" | "295" | "296" | "297" | "298" | "299" | "300" | "301" | "302" | "303" | "304" | "305" | "A0" | "A1" | "A5" | "A6" | "A8" | "B1" | "B4" | "B7" | "B8" | "B9" | "B10" | "B11" | "B12" | "B13" | "B14" | "B15" | "B16" | "B20" | "B22" | "B23" | "P1" | "P2" | "P3" | "P4" | "P5" | "P6" | "P7" | "P8" | "P9" | "P10" | "P11" | "P12" | "P13" | "P14" | "P15" | "P16" | "P17" | "P18" | "P19" | "P20" | "P21" | "P22" | "P23" | "P24" | "P25" | "P26" | "P27" | "P28" | "P29" | "P30" | "P31" | "P32";
4
+ export declare type Carc = "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "16" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "26" | "27" | "29" | "31" | "32" | "33" | "34" | "35" | "39" | "40" | "44" | "45" | "49" | "50" | "51" | "53" | "54" | "55" | "56" | "58" | "59" | "60" | "61" | "66" | "69" | "70" | "74" | "75" | "76" | "78" | "85" | "89" | "90" | "91" | "94" | "95" | "96" | "97" | "100" | "101" | "102" | "103" | "104" | "105" | "106" | "107" | "108" | "109" | "110" | "111" | "112" | "114" | "115" | "116" | "117" | "118" | "119" | "121" | "122" | "125" | "128" | "129" | "130" | "131" | "132" | "133" | "134" | "135" | "136" | "137" | "139" | "140" | "142" | "143" | "144" | "146" | "147" | "148" | "149" | "150" | "151" | "152" | "153" | "154" | "155" | "157" | "158" | "159" | "160" | "161" | "163" | "164" | "166" | "167" | "169" | "170" | "171" | "172" | "173" | "174" | "175" | "176" | "177" | "178" | "179" | "180" | "181" | "182" | "183" | "184" | "185" | "186" | "187" | "188" | "189" | "190" | "192" | "193" | "194" | "195" | "197" | "198" | "199" | "200" | "201" | "202" | "203" | "204" | "205" | "206" | "207" | "208" | "209" | "210" | "211" | "212" | "213" | "215" | "216" | "219" | "222" | "223" | "224" | "225" | "226" | "227" | "228" | "229" | "231" | "232" | "233" | "234" | "235" | "236" | "237" | "238" | "239" | "240" | "241" | "242" | "243" | "245" | "246" | "247" | "248" | "249" | "250" | "251" | "252" | "253" | "254" | "256" | "257" | "258" | "259" | "260" | "261" | "262" | "263" | "264" | "265" | "266" | "267" | "268" | "269" | "270" | "271" | "272" | "273" | "274" | "275" | "276" | "277" | "278" | "279" | "280" | "281" | "282" | "283" | "284" | "285" | "286" | "287" | "288" | "289" | "290" | "291" | "292" | "293" | "294" | "295" | "296" | "297" | "298" | "299" | "300" | "301" | "302" | "303" | "304" | "305" | "A0" | "A1" | "A5" | "A6" | "A8" | "B1" | "B4" | "B7" | "B8" | "B9" | "B10" | "B11" | "B12" | "B13" | "B14" | "B15" | "B16" | "B20" | "B22" | "B23" | "P1" | "P2" | "P3" | "P4" | "P5" | "P6" | "P7" | "P8" | "P9" | "P10" | "P11" | "P12" | "P13" | "P14" | "P15" | "P16" | "P17" | "P18" | "P19" | "P20" | "P21" | "P22" | "P23" | "P24" | "P25" | "P26" | "P27" | "P28" | "P29" | "P30" | "P31" | "P32";
5
5
  export declare const Carc: {
6
6
  readonly Carc1: "1";
7
7
  readonly Carc2: "2";
@@ -84,6 +84,7 @@ export declare const Carc: {
84
84
  readonly Carc119: "119";
85
85
  readonly Carc121: "121";
86
86
  readonly Carc122: "122";
87
+ readonly Carc125: "125";
87
88
  readonly Carc128: "128";
88
89
  readonly Carc129: "129";
89
90
  readonly Carc130: "130";
@@ -86,6 +86,7 @@ exports.Carc = {
86
86
  Carc119: "119",
87
87
  Carc121: "121",
88
88
  Carc122: "122",
89
+ Carc125: "125",
89
90
  Carc128: "128",
90
91
  Carc129: "129",
91
92
  Carc130: "130",
@@ -7,17 +7,14 @@ import * as core from "../../../../core";
7
7
  export declare const AllocationTarget: core.serialization.Schema<serializers.AllocationTarget.Raw, CandidApi.AllocationTarget>;
8
8
  export declare namespace AllocationTarget {
9
9
  type Raw = AllocationTarget.ServiceLine | AllocationTarget.Claim | AllocationTarget.BillingProviderId | AllocationTarget.Unattributed;
10
- interface ServiceLine {
10
+ interface ServiceLine extends serializers.ServiceLineAllocationTarget.Raw {
11
11
  type: "service_line";
12
- value: serializers.ServiceLineId.Raw;
13
12
  }
14
- interface Claim {
13
+ interface Claim extends serializers.ClaimAllocationTarget.Raw {
15
14
  type: "claim";
16
- value: serializers.ClaimId.Raw;
17
15
  }
18
- interface BillingProviderId {
16
+ interface BillingProviderId extends serializers.BillingProviderAllocationTarget.Raw {
19
17
  type: "billing_provider_id";
20
- value: serializers.ProviderId.Raw;
21
18
  }
22
19
  interface Unattributed {
23
20
  type: "unattributed";
@@ -30,15 +30,9 @@ exports.AllocationTarget = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  exports.AllocationTarget = core.serialization
32
32
  .union("type", {
33
- service_line: core.serialization.object({
34
- value: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).ServiceLineId),
35
- }),
36
- claim: core.serialization.object({
37
- value: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).ClaimId),
38
- }),
39
- billing_provider_id: core.serialization.object({
40
- value: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).ProviderId),
41
- }),
33
+ service_line: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).ServiceLineAllocationTarget),
34
+ claim: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).ClaimAllocationTarget),
35
+ billing_provider_id: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).BillingProviderAllocationTarget),
42
36
  unattributed: core.serialization.object({}),
43
37
  })
44
38
  .transform({
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../..";
5
+ import * as CandidApi from "../../../../api";
6
+ import * as core from "../../../../core";
7
+ export declare const BillingProviderAllocationTarget: core.serialization.ObjectSchema<serializers.BillingProviderAllocationTarget.Raw, CandidApi.BillingProviderAllocationTarget>;
8
+ export declare namespace BillingProviderAllocationTarget {
9
+ interface Raw {
10
+ billing_provider_id: serializers.ProviderId.Raw;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
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.BillingProviderAllocationTarget = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.BillingProviderAllocationTarget = core.serialization.object({
32
+ billingProviderId: core.serialization.property("billing_provider_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).ProviderId)),
33
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../..";
5
+ import * as CandidApi from "../../../../api";
6
+ import * as core from "../../../../core";
7
+ export declare const ClaimAllocationTarget: core.serialization.ObjectSchema<serializers.ClaimAllocationTarget.Raw, CandidApi.ClaimAllocationTarget>;
8
+ export declare namespace ClaimAllocationTarget {
9
+ interface Raw {
10
+ claim_id: serializers.ClaimId.Raw;
11
+ encounter_id: serializers.EncounterId.Raw;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
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.ClaimAllocationTarget = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ClaimAllocationTarget = core.serialization.object({
32
+ claimId: core.serialization.property("claim_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).ClaimId)),
33
+ encounterId: core.serialization.property("encounter_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).EncounterId)),
34
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../..";
5
+ import * as CandidApi from "../../../../api";
6
+ import * as core from "../../../../core";
7
+ export declare const ServiceLineAllocationTarget: core.serialization.ObjectSchema<serializers.ServiceLineAllocationTarget.Raw, CandidApi.ServiceLineAllocationTarget>;
8
+ export declare namespace ServiceLineAllocationTarget {
9
+ interface Raw {
10
+ service_line_id: serializers.ServiceLineId.Raw;
11
+ claim_id: serializers.ClaimId.Raw;
12
+ encounter_id: serializers.EncounterId.Raw;
13
+ }
14
+ }