candidhealth 0.34.9 → 0.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (334) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +61 -56
  3. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  4. package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  5. package/api/resources/commons/types/ProviderCredentialingSpanId.d.ts +8 -0
  6. package/api/resources/commons/types/ProviderCredentialingSpanId.js +10 -0
  7. package/api/resources/commons/types/index.d.ts +1 -0
  8. package/api/resources/commons/types/index.js +1 -0
  9. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  10. package/api/resources/credentialing/client/Client.d.ts +26 -0
  11. package/api/resources/credentialing/client/Client.js +17 -0
  12. package/api/resources/credentialing/client/index.d.ts +1 -0
  13. package/api/resources/credentialing/client/index.js +2 -0
  14. package/api/resources/credentialing/index.d.ts +2 -0
  15. package/api/resources/credentialing/index.js +18 -0
  16. package/api/resources/credentialing/resources/index.d.ts +1 -0
  17. package/api/resources/credentialing/resources/index.js +27 -0
  18. package/api/resources/credentialing/resources/v2/client/Client.d.ts +97 -0
  19. package/api/resources/credentialing/resources/v2/client/Client.js +413 -0
  20. package/api/resources/credentialing/resources/v2/client/create.d.ts +34 -0
  21. package/api/resources/credentialing/resources/v2/client/create.js +69 -0
  22. package/api/resources/credentialing/resources/v2/client/delete.d.ts +34 -0
  23. package/api/resources/credentialing/resources/v2/client/delete.js +69 -0
  24. package/api/resources/credentialing/resources/v2/client/get.d.ts +34 -0
  25. package/api/resources/credentialing/resources/v2/client/get.js +69 -0
  26. package/api/resources/credentialing/resources/v2/client/getAll.d.ts +28 -0
  27. package/api/resources/credentialing/resources/v2/client/getAll.js +58 -0
  28. package/api/resources/credentialing/resources/v2/client/index.d.ts +6 -0
  29. package/api/resources/credentialing/resources/v2/client/index.js +35 -0
  30. package/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +33 -0
  31. package/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanCreate.d.ts +44 -0
  32. package/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanUpdate.d.ts +41 -0
  33. package/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanUpdate.js +5 -0
  34. package/api/resources/credentialing/resources/v2/client/requests/index.d.ts +3 -0
  35. package/api/resources/credentialing/resources/v2/client/requests/index.js +2 -0
  36. package/api/resources/credentialing/resources/v2/client/update.d.ts +46 -0
  37. package/api/resources/credentialing/resources/v2/client/update.js +91 -0
  38. package/api/resources/credentialing/resources/v2/index.d.ts +2 -0
  39. package/api/resources/credentialing/resources/v2/index.js +18 -0
  40. package/api/resources/credentialing/resources/v2/types/CredentialingSpanStatus.d.ts +13 -0
  41. package/api/resources/credentialing/resources/v2/types/CredentialingSpanStatus.js +12 -0
  42. package/api/resources/credentialing/resources/v2/types/ProviderCredentialingSpan.d.ts +31 -0
  43. package/api/resources/credentialing/resources/v2/types/ProviderCredentialingSpan.js +5 -0
  44. package/api/resources/credentialing/resources/v2/types/ProviderCredentialingSpanId.d.ts +8 -0
  45. package/api/resources/credentialing/resources/v2/types/ProviderCredentialingSpanId.js +10 -0
  46. package/api/resources/credentialing/resources/v2/types/ProviderCredentialingSpanPage.d.ts +7 -0
  47. package/api/resources/credentialing/resources/v2/types/ProviderCredentialingSpanPage.js +5 -0
  48. package/api/resources/credentialing/resources/v2/types/index.d.ts +4 -0
  49. package/api/resources/credentialing/resources/v2/types/index.js +20 -0
  50. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  51. package/api/resources/diagnoses/client/Client.js +3 -3
  52. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  53. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  54. package/api/resources/encounters/resources/v4/client/Client.d.ts +4 -5
  55. package/api/resources/encounters/resources/v4/client/Client.js +9 -11
  56. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatient.d.ts +1 -7
  57. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatient.js +0 -11
  58. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +7 -2
  59. package/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +1 -2
  60. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +16 -2
  61. package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +0 -2
  62. package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +14 -2
  63. package/api/resources/encounters/resources/v4/types/index.d.ts +0 -1
  64. package/api/resources/encounters/resources/v4/types/index.js +0 -1
  65. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  66. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  67. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  68. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  69. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  70. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  71. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  72. package/api/resources/index.d.ts +1 -0
  73. package/api/resources/index.js +2 -1
  74. package/api/resources/individual/types/Patient.d.ts +14 -2
  75. package/api/resources/individual/types/PatientNonInsurancePayerInfo.d.ts +7 -1
  76. package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +2 -17
  77. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +5 -20
  78. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  79. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  80. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  81. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  82. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  83. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  84. package/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayer.d.ts +8 -1
  85. package/api/resources/organizationProviders/resources/v3/client/Client.d.ts +2 -8
  86. package/api/resources/organizationProviders/resources/v3/client/Client.js +6 -12
  87. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  88. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  89. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  90. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  91. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +8 -46
  92. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +14 -52
  93. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +8 -64
  94. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +16 -72
  95. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  96. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +48 -316
  97. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +56 -324
  98. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +24 -158
  99. package/api/resources/serviceFacility/client/Client.js +1 -1
  100. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +15 -0
  101. package/api/resources/serviceLines/resources/v2/client/Client.js +18 -3
  102. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +5 -0
  103. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  104. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  105. package/api/resources/x12/resources/v1/types/Rarc.d.ts +2 -1
  106. package/api/resources/x12/resources/v1/types/Rarc.js +1 -0
  107. package/dist/Client.d.ts +3 -0
  108. package/dist/Client.js +61 -56
  109. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  110. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  111. package/dist/api/resources/commons/types/ProviderCredentialingSpanId.d.ts +8 -0
  112. package/dist/api/resources/commons/types/ProviderCredentialingSpanId.js +10 -0
  113. package/dist/api/resources/commons/types/index.d.ts +1 -0
  114. package/dist/api/resources/commons/types/index.js +1 -0
  115. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  116. package/dist/api/resources/credentialing/client/Client.d.ts +26 -0
  117. package/dist/api/resources/credentialing/client/Client.js +17 -0
  118. package/dist/api/resources/credentialing/client/index.d.ts +1 -0
  119. package/dist/api/resources/credentialing/client/index.js +2 -0
  120. package/dist/api/resources/credentialing/index.d.ts +2 -0
  121. package/dist/api/resources/credentialing/index.js +18 -0
  122. package/dist/api/resources/credentialing/resources/index.d.ts +1 -0
  123. package/dist/api/resources/credentialing/resources/index.js +27 -0
  124. package/dist/api/resources/credentialing/resources/v2/client/Client.d.ts +97 -0
  125. package/dist/api/resources/credentialing/resources/v2/client/Client.js +413 -0
  126. package/dist/api/resources/credentialing/resources/v2/client/create.d.ts +34 -0
  127. package/dist/api/resources/credentialing/resources/v2/client/create.js +69 -0
  128. package/dist/api/resources/credentialing/resources/v2/client/delete.d.ts +34 -0
  129. package/dist/api/resources/credentialing/resources/v2/client/delete.js +69 -0
  130. package/dist/api/resources/credentialing/resources/v2/client/get.d.ts +34 -0
  131. package/dist/api/resources/credentialing/resources/v2/client/get.js +69 -0
  132. package/dist/api/resources/credentialing/resources/v2/client/getAll.d.ts +28 -0
  133. package/dist/api/resources/credentialing/resources/v2/client/getAll.js +58 -0
  134. package/dist/api/resources/credentialing/resources/v2/client/index.d.ts +6 -0
  135. package/dist/api/resources/credentialing/resources/v2/client/index.js +35 -0
  136. package/dist/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +33 -0
  137. package/dist/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.js +5 -0
  138. package/dist/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanCreate.d.ts +44 -0
  139. package/dist/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanCreate.js +5 -0
  140. package/dist/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanUpdate.d.ts +41 -0
  141. package/dist/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanUpdate.js +5 -0
  142. package/dist/api/resources/credentialing/resources/v2/client/requests/index.d.ts +3 -0
  143. package/dist/api/resources/credentialing/resources/v2/client/requests/index.js +2 -0
  144. package/dist/api/resources/credentialing/resources/v2/client/update.d.ts +46 -0
  145. package/dist/api/resources/credentialing/resources/v2/client/update.js +91 -0
  146. package/dist/api/resources/credentialing/resources/v2/index.d.ts +2 -0
  147. package/dist/api/resources/credentialing/resources/v2/index.js +18 -0
  148. package/dist/api/resources/credentialing/resources/v2/types/CredentialingSpanStatus.d.ts +13 -0
  149. package/dist/api/resources/credentialing/resources/v2/types/CredentialingSpanStatus.js +12 -0
  150. package/dist/api/resources/credentialing/resources/v2/types/ProviderCredentialingSpan.d.ts +31 -0
  151. package/dist/api/resources/credentialing/resources/v2/types/ProviderCredentialingSpan.js +5 -0
  152. package/dist/api/resources/credentialing/resources/v2/types/ProviderCredentialingSpanId.d.ts +8 -0
  153. package/dist/api/resources/credentialing/resources/v2/types/ProviderCredentialingSpanId.js +10 -0
  154. package/dist/api/resources/credentialing/resources/v2/types/ProviderCredentialingSpanPage.d.ts +7 -0
  155. package/dist/api/resources/credentialing/resources/v2/types/ProviderCredentialingSpanPage.js +5 -0
  156. package/dist/api/resources/credentialing/resources/v2/types/index.d.ts +4 -0
  157. package/dist/api/resources/credentialing/resources/v2/types/index.js +20 -0
  158. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  159. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  160. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  161. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  162. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +4 -5
  163. package/dist/api/resources/encounters/resources/v4/client/Client.js +9 -11
  164. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatient.d.ts +1 -7
  165. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatient.js +0 -11
  166. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +7 -2
  167. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +1 -2
  168. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +16 -2
  169. package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +0 -2
  170. package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +14 -2
  171. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +0 -1
  172. package/dist/api/resources/encounters/resources/v4/types/index.js +0 -1
  173. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  174. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  175. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  176. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  177. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  178. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  179. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  180. package/dist/api/resources/index.d.ts +1 -0
  181. package/dist/api/resources/index.js +2 -1
  182. package/dist/api/resources/individual/types/Patient.d.ts +14 -2
  183. package/dist/api/resources/individual/types/PatientNonInsurancePayerInfo.d.ts +7 -1
  184. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +2 -17
  185. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +5 -20
  186. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  187. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  188. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  189. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  190. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  191. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  192. package/dist/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayer.d.ts +8 -1
  193. package/dist/api/resources/organizationProviders/resources/v3/client/Client.d.ts +2 -8
  194. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +6 -12
  195. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  196. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  197. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  198. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  199. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +8 -46
  200. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +14 -52
  201. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +8 -64
  202. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +16 -72
  203. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  204. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +48 -316
  205. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +56 -324
  206. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +24 -158
  207. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  208. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +15 -0
  209. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +18 -3
  210. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +5 -0
  211. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  212. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  213. package/dist/api/resources/x12/resources/v1/types/Rarc.d.ts +2 -1
  214. package/dist/api/resources/x12/resources/v1/types/Rarc.js +1 -0
  215. package/dist/serialization/resources/commons/types/ProviderCredentialingSpanId.d.ts +10 -0
  216. package/dist/serialization/resources/commons/types/ProviderCredentialingSpanId.js +35 -0
  217. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  218. package/dist/serialization/resources/commons/types/index.js +1 -0
  219. package/dist/serialization/resources/credentialing/index.d.ts +1 -0
  220. package/dist/serialization/resources/credentialing/index.js +17 -0
  221. package/dist/serialization/resources/credentialing/resources/index.d.ts +1 -0
  222. package/dist/serialization/resources/credentialing/resources/index.js +27 -0
  223. package/dist/serialization/resources/credentialing/resources/v2/client/create.d.ts +20 -0
  224. package/dist/serialization/resources/credentialing/resources/v2/client/create.js +67 -0
  225. package/dist/serialization/resources/credentialing/resources/v2/client/delete.d.ts +20 -0
  226. package/dist/serialization/resources/credentialing/resources/v2/client/delete.js +67 -0
  227. package/dist/serialization/resources/credentialing/resources/v2/client/get.d.ts +20 -0
  228. package/dist/serialization/resources/credentialing/resources/v2/client/get.js +67 -0
  229. package/dist/serialization/resources/credentialing/resources/v2/client/getAll.d.ts +15 -0
  230. package/dist/serialization/resources/credentialing/resources/v2/client/getAll.js +61 -0
  231. package/dist/serialization/resources/credentialing/resources/v2/client/index.d.ts +6 -0
  232. package/dist/serialization/resources/credentialing/resources/v2/client/index.js +35 -0
  233. package/dist/serialization/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanCreate.d.ts +20 -0
  234. package/dist/serialization/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanCreate.js +41 -0
  235. package/dist/serialization/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanUpdate.d.ts +19 -0
  236. package/dist/serialization/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanUpdate.js +40 -0
  237. package/dist/serialization/resources/credentialing/resources/v2/client/requests/index.d.ts +2 -0
  238. package/dist/serialization/resources/credentialing/resources/v2/client/requests/index.js +7 -0
  239. package/dist/serialization/resources/credentialing/resources/v2/client/update.d.ts +30 -0
  240. package/dist/serialization/resources/credentialing/resources/v2/client/update.js +79 -0
  241. package/dist/serialization/resources/credentialing/resources/v2/index.d.ts +2 -0
  242. package/dist/serialization/resources/credentialing/resources/v2/index.js +18 -0
  243. package/dist/serialization/resources/credentialing/resources/v2/types/CredentialingSpanStatus.d.ts +10 -0
  244. package/dist/serialization/resources/{encounters/resources/v4/types/InsurancePayMissingPrimaryCoverageErrorType.js → credentialing/resources/v2/types/CredentialingSpanStatus.js} +2 -4
  245. package/dist/serialization/resources/credentialing/resources/v2/types/ProviderCredentialingSpan.d.ts +29 -0
  246. package/dist/serialization/resources/credentialing/resources/v2/types/ProviderCredentialingSpan.js +50 -0
  247. package/dist/serialization/resources/credentialing/resources/v2/types/ProviderCredentialingSpanId.d.ts +10 -0
  248. package/dist/serialization/resources/credentialing/resources/v2/types/ProviderCredentialingSpanId.js +35 -0
  249. package/dist/serialization/resources/credentialing/resources/v2/types/ProviderCredentialingSpanPage.d.ts +14 -0
  250. package/dist/serialization/resources/credentialing/resources/v2/types/ProviderCredentialingSpanPage.js +37 -0
  251. package/dist/serialization/resources/credentialing/resources/v2/types/index.d.ts +4 -0
  252. package/dist/serialization/resources/credentialing/resources/v2/types/index.js +20 -0
  253. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatient.d.ts +1 -6
  254. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatient.js +0 -6
  255. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -0
  256. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +1 -0
  257. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  258. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -0
  259. package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +0 -1
  260. package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.js +0 -1
  261. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +0 -1
  262. package/dist/serialization/resources/encounters/resources/v4/types/index.js +0 -1
  263. package/dist/serialization/resources/index.d.ts +1 -0
  264. package/dist/serialization/resources/index.js +2 -1
  265. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayer.d.ts +2 -0
  266. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayer.js +2 -0
  267. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +2 -0
  268. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +2 -0
  269. package/dist/serialization/resources/x12/resources/v1/types/Rarc.d.ts +1 -1
  270. package/dist/serialization/resources/x12/resources/v1/types/Rarc.js +1 -0
  271. package/package.json +1 -1
  272. package/reference.md +357 -446
  273. package/serialization/resources/commons/types/ProviderCredentialingSpanId.d.ts +10 -0
  274. package/serialization/resources/commons/types/ProviderCredentialingSpanId.js +35 -0
  275. package/serialization/resources/commons/types/index.d.ts +1 -0
  276. package/serialization/resources/commons/types/index.js +1 -0
  277. package/serialization/resources/credentialing/index.d.ts +1 -0
  278. package/serialization/resources/credentialing/index.js +17 -0
  279. package/serialization/resources/credentialing/resources/index.d.ts +1 -0
  280. package/serialization/resources/credentialing/resources/index.js +27 -0
  281. package/serialization/resources/credentialing/resources/v2/client/create.d.ts +20 -0
  282. package/serialization/resources/credentialing/resources/v2/client/create.js +67 -0
  283. package/serialization/resources/credentialing/resources/v2/client/delete.d.ts +20 -0
  284. package/serialization/resources/credentialing/resources/v2/client/delete.js +67 -0
  285. package/serialization/resources/credentialing/resources/v2/client/get.d.ts +20 -0
  286. package/serialization/resources/credentialing/resources/v2/client/get.js +67 -0
  287. package/serialization/resources/credentialing/resources/v2/client/getAll.d.ts +15 -0
  288. package/serialization/resources/credentialing/resources/v2/client/getAll.js +61 -0
  289. package/serialization/resources/credentialing/resources/v2/client/index.d.ts +6 -0
  290. package/serialization/resources/credentialing/resources/v2/client/index.js +35 -0
  291. package/serialization/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanCreate.d.ts +20 -0
  292. package/serialization/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanCreate.js +41 -0
  293. package/serialization/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanUpdate.d.ts +19 -0
  294. package/serialization/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanUpdate.js +40 -0
  295. package/serialization/resources/credentialing/resources/v2/client/requests/index.d.ts +2 -0
  296. package/serialization/resources/credentialing/resources/v2/client/requests/index.js +7 -0
  297. package/serialization/resources/credentialing/resources/v2/client/update.d.ts +30 -0
  298. package/serialization/resources/credentialing/resources/v2/client/update.js +79 -0
  299. package/serialization/resources/credentialing/resources/v2/index.d.ts +2 -0
  300. package/serialization/resources/credentialing/resources/v2/index.js +18 -0
  301. package/serialization/resources/credentialing/resources/v2/types/CredentialingSpanStatus.d.ts +10 -0
  302. package/serialization/resources/{encounters/resources/v4/types/InsurancePayMissingPrimaryCoverageErrorType.js → credentialing/resources/v2/types/CredentialingSpanStatus.js} +2 -4
  303. package/serialization/resources/credentialing/resources/v2/types/ProviderCredentialingSpan.d.ts +29 -0
  304. package/serialization/resources/credentialing/resources/v2/types/ProviderCredentialingSpan.js +50 -0
  305. package/serialization/resources/credentialing/resources/v2/types/ProviderCredentialingSpanId.d.ts +10 -0
  306. package/serialization/resources/credentialing/resources/v2/types/ProviderCredentialingSpanId.js +35 -0
  307. package/serialization/resources/credentialing/resources/v2/types/ProviderCredentialingSpanPage.d.ts +14 -0
  308. package/serialization/resources/credentialing/resources/v2/types/ProviderCredentialingSpanPage.js +37 -0
  309. package/serialization/resources/credentialing/resources/v2/types/index.d.ts +4 -0
  310. package/serialization/resources/credentialing/resources/v2/types/index.js +20 -0
  311. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatient.d.ts +1 -6
  312. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatient.js +0 -6
  313. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -0
  314. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +1 -0
  315. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  316. package/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -0
  317. package/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +0 -1
  318. package/serialization/resources/encounters/resources/v4/types/EncounterBase.js +0 -1
  319. package/serialization/resources/encounters/resources/v4/types/index.d.ts +0 -1
  320. package/serialization/resources/encounters/resources/v4/types/index.js +0 -1
  321. package/serialization/resources/index.d.ts +1 -0
  322. package/serialization/resources/index.js +2 -1
  323. package/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayer.d.ts +2 -0
  324. package/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayer.js +2 -0
  325. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +2 -0
  326. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +2 -0
  327. package/serialization/resources/x12/resources/v1/types/Rarc.d.ts +1 -1
  328. package/serialization/resources/x12/resources/v1/types/Rarc.js +1 -0
  329. package/api/resources/encounters/resources/v4/types/InsurancePayMissingPrimaryCoverageErrorType.d.ts +0 -6
  330. package/dist/api/resources/encounters/resources/v4/types/InsurancePayMissingPrimaryCoverageErrorType.d.ts +0 -6
  331. package/dist/serialization/resources/encounters/resources/v4/types/InsurancePayMissingPrimaryCoverageErrorType.d.ts +0 -12
  332. package/serialization/resources/encounters/resources/v4/types/InsurancePayMissingPrimaryCoverageErrorType.d.ts +0 -12
  333. /package/api/resources/{encounters/resources/v4/types/InsurancePayMissingPrimaryCoverageErrorType.js → credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.js} +0 -0
  334. /package/{dist/api/resources/encounters/resources/v4/types/InsurancePayMissingPrimaryCoverageErrorType.js → api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanCreate.js} +0 -0
@@ -67,7 +67,7 @@ class V1 {
67
67
  Authorization: yield this._getAuthorizationHeader(),
68
68
  "X-Fern-Language": "JavaScript",
69
69
  "X-Fern-SDK-Name": "candidhealth",
70
- "X-Fern-SDK-Version": "0.34.9",
70
+ "X-Fern-SDK-Version": "0.35.0",
71
71
  "X-Fern-Runtime": core.RUNTIME.type,
72
72
  "X-Fern-Runtime-Version": core.RUNTIME.version,
73
73
  },
@@ -128,7 +128,7 @@ class V1 {
128
128
  Authorization: yield this._getAuthorizationHeader(),
129
129
  "X-Fern-Language": "JavaScript",
130
130
  "X-Fern-SDK-Name": "candidhealth",
131
- "X-Fern-SDK-Version": "0.34.9",
131
+ "X-Fern-SDK-Version": "0.35.0",
132
132
  "X-Fern-Runtime": core.RUNTIME.type,
133
133
  "X-Fern-Runtime-Version": core.RUNTIME.version,
134
134
  },
@@ -207,7 +207,7 @@ class V1 {
207
207
  Authorization: yield this._getAuthorizationHeader(),
208
208
  "X-Fern-Language": "JavaScript",
209
209
  "X-Fern-SDK-Name": "candidhealth",
210
- "X-Fern-SDK-Version": "0.34.9",
210
+ "X-Fern-SDK-Version": "0.35.0",
211
211
  "X-Fern-Runtime": core.RUNTIME.type,
212
212
  "X-Fern-Runtime-Version": core.RUNTIME.version,
213
213
  },
@@ -277,7 +277,7 @@ class V1 {
277
277
  Authorization: yield this._getAuthorizationHeader(),
278
278
  "X-Fern-Language": "JavaScript",
279
279
  "X-Fern-SDK-Name": "candidhealth",
280
- "X-Fern-SDK-Version": "0.34.9",
280
+ "X-Fern-SDK-Version": "0.35.0",
281
281
  "X-Fern-Runtime": core.RUNTIME.type,
282
282
  "X-Fern-Runtime-Version": core.RUNTIME.version,
283
283
  },
@@ -73,7 +73,7 @@ class Diagnoses {
73
73
  Authorization: yield this._getAuthorizationHeader(),
74
74
  "X-Fern-Language": "JavaScript",
75
75
  "X-Fern-SDK-Name": "candidhealth",
76
- "X-Fern-SDK-Version": "0.34.9",
76
+ "X-Fern-SDK-Version": "0.35.0",
77
77
  "X-Fern-Runtime": core.RUNTIME.type,
78
78
  "X-Fern-Runtime-Version": core.RUNTIME.version,
79
79
  },
@@ -126,7 +126,7 @@ class Diagnoses {
126
126
  Authorization: yield this._getAuthorizationHeader(),
127
127
  "X-Fern-Language": "JavaScript",
128
128
  "X-Fern-SDK-Name": "candidhealth",
129
- "X-Fern-SDK-Version": "0.34.9",
129
+ "X-Fern-SDK-Version": "0.35.0",
130
130
  "X-Fern-Runtime": core.RUNTIME.type,
131
131
  "X-Fern-Runtime-Version": core.RUNTIME.version,
132
132
  },
@@ -188,7 +188,7 @@ class Diagnoses {
188
188
  Authorization: yield this._getAuthorizationHeader(),
189
189
  "X-Fern-Language": "JavaScript",
190
190
  "X-Fern-SDK-Name": "candidhealth",
191
- "X-Fern-SDK-Version": "0.34.9",
191
+ "X-Fern-SDK-Version": "0.35.0",
192
192
  "X-Fern-Runtime": core.RUNTIME.type,
193
193
  "X-Fern-Runtime-Version": core.RUNTIME.version,
194
194
  },
@@ -83,7 +83,7 @@ class V2 {
83
83
  Authorization: yield this._getAuthorizationHeader(),
84
84
  "X-Fern-Language": "JavaScript",
85
85
  "X-Fern-SDK-Name": "candidhealth",
86
- "X-Fern-SDK-Version": "0.34.9",
86
+ "X-Fern-SDK-Version": "0.35.0",
87
87
  "X-Fern-Runtime": core.RUNTIME.type,
88
88
  "X-Fern-Runtime-Version": core.RUNTIME.version,
89
89
  },
@@ -156,7 +156,7 @@ class V2 {
156
156
  Authorization: yield this._getAuthorizationHeader(),
157
157
  "X-Fern-Language": "JavaScript",
158
158
  "X-Fern-SDK-Name": "candidhealth",
159
- "X-Fern-SDK-Version": "0.34.9",
159
+ "X-Fern-SDK-Version": "0.35.0",
160
160
  "X-Fern-Runtime": core.RUNTIME.type,
161
161
  "X-Fern-Runtime-Version": core.RUNTIME.version,
162
162
  },
@@ -227,7 +227,7 @@ class V2 {
227
227
  Authorization: yield this._getAuthorizationHeader(),
228
228
  "X-Fern-Language": "JavaScript",
229
229
  "X-Fern-SDK-Name": "candidhealth",
230
- "X-Fern-SDK-Version": "0.34.9",
230
+ "X-Fern-SDK-Version": "0.35.0",
231
231
  "X-Fern-Runtime": core.RUNTIME.type,
232
232
  "X-Fern-Runtime-Version": core.RUNTIME.version,
233
233
  },
@@ -81,7 +81,7 @@ class V2 {
81
81
  Authorization: yield this._getAuthorizationHeader(),
82
82
  "X-Fern-Language": "JavaScript",
83
83
  "X-Fern-SDK-Name": "candidhealth",
84
- "X-Fern-SDK-Version": "0.34.9",
84
+ "X-Fern-SDK-Version": "0.35.0",
85
85
  "X-Fern-Runtime": core.RUNTIME.type,
86
86
  "X-Fern-Runtime-Version": core.RUNTIME.version,
87
87
  },
@@ -160,7 +160,7 @@ class V2 {
160
160
  Authorization: yield this._getAuthorizationHeader(),
161
161
  "X-Fern-Language": "JavaScript",
162
162
  "X-Fern-SDK-Name": "candidhealth",
163
- "X-Fern-SDK-Version": "0.34.9",
163
+ "X-Fern-SDK-Version": "0.35.0",
164
164
  "X-Fern-Runtime": core.RUNTIME.type,
165
165
  "X-Fern-Runtime-Version": core.RUNTIME.version,
166
166
  },
@@ -239,7 +239,7 @@ class V2 {
239
239
  Authorization: yield this._getAuthorizationHeader(),
240
240
  "X-Fern-Language": "JavaScript",
241
241
  "X-Fern-SDK-Name": "candidhealth",
242
- "X-Fern-SDK-Version": "0.34.9",
242
+ "X-Fern-SDK-Version": "0.35.0",
243
243
  "X-Fern-Runtime": core.RUNTIME.type,
244
244
  "X-Fern-Runtime-Version": core.RUNTIME.version,
245
245
  },
@@ -318,7 +318,7 @@ class V2 {
318
318
  Authorization: yield this._getAuthorizationHeader(),
319
319
  "X-Fern-Language": "JavaScript",
320
320
  "X-Fern-SDK-Name": "candidhealth",
321
- "X-Fern-SDK-Version": "0.34.9",
321
+ "X-Fern-SDK-Version": "0.35.0",
322
322
  "X-Fern-Runtime": core.RUNTIME.type,
323
323
  "X-Fern-Runtime-Version": core.RUNTIME.version,
324
324
  },
@@ -396,7 +396,7 @@ class V2 {
396
396
  Authorization: yield this._getAuthorizationHeader(),
397
397
  "X-Fern-Language": "JavaScript",
398
398
  "X-Fern-SDK-Name": "candidhealth",
399
- "X-Fern-SDK-Version": "0.34.9",
399
+ "X-Fern-SDK-Version": "0.35.0",
400
400
  "X-Fern-Runtime": core.RUNTIME.type,
401
401
  "X-Fern-Runtime-Version": core.RUNTIME.version,
402
402
  },
@@ -476,7 +476,7 @@ class V2 {
476
476
  Authorization: yield this._getAuthorizationHeader(),
477
477
  "X-Fern-Language": "JavaScript",
478
478
  "X-Fern-SDK-Name": "candidhealth",
479
- "X-Fern-SDK-Version": "0.34.9",
479
+ "X-Fern-SDK-Version": "0.35.0",
480
480
  "X-Fern-Runtime": core.RUNTIME.type,
481
481
  "X-Fern-Runtime-Version": core.RUNTIME.version,
482
482
  },
@@ -557,7 +557,7 @@ class V2 {
557
557
  Authorization: yield this._getAuthorizationHeader(),
558
558
  "X-Fern-Language": "JavaScript",
559
559
  "X-Fern-SDK-Name": "candidhealth",
560
- "X-Fern-SDK-Version": "0.34.9",
560
+ "X-Fern-SDK-Version": "0.35.0",
561
561
  "X-Fern-Runtime": core.RUNTIME.type,
562
562
  "X-Fern-Runtime-Version": core.RUNTIME.version,
563
563
  },
@@ -637,7 +637,7 @@ class V2 {
637
637
  Authorization: yield this._getAuthorizationHeader(),
638
638
  "X-Fern-Language": "JavaScript",
639
639
  "X-Fern-SDK-Name": "candidhealth",
640
- "X-Fern-SDK-Version": "0.34.9",
640
+ "X-Fern-SDK-Version": "0.35.0",
641
641
  "X-Fern-Runtime": core.RUNTIME.type,
642
642
  "X-Fern-Runtime-Version": core.RUNTIME.version,
643
643
  },
@@ -701,7 +701,7 @@ class V2 {
701
701
  Authorization: yield this._getAuthorizationHeader(),
702
702
  "X-Fern-Language": "JavaScript",
703
703
  "X-Fern-SDK-Name": "candidhealth",
704
- "X-Fern-SDK-Version": "0.34.9",
704
+ "X-Fern-SDK-Version": "0.35.0",
705
705
  "X-Fern-Runtime": core.RUNTIME.type,
706
706
  "X-Fern-Runtime-Version": core.RUNTIME.version,
707
707
  },
@@ -756,7 +756,7 @@ class V2 {
756
756
  Authorization: yield this._getAuthorizationHeader(),
757
757
  "X-Fern-Language": "JavaScript",
758
758
  "X-Fern-SDK-Name": "candidhealth",
759
- "X-Fern-SDK-Version": "0.34.9",
759
+ "X-Fern-SDK-Version": "0.35.0",
760
760
  "X-Fern-Runtime": core.RUNTIME.type,
761
761
  "X-Fern-Runtime-Version": core.RUNTIME.version,
762
762
  },
@@ -811,7 +811,7 @@ class V2 {
811
811
  Authorization: yield this._getAuthorizationHeader(),
812
812
  "X-Fern-Language": "JavaScript",
813
813
  "X-Fern-SDK-Name": "candidhealth",
814
- "X-Fern-SDK-Version": "0.34.9",
814
+ "X-Fern-SDK-Version": "0.35.0",
815
815
  "X-Fern-Runtime": core.RUNTIME.type,
816
816
  "X-Fern-Runtime-Version": core.RUNTIME.version,
817
817
  },
@@ -866,7 +866,7 @@ class V2 {
866
866
  Authorization: yield this._getAuthorizationHeader(),
867
867
  "X-Fern-Language": "JavaScript",
868
868
  "X-Fern-SDK-Name": "candidhealth",
869
- "X-Fern-SDK-Version": "0.34.9",
869
+ "X-Fern-SDK-Version": "0.35.0",
870
870
  "X-Fern-Runtime": core.RUNTIME.type,
871
871
  "X-Fern-Runtime-Version": core.RUNTIME.version,
872
872
  },
@@ -350,6 +350,7 @@ export declare class V4 {
350
350
  * "age": 38
351
351
  * }
352
352
  * }],
353
+ * referralNumber: "string",
353
354
  * externalId: CandidApi.EncounterExternalId("string"),
354
355
  * dateOfService: "2023-01-15",
355
356
  * endDateOfService: "2023-01-15",
@@ -408,8 +409,7 @@ export declare class V4 {
408
409
  * dischargeDate: "2023-01-15",
409
410
  * onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
410
411
  * lastMenstrualPeriodDate: "2023-01-15",
411
- * delayReasonCode: CandidApi.DelayReasonCode.C1,
412
- * referralNumber: "string"
412
+ * delayReasonCode: CandidApi.DelayReasonCode.C1
413
413
  * })
414
414
  */
415
415
  create(request: CandidApi.encounters.v4.EncounterCreate, requestOptions?: V4.RequestOptions): Promise<core.APIResponse<CandidApi.encounters.v4.Encounter, CandidApi.encounters.v4.create.Error>>;
@@ -425,7 +425,7 @@ export declare class V4 {
425
425
  * - Referring Provider
426
426
  * - Subscriber Primary
427
427
  * - Subscriber Secondary
428
- * - Prior Authorization Number
428
+ * - Referral Number
429
429
  * - Responsible Party
430
430
  * - Guarantor
431
431
  *
@@ -670,8 +670,7 @@ export declare class V4 {
670
670
  * dischargeDate: "2023-01-15",
671
671
  * onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
672
672
  * lastMenstrualPeriodDate: "2023-01-15",
673
- * delayReasonCode: CandidApi.DelayReasonCode.C1,
674
- * referralNumber: "string"
673
+ * delayReasonCode: CandidApi.DelayReasonCode.C1
675
674
  * })
676
675
  */
677
676
  createFromPreEncounterPatient(request: CandidApi.encounters.v4.EncounterCreateFromPreEncounter, requestOptions?: V4.RequestOptions): Promise<core.APIResponse<CandidApi.encounters.v4.Encounter, CandidApi.encounters.v4.createFromPreEncounterPatient.Error>>;
@@ -132,7 +132,7 @@ class V4 {
132
132
  Authorization: yield this._getAuthorizationHeader(),
133
133
  "X-Fern-Language": "JavaScript",
134
134
  "X-Fern-SDK-Name": "candidhealth",
135
- "X-Fern-SDK-Version": "0.34.9",
135
+ "X-Fern-SDK-Version": "0.35.0",
136
136
  "X-Fern-Runtime": core.RUNTIME.type,
137
137
  "X-Fern-Runtime-Version": core.RUNTIME.version,
138
138
  },
@@ -178,7 +178,7 @@ class V4 {
178
178
  Authorization: yield this._getAuthorizationHeader(),
179
179
  "X-Fern-Language": "JavaScript",
180
180
  "X-Fern-SDK-Name": "candidhealth",
181
- "X-Fern-SDK-Version": "0.34.9",
181
+ "X-Fern-SDK-Version": "0.35.0",
182
182
  "X-Fern-Runtime": core.RUNTIME.type,
183
183
  "X-Fern-Runtime-Version": core.RUNTIME.version,
184
184
  },
@@ -507,6 +507,7 @@ class V4 {
507
507
  * "age": 38
508
508
  * }
509
509
  * }],
510
+ * referralNumber: "string",
510
511
  * externalId: CandidApi.EncounterExternalId("string"),
511
512
  * dateOfService: "2023-01-15",
512
513
  * endDateOfService: "2023-01-15",
@@ -565,8 +566,7 @@ class V4 {
565
566
  * dischargeDate: "2023-01-15",
566
567
  * onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
567
568
  * lastMenstrualPeriodDate: "2023-01-15",
568
- * delayReasonCode: CandidApi.DelayReasonCode.C1,
569
- * referralNumber: "string"
569
+ * delayReasonCode: CandidApi.DelayReasonCode.C1
570
570
  * })
571
571
  */
572
572
  create(request, requestOptions) {
@@ -580,7 +580,7 @@ class V4 {
580
580
  Authorization: yield this._getAuthorizationHeader(),
581
581
  "X-Fern-Language": "JavaScript",
582
582
  "X-Fern-SDK-Name": "candidhealth",
583
- "X-Fern-SDK-Version": "0.34.9",
583
+ "X-Fern-SDK-Version": "0.35.0",
584
584
  "X-Fern-Runtime": core.RUNTIME.type,
585
585
  "X-Fern-Runtime-Version": core.RUNTIME.version,
586
586
  },
@@ -640,7 +640,7 @@ class V4 {
640
640
  * - Referring Provider
641
641
  * - Subscriber Primary
642
642
  * - Subscriber Secondary
643
- * - Prior Authorization Number
643
+ * - Referral Number
644
644
  * - Responsible Party
645
645
  * - Guarantor
646
646
  *
@@ -885,8 +885,7 @@ class V4 {
885
885
  * dischargeDate: "2023-01-15",
886
886
  * onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
887
887
  * lastMenstrualPeriodDate: "2023-01-15",
888
- * delayReasonCode: CandidApi.DelayReasonCode.C1,
889
- * referralNumber: "string"
888
+ * delayReasonCode: CandidApi.DelayReasonCode.C1
890
889
  * })
891
890
  */
892
891
  createFromPreEncounterPatient(request, requestOptions) {
@@ -900,7 +899,7 @@ class V4 {
900
899
  Authorization: yield this._getAuthorizationHeader(),
901
900
  "X-Fern-Language": "JavaScript",
902
901
  "X-Fern-SDK-Name": "candidhealth",
903
- "X-Fern-SDK-Version": "0.34.9",
902
+ "X-Fern-SDK-Version": "0.35.0",
904
903
  "X-Fern-Runtime": core.RUNTIME.type,
905
904
  "X-Fern-Runtime-Version": core.RUNTIME.version,
906
905
  },
@@ -931,7 +930,6 @@ class V4 {
931
930
  case "EntityNotFoundError":
932
931
  case "HttpRequestValidationsError":
933
932
  case "SchemaInstanceValidationHttpFailure":
934
- case "InsurancePayMissingPrimaryCoverageError":
935
933
  return {
936
934
  ok: false,
937
935
  error: serializers.encounters.v4.createFromPreEncounterPatient.Error.parseOrThrow(_response.error.body, {
@@ -1229,7 +1227,7 @@ class V4 {
1229
1227
  Authorization: yield this._getAuthorizationHeader(),
1230
1228
  "X-Fern-Language": "JavaScript",
1231
1229
  "X-Fern-SDK-Name": "candidhealth",
1232
- "X-Fern-SDK-Version": "0.34.9",
1230
+ "X-Fern-SDK-Version": "0.35.0",
1233
1231
  "X-Fern-Runtime": core.RUNTIME.type,
1234
1232
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1235
1233
  },
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../../index";
5
5
  import * as core from "../../../../../../core";
6
- export declare type Error = CandidApi.encounters.v4.createFromPreEncounterPatient.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.createFromPreEncounterPatient.Error.EncounterPatientControlNumberUniquenessError | CandidApi.encounters.v4.createFromPreEncounterPatient.Error.EntityNotFoundError | CandidApi.encounters.v4.createFromPreEncounterPatient.Error.HttpRequestValidationsError | CandidApi.encounters.v4.createFromPreEncounterPatient.Error.SchemaInstanceValidationHttpFailure | CandidApi.encounters.v4.createFromPreEncounterPatient.Error.InsurancePayMissingPrimaryCoverageError | CandidApi.encounters.v4.createFromPreEncounterPatient.Error._Unknown;
6
+ export declare type Error = CandidApi.encounters.v4.createFromPreEncounterPatient.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.createFromPreEncounterPatient.Error.EncounterPatientControlNumberUniquenessError | CandidApi.encounters.v4.createFromPreEncounterPatient.Error.EntityNotFoundError | CandidApi.encounters.v4.createFromPreEncounterPatient.Error.HttpRequestValidationsError | CandidApi.encounters.v4.createFromPreEncounterPatient.Error.SchemaInstanceValidationHttpFailure | CandidApi.encounters.v4.createFromPreEncounterPatient.Error._Unknown;
7
7
  export declare namespace Error {
8
8
  interface EncounterExternalIdUniquenessError extends _Utils {
9
9
  errorName: "EncounterExternalIdUniquenessError";
@@ -25,10 +25,6 @@ export declare namespace Error {
25
25
  errorName: "SchemaInstanceValidationHttpFailure";
26
26
  content: CandidApi.encounters.v4.SchemaInstanceValidationFailure;
27
27
  }
28
- interface InsurancePayMissingPrimaryCoverageError extends _Utils {
29
- errorName: "InsurancePayMissingPrimaryCoverageError";
30
- content: CandidApi.encounters.v4.InsurancePayMissingPrimaryCoverageErrorType;
31
- }
32
28
  interface _Unknown extends _Utils {
33
29
  errorName: void;
34
30
  content: core.Fetcher.Error;
@@ -42,7 +38,6 @@ export declare namespace Error {
42
38
  entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
43
39
  httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
44
40
  schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => _Result;
45
- insurancePayMissingPrimaryCoverageError: (value: CandidApi.encounters.v4.InsurancePayMissingPrimaryCoverageErrorType) => _Result;
46
41
  _other: (value: core.Fetcher.Error) => _Result;
47
42
  }
48
43
  }
@@ -52,7 +47,6 @@ export declare const Error: {
52
47
  readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.encounters.v4.createFromPreEncounterPatient.Error.EntityNotFoundError;
53
48
  readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.encounters.v4.createFromPreEncounterPatient.Error.HttpRequestValidationsError;
54
49
  readonly schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => CandidApi.encounters.v4.createFromPreEncounterPatient.Error.SchemaInstanceValidationHttpFailure;
55
- readonly insurancePayMissingPrimaryCoverageError: (value: CandidApi.encounters.v4.InsurancePayMissingPrimaryCoverageErrorType) => CandidApi.encounters.v4.createFromPreEncounterPatient.Error.InsurancePayMissingPrimaryCoverageError;
56
50
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounters.v4.createFromPreEncounterPatient.Error._Unknown;
57
51
  readonly _visit: <_Result>(value: CandidApi.encounters.v4.createFromPreEncounterPatient.Error, visitor: CandidApi.encounters.v4.createFromPreEncounterPatient.Error._Visitor<_Result>) => _Result;
58
52
  };
@@ -74,15 +74,6 @@ exports.Error = {
74
74
  },
75
75
  };
76
76
  },
77
- insurancePayMissingPrimaryCoverageError: (value) => {
78
- return {
79
- content: value,
80
- errorName: "InsurancePayMissingPrimaryCoverageError",
81
- _visit: function (visitor) {
82
- return CandidApi.encounters.v4.createFromPreEncounterPatient.Error._visit(this, visitor);
83
- },
84
- };
85
- },
86
77
  _unknown: (fetcherError) => {
87
78
  return {
88
79
  errorName: undefined,
@@ -104,8 +95,6 @@ exports.Error = {
104
95
  return visitor.httpRequestValidationsError(value.content);
105
96
  case "SchemaInstanceValidationHttpFailure":
106
97
  return visitor.schemaInstanceValidationHttpFailure(value.content);
107
- case "InsurancePayMissingPrimaryCoverageError":
108
- return visitor.insurancePayMissingPrimaryCoverageError(value.content);
109
98
  default:
110
99
  return visitor._other(value);
111
100
  }
@@ -301,6 +301,7 @@ import * as CandidApi from "../../../../../../index";
301
301
  * "age": 38
302
302
  * }
303
303
  * }],
304
+ * referralNumber: "string",
304
305
  * externalId: CandidApi.EncounterExternalId("string"),
305
306
  * dateOfService: "2023-01-15",
306
307
  * endDateOfService: "2023-01-15",
@@ -359,8 +360,7 @@ import * as CandidApi from "../../../../../../index";
359
360
  * dischargeDate: "2023-01-15",
360
361
  * onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
361
362
  * lastMenstrualPeriodDate: "2023-01-15",
362
- * delayReasonCode: CandidApi.DelayReasonCode.C1,
363
- * referralNumber: "string"
363
+ * delayReasonCode: CandidApi.DelayReasonCode.C1
364
364
  * }
365
365
  */
366
366
  export interface EncounterCreate extends CandidApi.encounters.v4.EncounterBase {
@@ -471,4 +471,9 @@ export interface EncounterCreate extends CandidApi.encounters.v4.EncounterBase {
471
471
  *
472
472
  */
473
473
  schemaInstances?: CandidApi.customSchemas.v1.SchemaInstance[];
474
+ /**
475
+ * Refers to REF*9F on the 837p. Value cannot be greater than 50 characters.
476
+ *
477
+ */
478
+ referralNumber?: string;
474
479
  }
@@ -238,8 +238,7 @@ import * as CandidApi from "../../../../../../index";
238
238
  * dischargeDate: "2023-01-15",
239
239
  * onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
240
240
  * lastMenstrualPeriodDate: "2023-01-15",
241
- * delayReasonCode: CandidApi.DelayReasonCode.C1,
242
- * referralNumber: "string"
241
+ * delayReasonCode: CandidApi.DelayReasonCode.C1
243
242
  * }
244
243
  */
245
244
  export interface EncounterCreateFromPreEncounter extends CandidApi.encounters.v4.EncounterBase {
@@ -96,7 +96,13 @@ import * as CandidApi from "../../../../../index";
96
96
  * name: "Sunrise Foundation",
97
97
  * category: "Foundation",
98
98
  * description: "Sunrise Foundation is a non-profit organization that provides financial assistance to patients in need.",
99
- * enabled: true
99
+ * enabled: true,
100
+ * address: {
101
+ * address1: "123 Main St",
102
+ * city: "San Francisco",
103
+ * state: CandidApi.State.Ca,
104
+ * zipCode: "94105"
105
+ * }
100
106
  * }],
101
107
  * nonInsurancePayersInfo: [{
102
108
  * nonInsurancePayer: {
@@ -104,7 +110,13 @@ import * as CandidApi from "../../../../../index";
104
110
  * name: "Sunrise Foundation",
105
111
  * category: "Foundation",
106
112
  * description: "Sunrise Foundation is a non-profit organization that provides financial assistance to patients in need.",
107
- * enabled: true
113
+ * enabled: true,
114
+ * address: {
115
+ * address1: "123 Main St",
116
+ * city: "San Francisco",
117
+ * state: CandidApi.State.Ca,
118
+ * zipCode: "94105"
119
+ * }
108
120
  * },
109
121
  * memberId: "123456789"
110
122
  * }],
@@ -481,4 +493,6 @@ export interface Encounter extends CandidApi.encounters.v4.EncounterBase {
481
493
  * instances cannot be created for the same schema on an encounter.
482
494
  */
483
495
  schemaInstances: CandidApi.customSchemas.v1.SchemaInstance[];
496
+ /** Refers to REF\*9F on the 837p. Value cannot be greater than 50 characters. */
497
+ referralNumber?: string;
484
498
  }
@@ -106,6 +106,4 @@ export interface EncounterBase {
106
106
  * Code indicating the reason why a request was delayed
107
107
  */
108
108
  delayReasonCode?: CandidApi.DelayReasonCode;
109
- /** Refers to REF\*9F on the 837p. Value cannot be greater than 50 characters. */
110
- referralNumber?: string;
111
109
  }
@@ -97,7 +97,13 @@ import * as CandidApi from "../../../../../index";
97
97
  * name: "Sunrise Foundation",
98
98
  * category: "Foundation",
99
99
  * description: "Sunrise Foundation is a non-profit organization that provides financial assistance to patients in need.",
100
- * enabled: true
100
+ * enabled: true,
101
+ * address: {
102
+ * address1: "123 Main St",
103
+ * city: "San Francisco",
104
+ * state: CandidApi.State.Ca,
105
+ * zipCode: "94105"
106
+ * }
101
107
  * }],
102
108
  * nonInsurancePayersInfo: [{
103
109
  * nonInsurancePayer: {
@@ -105,7 +111,13 @@ import * as CandidApi from "../../../../../index";
105
111
  * name: "Sunrise Foundation",
106
112
  * category: "Foundation",
107
113
  * description: "Sunrise Foundation is a non-profit organization that provides financial assistance to patients in need.",
108
- * enabled: true
114
+ * enabled: true,
115
+ * address: {
116
+ * address1: "123 Main St",
117
+ * city: "San Francisco",
118
+ * state: CandidApi.State.Ca,
119
+ * zipCode: "94105"
120
+ * }
109
121
  * },
110
122
  * memberId: "123456789"
111
123
  * }],
@@ -28,7 +28,6 @@ export * from "./PriorAuthorizationNumber";
28
28
  export * from "./RxCui";
29
29
  export * from "./IntakeQuestionId";
30
30
  export * from "./IntakeFollowUpId";
31
- export * from "./InsurancePayMissingPrimaryCoverageErrorType";
32
31
  export * from "./EncounterExternalIdUniquenessErrorType";
33
32
  export * from "./EncounterPatientControlNumberUniquenessErrorType";
34
33
  export * from "./EncounterGuarantorMissingContactInfoErrorType";
@@ -44,7 +44,6 @@ __exportStar(require("./PriorAuthorizationNumber"), exports);
44
44
  __exportStar(require("./RxCui"), exports);
45
45
  __exportStar(require("./IntakeQuestionId"), exports);
46
46
  __exportStar(require("./IntakeFollowUpId"), exports);
47
- __exportStar(require("./InsurancePayMissingPrimaryCoverageErrorType"), exports);
48
47
  __exportStar(require("./EncounterExternalIdUniquenessErrorType"), exports);
49
48
  __exportStar(require("./EncounterPatientControlNumberUniquenessErrorType"), exports);
50
49
  __exportStar(require("./EncounterGuarantorMissingContactInfoErrorType"), exports);
@@ -79,7 +79,7 @@ class V1 {
79
79
  Authorization: yield this._getAuthorizationHeader(),
80
80
  "X-Fern-Language": "JavaScript",
81
81
  "X-Fern-SDK-Name": "candidhealth",
82
- "X-Fern-SDK-Version": "0.34.9",
82
+ "X-Fern-SDK-Version": "0.35.0",
83
83
  "X-Fern-Runtime": core.RUNTIME.type,
84
84
  "X-Fern-Runtime-Version": core.RUNTIME.version,
85
85
  },
@@ -96,7 +96,7 @@ class V2 {
96
96
  Authorization: yield this._getAuthorizationHeader(),
97
97
  "X-Fern-Language": "JavaScript",
98
98
  "X-Fern-SDK-Name": "candidhealth",
99
- "X-Fern-SDK-Version": "0.34.9",
99
+ "X-Fern-SDK-Version": "0.35.0",
100
100
  "X-Fern-Runtime": core.RUNTIME.type,
101
101
  "X-Fern-Runtime-Version": core.RUNTIME.version,
102
102
  },
@@ -189,7 +189,7 @@ class V2 {
189
189
  Authorization: yield this._getAuthorizationHeader(),
190
190
  "X-Fern-Language": "JavaScript",
191
191
  "X-Fern-SDK-Name": "candidhealth",
192
- "X-Fern-SDK-Version": "0.34.9",
192
+ "X-Fern-SDK-Version": "0.35.0",
193
193
  "X-Fern-Runtime": core.RUNTIME.type,
194
194
  "X-Fern-Runtime-Version": core.RUNTIME.version,
195
195
  },
@@ -86,7 +86,7 @@ class V3 {
86
86
  Authorization: yield this._getAuthorizationHeader(),
87
87
  "X-Fern-Language": "JavaScript",
88
88
  "X-Fern-SDK-Name": "candidhealth",
89
- "X-Fern-SDK-Version": "0.34.9",
89
+ "X-Fern-SDK-Version": "0.35.0",
90
90
  "X-Fern-Runtime": core.RUNTIME.type,
91
91
  "X-Fern-Runtime-Version": core.RUNTIME.version,
92
92
  },
@@ -82,7 +82,7 @@ class V1 {
82
82
  Authorization: yield this._getAuthorizationHeader(),
83
83
  "X-Fern-Language": "JavaScript",
84
84
  "X-Fern-SDK-Name": "candidhealth",
85
- "X-Fern-SDK-Version": "0.34.9",
85
+ "X-Fern-SDK-Version": "0.35.0",
86
86
  "X-Fern-Runtime": core.RUNTIME.type,
87
87
  "X-Fern-Runtime-Version": core.RUNTIME.version,
88
88
  },