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,30 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as CandidApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ import { EntityNotFoundErrorMessage } from "../../../../commons/types/EntityNotFoundErrorMessage";
8
+ import { RequestValidationError } from "../../../../commons/types/RequestValidationError";
9
+ import { UnauthorizedErrorMessage } from "../../../../commons/types/UnauthorizedErrorMessage";
10
+ import { UnprocessableEntityErrorMessage } from "../../../../commons/types/UnprocessableEntityErrorMessage";
11
+ export declare const Error: core.serialization.Schema<serializers.credentialing.v2.update.Error.Raw, CandidApi.credentialing.v2.update.Error>;
12
+ export declare namespace Error {
13
+ type Raw = Error.EntityNotFoundError | Error.HttpRequestValidationsError | Error.UnauthorizedError | Error.UnprocessableEntityError;
14
+ interface EntityNotFoundError {
15
+ errorName: "EntityNotFoundError";
16
+ content: EntityNotFoundErrorMessage.Raw;
17
+ }
18
+ interface HttpRequestValidationsError {
19
+ errorName: "HttpRequestValidationsError";
20
+ content: RequestValidationError.Raw[];
21
+ }
22
+ interface UnauthorizedError {
23
+ errorName: "UnauthorizedError";
24
+ content: UnauthorizedErrorMessage.Raw;
25
+ }
26
+ interface UnprocessableEntityError {
27
+ errorName: "UnprocessableEntityError";
28
+ content: UnprocessableEntityErrorMessage.Raw;
29
+ }
30
+ }
@@ -0,0 +1,79 @@
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
+ var __rest = (this && this.__rest) || function (s, e) {
29
+ var t = {};
30
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
31
+ t[p] = s[p];
32
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
33
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
34
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
35
+ t[p[i]] = s[p[i]];
36
+ }
37
+ return t;
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ exports.Error = void 0;
41
+ const CandidApi = __importStar(require("../../../../../../api/index"));
42
+ const core = __importStar(require("../../../../../../core"));
43
+ const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
44
+ const RequestValidationError_1 = require("../../../../commons/types/RequestValidationError");
45
+ const UnauthorizedErrorMessage_1 = require("../../../../commons/types/UnauthorizedErrorMessage");
46
+ const UnprocessableEntityErrorMessage_1 = require("../../../../commons/types/UnprocessableEntityErrorMessage");
47
+ exports.Error = core.serialization
48
+ .union("errorName", {
49
+ EntityNotFoundError: core.serialization.object({
50
+ content: EntityNotFoundErrorMessage_1.EntityNotFoundErrorMessage,
51
+ }),
52
+ HttpRequestValidationsError: core.serialization.object({
53
+ content: core.serialization.list(RequestValidationError_1.RequestValidationError),
54
+ }),
55
+ UnauthorizedError: core.serialization.object({
56
+ content: UnauthorizedErrorMessage_1.UnauthorizedErrorMessage,
57
+ }),
58
+ UnprocessableEntityError: core.serialization.object({
59
+ content: UnprocessableEntityErrorMessage_1.UnprocessableEntityErrorMessage,
60
+ }),
61
+ })
62
+ .transform({
63
+ transform: (value) => {
64
+ switch (value.errorName) {
65
+ case "EntityNotFoundError":
66
+ return CandidApi.credentialing.v2.update.Error.entityNotFoundError(value.content);
67
+ case "HttpRequestValidationsError":
68
+ return CandidApi.credentialing.v2.update.Error.httpRequestValidationsError(value.content);
69
+ case "UnauthorizedError":
70
+ return CandidApi.credentialing.v2.update.Error.unauthorizedError(value.content);
71
+ case "UnprocessableEntityError":
72
+ return CandidApi.credentialing.v2.update.Error.unprocessableEntityError(value.content);
73
+ }
74
+ },
75
+ untransform: (_a) => {
76
+ var { _visit } = _a, value = __rest(_a, ["_visit"]);
77
+ return value;
78
+ },
79
+ });
@@ -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,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as CandidApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ export declare const CredentialingSpanStatus: core.serialization.Schema<serializers.credentialing.v2.CredentialingSpanStatus.Raw, CandidApi.credentialing.v2.CredentialingSpanStatus>;
8
+ export declare namespace CredentialingSpanStatus {
9
+ type Raw = "work_in_progress" | "pending" | "effective" | "expired";
10
+ }
@@ -26,8 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.InsurancePayMissingPrimaryCoverageErrorType = void 0;
29
+ exports.CredentialingSpanStatus = void 0;
30
30
  const core = __importStar(require("../../../../../../core"));
31
- exports.InsurancePayMissingPrimaryCoverageErrorType = core.serialization.object({
32
- patientId: core.serialization.property("patient_id", core.serialization.string()),
33
- });
31
+ exports.CredentialingSpanStatus = core.serialization.enum_(["work_in_progress", "pending", "effective", "expired"]);
@@ -0,0 +1,29 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as CandidApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ import { ProviderCredentialingSpanId } from "./ProviderCredentialingSpanId";
8
+ import { OrganizationProviderV2 } from "../../../../organizationProviders/resources/v3/types/OrganizationProviderV2";
9
+ import { Payer } from "../../../../payers/resources/v3/types/Payer";
10
+ import { Regions } from "../../../../commons/types/Regions";
11
+ import { CredentialingSpanStatus } from "./CredentialingSpanStatus";
12
+ export declare const ProviderCredentialingSpan: core.serialization.ObjectSchema<serializers.credentialing.v2.ProviderCredentialingSpan.Raw, CandidApi.credentialing.v2.ProviderCredentialingSpan>;
13
+ export declare namespace ProviderCredentialingSpan {
14
+ interface Raw {
15
+ provider_credentialing_span_id: ProviderCredentialingSpanId.Raw;
16
+ rendering_provider: OrganizationProviderV2.Raw;
17
+ contracting_provider: OrganizationProviderV2.Raw;
18
+ payer: Payer.Raw;
19
+ start_date?: string | null;
20
+ end_date?: string | null;
21
+ regions: Regions.Raw;
22
+ submitted_date?: string | null;
23
+ credentialing_status: CredentialingSpanStatus.Raw;
24
+ payer_loaded_date?: string | null;
25
+ source: string;
26
+ medallion_payer_enrollment_id?: string | null;
27
+ is_enabled: boolean;
28
+ }
29
+ }
@@ -0,0 +1,50 @@
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.ProviderCredentialingSpan = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ const ProviderCredentialingSpanId_1 = require("./ProviderCredentialingSpanId");
32
+ const OrganizationProviderV2_1 = require("../../../../organizationProviders/resources/v3/types/OrganizationProviderV2");
33
+ const Payer_1 = require("../../../../payers/resources/v3/types/Payer");
34
+ const Regions_1 = require("../../../../commons/types/Regions");
35
+ const CredentialingSpanStatus_1 = require("./CredentialingSpanStatus");
36
+ exports.ProviderCredentialingSpan = core.serialization.object({
37
+ providerCredentialingSpanId: core.serialization.property("provider_credentialing_span_id", ProviderCredentialingSpanId_1.ProviderCredentialingSpanId),
38
+ renderingProvider: core.serialization.property("rendering_provider", OrganizationProviderV2_1.OrganizationProviderV2),
39
+ contractingProvider: core.serialization.property("contracting_provider", OrganizationProviderV2_1.OrganizationProviderV2),
40
+ payer: Payer_1.Payer,
41
+ startDate: core.serialization.property("start_date", core.serialization.string().optional()),
42
+ endDate: core.serialization.property("end_date", core.serialization.string().optional()),
43
+ regions: Regions_1.Regions,
44
+ submittedDate: core.serialization.property("submitted_date", core.serialization.string().optional()),
45
+ credentialingStatus: core.serialization.property("credentialing_status", CredentialingSpanStatus_1.CredentialingSpanStatus),
46
+ payerLoadedDate: core.serialization.property("payer_loaded_date", core.serialization.string().optional()),
47
+ source: core.serialization.string(),
48
+ medallionPayerEnrollmentId: core.serialization.property("medallion_payer_enrollment_id", core.serialization.string().optional()),
49
+ isEnabled: core.serialization.property("is_enabled", core.serialization.boolean()),
50
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as CandidApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ export declare const ProviderCredentialingSpanId: core.serialization.Schema<serializers.credentialing.v2.ProviderCredentialingSpanId.Raw, CandidApi.credentialing.v2.ProviderCredentialingSpanId>;
8
+ export declare namespace ProviderCredentialingSpanId {
9
+ type Raw = string;
10
+ }
@@ -0,0 +1,35 @@
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.ProviderCredentialingSpanId = void 0;
30
+ const CandidApi = __importStar(require("../../../../../../api/index"));
31
+ const core = __importStar(require("../../../../../../core"));
32
+ exports.ProviderCredentialingSpanId = core.serialization.string().transform({
33
+ transform: CandidApi.credentialing.v2.ProviderCredentialingSpanId,
34
+ untransform: (value) => value,
35
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as CandidApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ import { ProviderCredentialingSpan } from "./ProviderCredentialingSpan";
8
+ import { ResourcePage } from "../../../../commons/types/ResourcePage";
9
+ export declare const ProviderCredentialingSpanPage: core.serialization.ObjectSchema<serializers.credentialing.v2.ProviderCredentialingSpanPage.Raw, CandidApi.credentialing.v2.ProviderCredentialingSpanPage>;
10
+ export declare namespace ProviderCredentialingSpanPage {
11
+ interface Raw extends ResourcePage.Raw {
12
+ items: ProviderCredentialingSpan.Raw[];
13
+ }
14
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ProviderCredentialingSpanPage = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ const ProviderCredentialingSpan_1 = require("./ProviderCredentialingSpan");
32
+ const ResourcePage_1 = require("../../../../commons/types/ResourcePage");
33
+ exports.ProviderCredentialingSpanPage = core.serialization
34
+ .object({
35
+ items: core.serialization.list(ProviderCredentialingSpan_1.ProviderCredentialingSpan),
36
+ })
37
+ .extend(ResourcePage_1.ResourcePage);
@@ -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);
@@ -9,10 +9,9 @@ import { EncounterPatientControlNumberUniquenessErrorType } from "../types/Encou
9
9
  import { EntityNotFoundErrorMessage } from "../../../../commons/types/EntityNotFoundErrorMessage";
10
10
  import { RequestValidationError } from "../../../../commons/types/RequestValidationError";
11
11
  import { SchemaInstanceValidationFailure } from "../types/SchemaInstanceValidationFailure";
12
- import { InsurancePayMissingPrimaryCoverageErrorType } from "../types/InsurancePayMissingPrimaryCoverageErrorType";
13
12
  export declare const Error: core.serialization.Schema<serializers.encounters.v4.createFromPreEncounterPatient.Error.Raw, CandidApi.encounters.v4.createFromPreEncounterPatient.Error>;
14
13
  export declare namespace Error {
15
- type Raw = Error.EncounterExternalIdUniquenessError | Error.EncounterPatientControlNumberUniquenessError | Error.EntityNotFoundError | Error.HttpRequestValidationsError | Error.SchemaInstanceValidationHttpFailure | Error.InsurancePayMissingPrimaryCoverageError;
14
+ type Raw = Error.EncounterExternalIdUniquenessError | Error.EncounterPatientControlNumberUniquenessError | Error.EntityNotFoundError | Error.HttpRequestValidationsError | Error.SchemaInstanceValidationHttpFailure;
16
15
  interface EncounterExternalIdUniquenessError {
17
16
  errorName: "EncounterExternalIdUniquenessError";
18
17
  content: EncounterExternalIdUniquenessErrorType.Raw;
@@ -33,8 +32,4 @@ export declare namespace Error {
33
32
  errorName: "SchemaInstanceValidationHttpFailure";
34
33
  content: SchemaInstanceValidationFailure.Raw;
35
34
  }
36
- interface InsurancePayMissingPrimaryCoverageError {
37
- errorName: "InsurancePayMissingPrimaryCoverageError";
38
- content: InsurancePayMissingPrimaryCoverageErrorType.Raw;
39
- }
40
35
  }
@@ -45,7 +45,6 @@ const EncounterPatientControlNumberUniquenessErrorType_1 = require("../types/Enc
45
45
  const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
46
46
  const RequestValidationError_1 = require("../../../../commons/types/RequestValidationError");
47
47
  const SchemaInstanceValidationFailure_1 = require("../types/SchemaInstanceValidationFailure");
48
- const InsurancePayMissingPrimaryCoverageErrorType_1 = require("../types/InsurancePayMissingPrimaryCoverageErrorType");
49
48
  exports.Error = core.serialization
50
49
  .union("errorName", {
51
50
  EncounterExternalIdUniquenessError: core.serialization.object({
@@ -63,9 +62,6 @@ exports.Error = core.serialization
63
62
  SchemaInstanceValidationHttpFailure: core.serialization.object({
64
63
  content: SchemaInstanceValidationFailure_1.SchemaInstanceValidationFailure,
65
64
  }),
66
- InsurancePayMissingPrimaryCoverageError: core.serialization.object({
67
- content: InsurancePayMissingPrimaryCoverageErrorType_1.InsurancePayMissingPrimaryCoverageErrorType,
68
- }),
69
65
  })
70
66
  .transform({
71
67
  transform: (value) => {
@@ -80,8 +76,6 @@ exports.Error = core.serialization
80
76
  return CandidApi.encounters.v4.createFromPreEncounterPatient.Error.httpRequestValidationsError(value.content);
81
77
  case "SchemaInstanceValidationHttpFailure":
82
78
  return CandidApi.encounters.v4.createFromPreEncounterPatient.Error.schemaInstanceValidationHttpFailure(value.content);
83
- case "InsurancePayMissingPrimaryCoverageError":
84
- return CandidApi.encounters.v4.createFromPreEncounterPatient.Error.insurancePayMissingPrimaryCoverageError(value.content);
85
79
  }
86
80
  },
87
81
  untransform: (_a) => {
@@ -49,5 +49,6 @@ export declare namespace EncounterCreate {
49
49
  external_claim_submission?: ExternalClaimSubmissionCreate.Raw | null;
50
50
  tag_ids?: TagId.Raw[] | null;
51
51
  schema_instances?: SchemaInstance.Raw[] | null;
52
+ referral_number?: string | null;
52
53
  }
53
54
  }
@@ -72,5 +72,6 @@ exports.EncounterCreate = core.serialization
72
72
  externalClaimSubmission: core.serialization.property("external_claim_submission", ExternalClaimSubmissionCreate_1.ExternalClaimSubmissionCreate.optional()),
73
73
  tagIds: core.serialization.property("tag_ids", core.serialization.list(TagId_1.TagId).optional()),
74
74
  schemaInstances: core.serialization.property("schema_instances", core.serialization.list(SchemaInstance_1.SchemaInstance).optional()),
75
+ referralNumber: core.serialization.property("referral_number", core.serialization.string().optional()),
75
76
  })
76
77
  .extend(EncounterBase_1.EncounterBase);
@@ -60,5 +60,6 @@ export declare namespace Encounter {
60
60
  owner_of_next_action: EncounterOwnerOfNextActionType.Raw;
61
61
  submission_origin: EncounterSubmissionOriginType.Raw;
62
62
  schema_instances: SchemaInstance.Raw[];
63
+ referral_number?: string | null;
63
64
  }
64
65
  }
@@ -83,5 +83,6 @@ exports.Encounter = core.serialization
83
83
  ownerOfNextAction: core.serialization.property("owner_of_next_action", EncounterOwnerOfNextActionType_1.EncounterOwnerOfNextActionType),
84
84
  submissionOrigin: core.serialization.property("submission_origin", EncounterSubmissionOriginType_1.EncounterSubmissionOriginType),
85
85
  schemaInstances: core.serialization.property("schema_instances", core.serialization.list(SchemaInstance_1.SchemaInstance)),
86
+ referralNumber: core.serialization.property("referral_number", core.serialization.string().optional()),
86
87
  })
87
88
  .extend(EncounterBase_1.EncounterBase);
@@ -36,6 +36,5 @@ export declare namespace EncounterBase {
36
36
  onset_of_current_illness_or_symptom_date?: string | null;
37
37
  last_menstrual_period_date?: string | null;
38
38
  delay_reason_code?: DelayReasonCode.Raw | null;
39
- referral_number?: string | null;
40
39
  }
41
40
  }
@@ -58,5 +58,4 @@ exports.EncounterBase = core.serialization.object({
58
58
  onsetOfCurrentIllnessOrSymptomDate: core.serialization.property("onset_of_current_illness_or_symptom_date", core.serialization.string().optional()),
59
59
  lastMenstrualPeriodDate: core.serialization.property("last_menstrual_period_date", core.serialization.string().optional()),
60
60
  delayReasonCode: core.serialization.property("delay_reason_code", DelayReasonCode_1.DelayReasonCode.optional()),
61
- referralNumber: core.serialization.property("referral_number", core.serialization.string().optional()),
62
61
  });
@@ -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);
@@ -5,6 +5,7 @@ export * as auth from "./auth";
5
5
  export * as billingNotes from "./billingNotes";
6
6
  export * as claimSubmission from "./claimSubmission";
7
7
  export * as contracts from "./contracts";
8
+ export * as credentialing from "./credentialing";
8
9
  export * as customSchemas from "./customSchemas";
9
10
  export * as encounterProviders from "./encounterProviders";
10
11
  export * as encounters from "./encounters";
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.eligibility = exports.tags = exports.serviceFacility = exports.paymentAccountConfigs = exports.individual = exports.identifiers = exports.financials = exports.era = exports.eraCommons = exports.diagnoses = exports.claims = exports.preEncounter = exports.x12 = exports.writeOffs = exports.tasks = exports.serviceLines = exports.remits = exports.payers = exports.patientRefunds = exports.patientPayments = exports.organizationProviders = exports.organizationServiceFacilities = exports.nonInsurancePayers = exports.nonInsurancePayerRefunds = exports.nonInsurancePayerPayments = exports.medicationDispense = exports.invoices = exports.insuranceRefunds = exports.insurancePayments = exports.insuranceCards = exports.insuranceAdjudications = exports.importInvoice = exports.guarantor = exports.externalPaymentAccountConfig = exports.exports = exports.expectedNetworkStatus = exports.encounters = exports.encounterProviders = exports.customSchemas = exports.contracts = exports.claimSubmission = exports.billingNotes = exports.auth = exports.commons = exports.feeSchedules = void 0;
29
+ exports.eligibility = exports.tags = exports.serviceFacility = exports.paymentAccountConfigs = exports.individual = exports.identifiers = exports.financials = exports.era = exports.eraCommons = exports.diagnoses = exports.claims = exports.preEncounter = exports.x12 = exports.writeOffs = exports.tasks = exports.serviceLines = exports.remits = exports.payers = exports.patientRefunds = exports.patientPayments = exports.organizationProviders = exports.organizationServiceFacilities = exports.nonInsurancePayers = exports.nonInsurancePayerRefunds = exports.nonInsurancePayerPayments = exports.medicationDispense = exports.invoices = exports.insuranceRefunds = exports.insurancePayments = exports.insuranceCards = exports.insuranceAdjudications = exports.importInvoice = exports.guarantor = exports.externalPaymentAccountConfig = exports.exports = exports.expectedNetworkStatus = exports.encounters = exports.encounterProviders = exports.customSchemas = exports.credentialing = exports.contracts = exports.claimSubmission = exports.billingNotes = exports.auth = exports.commons = exports.feeSchedules = void 0;
30
30
  exports.feeSchedules = __importStar(require("./feeSchedules"));
31
31
  exports.commons = __importStar(require("./commons"));
32
32
  __exportStar(require("./commons/errors"), exports);
@@ -34,6 +34,7 @@ exports.auth = __importStar(require("./auth"));
34
34
  exports.billingNotes = __importStar(require("./billingNotes"));
35
35
  exports.claimSubmission = __importStar(require("./claimSubmission"));
36
36
  exports.contracts = __importStar(require("./contracts"));
37
+ exports.credentialing = __importStar(require("./credentialing"));
37
38
  exports.customSchemas = __importStar(require("./customSchemas"));
38
39
  exports.encounterProviders = __importStar(require("./encounterProviders"));
39
40
  exports.encounters = __importStar(require("./encounters"));
@@ -5,6 +5,7 @@ import * as serializers from "../../../../../index";
5
5
  import * as CandidApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  import { NonInsurancePayerId } from "./NonInsurancePayerId";
8
+ import { StreetAddressShortZip } from "../../../../commons/types/StreetAddressShortZip";
8
9
  export declare const NonInsurancePayer: core.serialization.ObjectSchema<serializers.nonInsurancePayers.v1.NonInsurancePayer.Raw, CandidApi.nonInsurancePayers.v1.NonInsurancePayer>;
9
10
  export declare namespace NonInsurancePayer {
10
11
  interface Raw {
@@ -13,5 +14,6 @@ export declare namespace NonInsurancePayer {
13
14
  description?: string | null;
14
15
  category?: string | null;
15
16
  enabled: boolean;
17
+ address?: StreetAddressShortZip.Raw | null;
16
18
  }
17
19
  }
@@ -29,10 +29,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.NonInsurancePayer = void 0;
30
30
  const core = __importStar(require("../../../../../../core"));
31
31
  const NonInsurancePayerId_1 = require("./NonInsurancePayerId");
32
+ const StreetAddressShortZip_1 = require("../../../../commons/types/StreetAddressShortZip");
32
33
  exports.NonInsurancePayer = core.serialization.object({
33
34
  nonInsurancePayerId: core.serialization.property("non_insurance_payer_id", NonInsurancePayerId_1.NonInsurancePayerId),
34
35
  name: core.serialization.string(),
35
36
  description: core.serialization.string().optional(),
36
37
  category: core.serialization.string().optional(),
37
38
  enabled: core.serialization.boolean(),
39
+ address: StreetAddressShortZip_1.StreetAddressShortZip.optional(),
38
40
  });
@@ -12,6 +12,7 @@ import { Decimal } from "../../../../commons/types/Decimal";
12
12
  import { ServiceLineUnits } from "../../../../commons/types/ServiceLineUnits";
13
13
  import { ClaimId } from "../../../../commons/types/ClaimId";
14
14
  import { DrugIdentification } from "./DrugIdentification";
15
+ import { OrderingProvider } from "../../../../encounterProviders/resources/v2/types/OrderingProvider";
15
16
  import { TestResult } from "./TestResult";
16
17
  export declare const ServiceLineCreateStandalone: core.serialization.ObjectSchema<serializers.serviceLines.v2.ServiceLineCreateStandalone.Raw, CandidApi.serviceLines.v2.ServiceLineCreateStandalone>;
17
18
  export declare namespace ServiceLineCreateStandalone {
@@ -32,6 +33,7 @@ export declare namespace ServiceLineCreateStandalone {
32
33
  date_of_service?: string | null;
33
34
  end_date_of_service?: string | null;
34
35
  drug_identification?: DrugIdentification.Raw | null;
36
+ ordering_provider?: OrderingProvider.Raw | null;
35
37
  test_results?: TestResult.Raw[] | null;
36
38
  }
37
39
  }
@@ -36,6 +36,7 @@ const Decimal_1 = require("../../../../commons/types/Decimal");
36
36
  const ServiceLineUnits_1 = require("../../../../commons/types/ServiceLineUnits");
37
37
  const ClaimId_1 = require("../../../../commons/types/ClaimId");
38
38
  const DrugIdentification_1 = require("./DrugIdentification");
39
+ const OrderingProvider_1 = require("../../../../encounterProviders/resources/v2/types/OrderingProvider");
39
40
  const TestResult_1 = require("./TestResult");
40
41
  exports.ServiceLineCreateStandalone = core.serialization.object({
41
42
  modifiers: core.serialization.list(ProcedureModifier_1.ProcedureModifier).optional(),
@@ -54,5 +55,6 @@ exports.ServiceLineCreateStandalone = core.serialization.object({
54
55
  dateOfService: core.serialization.property("date_of_service", core.serialization.string().optional()),
55
56
  endDateOfService: core.serialization.property("end_date_of_service", core.serialization.string().optional()),
56
57
  drugIdentification: core.serialization.property("drug_identification", DrugIdentification_1.DrugIdentification.optional()),
58
+ orderingProvider: core.serialization.property("ordering_provider", OrderingProvider_1.OrderingProvider.optional()),
57
59
  testResults: core.serialization.property("test_results", core.serialization.list(TestResult_1.TestResult).optional()),
58
60
  });