candidhealth 0.24.5 → 0.25.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 (266) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +13 -8
  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/commons/types/AppointmentId.d.ts +8 -0
  6. package/api/resources/commons/types/AppointmentId.js +10 -0
  7. package/api/resources/commons/types/index.d.ts +1 -0
  8. package/api/resources/commons/types/index.js +1 -0
  9. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  10. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  11. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  12. package/api/resources/encounters/resources/v4/client/Client.js +4 -4
  13. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  14. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  15. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  16. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  17. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  18. package/api/resources/financials/types/AllocationTarget.d.ts +4 -1
  19. package/api/resources/financials/types/AllocationTargetCreate.d.ts +5 -1
  20. package/api/resources/financials/types/AppointmentAllocationTarget.d.ts +7 -0
  21. package/api/resources/financials/types/index.d.ts +1 -0
  22. package/api/resources/financials/types/index.js +1 -0
  23. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  24. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  25. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  26. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  27. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  28. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  29. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  30. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  31. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  32. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  33. package/api/resources/preEncounter/resources/{patients/resources/v1 → common}/types/ExternalProvider.d.ts +3 -2
  34. package/api/resources/preEncounter/resources/common/types/ExternalProviderType.d.ts +8 -0
  35. package/api/resources/preEncounter/resources/common/types/ExternalProviderType.js +10 -0
  36. package/api/resources/preEncounter/resources/common/types/index.d.ts +2 -0
  37. package/api/resources/preEncounter/resources/common/types/index.js +2 -0
  38. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +6 -4
  39. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +12 -10
  40. package/api/resources/preEncounter/resources/coverages/resources/v1/types/InsurancePlan.d.ts +2 -1
  41. package/api/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.d.ts +289 -0
  42. package/api/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.js +78 -0
  43. package/api/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.d.ts +21 -1
  44. package/api/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.js +5 -0
  45. package/api/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +1 -1
  46. package/api/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -0
  47. package/api/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -0
  48. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +2 -16
  49. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +9 -23
  50. package/api/resources/preEncounter/resources/patients/resources/v1/types/Contact.d.ts +0 -1
  51. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +4 -4
  52. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +0 -1
  53. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +0 -1
  54. package/api/resources/serviceFacility/client/Client.js +1 -1
  55. package/api/resources/serviceLines/client/Client.d.ts +26 -0
  56. package/api/resources/serviceLines/client/Client.js +17 -0
  57. package/api/resources/serviceLines/client/index.d.ts +1 -0
  58. package/api/resources/serviceLines/client/index.js +2 -0
  59. package/api/resources/serviceLines/index.d.ts +1 -0
  60. package/api/resources/serviceLines/index.js +1 -0
  61. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +92 -0
  62. package/api/resources/serviceLines/resources/v2/client/Client.js +238 -0
  63. package/api/resources/serviceLines/resources/v2/client/create.d.ts +28 -0
  64. package/api/resources/serviceLines/resources/v2/client/create.js +58 -0
  65. package/api/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
  66. package/api/resources/serviceLines/resources/v2/client/index.js +28 -0
  67. package/api/resources/serviceLines/resources/v2/client/update.d.ts +40 -0
  68. package/api/resources/serviceLines/resources/v2/client/update.js +80 -0
  69. package/api/resources/serviceLines/resources/v2/index.d.ts +1 -0
  70. package/api/resources/serviceLines/resources/v2/index.js +1 -0
  71. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +36 -0
  72. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +5 -0
  73. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +37 -0
  74. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +5 -0
  75. package/api/resources/serviceLines/resources/v2/types/index.d.ts +2 -0
  76. package/api/resources/serviceLines/resources/v2/types/index.js +2 -0
  77. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  78. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  79. package/api/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +2 -0
  80. package/dist/Client.d.ts +3 -0
  81. package/dist/Client.js +13 -8
  82. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  83. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  84. package/dist/api/resources/commons/types/AppointmentId.d.ts +8 -0
  85. package/dist/api/resources/commons/types/AppointmentId.js +10 -0
  86. package/dist/api/resources/commons/types/index.d.ts +1 -0
  87. package/dist/api/resources/commons/types/index.js +1 -0
  88. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  89. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  90. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  91. package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
  92. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  93. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  94. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  95. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  96. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  97. package/dist/api/resources/financials/types/AllocationTarget.d.ts +4 -1
  98. package/dist/api/resources/financials/types/AllocationTargetCreate.d.ts +5 -1
  99. package/dist/api/resources/financials/types/AppointmentAllocationTarget.d.ts +7 -0
  100. package/dist/api/resources/financials/types/AppointmentAllocationTarget.js +5 -0
  101. package/dist/api/resources/financials/types/index.d.ts +1 -0
  102. package/dist/api/resources/financials/types/index.js +1 -0
  103. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  104. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  105. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  106. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  107. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  108. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  109. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  110. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  111. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  112. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  113. package/dist/api/resources/preEncounter/resources/{patients/resources/v1 → common}/types/ExternalProvider.d.ts +3 -2
  114. package/dist/api/resources/preEncounter/resources/common/types/ExternalProvider.js +5 -0
  115. package/dist/api/resources/preEncounter/resources/common/types/ExternalProviderType.d.ts +8 -0
  116. package/dist/api/resources/preEncounter/resources/common/types/ExternalProviderType.js +10 -0
  117. package/dist/api/resources/preEncounter/resources/common/types/index.d.ts +2 -0
  118. package/dist/api/resources/preEncounter/resources/common/types/index.js +2 -0
  119. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +6 -4
  120. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +12 -10
  121. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/InsurancePlan.d.ts +2 -1
  122. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.d.ts +289 -0
  123. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.js +78 -0
  124. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.d.ts +21 -1
  125. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.js +5 -0
  126. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +1 -1
  127. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -0
  128. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -0
  129. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +2 -16
  130. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +9 -23
  131. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Contact.d.ts +0 -1
  132. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +4 -4
  133. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +0 -1
  134. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +0 -1
  135. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  136. package/dist/api/resources/serviceLines/client/Client.d.ts +26 -0
  137. package/dist/api/resources/serviceLines/client/Client.js +17 -0
  138. package/dist/api/resources/serviceLines/client/index.d.ts +1 -0
  139. package/dist/api/resources/serviceLines/client/index.js +2 -0
  140. package/dist/api/resources/serviceLines/index.d.ts +1 -0
  141. package/dist/api/resources/serviceLines/index.js +1 -0
  142. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +92 -0
  143. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +238 -0
  144. package/dist/api/resources/serviceLines/resources/v2/client/create.d.ts +28 -0
  145. package/dist/api/resources/serviceLines/resources/v2/client/create.js +58 -0
  146. package/dist/api/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
  147. package/dist/api/resources/serviceLines/resources/v2/client/index.js +28 -0
  148. package/dist/api/resources/serviceLines/resources/v2/client/update.d.ts +40 -0
  149. package/dist/api/resources/serviceLines/resources/v2/client/update.js +80 -0
  150. package/dist/api/resources/serviceLines/resources/v2/index.d.ts +1 -0
  151. package/dist/api/resources/serviceLines/resources/v2/index.js +1 -0
  152. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +36 -0
  153. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +5 -0
  154. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +37 -0
  155. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +5 -0
  156. package/dist/api/resources/serviceLines/resources/v2/types/index.d.ts +2 -0
  157. package/dist/api/resources/serviceLines/resources/v2/types/index.js +2 -0
  158. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  159. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  160. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +2 -0
  161. package/dist/serialization/resources/commons/types/AppointmentId.d.ts +10 -0
  162. package/dist/serialization/resources/commons/types/AppointmentId.js +35 -0
  163. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  164. package/dist/serialization/resources/commons/types/index.js +1 -0
  165. package/dist/serialization/resources/financials/types/AllocationTarget.d.ts +5 -1
  166. package/dist/serialization/resources/financials/types/AllocationTarget.js +2 -0
  167. package/dist/serialization/resources/financials/types/AllocationTargetCreate.d.ts +6 -1
  168. package/dist/serialization/resources/financials/types/AllocationTargetCreate.js +4 -0
  169. package/dist/serialization/resources/financials/types/AppointmentAllocationTarget.d.ts +13 -0
  170. package/dist/serialization/resources/financials/types/AppointmentAllocationTarget.js +34 -0
  171. package/dist/serialization/resources/financials/types/index.d.ts +1 -0
  172. package/dist/serialization/resources/financials/types/index.js +1 -0
  173. package/dist/serialization/resources/preEncounter/resources/common/types/ExternalProvider.d.ts +22 -0
  174. package/dist/serialization/resources/preEncounter/resources/{patients/resources/v1 → common}/types/ExternalProvider.js +8 -6
  175. package/dist/serialization/resources/preEncounter/resources/common/types/ExternalProviderType.d.ts +10 -0
  176. package/dist/serialization/resources/preEncounter/resources/common/types/ExternalProviderType.js +31 -0
  177. package/dist/serialization/resources/preEncounter/resources/common/types/index.d.ts +2 -0
  178. package/dist/serialization/resources/preEncounter/resources/common/types/index.js +2 -0
  179. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/InsurancePlan.d.ts +3 -1
  180. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/InsurancePlan.js +3 -1
  181. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.d.ts +10 -0
  182. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.js +102 -0
  183. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.d.ts +1 -1
  184. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.js +5 -0
  185. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +2 -2
  186. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.js +2 -2
  187. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -0
  188. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -0
  189. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Contact.d.ts +0 -2
  190. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Contact.js +0 -2
  191. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -3
  192. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +3 -3
  193. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +0 -1
  194. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +0 -1
  195. package/dist/serialization/resources/serviceLines/resources/v2/client/create.d.ts +15 -0
  196. package/dist/serialization/resources/serviceLines/resources/v2/client/create.js +61 -0
  197. package/dist/serialization/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
  198. package/dist/serialization/resources/serviceLines/resources/v2/client/index.js +28 -0
  199. package/dist/serialization/resources/serviceLines/resources/v2/client/update.d.ts +25 -0
  200. package/dist/serialization/resources/serviceLines/resources/v2/client/update.js +73 -0
  201. package/dist/serialization/resources/serviceLines/resources/v2/index.d.ts +1 -0
  202. package/dist/serialization/resources/serviceLines/resources/v2/index.js +1 -0
  203. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +43 -0
  204. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +64 -0
  205. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +42 -0
  206. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +63 -0
  207. package/dist/serialization/resources/serviceLines/resources/v2/types/index.d.ts +2 -0
  208. package/dist/serialization/resources/serviceLines/resources/v2/types/index.js +2 -0
  209. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +4 -0
  210. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.js +4 -0
  211. package/package.json +1 -1
  212. package/reference.md +164 -24
  213. package/serialization/resources/commons/types/AppointmentId.d.ts +10 -0
  214. package/serialization/resources/commons/types/AppointmentId.js +35 -0
  215. package/serialization/resources/commons/types/index.d.ts +1 -0
  216. package/serialization/resources/commons/types/index.js +1 -0
  217. package/serialization/resources/financials/types/AllocationTarget.d.ts +5 -1
  218. package/serialization/resources/financials/types/AllocationTarget.js +2 -0
  219. package/serialization/resources/financials/types/AllocationTargetCreate.d.ts +6 -1
  220. package/serialization/resources/financials/types/AllocationTargetCreate.js +4 -0
  221. package/serialization/resources/financials/types/AppointmentAllocationTarget.d.ts +13 -0
  222. package/serialization/resources/financials/types/AppointmentAllocationTarget.js +34 -0
  223. package/serialization/resources/financials/types/index.d.ts +1 -0
  224. package/serialization/resources/financials/types/index.js +1 -0
  225. package/serialization/resources/preEncounter/resources/common/types/ExternalProvider.d.ts +22 -0
  226. package/serialization/resources/preEncounter/resources/{patients/resources/v1 → common}/types/ExternalProvider.js +8 -6
  227. package/serialization/resources/preEncounter/resources/common/types/ExternalProviderType.d.ts +10 -0
  228. package/serialization/resources/preEncounter/resources/common/types/ExternalProviderType.js +31 -0
  229. package/serialization/resources/preEncounter/resources/common/types/index.d.ts +2 -0
  230. package/serialization/resources/preEncounter/resources/common/types/index.js +2 -0
  231. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/InsurancePlan.d.ts +3 -1
  232. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/InsurancePlan.js +3 -1
  233. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.d.ts +10 -0
  234. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.js +102 -0
  235. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.d.ts +1 -1
  236. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.js +5 -0
  237. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +2 -2
  238. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.js +2 -2
  239. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -0
  240. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -0
  241. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Contact.d.ts +0 -2
  242. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Contact.js +0 -2
  243. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -3
  244. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +3 -3
  245. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +0 -1
  246. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +0 -1
  247. package/serialization/resources/serviceLines/resources/v2/client/create.d.ts +15 -0
  248. package/serialization/resources/serviceLines/resources/v2/client/create.js +61 -0
  249. package/serialization/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
  250. package/serialization/resources/serviceLines/resources/v2/client/index.js +28 -0
  251. package/serialization/resources/serviceLines/resources/v2/client/update.d.ts +25 -0
  252. package/serialization/resources/serviceLines/resources/v2/client/update.js +73 -0
  253. package/serialization/resources/serviceLines/resources/v2/index.d.ts +1 -0
  254. package/serialization/resources/serviceLines/resources/v2/index.js +1 -0
  255. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +43 -0
  256. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +64 -0
  257. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +42 -0
  258. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +63 -0
  259. package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +2 -0
  260. package/serialization/resources/serviceLines/resources/v2/types/index.js +2 -0
  261. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +4 -0
  262. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.js +4 -0
  263. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/ExternalProvider.d.ts +0 -20
  264. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/ExternalProvider.d.ts +0 -20
  265. /package/api/resources/{preEncounter/resources/patients/resources/v1/types/ExternalProvider.js → financials/types/AppointmentAllocationTarget.js} +0 -0
  266. /package/{dist/api/resources/preEncounter/resources/patients/resources/v1 → api/resources/preEncounter/resources/common}/types/ExternalProvider.js +0 -0
@@ -0,0 +1,63 @@
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.ServiceLineUpdate = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ const ProcedureModifier_1 = require("../../../../commons/types/ProcedureModifier");
32
+ const DiagnosisId_1 = require("../../../../diagnoses/types/DiagnosisId");
33
+ const ServiceLineAdjustment_1 = require("./ServiceLineAdjustment");
34
+ const ServiceLineDenialReason_1 = require("./ServiceLineDenialReason");
35
+ const FacilityTypeCode_1 = require("../../../../commons/types/FacilityTypeCode");
36
+ const ServiceLineUnits_1 = require("../../../../commons/types/ServiceLineUnits");
37
+ const Decimal_1 = require("../../../../commons/types/Decimal");
38
+ exports.ServiceLineUpdate = core.serialization.object({
39
+ editReason: core.serialization.property("edit_reason", core.serialization.string().optional()),
40
+ modifiers: core.serialization.list(ProcedureModifier_1.ProcedureModifier).optional(),
41
+ chargeAmountCents: core.serialization.property("charge_amount_cents", core.serialization.number().optional()),
42
+ allowedAmountCents: core.serialization.property("allowed_amount_cents", core.serialization.number().optional()),
43
+ insuranceBalanceCents: core.serialization.property("insurance_balance_cents", core.serialization.number().optional()),
44
+ patientBalanceCents: core.serialization.property("patient_balance_cents", core.serialization.number().optional()),
45
+ primaryPaidAmountCents: core.serialization.property("primary_paid_amount_cents", core.serialization.number().optional()),
46
+ secondaryPaidAmountCents: core.serialization.property("secondary_paid_amount_cents", core.serialization.number().optional()),
47
+ tertiaryPaidAmountCents: core.serialization.property("tertiary_paid_amount_cents", core.serialization.number().optional()),
48
+ patientResponsibilityCents: core.serialization.property("patient_responsibility_cents", core.serialization.number().optional()),
49
+ diagnosisIdZero: core.serialization.property("diagnosis_id_zero", DiagnosisId_1.DiagnosisId.optional()),
50
+ diagnosisIdOne: core.serialization.property("diagnosis_id_one", DiagnosisId_1.DiagnosisId.optional()),
51
+ diagnosisIdTwo: core.serialization.property("diagnosis_id_two", DiagnosisId_1.DiagnosisId.optional()),
52
+ diagnosisIdThree: core.serialization.property("diagnosis_id_three", DiagnosisId_1.DiagnosisId.optional()),
53
+ serviceLineManualAdjustments: core.serialization.property("service_line_manual_adjustments", core.serialization.list(ServiceLineAdjustment_1.ServiceLineAdjustment).optional()),
54
+ denialReason: core.serialization.property("denial_reason", ServiceLineDenialReason_1.ServiceLineDenialReason.optional()),
55
+ placeOfServiceCode: core.serialization.property("place_of_service_code", FacilityTypeCode_1.FacilityTypeCode.optional()),
56
+ placeOfServiceCodeAsSubmitted: core.serialization.property("place_of_service_code_as_submitted", FacilityTypeCode_1.FacilityTypeCode.optional()),
57
+ units: ServiceLineUnits_1.ServiceLineUnits.optional(),
58
+ procedureCode: core.serialization.property("procedure_code", core.serialization.string().optional()),
59
+ quantity: Decimal_1.Decimal.optional(),
60
+ description: core.serialization.string().optional(),
61
+ dateOfService: core.serialization.property("date_of_service", core.serialization.string().optional()),
62
+ endDateOfService: core.serialization.property("end_date_of_service", core.serialization.string().optional()),
63
+ });
@@ -1,4 +1,6 @@
1
1
  export * from "./ServiceLineCreate";
2
+ export * from "./ServiceLineCreateStandalone";
3
+ export * from "./ServiceLineUpdate";
2
4
  export * from "./ServiceLine";
3
5
  export * from "./ServiceLineEraData";
4
6
  export * from "./ServiceLineAdjustment";
@@ -15,6 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ServiceLineCreate"), exports);
18
+ __exportStar(require("./ServiceLineCreateStandalone"), exports);
19
+ __exportStar(require("./ServiceLineUpdate"), exports);
18
20
  __exportStar(require("./ServiceLine"), exports);
19
21
  __exportStar(require("./ServiceLineEraData"), exports);
20
22
  __exportStar(require("./ServiceLineAdjustment"), exports);
@@ -6,6 +6,8 @@ import * as CandidApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  import { WriteOffId } from "./WriteOffId";
8
8
  import { PatientWriteOffReason } from "./PatientWriteOffReason";
9
+ import { PatientExternalId } from "../../../../commons/types/PatientExternalId";
10
+ import { ClaimId } from "../../../../commons/types/ClaimId";
9
11
  import { ServiceLineId } from "../../../../commons/types/ServiceLineId";
10
12
  export declare const PatientWriteOff: core.serialization.ObjectSchema<serializers.writeOffs.v1.PatientWriteOff.Raw, CandidApi.writeOffs.v1.PatientWriteOff>;
11
13
  export declare namespace PatientWriteOff {
@@ -14,6 +16,8 @@ export declare namespace PatientWriteOff {
14
16
  write_off_timestamp: string;
15
17
  write_off_note?: string | null;
16
18
  write_off_reason: PatientWriteOffReason.Raw;
19
+ patient_external_id: PatientExternalId.Raw;
20
+ claim_id: ClaimId.Raw;
17
21
  service_line_id: ServiceLineId.Raw;
18
22
  reverts_write_off_id?: WriteOffId.Raw | null;
19
23
  reverted_by_write_off_id?: WriteOffId.Raw | null;
@@ -30,12 +30,16 @@ exports.PatientWriteOff = void 0;
30
30
  const core = __importStar(require("../../../../../../core"));
31
31
  const WriteOffId_1 = require("./WriteOffId");
32
32
  const PatientWriteOffReason_1 = require("./PatientWriteOffReason");
33
+ const PatientExternalId_1 = require("../../../../commons/types/PatientExternalId");
34
+ const ClaimId_1 = require("../../../../commons/types/ClaimId");
33
35
  const ServiceLineId_1 = require("../../../../commons/types/ServiceLineId");
34
36
  exports.PatientWriteOff = core.serialization.object({
35
37
  writeOffId: core.serialization.property("write_off_id", WriteOffId_1.WriteOffId),
36
38
  writeOffTimestamp: core.serialization.property("write_off_timestamp", core.serialization.date()),
37
39
  writeOffNote: core.serialization.property("write_off_note", core.serialization.string().optional()),
38
40
  writeOffReason: core.serialization.property("write_off_reason", PatientWriteOffReason_1.PatientWriteOffReason),
41
+ patientExternalId: core.serialization.property("patient_external_id", PatientExternalId_1.PatientExternalId),
42
+ claimId: core.serialization.property("claim_id", ClaimId_1.ClaimId),
39
43
  serviceLineId: core.serialization.property("service_line_id", ServiceLineId_1.ServiceLineId),
40
44
  revertsWriteOffId: core.serialization.property("reverts_write_off_id", WriteOffId_1.WriteOffId.optional()),
41
45
  revertedByWriteOffId: core.serialization.property("reverted_by_write_off_id", WriteOffId_1.WriteOffId.optional()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "candidhealth",
3
- "version": "0.24.5",
3
+ "version": "0.25.0",
4
4
  "private": false,
5
5
  "repository": "https://github.com/candidhealth/candid-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -5656,6 +5656,162 @@ await client.payers.v3.getAll({
5656
5656
  </dl>
5657
5657
  </details>
5658
5658
 
5659
+ ## ServiceLines V2
5660
+
5661
+ <details><summary><code>client.serviceLines.v2.<a href="/src/api/resources/serviceLines/resources/v2/client/Client.ts">create</a>({ ...params }) -> core.APIResponse<CandidApi.ServiceLine, CandidApi.serviceLines.v2.create.Error></code></summary>
5662
+ <dl>
5663
+ <dd>
5664
+
5665
+ #### 🔌 Usage
5666
+
5667
+ <dl>
5668
+ <dd>
5669
+
5670
+ <dl>
5671
+ <dd>
5672
+
5673
+ ```typescript
5674
+ await client.serviceLines.v2.create({
5675
+ modifiers: [CandidApi.ProcedureModifier.TwentyTwo],
5676
+ chargeAmountCents: 1,
5677
+ allowedAmountCents: 1,
5678
+ insuranceBalanceCents: 1,
5679
+ patientBalanceCents: 1,
5680
+ primaryPaidAmountCents: 1,
5681
+ secondaryPaidAmountCents: 1,
5682
+ tertiaryPaidAmountCents: 1,
5683
+ patientResponsibilityCents: 1,
5684
+ diagnosisIdZero: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
5685
+ diagnosisIdOne: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
5686
+ diagnosisIdTwo: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
5687
+ diagnosisIdThree: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
5688
+ serviceLineManualAdjustments: [{}],
5689
+ denialReason: {},
5690
+ placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
5691
+ placeOfServiceCodeAsSubmitted: CandidApi.FacilityTypeCode.Pharmacy,
5692
+ procedureCode: "string",
5693
+ quantity: CandidApi.Decimal("string"),
5694
+ units: CandidApi.ServiceLineUnits.Mj,
5695
+ claimId: CandidApi.ClaimId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
5696
+ description: "string",
5697
+ dateOfService: "2023-01-15",
5698
+ endDateOfService: "2023-01-15",
5699
+ });
5700
+ ```
5701
+
5702
+ </dd>
5703
+ </dl>
5704
+ </dd>
5705
+ </dl>
5706
+
5707
+ #### ⚙️ Parameters
5708
+
5709
+ <dl>
5710
+ <dd>
5711
+
5712
+ <dl>
5713
+ <dd>
5714
+
5715
+ **request:** `CandidApi.ServiceLineCreateStandalone`
5716
+
5717
+ </dd>
5718
+ </dl>
5719
+
5720
+ <dl>
5721
+ <dd>
5722
+
5723
+ **requestOptions:** `V2.RequestOptions`
5724
+
5725
+ </dd>
5726
+ </dl>
5727
+ </dd>
5728
+ </dl>
5729
+
5730
+ </dd>
5731
+ </dl>
5732
+ </details>
5733
+
5734
+ <details><summary><code>client.serviceLines.v2.<a href="/src/api/resources/serviceLines/resources/v2/client/Client.ts">update</a>(serviceLineId, { ...params }) -> core.APIResponse<CandidApi.ServiceLine, CandidApi.serviceLines.v2.update.Error></code></summary>
5735
+ <dl>
5736
+ <dd>
5737
+
5738
+ #### 🔌 Usage
5739
+
5740
+ <dl>
5741
+ <dd>
5742
+
5743
+ <dl>
5744
+ <dd>
5745
+
5746
+ ```typescript
5747
+ await client.serviceLines.v2.update(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
5748
+ editReason: "string",
5749
+ modifiers: [CandidApi.ProcedureModifier.TwentyTwo],
5750
+ chargeAmountCents: 1,
5751
+ allowedAmountCents: 1,
5752
+ insuranceBalanceCents: 1,
5753
+ patientBalanceCents: 1,
5754
+ primaryPaidAmountCents: 1,
5755
+ secondaryPaidAmountCents: 1,
5756
+ tertiaryPaidAmountCents: 1,
5757
+ patientResponsibilityCents: 1,
5758
+ diagnosisIdZero: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
5759
+ diagnosisIdOne: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
5760
+ diagnosisIdTwo: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
5761
+ diagnosisIdThree: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
5762
+ serviceLineManualAdjustments: [{}],
5763
+ denialReason: {},
5764
+ placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
5765
+ placeOfServiceCodeAsSubmitted: CandidApi.FacilityTypeCode.Pharmacy,
5766
+ units: CandidApi.ServiceLineUnits.Mj,
5767
+ procedureCode: "string",
5768
+ quantity: CandidApi.Decimal("string"),
5769
+ description: "string",
5770
+ dateOfService: "2023-01-15",
5771
+ endDateOfService: "2023-01-15",
5772
+ });
5773
+ ```
5774
+
5775
+ </dd>
5776
+ </dl>
5777
+ </dd>
5778
+ </dl>
5779
+
5780
+ #### ⚙️ Parameters
5781
+
5782
+ <dl>
5783
+ <dd>
5784
+
5785
+ <dl>
5786
+ <dd>
5787
+
5788
+ **serviceLineId:** `CandidApi.ServiceLineId`
5789
+
5790
+ </dd>
5791
+ </dl>
5792
+
5793
+ <dl>
5794
+ <dd>
5795
+
5796
+ **request:** `CandidApi.ServiceLineUpdate`
5797
+
5798
+ </dd>
5799
+ </dl>
5800
+
5801
+ <dl>
5802
+ <dd>
5803
+
5804
+ **requestOptions:** `V2.RequestOptions`
5805
+
5806
+ </dd>
5807
+ </dl>
5808
+ </dd>
5809
+ </dl>
5810
+
5811
+ </dd>
5812
+ </dl>
5813
+ </details>
5814
+
5659
5815
  ## Tasks V3
5660
5816
 
5661
5817
  <details><summary><code>client.tasks.v3.<a href="/src/api/resources/tasks/resources/v3/client/Client.ts">getActions</a>(taskId) -> core.APIResponse<CandidApi.TaskActions, CandidApi.tasks.v3.getActions.Error></code></summary>
@@ -6244,7 +6400,7 @@ await client.preEncounter.coverages.v1.create({
6244
6400
  subscriber: {
6245
6401
  name: {},
6246
6402
  dateOfBirth: "2023-01-15",
6247
- gender: CandidApi.Gender.Man,
6403
+ biologicalSex: CandidApi.Sex.Female,
6248
6404
  },
6249
6405
  relationship: CandidApi.Relationship.Self,
6250
6406
  patient: CandidApi.PatientId("string"),
@@ -6254,7 +6410,8 @@ await client.preEncounter.coverages.v1.create({
6254
6410
  payerName: "string",
6255
6411
  groupNumber: "string",
6256
6412
  name: "string",
6257
- type: CandidApi.NetworkType.Ppo,
6413
+ planType: CandidApi.NetworkType.SelfPay,
6414
+ type: CandidApi.InsuranceTypeCode.C01,
6258
6415
  period: {},
6259
6416
  insuranceCardImageLocator: "string",
6260
6417
  },
@@ -6327,7 +6484,7 @@ await client.preEncounter.coverages.v1.update(CandidApi.CoverageId("d5e9c84f-c2b
6327
6484
  subscriber: {
6328
6485
  name: {},
6329
6486
  dateOfBirth: "2023-01-15",
6330
- gender: CandidApi.Gender.Man,
6487
+ biologicalSex: CandidApi.Sex.Female,
6331
6488
  },
6332
6489
  relationship: CandidApi.Relationship.Self,
6333
6490
  patient: CandidApi.PatientId("string"),
@@ -6337,7 +6494,8 @@ await client.preEncounter.coverages.v1.update(CandidApi.CoverageId("d5e9c84f-c2b
6337
6494
  payerName: "string",
6338
6495
  groupNumber: "string",
6339
6496
  name: "string",
6340
- type: CandidApi.NetworkType.Ppo,
6497
+ planType: CandidApi.NetworkType.SelfPay,
6498
+ type: CandidApi.InsuranceTypeCode.C01,
6341
6499
  period: {},
6342
6500
  insuranceCardImageLocator: "string",
6343
6501
  },
@@ -6709,21 +6867,12 @@ await client.preEncounter.patients.v1.create({
6709
6867
  {
6710
6868
  relationship: [CandidApi.Relationship.Self],
6711
6869
  name: {},
6712
- gender: CandidApi.Gender.Man,
6713
- telecoms: [{}],
6714
- addresses: [{}],
6715
- period: {},
6716
- },
6717
- ],
6718
- generalPractitioners: [
6719
- {
6720
- name: {},
6721
- npi: "string",
6722
6870
  telecoms: [{}],
6723
6871
  addresses: [{}],
6724
6872
  period: {},
6725
6873
  },
6726
6874
  ],
6875
+ generalPractitioners: [{}],
6727
6876
  filingOrder: {
6728
6877
  coverages: [CandidApi.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
6729
6878
  },
@@ -6946,21 +7095,12 @@ await client.preEncounter.patients.v1.update(CandidApi.PatientId("string"), "str
6946
7095
  {
6947
7096
  relationship: [CandidApi.Relationship.Self],
6948
7097
  name: {},
6949
- gender: CandidApi.Gender.Man,
6950
- telecoms: [{}],
6951
- addresses: [{}],
6952
- period: {},
6953
- },
6954
- ],
6955
- generalPractitioners: [
6956
- {
6957
- name: {},
6958
- npi: "string",
6959
7098
  telecoms: [{}],
6960
7099
  addresses: [{}],
6961
7100
  period: {},
6962
7101
  },
6963
7102
  ],
7103
+ generalPractitioners: [{}],
6964
7104
  filingOrder: {
6965
7105
  coverages: [CandidApi.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
6966
7106
  },
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as CandidApi from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const AppointmentId: core.serialization.Schema<serializers.AppointmentId.Raw, CandidApi.AppointmentId>;
8
+ export declare namespace AppointmentId {
9
+ type Raw = string;
10
+ }
@@ -0,0 +1,35 @@
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.AppointmentId = void 0;
30
+ const CandidApi = __importStar(require("../../../../api/index"));
31
+ const core = __importStar(require("../../../../core"));
32
+ exports.AppointmentId = core.serialization.string().transform({
33
+ transform: CandidApi.AppointmentId,
34
+ untransform: (value) => value,
35
+ });
@@ -1,6 +1,7 @@
1
1
  export * from "./EncounterId";
2
2
  export * from "./OrganizationId";
3
3
  export * from "./ClaimId";
4
+ export * from "./AppointmentId";
4
5
  export * from "./ServiceLineId";
5
6
  export * from "./PatientExternalId";
6
7
  export * from "./EncounterExternalId";
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./EncounterId"), exports);
18
18
  __exportStar(require("./OrganizationId"), exports);
19
19
  __exportStar(require("./ClaimId"), exports);
20
+ __exportStar(require("./AppointmentId"), exports);
20
21
  __exportStar(require("./ServiceLineId"), exports);
21
22
  __exportStar(require("./PatientExternalId"), exports);
22
23
  __exportStar(require("./EncounterExternalId"), exports);
@@ -7,9 +7,10 @@ import * as core from "../../../../core";
7
7
  import { ServiceLineAllocationTarget } from "./ServiceLineAllocationTarget";
8
8
  import { ClaimAllocationTarget } from "./ClaimAllocationTarget";
9
9
  import { BillingProviderAllocationTarget } from "./BillingProviderAllocationTarget";
10
+ import { AppointmentAllocationTarget } from "./AppointmentAllocationTarget";
10
11
  export declare const AllocationTarget: core.serialization.Schema<serializers.AllocationTarget.Raw, CandidApi.AllocationTarget>;
11
12
  export declare namespace AllocationTarget {
12
- type Raw = AllocationTarget.ServiceLine | AllocationTarget.Claim | AllocationTarget.BillingProviderId | AllocationTarget.Unattributed;
13
+ type Raw = AllocationTarget.ServiceLine | AllocationTarget.Claim | AllocationTarget.BillingProviderId | AllocationTarget.Appointment | AllocationTarget.Unattributed;
13
14
  interface ServiceLine extends ServiceLineAllocationTarget.Raw {
14
15
  type: "service_line";
15
16
  }
@@ -19,6 +20,9 @@ export declare namespace AllocationTarget {
19
20
  interface BillingProviderId extends BillingProviderAllocationTarget.Raw {
20
21
  type: "billing_provider_id";
21
22
  }
23
+ interface Appointment extends AppointmentAllocationTarget.Raw {
24
+ type: "appointment";
25
+ }
22
26
  interface Unattributed {
23
27
  type: "unattributed";
24
28
  }
@@ -31,11 +31,13 @@ const core = __importStar(require("../../../../core"));
31
31
  const ServiceLineAllocationTarget_1 = require("./ServiceLineAllocationTarget");
32
32
  const ClaimAllocationTarget_1 = require("./ClaimAllocationTarget");
33
33
  const BillingProviderAllocationTarget_1 = require("./BillingProviderAllocationTarget");
34
+ const AppointmentAllocationTarget_1 = require("./AppointmentAllocationTarget");
34
35
  exports.AllocationTarget = core.serialization
35
36
  .union("type", {
36
37
  service_line: ServiceLineAllocationTarget_1.ServiceLineAllocationTarget,
37
38
  claim: ClaimAllocationTarget_1.ClaimAllocationTarget,
38
39
  billing_provider_id: BillingProviderAllocationTarget_1.BillingProviderAllocationTarget,
40
+ appointment: AppointmentAllocationTarget_1.AppointmentAllocationTarget,
39
41
  unattributed: core.serialization.object({}),
40
42
  })
41
43
  .transform({
@@ -8,9 +8,10 @@ import { ServiceLineId } from "../../commons/types/ServiceLineId";
8
8
  import { ClaimId } from "../../commons/types/ClaimId";
9
9
  import { EncounterExternalId } from "../../commons/types/EncounterExternalId";
10
10
  import { ProviderId } from "../../commons/types/ProviderId";
11
+ import { AppointmentId } from "../../commons/types/AppointmentId";
11
12
  export declare const AllocationTargetCreate: core.serialization.Schema<serializers.AllocationTargetCreate.Raw, CandidApi.AllocationTargetCreate>;
12
13
  export declare namespace AllocationTargetCreate {
13
- type Raw = AllocationTargetCreate.ServiceLineById | AllocationTargetCreate.ClaimById | AllocationTargetCreate.ClaimByEncounterExternalId | AllocationTargetCreate.BillingProviderById | AllocationTargetCreate.Unattributed;
14
+ type Raw = AllocationTargetCreate.ServiceLineById | AllocationTargetCreate.ClaimById | AllocationTargetCreate.ClaimByEncounterExternalId | AllocationTargetCreate.BillingProviderById | AllocationTargetCreate.AppointmentById | AllocationTargetCreate.Unattributed;
14
15
  interface ServiceLineById {
15
16
  type: "service_line_by_id";
16
17
  value: ServiceLineId.Raw;
@@ -27,6 +28,10 @@ export declare namespace AllocationTargetCreate {
27
28
  type: "billing_provider_by_id";
28
29
  value: ProviderId.Raw;
29
30
  }
31
+ interface AppointmentById {
32
+ type: "appointment_by_id";
33
+ value: AppointmentId.Raw;
34
+ }
30
35
  interface Unattributed {
31
36
  type: "unattributed";
32
37
  }
@@ -32,6 +32,7 @@ const ServiceLineId_1 = require("../../commons/types/ServiceLineId");
32
32
  const ClaimId_1 = require("../../commons/types/ClaimId");
33
33
  const EncounterExternalId_1 = require("../../commons/types/EncounterExternalId");
34
34
  const ProviderId_1 = require("../../commons/types/ProviderId");
35
+ const AppointmentId_1 = require("../../commons/types/AppointmentId");
35
36
  exports.AllocationTargetCreate = core.serialization
36
37
  .union("type", {
37
38
  service_line_by_id: core.serialization.object({
@@ -46,6 +47,9 @@ exports.AllocationTargetCreate = core.serialization
46
47
  billing_provider_by_id: core.serialization.object({
47
48
  value: ProviderId_1.ProviderId,
48
49
  }),
50
+ appointment_by_id: core.serialization.object({
51
+ value: AppointmentId_1.AppointmentId,
52
+ }),
49
53
  unattributed: core.serialization.object({}),
50
54
  })
51
55
  .transform({
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as CandidApi from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { AppointmentId } from "../../commons/types/AppointmentId";
8
+ export declare const AppointmentAllocationTarget: core.serialization.ObjectSchema<serializers.AppointmentAllocationTarget.Raw, CandidApi.AppointmentAllocationTarget>;
9
+ export declare namespace AppointmentAllocationTarget {
10
+ interface Raw {
11
+ appointment_id: AppointmentId.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.AppointmentAllocationTarget = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const AppointmentId_1 = require("../../commons/types/AppointmentId");
32
+ exports.AppointmentAllocationTarget = core.serialization.object({
33
+ appointmentId: core.serialization.property("appointment_id", AppointmentId_1.AppointmentId),
34
+ });
@@ -4,6 +4,7 @@ export * from "./Allocation";
4
4
  export * from "./ServiceLineAllocationTarget";
5
5
  export * from "./ClaimAllocationTarget";
6
6
  export * from "./BillingProviderAllocationTarget";
7
+ export * from "./AppointmentAllocationTarget";
7
8
  export * from "./AllocationTarget";
8
9
  export * from "./AllocationCreate";
9
10
  export * from "./AllocationTargetCreate";
@@ -20,6 +20,7 @@ __exportStar(require("./Allocation"), exports);
20
20
  __exportStar(require("./ServiceLineAllocationTarget"), exports);
21
21
  __exportStar(require("./ClaimAllocationTarget"), exports);
22
22
  __exportStar(require("./BillingProviderAllocationTarget"), exports);
23
+ __exportStar(require("./AppointmentAllocationTarget"), exports);
23
24
  __exportStar(require("./AllocationTarget"), exports);
24
25
  __exportStar(require("./AllocationCreate"), exports);
25
26
  __exportStar(require("./AllocationTargetCreate"), exports);
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as CandidApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ import { HumanName } from "./HumanName";
8
+ import { ExternalProviderType } from "./ExternalProviderType";
9
+ import { ContactPoint } from "./ContactPoint";
10
+ import { Address } from "./Address";
11
+ import { Period } from "./Period";
12
+ export declare const ExternalProvider: core.serialization.ObjectSchema<serializers.preEncounter.ExternalProvider.Raw, CandidApi.preEncounter.ExternalProvider>;
13
+ export declare namespace ExternalProvider {
14
+ interface Raw {
15
+ name: HumanName.Raw;
16
+ type?: ExternalProviderType.Raw | null;
17
+ npi?: string | null;
18
+ telecoms: ContactPoint.Raw[];
19
+ addresses: Address.Raw[];
20
+ period?: Period.Raw | null;
21
+ }
22
+ }
@@ -27,14 +27,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ExternalProvider = void 0;
30
- const core = __importStar(require("../../../../../../../../core"));
31
- const HumanName_1 = require("../../../../common/types/HumanName");
32
- const ContactPoint_1 = require("../../../../common/types/ContactPoint");
33
- const Address_1 = require("../../../../common/types/Address");
34
- const Period_1 = require("../../../../common/types/Period");
30
+ const core = __importStar(require("../../../../../../core"));
31
+ const HumanName_1 = require("./HumanName");
32
+ const ExternalProviderType_1 = require("./ExternalProviderType");
33
+ const ContactPoint_1 = require("./ContactPoint");
34
+ const Address_1 = require("./Address");
35
+ const Period_1 = require("./Period");
35
36
  exports.ExternalProvider = core.serialization.object({
36
37
  name: HumanName_1.HumanName,
37
- npi: core.serialization.string(),
38
+ type: ExternalProviderType_1.ExternalProviderType.optional(),
39
+ npi: core.serialization.string().optional(),
38
40
  telecoms: core.serialization.list(ContactPoint_1.ContactPoint),
39
41
  addresses: core.serialization.list(Address_1.Address),
40
42
  period: Period_1.Period.optional(),
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as CandidApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ export declare const ExternalProviderType: core.serialization.Schema<serializers.preEncounter.ExternalProviderType.Raw, CandidApi.preEncounter.ExternalProviderType>;
8
+ export declare namespace ExternalProviderType {
9
+ type Raw = "PRIMARY" | "REFERRING";
10
+ }