candidhealth 0.30.0 → 0.32.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 (290) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +37 -32
  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/contracts/resources/v2/client/Client.d.ts +8 -1
  6. package/api/resources/contracts/resources/v2/client/Client.js +13 -6
  7. package/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +8 -1
  8. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  9. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  10. package/api/resources/encounters/resources/v4/client/Client.d.ts +32 -50
  11. package/api/resources/encounters/resources/v4/client/Client.js +36 -54
  12. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +16 -50
  13. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +22 -2
  14. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +7 -0
  15. package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +7 -0
  16. package/api/resources/encounters/resources/v4/types/VitalsUpdate.d.ts +24 -0
  17. package/api/resources/encounters/resources/v4/types/VitalsUpdate.js +5 -0
  18. package/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
  19. package/api/resources/encounters/resources/v4/types/index.js +1 -0
  20. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  21. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +22 -2
  22. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +24 -4
  23. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  24. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  25. package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +1 -1
  26. package/api/resources/feeSchedules/resources/v3/client/Client.js +11 -11
  27. package/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +1 -1
  28. package/api/resources/feeSchedules/resources/v3/types/RateEntry.d.ts +1 -1
  29. package/api/resources/financials/types/AllocationTargetCreate.d.ts +3 -4
  30. package/api/resources/financials/types/AppointmentAllocationTarget.d.ts +1 -0
  31. package/api/resources/financials/types/AppointmentByIdAndPatientExternalId.d.ts +8 -0
  32. package/api/resources/financials/types/AppointmentByIdAndPatientExternalId.js +5 -0
  33. package/api/resources/financials/types/index.d.ts +1 -0
  34. package/api/resources/financials/types/index.js +1 -0
  35. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  36. package/api/resources/importInvoice/resources/v1/client/Client.d.ts +14 -2
  37. package/api/resources/importInvoice/resources/v1/client/Client.js +34 -7
  38. package/api/resources/importInvoice/resources/v1/client/importInvoice.d.ts +13 -1
  39. package/api/resources/importInvoice/resources/v1/client/importInvoice.js +22 -0
  40. package/api/resources/index.d.ts +1 -0
  41. package/api/resources/index.js +2 -1
  42. package/api/resources/individual/types/Patient.d.ts +8 -0
  43. package/api/resources/individual/types/PatientCreate.d.ts +1 -0
  44. package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +27 -2
  45. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +30 -5
  46. package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +7 -1
  47. package/api/resources/insurancePayments/resources/v1/client/Client.js +12 -6
  48. package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +7 -1
  49. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +12 -6
  50. package/api/resources/medicationDispense/client/Client.d.ts +26 -0
  51. package/api/resources/medicationDispense/client/Client.js +17 -0
  52. package/api/resources/medicationDispense/client/index.d.ts +1 -0
  53. package/api/resources/medicationDispense/client/index.js +2 -0
  54. package/api/resources/medicationDispense/index.d.ts +2 -0
  55. package/api/resources/medicationDispense/index.js +18 -0
  56. package/api/resources/medicationDispense/resources/index.d.ts +1 -0
  57. package/api/resources/medicationDispense/resources/index.js +27 -0
  58. package/api/resources/medicationDispense/resources/v1/client/Client.d.ts +51 -0
  59. package/api/resources/medicationDispense/resources/v1/client/Client.js +145 -0
  60. package/api/resources/medicationDispense/resources/v1/client/create.d.ts +52 -0
  61. package/api/resources/medicationDispense/resources/v1/client/create.js +102 -0
  62. package/api/resources/medicationDispense/resources/v1/client/index.d.ts +1 -0
  63. package/api/resources/medicationDispense/resources/v1/client/index.js +27 -0
  64. package/api/resources/medicationDispense/resources/v1/index.d.ts +2 -0
  65. package/api/resources/medicationDispense/resources/v1/index.js +18 -0
  66. package/api/resources/medicationDispense/resources/v1/types/MedicationDispenseCreate.d.ts +15 -0
  67. package/api/resources/medicationDispense/resources/v1/types/MedicationDispenseCreate.js +5 -0
  68. package/api/resources/medicationDispense/resources/v1/types/index.d.ts +1 -0
  69. package/api/resources/medicationDispense/resources/v1/types/index.js +17 -0
  70. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.d.ts +7 -1
  71. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +12 -6
  72. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +7 -1
  73. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +12 -6
  74. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  75. package/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayer.d.ts +10 -0
  76. package/api/resources/organizationProviders/resources/v3/client/Client.d.ts +23 -2
  77. package/api/resources/organizationProviders/resources/v3/client/Client.js +27 -6
  78. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  79. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  80. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  81. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  82. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +144 -4
  83. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +150 -10
  84. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +54 -8
  85. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +62 -16
  86. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +456 -33
  87. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +465 -42
  88. package/api/resources/serviceFacility/client/Client.js +1 -1
  89. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +15 -2
  90. package/api/resources/serviceLines/resources/v2/client/Client.js +18 -5
  91. package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +1 -3
  92. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +0 -17
  93. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -0
  94. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  95. package/api/resources/thirdPartyPayerPayments/resources/v1/client/Client.d.ts +7 -1
  96. package/api/resources/thirdPartyPayerPayments/resources/v1/client/Client.js +12 -6
  97. package/api/resources/thirdPartyPayerRefunds/resources/v1/client/Client.d.ts +7 -1
  98. package/api/resources/thirdPartyPayerRefunds/resources/v1/client/Client.js +12 -6
  99. package/api/resources/thirdPartyPayers/resources/v1/client/Client.js +6 -6
  100. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  101. package/dist/Client.d.ts +3 -0
  102. package/dist/Client.js +37 -32
  103. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  104. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  105. package/dist/api/resources/contracts/resources/v2/client/Client.d.ts +8 -1
  106. package/dist/api/resources/contracts/resources/v2/client/Client.js +13 -6
  107. package/dist/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +8 -1
  108. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  109. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  110. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +32 -50
  111. package/dist/api/resources/encounters/resources/v4/client/Client.js +36 -54
  112. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +16 -50
  113. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +22 -2
  114. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +7 -0
  115. package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +7 -0
  116. package/dist/api/resources/encounters/resources/v4/types/VitalsUpdate.d.ts +24 -0
  117. package/dist/api/resources/encounters/resources/v4/types/VitalsUpdate.js +5 -0
  118. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
  119. package/dist/api/resources/encounters/resources/v4/types/index.js +1 -0
  120. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  121. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +22 -2
  122. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +24 -4
  123. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  124. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  125. package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +1 -1
  126. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +11 -11
  127. package/dist/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +1 -1
  128. package/dist/api/resources/feeSchedules/resources/v3/types/RateEntry.d.ts +1 -1
  129. package/dist/api/resources/financials/types/AllocationTargetCreate.d.ts +3 -4
  130. package/dist/api/resources/financials/types/AppointmentAllocationTarget.d.ts +1 -0
  131. package/dist/api/resources/financials/types/AppointmentByIdAndPatientExternalId.d.ts +8 -0
  132. package/dist/api/resources/financials/types/AppointmentByIdAndPatientExternalId.js +5 -0
  133. package/dist/api/resources/financials/types/index.d.ts +1 -0
  134. package/dist/api/resources/financials/types/index.js +1 -0
  135. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  136. package/dist/api/resources/importInvoice/resources/v1/client/Client.d.ts +14 -2
  137. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +34 -7
  138. package/dist/api/resources/importInvoice/resources/v1/client/importInvoice.d.ts +13 -1
  139. package/dist/api/resources/importInvoice/resources/v1/client/importInvoice.js +22 -0
  140. package/dist/api/resources/index.d.ts +1 -0
  141. package/dist/api/resources/index.js +2 -1
  142. package/dist/api/resources/individual/types/Patient.d.ts +8 -0
  143. package/dist/api/resources/individual/types/PatientCreate.d.ts +1 -0
  144. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +27 -2
  145. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +30 -5
  146. package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +7 -1
  147. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +12 -6
  148. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +7 -1
  149. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +12 -6
  150. package/dist/api/resources/medicationDispense/client/Client.d.ts +26 -0
  151. package/dist/api/resources/medicationDispense/client/Client.js +17 -0
  152. package/dist/api/resources/medicationDispense/client/index.d.ts +1 -0
  153. package/dist/api/resources/medicationDispense/client/index.js +2 -0
  154. package/dist/api/resources/medicationDispense/index.d.ts +2 -0
  155. package/dist/api/resources/medicationDispense/index.js +18 -0
  156. package/dist/api/resources/medicationDispense/resources/index.d.ts +1 -0
  157. package/dist/api/resources/medicationDispense/resources/index.js +27 -0
  158. package/dist/api/resources/medicationDispense/resources/v1/client/Client.d.ts +51 -0
  159. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +145 -0
  160. package/dist/api/resources/medicationDispense/resources/v1/client/create.d.ts +52 -0
  161. package/dist/api/resources/medicationDispense/resources/v1/client/create.js +102 -0
  162. package/dist/api/resources/medicationDispense/resources/v1/client/index.d.ts +1 -0
  163. package/dist/api/resources/medicationDispense/resources/v1/client/index.js +27 -0
  164. package/dist/api/resources/medicationDispense/resources/v1/index.d.ts +2 -0
  165. package/dist/api/resources/medicationDispense/resources/v1/index.js +18 -0
  166. package/dist/api/resources/medicationDispense/resources/v1/types/MedicationDispenseCreate.d.ts +15 -0
  167. package/dist/api/resources/medicationDispense/resources/v1/types/MedicationDispenseCreate.js +5 -0
  168. package/dist/api/resources/medicationDispense/resources/v1/types/index.d.ts +1 -0
  169. package/dist/api/resources/medicationDispense/resources/v1/types/index.js +17 -0
  170. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.d.ts +7 -1
  171. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +12 -6
  172. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +7 -1
  173. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +12 -6
  174. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  175. package/dist/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayer.d.ts +10 -0
  176. package/dist/api/resources/organizationProviders/resources/v3/client/Client.d.ts +23 -2
  177. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +27 -6
  178. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  179. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  180. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  181. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  182. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +144 -4
  183. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +150 -10
  184. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +54 -8
  185. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +62 -16
  186. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +456 -33
  187. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +465 -42
  188. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  189. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +15 -2
  190. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +18 -5
  191. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +1 -3
  192. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +0 -17
  193. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -0
  194. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  195. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/Client.d.ts +7 -1
  196. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/Client.js +12 -6
  197. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/Client.d.ts +7 -1
  198. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/Client.js +12 -6
  199. package/dist/api/resources/thirdPartyPayers/resources/v1/client/Client.js +6 -6
  200. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  201. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -0
  202. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +2 -0
  203. package/dist/serialization/resources/encounters/resources/v4/types/VitalsUpdate.d.ts +18 -0
  204. package/dist/serialization/resources/encounters/resources/v4/types/VitalsUpdate.js +39 -0
  205. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  206. package/dist/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  207. package/dist/serialization/resources/financials/types/AllocationTargetCreate.d.ts +4 -5
  208. package/dist/serialization/resources/financials/types/AllocationTargetCreate.js +2 -4
  209. package/dist/serialization/resources/financials/types/AppointmentAllocationTarget.d.ts +2 -0
  210. package/dist/serialization/resources/financials/types/AppointmentAllocationTarget.js +2 -0
  211. package/dist/serialization/resources/financials/types/AppointmentByIdAndPatientExternalId.d.ts +15 -0
  212. package/dist/serialization/resources/financials/types/AppointmentByIdAndPatientExternalId.js +36 -0
  213. package/dist/serialization/resources/financials/types/index.d.ts +1 -0
  214. package/dist/serialization/resources/financials/types/index.js +1 -0
  215. package/dist/serialization/resources/importInvoice/resources/v1/client/importInvoice.d.ts +20 -0
  216. package/dist/serialization/resources/importInvoice/resources/v1/client/importInvoice.js +67 -0
  217. package/dist/serialization/resources/importInvoice/resources/v1/client/index.d.ts +1 -0
  218. package/dist/serialization/resources/importInvoice/resources/v1/client/index.js +2 -1
  219. package/dist/serialization/resources/index.d.ts +1 -0
  220. package/dist/serialization/resources/index.js +2 -1
  221. package/dist/serialization/resources/individual/types/Patient.d.ts +2 -0
  222. package/dist/serialization/resources/individual/types/Patient.js +2 -0
  223. package/dist/serialization/resources/individual/types/PatientCreate.d.ts +2 -0
  224. package/dist/serialization/resources/individual/types/PatientCreate.js +2 -0
  225. package/dist/serialization/resources/medicationDispense/index.d.ts +1 -0
  226. package/dist/serialization/resources/medicationDispense/index.js +17 -0
  227. package/dist/serialization/resources/medicationDispense/resources/index.d.ts +1 -0
  228. package/dist/serialization/resources/medicationDispense/resources/index.js +27 -0
  229. package/dist/serialization/resources/medicationDispense/resources/v1/client/create.d.ts +35 -0
  230. package/dist/serialization/resources/medicationDispense/resources/v1/client/create.js +85 -0
  231. package/dist/serialization/resources/medicationDispense/resources/v1/client/index.d.ts +1 -0
  232. package/dist/serialization/resources/medicationDispense/resources/v1/client/index.js +27 -0
  233. package/dist/serialization/resources/medicationDispense/resources/v1/index.d.ts +2 -0
  234. package/dist/serialization/resources/medicationDispense/resources/v1/index.js +18 -0
  235. package/dist/serialization/resources/medicationDispense/resources/v1/types/MedicationDispenseCreate.d.ts +24 -0
  236. package/dist/serialization/resources/medicationDispense/resources/v1/types/MedicationDispenseCreate.js +45 -0
  237. package/dist/serialization/resources/medicationDispense/resources/v1/types/index.d.ts +1 -0
  238. package/dist/serialization/resources/medicationDispense/resources/v1/types/index.js +17 -0
  239. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -3
  240. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -3
  241. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +0 -6
  242. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +0 -6
  243. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -0
  244. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +2 -0
  245. package/package.json +1 -1
  246. package/reference.md +994 -111
  247. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -0
  248. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +2 -0
  249. package/serialization/resources/encounters/resources/v4/types/VitalsUpdate.d.ts +18 -0
  250. package/serialization/resources/encounters/resources/v4/types/VitalsUpdate.js +39 -0
  251. package/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  252. package/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  253. package/serialization/resources/financials/types/AllocationTargetCreate.d.ts +4 -5
  254. package/serialization/resources/financials/types/AllocationTargetCreate.js +2 -4
  255. package/serialization/resources/financials/types/AppointmentAllocationTarget.d.ts +2 -0
  256. package/serialization/resources/financials/types/AppointmentAllocationTarget.js +2 -0
  257. package/serialization/resources/financials/types/AppointmentByIdAndPatientExternalId.d.ts +15 -0
  258. package/serialization/resources/financials/types/AppointmentByIdAndPatientExternalId.js +36 -0
  259. package/serialization/resources/financials/types/index.d.ts +1 -0
  260. package/serialization/resources/financials/types/index.js +1 -0
  261. package/serialization/resources/importInvoice/resources/v1/client/importInvoice.d.ts +20 -0
  262. package/serialization/resources/importInvoice/resources/v1/client/importInvoice.js +67 -0
  263. package/serialization/resources/importInvoice/resources/v1/client/index.d.ts +1 -0
  264. package/serialization/resources/importInvoice/resources/v1/client/index.js +2 -1
  265. package/serialization/resources/index.d.ts +1 -0
  266. package/serialization/resources/index.js +2 -1
  267. package/serialization/resources/individual/types/Patient.d.ts +2 -0
  268. package/serialization/resources/individual/types/Patient.js +2 -0
  269. package/serialization/resources/individual/types/PatientCreate.d.ts +2 -0
  270. package/serialization/resources/individual/types/PatientCreate.js +2 -0
  271. package/serialization/resources/medicationDispense/index.d.ts +1 -0
  272. package/serialization/resources/medicationDispense/index.js +17 -0
  273. package/serialization/resources/medicationDispense/resources/index.d.ts +1 -0
  274. package/serialization/resources/medicationDispense/resources/index.js +27 -0
  275. package/serialization/resources/medicationDispense/resources/v1/client/create.d.ts +35 -0
  276. package/serialization/resources/medicationDispense/resources/v1/client/create.js +85 -0
  277. package/serialization/resources/medicationDispense/resources/v1/client/index.d.ts +1 -0
  278. package/serialization/resources/medicationDispense/resources/v1/client/index.js +27 -0
  279. package/serialization/resources/medicationDispense/resources/v1/index.d.ts +2 -0
  280. package/serialization/resources/medicationDispense/resources/v1/index.js +18 -0
  281. package/serialization/resources/medicationDispense/resources/v1/types/MedicationDispenseCreate.d.ts +24 -0
  282. package/serialization/resources/medicationDispense/resources/v1/types/MedicationDispenseCreate.js +45 -0
  283. package/serialization/resources/medicationDispense/resources/v1/types/index.d.ts +1 -0
  284. package/serialization/resources/medicationDispense/resources/v1/types/index.js +17 -0
  285. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -3
  286. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -3
  287. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +0 -6
  288. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +0 -6
  289. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -0
  290. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +2 -0
@@ -34,7 +34,17 @@ export declare class V2 {
34
34
  * await client.expectedNetworkStatus.v2.computeForRenderingProvider(CandidApi.organizationProviders.v2.OrganizationProviderId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
35
35
  * serviceType: CandidApi.expectedNetworkStatus.v2.ServiceType.NewPatientVideoAppt,
36
36
  * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
37
- * subscriberInformation: {},
37
+ * subscriberInformation: {
38
+ * payerUuid: CandidApi.payers.v3.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
39
+ * memberId: "string",
40
+ * insuranceType: {
41
+ * lineOfBusiness: CandidApi.expectedNetworkStatus.v2.LineOfBusiness.Medicare,
42
+ * insuranceTypeCodes: {
43
+ * type: "insurance_type_code",
44
+ * value: CandidApi.InsuranceTypeCode.C01
45
+ * }
46
+ * }
47
+ * },
38
48
  * patientAddress: {
39
49
  * address1: "123 Main St",
40
50
  * address2: "Apt 1",
@@ -61,7 +71,17 @@ export declare class V2 {
61
71
  * await client.expectedNetworkStatus.v2.computeAllInNetworkProviders({
62
72
  * serviceType: CandidApi.expectedNetworkStatus.v2.ServiceType.NewPatientVideoAppt,
63
73
  * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
64
- * subscriberInformation: {},
74
+ * subscriberInformation: {
75
+ * payerUuid: CandidApi.payers.v3.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
76
+ * memberId: "string",
77
+ * insuranceType: {
78
+ * lineOfBusiness: CandidApi.expectedNetworkStatus.v2.LineOfBusiness.Medicare,
79
+ * insuranceTypeCodes: {
80
+ * type: "insurance_type_code",
81
+ * value: CandidApi.InsuranceTypeCode.C01
82
+ * }
83
+ * }
84
+ * },
65
85
  * patientAddress: {
66
86
  * address1: "123 Main St",
67
87
  * address2: "Apt 1",
@@ -61,7 +61,17 @@ class V2 {
61
61
  * await client.expectedNetworkStatus.v2.computeForRenderingProvider(CandidApi.organizationProviders.v2.OrganizationProviderId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
62
62
  * serviceType: CandidApi.expectedNetworkStatus.v2.ServiceType.NewPatientVideoAppt,
63
63
  * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
64
- * subscriberInformation: {},
64
+ * subscriberInformation: {
65
+ * payerUuid: CandidApi.payers.v3.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
66
+ * memberId: "string",
67
+ * insuranceType: {
68
+ * lineOfBusiness: CandidApi.expectedNetworkStatus.v2.LineOfBusiness.Medicare,
69
+ * insuranceTypeCodes: {
70
+ * type: "insurance_type_code",
71
+ * value: CandidApi.InsuranceTypeCode.C01
72
+ * }
73
+ * }
74
+ * },
65
75
  * patientAddress: {
66
76
  * address1: "123 Main St",
67
77
  * address2: "Apt 1",
@@ -86,7 +96,7 @@ class V2 {
86
96
  Authorization: yield this._getAuthorizationHeader(),
87
97
  "X-Fern-Language": "JavaScript",
88
98
  "X-Fern-SDK-Name": "candidhealth",
89
- "X-Fern-SDK-Version": "0.30.0",
99
+ "X-Fern-SDK-Version": "0.32.0",
90
100
  "X-Fern-Runtime": core.RUNTIME.type,
91
101
  "X-Fern-Runtime-Version": core.RUNTIME.version,
92
102
  },
@@ -144,7 +154,17 @@ class V2 {
144
154
  * await client.expectedNetworkStatus.v2.computeAllInNetworkProviders({
145
155
  * serviceType: CandidApi.expectedNetworkStatus.v2.ServiceType.NewPatientVideoAppt,
146
156
  * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
147
- * subscriberInformation: {},
157
+ * subscriberInformation: {
158
+ * payerUuid: CandidApi.payers.v3.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
159
+ * memberId: "string",
160
+ * insuranceType: {
161
+ * lineOfBusiness: CandidApi.expectedNetworkStatus.v2.LineOfBusiness.Medicare,
162
+ * insuranceTypeCodes: {
163
+ * type: "insurance_type_code",
164
+ * value: CandidApi.InsuranceTypeCode.C01
165
+ * }
166
+ * }
167
+ * },
148
168
  * patientAddress: {
149
169
  * address1: "123 Main St",
150
170
  * address2: "Apt 1",
@@ -169,7 +189,7 @@ class V2 {
169
189
  Authorization: yield this._getAuthorizationHeader(),
170
190
  "X-Fern-Language": "JavaScript",
171
191
  "X-Fern-SDK-Name": "candidhealth",
172
- "X-Fern-SDK-Version": "0.30.0",
192
+ "X-Fern-SDK-Version": "0.32.0",
173
193
  "X-Fern-Runtime": core.RUNTIME.type,
174
194
  "X-Fern-Runtime-Version": core.RUNTIME.version,
175
195
  },
@@ -86,7 +86,7 @@ class V3 {
86
86
  Authorization: yield this._getAuthorizationHeader(),
87
87
  "X-Fern-Language": "JavaScript",
88
88
  "X-Fern-SDK-Name": "candidhealth",
89
- "X-Fern-SDK-Version": "0.30.0",
89
+ "X-Fern-SDK-Version": "0.32.0",
90
90
  "X-Fern-Runtime": core.RUNTIME.type,
91
91
  "X-Fern-Runtime-Version": core.RUNTIME.version,
92
92
  },
@@ -82,7 +82,7 @@ class V1 {
82
82
  Authorization: yield this._getAuthorizationHeader(),
83
83
  "X-Fern-Language": "JavaScript",
84
84
  "X-Fern-SDK-Name": "candidhealth",
85
- "X-Fern-SDK-Version": "0.30.0",
85
+ "X-Fern-SDK-Version": "0.32.0",
86
86
  "X-Fern-Runtime": core.RUNTIME.type,
87
87
  "X-Fern-Runtime-Version": core.RUNTIME.version,
88
88
  },
@@ -121,7 +121,7 @@ export declare class V3 {
121
121
  * modifiers: new Set([CandidApi.ProcedureModifier.TwentyTwo])
122
122
  * },
123
123
  * entries: [{
124
- * startDate: "2024-4-11",
124
+ * startDate: "2024-04-11",
125
125
  * rateCents: 33000,
126
126
  * isDeactivated: false
127
127
  * }]
@@ -68,7 +68,7 @@ class V3 {
68
68
  Authorization: yield this._getAuthorizationHeader(),
69
69
  "X-Fern-Language": "JavaScript",
70
70
  "X-Fern-SDK-Name": "candidhealth",
71
- "X-Fern-SDK-Version": "0.30.0",
71
+ "X-Fern-SDK-Version": "0.32.0",
72
72
  "X-Fern-Runtime": core.RUNTIME.type,
73
73
  "X-Fern-Runtime-Version": core.RUNTIME.version,
74
74
  },
@@ -131,7 +131,7 @@ class V3 {
131
131
  Authorization: yield this._getAuthorizationHeader(),
132
132
  "X-Fern-Language": "JavaScript",
133
133
  "X-Fern-SDK-Name": "candidhealth",
134
- "X-Fern-SDK-Version": "0.30.0",
134
+ "X-Fern-SDK-Version": "0.32.0",
135
135
  "X-Fern-Runtime": core.RUNTIME.type,
136
136
  "X-Fern-Runtime-Version": core.RUNTIME.version,
137
137
  },
@@ -274,7 +274,7 @@ class V3 {
274
274
  Authorization: yield this._getAuthorizationHeader(),
275
275
  "X-Fern-Language": "JavaScript",
276
276
  "X-Fern-SDK-Name": "candidhealth",
277
- "X-Fern-SDK-Version": "0.30.0",
277
+ "X-Fern-SDK-Version": "0.32.0",
278
278
  "X-Fern-Runtime": core.RUNTIME.type,
279
279
  "X-Fern-Runtime-Version": core.RUNTIME.version,
280
280
  },
@@ -401,7 +401,7 @@ class V3 {
401
401
  Authorization: yield this._getAuthorizationHeader(),
402
402
  "X-Fern-Language": "JavaScript",
403
403
  "X-Fern-SDK-Name": "candidhealth",
404
- "X-Fern-SDK-Version": "0.30.0",
404
+ "X-Fern-SDK-Version": "0.32.0",
405
405
  "X-Fern-Runtime": core.RUNTIME.type,
406
406
  "X-Fern-Runtime-Version": core.RUNTIME.version,
407
407
  },
@@ -449,7 +449,7 @@ class V3 {
449
449
  Authorization: yield this._getAuthorizationHeader(),
450
450
  "X-Fern-Language": "JavaScript",
451
451
  "X-Fern-SDK-Name": "candidhealth",
452
- "X-Fern-SDK-Version": "0.30.0",
452
+ "X-Fern-SDK-Version": "0.32.0",
453
453
  "X-Fern-Runtime": core.RUNTIME.type,
454
454
  "X-Fern-Runtime-Version": core.RUNTIME.version,
455
455
  },
@@ -513,7 +513,7 @@ class V3 {
513
513
  * modifiers: new Set([CandidApi.ProcedureModifier.TwentyTwo])
514
514
  * },
515
515
  * entries: [{
516
- * startDate: "2024-4-11",
516
+ * startDate: "2024-04-11",
517
517
  * rateCents: 33000,
518
518
  * isDeactivated: false
519
519
  * }]
@@ -531,7 +531,7 @@ class V3 {
531
531
  Authorization: yield this._getAuthorizationHeader(),
532
532
  "X-Fern-Language": "JavaScript",
533
533
  "X-Fern-SDK-Name": "candidhealth",
534
- "X-Fern-SDK-Version": "0.30.0",
534
+ "X-Fern-SDK-Version": "0.32.0",
535
535
  "X-Fern-Runtime": core.RUNTIME.type,
536
536
  "X-Fern-Runtime-Version": core.RUNTIME.version,
537
537
  },
@@ -596,7 +596,7 @@ class V3 {
596
596
  Authorization: yield this._getAuthorizationHeader(),
597
597
  "X-Fern-Language": "JavaScript",
598
598
  "X-Fern-SDK-Name": "candidhealth",
599
- "X-Fern-SDK-Version": "0.30.0",
599
+ "X-Fern-SDK-Version": "0.32.0",
600
600
  "X-Fern-Runtime": core.RUNTIME.type,
601
601
  "X-Fern-Runtime-Version": core.RUNTIME.version,
602
602
  },
@@ -652,7 +652,7 @@ class V3 {
652
652
  Authorization: yield this._getAuthorizationHeader(),
653
653
  "X-Fern-Language": "JavaScript",
654
654
  "X-Fern-SDK-Name": "candidhealth",
655
- "X-Fern-SDK-Version": "0.30.0",
655
+ "X-Fern-SDK-Version": "0.32.0",
656
656
  "X-Fern-Runtime": core.RUNTIME.type,
657
657
  "X-Fern-Runtime-Version": core.RUNTIME.version,
658
658
  },
@@ -709,7 +709,7 @@ class V3 {
709
709
  Authorization: yield this._getAuthorizationHeader(),
710
710
  "X-Fern-Language": "JavaScript",
711
711
  "X-Fern-SDK-Name": "candidhealth",
712
- "X-Fern-SDK-Version": "0.30.0",
712
+ "X-Fern-SDK-Version": "0.32.0",
713
713
  "X-Fern-Runtime": core.RUNTIME.type,
714
714
  "X-Fern-Runtime-Version": core.RUNTIME.version,
715
715
  },
@@ -762,7 +762,7 @@ class V3 {
762
762
  Authorization: yield this._getAuthorizationHeader(),
763
763
  "X-Fern-Language": "JavaScript",
764
764
  "X-Fern-SDK-Name": "candidhealth",
765
- "X-Fern-SDK-Version": "0.30.0",
765
+ "X-Fern-SDK-Version": "0.32.0",
766
766
  "X-Fern-Runtime": core.RUNTIME.type,
767
767
  "X-Fern-Runtime-Version": core.RUNTIME.version,
768
768
  },
@@ -20,7 +20,7 @@ import * as CandidApi from "../../../../../../index";
20
20
  * modifiers: new Set([CandidApi.ProcedureModifier.TwentyTwo])
21
21
  * },
22
22
  * entries: [{
23
- * startDate: "2024-4-11",
23
+ * startDate: "2024-04-11",
24
24
  * rateCents: 33000,
25
25
  * isDeactivated: false
26
26
  * }]
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @example
8
8
  * {
9
- * startDate: "2024-4-11",
9
+ * startDate: "2024-04-11",
10
10
  * rateCents: 33000,
11
11
  * isDeactivated: false
12
12
  * }
@@ -6,7 +6,7 @@ import * as CandidApi from "../../../index";
6
6
  * Allocation targets describe whether the portion of a payment is being applied toward a specific service line,
7
7
  * claim, billing provider, or is unallocated.
8
8
  */
9
- export declare type AllocationTargetCreate = CandidApi.AllocationTargetCreate.ServiceLineById | CandidApi.AllocationTargetCreate.ClaimById | CandidApi.AllocationTargetCreate.ClaimByEncounterExternalId | CandidApi.AllocationTargetCreate.BillingProviderById | CandidApi.AllocationTargetCreate.AppointmentById | CandidApi.AllocationTargetCreate.Unattributed;
9
+ export declare type AllocationTargetCreate = CandidApi.AllocationTargetCreate.ServiceLineById | CandidApi.AllocationTargetCreate.ClaimById | CandidApi.AllocationTargetCreate.ClaimByEncounterExternalId | CandidApi.AllocationTargetCreate.BillingProviderById | CandidApi.AllocationTargetCreate.AppointmentByIdAndPatientExternalId | CandidApi.AllocationTargetCreate.Unattributed;
10
10
  export declare namespace AllocationTargetCreate {
11
11
  interface ServiceLineById {
12
12
  type: "service_line_by_id";
@@ -24,9 +24,8 @@ export declare namespace AllocationTargetCreate {
24
24
  type: "billing_provider_by_id";
25
25
  value: CandidApi.ProviderId;
26
26
  }
27
- interface AppointmentById {
28
- type: "appointment_by_id";
29
- value: CandidApi.AppointmentId;
27
+ interface AppointmentByIdAndPatientExternalId extends CandidApi.AppointmentByIdAndPatientExternalId {
28
+ type: "appointment_by_id_and_patient_external_id";
30
29
  }
31
30
  interface Unattributed {
32
31
  type: "unattributed";
@@ -4,4 +4,5 @@
4
4
  import * as CandidApi from "../../../index";
5
5
  export interface AppointmentAllocationTarget {
6
6
  appointmentId: CandidApi.AppointmentId;
7
+ patientExternalId: CandidApi.PatientExternalId;
7
8
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../index";
5
+ export interface AppointmentByIdAndPatientExternalId {
6
+ appointmentId: CandidApi.AppointmentId;
7
+ patientExternalId: CandidApi.PatientExternalId;
8
+ }
@@ -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 });
@@ -8,6 +8,7 @@ export * from "./AppointmentAllocationTarget";
8
8
  export * from "./AllocationTarget";
9
9
  export * from "./AllocationCreate";
10
10
  export * from "./AllocationTargetCreate";
11
+ export * from "./AppointmentByIdAndPatientExternalId";
11
12
  export * from "./AccountType";
12
13
  export * from "./NoteUpdate";
13
14
  export * from "./InvoiceUpdate";
@@ -24,6 +24,7 @@ __exportStar(require("./AppointmentAllocationTarget"), exports);
24
24
  __exportStar(require("./AllocationTarget"), exports);
25
25
  __exportStar(require("./AllocationCreate"), exports);
26
26
  __exportStar(require("./AllocationTargetCreate"), exports);
27
+ __exportStar(require("./AppointmentByIdAndPatientExternalId"), exports);
27
28
  __exportStar(require("./AccountType"), exports);
28
29
  __exportStar(require("./NoteUpdate"), exports);
29
30
  __exportStar(require("./InvoiceUpdate"), exports);
@@ -89,7 +89,7 @@ class V1 {
89
89
  Authorization: yield this._getAuthorizationHeader(),
90
90
  "X-Fern-Language": "JavaScript",
91
91
  "X-Fern-SDK-Name": "candidhealth",
92
- "X-Fern-SDK-Version": "0.30.0",
92
+ "X-Fern-SDK-Version": "0.32.0",
93
93
  "X-Fern-Runtime": core.RUNTIME.type,
94
94
  "X-Fern-Runtime-Version": core.RUNTIME.version,
95
95
  },
@@ -152,7 +152,7 @@ class V1 {
152
152
  Authorization: yield this._getAuthorizationHeader(),
153
153
  "X-Fern-Language": "JavaScript",
154
154
  "X-Fern-SDK-Name": "candidhealth",
155
- "X-Fern-SDK-Version": "0.30.0",
155
+ "X-Fern-SDK-Version": "0.32.0",
156
156
  "X-Fern-Runtime": core.RUNTIME.type,
157
157
  "X-Fern-Runtime-Version": core.RUNTIME.version,
158
158
  },
@@ -220,7 +220,7 @@ class V1 {
220
220
  Authorization: yield this._getAuthorizationHeader(),
221
221
  "X-Fern-Language": "JavaScript",
222
222
  "X-Fern-SDK-Name": "candidhealth",
223
- "X-Fern-SDK-Version": "0.30.0",
223
+ "X-Fern-SDK-Version": "0.32.0",
224
224
  "X-Fern-Runtime": core.RUNTIME.type,
225
225
  "X-Fern-Runtime-Version": core.RUNTIME.version,
226
226
  },
@@ -34,7 +34,13 @@ export declare class V1 {
34
34
  * externalCustomerIdentifier: "string",
35
35
  * note: "string",
36
36
  * dueDate: "2023-01-15",
37
- * items: [{}],
37
+ * items: [{
38
+ * attribution: {
39
+ * type: "service_line_id",
40
+ * value: CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
41
+ * },
42
+ * amountCents: 1
43
+ * }],
38
44
  * status: CandidApi.invoices.v2.InvoiceStatus.Draft,
39
45
  * externalIdentifier: "string",
40
46
  * customerInvoiceUrl: "string"
@@ -87,7 +93,13 @@ export declare class V1 {
87
93
  * dueDate: "2023-01-15",
88
94
  * items: {
89
95
  * updateType: CandidApi.importInvoice.v1.InvoiceItemUpdateType.Append,
90
- * items: [{}]
96
+ * items: [{
97
+ * attribution: {
98
+ * type: "service_line_id",
99
+ * value: CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
100
+ * },
101
+ * amountCents: 1
102
+ * }]
91
103
  * }
92
104
  * })
93
105
  */
@@ -61,14 +61,20 @@ class V1 {
61
61
  * externalCustomerIdentifier: "string",
62
62
  * note: "string",
63
63
  * dueDate: "2023-01-15",
64
- * items: [{}],
64
+ * items: [{
65
+ * attribution: {
66
+ * type: "service_line_id",
67
+ * value: CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
68
+ * },
69
+ * amountCents: 1
70
+ * }],
65
71
  * status: CandidApi.invoices.v2.InvoiceStatus.Draft,
66
72
  * externalIdentifier: "string",
67
73
  * customerInvoiceUrl: "string"
68
74
  * })
69
75
  */
70
76
  importInvoice(request, requestOptions) {
71
- var _a;
77
+ var _a, _b;
72
78
  return __awaiter(this, void 0, void 0, function* () {
73
79
  const _response = yield core.fetcher({
74
80
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
@@ -78,7 +84,7 @@ class V1 {
78
84
  Authorization: yield this._getAuthorizationHeader(),
79
85
  "X-Fern-Language": "JavaScript",
80
86
  "X-Fern-SDK-Name": "candidhealth",
81
- "X-Fern-SDK-Version": "0.30.0",
87
+ "X-Fern-SDK-Version": "0.32.0",
82
88
  "X-Fern-Runtime": core.RUNTIME.type,
83
89
  "X-Fern-Runtime-Version": core.RUNTIME.version,
84
90
  },
@@ -102,6 +108,21 @@ class V1 {
102
108
  }),
103
109
  };
104
110
  }
111
+ if (_response.error.reason === "status-code") {
112
+ switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
113
+ case "UnprocessableEntityError":
114
+ case "EntityConflictError":
115
+ return {
116
+ ok: false,
117
+ error: serializers.importInvoice.v1.importInvoice.Error.parseOrThrow(_response.error.body, {
118
+ unrecognizedObjectKeys: "passthrough",
119
+ allowUnrecognizedUnionMembers: true,
120
+ allowUnrecognizedEnumValues: true,
121
+ breadcrumbsPrefix: ["response"],
122
+ }),
123
+ };
124
+ }
125
+ }
105
126
  return {
106
127
  ok: false,
107
128
  error: CandidApi.importInvoice.v1.importInvoice.Error._unknown(_response.error),
@@ -176,7 +197,7 @@ class V1 {
176
197
  Authorization: yield this._getAuthorizationHeader(),
177
198
  "X-Fern-Language": "JavaScript",
178
199
  "X-Fern-SDK-Name": "candidhealth",
179
- "X-Fern-SDK-Version": "0.30.0",
200
+ "X-Fern-SDK-Version": "0.32.0",
180
201
  "X-Fern-Runtime": core.RUNTIME.type,
181
202
  "X-Fern-Runtime-Version": core.RUNTIME.version,
182
203
  },
@@ -224,7 +245,7 @@ class V1 {
224
245
  Authorization: yield this._getAuthorizationHeader(),
225
246
  "X-Fern-Language": "JavaScript",
226
247
  "X-Fern-SDK-Name": "candidhealth",
227
- "X-Fern-SDK-Version": "0.30.0",
248
+ "X-Fern-SDK-Version": "0.32.0",
228
249
  "X-Fern-Runtime": core.RUNTIME.type,
229
250
  "X-Fern-Runtime-Version": core.RUNTIME.version,
230
251
  },
@@ -280,7 +301,13 @@ class V1 {
280
301
  * dueDate: "2023-01-15",
281
302
  * items: {
282
303
  * updateType: CandidApi.importInvoice.v1.InvoiceItemUpdateType.Append,
283
- * items: [{}]
304
+ * items: [{
305
+ * attribution: {
306
+ * type: "service_line_id",
307
+ * value: CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
308
+ * },
309
+ * amountCents: 1
310
+ * }]
284
311
  * }
285
312
  * })
286
313
  */
@@ -295,7 +322,7 @@ class V1 {
295
322
  Authorization: yield this._getAuthorizationHeader(),
296
323
  "X-Fern-Language": "JavaScript",
297
324
  "X-Fern-SDK-Name": "candidhealth",
298
- "X-Fern-SDK-Version": "0.30.0",
325
+ "X-Fern-SDK-Version": "0.32.0",
299
326
  "X-Fern-Runtime": core.RUNTIME.type,
300
327
  "X-Fern-Runtime-Version": core.RUNTIME.version,
301
328
  },
@@ -3,8 +3,16 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../../index";
5
5
  import * as core from "../../../../../../core";
6
- export declare type Error = CandidApi.importInvoice.v1.importInvoice.Error._Unknown;
6
+ export declare type Error = CandidApi.importInvoice.v1.importInvoice.Error.UnprocessableEntityError | CandidApi.importInvoice.v1.importInvoice.Error.EntityConflictError | CandidApi.importInvoice.v1.importInvoice.Error._Unknown;
7
7
  export declare namespace Error {
8
+ interface UnprocessableEntityError extends _Utils {
9
+ errorName: "UnprocessableEntityError";
10
+ content: CandidApi.UnprocessableEntityErrorMessage;
11
+ }
12
+ interface EntityConflictError extends _Utils {
13
+ errorName: "EntityConflictError";
14
+ content: CandidApi.EntityConflictErrorMessage;
15
+ }
8
16
  interface _Unknown extends _Utils {
9
17
  errorName: void;
10
18
  content: core.Fetcher.Error;
@@ -13,10 +21,14 @@ export declare namespace Error {
13
21
  _visit: <_Result>(visitor: CandidApi.importInvoice.v1.importInvoice.Error._Visitor<_Result>) => _Result;
14
22
  }
15
23
  interface _Visitor<_Result> {
24
+ unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
25
+ entityConflictError: (value: CandidApi.EntityConflictErrorMessage) => _Result;
16
26
  _other: (value: core.Fetcher.Error) => _Result;
17
27
  }
18
28
  }
19
29
  export declare const Error: {
30
+ readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.importInvoice.v1.importInvoice.Error.UnprocessableEntityError;
31
+ readonly entityConflictError: (value: CandidApi.EntityConflictErrorMessage) => CandidApi.importInvoice.v1.importInvoice.Error.EntityConflictError;
20
32
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.importInvoice.v1.importInvoice.Error._Unknown;
21
33
  readonly _visit: <_Result>(value: CandidApi.importInvoice.v1.importInvoice.Error, visitor: CandidApi.importInvoice.v1.importInvoice.Error._Visitor<_Result>) => _Result;
22
34
  };
@@ -29,6 +29,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Error = void 0;
30
30
  const CandidApi = __importStar(require("../../../../../index"));
31
31
  exports.Error = {
32
+ unprocessableEntityError: (value) => {
33
+ return {
34
+ content: value,
35
+ errorName: "UnprocessableEntityError",
36
+ _visit: function (visitor) {
37
+ return CandidApi.importInvoice.v1.importInvoice.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ entityConflictError: (value) => {
42
+ return {
43
+ content: value,
44
+ errorName: "EntityConflictError",
45
+ _visit: function (visitor) {
46
+ return CandidApi.importInvoice.v1.importInvoice.Error._visit(this, visitor);
47
+ },
48
+ };
49
+ },
32
50
  _unknown: (fetcherError) => {
33
51
  return {
34
52
  errorName: undefined,
@@ -40,6 +58,10 @@ exports.Error = {
40
58
  },
41
59
  _visit: (value, visitor) => {
42
60
  switch (value.errorName) {
61
+ case "UnprocessableEntityError":
62
+ return visitor.unprocessableEntityError(value.content);
63
+ case "EntityConflictError":
64
+ return visitor.entityConflictError(value.content);
43
65
  default:
44
66
  return visitor._other(value);
45
67
  }
@@ -16,6 +16,7 @@ export * as insuranceCards from "./insuranceCards";
16
16
  export * as insurancePayments from "./insurancePayments";
17
17
  export * as insuranceRefunds from "./insuranceRefunds";
18
18
  export * as invoices from "./invoices";
19
+ export * as medicationDispense from "./medicationDispense";
19
20
  export * as nonInsurancePayerPayments from "./nonInsurancePayerPayments";
20
21
  export * as nonInsurancePayerRefunds from "./nonInsurancePayerRefunds";
21
22
  export * as nonInsurancePayers from "./nonInsurancePayers";
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.eligibility = exports.tags = exports.serviceFacility = exports.paymentAccountConfigs = exports.individual = exports.identifiers = exports.financials = exports.era = exports.eraCommons = exports.diagnoses = exports.commons = exports.claims = exports.preEncounter = exports.x12 = exports.writeOffs = exports.thirdPartyPayers = exports.thirdPartyPayerRefunds = exports.thirdPartyPayerPayments = exports.tasks = exports.serviceLines = exports.remits = exports.payers = exports.patientRefunds = exports.patientPayments = exports.organizationProviders = exports.organizationServiceFacilities = exports.nonInsurancePayers = exports.nonInsurancePayerRefunds = exports.nonInsurancePayerPayments = exports.invoices = exports.insuranceRefunds = exports.insurancePayments = exports.insuranceCards = exports.insuranceAdjudications = exports.importInvoice = exports.guarantor = exports.feeSchedules = exports.externalPaymentAccountConfig = exports.exports = exports.expectedNetworkStatus = exports.encounters = exports.encounterProviders = exports.customSchemas = exports.contracts = exports.claimSubmission = exports.billingNotes = exports.auth = void 0;
29
+ exports.eligibility = exports.tags = exports.serviceFacility = exports.paymentAccountConfigs = exports.individual = exports.identifiers = exports.financials = exports.era = exports.eraCommons = exports.diagnoses = exports.commons = exports.claims = exports.preEncounter = exports.x12 = exports.writeOffs = exports.thirdPartyPayers = exports.thirdPartyPayerRefunds = exports.thirdPartyPayerPayments = exports.tasks = exports.serviceLines = exports.remits = exports.payers = exports.patientRefunds = exports.patientPayments = exports.organizationProviders = exports.organizationServiceFacilities = exports.nonInsurancePayers = exports.nonInsurancePayerRefunds = exports.nonInsurancePayerPayments = exports.medicationDispense = exports.invoices = exports.insuranceRefunds = exports.insurancePayments = exports.insuranceCards = exports.insuranceAdjudications = exports.importInvoice = exports.guarantor = exports.feeSchedules = exports.externalPaymentAccountConfig = exports.exports = exports.expectedNetworkStatus = exports.encounters = exports.encounterProviders = exports.customSchemas = exports.contracts = exports.claimSubmission = exports.billingNotes = exports.auth = void 0;
30
30
  exports.auth = __importStar(require("./auth"));
31
31
  exports.billingNotes = __importStar(require("./billingNotes"));
32
32
  exports.claimSubmission = __importStar(require("./claimSubmission"));
@@ -45,6 +45,7 @@ exports.insuranceCards = __importStar(require("./insuranceCards"));
45
45
  exports.insurancePayments = __importStar(require("./insurancePayments"));
46
46
  exports.insuranceRefunds = __importStar(require("./insuranceRefunds"));
47
47
  exports.invoices = __importStar(require("./invoices"));
48
+ exports.medicationDispense = __importStar(require("./medicationDispense"));
48
49
  exports.nonInsurancePayerPayments = __importStar(require("./nonInsurancePayerPayments"));
49
50
  exports.nonInsurancePayerRefunds = __importStar(require("./nonInsurancePayerRefunds"));
50
51
  exports.nonInsurancePayers = __importStar(require("./nonInsurancePayers"));
@@ -10,6 +10,13 @@ import * as CandidApi from "../../../index";
10
10
  * number: "1234567890",
11
11
  * type: CandidApi.PhoneNumberType.Home
12
12
  * }],
13
+ * nonInsurancePayers: [{
14
+ * nonInsurancePayerId: CandidApi.nonInsurancePayers.v1.NonInsurancePayerId("EB7623AB-D5BC-4B25-B257-2B8FCEC578DE"),
15
+ * name: "Sunrise Foundation",
16
+ * category: "Foundation",
17
+ * description: "Sunrise Foundation is a non-profit organization that provides financial assistance to patients in need.",
18
+ * enabled: true
19
+ * }],
13
20
  * phoneConsent: true,
14
21
  * email: CandidApi.Email("johndoe@joincandidhealth.com"),
15
22
  * emailConsent: true,
@@ -34,4 +41,5 @@ export interface Patient extends CandidApi.PatientBase {
34
41
  phoneConsent: boolean;
35
42
  email?: CandidApi.Email;
36
43
  emailConsent: boolean;
44
+ nonInsurancePayers: CandidApi.nonInsurancePayers.v1.NonInsurancePayer[];
37
45
  }
@@ -7,6 +7,7 @@ export interface PatientCreate extends CandidApi.PatientBase {
7
7
  /** Defaults to false */
8
8
  phoneConsent?: boolean;
9
9
  email?: CandidApi.Email;
10
+ nonInsurancePayers?: CandidApi.nonInsurancePayers.v1.NonInsurancePayerId[];
10
11
  /** Defaults to false */
11
12
  emailConsent?: boolean;
12
13
  }
@@ -42,13 +42,38 @@ export declare class V1 {
42
42
  * payerIdentifier: {
43
43
  * type: "payer_info"
44
44
  * },
45
- * payee: {},
45
+ * payee: {
46
+ * payeeName: "string",
47
+ * payeeIdentifier: {
48
+ * type: "npi",
49
+ * value: CandidApi.Npi("string")
50
+ * }
51
+ * },
46
52
  * postDate: "2023-01-15",
47
53
  * checkNumber: "string",
48
54
  * checkDate: "2023-01-15",
49
55
  * note: "string",
50
56
  * claims: {
51
- * "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{}]
57
+ * "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{
58
+ * claimStatusCode: CandidApi.ClaimStatusCodeCreate.ProcessedAsPrimary,
59
+ * insurancePaidAmountCents: {
60
+ * "key": "value"
61
+ * },
62
+ * chargeAmountCents: {
63
+ * "key": "value"
64
+ * },
65
+ * serviceLines: {
66
+ * "string": {
67
+ * "key": "value"
68
+ * }
69
+ * },
70
+ * payerClaimNumber: {
71
+ * "key": "value"
72
+ * },
73
+ * carcs: [{
74
+ * "key": "value"
75
+ * }]
76
+ * }]
52
77
  * }
53
78
  * })
54
79
  */