candidhealth 0.23.0 → 0.24.0-2a6d412

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 (597) hide show
  1. package/Client.d.ts +1 -1
  2. package/api/resources/auth/client/Client.d.ts +1 -1
  3. package/api/resources/auth/resources/v2/client/Client.d.ts +1 -1
  4. package/api/resources/auth/resources/v2/client/Client.js +3 -2
  5. package/api/resources/billingNotes/client/Client.d.ts +1 -1
  6. package/api/resources/billingNotes/resources/v2/client/Client.d.ts +1 -1
  7. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -2
  8. package/api/resources/contracts/client/Client.d.ts +1 -1
  9. package/api/resources/contracts/resources/v2/client/Client.d.ts +1 -1
  10. package/api/resources/contracts/resources/v2/client/Client.js +15 -10
  11. package/api/resources/eligibility/client/Client.d.ts +1 -1
  12. package/api/resources/eligibility/resources/v2/client/Client.d.ts +1 -1
  13. package/api/resources/eligibility/resources/v2/client/Client.js +9 -6
  14. package/api/resources/encounters/client/Client.d.ts +1 -1
  15. package/api/resources/encounters/resources/v4/client/Client.d.ts +1 -1
  16. package/api/resources/encounters/resources/v4/client/Client.js +12 -8
  17. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +7 -5
  18. package/api/resources/expectedNetworkStatus/client/Client.d.ts +1 -1
  19. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +1 -1
  20. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +3 -2
  21. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +1 -1
  22. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +6 -4
  23. package/api/resources/exports/client/Client.d.ts +1 -1
  24. package/api/resources/exports/resources/v3/client/Client.d.ts +1 -1
  25. package/api/resources/exports/resources/v3/client/Client.js +3 -2
  26. package/api/resources/externalPaymentAccountConfig/client/Client.d.ts +1 -1
  27. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +1 -1
  28. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +3 -2
  29. package/api/resources/feeSchedules/client/Client.d.ts +1 -1
  30. package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +1 -1
  31. package/api/resources/feeSchedules/resources/v3/client/Client.js +30 -20
  32. package/api/resources/guarantor/client/Client.d.ts +1 -1
  33. package/api/resources/guarantor/resources/v1/client/Client.d.ts +1 -1
  34. package/api/resources/guarantor/resources/v1/client/Client.js +9 -6
  35. package/api/resources/importInvoice/client/Client.d.ts +1 -1
  36. package/api/resources/importInvoice/resources/v1/client/Client.d.ts +1 -1
  37. package/api/resources/importInvoice/resources/v1/client/Client.js +12 -8
  38. package/api/resources/insuranceAdjudications/client/Client.d.ts +1 -1
  39. package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +1 -1
  40. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +9 -6
  41. package/api/resources/insurancePayments/client/Client.d.ts +1 -1
  42. package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +1 -1
  43. package/api/resources/insurancePayments/resources/v1/client/Client.js +15 -10
  44. package/api/resources/insuranceRefunds/client/Client.d.ts +1 -1
  45. package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +1 -1
  46. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +15 -10
  47. package/api/resources/organizationProviders/client/Client.d.ts +1 -1
  48. package/api/resources/organizationProviders/resources/v3/client/Client.d.ts +1 -1
  49. package/api/resources/organizationProviders/resources/v3/client/Client.js +12 -8
  50. package/api/resources/organizationServiceFacilities/client/Client.d.ts +1 -1
  51. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +1 -1
  52. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +15 -10
  53. package/api/resources/patientPayments/client/Client.d.ts +1 -1
  54. package/api/resources/patientPayments/resources/v4/client/Client.d.ts +1 -1
  55. package/api/resources/patientPayments/resources/v4/client/Client.js +15 -10
  56. package/api/resources/patientRefunds/client/Client.d.ts +1 -1
  57. package/api/resources/patientRefunds/resources/v1/client/Client.d.ts +1 -1
  58. package/api/resources/patientRefunds/resources/v1/client/Client.js +15 -10
  59. package/api/resources/payers/client/Client.d.ts +1 -1
  60. package/api/resources/payers/resources/v3/client/Client.d.ts +1 -1
  61. package/api/resources/payers/resources/v3/client/Client.js +6 -4
  62. package/api/resources/preEncounter/client/Client.d.ts +1 -1
  63. package/api/resources/preEncounter/resources/coverages/client/Client.d.ts +4 -125
  64. package/api/resources/preEncounter/resources/coverages/client/Client.js +3 -424
  65. package/api/resources/preEncounter/resources/coverages/client/index.d.ts +1 -7
  66. package/api/resources/preEncounter/resources/coverages/client/index.js +0 -34
  67. package/api/resources/preEncounter/resources/coverages/index.d.ts +1 -1
  68. package/api/resources/preEncounter/resources/coverages/index.js +1 -1
  69. package/api/resources/preEncounter/resources/coverages/resources/index.d.ts +1 -0
  70. package/api/resources/preEncounter/resources/coverages/resources/index.js +27 -0
  71. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +23 -0
  72. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +17 -0
  73. package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -0
  74. package/api/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +2 -0
  75. package/api/resources/preEncounter/resources/coverages/resources/v1/index.js +18 -0
  76. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.d.ts +144 -0
  77. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.js +445 -0
  78. package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/create.d.ts +6 -6
  79. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/create.js +2 -2
  80. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/get.d.ts +6 -6
  81. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/get.js +2 -2
  82. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/getHistory.d.ts +7 -7
  83. package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/getHistory.js +3 -3
  84. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/getMulti.d.ts +6 -6
  85. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/getMulti.js +2 -2
  86. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.d.ts +7 -0
  87. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.js +36 -0
  88. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/scan.d.ts +6 -6
  89. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/scan.js +2 -2
  90. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/update.d.ts +8 -8
  91. package/api/resources/preEncounter/resources/{patients → coverages/resources/v1/resources/coverages}/client/update.js +4 -4
  92. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +2 -0
  93. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +18 -0
  94. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/Coverage.d.ts +3 -3
  95. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageId.d.ts +3 -3
  96. package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/InsurancePlan.d.ts +2 -2
  97. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/MutableCoverage.d.ts +5 -5
  98. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/Subscriber.d.ts +1 -1
  99. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +3 -0
  100. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +32 -0
  101. package/api/resources/preEncounter/resources/index.d.ts +0 -4
  102. package/api/resources/preEncounter/resources/index.js +0 -4
  103. package/api/resources/preEncounter/resources/patients/client/Client.d.ts +4 -316
  104. package/api/resources/preEncounter/resources/patients/client/Client.js +3 -688
  105. package/api/resources/preEncounter/resources/patients/client/index.d.ts +1 -8
  106. package/api/resources/preEncounter/resources/patients/client/index.js +0 -35
  107. package/api/resources/preEncounter/resources/patients/index.d.ts +1 -1
  108. package/api/resources/preEncounter/resources/patients/index.js +1 -1
  109. package/api/resources/preEncounter/resources/patients/resources/index.d.ts +1 -0
  110. package/api/resources/preEncounter/resources/patients/resources/index.js +27 -0
  111. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +23 -0
  112. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +17 -0
  113. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  114. package/api/resources/preEncounter/resources/patients/resources/v1/index.d.ts +2 -0
  115. package/api/resources/preEncounter/resources/patients/resources/v1/index.js +18 -0
  116. package/api/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +3 -0
  117. package/api/resources/preEncounter/resources/patients/resources/v1/resources/index.js +32 -0
  118. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.d.ts +335 -0
  119. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.js +709 -0
  120. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/create.d.ts +7 -7
  121. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/create.js +3 -3
  122. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/deactivate.d.ts +8 -8
  123. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/deactivate.js +4 -4
  124. package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/get.d.ts +7 -7
  125. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/get.js +3 -3
  126. package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/getHistory.d.ts +7 -7
  127. package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/getHistory.js +3 -3
  128. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.d.ts +8 -0
  129. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.js +37 -0
  130. package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/scan.d.ts +6 -6
  131. package/api/resources/preEncounter/resources/{coverages → patients/resources/v1/resources/patients}/client/scan.js +2 -2
  132. package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/search.d.ts +6 -6
  133. package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/search.js +2 -2
  134. package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/update.d.ts +8 -8
  135. package/api/resources/preEncounter/resources/{coverages → patients/resources/v1/resources/patients}/client/update.js +4 -4
  136. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +2 -0
  137. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +18 -0
  138. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/Contact.d.ts +1 -1
  139. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/ExternalProvider.d.ts +1 -1
  140. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/MutablePatient.d.ts +5 -5
  141. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/Patient.d.ts +3 -3
  142. package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/PatientId.d.ts +3 -3
  143. package/api/resources/serviceFacility/client/Client.d.ts +1 -1
  144. package/api/resources/serviceFacility/client/Client.js +3 -2
  145. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +11 -5
  146. package/api/resources/tasks/client/Client.d.ts +1 -1
  147. package/api/resources/tasks/resources/v3/client/Client.d.ts +1 -1
  148. package/api/resources/tasks/resources/v3/client/Client.js +15 -10
  149. package/api/resources/writeOffs/client/Client.d.ts +1 -1
  150. package/api/resources/writeOffs/resources/v1/client/Client.d.ts +1 -1
  151. package/api/resources/writeOffs/resources/v1/client/Client.js +12 -8
  152. package/dist/Client.d.ts +1 -1
  153. package/dist/api/resources/auth/client/Client.d.ts +1 -1
  154. package/dist/api/resources/auth/resources/v2/client/Client.d.ts +1 -1
  155. package/dist/api/resources/auth/resources/v2/client/Client.js +3 -2
  156. package/dist/api/resources/billingNotes/client/Client.d.ts +1 -1
  157. package/dist/api/resources/billingNotes/resources/v2/client/Client.d.ts +1 -1
  158. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -2
  159. package/dist/api/resources/contracts/client/Client.d.ts +1 -1
  160. package/dist/api/resources/contracts/resources/v2/client/Client.d.ts +1 -1
  161. package/dist/api/resources/contracts/resources/v2/client/Client.js +15 -10
  162. package/dist/api/resources/eligibility/client/Client.d.ts +1 -1
  163. package/dist/api/resources/eligibility/resources/v2/client/Client.d.ts +1 -1
  164. package/dist/api/resources/eligibility/resources/v2/client/Client.js +9 -6
  165. package/dist/api/resources/encounters/client/Client.d.ts +1 -1
  166. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +1 -1
  167. package/dist/api/resources/encounters/resources/v4/client/Client.js +12 -8
  168. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +7 -5
  169. package/dist/api/resources/expectedNetworkStatus/client/Client.d.ts +1 -1
  170. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +1 -1
  171. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +3 -2
  172. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +1 -1
  173. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +6 -4
  174. package/dist/api/resources/exports/client/Client.d.ts +1 -1
  175. package/dist/api/resources/exports/resources/v3/client/Client.d.ts +1 -1
  176. package/dist/api/resources/exports/resources/v3/client/Client.js +3 -2
  177. package/dist/api/resources/externalPaymentAccountConfig/client/Client.d.ts +1 -1
  178. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +1 -1
  179. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +3 -2
  180. package/dist/api/resources/feeSchedules/client/Client.d.ts +1 -1
  181. package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +1 -1
  182. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +30 -20
  183. package/dist/api/resources/guarantor/client/Client.d.ts +1 -1
  184. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +1 -1
  185. package/dist/api/resources/guarantor/resources/v1/client/Client.js +9 -6
  186. package/dist/api/resources/importInvoice/client/Client.d.ts +1 -1
  187. package/dist/api/resources/importInvoice/resources/v1/client/Client.d.ts +1 -1
  188. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +12 -8
  189. package/dist/api/resources/insuranceAdjudications/client/Client.d.ts +1 -1
  190. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +1 -1
  191. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +9 -6
  192. package/dist/api/resources/insurancePayments/client/Client.d.ts +1 -1
  193. package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +1 -1
  194. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +15 -10
  195. package/dist/api/resources/insuranceRefunds/client/Client.d.ts +1 -1
  196. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +1 -1
  197. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +15 -10
  198. package/dist/api/resources/organizationProviders/client/Client.d.ts +1 -1
  199. package/dist/api/resources/organizationProviders/resources/v3/client/Client.d.ts +1 -1
  200. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +12 -8
  201. package/dist/api/resources/organizationServiceFacilities/client/Client.d.ts +1 -1
  202. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +1 -1
  203. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +15 -10
  204. package/dist/api/resources/patientPayments/client/Client.d.ts +1 -1
  205. package/dist/api/resources/patientPayments/resources/v4/client/Client.d.ts +1 -1
  206. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +15 -10
  207. package/dist/api/resources/patientRefunds/client/Client.d.ts +1 -1
  208. package/dist/api/resources/patientRefunds/resources/v1/client/Client.d.ts +1 -1
  209. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +15 -10
  210. package/dist/api/resources/payers/client/Client.d.ts +1 -1
  211. package/dist/api/resources/payers/resources/v3/client/Client.d.ts +1 -1
  212. package/dist/api/resources/payers/resources/v3/client/Client.js +6 -4
  213. package/dist/api/resources/preEncounter/client/Client.d.ts +1 -1
  214. package/dist/api/resources/preEncounter/resources/coverages/client/Client.d.ts +4 -125
  215. package/dist/api/resources/preEncounter/resources/coverages/client/Client.js +3 -424
  216. package/dist/api/resources/preEncounter/resources/coverages/client/index.d.ts +1 -7
  217. package/dist/api/resources/preEncounter/resources/coverages/client/index.js +0 -34
  218. package/dist/api/resources/preEncounter/resources/coverages/index.d.ts +1 -1
  219. package/dist/api/resources/preEncounter/resources/coverages/index.js +1 -1
  220. package/dist/api/resources/preEncounter/resources/coverages/resources/index.d.ts +1 -0
  221. package/dist/api/resources/preEncounter/resources/coverages/resources/index.js +27 -0
  222. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +23 -0
  223. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +17 -0
  224. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -0
  225. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +2 -0
  226. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +2 -0
  227. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/index.js +18 -0
  228. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.d.ts +144 -0
  229. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.js +445 -0
  230. package/dist/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/create.d.ts +6 -6
  231. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/create.js +2 -2
  232. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/get.d.ts +6 -6
  233. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/get.js +2 -2
  234. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/getHistory.d.ts +7 -7
  235. package/dist/api/resources/preEncounter/resources/{patients → coverages/resources/v1/resources/coverages}/client/getHistory.js +3 -3
  236. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/getMulti.d.ts +6 -6
  237. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/getMulti.js +2 -2
  238. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.d.ts +7 -0
  239. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.js +36 -0
  240. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/requests/index.js +2 -0
  241. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/scan.d.ts +6 -6
  242. package/dist/api/resources/preEncounter/resources/{patients → coverages/resources/v1/resources/coverages}/client/scan.js +2 -2
  243. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/update.d.ts +8 -8
  244. package/dist/api/resources/preEncounter/resources/{patients → coverages/resources/v1/resources/coverages}/client/update.js +4 -4
  245. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +2 -0
  246. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +18 -0
  247. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/Coverage.d.ts +3 -3
  248. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageId.d.ts +3 -3
  249. package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/InsurancePlan.d.ts +2 -2
  250. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/MutableCoverage.d.ts +5 -5
  251. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/Subscriber.d.ts +1 -1
  252. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +3 -0
  253. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +32 -0
  254. package/dist/api/resources/preEncounter/resources/index.d.ts +0 -4
  255. package/dist/api/resources/preEncounter/resources/index.js +0 -4
  256. package/dist/api/resources/preEncounter/resources/patients/client/Client.d.ts +4 -316
  257. package/dist/api/resources/preEncounter/resources/patients/client/Client.js +3 -688
  258. package/dist/api/resources/preEncounter/resources/patients/client/index.d.ts +1 -8
  259. package/dist/api/resources/preEncounter/resources/patients/client/index.js +0 -35
  260. package/dist/api/resources/preEncounter/resources/patients/index.d.ts +1 -1
  261. package/dist/api/resources/preEncounter/resources/patients/index.js +1 -1
  262. package/dist/api/resources/preEncounter/resources/patients/resources/index.d.ts +1 -0
  263. package/dist/api/resources/preEncounter/resources/patients/resources/index.js +27 -0
  264. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +23 -0
  265. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +17 -0
  266. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  267. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -0
  268. package/dist/api/resources/preEncounter/resources/patients/resources/v1/index.d.ts +2 -0
  269. package/dist/api/resources/preEncounter/resources/patients/resources/v1/index.js +18 -0
  270. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +3 -0
  271. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/index.js +32 -0
  272. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.d.ts +335 -0
  273. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.js +709 -0
  274. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/create.d.ts +7 -7
  275. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/create.js +3 -3
  276. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/deactivate.d.ts +8 -8
  277. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/deactivate.js +4 -4
  278. package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/get.d.ts +7 -7
  279. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/get.js +3 -3
  280. package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/getHistory.d.ts +7 -7
  281. package/dist/api/resources/preEncounter/resources/{coverages → patients/resources/v1/resources/patients}/client/getHistory.js +3 -3
  282. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.d.ts +8 -0
  283. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.js +37 -0
  284. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/requests/index.js +2 -0
  285. package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/scan.d.ts +6 -6
  286. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/scan.js +2 -2
  287. package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/search.d.ts +6 -6
  288. package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/search.js +2 -2
  289. package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/update.d.ts +8 -8
  290. package/dist/api/resources/preEncounter/resources/{coverages → patients/resources/v1/resources/patients}/client/update.js +4 -4
  291. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +2 -0
  292. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +18 -0
  293. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/Contact.d.ts +1 -1
  294. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/ExternalProvider.d.ts +1 -1
  295. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/MutablePatient.d.ts +5 -5
  296. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/Patient.d.ts +3 -3
  297. package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/PatientId.d.ts +3 -3
  298. package/dist/api/resources/serviceFacility/client/Client.d.ts +1 -1
  299. package/dist/api/resources/serviceFacility/client/Client.js +3 -2
  300. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +11 -5
  301. package/dist/api/resources/tasks/client/Client.d.ts +1 -1
  302. package/dist/api/resources/tasks/resources/v3/client/Client.d.ts +1 -1
  303. package/dist/api/resources/tasks/resources/v3/client/Client.js +15 -10
  304. package/dist/api/resources/writeOffs/client/Client.d.ts +1 -1
  305. package/dist/api/resources/writeOffs/resources/v1/client/Client.d.ts +1 -1
  306. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +12 -8
  307. package/dist/environments.d.ts +12 -2
  308. package/dist/environments.js +8 -2
  309. package/dist/index.d.ts +1 -1
  310. package/dist/serialization/resources/preEncounter/resources/common/types/Address.d.ts +1 -1
  311. package/dist/serialization/resources/preEncounter/resources/common/types/Address.js +1 -1
  312. package/dist/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +1 -1
  313. package/dist/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.js +1 -1
  314. package/dist/serialization/resources/preEncounter/resources/coverages/index.d.ts +1 -2
  315. package/dist/serialization/resources/preEncounter/resources/coverages/index.js +1 -2
  316. package/dist/serialization/resources/preEncounter/resources/coverages/resources/index.d.ts +1 -0
  317. package/dist/serialization/resources/preEncounter/resources/coverages/resources/index.js +27 -0
  318. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +1 -0
  319. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/index.js +17 -0
  320. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getHistory.d.ts +20 -0
  321. package/dist/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/getHistory.js +4 -4
  322. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.d.ts +11 -0
  323. package/dist/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/getMulti.js +1 -1
  324. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/scan.d.ts +11 -0
  325. package/dist/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/scan.js +1 -1
  326. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/update.d.ts +20 -0
  327. package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/update.js +6 -6
  328. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +2 -0
  329. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +18 -0
  330. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Coverage.d.ts +21 -0
  331. package/dist/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Coverage.js +5 -5
  332. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageId.d.ts +10 -0
  333. package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageId.js +3 -3
  334. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageStatus.d.ts +10 -0
  335. package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageStatus.js +1 -1
  336. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageType.d.ts +10 -0
  337. package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageType.js +1 -1
  338. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/InsurancePlan.d.ts +22 -0
  339. package/dist/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/InsurancePlan.js +8 -8
  340. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/MutableCoverage.d.ts +22 -0
  341. package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/MutableCoverage.js +4 -4
  342. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Subscriber.d.ts +16 -0
  343. package/dist/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Subscriber.js +4 -4
  344. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +2 -0
  345. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +31 -0
  346. package/dist/serialization/resources/preEncounter/resources/index.d.ts +0 -2
  347. package/dist/serialization/resources/preEncounter/resources/index.js +0 -2
  348. package/dist/serialization/resources/preEncounter/resources/patients/index.d.ts +1 -2
  349. package/dist/serialization/resources/preEncounter/resources/patients/index.js +1 -2
  350. package/dist/serialization/resources/preEncounter/resources/patients/resources/index.d.ts +1 -0
  351. package/dist/serialization/resources/preEncounter/resources/patients/resources/index.js +27 -0
  352. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/index.d.ts +1 -0
  353. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/index.js +17 -0
  354. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +2 -0
  355. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.js +31 -0
  356. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/create.d.ts +15 -0
  357. package/dist/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/create.js +4 -4
  358. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.d.ts +20 -0
  359. package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/deactivate.js +6 -6
  360. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/get.d.ts +15 -0
  361. package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/get.js +4 -4
  362. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/getHistory.d.ts +20 -0
  363. package/dist/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/getHistory.js +4 -4
  364. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/scan.d.ts +11 -0
  365. package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/scan.js +1 -1
  366. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/search.d.ts +11 -0
  367. package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/search.js +1 -1
  368. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/update.d.ts +20 -0
  369. package/dist/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/update.js +6 -6
  370. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +2 -0
  371. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +18 -0
  372. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Contact.d.ts +23 -0
  373. package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Contact.js +7 -7
  374. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvenance.d.ts +13 -0
  375. package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvenance.js +3 -3
  376. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvider.d.ts +19 -0
  377. package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvider.js +5 -5
  378. package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.d.ts +4 -4
  379. package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.js +1 -1
  380. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MutablePatient.d.ts +35 -0
  381. package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/MutablePatient.js +15 -15
  382. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Patient.d.ts +21 -0
  383. package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Patient.js +5 -5
  384. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/PatientId.d.ts +10 -0
  385. package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/PatientId.js +3 -3
  386. package/environments.d.ts +12 -2
  387. package/environments.js +8 -2
  388. package/index.d.ts +1 -1
  389. package/package.json +1 -1
  390. package/serialization/resources/preEncounter/resources/common/types/Address.d.ts +1 -1
  391. package/serialization/resources/preEncounter/resources/common/types/Address.js +1 -1
  392. package/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +1 -1
  393. package/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.js +1 -1
  394. package/serialization/resources/preEncounter/resources/coverages/index.d.ts +1 -2
  395. package/serialization/resources/preEncounter/resources/coverages/index.js +1 -2
  396. package/serialization/resources/preEncounter/resources/coverages/resources/index.d.ts +1 -0
  397. package/serialization/resources/preEncounter/resources/coverages/resources/index.js +27 -0
  398. package/serialization/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +1 -0
  399. package/serialization/resources/preEncounter/resources/coverages/resources/v1/index.js +17 -0
  400. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getHistory.d.ts +20 -0
  401. package/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/getHistory.js +4 -4
  402. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.d.ts +11 -0
  403. package/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/getMulti.js +1 -1
  404. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/scan.d.ts +11 -0
  405. package/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/scan.js +1 -1
  406. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/update.d.ts +20 -0
  407. package/serialization/resources/preEncounter/resources/{patients → coverages/resources/v1/resources/coverages}/client/update.js +6 -6
  408. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +2 -0
  409. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +18 -0
  410. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Coverage.d.ts +21 -0
  411. package/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Coverage.js +5 -5
  412. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageId.d.ts +10 -0
  413. package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageId.js +3 -3
  414. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageStatus.d.ts +10 -0
  415. package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageStatus.js +1 -1
  416. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageType.d.ts +10 -0
  417. package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageType.js +1 -1
  418. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/InsurancePlan.d.ts +22 -0
  419. package/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/InsurancePlan.js +8 -8
  420. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/MutableCoverage.d.ts +22 -0
  421. package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/MutableCoverage.js +4 -4
  422. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Subscriber.d.ts +16 -0
  423. package/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Subscriber.js +4 -4
  424. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +2 -0
  425. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +31 -0
  426. package/serialization/resources/preEncounter/resources/index.d.ts +0 -2
  427. package/serialization/resources/preEncounter/resources/index.js +0 -2
  428. package/serialization/resources/preEncounter/resources/patients/index.d.ts +1 -2
  429. package/serialization/resources/preEncounter/resources/patients/index.js +1 -2
  430. package/serialization/resources/preEncounter/resources/patients/resources/index.d.ts +1 -0
  431. package/serialization/resources/preEncounter/resources/patients/resources/index.js +27 -0
  432. package/serialization/resources/preEncounter/resources/patients/resources/v1/index.d.ts +1 -0
  433. package/serialization/resources/preEncounter/resources/patients/resources/v1/index.js +17 -0
  434. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +2 -0
  435. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.js +31 -0
  436. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/create.d.ts +15 -0
  437. package/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/create.js +4 -4
  438. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.d.ts +20 -0
  439. package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/deactivate.js +6 -6
  440. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/get.d.ts +15 -0
  441. package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/get.js +4 -4
  442. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/getHistory.d.ts +20 -0
  443. package/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/getHistory.js +4 -4
  444. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/scan.d.ts +11 -0
  445. package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/scan.js +1 -1
  446. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/search.d.ts +11 -0
  447. package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/search.js +1 -1
  448. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/update.d.ts +20 -0
  449. package/{dist/serialization/resources/preEncounter/resources/coverages → serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients}/client/update.js +6 -6
  450. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +2 -0
  451. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +18 -0
  452. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Contact.d.ts +23 -0
  453. package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Contact.js +7 -7
  454. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvenance.d.ts +13 -0
  455. package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvenance.js +3 -3
  456. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvider.d.ts +19 -0
  457. package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvider.js +5 -5
  458. package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.d.ts +4 -4
  459. package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.js +1 -1
  460. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MutablePatient.d.ts +35 -0
  461. package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/MutablePatient.js +15 -15
  462. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Patient.d.ts +21 -0
  463. package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Patient.js +5 -5
  464. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/PatientId.d.ts +10 -0
  465. package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/PatientId.js +3 -3
  466. package/dist/serialization/resources/preEncounter/resources/coverages/client/getHistory.d.ts +0 -20
  467. package/dist/serialization/resources/preEncounter/resources/coverages/client/getMulti.d.ts +0 -11
  468. package/dist/serialization/resources/preEncounter/resources/coverages/client/scan.d.ts +0 -11
  469. package/dist/serialization/resources/preEncounter/resources/coverages/client/update.d.ts +0 -20
  470. package/dist/serialization/resources/preEncounter/resources/coverages/types/Coverage.d.ts +0 -21
  471. package/dist/serialization/resources/preEncounter/resources/coverages/types/CoverageId.d.ts +0 -10
  472. package/dist/serialization/resources/preEncounter/resources/coverages/types/CoverageStatus.d.ts +0 -10
  473. package/dist/serialization/resources/preEncounter/resources/coverages/types/CoverageType.d.ts +0 -10
  474. package/dist/serialization/resources/preEncounter/resources/coverages/types/InsurancePlan.d.ts +0 -22
  475. package/dist/serialization/resources/preEncounter/resources/coverages/types/MutableCoverage.d.ts +0 -22
  476. package/dist/serialization/resources/preEncounter/resources/coverages/types/Subscriber.d.ts +0 -16
  477. package/dist/serialization/resources/preEncounter/resources/patients/client/create.d.ts +0 -15
  478. package/dist/serialization/resources/preEncounter/resources/patients/client/deactivate.d.ts +0 -20
  479. package/dist/serialization/resources/preEncounter/resources/patients/client/get.d.ts +0 -15
  480. package/dist/serialization/resources/preEncounter/resources/patients/client/getHistory.d.ts +0 -20
  481. package/dist/serialization/resources/preEncounter/resources/patients/client/scan.d.ts +0 -11
  482. package/dist/serialization/resources/preEncounter/resources/patients/client/search.d.ts +0 -11
  483. package/dist/serialization/resources/preEncounter/resources/patients/client/update.d.ts +0 -20
  484. package/dist/serialization/resources/preEncounter/resources/patients/types/Contact.d.ts +0 -23
  485. package/dist/serialization/resources/preEncounter/resources/patients/types/ExternalProvenance.d.ts +0 -13
  486. package/dist/serialization/resources/preEncounter/resources/patients/types/ExternalProvider.d.ts +0 -19
  487. package/dist/serialization/resources/preEncounter/resources/patients/types/MutablePatient.d.ts +0 -35
  488. package/dist/serialization/resources/preEncounter/resources/patients/types/Patient.d.ts +0 -21
  489. package/dist/serialization/resources/preEncounter/resources/patients/types/PatientId.d.ts +0 -10
  490. package/serialization/resources/preEncounter/resources/coverages/client/getHistory.d.ts +0 -20
  491. package/serialization/resources/preEncounter/resources/coverages/client/getMulti.d.ts +0 -11
  492. package/serialization/resources/preEncounter/resources/coverages/client/scan.d.ts +0 -11
  493. package/serialization/resources/preEncounter/resources/coverages/client/update.d.ts +0 -20
  494. package/serialization/resources/preEncounter/resources/coverages/types/Coverage.d.ts +0 -21
  495. package/serialization/resources/preEncounter/resources/coverages/types/CoverageId.d.ts +0 -10
  496. package/serialization/resources/preEncounter/resources/coverages/types/CoverageStatus.d.ts +0 -10
  497. package/serialization/resources/preEncounter/resources/coverages/types/CoverageType.d.ts +0 -10
  498. package/serialization/resources/preEncounter/resources/coverages/types/InsurancePlan.d.ts +0 -22
  499. package/serialization/resources/preEncounter/resources/coverages/types/MutableCoverage.d.ts +0 -22
  500. package/serialization/resources/preEncounter/resources/coverages/types/Subscriber.d.ts +0 -16
  501. package/serialization/resources/preEncounter/resources/patients/client/create.d.ts +0 -15
  502. package/serialization/resources/preEncounter/resources/patients/client/deactivate.d.ts +0 -20
  503. package/serialization/resources/preEncounter/resources/patients/client/get.d.ts +0 -15
  504. package/serialization/resources/preEncounter/resources/patients/client/getHistory.d.ts +0 -20
  505. package/serialization/resources/preEncounter/resources/patients/client/scan.d.ts +0 -11
  506. package/serialization/resources/preEncounter/resources/patients/client/search.d.ts +0 -11
  507. package/serialization/resources/preEncounter/resources/patients/client/update.d.ts +0 -20
  508. package/serialization/resources/preEncounter/resources/patients/types/Contact.d.ts +0 -23
  509. package/serialization/resources/preEncounter/resources/patients/types/ExternalProvenance.d.ts +0 -13
  510. package/serialization/resources/preEncounter/resources/patients/types/ExternalProvider.d.ts +0 -19
  511. package/serialization/resources/preEncounter/resources/patients/types/MutablePatient.d.ts +0 -35
  512. package/serialization/resources/preEncounter/resources/patients/types/Patient.d.ts +0 -21
  513. package/serialization/resources/preEncounter/resources/patients/types/PatientId.d.ts +0 -10
  514. /package/api/resources/preEncounter/resources/coverages/{client/requests → resources/v1/client}/index.js +0 -0
  515. /package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/CoverageScanRequest.d.ts +0 -0
  516. /package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/CoverageScanRequest.js +0 -0
  517. /package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/GetAllCoveragesRequest.d.ts +0 -0
  518. /package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/GetAllCoveragesRequest.js +0 -0
  519. /package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/index.d.ts +0 -0
  520. /package/api/resources/preEncounter/resources/{patients → coverages/resources/v1/resources/coverages}/client/requests/index.js +0 -0
  521. /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Coverage.js +0 -0
  522. /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageId.js +0 -0
  523. /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageStatus.d.ts +0 -0
  524. /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageStatus.js +0 -0
  525. /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageType.d.ts +0 -0
  526. /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageType.js +0 -0
  527. /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/InsurancePlan.js +0 -0
  528. /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/MutableCoverage.js +0 -0
  529. /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Subscriber.js +0 -0
  530. /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.d.ts +0 -0
  531. /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.js +0 -0
  532. /package/{dist/api/resources/preEncounter/resources/coverages/client/requests → api/resources/preEncounter/resources/patients/resources/v1/client}/index.js +0 -0
  533. /package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientScanRequest.d.ts +0 -0
  534. /package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientScanRequest.js +0 -0
  535. /package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientsSearchRequest.d.ts +0 -0
  536. /package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientsSearchRequest.js +0 -0
  537. /package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/index.d.ts +0 -0
  538. /package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/requests/index.js +0 -0
  539. /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Contact.js +0 -0
  540. /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvenance.d.ts +0 -0
  541. /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvenance.js +0 -0
  542. /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvider.js +0 -0
  543. /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.d.ts +0 -0
  544. /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.js +0 -0
  545. /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MutablePatient.js +0 -0
  546. /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Patient.js +0 -0
  547. /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/PatientId.js +0 -0
  548. /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.d.ts +0 -0
  549. /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.js +0 -0
  550. /package/dist/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/CoverageScanRequest.d.ts +0 -0
  551. /package/dist/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/CoverageScanRequest.js +0 -0
  552. /package/dist/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/GetAllCoveragesRequest.d.ts +0 -0
  553. /package/dist/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/GetAllCoveragesRequest.js +0 -0
  554. /package/dist/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/index.d.ts +0 -0
  555. /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Coverage.js +0 -0
  556. /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageId.js +0 -0
  557. /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageStatus.d.ts +0 -0
  558. /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageStatus.js +0 -0
  559. /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageType.d.ts +0 -0
  560. /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageType.js +0 -0
  561. /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/InsurancePlan.js +0 -0
  562. /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/MutableCoverage.js +0 -0
  563. /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Subscriber.js +0 -0
  564. /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.d.ts +0 -0
  565. /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.js +0 -0
  566. /package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientScanRequest.d.ts +0 -0
  567. /package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientScanRequest.js +0 -0
  568. /package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientsSearchRequest.d.ts +0 -0
  569. /package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientsSearchRequest.js +0 -0
  570. /package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/index.d.ts +0 -0
  571. /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Contact.js +0 -0
  572. /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvenance.d.ts +0 -0
  573. /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvenance.js +0 -0
  574. /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvider.js +0 -0
  575. /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.d.ts +0 -0
  576. /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.js +0 -0
  577. /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MutablePatient.js +0 -0
  578. /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Patient.js +0 -0
  579. /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/PatientId.js +0 -0
  580. /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.d.ts +0 -0
  581. /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.js +0 -0
  582. /package/dist/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/index.d.ts +0 -0
  583. /package/dist/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/index.js +0 -0
  584. /package/dist/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.d.ts +0 -0
  585. /package/dist/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.js +0 -0
  586. /package/dist/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/index.d.ts +0 -0
  587. /package/dist/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/index.js +0 -0
  588. /package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.d.ts +0 -0
  589. /package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.js +0 -0
  590. /package/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/index.d.ts +0 -0
  591. /package/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/index.js +0 -0
  592. /package/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.d.ts +0 -0
  593. /package/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.js +0 -0
  594. /package/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/index.d.ts +0 -0
  595. /package/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/index.js +0 -0
  596. /package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.d.ts +0 -0
  597. /package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.js +0 -0
@@ -2,437 +2,16 @@
2
2
  /**
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
- return new (P || (P = Promise))(function (resolve, reject) {
31
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
- step((generator = generator.apply(thisArg, _arguments || [])).next());
35
- });
36
- };
37
- var __importDefault = (this && this.__importDefault) || function (mod) {
38
- return (mod && mod.__esModule) ? mod : { "default": mod };
39
- };
40
5
  Object.defineProperty(exports, "__esModule", { value: true });
41
6
  exports.Coverages = void 0;
42
- const environments = __importStar(require("../../../../../../environments"));
43
- const core = __importStar(require("../../../../../../core"));
44
- const CandidApi = __importStar(require("../../../../../index"));
45
- const serializers = __importStar(require("../../../../../../serialization/index"));
46
- const url_join_1 = __importDefault(require("url-join"));
7
+ const Client_1 = require("../resources/v1/client/Client");
47
8
  class Coverages {
48
9
  constructor(_options = {}) {
49
10
  this._options = _options;
50
11
  }
51
- /**
52
- * Creates a new Coverage. A Coverage provides the high-level identifiers and descriptors of a specific insurance plan for a specific individual - typically the information you can find on an insurance card. Additionally a coverage will include detailed benefits information covered by the specific plan for the individual.
53
- *
54
- * @param {CandidApi.preEncounter.MutableCoverage} request
55
- * @param {Coverages.RequestOptions} requestOptions - Request-specific configuration.
56
- *
57
- * @example
58
- * await candidApi.preEncounter.coverages.create({
59
- * status: CandidApi.preEncounter.CoverageStatus.Active,
60
- * subscriber: {
61
- * name: {
62
- * family: "string",
63
- * given: ["string"],
64
- * use: CandidApi.preEncounter.NameUse.Usual,
65
- * period: {}
66
- * },
67
- * dateOfBirth: "2023-01-15",
68
- * gender: CandidApi.preEncounter.Gender.Female
69
- * },
70
- * relationship: CandidApi.preEncounter.Relationship.Self,
71
- * patient: CandidApi.preEncounter.PatientId("string"),
72
- * insurancePlan: {
73
- * memberId: "string",
74
- * payerId: CandidApi.preEncounter.PayerId("string"),
75
- * payerName: "string",
76
- * groupNumber: "string",
77
- * name: "string",
78
- * type: CandidApi.preEncounter.CoverageType.Ppo,
79
- * period: {
80
- * start: "2023-01-15",
81
- * end: "2023-01-15"
82
- * },
83
- * insuranceCardImageLocator: "string"
84
- * },
85
- * verified: true
86
- * })
87
- */
88
- create(request, requestOptions) {
89
- var _a;
90
- return __awaiter(this, void 0, void 0, function* () {
91
- const _response = yield core.fetcher({
92
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production, "/coverages"),
93
- method: "POST",
94
- headers: {
95
- Authorization: yield this._getAuthorizationHeader(),
96
- "X-Fern-Language": "JavaScript",
97
- "X-Fern-SDK-Name": "candidhealth",
98
- "X-Fern-SDK-Version": "0.23.0",
99
- "X-Fern-Runtime": core.RUNTIME.type,
100
- "X-Fern-Runtime-Version": core.RUNTIME.version,
101
- },
102
- contentType: "application/json",
103
- body: yield serializers.preEncounter.MutableCoverage.jsonOrThrow(request, {
104
- unrecognizedObjectKeys: "strip",
105
- }),
106
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
107
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
108
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
109
- });
110
- if (_response.ok) {
111
- return {
112
- ok: true,
113
- body: yield serializers.preEncounter.Coverage.parseOrThrow(_response.body, {
114
- unrecognizedObjectKeys: "passthrough",
115
- allowUnrecognizedUnionMembers: true,
116
- allowUnrecognizedEnumValues: true,
117
- breadcrumbsPrefix: ["response"],
118
- }),
119
- };
120
- }
121
- return {
122
- ok: false,
123
- error: CandidApi.preEncounter.coverages.create.Error._unknown(_response.error),
124
- };
125
- });
126
- }
127
- /**
128
- * Updates a Coverage. The path must contain the most recent version to prevent races. Updating historic versions is not supported.
129
- *
130
- * @param {CandidApi.preEncounter.CoverageId} id
131
- * @param {number} version
132
- * @param {CandidApi.preEncounter.MutableCoverage} request
133
- * @param {Coverages.RequestOptions} requestOptions - Request-specific configuration.
134
- *
135
- * @example
136
- * await candidApi.preEncounter.coverages.update(CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), 1, {
137
- * status: CandidApi.preEncounter.CoverageStatus.Active,
138
- * subscriber: {
139
- * name: {
140
- * family: "string",
141
- * given: ["string"],
142
- * use: CandidApi.preEncounter.NameUse.Usual,
143
- * period: {}
144
- * },
145
- * dateOfBirth: "2023-01-15",
146
- * gender: CandidApi.preEncounter.Gender.Female
147
- * },
148
- * relationship: CandidApi.preEncounter.Relationship.Self,
149
- * patient: CandidApi.preEncounter.PatientId("string"),
150
- * insurancePlan: {
151
- * memberId: "string",
152
- * payerId: CandidApi.preEncounter.PayerId("string"),
153
- * payerName: "string",
154
- * groupNumber: "string",
155
- * name: "string",
156
- * type: CandidApi.preEncounter.CoverageType.Ppo,
157
- * period: {
158
- * start: "2023-01-15",
159
- * end: "2023-01-15"
160
- * },
161
- * insuranceCardImageLocator: "string"
162
- * },
163
- * verified: true
164
- * })
165
- */
166
- update(id, version, request, requestOptions) {
167
- var _a, _b;
168
- return __awaiter(this, void 0, void 0, function* () {
169
- const _response = yield core.fetcher({
170
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production, `/coverages/${encodeURIComponent(yield serializers.preEncounter.CoverageId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
171
- method: "PUT",
172
- headers: {
173
- Authorization: yield this._getAuthorizationHeader(),
174
- "X-Fern-Language": "JavaScript",
175
- "X-Fern-SDK-Name": "candidhealth",
176
- "X-Fern-SDK-Version": "0.23.0",
177
- "X-Fern-Runtime": core.RUNTIME.type,
178
- "X-Fern-Runtime-Version": core.RUNTIME.version,
179
- },
180
- contentType: "application/json",
181
- body: yield serializers.preEncounter.MutableCoverage.jsonOrThrow(request, {
182
- unrecognizedObjectKeys: "strip",
183
- }),
184
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
185
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
186
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
187
- });
188
- if (_response.ok) {
189
- return {
190
- ok: true,
191
- body: yield serializers.preEncounter.Coverage.parseOrThrow(_response.body, {
192
- unrecognizedObjectKeys: "passthrough",
193
- allowUnrecognizedUnionMembers: true,
194
- allowUnrecognizedEnumValues: true,
195
- breadcrumbsPrefix: ["response"],
196
- }),
197
- };
198
- }
199
- if (_response.error.reason === "status-code") {
200
- switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
201
- case "NotFoundError":
202
- case "VersionConflictError":
203
- return {
204
- ok: false,
205
- error: yield serializers.preEncounter.coverages.update.Error.parseOrThrow(_response.error.body, {
206
- unrecognizedObjectKeys: "passthrough",
207
- allowUnrecognizedUnionMembers: true,
208
- allowUnrecognizedEnumValues: true,
209
- breadcrumbsPrefix: ["response"],
210
- }),
211
- };
212
- }
213
- }
214
- return {
215
- ok: false,
216
- error: CandidApi.preEncounter.coverages.update.Error._unknown(_response.error),
217
- };
218
- });
219
- }
220
- /**
221
- * gets a specific Coverage
222
- *
223
- * @param {CandidApi.preEncounter.CoverageId} id
224
- * @param {Coverages.RequestOptions} requestOptions - Request-specific configuration.
225
- *
226
- * @example
227
- * await candidApi.preEncounter.coverages.get(CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
228
- */
229
- get(id, requestOptions) {
230
- var _a;
231
- return __awaiter(this, void 0, void 0, function* () {
232
- const _response = yield core.fetcher({
233
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production, `/coverages/${encodeURIComponent(yield serializers.preEncounter.CoverageId.jsonOrThrow(id))}`),
234
- method: "GET",
235
- headers: {
236
- Authorization: yield this._getAuthorizationHeader(),
237
- "X-Fern-Language": "JavaScript",
238
- "X-Fern-SDK-Name": "candidhealth",
239
- "X-Fern-SDK-Version": "0.23.0",
240
- "X-Fern-Runtime": core.RUNTIME.type,
241
- "X-Fern-Runtime-Version": core.RUNTIME.version,
242
- },
243
- contentType: "application/json",
244
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
245
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
246
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
247
- });
248
- if (_response.ok) {
249
- return {
250
- ok: true,
251
- body: yield serializers.preEncounter.Coverage.parseOrThrow(_response.body, {
252
- unrecognizedObjectKeys: "passthrough",
253
- allowUnrecognizedUnionMembers: true,
254
- allowUnrecognizedEnumValues: true,
255
- breadcrumbsPrefix: ["response"],
256
- }),
257
- };
258
- }
259
- return {
260
- ok: false,
261
- error: CandidApi.preEncounter.coverages.get.Error._unknown(_response.error),
262
- };
263
- });
264
- }
265
- /**
266
- * Gets a coverage along with it's full history. The return list is ordered by version ascending.
267
- *
268
- * @param {CandidApi.preEncounter.CoverageId} id
269
- * @param {Coverages.RequestOptions} requestOptions - Request-specific configuration.
270
- *
271
- * @example
272
- * await candidApi.preEncounter.coverages.getHistory(CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
273
- */
274
- getHistory(id, requestOptions) {
275
- var _a, _b;
276
- return __awaiter(this, void 0, void 0, function* () {
277
- const _response = yield core.fetcher({
278
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production, `/coverages/${encodeURIComponent(yield serializers.preEncounter.CoverageId.jsonOrThrow(id))}/history`),
279
- method: "GET",
280
- headers: {
281
- Authorization: yield this._getAuthorizationHeader(),
282
- "X-Fern-Language": "JavaScript",
283
- "X-Fern-SDK-Name": "candidhealth",
284
- "X-Fern-SDK-Version": "0.23.0",
285
- "X-Fern-Runtime": core.RUNTIME.type,
286
- "X-Fern-Runtime-Version": core.RUNTIME.version,
287
- },
288
- contentType: "application/json",
289
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
290
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
291
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
292
- });
293
- if (_response.ok) {
294
- return {
295
- ok: true,
296
- body: yield serializers.preEncounter.coverages.getHistory.Response.parseOrThrow(_response.body, {
297
- unrecognizedObjectKeys: "passthrough",
298
- allowUnrecognizedUnionMembers: true,
299
- allowUnrecognizedEnumValues: true,
300
- breadcrumbsPrefix: ["response"],
301
- }),
302
- };
303
- }
304
- if (_response.error.reason === "status-code") {
305
- switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
306
- case "NotFoundError":
307
- return {
308
- ok: false,
309
- error: yield serializers.preEncounter.coverages.getHistory.Error.parseOrThrow(_response.error.body, {
310
- unrecognizedObjectKeys: "passthrough",
311
- allowUnrecognizedUnionMembers: true,
312
- allowUnrecognizedEnumValues: true,
313
- breadcrumbsPrefix: ["response"],
314
- }),
315
- };
316
- }
317
- }
318
- return {
319
- ok: false,
320
- error: CandidApi.preEncounter.coverages.getHistory.Error._unknown(_response.error),
321
- };
322
- });
323
- }
324
- /**
325
- * returns a list of Coverages based on the search criteria
326
- *
327
- * @param {CandidApi.preEncounter.GetAllCoveragesRequest} request
328
- * @param {Coverages.RequestOptions} requestOptions - Request-specific configuration.
329
- *
330
- * @example
331
- * await candidApi.preEncounter.coverages.getMulti({
332
- * patientId: "string"
333
- * })
334
- */
335
- getMulti(request = {}, requestOptions) {
12
+ get v1() {
336
13
  var _a;
337
- return __awaiter(this, void 0, void 0, function* () {
338
- const { patientId } = request;
339
- const _queryParams = {};
340
- if (patientId != null) {
341
- _queryParams["patientId"] = patientId;
342
- }
343
- const _response = yield core.fetcher({
344
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production, "/coverages"),
345
- method: "GET",
346
- headers: {
347
- Authorization: yield this._getAuthorizationHeader(),
348
- "X-Fern-Language": "JavaScript",
349
- "X-Fern-SDK-Name": "candidhealth",
350
- "X-Fern-SDK-Version": "0.23.0",
351
- "X-Fern-Runtime": core.RUNTIME.type,
352
- "X-Fern-Runtime-Version": core.RUNTIME.version,
353
- },
354
- contentType: "application/json",
355
- queryParameters: _queryParams,
356
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
357
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
358
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
359
- });
360
- if (_response.ok) {
361
- return {
362
- ok: true,
363
- body: yield serializers.preEncounter.coverages.getMulti.Response.parseOrThrow(_response.body, {
364
- unrecognizedObjectKeys: "passthrough",
365
- allowUnrecognizedUnionMembers: true,
366
- allowUnrecognizedEnumValues: true,
367
- breadcrumbsPrefix: ["response"],
368
- }),
369
- };
370
- }
371
- return {
372
- ok: false,
373
- error: CandidApi.preEncounter.coverages.getMulti.Error._unknown(_response.error),
374
- };
375
- });
376
- }
377
- /**
378
- * Scans up to 100 coverage updates. The since query parameter is inclusive, and the result list is ordered by updatedAt descending.
379
- *
380
- * @param {CandidApi.preEncounter.CoverageScanRequest} request
381
- * @param {Coverages.RequestOptions} requestOptions - Request-specific configuration.
382
- *
383
- * @example
384
- * await candidApi.preEncounter.coverages.scan({
385
- * since: new Date("2024-01-15T09:30:00.000Z")
386
- * })
387
- */
388
- scan(request, requestOptions) {
389
- var _a;
390
- return __awaiter(this, void 0, void 0, function* () {
391
- const { since } = request;
392
- const _queryParams = {};
393
- _queryParams["since"] = since.toISOString();
394
- const _response = yield core.fetcher({
395
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production, "/coverages/updates/scan"),
396
- method: "GET",
397
- headers: {
398
- Authorization: yield this._getAuthorizationHeader(),
399
- "X-Fern-Language": "JavaScript",
400
- "X-Fern-SDK-Name": "candidhealth",
401
- "X-Fern-SDK-Version": "0.23.0",
402
- "X-Fern-Runtime": core.RUNTIME.type,
403
- "X-Fern-Runtime-Version": core.RUNTIME.version,
404
- },
405
- contentType: "application/json",
406
- queryParameters: _queryParams,
407
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
408
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
409
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
410
- });
411
- if (_response.ok) {
412
- return {
413
- ok: true,
414
- body: yield serializers.preEncounter.coverages.scan.Response.parseOrThrow(_response.body, {
415
- unrecognizedObjectKeys: "passthrough",
416
- allowUnrecognizedUnionMembers: true,
417
- allowUnrecognizedEnumValues: true,
418
- breadcrumbsPrefix: ["response"],
419
- }),
420
- };
421
- }
422
- return {
423
- ok: false,
424
- error: CandidApi.preEncounter.coverages.scan.Error._unknown(_response.error),
425
- };
426
- });
427
- }
428
- _getAuthorizationHeader() {
429
- return __awaiter(this, void 0, void 0, function* () {
430
- const bearer = yield core.Supplier.get(this._options.token);
431
- if (bearer != null) {
432
- return `Bearer ${bearer}`;
433
- }
434
- return undefined;
435
- });
14
+ return ((_a = this._v1) !== null && _a !== void 0 ? _a : (this._v1 = new Client_1.V1(this._options)));
436
15
  }
437
16
  }
438
17
  exports.Coverages = Coverages;
@@ -1,7 +1 @@
1
- export * from "./requests";
2
- export * as create from "./create";
3
- export * as update from "./update";
4
- export * as get from "./get";
5
- export * as getHistory from "./getHistory";
6
- export * as getMulti from "./getMulti";
7
- export * as scan from "./scan";
1
+ export {};
@@ -1,36 +1,2 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
- };
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
2
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.scan = exports.getMulti = exports.getHistory = exports.get = exports.update = exports.create = void 0;
30
- __exportStar(require("./requests"), exports);
31
- exports.create = __importStar(require("./create"));
32
- exports.update = __importStar(require("./update"));
33
- exports.get = __importStar(require("./get"));
34
- exports.getHistory = __importStar(require("./getHistory"));
35
- exports.getMulti = __importStar(require("./getMulti"));
36
- exports.scan = __importStar(require("./scan"));
@@ -1,2 +1,2 @@
1
- export * from "./types";
1
+ export * from "./resources";
2
2
  export * from "./client";
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./types"), exports);
17
+ __exportStar(require("./resources"), exports);
18
18
  __exportStar(require("./client"), exports);
@@ -0,0 +1 @@
1
+ export * as v1 from "./v1";
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.v1 = void 0;
27
+ exports.v1 = __importStar(require("./v1"));
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../../../environments";
5
+ import * as core from "../../../../../../../../core";
6
+ import { Coverages } from "../resources/coverages/client/Client";
7
+ export declare namespace V1 {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
10
+ token?: core.Supplier<core.BearerToken | undefined>;
11
+ }
12
+ interface RequestOptions {
13
+ timeoutInSeconds?: number;
14
+ maxRetries?: number;
15
+ abortSignal?: AbortSignal;
16
+ }
17
+ }
18
+ export declare class V1 {
19
+ protected readonly _options: V1.Options;
20
+ constructor(_options?: V1.Options);
21
+ protected _coverages: Coverages | undefined;
22
+ get coverages(): Coverages;
23
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.V1 = void 0;
7
+ const Client_1 = require("../resources/coverages/client/Client");
8
+ class V1 {
9
+ constructor(_options = {}) {
10
+ this._options = _options;
11
+ }
12
+ get coverages() {
13
+ var _a;
14
+ return ((_a = this._coverages) !== null && _a !== void 0 ? _a : (this._coverages = new Client_1.Coverages(this._options)));
15
+ }
16
+ }
17
+ exports.V1 = V1;
@@ -0,0 +1,2 @@
1
+ export * from "./resources";
2
+ export * from "./client";
@@ -0,0 +1,18 @@
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("./resources"), exports);
18
+ __exportStar(require("./client"), exports);