candidhealth 0.41.1 → 0.41.3

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 (262) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +15 -10
  3. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  4. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  5. package/api/resources/chargeCapture/resources/v1/client/Client.js +6 -6
  6. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
  7. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +5 -0
  8. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +5 -1
  9. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -0
  10. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +4 -2
  11. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  12. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  13. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  14. package/api/resources/diagnoses/client/Client.js +3 -3
  15. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  16. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  17. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  18. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  19. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  20. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  21. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  22. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  23. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  24. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  25. package/api/resources/index.d.ts +1 -0
  26. package/api/resources/index.js +3 -2
  27. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  28. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  29. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  30. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  31. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  32. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  33. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  34. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  35. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  36. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  37. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  38. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  39. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  40. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  41. package/api/resources/preEncounter/resources/common/types/Gender.d.ts +3 -1
  42. package/api/resources/preEncounter/resources/common/types/Gender.js +2 -0
  43. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +16 -0
  44. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +52 -9
  45. package/api/resources/preEncounter/resources/coverages/resources/v1/client/batchUpdatePpg.d.ts +22 -0
  46. package/api/resources/preEncounter/resources/coverages/resources/v1/client/batchUpdatePpg.js +57 -0
  47. package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -0
  48. package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +2 -1
  49. package/api/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.d.ts +10 -0
  50. package/api/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.js +5 -0
  51. package/api/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -0
  52. package/api/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -0
  53. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  54. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  55. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  56. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  57. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +3 -0
  58. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +14 -11
  59. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +1 -0
  60. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +1 -0
  61. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  62. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  63. package/api/resources/serviceFacility/client/Client.js +1 -1
  64. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  65. package/api/resources/superbills/client/Client.d.ts +30 -0
  66. package/api/resources/superbills/client/Client.js +17 -0
  67. package/api/resources/superbills/client/index.d.ts +1 -0
  68. package/api/resources/superbills/client/index.js +2 -0
  69. package/api/resources/superbills/index.d.ts +2 -0
  70. package/api/resources/superbills/index.js +18 -0
  71. package/api/resources/superbills/resources/index.d.ts +1 -0
  72. package/api/resources/superbills/resources/index.js +37 -0
  73. package/api/resources/superbills/resources/v1/client/Client.d.ts +49 -0
  74. package/api/resources/superbills/resources/v1/client/Client.js +137 -0
  75. package/api/resources/superbills/resources/v1/client/createSuperbill.d.ts +28 -0
  76. package/api/resources/superbills/resources/v1/client/createSuperbill.js +68 -0
  77. package/api/resources/superbills/resources/v1/client/index.d.ts +2 -0
  78. package/api/resources/superbills/resources/v1/client/index.js +41 -0
  79. package/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +33 -0
  80. package/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.js +5 -0
  81. package/api/resources/superbills/resources/v1/client/requests/index.d.ts +1 -0
  82. package/api/resources/superbills/resources/v1/client/requests/index.js +2 -0
  83. package/api/resources/superbills/resources/v1/index.d.ts +2 -0
  84. package/api/resources/superbills/resources/v1/index.js +18 -0
  85. package/api/resources/superbills/resources/v1/types/Superbill.d.ts +18 -0
  86. package/api/resources/superbills/resources/v1/types/Superbill.js +5 -0
  87. package/api/resources/superbills/resources/v1/types/SuperbillResponse.d.ts +8 -0
  88. package/api/resources/superbills/resources/v1/types/SuperbillResponse.js +5 -0
  89. package/api/resources/superbills/resources/v1/types/index.d.ts +2 -0
  90. package/api/resources/superbills/resources/v1/types/index.js +18 -0
  91. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  92. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  93. package/dist/Client.d.ts +3 -0
  94. package/dist/Client.js +15 -10
  95. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  96. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  97. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +6 -6
  98. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
  99. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +5 -0
  100. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +5 -1
  101. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -0
  102. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +4 -2
  103. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  104. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  105. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  106. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  107. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  108. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  109. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  110. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  111. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  112. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  113. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  114. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  115. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  116. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  117. package/dist/api/resources/index.d.ts +1 -0
  118. package/dist/api/resources/index.js +3 -2
  119. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  120. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  121. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  122. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  123. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  124. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  125. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  126. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  127. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  128. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  129. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  130. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  131. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  132. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  133. package/dist/api/resources/preEncounter/resources/common/types/Gender.d.ts +3 -1
  134. package/dist/api/resources/preEncounter/resources/common/types/Gender.js +2 -0
  135. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +16 -0
  136. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +52 -9
  137. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/batchUpdatePpg.d.ts +22 -0
  138. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/batchUpdatePpg.js +57 -0
  139. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -0
  140. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +2 -1
  141. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.d.ts +10 -0
  142. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.js +5 -0
  143. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -0
  144. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -0
  145. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  146. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  147. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  148. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  149. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +3 -0
  150. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +14 -11
  151. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +1 -0
  152. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +1 -0
  153. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  154. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  155. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  156. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  157. package/dist/api/resources/superbills/client/Client.d.ts +30 -0
  158. package/dist/api/resources/superbills/client/Client.js +17 -0
  159. package/dist/api/resources/superbills/client/index.d.ts +1 -0
  160. package/dist/api/resources/superbills/client/index.js +2 -0
  161. package/dist/api/resources/superbills/index.d.ts +2 -0
  162. package/dist/api/resources/superbills/index.js +18 -0
  163. package/dist/api/resources/superbills/resources/index.d.ts +1 -0
  164. package/dist/api/resources/superbills/resources/index.js +37 -0
  165. package/dist/api/resources/superbills/resources/v1/client/Client.d.ts +49 -0
  166. package/dist/api/resources/superbills/resources/v1/client/Client.js +137 -0
  167. package/dist/api/resources/superbills/resources/v1/client/createSuperbill.d.ts +28 -0
  168. package/dist/api/resources/superbills/resources/v1/client/createSuperbill.js +68 -0
  169. package/dist/api/resources/superbills/resources/v1/client/index.d.ts +2 -0
  170. package/dist/api/resources/superbills/resources/v1/client/index.js +41 -0
  171. package/dist/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +33 -0
  172. package/dist/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.js +5 -0
  173. package/dist/api/resources/superbills/resources/v1/client/requests/index.d.ts +1 -0
  174. package/dist/api/resources/superbills/resources/v1/client/requests/index.js +2 -0
  175. package/dist/api/resources/superbills/resources/v1/index.d.ts +2 -0
  176. package/dist/api/resources/superbills/resources/v1/index.js +18 -0
  177. package/dist/api/resources/superbills/resources/v1/types/Superbill.d.ts +18 -0
  178. package/dist/api/resources/superbills/resources/v1/types/Superbill.js +5 -0
  179. package/dist/api/resources/superbills/resources/v1/types/SuperbillResponse.d.ts +8 -0
  180. package/dist/api/resources/superbills/resources/v1/types/SuperbillResponse.js +5 -0
  181. package/dist/api/resources/superbills/resources/v1/types/index.d.ts +2 -0
  182. package/dist/api/resources/superbills/resources/v1/types/index.js +18 -0
  183. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  184. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  185. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -0
  186. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +1 -0
  187. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +1 -1
  188. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +9 -1
  189. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +1 -0
  190. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js +1 -0
  191. package/dist/serialization/resources/index.d.ts +1 -0
  192. package/dist/serialization/resources/index.js +3 -2
  193. package/dist/serialization/resources/preEncounter/resources/common/types/Gender.d.ts +1 -1
  194. package/dist/serialization/resources/preEncounter/resources/common/types/Gender.js +11 -1
  195. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.d.ts +18 -0
  196. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.js +49 -0
  197. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -0
  198. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -0
  199. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +1 -0
  200. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +1 -0
  201. package/dist/serialization/resources/superbills/index.d.ts +1 -0
  202. package/dist/serialization/resources/superbills/index.js +17 -0
  203. package/dist/serialization/resources/superbills/resources/index.d.ts +1 -0
  204. package/dist/serialization/resources/superbills/resources/index.js +37 -0
  205. package/dist/serialization/resources/superbills/resources/v1/client/createSuperbill.d.ts +15 -0
  206. package/dist/serialization/resources/superbills/resources/v1/client/createSuperbill.js +71 -0
  207. package/dist/serialization/resources/superbills/resources/v1/client/index.d.ts +2 -0
  208. package/dist/serialization/resources/superbills/resources/v1/client/index.js +41 -0
  209. package/dist/serialization/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +17 -0
  210. package/dist/serialization/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.js +48 -0
  211. package/dist/serialization/resources/superbills/resources/v1/client/requests/index.d.ts +1 -0
  212. package/dist/serialization/resources/superbills/resources/v1/client/requests/index.js +5 -0
  213. package/dist/serialization/resources/superbills/resources/v1/index.d.ts +2 -0
  214. package/dist/serialization/resources/superbills/resources/v1/index.js +18 -0
  215. package/dist/serialization/resources/superbills/resources/v1/types/Superbill.d.ts +18 -0
  216. package/dist/serialization/resources/superbills/resources/v1/types/Superbill.js +49 -0
  217. package/dist/serialization/resources/superbills/resources/v1/types/SuperbillResponse.d.ts +13 -0
  218. package/dist/serialization/resources/superbills/resources/v1/types/SuperbillResponse.js +44 -0
  219. package/dist/serialization/resources/superbills/resources/v1/types/index.d.ts +2 -0
  220. package/dist/serialization/resources/superbills/resources/v1/types/index.js +18 -0
  221. package/dist/version.d.ts +1 -1
  222. package/dist/version.js +1 -1
  223. package/package.json +1 -1
  224. package/reference.md +144 -0
  225. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -0
  226. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +1 -0
  227. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +1 -1
  228. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +9 -1
  229. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +1 -0
  230. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js +1 -0
  231. package/serialization/resources/index.d.ts +1 -0
  232. package/serialization/resources/index.js +3 -2
  233. package/serialization/resources/preEncounter/resources/common/types/Gender.d.ts +1 -1
  234. package/serialization/resources/preEncounter/resources/common/types/Gender.js +11 -1
  235. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.d.ts +18 -0
  236. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.js +49 -0
  237. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -0
  238. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -0
  239. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +1 -0
  240. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +1 -0
  241. package/serialization/resources/superbills/index.d.ts +1 -0
  242. package/serialization/resources/superbills/index.js +17 -0
  243. package/serialization/resources/superbills/resources/index.d.ts +1 -0
  244. package/serialization/resources/superbills/resources/index.js +37 -0
  245. package/serialization/resources/superbills/resources/v1/client/createSuperbill.d.ts +15 -0
  246. package/serialization/resources/superbills/resources/v1/client/createSuperbill.js +71 -0
  247. package/serialization/resources/superbills/resources/v1/client/index.d.ts +2 -0
  248. package/serialization/resources/superbills/resources/v1/client/index.js +41 -0
  249. package/serialization/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +17 -0
  250. package/serialization/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.js +48 -0
  251. package/serialization/resources/superbills/resources/v1/client/requests/index.d.ts +1 -0
  252. package/serialization/resources/superbills/resources/v1/client/requests/index.js +5 -0
  253. package/serialization/resources/superbills/resources/v1/index.d.ts +2 -0
  254. package/serialization/resources/superbills/resources/v1/index.js +18 -0
  255. package/serialization/resources/superbills/resources/v1/types/Superbill.d.ts +18 -0
  256. package/serialization/resources/superbills/resources/v1/types/Superbill.js +49 -0
  257. package/serialization/resources/superbills/resources/v1/types/SuperbillResponse.d.ts +13 -0
  258. package/serialization/resources/superbills/resources/v1/types/SuperbillResponse.js +44 -0
  259. package/serialization/resources/superbills/resources/v1/types/index.d.ts +2 -0
  260. package/serialization/resources/superbills/resources/v1/types/index.js +18 -0
  261. package/version.d.ts +1 -1
  262. package/version.js +1 -1
@@ -196,6 +196,22 @@ export declare class V1 {
196
196
  * })
197
197
  */
198
198
  scan(request: CandidApi.preEncounter.coverages.v1.CoverageScanRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.coverages.v1.Coverage[], CandidApi.preEncounter.coverages.v1.scan.Error>>;
199
+ /**
200
+ * Finds all coverages associated with the given ppg_id and updates the ppg_fields for each coverage.
201
+ *
202
+ * @param {CandidApi.preEncounter.PayerPlanGroupId} ppgId
203
+ * @param {CandidApi.preEncounter.coverages.v1.PayerPlanGroupFields} request
204
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
205
+ *
206
+ * @example
207
+ * await client.preEncounter.coverages.v1.batchUpdatePpg(CandidApi.preEncounter.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
208
+ * payerPlanGroupId: CandidApi.preEncounter.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
209
+ * payerId: CandidApi.preEncounter.PayerId("string"),
210
+ * payerName: "string",
211
+ * planType: "09"
212
+ * })
213
+ */
214
+ batchUpdatePpg(ppgId: CandidApi.preEncounter.PayerPlanGroupId, request: CandidApi.preEncounter.coverages.v1.PayerPlanGroupFields, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<void, CandidApi.preEncounter.coverages.v1.batchUpdatePpg.Error>>;
199
215
  /**
200
216
  * Initiates an eligibility check. Returns the metadata of the check if successfully initiated.
201
217
  *
@@ -118,7 +118,7 @@ class V1 {
118
118
  const _response = yield core.fetcher({
119
119
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/coverages/v1"),
120
120
  method: "POST",
121
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
121
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
122
122
  contentType: "application/json",
123
123
  requestType: "json",
124
124
  body: serializers.preEncounter.coverages.v1.MutableCoverage.jsonOrThrow(request, {
@@ -207,7 +207,7 @@ class V1 {
207
207
  const _response = yield core.fetcher({
208
208
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
209
209
  method: "PUT",
210
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
210
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
211
211
  contentType: "application/json",
212
212
  requestType: "json",
213
213
  body: serializers.preEncounter.coverages.v1.MutableCoverage.jsonOrThrow(request, {
@@ -283,7 +283,7 @@ class V1 {
283
283
  const _response = yield core.fetcher({
284
284
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/coverages/v1/get-multi-paginated"),
285
285
  method: "GET",
286
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
286
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
287
287
  contentType: "application/json",
288
288
  queryParameters: _queryParams,
289
289
  requestType: "json",
@@ -337,7 +337,7 @@ class V1 {
337
337
  const _response = yield core.fetcher({
338
338
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}`),
339
339
  method: "GET",
340
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
340
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
341
341
  contentType: "application/json",
342
342
  requestType: "json",
343
343
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -376,7 +376,7 @@ class V1 {
376
376
  const _response = yield core.fetcher({
377
377
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/history`),
378
378
  method: "GET",
379
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
379
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
380
380
  contentType: "application/json",
381
381
  requestType: "json",
382
382
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -436,7 +436,7 @@ class V1 {
436
436
  const _response = yield core.fetcher({
437
437
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/coverages/v1"),
438
438
  method: "GET",
439
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
439
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
440
440
  contentType: "application/json",
441
441
  queryParameters: _queryParams,
442
442
  requestType: "json",
@@ -481,7 +481,7 @@ class V1 {
481
481
  const _response = yield core.fetcher({
482
482
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/coverages/v1/updates/scan"),
483
483
  method: "GET",
484
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
484
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
485
485
  contentType: "application/json",
486
486
  queryParameters: _queryParams,
487
487
  requestType: "json",
@@ -506,6 +506,49 @@ class V1 {
506
506
  };
507
507
  });
508
508
  }
509
+ /**
510
+ * Finds all coverages associated with the given ppg_id and updates the ppg_fields for each coverage.
511
+ *
512
+ * @param {CandidApi.preEncounter.PayerPlanGroupId} ppgId
513
+ * @param {CandidApi.preEncounter.coverages.v1.PayerPlanGroupFields} request
514
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
515
+ *
516
+ * @example
517
+ * await client.preEncounter.coverages.v1.batchUpdatePpg(CandidApi.preEncounter.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
518
+ * payerPlanGroupId: CandidApi.preEncounter.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
519
+ * payerId: CandidApi.preEncounter.PayerId("string"),
520
+ * payerName: "string",
521
+ * planType: "09"
522
+ * })
523
+ */
524
+ batchUpdatePpg(ppgId, request, requestOptions) {
525
+ return __awaiter(this, void 0, void 0, function* () {
526
+ var _a, _b;
527
+ const _response = yield core.fetcher({
528
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/batch-update-ppg/${encodeURIComponent(serializers.preEncounter.PayerPlanGroupId.jsonOrThrow(ppgId))}`),
529
+ method: "POST",
530
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
531
+ contentType: "application/json",
532
+ requestType: "json",
533
+ body: serializers.preEncounter.coverages.v1.PayerPlanGroupFields.jsonOrThrow(request, {
534
+ unrecognizedObjectKeys: "strip",
535
+ }),
536
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
537
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
538
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
539
+ });
540
+ if (_response.ok) {
541
+ return {
542
+ ok: true,
543
+ body: undefined,
544
+ };
545
+ }
546
+ return {
547
+ ok: false,
548
+ error: CandidApi.preEncounter.coverages.v1.batchUpdatePpg.Error._unknown(_response.error),
549
+ };
550
+ });
551
+ }
509
552
  /**
510
553
  * Initiates an eligibility check. Returns the metadata of the check if successfully initiated.
511
554
  *
@@ -526,7 +569,7 @@ class V1 {
526
569
  const _response = yield core.fetcher({
527
570
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/eligibility`),
528
571
  method: "POST",
529
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
572
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
530
573
  contentType: "application/json",
531
574
  requestType: "json",
532
575
  body: serializers.preEncounter.coverages.v1.CheckEligibilityRequest.jsonOrThrow(request, {
@@ -569,7 +612,7 @@ class V1 {
569
612
  const _response = yield core.fetcher({
570
613
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/eligibility/${encodeURIComponent(checkId)}`),
571
614
  method: "GET",
572
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
615
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
573
616
  contentType: "application/json",
574
617
  requestType: "json",
575
618
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../../../index";
5
+ import * as core from "../../../../../../../../core";
6
+ export type Error = CandidApi.preEncounter.coverages.v1.batchUpdatePpg.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface _Unknown extends _Utils {
9
+ errorName: void;
10
+ content: core.Fetcher.Error;
11
+ }
12
+ interface _Utils {
13
+ _visit: <_Result>(visitor: CandidApi.preEncounter.coverages.v1.batchUpdatePpg.Error._Visitor<_Result>) => _Result;
14
+ }
15
+ interface _Visitor<_Result> {
16
+ _other: (value: core.Fetcher.Error) => _Result;
17
+ }
18
+ }
19
+ export declare const Error: {
20
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.coverages.v1.batchUpdatePpg.Error._Unknown;
21
+ readonly _visit: <_Result>(value: CandidApi.preEncounter.coverages.v1.batchUpdatePpg.Error, visitor: CandidApi.preEncounter.coverages.v1.batchUpdatePpg.Error._Visitor<_Result>) => _Result;
22
+ };
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Error = void 0;
40
+ const CandidApi = __importStar(require("../../../../../../../index"));
41
+ exports.Error = {
42
+ _unknown: (fetcherError) => {
43
+ return {
44
+ errorName: undefined,
45
+ content: fetcherError,
46
+ _visit: function (visitor) {
47
+ return CandidApi.preEncounter.coverages.v1.batchUpdatePpg.Error._visit(this, visitor);
48
+ },
49
+ };
50
+ },
51
+ _visit: (value, visitor) => {
52
+ switch (value.errorName) {
53
+ default:
54
+ return visitor._other(value);
55
+ }
56
+ },
57
+ };
@@ -6,5 +6,6 @@ export * as get from "./get";
6
6
  export * as getHistory from "./getHistory";
7
7
  export * as getMulti from "./getMulti";
8
8
  export * as scan from "./scan";
9
+ export * as batchUpdatePpg from "./batchUpdatePpg";
9
10
  export * as checkEligibility from "./checkEligibility";
10
11
  export * as getEligibility from "./getEligibility";
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.getEligibility = exports.checkEligibility = exports.scan = exports.getMulti = exports.getHistory = exports.get = exports.getMultiPaginated = exports.update = exports.create = void 0;
39
+ exports.getEligibility = exports.checkEligibility = exports.batchUpdatePpg = exports.scan = exports.getMulti = exports.getHistory = exports.get = exports.getMultiPaginated = exports.update = exports.create = void 0;
40
40
  __exportStar(require("./requests"), exports);
41
41
  exports.create = __importStar(require("./create"));
42
42
  exports.update = __importStar(require("./update"));
@@ -45,5 +45,6 @@ exports.get = __importStar(require("./get"));
45
45
  exports.getHistory = __importStar(require("./getHistory"));
46
46
  exports.getMulti = __importStar(require("./getMulti"));
47
47
  exports.scan = __importStar(require("./scan"));
48
+ exports.batchUpdatePpg = __importStar(require("./batchUpdatePpg"));
48
49
  exports.checkEligibility = __importStar(require("./checkEligibility"));
49
50
  exports.getEligibility = __importStar(require("./getEligibility"));
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../../../index";
5
+ export interface PayerPlanGroupFields {
6
+ payerPlanGroupId: CandidApi.preEncounter.PayerPlanGroupId;
7
+ payerId: CandidApi.preEncounter.PayerId;
8
+ payerName: string;
9
+ planType: CandidApi.preEncounter.coverages.v1.NetworkType;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
+ export * from "./PayerPlanGroupFields";
1
2
  export * from "./CoveragesPage";
2
3
  export * from "./LatestEligibilityCheck";
3
4
  export * from "./EligibilityCheckMetadata";
@@ -14,6 +14,7 @@ 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("./PayerPlanGroupFields"), exports);
17
18
  __exportStar(require("./CoveragesPage"), exports);
18
19
  __exportStar(require("./LatestEligibilityCheck"), exports);
19
20
  __exportStar(require("./EligibilityCheckMetadata"), exports);
@@ -97,7 +97,7 @@ class V1 {
97
97
  const _response = yield core.fetcher({
98
98
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/eligibility-checks/v1"),
99
99
  method: "POST",
100
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
100
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
101
101
  contentType: "application/json",
102
102
  requestType: "json",
103
103
  body: serializers.preEncounter.eligibilityChecks.v1.EligibilityRequest.jsonOrThrow(request, {
@@ -86,7 +86,7 @@ class V1 {
86
86
  const _response = yield core.fetcher({
87
87
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/images/v1"),
88
88
  method: "POST",
89
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
90
90
  contentType: "application/json",
91
91
  requestType: "json",
92
92
  body: serializers.preEncounter.images.v1.MutableImage.jsonOrThrow(request, {
@@ -142,7 +142,7 @@ class V1 {
142
142
  const _response = yield core.fetcher({
143
143
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/images/v1/${encodeURIComponent(serializers.preEncounter.images.v1.ImageId.jsonOrThrow(id))}`),
144
144
  method: "GET",
145
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
145
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
146
146
  contentType: "application/json",
147
147
  requestType: "json",
148
148
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -210,7 +210,7 @@ class V1 {
210
210
  const _response = yield core.fetcher({
211
211
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/images/v1/${encodeURIComponent(serializers.preEncounter.images.v1.ImageId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
212
212
  method: "PUT",
213
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
213
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
214
214
  contentType: "application/json",
215
215
  requestType: "json",
216
216
  body: serializers.preEncounter.images.v1.MutableImage.jsonOrThrow(request, {
@@ -268,7 +268,7 @@ class V1 {
268
268
  const _response = yield core.fetcher({
269
269
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/images/v1/${encodeURIComponent(serializers.preEncounter.images.v1.ImageId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
270
270
  method: "DELETE",
271
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
271
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
272
272
  contentType: "application/json",
273
273
  requestType: "json",
274
274
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -328,7 +328,7 @@ class V1 {
328
328
  const _response = yield core.fetcher({
329
329
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/images/v1"),
330
330
  method: "GET",
331
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
331
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
332
332
  contentType: "application/json",
333
333
  queryParameters: _queryParams,
334
334
  requestType: "json",
@@ -98,7 +98,7 @@ class V1 {
98
98
  const _response = yield core.fetcher({
99
99
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/lists/v1/patient"),
100
100
  method: "GET",
101
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
101
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
102
102
  contentType: "application/json",
103
103
  queryParameters: _queryParams,
104
104
  requestType: "json",
@@ -177,7 +177,7 @@ class V1 {
177
177
  const _response = yield core.fetcher({
178
178
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/lists/v1/appointment"),
179
179
  method: "GET",
180
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
180
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
181
181
  contentType: "application/json",
182
182
  queryParameters: _queryParams,
183
183
  requestType: "json",
@@ -73,7 +73,7 @@ class V1 {
73
73
  const _response = yield core.fetcher({
74
74
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/notes/v1/${encodeURIComponent(serializers.preEncounter.NoteId.jsonOrThrow(id))}`),
75
75
  method: "GET",
76
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
77
  contentType: "application/json",
78
78
  requestType: "json",
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -116,7 +116,7 @@ class V1 {
116
116
  const _response = yield core.fetcher({
117
117
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/notes/v1"),
118
118
  method: "POST",
119
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
119
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
120
120
  contentType: "application/json",
121
121
  requestType: "json",
122
122
  body: serializers.preEncounter.notes.v1.MutableNote.jsonOrThrow(request, {
@@ -164,7 +164,7 @@ class V1 {
164
164
  const _response = yield core.fetcher({
165
165
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/notes/v1/${encodeURIComponent(serializers.preEncounter.NoteId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
166
166
  method: "PUT",
167
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
167
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
168
  contentType: "application/json",
169
169
  requestType: "json",
170
170
  body: serializers.preEncounter.notes.v1.MutableNote.jsonOrThrow(request, {
@@ -207,7 +207,7 @@ class V1 {
207
207
  const _response = yield core.fetcher({
208
208
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/notes/v1/${encodeURIComponent(serializers.preEncounter.NoteId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
209
209
  method: "DELETE",
210
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
210
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
211
211
  contentType: "application/json",
212
212
  requestType: "json",
213
213
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -58,6 +58,7 @@ export declare class V1 {
58
58
  * socialSecurityNumber: "string",
59
59
  * biologicalSex: "FEMALE",
60
60
  * sexualOrientation: "HETEROSEXUAL",
61
+ * pronouns: ["string"],
61
62
  * race: "AMERICAN_INDIAN_OR_ALASKA_NATIVE",
62
63
  * ethnicity: "HISPANIC_OR_LATINO",
63
64
  * disabilityStatus: "DISABLED",
@@ -250,6 +251,7 @@ export declare class V1 {
250
251
  * socialSecurityNumber: "string",
251
252
  * biologicalSex: "FEMALE",
252
253
  * sexualOrientation: "HETEROSEXUAL",
254
+ * pronouns: ["string"],
253
255
  * race: "AMERICAN_INDIAN_OR_ALASKA_NATIVE",
254
256
  * ethnicity: "HISPANIC_OR_LATINO",
255
257
  * disabilityStatus: "DISABLED",
@@ -489,6 +491,7 @@ export declare class V1 {
489
491
  * socialSecurityNumber: "string",
490
492
  * biologicalSex: "FEMALE",
491
493
  * sexualOrientation: "HETEROSEXUAL",
494
+ * pronouns: ["string"],
492
495
  * race: "AMERICAN_INDIAN_OR_ALASKA_NATIVE",
493
496
  * ethnicity: "HISPANIC_OR_LATINO",
494
497
  * disabilityStatus: "DISABLED",
@@ -91,6 +91,7 @@ class V1 {
91
91
  * socialSecurityNumber: "string",
92
92
  * biologicalSex: "FEMALE",
93
93
  * sexualOrientation: "HETEROSEXUAL",
94
+ * pronouns: ["string"],
94
95
  * race: "AMERICAN_INDIAN_OR_ALASKA_NATIVE",
95
96
  * ethnicity: "HISPANIC_OR_LATINO",
96
97
  * disabilityStatus: "DISABLED",
@@ -259,7 +260,7 @@ class V1 {
259
260
  const _response = yield core.fetcher({
260
261
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1"),
261
262
  method: "POST",
262
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
263
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
263
264
  contentType: "application/json",
264
265
  queryParameters: _queryParams,
265
266
  requestType: "json",
@@ -335,6 +336,7 @@ class V1 {
335
336
  * socialSecurityNumber: "string",
336
337
  * biologicalSex: "FEMALE",
337
338
  * sexualOrientation: "HETEROSEXUAL",
339
+ * pronouns: ["string"],
338
340
  * race: "AMERICAN_INDIAN_OR_ALASKA_NATIVE",
339
341
  * ethnicity: "HISPANIC_OR_LATINO",
340
342
  * disabilityStatus: "DISABLED",
@@ -503,7 +505,7 @@ class V1 {
503
505
  const _response = yield core.fetcher({
504
506
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1/with_mrn"),
505
507
  method: "POST",
506
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
508
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
507
509
  contentType: "application/json",
508
510
  queryParameters: _queryParams,
509
511
  requestType: "json",
@@ -586,7 +588,7 @@ class V1 {
586
588
  const _response = yield core.fetcher({
587
589
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1/get_multi"),
588
590
  method: "GET",
589
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
591
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
590
592
  contentType: "application/json",
591
593
  queryParameters: _queryParams,
592
594
  requestType: "json",
@@ -631,7 +633,7 @@ class V1 {
631
633
  const _response = yield core.fetcher({
632
634
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1/search_providers"),
633
635
  method: "GET",
634
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
636
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
635
637
  contentType: "application/json",
636
638
  queryParameters: _queryParams,
637
639
  requestType: "json",
@@ -671,7 +673,7 @@ class V1 {
671
673
  const _response = yield core.fetcher({
672
674
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}`),
673
675
  method: "GET",
674
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
676
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
675
677
  contentType: "application/json",
676
678
  requestType: "json",
677
679
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -724,7 +726,7 @@ class V1 {
724
726
  const _response = yield core.fetcher({
725
727
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/history`),
726
728
  method: "GET",
727
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
729
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
728
730
  contentType: "application/json",
729
731
  requestType: "json",
730
732
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -795,6 +797,7 @@ class V1 {
795
797
  * socialSecurityNumber: "string",
796
798
  * biologicalSex: "FEMALE",
797
799
  * sexualOrientation: "HETEROSEXUAL",
800
+ * pronouns: ["string"],
798
801
  * race: "AMERICAN_INDIAN_OR_ALASKA_NATIVE",
799
802
  * ethnicity: "HISPANIC_OR_LATINO",
800
803
  * disabilityStatus: "DISABLED",
@@ -957,7 +960,7 @@ class V1 {
957
960
  const _response = yield core.fetcher({
958
961
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
959
962
  method: "PUT",
960
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
963
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
961
964
  contentType: "application/json",
962
965
  requestType: "json",
963
966
  body: serializers.preEncounter.patients.v1.MutablePatient.jsonOrThrow(request, {
@@ -1015,7 +1018,7 @@ class V1 {
1015
1018
  const _response = yield core.fetcher({
1016
1019
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
1017
1020
  method: "DELETE",
1018
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1021
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1019
1022
  contentType: "application/json",
1020
1023
  requestType: "json",
1021
1024
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1065,7 +1068,7 @@ class V1 {
1065
1068
  const _response = yield core.fetcher({
1066
1069
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
1067
1070
  method: "PATCH",
1068
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1071
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1069
1072
  contentType: "application/json",
1070
1073
  requestType: "json",
1071
1074
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1125,7 +1128,7 @@ class V1 {
1125
1128
  const _response = yield core.fetcher({
1126
1129
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1"),
1127
1130
  method: "GET",
1128
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1131
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1129
1132
  contentType: "application/json",
1130
1133
  queryParameters: _queryParams,
1131
1134
  requestType: "json",
@@ -1170,7 +1173,7 @@ class V1 {
1170
1173
  const _response = yield core.fetcher({
1171
1174
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1/updates/scan"),
1172
1175
  method: "GET",
1173
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1176
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1174
1177
  contentType: "application/json",
1175
1178
  queryParameters: _queryParams,
1176
1179
  requestType: "json",