candidhealth 0.2.1 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (331) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +11 -6
  3. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  4. package/api/resources/billingNotes/client/Client.js +1 -1
  5. package/api/resources/commons/types/DateRangeOptionalEnd.d.ts +8 -0
  6. package/api/resources/commons/types/Decimal.d.ts +11 -0
  7. package/api/resources/commons/types/Decimal.js +10 -0
  8. package/api/resources/commons/types/EmrPayerCrosswalk.d.ts +8 -0
  9. package/api/resources/commons/types/EmrPayerCrosswalk.js +10 -0
  10. package/api/resources/commons/types/UserId.d.ts +8 -0
  11. package/api/resources/commons/types/index.d.ts +4 -1
  12. package/api/resources/commons/types/index.js +4 -1
  13. package/api/resources/encounters/resources/v4/client/Client.js +16 -12
  14. package/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
  15. package/api/resources/encounters/resources/v4/client/create.js +11 -0
  16. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -1
  17. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +8 -7
  18. package/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +2 -1
  19. package/api/resources/encounters/resources/v4/types/BillableStatusType.d.ts +8 -0
  20. package/api/resources/encounters/resources/v4/types/BillableStatusType.js +10 -0
  21. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  22. package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +13 -7
  23. package/api/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.d.ts +6 -0
  24. package/api/resources/encounters/resources/v4/types/IntakeFollowUp.d.ts +1 -1
  25. package/api/resources/encounters/resources/v4/types/ResponsiblePartyType.d.ts +9 -0
  26. package/api/resources/encounters/resources/v4/types/ResponsiblePartyType.js +11 -0
  27. package/api/resources/encounters/resources/v4/types/index.d.ts +3 -0
  28. package/api/resources/encounters/resources/v4/types/index.js +3 -0
  29. package/api/resources/expectedNetworkStatus/client/Client.js +1 -1
  30. package/api/resources/guarantor/resources/v1/client/Client.d.ts +2 -2
  31. package/api/resources/guarantor/resources/v1/client/Client.js +20 -6
  32. package/api/resources/guarantor/resources/v1/client/create.d.ts +7 -1
  33. package/api/resources/guarantor/resources/v1/client/create.js +11 -0
  34. package/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +6 -3
  35. package/api/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.d.ts +6 -0
  36. package/api/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.js +5 -0
  37. package/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +4 -0
  38. package/api/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -2
  39. package/api/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +6 -0
  40. package/api/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  41. package/api/resources/guarantor/resources/v1/types/index.js +1 -0
  42. package/api/resources/index.d.ts +1 -1
  43. package/api/resources/index.js +2 -2
  44. package/api/resources/individual/types/Patient.d.ts +4 -0
  45. package/api/resources/individual/types/PatientBase.d.ts +0 -1
  46. package/api/resources/individual/types/PatientCreate.d.ts +6 -0
  47. package/api/resources/insuranceCard/types/InsuranceCardBase.d.ts +1 -1
  48. package/api/resources/insuranceCard/types/InsuranceCardCreate.d.ts +1 -0
  49. package/api/resources/payers/client/Client.js +2 -2
  50. package/api/resources/serviceLines/types/ServiceLine.d.ts +13 -1
  51. package/api/resources/serviceLines/types/ServiceLineCreate.d.ts +7 -1
  52. package/api/resources/tasks/client/Client.d.ts +18 -0
  53. package/api/resources/tasks/client/Client.js +18 -0
  54. package/api/resources/tasks/client/index.d.ts +1 -0
  55. package/api/resources/tasks/client/index.js +2 -0
  56. package/api/resources/tasks/index.d.ts +2 -0
  57. package/api/resources/tasks/index.js +2 -0
  58. package/api/resources/tasks/resources/index.d.ts +1 -0
  59. package/api/resources/tasks/resources/index.js +27 -0
  60. package/api/resources/tasks/resources/v3/client/Client.d.ts +18 -0
  61. package/api/resources/tasks/resources/v3/client/Client.js +80 -0
  62. package/api/resources/tasks/resources/v3/client/getActions.d.ts +22 -0
  63. package/api/resources/tasks/resources/v3/client/getActions.js +47 -0
  64. package/api/resources/tasks/resources/v3/client/index.d.ts +1 -0
  65. package/api/resources/tasks/resources/v3/client/index.js +27 -0
  66. package/api/resources/tasks/resources/v3/index.d.ts +2 -0
  67. package/api/resources/tasks/resources/v3/index.js +18 -0
  68. package/api/resources/tasks/resources/v3/types/TaskAction.d.ts +8 -0
  69. package/api/resources/tasks/resources/v3/types/TaskAction.js +5 -0
  70. package/api/resources/tasks/resources/v3/types/TaskActionExecutionMethod.d.ts +10 -0
  71. package/api/resources/tasks/resources/v3/types/TaskActionExecutionMethod.js +5 -0
  72. package/api/resources/tasks/resources/v3/types/TaskActions.d.ts +7 -0
  73. package/api/resources/tasks/resources/v3/types/TaskActions.js +5 -0
  74. package/api/resources/tasks/resources/v3/types/index.d.ts +3 -0
  75. package/api/resources/tasks/resources/v3/types/index.js +19 -0
  76. package/api/resources/users/resources/v2/types/UserV2.d.ts +1 -1
  77. package/api/resources/users/resources/v2/types/index.d.ts +0 -1
  78. package/api/resources/users/resources/v2/types/index.js +0 -1
  79. package/dist/Client.d.ts +3 -0
  80. package/dist/Client.js +11 -6
  81. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  82. package/dist/api/resources/billingNotes/client/Client.js +1 -1
  83. package/dist/api/resources/commons/types/DateRangeOptionalEnd.d.ts +8 -0
  84. package/dist/api/resources/commons/types/DateRangeOptionalEnd.js +5 -0
  85. package/dist/api/resources/commons/types/Decimal.d.ts +11 -0
  86. package/dist/api/resources/commons/types/Decimal.js +10 -0
  87. package/dist/api/resources/commons/types/EmrPayerCrosswalk.d.ts +8 -0
  88. package/dist/api/resources/commons/types/EmrPayerCrosswalk.js +10 -0
  89. package/dist/api/resources/commons/types/UserId.d.ts +8 -0
  90. package/dist/api/resources/commons/types/index.d.ts +4 -1
  91. package/dist/api/resources/commons/types/index.js +4 -1
  92. package/dist/api/resources/encounters/resources/v4/client/Client.js +16 -12
  93. package/dist/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
  94. package/dist/api/resources/encounters/resources/v4/client/create.js +11 -0
  95. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -1
  96. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +8 -7
  97. package/dist/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +2 -1
  98. package/dist/api/resources/encounters/resources/v4/types/BillableStatusType.d.ts +8 -0
  99. package/dist/api/resources/encounters/resources/v4/types/BillableStatusType.js +10 -0
  100. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  101. package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +13 -7
  102. package/dist/api/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.d.ts +6 -0
  103. package/dist/api/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.js +5 -0
  104. package/dist/api/resources/encounters/resources/v4/types/IntakeFollowUp.d.ts +1 -1
  105. package/dist/api/resources/encounters/resources/v4/types/ResponsiblePartyType.d.ts +9 -0
  106. package/dist/api/resources/encounters/resources/v4/types/ResponsiblePartyType.js +11 -0
  107. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +3 -0
  108. package/dist/api/resources/encounters/resources/v4/types/index.js +3 -0
  109. package/dist/api/resources/expectedNetworkStatus/client/Client.js +1 -1
  110. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +2 -2
  111. package/dist/api/resources/guarantor/resources/v1/client/Client.js +20 -6
  112. package/dist/api/resources/guarantor/resources/v1/client/create.d.ts +7 -1
  113. package/dist/api/resources/guarantor/resources/v1/client/create.js +11 -0
  114. package/dist/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +6 -3
  115. package/dist/api/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.d.ts +6 -0
  116. package/dist/api/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.js +5 -0
  117. package/dist/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +4 -0
  118. package/dist/api/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -2
  119. package/dist/api/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +6 -0
  120. package/dist/api/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  121. package/dist/api/resources/guarantor/resources/v1/types/index.js +1 -0
  122. package/dist/api/resources/index.d.ts +1 -1
  123. package/dist/api/resources/index.js +2 -2
  124. package/dist/api/resources/individual/types/Patient.d.ts +4 -0
  125. package/dist/api/resources/individual/types/PatientBase.d.ts +0 -1
  126. package/dist/api/resources/individual/types/PatientCreate.d.ts +6 -0
  127. package/dist/api/resources/insuranceCard/types/InsuranceCardBase.d.ts +1 -1
  128. package/dist/api/resources/insuranceCard/types/InsuranceCardCreate.d.ts +1 -0
  129. package/dist/api/resources/payers/client/Client.js +2 -2
  130. package/dist/api/resources/serviceLines/types/ServiceLine.d.ts +13 -1
  131. package/dist/api/resources/serviceLines/types/ServiceLineCreate.d.ts +7 -1
  132. package/dist/api/resources/tasks/client/Client.d.ts +18 -0
  133. package/dist/api/resources/tasks/client/Client.js +18 -0
  134. package/dist/api/resources/tasks/client/index.d.ts +1 -0
  135. package/dist/api/resources/tasks/client/index.js +2 -0
  136. package/dist/api/resources/tasks/index.d.ts +2 -0
  137. package/dist/api/resources/tasks/index.js +2 -0
  138. package/dist/api/resources/tasks/resources/index.d.ts +1 -0
  139. package/dist/api/resources/tasks/resources/index.js +27 -0
  140. package/dist/api/resources/tasks/resources/v3/client/Client.d.ts +18 -0
  141. package/dist/api/resources/tasks/resources/v3/client/Client.js +80 -0
  142. package/dist/api/resources/tasks/resources/v3/client/getActions.d.ts +22 -0
  143. package/dist/api/resources/tasks/resources/v3/client/getActions.js +47 -0
  144. package/dist/api/resources/tasks/resources/v3/client/index.d.ts +1 -0
  145. package/dist/api/resources/tasks/resources/v3/client/index.js +27 -0
  146. package/dist/api/resources/tasks/resources/v3/index.d.ts +2 -0
  147. package/dist/api/resources/tasks/resources/v3/index.js +18 -0
  148. package/dist/api/resources/tasks/resources/v3/types/TaskAction.d.ts +8 -0
  149. package/dist/api/resources/tasks/resources/v3/types/TaskAction.js +5 -0
  150. package/dist/api/resources/tasks/resources/v3/types/TaskActionExecutionMethod.d.ts +10 -0
  151. package/dist/api/resources/tasks/resources/v3/types/TaskActionExecutionMethod.js +5 -0
  152. package/dist/api/resources/tasks/resources/v3/types/TaskActions.d.ts +7 -0
  153. package/dist/api/resources/tasks/resources/v3/types/TaskActions.js +5 -0
  154. package/dist/api/resources/tasks/resources/v3/types/index.d.ts +3 -0
  155. package/dist/api/resources/tasks/resources/v3/types/index.js +19 -0
  156. package/dist/api/resources/users/resources/v2/types/UserV2.d.ts +1 -1
  157. package/dist/api/resources/users/resources/v2/types/index.d.ts +0 -1
  158. package/dist/api/resources/users/resources/v2/types/index.js +0 -1
  159. package/dist/serialization/resources/commons/types/DateRangeOptionalEnd.d.ts +13 -0
  160. package/dist/serialization/resources/commons/types/{ContactInfo.js → DateRangeOptionalEnd.js} +4 -6
  161. package/dist/serialization/resources/commons/types/Decimal.d.ts +10 -0
  162. package/{serialization/resources/commons/types/ContactInfo.js → dist/serialization/resources/commons/types/Decimal.js} +7 -6
  163. package/dist/serialization/resources/commons/types/EmrPayerCrosswalk.d.ts +10 -0
  164. package/dist/serialization/resources/commons/types/EmrPayerCrosswalk.js +31 -0
  165. package/dist/serialization/resources/commons/types/UserId.d.ts +10 -0
  166. package/dist/serialization/resources/commons/types/UserId.js +37 -0
  167. package/dist/serialization/resources/commons/types/index.d.ts +4 -1
  168. package/dist/serialization/resources/commons/types/index.js +4 -1
  169. package/dist/serialization/resources/encounters/resources/v4/client/create.d.ts +5 -1
  170. package/dist/serialization/resources/encounters/resources/v4/client/create.js +5 -0
  171. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -1
  172. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +0 -1
  173. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +8 -2
  174. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +14 -2
  175. package/dist/serialization/resources/encounters/resources/v4/types/BillableStatusType.d.ts +10 -0
  176. package/dist/serialization/resources/encounters/resources/v4/types/BillableStatusType.js +31 -0
  177. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  178. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +3 -0
  179. package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +3 -2
  180. package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.js +3 -2
  181. package/dist/serialization/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.d.ts +12 -0
  182. package/dist/serialization/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.js +33 -0
  183. package/dist/serialization/resources/encounters/resources/v4/types/IntakeFollowUp.d.ts +1 -1
  184. package/dist/serialization/resources/encounters/resources/v4/types/IntakeFollowUp.js +1 -1
  185. package/dist/serialization/resources/encounters/resources/v4/types/ResponsiblePartyType.d.ts +10 -0
  186. package/dist/serialization/resources/encounters/resources/v4/types/ResponsiblePartyType.js +31 -0
  187. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +3 -0
  188. package/dist/serialization/resources/encounters/resources/v4/types/index.js +3 -0
  189. package/dist/serialization/resources/guarantor/resources/v1/client/create.d.ts +14 -0
  190. package/dist/serialization/resources/guarantor/resources/v1/client/create.js +46 -0
  191. package/dist/serialization/resources/guarantor/resources/v1/client/index.d.ts +1 -0
  192. package/dist/serialization/resources/guarantor/resources/v1/client/index.js +14 -0
  193. package/dist/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +6 -3
  194. package/dist/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.js +8 -3
  195. package/dist/serialization/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.d.ts +12 -0
  196. package/dist/serialization/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.js +33 -0
  197. package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +4 -0
  198. package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.js +4 -0
  199. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -2
  200. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +1 -2
  201. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +4 -0
  202. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.js +8 -1
  203. package/dist/serialization/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  204. package/dist/serialization/resources/guarantor/resources/v1/types/index.js +1 -0
  205. package/dist/serialization/resources/index.d.ts +1 -1
  206. package/dist/serialization/resources/index.js +2 -2
  207. package/dist/serialization/resources/individual/types/Patient.d.ts +4 -0
  208. package/dist/serialization/resources/individual/types/Patient.js +4 -0
  209. package/dist/serialization/resources/individual/types/PatientBase.d.ts +0 -1
  210. package/dist/serialization/resources/individual/types/PatientBase.js +0 -1
  211. package/dist/serialization/resources/individual/types/PatientCreate.d.ts +4 -0
  212. package/dist/serialization/resources/individual/types/PatientCreate.js +8 -1
  213. package/dist/serialization/resources/insuranceCard/types/InsuranceCardBase.d.ts +1 -1
  214. package/dist/serialization/resources/insuranceCard/types/InsuranceCardBase.js +1 -1
  215. package/dist/serialization/resources/insuranceCard/types/InsuranceCardCreate.d.ts +1 -0
  216. package/dist/serialization/resources/insuranceCard/types/InsuranceCardCreate.js +1 -0
  217. package/dist/serialization/resources/serviceLines/types/ServiceLine.d.ts +2 -1
  218. package/dist/serialization/resources/serviceLines/types/ServiceLine.js +2 -1
  219. package/dist/serialization/resources/serviceLines/types/ServiceLineCreate.d.ts +1 -1
  220. package/dist/serialization/resources/serviceLines/types/ServiceLineCreate.js +1 -1
  221. package/dist/serialization/resources/tasks/index.d.ts +1 -0
  222. package/dist/serialization/resources/tasks/index.js +1 -0
  223. package/dist/serialization/resources/tasks/resources/index.d.ts +1 -0
  224. package/dist/serialization/resources/tasks/resources/index.js +27 -0
  225. package/dist/serialization/resources/tasks/resources/v3/index.d.ts +1 -0
  226. package/dist/serialization/resources/tasks/resources/v3/index.js +17 -0
  227. package/dist/serialization/resources/tasks/resources/v3/types/TaskAction.d.ts +13 -0
  228. package/dist/serialization/resources/tasks/resources/v3/types/TaskAction.js +34 -0
  229. package/dist/serialization/resources/tasks/resources/v3/types/TaskActionExecutionMethod.d.ts +13 -0
  230. package/dist/serialization/resources/{users/resources/v2/types/UserId.js → tasks/resources/v3/types/TaskActionExecutionMethod.js} +7 -4
  231. package/dist/serialization/resources/tasks/resources/v3/types/TaskActions.d.ts +12 -0
  232. package/dist/serialization/resources/tasks/resources/v3/types/TaskActions.js +33 -0
  233. package/dist/serialization/resources/tasks/resources/v3/types/index.d.ts +3 -0
  234. package/dist/serialization/resources/tasks/resources/v3/types/index.js +19 -0
  235. package/dist/serialization/resources/users/resources/v2/types/UserV2.d.ts +1 -1
  236. package/dist/serialization/resources/users/resources/v2/types/UserV2.js +1 -1
  237. package/dist/serialization/resources/users/resources/v2/types/index.d.ts +0 -1
  238. package/dist/serialization/resources/users/resources/v2/types/index.js +0 -1
  239. package/package.json +1 -1
  240. package/serialization/resources/commons/types/DateRangeOptionalEnd.d.ts +13 -0
  241. package/serialization/resources/commons/types/DateRangeOptionalEnd.js +34 -0
  242. package/serialization/resources/commons/types/Decimal.d.ts +10 -0
  243. package/serialization/resources/commons/types/Decimal.js +37 -0
  244. package/serialization/resources/commons/types/EmrPayerCrosswalk.d.ts +10 -0
  245. package/serialization/resources/commons/types/EmrPayerCrosswalk.js +31 -0
  246. package/serialization/resources/commons/types/UserId.d.ts +10 -0
  247. package/serialization/resources/commons/types/UserId.js +37 -0
  248. package/serialization/resources/commons/types/index.d.ts +4 -1
  249. package/serialization/resources/commons/types/index.js +4 -1
  250. package/serialization/resources/encounters/resources/v4/client/create.d.ts +5 -1
  251. package/serialization/resources/encounters/resources/v4/client/create.js +5 -0
  252. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -1
  253. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +0 -1
  254. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +8 -2
  255. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +14 -2
  256. package/serialization/resources/encounters/resources/v4/types/BillableStatusType.d.ts +10 -0
  257. package/serialization/resources/encounters/resources/v4/types/BillableStatusType.js +31 -0
  258. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  259. package/serialization/resources/encounters/resources/v4/types/Encounter.js +3 -0
  260. package/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +3 -2
  261. package/serialization/resources/encounters/resources/v4/types/EncounterBase.js +3 -2
  262. package/serialization/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.d.ts +12 -0
  263. package/serialization/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.js +33 -0
  264. package/serialization/resources/encounters/resources/v4/types/IntakeFollowUp.d.ts +1 -1
  265. package/serialization/resources/encounters/resources/v4/types/IntakeFollowUp.js +1 -1
  266. package/serialization/resources/encounters/resources/v4/types/ResponsiblePartyType.d.ts +10 -0
  267. package/serialization/resources/encounters/resources/v4/types/ResponsiblePartyType.js +31 -0
  268. package/serialization/resources/encounters/resources/v4/types/index.d.ts +3 -0
  269. package/serialization/resources/encounters/resources/v4/types/index.js +3 -0
  270. package/serialization/resources/guarantor/resources/v1/client/create.d.ts +14 -0
  271. package/serialization/resources/guarantor/resources/v1/client/create.js +46 -0
  272. package/serialization/resources/guarantor/resources/v1/client/index.d.ts +1 -0
  273. package/serialization/resources/guarantor/resources/v1/client/index.js +14 -0
  274. package/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +6 -3
  275. package/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.js +8 -3
  276. package/serialization/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.d.ts +12 -0
  277. package/serialization/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.js +33 -0
  278. package/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +4 -0
  279. package/serialization/resources/guarantor/resources/v1/types/Guarantor.js +4 -0
  280. package/serialization/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -2
  281. package/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +1 -2
  282. package/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +4 -0
  283. package/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.js +8 -1
  284. package/serialization/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  285. package/serialization/resources/guarantor/resources/v1/types/index.js +1 -0
  286. package/serialization/resources/index.d.ts +1 -1
  287. package/serialization/resources/index.js +2 -2
  288. package/serialization/resources/individual/types/Patient.d.ts +4 -0
  289. package/serialization/resources/individual/types/Patient.js +4 -0
  290. package/serialization/resources/individual/types/PatientBase.d.ts +0 -1
  291. package/serialization/resources/individual/types/PatientBase.js +0 -1
  292. package/serialization/resources/individual/types/PatientCreate.d.ts +4 -0
  293. package/serialization/resources/individual/types/PatientCreate.js +8 -1
  294. package/serialization/resources/insuranceCard/types/InsuranceCardBase.d.ts +1 -1
  295. package/serialization/resources/insuranceCard/types/InsuranceCardBase.js +1 -1
  296. package/serialization/resources/insuranceCard/types/InsuranceCardCreate.d.ts +1 -0
  297. package/serialization/resources/insuranceCard/types/InsuranceCardCreate.js +1 -0
  298. package/serialization/resources/serviceLines/types/ServiceLine.d.ts +2 -1
  299. package/serialization/resources/serviceLines/types/ServiceLine.js +2 -1
  300. package/serialization/resources/serviceLines/types/ServiceLineCreate.d.ts +1 -1
  301. package/serialization/resources/serviceLines/types/ServiceLineCreate.js +1 -1
  302. package/serialization/resources/tasks/index.d.ts +1 -0
  303. package/serialization/resources/tasks/index.js +1 -0
  304. package/serialization/resources/tasks/resources/index.d.ts +1 -0
  305. package/serialization/resources/tasks/resources/index.js +27 -0
  306. package/serialization/resources/tasks/resources/v3/index.d.ts +1 -0
  307. package/serialization/resources/tasks/resources/v3/index.js +17 -0
  308. package/serialization/resources/tasks/resources/v3/types/TaskAction.d.ts +13 -0
  309. package/serialization/resources/tasks/resources/v3/types/TaskAction.js +34 -0
  310. package/serialization/resources/tasks/resources/v3/types/TaskActionExecutionMethod.d.ts +13 -0
  311. package/serialization/resources/{users/resources/v2/types/UserId.js → tasks/resources/v3/types/TaskActionExecutionMethod.js} +7 -4
  312. package/serialization/resources/tasks/resources/v3/types/TaskActions.d.ts +12 -0
  313. package/serialization/resources/tasks/resources/v3/types/TaskActions.js +33 -0
  314. package/serialization/resources/tasks/resources/v3/types/index.d.ts +3 -0
  315. package/serialization/resources/tasks/resources/v3/types/index.js +19 -0
  316. package/serialization/resources/users/resources/v2/types/UserV2.d.ts +1 -1
  317. package/serialization/resources/users/resources/v2/types/UserV2.js +1 -1
  318. package/serialization/resources/users/resources/v2/types/index.d.ts +0 -1
  319. package/serialization/resources/users/resources/v2/types/index.js +0 -1
  320. package/api/resources/commons/types/ContactInfo.d.ts +0 -10
  321. package/api/resources/users/resources/v2/types/UserId.d.ts +0 -8
  322. package/dist/api/resources/commons/types/ContactInfo.d.ts +0 -10
  323. package/dist/api/resources/users/resources/v2/types/UserId.d.ts +0 -8
  324. package/dist/serialization/resources/commons/types/ContactInfo.d.ts +0 -15
  325. package/dist/serialization/resources/users/resources/v2/types/UserId.d.ts +0 -10
  326. package/serialization/resources/commons/types/ContactInfo.d.ts +0 -15
  327. package/serialization/resources/users/resources/v2/types/UserId.d.ts +0 -10
  328. /package/api/resources/commons/types/{ContactInfo.js → DateRangeOptionalEnd.js} +0 -0
  329. /package/api/resources/{users/resources/v2 → commons}/types/UserId.js +0 -0
  330. /package/{dist/api/resources/commons/types/ContactInfo.js → api/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.js} +0 -0
  331. /package/dist/api/resources/{users/resources/v2 → commons}/types/UserId.js +0 -0
@@ -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.TaskAction = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.TaskAction = core.serialization.object({
32
+ displayName: core.serialization.property("display_name", core.serialization.string()),
33
+ executionMethod: core.serialization.property("execution_method", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).tasks.v3.TaskActionExecutionMethod)),
34
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const TaskActionExecutionMethod: core.serialization.Schema<serializers.tasks.v3.TaskActionExecutionMethod.Raw, CandidApi.tasks.v3.TaskActionExecutionMethod>;
8
+ export declare namespace TaskActionExecutionMethod {
9
+ type Raw = TaskActionExecutionMethod.CloseTask;
10
+ interface CloseTask {
11
+ type: "close_task";
12
+ }
13
+ }
@@ -26,10 +26,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.UserId = void 0;
30
- const CandidApi = __importStar(require("../../../../../../api"));
29
+ exports.TaskActionExecutionMethod = void 0;
31
30
  const core = __importStar(require("../../../../../../core"));
32
- exports.UserId = core.serialization.string().transform({
33
- transform: CandidApi.users.v2.UserId,
31
+ exports.TaskActionExecutionMethod = core.serialization
32
+ .union("type", {
33
+ close_task: core.serialization.object({}),
34
+ })
35
+ .transform({
36
+ transform: (value) => value,
34
37
  untransform: (value) => value,
35
38
  });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const TaskActions: core.serialization.ObjectSchema<serializers.tasks.v3.TaskActions.Raw, CandidApi.tasks.v3.TaskActions>;
8
+ export declare namespace TaskActions {
9
+ interface Raw {
10
+ actions: serializers.tasks.v3.TaskAction.Raw[];
11
+ }
12
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.TaskActions = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.TaskActions = core.serialization.object({
32
+ actions: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).tasks.v3.TaskAction)),
33
+ });
@@ -0,0 +1,3 @@
1
+ export * from "./TaskActionExecutionMethod";
2
+ export * from "./TaskActions";
3
+ export * from "./TaskAction";
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./TaskActionExecutionMethod"), exports);
18
+ __exportStar(require("./TaskActions"), exports);
19
+ __exportStar(require("./TaskAction"), exports);
@@ -7,7 +7,7 @@ import * as core from "../../../../../../core";
7
7
  export declare const UserV2: core.serialization.ObjectSchema<serializers.users.v2.UserV2.Raw, CandidApi.users.v2.UserV2>;
8
8
  export declare namespace UserV2 {
9
9
  interface Raw {
10
- user_id: serializers.users.v2.UserId.Raw;
10
+ user_id: serializers.UserId.Raw;
11
11
  idp_metadata: serializers.users.v2.IdpUserMetadata.Raw[];
12
12
  primary_organization_id: serializers.OrganizationId.Raw;
13
13
  user_metadata: serializers.users.v2.UserMetadata.Raw;
@@ -29,7 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.UserV2 = void 0;
30
30
  const core = __importStar(require("../../../../../../core"));
31
31
  exports.UserV2 = core.serialization.object({
32
- userId: core.serialization.property("user_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).users.v2.UserId)),
32
+ userId: core.serialization.property("user_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).UserId)),
33
33
  idpMetadata: core.serialization.property("idp_metadata", core.serialization.list(core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).users.v2.IdpUserMetadata))),
34
34
  primaryOrganizationId: core.serialization.property("primary_organization_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).OrganizationId)),
35
35
  userMetadata: core.serialization.property("user_metadata", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).users.v2.UserMetadata)),
@@ -1,5 +1,4 @@
1
1
  export * from "./HumanUserMetadata";
2
- export * from "./UserId";
3
2
  export * from "./MachineUserMetadata";
4
3
  export * from "./UserMetadata";
5
4
  export * from "./AuthZeroMetadata";
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./HumanUserMetadata"), exports);
18
- __exportStar(require("./UserId"), exports);
19
18
  __exportStar(require("./MachineUserMetadata"), exports);
20
19
  __exportStar(require("./UserMetadata"), exports);
21
20
  __exportStar(require("./AuthZeroMetadata"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "candidhealth",
3
- "version": "0.2.1",
3
+ "version": "0.3.1",
4
4
  "private": false,
5
5
  "repository": "https://github.com/candidhealth/candid-node",
6
6
  "main": "./index.js",
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../..";
5
+ import * as CandidApi from "../../../../api";
6
+ import * as core from "../../../../core";
7
+ export declare const DateRangeOptionalEnd: core.serialization.ObjectSchema<serializers.DateRangeOptionalEnd.Raw, CandidApi.DateRangeOptionalEnd>;
8
+ export declare namespace DateRangeOptionalEnd {
9
+ interface Raw {
10
+ start_date: serializers.Date_.Raw;
11
+ end_date?: serializers.Date_.Raw | null;
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.DateRangeOptionalEnd = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.DateRangeOptionalEnd = core.serialization.object({
32
+ startDate: core.serialization.property("start_date", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).Date_)),
33
+ endDate: core.serialization.property("end_date", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).Date_).optional()),
34
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../..";
5
+ import * as CandidApi from "../../../../api";
6
+ import * as core from "../../../../core";
7
+ export declare const Decimal: core.serialization.Schema<serializers.Decimal.Raw, CandidApi.Decimal>;
8
+ export declare namespace Decimal {
9
+ type Raw = string;
10
+ }
@@ -0,0 +1,37 @@
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.Decimal = void 0;
30
+ const CandidApi = __importStar(require("../../../../api"));
31
+ const core = __importStar(require("../../../../core"));
32
+ exports.Decimal = core.serialization
33
+ .string()
34
+ .transform({
35
+ transform: CandidApi.Decimal,
36
+ untransform: (value) => value,
37
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../..";
5
+ import * as CandidApi from "../../../../api";
6
+ import * as core from "../../../../core";
7
+ export declare const EmrPayerCrosswalk: core.serialization.Schema<serializers.EmrPayerCrosswalk.Raw, CandidApi.EmrPayerCrosswalk>;
8
+ export declare namespace EmrPayerCrosswalk {
9
+ type Raw = "HEALTHIE" | "CANVAS";
10
+ }
@@ -0,0 +1,31 @@
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.EmrPayerCrosswalk = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.EmrPayerCrosswalk = core.serialization.enum_(["HEALTHIE", "CANVAS"]);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../..";
5
+ import * as CandidApi from "../../../../api";
6
+ import * as core from "../../../../core";
7
+ export declare const UserId: core.serialization.Schema<serializers.UserId.Raw, CandidApi.UserId>;
8
+ export declare namespace UserId {
9
+ type Raw = string;
10
+ }
@@ -0,0 +1,37 @@
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.UserId = void 0;
30
+ const CandidApi = __importStar(require("../../../../api"));
31
+ const core = __importStar(require("../../../../core"));
32
+ exports.UserId = core.serialization
33
+ .string()
34
+ .transform({
35
+ transform: CandidApi.UserId,
36
+ untransform: (value) => value,
37
+ });
@@ -6,10 +6,13 @@ export * from "./PatientExternalId";
6
6
  export * from "./EncounterExternalId";
7
7
  export * from "./Npi";
8
8
  export * from "./WorkQueueId";
9
+ export * from "./UserId";
9
10
  export * from "./LinkUrl";
10
11
  export * from "./ContentDownloadUrl";
11
12
  export * from "./PageToken";
12
13
  export * from "./Date_";
14
+ export * from "./DateRangeOptionalEnd";
15
+ export * from "./Decimal";
13
16
  export * from "./ResourcePage";
14
17
  export * from "./StreetAddressBase";
15
18
  export * from "./StreetAddressShortZip";
@@ -24,7 +27,7 @@ export * from "./PatientRelationshipToInsuredCodeAll";
24
27
  export * from "./ProcedureModifier";
25
28
  export * from "./ServiceLineUnits";
26
29
  export * from "./InsuranceTypeCode";
30
+ export * from "./EmrPayerCrosswalk";
27
31
  export * from "./PhoneNumber";
28
32
  export * from "./PhoneNumberType";
29
33
  export * from "./Email";
30
- export * from "./ContactInfo";
@@ -22,10 +22,13 @@ __exportStar(require("./PatientExternalId"), exports);
22
22
  __exportStar(require("./EncounterExternalId"), exports);
23
23
  __exportStar(require("./Npi"), exports);
24
24
  __exportStar(require("./WorkQueueId"), exports);
25
+ __exportStar(require("./UserId"), exports);
25
26
  __exportStar(require("./LinkUrl"), exports);
26
27
  __exportStar(require("./ContentDownloadUrl"), exports);
27
28
  __exportStar(require("./PageToken"), exports);
28
29
  __exportStar(require("./Date_"), exports);
30
+ __exportStar(require("./DateRangeOptionalEnd"), exports);
31
+ __exportStar(require("./Decimal"), exports);
29
32
  __exportStar(require("./ResourcePage"), exports);
30
33
  __exportStar(require("./StreetAddressBase"), exports);
31
34
  __exportStar(require("./StreetAddressShortZip"), exports);
@@ -40,7 +43,7 @@ __exportStar(require("./PatientRelationshipToInsuredCodeAll"), exports);
40
43
  __exportStar(require("./ProcedureModifier"), exports);
41
44
  __exportStar(require("./ServiceLineUnits"), exports);
42
45
  __exportStar(require("./InsuranceTypeCode"), exports);
46
+ __exportStar(require("./EmrPayerCrosswalk"), exports);
43
47
  __exportStar(require("./PhoneNumber"), exports);
44
48
  __exportStar(require("./PhoneNumberType"), exports);
45
49
  __exportStar(require("./Email"), exports);
46
- __exportStar(require("./ContactInfo"), exports);
@@ -6,9 +6,13 @@ import * as CandidApi from "../../../../../../api";
6
6
  import * as core from "../../../../../../core";
7
7
  export declare const Error: core.serialization.Schema<serializers.encounters.v4.create.Error.Raw, CandidApi.encounters.v4.create.Error>;
8
8
  export declare namespace Error {
9
- type Raw = Error.EncounterExternalIdUniquenessError;
9
+ type Raw = Error.EncounterExternalIdUniquenessError | Error.EncounterGuarantorMissingContactInfoError;
10
10
  interface EncounterExternalIdUniquenessError {
11
11
  errorName: "EncounterExternalIdUniquenessError";
12
12
  content: serializers.encounters.v4.EncounterExternalIdUniquenessErrorType.Raw;
13
13
  }
14
+ interface EncounterGuarantorMissingContactInfoError {
15
+ errorName: "EncounterGuarantorMissingContactInfoError";
16
+ content: serializers.encounters.v4.EncounterGuarantorMissingContactInfoErrorType.Raw;
17
+ }
14
18
  }
@@ -34,12 +34,17 @@ exports.Error = core.serialization
34
34
  EncounterExternalIdUniquenessError: core.serialization.object({
35
35
  content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).encounters.v4.EncounterExternalIdUniquenessErrorType),
36
36
  }),
37
+ EncounterGuarantorMissingContactInfoError: core.serialization.object({
38
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).encounters.v4.EncounterGuarantorMissingContactInfoErrorType),
39
+ }),
37
40
  })
38
41
  .transform({
39
42
  transform: (value) => {
40
43
  switch (value.errorName) {
41
44
  case "EncounterExternalIdUniquenessError":
42
45
  return CandidApi.encounters.v4.create.Error.encounterExternalIdUniquenessError(value.content);
46
+ case "EncounterGuarantorMissingContactInfoError":
47
+ return CandidApi.encounters.v4.create.Error.encounterGuarantorMissingContactInfoError(value.content);
43
48
  }
44
49
  },
45
50
  untransform: ({ _visit, ...value }) => value,
@@ -8,7 +8,6 @@ export declare const EncounterCreate: core.serialization.Schema<serializers.enco
8
8
  export declare namespace EncounterCreate {
9
9
  interface Raw extends serializers.encounters.v4.EncounterBase.Raw {
10
10
  patient: serializers.PatientCreate.Raw;
11
- patient_is_self_guarantor?: boolean | null;
12
11
  billing_provider: serializers.encounterProviders.v2.BillingProvider.Raw;
13
12
  rendering_provider: serializers.encounterProviders.v2.RenderingProvider.Raw;
14
13
  referring_provider?: serializers.encounterProviders.v2.ReferringProvider.Raw | null;
@@ -31,7 +31,6 @@ const core = __importStar(require("../../../../../../../core"));
31
31
  exports.EncounterCreate = core.serialization
32
32
  .object({
33
33
  patient: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).PatientCreate),
34
- patientIsSelfGuarantor: core.serialization.property("patient_is_self_guarantor", core.serialization.boolean().optional()),
35
34
  billingProvider: core.serialization.property("billing_provider", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).encounterProviders.v2.BillingProvider)),
36
35
  renderingProvider: core.serialization.property("rendering_provider", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).encounterProviders.v2.RenderingProvider)),
37
36
  referringProvider: core.serialization.property("referring_provider", core.serialization
@@ -14,7 +14,13 @@ export declare namespace EncounterUpdate {
14
14
  tag_ids?: serializers.TagId.Raw[] | null;
15
15
  clinical_notes?: serializers.encounters.v4.ClinicalNoteCategoryCreate.Raw[] | null;
16
16
  pay_to_address?: serializers.StreetAddressLongZip.Raw | null;
17
- patient_is_self_guarantor?: boolean | null;
18
- guarantor_id?: serializers.guarantor.v1.GuarantorId.Raw | null;
17
+ billable_status?: serializers.encounters.v4.BillableStatusType.Raw | null;
18
+ responsible_party?: serializers.encounters.v4.ResponsiblePartyType.Raw | null;
19
+ provider_accepts_assignment?: boolean | null;
20
+ benefits_assigned_to_provider?: boolean | null;
21
+ synchronicity?: serializers.encounters.v4.SynchronicityType.Raw | null;
22
+ place_of_service_code?: serializers.FacilityTypeCode.Raw | null;
23
+ appointment_type?: string | null;
24
+ end_date_of_service?: serializers.Date_.Raw | null;
19
25
  }
20
26
  }
@@ -44,6 +44,18 @@ exports.EncounterUpdate = core.serialization.object({
44
44
  .list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).encounters.v4.ClinicalNoteCategoryCreate))
45
45
  .optional()),
46
46
  payToAddress: core.serialization.property("pay_to_address", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).StreetAddressLongZip).optional()),
47
- patientIsSelfGuarantor: core.serialization.property("patient_is_self_guarantor", core.serialization.boolean().optional()),
48
- guarantorId: core.serialization.property("guarantor_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).guarantor.v1.GuarantorId).optional()),
47
+ billableStatus: core.serialization.property("billable_status", core.serialization
48
+ .lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).encounters.v4.BillableStatusType)
49
+ .optional()),
50
+ responsibleParty: core.serialization.property("responsible_party", core.serialization
51
+ .lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).encounters.v4.ResponsiblePartyType)
52
+ .optional()),
53
+ providerAcceptsAssignment: core.serialization.property("provider_accepts_assignment", core.serialization.boolean().optional()),
54
+ benefitsAssignedToProvider: core.serialization.property("benefits_assigned_to_provider", core.serialization.boolean().optional()),
55
+ synchronicity: core.serialization
56
+ .lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).encounters.v4.SynchronicityType)
57
+ .optional(),
58
+ placeOfServiceCode: core.serialization.property("place_of_service_code", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).FacilityTypeCode).optional()),
59
+ appointmentType: core.serialization.property("appointment_type", core.serialization.string().optional()),
60
+ endDateOfService: core.serialization.property("end_date_of_service", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).Date_).optional()),
49
61
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const BillableStatusType: core.serialization.Schema<serializers.encounters.v4.BillableStatusType.Raw, CandidApi.encounters.v4.BillableStatusType>;
8
+ export declare namespace BillableStatusType {
9
+ type Raw = "BILLABLE" | "NOT_BILLABLE";
10
+ }
@@ -0,0 +1,31 @@
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.BillableStatusType = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.BillableStatusType = core.serialization.enum_(["BILLABLE", "NOT_BILLABLE"]);
@@ -10,6 +10,7 @@ export declare namespace Encounter {
10
10
  encounter_id: serializers.EncounterId.Raw;
11
11
  claims: serializers.Claim.Raw[];
12
12
  patient: serializers.Patient.Raw;
13
+ guarantor?: serializers.guarantor.v1.Guarantor.Raw | null;
13
14
  billing_provider: serializers.encounterProviders.v2.EncounterProvider.Raw;
14
15
  rendering_provider: serializers.encounterProviders.v2.EncounterProvider.Raw;
15
16
  referring_provider?: serializers.encounterProviders.v2.EncounterProvider.Raw | null;
@@ -33,6 +33,9 @@ exports.Encounter = core.serialization
33
33
  encounterId: core.serialization.property("encounter_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).EncounterId)),
34
34
  claims: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).Claim)),
35
35
  patient: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).Patient),
36
+ guarantor: core.serialization
37
+ .lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).guarantor.v1.Guarantor)
38
+ .optional(),
36
39
  billingProvider: core.serialization.property("billing_provider", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).encounterProviders.v2.EncounterProvider)),
37
40
  renderingProvider: core.serialization.property("rendering_provider", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).encounterProviders.v2.EncounterProvider)),
38
41
  referringProvider: core.serialization.property("referring_provider", core.serialization
@@ -7,7 +7,7 @@ import * as core from "../../../../../../core";
7
7
  export declare const EncounterBase: core.serialization.ObjectSchema<serializers.encounters.v4.EncounterBase.Raw, CandidApi.encounters.v4.EncounterBase>;
8
8
  export declare namespace EncounterBase {
9
9
  interface Raw {
10
- external_id?: serializers.EncounterExternalId.Raw | null;
10
+ external_id: serializers.EncounterExternalId.Raw;
11
11
  date_of_service: serializers.Date_.Raw;
12
12
  end_date_of_service?: serializers.Date_.Raw | null;
13
13
  prior_authorization_number?: serializers.encounters.v4.PriorAuthorizationNumber.Raw | null;
@@ -15,11 +15,12 @@ export declare namespace EncounterBase {
15
15
  benefits_assigned_to_provider: boolean;
16
16
  provider_accepts_assignment: boolean;
17
17
  appointment_type?: string | null;
18
- do_not_bill?: boolean | null;
19
18
  existing_medications?: serializers.encounters.v4.Medication.Raw[] | null;
20
19
  vitals?: serializers.encounters.v4.Vitals.Raw | null;
21
20
  interventions?: serializers.encounters.v4.Intervention.Raw[] | null;
22
21
  pay_to_address?: serializers.StreetAddressLongZip.Raw | null;
23
22
  synchronicity?: serializers.encounters.v4.SynchronicityType.Raw | null;
23
+ billable_status: serializers.encounters.v4.BillableStatusType.Raw;
24
+ responsible_party: serializers.encounters.v4.ResponsiblePartyType.Raw;
24
25
  }
25
26
  }