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
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Error = void 0;
30
+ const CandidApi = __importStar(require("../../../../../index"));
31
+ exports.Error = {
32
+ entityNotFoundError: (value) => {
33
+ return {
34
+ content: value,
35
+ errorName: "EntityNotFoundError",
36
+ _visit: function (visitor) {
37
+ return CandidApi.credentialing.v2.get.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ unauthorizedError: (value) => {
42
+ return {
43
+ content: value,
44
+ errorName: "UnauthorizedError",
45
+ _visit: function (visitor) {
46
+ return CandidApi.credentialing.v2.get.Error._visit(this, visitor);
47
+ },
48
+ };
49
+ },
50
+ _unknown: (fetcherError) => {
51
+ return {
52
+ errorName: undefined,
53
+ content: fetcherError,
54
+ _visit: function (visitor) {
55
+ return CandidApi.credentialing.v2.get.Error._visit(this, visitor);
56
+ },
57
+ };
58
+ },
59
+ _visit: (value, visitor) => {
60
+ switch (value.errorName) {
61
+ case "EntityNotFoundError":
62
+ return visitor.entityNotFoundError(value.content);
63
+ case "UnauthorizedError":
64
+ return visitor.unauthorizedError(value.content);
65
+ default:
66
+ return visitor._other(value);
67
+ }
68
+ },
69
+ };
@@ -0,0 +1,28 @@
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 declare type Error = CandidApi.credentialing.v2.getAll.Error.UnauthorizedError | CandidApi.credentialing.v2.getAll.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface UnauthorizedError extends _Utils {
9
+ errorName: "UnauthorizedError";
10
+ content: CandidApi.UnauthorizedErrorMessage;
11
+ }
12
+ interface _Unknown extends _Utils {
13
+ errorName: void;
14
+ content: core.Fetcher.Error;
15
+ }
16
+ interface _Utils {
17
+ _visit: <_Result>(visitor: CandidApi.credentialing.v2.getAll.Error._Visitor<_Result>) => _Result;
18
+ }
19
+ interface _Visitor<_Result> {
20
+ unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
21
+ _other: (value: core.Fetcher.Error) => _Result;
22
+ }
23
+ }
24
+ export declare const Error: {
25
+ readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.credentialing.v2.getAll.Error.UnauthorizedError;
26
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.credentialing.v2.getAll.Error._Unknown;
27
+ readonly _visit: <_Result>(value: CandidApi.credentialing.v2.getAll.Error, visitor: CandidApi.credentialing.v2.getAll.Error._Visitor<_Result>) => _Result;
28
+ };
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Error = void 0;
30
+ const CandidApi = __importStar(require("../../../../../index"));
31
+ exports.Error = {
32
+ unauthorizedError: (value) => {
33
+ return {
34
+ content: value,
35
+ errorName: "UnauthorizedError",
36
+ _visit: function (visitor) {
37
+ return CandidApi.credentialing.v2.getAll.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ _unknown: (fetcherError) => {
42
+ return {
43
+ errorName: undefined,
44
+ content: fetcherError,
45
+ _visit: function (visitor) {
46
+ return CandidApi.credentialing.v2.getAll.Error._visit(this, visitor);
47
+ },
48
+ };
49
+ },
50
+ _visit: (value, visitor) => {
51
+ switch (value.errorName) {
52
+ case "UnauthorizedError":
53
+ return visitor.unauthorizedError(value.content);
54
+ default:
55
+ return visitor._other(value);
56
+ }
57
+ },
58
+ };
@@ -0,0 +1,6 @@
1
+ export * from "./requests";
2
+ export * as create from "./create";
3
+ export * as get from "./get";
4
+ export * as getAll from "./getAll";
5
+ export * as delete from "./delete";
6
+ export * as update from "./update";
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
+ };
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.update = exports.delete = exports.getAll = exports.get = exports.create = void 0;
30
+ __exportStar(require("./requests"), exports);
31
+ exports.create = __importStar(require("./create"));
32
+ exports.get = __importStar(require("./get"));
33
+ exports.getAll = __importStar(require("./getAll"));
34
+ exports.delete = __importStar(require("./delete"));
35
+ exports.update = __importStar(require("./update"));
@@ -0,0 +1,33 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * limit: 1,
9
+ * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
10
+ * payerUuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
11
+ * asRenderingProvider: true,
12
+ * asContractingProvider: true
13
+ * }
14
+ */
15
+ export interface GetAllProviderCredentialingSpansRequest {
16
+ /**
17
+ * Maximum number of entities per page, defaults to 100.
18
+ */
19
+ limit?: number;
20
+ pageToken?: CandidApi.PageToken;
21
+ /**
22
+ * Filter by payer.
23
+ */
24
+ payerUuid?: string;
25
+ /**
26
+ * Filter to credentialing spans where the provider is a rendering provider.
27
+ */
28
+ asRenderingProvider?: boolean;
29
+ /**
30
+ * Filter to credentialing spans where the provider is a contracting provider.
31
+ */
32
+ asContractingProvider?: boolean;
33
+ }
@@ -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 });
@@ -0,0 +1,44 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * renderingProviderId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
9
+ * contractingProviderId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
10
+ * payerUuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
11
+ * startDate: "2023-01-15",
12
+ * endDate: "2023-01-15",
13
+ * regions: {
14
+ * type: "states",
15
+ * states: [CandidApi.State.Aa]
16
+ * },
17
+ * submittedDate: "2023-01-15",
18
+ * payerLoadedDate: "2023-01-15"
19
+ * }
20
+ */
21
+ export interface ProviderCredentialingSpanCreate {
22
+ /** The ID of the rendering provider covered by the credentialing span. */
23
+ renderingProviderId: string;
24
+ /**
25
+ * The ID of the practice location at which the rendering provider is covered by the credentialing span.
26
+ *
27
+ */
28
+ contractingProviderId: string;
29
+ /** The ID of the payer covered by the credentialing span. */
30
+ payerUuid: string;
31
+ /** Start date of the credentialing span. */
32
+ startDate?: string;
33
+ /** End date of the credentialing span. */
34
+ endDate?: string;
35
+ /**
36
+ * The states covered by the credentialing span. A span may be national and cover all states.
37
+ *
38
+ */
39
+ regions: CandidApi.Regions;
40
+ /** Date that the credential paperwork was submitted. */
41
+ submittedDate?: string;
42
+ /** Date that the payer loaded the credentialing span into their system. */
43
+ payerLoadedDate?: string;
44
+ }
@@ -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 });
@@ -0,0 +1,41 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * contractingProviderId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
9
+ * payerUuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
10
+ * startDate: "2023-01-15",
11
+ * endDate: "2023-01-15",
12
+ * regions: {
13
+ * type: "states",
14
+ * states: [CandidApi.State.Aa]
15
+ * },
16
+ * submittedDate: "2023-01-15",
17
+ * payerLoadedDate: "2023-01-15"
18
+ * }
19
+ */
20
+ export interface ProviderCredentialingSpanUpdate {
21
+ /**
22
+ * The ID of the practice location at which the rendering provider is covered by the credentialing span.
23
+ *
24
+ */
25
+ contractingProviderId?: string;
26
+ /** The ID of the payer doing the credentialing. */
27
+ payerUuid?: string;
28
+ /** Start date of the credentialing span. */
29
+ startDate?: string;
30
+ /** End date of the credentialing span. */
31
+ endDate?: string;
32
+ /**
33
+ * The states covered by the credentialing span. A span may be national and cover all states.
34
+ *
35
+ */
36
+ regions?: CandidApi.Regions;
37
+ /** Date that the credential paperwork was submitted. */
38
+ submittedDate?: string;
39
+ /** Date that the payer loaded the credentialing span into their system. */
40
+ payerLoadedDate?: string;
41
+ }
@@ -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 });
@@ -0,0 +1,3 @@
1
+ export { type ProviderCredentialingSpanCreate } from "./ProviderCredentialingSpanCreate";
2
+ export { type GetAllProviderCredentialingSpansRequest } from "./GetAllProviderCredentialingSpansRequest";
3
+ export { type ProviderCredentialingSpanUpdate } from "./ProviderCredentialingSpanUpdate";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,46 @@
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 declare type Error = CandidApi.credentialing.v2.update.Error.EntityNotFoundError | CandidApi.credentialing.v2.update.Error.HttpRequestValidationsError | CandidApi.credentialing.v2.update.Error.UnauthorizedError | CandidApi.credentialing.v2.update.Error.UnprocessableEntityError | CandidApi.credentialing.v2.update.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface EntityNotFoundError extends _Utils {
9
+ errorName: "EntityNotFoundError";
10
+ content: CandidApi.EntityNotFoundErrorMessage;
11
+ }
12
+ interface HttpRequestValidationsError extends _Utils {
13
+ errorName: "HttpRequestValidationsError";
14
+ content: CandidApi.RequestValidationError[];
15
+ }
16
+ interface UnauthorizedError extends _Utils {
17
+ errorName: "UnauthorizedError";
18
+ content: CandidApi.UnauthorizedErrorMessage;
19
+ }
20
+ interface UnprocessableEntityError extends _Utils {
21
+ errorName: "UnprocessableEntityError";
22
+ content: CandidApi.UnprocessableEntityErrorMessage;
23
+ }
24
+ interface _Unknown extends _Utils {
25
+ errorName: void;
26
+ content: core.Fetcher.Error;
27
+ }
28
+ interface _Utils {
29
+ _visit: <_Result>(visitor: CandidApi.credentialing.v2.update.Error._Visitor<_Result>) => _Result;
30
+ }
31
+ interface _Visitor<_Result> {
32
+ entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
33
+ httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
34
+ unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
35
+ unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
36
+ _other: (value: core.Fetcher.Error) => _Result;
37
+ }
38
+ }
39
+ export declare const Error: {
40
+ readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.credentialing.v2.update.Error.EntityNotFoundError;
41
+ readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.credentialing.v2.update.Error.HttpRequestValidationsError;
42
+ readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.credentialing.v2.update.Error.UnauthorizedError;
43
+ readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.credentialing.v2.update.Error.UnprocessableEntityError;
44
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.credentialing.v2.update.Error._Unknown;
45
+ readonly _visit: <_Result>(value: CandidApi.credentialing.v2.update.Error, visitor: CandidApi.credentialing.v2.update.Error._Visitor<_Result>) => _Result;
46
+ };
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Error = void 0;
30
+ const CandidApi = __importStar(require("../../../../../index"));
31
+ exports.Error = {
32
+ entityNotFoundError: (value) => {
33
+ return {
34
+ content: value,
35
+ errorName: "EntityNotFoundError",
36
+ _visit: function (visitor) {
37
+ return CandidApi.credentialing.v2.update.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ httpRequestValidationsError: (value) => {
42
+ return {
43
+ content: value,
44
+ errorName: "HttpRequestValidationsError",
45
+ _visit: function (visitor) {
46
+ return CandidApi.credentialing.v2.update.Error._visit(this, visitor);
47
+ },
48
+ };
49
+ },
50
+ unauthorizedError: (value) => {
51
+ return {
52
+ content: value,
53
+ errorName: "UnauthorizedError",
54
+ _visit: function (visitor) {
55
+ return CandidApi.credentialing.v2.update.Error._visit(this, visitor);
56
+ },
57
+ };
58
+ },
59
+ unprocessableEntityError: (value) => {
60
+ return {
61
+ content: value,
62
+ errorName: "UnprocessableEntityError",
63
+ _visit: function (visitor) {
64
+ return CandidApi.credentialing.v2.update.Error._visit(this, visitor);
65
+ },
66
+ };
67
+ },
68
+ _unknown: (fetcherError) => {
69
+ return {
70
+ errorName: undefined,
71
+ content: fetcherError,
72
+ _visit: function (visitor) {
73
+ return CandidApi.credentialing.v2.update.Error._visit(this, visitor);
74
+ },
75
+ };
76
+ },
77
+ _visit: (value, visitor) => {
78
+ switch (value.errorName) {
79
+ case "EntityNotFoundError":
80
+ return visitor.entityNotFoundError(value.content);
81
+ case "HttpRequestValidationsError":
82
+ return visitor.httpRequestValidationsError(value.content);
83
+ case "UnauthorizedError":
84
+ return visitor.unauthorizedError(value.content);
85
+ case "UnprocessableEntityError":
86
+ return visitor.unprocessableEntityError(value.content);
87
+ default:
88
+ return visitor._other(value);
89
+ }
90
+ },
91
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./client";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Stage of a credentialing span in the credentialing workflow.
6
+ */
7
+ export declare type CredentialingSpanStatus = "work_in_progress" | "pending" | "effective" | "expired";
8
+ export declare const CredentialingSpanStatus: {
9
+ readonly WorkInProgress: "work_in_progress";
10
+ readonly Pending: "pending";
11
+ readonly Effective: "effective";
12
+ readonly Expired: "expired";
13
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CredentialingSpanStatus = void 0;
7
+ exports.CredentialingSpanStatus = {
8
+ WorkInProgress: "work_in_progress",
9
+ Pending: "pending",
10
+ Effective: "effective",
11
+ Expired: "expired",
12
+ };
@@ -0,0 +1,31 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ export interface ProviderCredentialingSpan {
6
+ providerCredentialingSpanId: CandidApi.credentialing.v2.ProviderCredentialingSpanId;
7
+ /** The rendering provider covered by the credentialing span. */
8
+ renderingProvider: CandidApi.organizationProviders.v3.OrganizationProviderV2;
9
+ /** The practice location at which the rendering provider is covered by the credentialing span. */
10
+ contractingProvider: CandidApi.organizationProviders.v3.OrganizationProviderV2;
11
+ /** The payer doing the credentialing. */
12
+ payer: CandidApi.payers.v3.Payer;
13
+ /** Start date of the credentialing span. */
14
+ startDate?: string;
15
+ /** End date of the credentialing span. */
16
+ endDate?: string;
17
+ /** The states covered by the credentialing span. A span may be national and cover all states. */
18
+ regions: CandidApi.Regions;
19
+ /** Date that the credential paperwork was submitted. */
20
+ submittedDate?: string;
21
+ /** Status of the credentialing span. */
22
+ credentialingStatus: CandidApi.credentialing.v2.CredentialingSpanStatus;
23
+ /** Date that the payer loaded the credentialing span into their system. */
24
+ payerLoadedDate?: string;
25
+ /** Source of the credentialing span. */
26
+ source: string;
27
+ /** Provider ID for the related medallion payer enrollment. */
28
+ medallionPayerEnrollmentId?: string;
29
+ /** Is the credentialing span enabled? */
30
+ isEnabled: boolean;
31
+ }
@@ -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 });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ export declare type ProviderCredentialingSpanId = string & {
6
+ credentialing_v2_ProviderCredentialingSpanId: void;
7
+ };
8
+ export declare function ProviderCredentialingSpanId(value: string): CandidApi.credentialing.v2.ProviderCredentialingSpanId;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ProviderCredentialingSpanId = void 0;
7
+ function ProviderCredentialingSpanId(value) {
8
+ return value;
9
+ }
10
+ exports.ProviderCredentialingSpanId = ProviderCredentialingSpanId;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ export interface ProviderCredentialingSpanPage extends CandidApi.ResourcePage {
6
+ items: CandidApi.credentialing.v2.ProviderCredentialingSpan[];
7
+ }
@@ -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 });
@@ -0,0 +1,4 @@
1
+ export * from "./ProviderCredentialingSpanId";
2
+ export * from "./ProviderCredentialingSpan";
3
+ export * from "./CredentialingSpanStatus";
4
+ export * from "./ProviderCredentialingSpanPage";
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ProviderCredentialingSpanId"), exports);
18
+ __exportStar(require("./ProviderCredentialingSpan"), exports);
19
+ __exportStar(require("./CredentialingSpanStatus"), exports);
20
+ __exportStar(require("./ProviderCredentialingSpanPage"), exports);