candidhealth 0.34.9 → 0.35.1

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 (492) 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.d.ts +3 -2
  68. package/api/resources/exports/resources/v3/client/Client.js +4 -3
  69. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  70. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  71. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  72. package/api/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -1
  73. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  74. package/api/resources/index.d.ts +2 -0
  75. package/api/resources/index.js +3 -1
  76. package/api/resources/individual/types/Patient.d.ts +14 -2
  77. package/api/resources/individual/types/PatientNonInsurancePayerInfo.d.ts +7 -1
  78. package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +4 -18
  79. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +7 -21
  80. package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
  81. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  82. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  83. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  84. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  85. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  86. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  87. package/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayer.d.ts +8 -1
  88. package/api/resources/organizationProviders/resources/v3/client/Client.d.ts +2 -8
  89. package/api/resources/organizationProviders/resources/v3/client/Client.js +6 -12
  90. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  91. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  92. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  93. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  94. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +8 -46
  95. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +14 -52
  96. package/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.d.ts +2 -1
  97. package/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.js +1 -0
  98. package/api/resources/preEncounter/resources/common/types/ExternalProvider.d.ts +1 -0
  99. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +8 -64
  100. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +16 -72
  101. package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
  102. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.d.ts +2 -2
  103. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +4 -4
  104. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +3 -3
  105. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +5 -2
  106. package/api/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +1 -0
  107. package/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +11 -0
  108. package/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.js +10 -0
  109. package/api/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +1 -0
  110. package/api/resources/preEncounter/resources/lists/resources/v1/types/index.js +1 -0
  111. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +223 -316
  112. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +295 -326
  113. package/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +40 -0
  114. package/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +80 -0
  115. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  116. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  117. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +26 -159
  118. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +175 -0
  119. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.js +5 -0
  120. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/index.d.ts +1 -0
  121. package/api/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.d.ts +10 -0
  122. package/api/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.js +12 -0
  123. package/api/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.d.ts +7 -0
  124. package/api/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.js +5 -0
  125. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  126. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.d.ts +8 -0
  127. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.js +5 -0
  128. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +3 -0
  129. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +3 -0
  130. package/api/resources/remitDrafts/index.d.ts +1 -0
  131. package/api/resources/remitDrafts/index.js +17 -0
  132. package/api/resources/remitDrafts/resources/index.d.ts +1 -0
  133. package/api/resources/remitDrafts/resources/index.js +27 -0
  134. package/api/resources/remitDrafts/resources/v1/index.d.ts +1 -0
  135. package/api/resources/remitDrafts/resources/v1/index.js +17 -0
  136. package/api/resources/remitDrafts/resources/v1/types/RemitDraftId.d.ts +8 -0
  137. package/api/resources/remitDrafts/resources/v1/types/RemitDraftId.js +10 -0
  138. package/api/resources/remitDrafts/resources/v1/types/index.d.ts +1 -0
  139. package/api/resources/remitDrafts/resources/v1/types/index.js +17 -0
  140. package/api/resources/serviceFacility/client/Client.js +1 -1
  141. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +15 -0
  142. package/api/resources/serviceLines/resources/v2/client/Client.js +18 -3
  143. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +5 -0
  144. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  145. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  146. package/api/resources/x12/resources/v1/types/Rarc.d.ts +8 -1
  147. package/api/resources/x12/resources/v1/types/Rarc.js +7 -0
  148. package/dist/Client.d.ts +3 -0
  149. package/dist/Client.js +61 -56
  150. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  151. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  152. package/dist/api/resources/commons/types/ProviderCredentialingSpanId.d.ts +8 -0
  153. package/dist/api/resources/commons/types/ProviderCredentialingSpanId.js +10 -0
  154. package/dist/api/resources/commons/types/index.d.ts +1 -0
  155. package/dist/api/resources/commons/types/index.js +1 -0
  156. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  157. package/dist/api/resources/credentialing/client/Client.d.ts +26 -0
  158. package/dist/api/resources/credentialing/client/Client.js +17 -0
  159. package/dist/api/resources/credentialing/client/index.d.ts +1 -0
  160. package/dist/api/resources/credentialing/client/index.js +2 -0
  161. package/dist/api/resources/credentialing/index.d.ts +2 -0
  162. package/dist/api/resources/credentialing/index.js +18 -0
  163. package/dist/api/resources/credentialing/resources/index.d.ts +1 -0
  164. package/dist/api/resources/credentialing/resources/index.js +27 -0
  165. package/dist/api/resources/credentialing/resources/v2/client/Client.d.ts +97 -0
  166. package/dist/api/resources/credentialing/resources/v2/client/Client.js +413 -0
  167. package/dist/api/resources/credentialing/resources/v2/client/create.d.ts +34 -0
  168. package/dist/api/resources/credentialing/resources/v2/client/create.js +69 -0
  169. package/dist/api/resources/credentialing/resources/v2/client/delete.d.ts +34 -0
  170. package/dist/api/resources/credentialing/resources/v2/client/delete.js +69 -0
  171. package/dist/api/resources/credentialing/resources/v2/client/get.d.ts +34 -0
  172. package/dist/api/resources/credentialing/resources/v2/client/get.js +69 -0
  173. package/dist/api/resources/credentialing/resources/v2/client/getAll.d.ts +28 -0
  174. package/dist/api/resources/credentialing/resources/v2/client/getAll.js +58 -0
  175. package/dist/api/resources/credentialing/resources/v2/client/index.d.ts +6 -0
  176. package/dist/api/resources/credentialing/resources/v2/client/index.js +35 -0
  177. package/dist/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +33 -0
  178. package/dist/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.js +5 -0
  179. package/dist/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanCreate.d.ts +44 -0
  180. package/dist/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanCreate.js +5 -0
  181. package/dist/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanUpdate.d.ts +41 -0
  182. package/dist/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanUpdate.js +5 -0
  183. package/dist/api/resources/credentialing/resources/v2/client/requests/index.d.ts +3 -0
  184. package/dist/api/resources/credentialing/resources/v2/client/requests/index.js +2 -0
  185. package/dist/api/resources/credentialing/resources/v2/client/update.d.ts +46 -0
  186. package/dist/api/resources/credentialing/resources/v2/client/update.js +91 -0
  187. package/dist/api/resources/credentialing/resources/v2/index.d.ts +2 -0
  188. package/dist/api/resources/credentialing/resources/v2/index.js +18 -0
  189. package/dist/api/resources/credentialing/resources/v2/types/CredentialingSpanStatus.d.ts +13 -0
  190. package/dist/api/resources/credentialing/resources/v2/types/CredentialingSpanStatus.js +12 -0
  191. package/dist/api/resources/credentialing/resources/v2/types/ProviderCredentialingSpan.d.ts +31 -0
  192. package/dist/api/resources/credentialing/resources/v2/types/ProviderCredentialingSpan.js +5 -0
  193. package/dist/api/resources/credentialing/resources/v2/types/ProviderCredentialingSpanId.d.ts +8 -0
  194. package/dist/api/resources/credentialing/resources/v2/types/ProviderCredentialingSpanId.js +10 -0
  195. package/dist/api/resources/credentialing/resources/v2/types/ProviderCredentialingSpanPage.d.ts +7 -0
  196. package/dist/api/resources/credentialing/resources/v2/types/ProviderCredentialingSpanPage.js +5 -0
  197. package/dist/api/resources/credentialing/resources/v2/types/index.d.ts +4 -0
  198. package/dist/api/resources/credentialing/resources/v2/types/index.js +20 -0
  199. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  200. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  201. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  202. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  203. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +4 -5
  204. package/dist/api/resources/encounters/resources/v4/client/Client.js +9 -11
  205. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatient.d.ts +1 -7
  206. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatient.js +0 -11
  207. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +7 -2
  208. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +1 -2
  209. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +16 -2
  210. package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +0 -2
  211. package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +14 -2
  212. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +0 -1
  213. package/dist/api/resources/encounters/resources/v4/types/index.js +0 -1
  214. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  215. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  216. package/dist/api/resources/exports/resources/v3/client/Client.d.ts +3 -2
  217. package/dist/api/resources/exports/resources/v3/client/Client.js +4 -3
  218. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  219. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  220. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  221. package/dist/api/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -1
  222. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  223. package/dist/api/resources/index.d.ts +2 -0
  224. package/dist/api/resources/index.js +3 -1
  225. package/dist/api/resources/individual/types/Patient.d.ts +14 -2
  226. package/dist/api/resources/individual/types/PatientNonInsurancePayerInfo.d.ts +7 -1
  227. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +4 -18
  228. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +7 -21
  229. package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
  230. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  231. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  232. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  233. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  234. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  235. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  236. package/dist/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayer.d.ts +8 -1
  237. package/dist/api/resources/organizationProviders/resources/v3/client/Client.d.ts +2 -8
  238. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +6 -12
  239. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  240. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  241. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  242. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  243. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +8 -46
  244. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +14 -52
  245. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.d.ts +2 -1
  246. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.js +1 -0
  247. package/dist/api/resources/preEncounter/resources/common/types/ExternalProvider.d.ts +1 -0
  248. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +8 -64
  249. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +16 -72
  250. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
  251. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.d.ts +2 -2
  252. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +4 -4
  253. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +3 -3
  254. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +5 -2
  255. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +1 -0
  256. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +11 -0
  257. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.js +10 -0
  258. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +1 -0
  259. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/index.js +1 -0
  260. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +223 -316
  261. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +295 -326
  262. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +40 -0
  263. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +80 -0
  264. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  265. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  266. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +26 -159
  267. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +175 -0
  268. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.js +5 -0
  269. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/index.d.ts +1 -0
  270. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.d.ts +10 -0
  271. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.js +12 -0
  272. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.d.ts +7 -0
  273. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.js +5 -0
  274. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  275. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.d.ts +8 -0
  276. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.js +5 -0
  277. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +3 -0
  278. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +3 -0
  279. package/dist/api/resources/remitDrafts/index.d.ts +1 -0
  280. package/dist/api/resources/remitDrafts/index.js +17 -0
  281. package/dist/api/resources/remitDrafts/resources/index.d.ts +1 -0
  282. package/dist/api/resources/remitDrafts/resources/index.js +27 -0
  283. package/dist/api/resources/remitDrafts/resources/v1/index.d.ts +1 -0
  284. package/dist/api/resources/remitDrafts/resources/v1/index.js +17 -0
  285. package/dist/api/resources/remitDrafts/resources/v1/types/RemitDraftId.d.ts +8 -0
  286. package/dist/api/resources/remitDrafts/resources/v1/types/RemitDraftId.js +10 -0
  287. package/dist/api/resources/remitDrafts/resources/v1/types/index.d.ts +1 -0
  288. package/dist/api/resources/remitDrafts/resources/v1/types/index.js +17 -0
  289. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  290. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +15 -0
  291. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +18 -3
  292. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +5 -0
  293. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  294. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  295. package/dist/api/resources/x12/resources/v1/types/Rarc.d.ts +8 -1
  296. package/dist/api/resources/x12/resources/v1/types/Rarc.js +7 -0
  297. package/dist/serialization/resources/commons/types/ProviderCredentialingSpanId.d.ts +10 -0
  298. package/dist/serialization/resources/commons/types/ProviderCredentialingSpanId.js +35 -0
  299. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  300. package/dist/serialization/resources/commons/types/index.js +1 -0
  301. package/dist/serialization/resources/credentialing/index.d.ts +1 -0
  302. package/dist/serialization/resources/credentialing/index.js +17 -0
  303. package/dist/serialization/resources/credentialing/resources/index.d.ts +1 -0
  304. package/dist/serialization/resources/credentialing/resources/index.js +27 -0
  305. package/dist/serialization/resources/credentialing/resources/v2/client/create.d.ts +20 -0
  306. package/dist/serialization/resources/credentialing/resources/v2/client/create.js +67 -0
  307. package/dist/serialization/resources/credentialing/resources/v2/client/delete.d.ts +20 -0
  308. package/dist/serialization/resources/credentialing/resources/v2/client/delete.js +67 -0
  309. package/dist/serialization/resources/credentialing/resources/v2/client/get.d.ts +20 -0
  310. package/dist/serialization/resources/credentialing/resources/v2/client/get.js +67 -0
  311. package/dist/serialization/resources/credentialing/resources/v2/client/getAll.d.ts +15 -0
  312. package/dist/serialization/resources/credentialing/resources/v2/client/getAll.js +61 -0
  313. package/dist/serialization/resources/credentialing/resources/v2/client/index.d.ts +6 -0
  314. package/dist/serialization/resources/credentialing/resources/v2/client/index.js +35 -0
  315. package/dist/serialization/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanCreate.d.ts +20 -0
  316. package/dist/serialization/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanCreate.js +41 -0
  317. package/dist/serialization/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanUpdate.d.ts +19 -0
  318. package/dist/serialization/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanUpdate.js +40 -0
  319. package/dist/serialization/resources/credentialing/resources/v2/client/requests/index.d.ts +2 -0
  320. package/dist/serialization/resources/credentialing/resources/v2/client/requests/index.js +7 -0
  321. package/dist/serialization/resources/credentialing/resources/v2/client/update.d.ts +30 -0
  322. package/dist/serialization/resources/credentialing/resources/v2/client/update.js +79 -0
  323. package/dist/serialization/resources/credentialing/resources/v2/index.d.ts +2 -0
  324. package/dist/serialization/resources/credentialing/resources/v2/index.js +18 -0
  325. package/dist/serialization/resources/credentialing/resources/v2/types/CredentialingSpanStatus.d.ts +10 -0
  326. package/dist/serialization/resources/{encounters/resources/v4/types/InsurancePayMissingPrimaryCoverageErrorType.js → credentialing/resources/v2/types/CredentialingSpanStatus.js} +2 -4
  327. package/dist/serialization/resources/credentialing/resources/v2/types/ProviderCredentialingSpan.d.ts +29 -0
  328. package/dist/serialization/resources/credentialing/resources/v2/types/ProviderCredentialingSpan.js +50 -0
  329. package/dist/serialization/resources/credentialing/resources/v2/types/ProviderCredentialingSpanId.d.ts +10 -0
  330. package/dist/serialization/resources/credentialing/resources/v2/types/ProviderCredentialingSpanId.js +35 -0
  331. package/dist/serialization/resources/credentialing/resources/v2/types/ProviderCredentialingSpanPage.d.ts +14 -0
  332. package/dist/serialization/resources/credentialing/resources/v2/types/ProviderCredentialingSpanPage.js +37 -0
  333. package/dist/serialization/resources/credentialing/resources/v2/types/index.d.ts +4 -0
  334. package/dist/serialization/resources/credentialing/resources/v2/types/index.js +20 -0
  335. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatient.d.ts +1 -6
  336. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatient.js +0 -6
  337. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -0
  338. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +1 -0
  339. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  340. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -0
  341. package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +0 -1
  342. package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.js +0 -1
  343. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +0 -1
  344. package/dist/serialization/resources/encounters/resources/v4/types/index.js +0 -1
  345. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -1
  346. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +1 -1
  347. package/dist/serialization/resources/index.d.ts +2 -0
  348. package/dist/serialization/resources/index.js +3 -1
  349. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +2 -0
  350. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +2 -0
  351. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayer.d.ts +2 -0
  352. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayer.js +2 -0
  353. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.d.ts +1 -1
  354. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.js +1 -1
  355. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
  356. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.js +1 -0
  357. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +2 -0
  358. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.js +2 -0
  359. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +10 -0
  360. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.js +35 -0
  361. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +1 -0
  362. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.js +1 -0
  363. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +25 -0
  364. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +73 -0
  365. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  366. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  367. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.d.ts +10 -0
  368. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.js +31 -0
  369. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.d.ts +13 -0
  370. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.js +36 -0
  371. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  372. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +2 -0
  373. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.d.ts +13 -0
  374. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.js +36 -0
  375. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +3 -0
  376. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +3 -0
  377. package/dist/serialization/resources/remitDrafts/index.d.ts +1 -0
  378. package/dist/serialization/resources/remitDrafts/index.js +17 -0
  379. package/dist/serialization/resources/remitDrafts/resources/index.d.ts +1 -0
  380. package/dist/serialization/resources/remitDrafts/resources/index.js +27 -0
  381. package/dist/serialization/resources/remitDrafts/resources/v1/index.d.ts +1 -0
  382. package/dist/serialization/resources/remitDrafts/resources/v1/index.js +17 -0
  383. package/dist/serialization/resources/remitDrafts/resources/v1/types/RemitDraftId.d.ts +10 -0
  384. package/dist/serialization/resources/remitDrafts/resources/v1/types/RemitDraftId.js +35 -0
  385. package/dist/serialization/resources/remitDrafts/resources/v1/types/index.d.ts +1 -0
  386. package/dist/serialization/resources/remitDrafts/resources/v1/types/index.js +17 -0
  387. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +2 -0
  388. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +2 -0
  389. package/dist/serialization/resources/x12/resources/v1/types/Rarc.d.ts +1 -1
  390. package/dist/serialization/resources/x12/resources/v1/types/Rarc.js +7 -0
  391. package/package.json +1 -1
  392. package/reference.md +622 -457
  393. package/serialization/resources/commons/types/ProviderCredentialingSpanId.d.ts +10 -0
  394. package/serialization/resources/commons/types/ProviderCredentialingSpanId.js +35 -0
  395. package/serialization/resources/commons/types/index.d.ts +1 -0
  396. package/serialization/resources/commons/types/index.js +1 -0
  397. package/serialization/resources/credentialing/index.d.ts +1 -0
  398. package/serialization/resources/credentialing/index.js +17 -0
  399. package/serialization/resources/credentialing/resources/index.d.ts +1 -0
  400. package/serialization/resources/credentialing/resources/index.js +27 -0
  401. package/serialization/resources/credentialing/resources/v2/client/create.d.ts +20 -0
  402. package/serialization/resources/credentialing/resources/v2/client/create.js +67 -0
  403. package/serialization/resources/credentialing/resources/v2/client/delete.d.ts +20 -0
  404. package/serialization/resources/credentialing/resources/v2/client/delete.js +67 -0
  405. package/serialization/resources/credentialing/resources/v2/client/get.d.ts +20 -0
  406. package/serialization/resources/credentialing/resources/v2/client/get.js +67 -0
  407. package/serialization/resources/credentialing/resources/v2/client/getAll.d.ts +15 -0
  408. package/serialization/resources/credentialing/resources/v2/client/getAll.js +61 -0
  409. package/serialization/resources/credentialing/resources/v2/client/index.d.ts +6 -0
  410. package/serialization/resources/credentialing/resources/v2/client/index.js +35 -0
  411. package/serialization/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanCreate.d.ts +20 -0
  412. package/serialization/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanCreate.js +41 -0
  413. package/serialization/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanUpdate.d.ts +19 -0
  414. package/serialization/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanUpdate.js +40 -0
  415. package/serialization/resources/credentialing/resources/v2/client/requests/index.d.ts +2 -0
  416. package/serialization/resources/credentialing/resources/v2/client/requests/index.js +7 -0
  417. package/serialization/resources/credentialing/resources/v2/client/update.d.ts +30 -0
  418. package/serialization/resources/credentialing/resources/v2/client/update.js +79 -0
  419. package/serialization/resources/credentialing/resources/v2/index.d.ts +2 -0
  420. package/serialization/resources/credentialing/resources/v2/index.js +18 -0
  421. package/serialization/resources/credentialing/resources/v2/types/CredentialingSpanStatus.d.ts +10 -0
  422. package/serialization/resources/{encounters/resources/v4/types/InsurancePayMissingPrimaryCoverageErrorType.js → credentialing/resources/v2/types/CredentialingSpanStatus.js} +2 -4
  423. package/serialization/resources/credentialing/resources/v2/types/ProviderCredentialingSpan.d.ts +29 -0
  424. package/serialization/resources/credentialing/resources/v2/types/ProviderCredentialingSpan.js +50 -0
  425. package/serialization/resources/credentialing/resources/v2/types/ProviderCredentialingSpanId.d.ts +10 -0
  426. package/serialization/resources/credentialing/resources/v2/types/ProviderCredentialingSpanId.js +35 -0
  427. package/serialization/resources/credentialing/resources/v2/types/ProviderCredentialingSpanPage.d.ts +14 -0
  428. package/serialization/resources/credentialing/resources/v2/types/ProviderCredentialingSpanPage.js +37 -0
  429. package/serialization/resources/credentialing/resources/v2/types/index.d.ts +4 -0
  430. package/serialization/resources/credentialing/resources/v2/types/index.js +20 -0
  431. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatient.d.ts +1 -6
  432. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatient.js +0 -6
  433. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -0
  434. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +1 -0
  435. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  436. package/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -0
  437. package/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +0 -1
  438. package/serialization/resources/encounters/resources/v4/types/EncounterBase.js +0 -1
  439. package/serialization/resources/encounters/resources/v4/types/index.d.ts +0 -1
  440. package/serialization/resources/encounters/resources/v4/types/index.js +0 -1
  441. package/serialization/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -1
  442. package/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +1 -1
  443. package/serialization/resources/index.d.ts +2 -0
  444. package/serialization/resources/index.js +3 -1
  445. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +2 -0
  446. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +2 -0
  447. package/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayer.d.ts +2 -0
  448. package/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayer.js +2 -0
  449. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.d.ts +1 -1
  450. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.js +1 -1
  451. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
  452. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.js +1 -0
  453. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +2 -0
  454. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.js +2 -0
  455. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +10 -0
  456. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.js +35 -0
  457. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +1 -0
  458. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.js +1 -0
  459. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +25 -0
  460. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +73 -0
  461. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  462. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  463. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.d.ts +10 -0
  464. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.js +31 -0
  465. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.d.ts +13 -0
  466. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.js +36 -0
  467. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  468. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +2 -0
  469. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.d.ts +13 -0
  470. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.js +36 -0
  471. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +3 -0
  472. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +3 -0
  473. package/serialization/resources/remitDrafts/index.d.ts +1 -0
  474. package/serialization/resources/remitDrafts/index.js +17 -0
  475. package/serialization/resources/remitDrafts/resources/index.d.ts +1 -0
  476. package/serialization/resources/remitDrafts/resources/index.js +27 -0
  477. package/serialization/resources/remitDrafts/resources/v1/index.d.ts +1 -0
  478. package/serialization/resources/remitDrafts/resources/v1/index.js +17 -0
  479. package/serialization/resources/remitDrafts/resources/v1/types/RemitDraftId.d.ts +10 -0
  480. package/serialization/resources/remitDrafts/resources/v1/types/RemitDraftId.js +35 -0
  481. package/serialization/resources/remitDrafts/resources/v1/types/index.d.ts +1 -0
  482. package/serialization/resources/remitDrafts/resources/v1/types/index.js +17 -0
  483. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +2 -0
  484. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +2 -0
  485. package/serialization/resources/x12/resources/v1/types/Rarc.d.ts +1 -1
  486. package/serialization/resources/x12/resources/v1/types/Rarc.js +7 -0
  487. package/api/resources/encounters/resources/v4/types/InsurancePayMissingPrimaryCoverageErrorType.d.ts +0 -6
  488. package/dist/api/resources/encounters/resources/v4/types/InsurancePayMissingPrimaryCoverageErrorType.d.ts +0 -6
  489. package/dist/serialization/resources/encounters/resources/v4/types/InsurancePayMissingPrimaryCoverageErrorType.d.ts +0 -12
  490. package/serialization/resources/encounters/resources/v4/types/InsurancePayMissingPrimaryCoverageErrorType.d.ts +0 -12
  491. /package/api/resources/{encounters/resources/v4/types/InsurancePayMissingPrimaryCoverageErrorType.js → credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.js} +0 -0
  492. /package/{dist/api/resources/encounters/resources/v4/types/InsurancePayMissingPrimaryCoverageErrorType.js → api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanCreate.js} +0 -0
@@ -62,27 +62,13 @@ class V1 {
62
62
  * family: "string",
63
63
  * given: ["string"],
64
64
  * use: CandidApi.preEncounter.NameUse.Usual,
65
- * period: {
66
- * start: {
67
- * "key": "value"
68
- * },
69
- * end: {
70
- * "key": "value"
71
- * }
72
- * }
65
+ * period: {}
73
66
  * },
74
67
  * otherNames: [{
75
68
  * family: "string",
76
69
  * given: ["string"],
77
70
  * use: CandidApi.preEncounter.NameUse.Usual,
78
- * period: {
79
- * start: {
80
- * "key": "value"
81
- * },
82
- * end: {
83
- * "key": "value"
84
- * }
85
- * }
71
+ * period: {}
86
72
  * }],
87
73
  * gender: CandidApi.preEncounter.Gender.Man,
88
74
  * birthDate: "2023-01-15",
@@ -102,14 +88,7 @@ class V1 {
102
88
  * state: "string",
103
89
  * postalCode: "string",
104
90
  * country: "string",
105
- * period: {
106
- * start: {
107
- * "key": "value"
108
- * },
109
- * end: {
110
- * "key": "value"
111
- * }
112
- * }
91
+ * period: {}
113
92
  * },
114
93
  * otherAddresses: [{
115
94
  * use: CandidApi.preEncounter.AddressUse.Home,
@@ -118,28 +97,15 @@ class V1 {
118
97
  * state: "string",
119
98
  * postalCode: "string",
120
99
  * country: "string",
121
- * period: {
122
- * start: {
123
- * "key": "value"
124
- * },
125
- * end: {
126
- * "key": "value"
127
- * }
128
- * }
100
+ * period: {}
129
101
  * }],
130
102
  * primaryTelecom: {
131
103
  * value: "string",
132
- * use: CandidApi.preEncounter.ContactPointUse.Home,
133
- * period: {
134
- * "key": "value"
135
- * }
104
+ * use: CandidApi.preEncounter.ContactPointUse.Home
136
105
  * },
137
106
  * otherTelecoms: [{
138
107
  * value: "string",
139
- * use: CandidApi.preEncounter.ContactPointUse.Home,
140
- * period: {
141
- * "key": "value"
142
- * }
108
+ * use: CandidApi.preEncounter.ContactPointUse.Home
143
109
  * }],
144
110
  * email: "string",
145
111
  * electronicCommunicationOptIn: true,
@@ -155,21 +121,11 @@ class V1 {
155
121
  * family: "string",
156
122
  * given: ["string"],
157
123
  * use: CandidApi.preEncounter.NameUse.Usual,
158
- * period: {
159
- * start: {
160
- * "key": "value"
161
- * },
162
- * end: {
163
- * "key": "value"
164
- * }
165
- * }
124
+ * period: {}
166
125
  * },
167
126
  * telecoms: [{
168
127
  * value: "string",
169
- * use: CandidApi.preEncounter.ContactPointUse.Home,
170
- * period: {
171
- * "key": "value"
172
- * }
128
+ * use: CandidApi.preEncounter.ContactPointUse.Home
173
129
  * }],
174
130
  * addresses: [{
175
131
  * use: CandidApi.preEncounter.AddressUse.Home,
@@ -178,23 +134,9 @@ class V1 {
178
134
  * state: "string",
179
135
  * postalCode: "string",
180
136
  * country: "string",
181
- * period: {
182
- * start: {
183
- * "key": "value"
184
- * },
185
- * end: {
186
- * "key": "value"
187
- * }
188
- * }
137
+ * period: {}
189
138
  * }],
190
- * period: {
191
- * start: {
192
- * "key": "value"
193
- * },
194
- * end: {
195
- * "key": "value"
196
- * }
197
- * },
139
+ * period: {},
198
140
  * hipaaAuthorization: true
199
141
  * }],
200
142
  * generalPractitioners: [{
@@ -202,35 +144,16 @@ class V1 {
202
144
  * family: "string",
203
145
  * given: ["string"],
204
146
  * use: CandidApi.preEncounter.NameUse.Usual,
205
- * period: {
206
- * start: {
207
- * "key": "value"
208
- * },
209
- * end: {
210
- * "key": "value"
211
- * }
212
- * }
147
+ * period: {}
213
148
  * },
214
149
  * type: CandidApi.preEncounter.ExternalProviderType.Primary,
215
150
  * npi: "string",
216
151
  * telecoms: [{
217
152
  * value: "string",
218
- * use: CandidApi.preEncounter.ContactPointUse.Home,
219
- * period: {
220
- * "key": "value"
221
- * }
222
- * }],
223
- * addresses: [{
224
- * "key": "value"
153
+ * use: CandidApi.preEncounter.ContactPointUse.Home
225
154
  * }],
226
- * period: {
227
- * start: {
228
- * "key": "value"
229
- * },
230
- * end: {
231
- * "key": "value"
232
- * }
233
- * },
155
+ * addresses: [],
156
+ * period: {},
234
157
  * canonicalId: CandidApi.preEncounter.CanonicalProviderId("string")
235
158
  * }],
236
159
  * filingOrder: {
@@ -238,31 +161,18 @@ class V1 {
238
161
  * },
239
162
  * nonInsurancePayers: [CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")],
240
163
  * nonInsurancePayerAssociations: [{
241
- * id: CandidApi.preEncounter.CanonicalNonInsurancePayerId("string"),
242
- * memberId: {
243
- * "key": "value"
244
- * }
164
+ * id: CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")
245
165
  * }],
246
166
  * guarantor: {
247
167
  * name: {
248
168
  * family: "string",
249
169
  * given: ["string"],
250
170
  * use: CandidApi.preEncounter.NameUse.Usual,
251
- * period: {
252
- * start: {
253
- * "key": "value"
254
- * },
255
- * end: {
256
- * "key": "value"
257
- * }
258
- * }
171
+ * period: {}
259
172
  * },
260
173
  * telecom: {
261
174
  * value: "string",
262
- * use: CandidApi.preEncounter.ContactPointUse.Home,
263
- * period: {
264
- * "key": "value"
265
- * }
175
+ * use: CandidApi.preEncounter.ContactPointUse.Home
266
176
  * },
267
177
  * email: "string",
268
178
  * birthDate: "2023-01-15",
@@ -273,35 +183,16 @@ class V1 {
273
183
  * state: "string",
274
184
  * postalCode: "string",
275
185
  * country: "string",
276
- * period: {
277
- * start: {
278
- * "key": "value"
279
- * },
280
- * end: {
281
- * "key": "value"
282
- * }
283
- * }
186
+ * period: {}
284
187
  * }
285
188
  * },
286
189
  * selfPay: true,
287
190
  * authorizations: [{
288
191
  * payerId: CandidApi.preEncounter.PayerId("string"),
289
192
  * payerName: "string",
290
- * additionalPayerInformation: {
291
- * "key": "value"
292
- * },
293
193
  * authorizationNumber: "string",
294
194
  * cptCode: "string",
295
- * units: CandidApi.preEncounter.patients.v1.AuthorizationUnit.Visit,
296
- * quantity: {
297
- * "key": "value"
298
- * },
299
- * period: {
300
- * "key": "value"
301
- * },
302
- * notes: {
303
- * "key": "value"
304
- * }
195
+ * units: CandidApi.preEncounter.patients.v1.AuthorizationUnit.Visit
305
196
  * }],
306
197
  * referrals: [{
307
198
  * provider: {
@@ -309,46 +200,22 @@ class V1 {
309
200
  * family: "string",
310
201
  * given: ["string"],
311
202
  * use: CandidApi.preEncounter.NameUse.Usual,
312
- * period: {
313
- * start: {
314
- * "key": "value"
315
- * },
316
- * end: {
317
- * "key": "value"
318
- * }
319
- * }
203
+ * period: {}
320
204
  * },
321
205
  * type: CandidApi.preEncounter.ExternalProviderType.Primary,
322
206
  * npi: "string",
323
207
  * telecoms: [{
324
208
  * value: "string",
325
- * use: CandidApi.preEncounter.ContactPointUse.Home,
326
- * period: {
327
- * "key": "value"
328
- * }
209
+ * use: CandidApi.preEncounter.ContactPointUse.Home
329
210
  * }],
330
- * addresses: [{
331
- * "key": "value"
332
- * }],
333
- * period: {
334
- * start: {
335
- * "key": "value"
336
- * },
337
- * end: {
338
- * "key": "value"
339
- * }
340
- * },
211
+ * addresses: [],
212
+ * period: {},
341
213
  * canonicalId: CandidApi.preEncounter.CanonicalProviderId("string")
342
214
  * },
343
- * referralNumber: "string",
344
- * period: {
345
- * "key": "value"
346
- * },
347
- * notes: {
348
- * "key": "value"
349
- * }
215
+ * referralNumber: "string"
350
216
  * }],
351
- * primaryServiceFacilityId: "string"
217
+ * primaryServiceFacilityId: "string",
218
+ * doNotInvoiceReason: CandidApi.preEncounter.patients.v1.DoNotInvoiceReason.Bankruptcy
352
219
  * }
353
220
  * })
354
221
  */
@@ -368,7 +235,7 @@ class V1 {
368
235
  Authorization: yield this._getAuthorizationHeader(),
369
236
  "X-Fern-Language": "JavaScript",
370
237
  "X-Fern-SDK-Name": "candidhealth",
371
- "X-Fern-SDK-Version": "0.34.9",
238
+ "X-Fern-SDK-Version": "0.35.1",
372
239
  "X-Fern-Runtime": core.RUNTIME.type,
373
240
  "X-Fern-Runtime-Version": core.RUNTIME.version,
374
241
  },
@@ -414,6 +281,241 @@ class V1 {
414
281
  };
415
282
  });
416
283
  }
284
+ /**
285
+ * Adds a patient and hydrates their MRN with a pre-existing MRN. Once this patient is created their MRN will not be editable. InvalidMRNError is returned when the MRN is greater than 20 characters. VersionConflictError is returned when the patient's external ID is already in use.
286
+ *
287
+ * @param {CandidApi.preEncounter.patients.v1.CreatePatientWithMrnRequest} request
288
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
289
+ *
290
+ * @example
291
+ * await client.preEncounter.patients.v1.createWithMrn({
292
+ * skipDuplicateCheck: true,
293
+ * body: {
294
+ * mrn: "string",
295
+ * name: {
296
+ * family: "string",
297
+ * given: ["string"],
298
+ * use: CandidApi.preEncounter.NameUse.Usual,
299
+ * period: {}
300
+ * },
301
+ * otherNames: [{
302
+ * family: "string",
303
+ * given: ["string"],
304
+ * use: CandidApi.preEncounter.NameUse.Usual,
305
+ * period: {}
306
+ * }],
307
+ * gender: CandidApi.preEncounter.Gender.Man,
308
+ * birthDate: "2023-01-15",
309
+ * socialSecurityNumber: "string",
310
+ * biologicalSex: CandidApi.preEncounter.Sex.Female,
311
+ * sexualOrientation: CandidApi.preEncounter.SexualOrientation.Heterosexual,
312
+ * race: CandidApi.preEncounter.Race.AmericanIndianOrAlaskaNative,
313
+ * ethnicity: CandidApi.preEncounter.Ethnicity.HispanicOrLatino,
314
+ * disabilityStatus: CandidApi.preEncounter.DisabilityStatus.Disabled,
315
+ * maritalStatus: CandidApi.preEncounter.patients.v1.MaritalStatus.Annulled,
316
+ * deceased: new Date("2024-01-15T09:30:00.000Z"),
317
+ * multipleBirth: 1,
318
+ * primaryAddress: {
319
+ * use: CandidApi.preEncounter.AddressUse.Home,
320
+ * line: ["string"],
321
+ * city: "string",
322
+ * state: "string",
323
+ * postalCode: "string",
324
+ * country: "string",
325
+ * period: {}
326
+ * },
327
+ * otherAddresses: [{
328
+ * use: CandidApi.preEncounter.AddressUse.Home,
329
+ * line: ["string"],
330
+ * city: "string",
331
+ * state: "string",
332
+ * postalCode: "string",
333
+ * country: "string",
334
+ * period: {}
335
+ * }],
336
+ * primaryTelecom: {
337
+ * value: "string",
338
+ * use: CandidApi.preEncounter.ContactPointUse.Home
339
+ * },
340
+ * otherTelecoms: [{
341
+ * value: "string",
342
+ * use: CandidApi.preEncounter.ContactPointUse.Home
343
+ * }],
344
+ * email: "string",
345
+ * electronicCommunicationOptIn: true,
346
+ * photo: "string",
347
+ * language: "string",
348
+ * externalProvenance: {
349
+ * externalId: "string",
350
+ * systemName: "string"
351
+ * },
352
+ * contacts: [{
353
+ * relationship: [CandidApi.preEncounter.Relationship.Self],
354
+ * name: {
355
+ * family: "string",
356
+ * given: ["string"],
357
+ * use: CandidApi.preEncounter.NameUse.Usual,
358
+ * period: {}
359
+ * },
360
+ * telecoms: [{
361
+ * value: "string",
362
+ * use: CandidApi.preEncounter.ContactPointUse.Home
363
+ * }],
364
+ * addresses: [{
365
+ * use: CandidApi.preEncounter.AddressUse.Home,
366
+ * line: ["string"],
367
+ * city: "string",
368
+ * state: "string",
369
+ * postalCode: "string",
370
+ * country: "string",
371
+ * period: {}
372
+ * }],
373
+ * period: {},
374
+ * hipaaAuthorization: true
375
+ * }],
376
+ * generalPractitioners: [{
377
+ * name: {
378
+ * family: "string",
379
+ * given: ["string"],
380
+ * use: CandidApi.preEncounter.NameUse.Usual,
381
+ * period: {}
382
+ * },
383
+ * type: CandidApi.preEncounter.ExternalProviderType.Primary,
384
+ * npi: "string",
385
+ * telecoms: [{
386
+ * value: "string",
387
+ * use: CandidApi.preEncounter.ContactPointUse.Home
388
+ * }],
389
+ * addresses: [],
390
+ * period: {},
391
+ * canonicalId: CandidApi.preEncounter.CanonicalProviderId("string")
392
+ * }],
393
+ * filingOrder: {
394
+ * coverages: [CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]
395
+ * },
396
+ * nonInsurancePayers: [CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")],
397
+ * nonInsurancePayerAssociations: [{
398
+ * id: CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")
399
+ * }],
400
+ * guarantor: {
401
+ * name: {
402
+ * family: "string",
403
+ * given: ["string"],
404
+ * use: CandidApi.preEncounter.NameUse.Usual,
405
+ * period: {}
406
+ * },
407
+ * telecom: {
408
+ * value: "string",
409
+ * use: CandidApi.preEncounter.ContactPointUse.Home
410
+ * },
411
+ * email: "string",
412
+ * birthDate: "2023-01-15",
413
+ * address: {
414
+ * use: CandidApi.preEncounter.AddressUse.Home,
415
+ * line: ["string"],
416
+ * city: "string",
417
+ * state: "string",
418
+ * postalCode: "string",
419
+ * country: "string",
420
+ * period: {}
421
+ * }
422
+ * },
423
+ * selfPay: true,
424
+ * authorizations: [{
425
+ * payerId: CandidApi.preEncounter.PayerId("string"),
426
+ * payerName: "string",
427
+ * authorizationNumber: "string",
428
+ * cptCode: "string",
429
+ * units: CandidApi.preEncounter.patients.v1.AuthorizationUnit.Visit
430
+ * }],
431
+ * referrals: [{
432
+ * provider: {
433
+ * name: {
434
+ * family: "string",
435
+ * given: ["string"],
436
+ * use: CandidApi.preEncounter.NameUse.Usual,
437
+ * period: {}
438
+ * },
439
+ * type: CandidApi.preEncounter.ExternalProviderType.Primary,
440
+ * npi: "string",
441
+ * telecoms: [{
442
+ * value: "string",
443
+ * use: CandidApi.preEncounter.ContactPointUse.Home
444
+ * }],
445
+ * addresses: [],
446
+ * period: {},
447
+ * canonicalId: CandidApi.preEncounter.CanonicalProviderId("string")
448
+ * },
449
+ * referralNumber: "string"
450
+ * }],
451
+ * primaryServiceFacilityId: "string",
452
+ * doNotInvoiceReason: CandidApi.preEncounter.patients.v1.DoNotInvoiceReason.Bankruptcy
453
+ * }
454
+ * })
455
+ */
456
+ createWithMrn(request, requestOptions) {
457
+ var _a, _b;
458
+ return __awaiter(this, void 0, void 0, function* () {
459
+ const { skipDuplicateCheck, body: _body } = request;
460
+ const _queryParams = {};
461
+ if (skipDuplicateCheck != null) {
462
+ _queryParams["skip_duplicate_check"] = skipDuplicateCheck.toString();
463
+ }
464
+ const _response = yield core.fetcher({
465
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
466
+ .preEncounter, "/patients/v1/with_mrn"),
467
+ method: "POST",
468
+ headers: {
469
+ Authorization: yield this._getAuthorizationHeader(),
470
+ "X-Fern-Language": "JavaScript",
471
+ "X-Fern-SDK-Name": "candidhealth",
472
+ "X-Fern-SDK-Version": "0.35.1",
473
+ "X-Fern-Runtime": core.RUNTIME.type,
474
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
475
+ },
476
+ contentType: "application/json",
477
+ queryParameters: _queryParams,
478
+ requestType: "json",
479
+ body: serializers.preEncounter.patients.v1.MutablePatientWithMrn.jsonOrThrow(_body, {
480
+ unrecognizedObjectKeys: "strip",
481
+ }),
482
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
483
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
484
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
485
+ });
486
+ if (_response.ok) {
487
+ return {
488
+ ok: true,
489
+ body: serializers.preEncounter.patients.v1.Patient.parseOrThrow(_response.body, {
490
+ unrecognizedObjectKeys: "passthrough",
491
+ allowUnrecognizedUnionMembers: true,
492
+ allowUnrecognizedEnumValues: true,
493
+ breadcrumbsPrefix: ["response"],
494
+ }),
495
+ };
496
+ }
497
+ if (_response.error.reason === "status-code") {
498
+ switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
499
+ case "VersionConflictError":
500
+ case "PotentialDuplicatePatients":
501
+ case "InvalidMRNError":
502
+ return {
503
+ ok: false,
504
+ error: serializers.preEncounter.patients.v1.createWithMrn.Error.parseOrThrow(_response.error.body, {
505
+ unrecognizedObjectKeys: "passthrough",
506
+ allowUnrecognizedUnionMembers: true,
507
+ allowUnrecognizedEnumValues: true,
508
+ breadcrumbsPrefix: ["response"],
509
+ }),
510
+ };
511
+ }
512
+ }
513
+ return {
514
+ ok: false,
515
+ error: CandidApi.preEncounter.patients.v1.createWithMrn.Error._unknown(_response.error),
516
+ };
517
+ });
518
+ }
417
519
  /**
418
520
  * Searches for patients that match the query parameters.
419
521
  *
@@ -457,7 +559,7 @@ class V1 {
457
559
  Authorization: yield this._getAuthorizationHeader(),
458
560
  "X-Fern-Language": "JavaScript",
459
561
  "X-Fern-SDK-Name": "candidhealth",
460
- "X-Fern-SDK-Version": "0.34.9",
562
+ "X-Fern-SDK-Version": "0.35.1",
461
563
  "X-Fern-Runtime": core.RUNTIME.type,
462
564
  "X-Fern-Runtime-Version": core.RUNTIME.version,
463
565
  },
@@ -505,7 +607,7 @@ class V1 {
505
607
  Authorization: yield this._getAuthorizationHeader(),
506
608
  "X-Fern-Language": "JavaScript",
507
609
  "X-Fern-SDK-Name": "candidhealth",
508
- "X-Fern-SDK-Version": "0.34.9",
610
+ "X-Fern-SDK-Version": "0.35.1",
509
611
  "X-Fern-Runtime": core.RUNTIME.type,
510
612
  "X-Fern-Runtime-Version": core.RUNTIME.version,
511
613
  },
@@ -566,7 +668,7 @@ class V1 {
566
668
  Authorization: yield this._getAuthorizationHeader(),
567
669
  "X-Fern-Language": "JavaScript",
568
670
  "X-Fern-SDK-Name": "candidhealth",
569
- "X-Fern-SDK-Version": "0.34.9",
671
+ "X-Fern-SDK-Version": "0.35.1",
570
672
  "X-Fern-Runtime": core.RUNTIME.type,
571
673
  "X-Fern-Runtime-Version": core.RUNTIME.version,
572
674
  },
@@ -621,27 +723,13 @@ class V1 {
621
723
  * family: "string",
622
724
  * given: ["string"],
623
725
  * use: CandidApi.preEncounter.NameUse.Usual,
624
- * period: {
625
- * start: {
626
- * "key": "value"
627
- * },
628
- * end: {
629
- * "key": "value"
630
- * }
631
- * }
726
+ * period: {}
632
727
  * },
633
728
  * otherNames: [{
634
729
  * family: "string",
635
730
  * given: ["string"],
636
731
  * use: CandidApi.preEncounter.NameUse.Usual,
637
- * period: {
638
- * start: {
639
- * "key": "value"
640
- * },
641
- * end: {
642
- * "key": "value"
643
- * }
644
- * }
732
+ * period: {}
645
733
  * }],
646
734
  * gender: CandidApi.preEncounter.Gender.Man,
647
735
  * birthDate: "2023-01-15",
@@ -661,14 +749,7 @@ class V1 {
661
749
  * state: "string",
662
750
  * postalCode: "string",
663
751
  * country: "string",
664
- * period: {
665
- * start: {
666
- * "key": "value"
667
- * },
668
- * end: {
669
- * "key": "value"
670
- * }
671
- * }
752
+ * period: {}
672
753
  * },
673
754
  * otherAddresses: [{
674
755
  * use: CandidApi.preEncounter.AddressUse.Home,
@@ -677,28 +758,15 @@ class V1 {
677
758
  * state: "string",
678
759
  * postalCode: "string",
679
760
  * country: "string",
680
- * period: {
681
- * start: {
682
- * "key": "value"
683
- * },
684
- * end: {
685
- * "key": "value"
686
- * }
687
- * }
761
+ * period: {}
688
762
  * }],
689
763
  * primaryTelecom: {
690
764
  * value: "string",
691
- * use: CandidApi.preEncounter.ContactPointUse.Home,
692
- * period: {
693
- * "key": "value"
694
- * }
765
+ * use: CandidApi.preEncounter.ContactPointUse.Home
695
766
  * },
696
767
  * otherTelecoms: [{
697
768
  * value: "string",
698
- * use: CandidApi.preEncounter.ContactPointUse.Home,
699
- * period: {
700
- * "key": "value"
701
- * }
769
+ * use: CandidApi.preEncounter.ContactPointUse.Home
702
770
  * }],
703
771
  * email: "string",
704
772
  * electronicCommunicationOptIn: true,
@@ -714,21 +782,11 @@ class V1 {
714
782
  * family: "string",
715
783
  * given: ["string"],
716
784
  * use: CandidApi.preEncounter.NameUse.Usual,
717
- * period: {
718
- * start: {
719
- * "key": "value"
720
- * },
721
- * end: {
722
- * "key": "value"
723
- * }
724
- * }
785
+ * period: {}
725
786
  * },
726
787
  * telecoms: [{
727
788
  * value: "string",
728
- * use: CandidApi.preEncounter.ContactPointUse.Home,
729
- * period: {
730
- * "key": "value"
731
- * }
789
+ * use: CandidApi.preEncounter.ContactPointUse.Home
732
790
  * }],
733
791
  * addresses: [{
734
792
  * use: CandidApi.preEncounter.AddressUse.Home,
@@ -737,23 +795,9 @@ class V1 {
737
795
  * state: "string",
738
796
  * postalCode: "string",
739
797
  * country: "string",
740
- * period: {
741
- * start: {
742
- * "key": "value"
743
- * },
744
- * end: {
745
- * "key": "value"
746
- * }
747
- * }
798
+ * period: {}
748
799
  * }],
749
- * period: {
750
- * start: {
751
- * "key": "value"
752
- * },
753
- * end: {
754
- * "key": "value"
755
- * }
756
- * },
800
+ * period: {},
757
801
  * hipaaAuthorization: true
758
802
  * }],
759
803
  * generalPractitioners: [{
@@ -761,35 +805,16 @@ class V1 {
761
805
  * family: "string",
762
806
  * given: ["string"],
763
807
  * use: CandidApi.preEncounter.NameUse.Usual,
764
- * period: {
765
- * start: {
766
- * "key": "value"
767
- * },
768
- * end: {
769
- * "key": "value"
770
- * }
771
- * }
808
+ * period: {}
772
809
  * },
773
810
  * type: CandidApi.preEncounter.ExternalProviderType.Primary,
774
811
  * npi: "string",
775
812
  * telecoms: [{
776
813
  * value: "string",
777
- * use: CandidApi.preEncounter.ContactPointUse.Home,
778
- * period: {
779
- * "key": "value"
780
- * }
781
- * }],
782
- * addresses: [{
783
- * "key": "value"
814
+ * use: CandidApi.preEncounter.ContactPointUse.Home
784
815
  * }],
785
- * period: {
786
- * start: {
787
- * "key": "value"
788
- * },
789
- * end: {
790
- * "key": "value"
791
- * }
792
- * },
816
+ * addresses: [],
817
+ * period: {},
793
818
  * canonicalId: CandidApi.preEncounter.CanonicalProviderId("string")
794
819
  * }],
795
820
  * filingOrder: {
@@ -797,31 +822,18 @@ class V1 {
797
822
  * },
798
823
  * nonInsurancePayers: [CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")],
799
824
  * nonInsurancePayerAssociations: [{
800
- * id: CandidApi.preEncounter.CanonicalNonInsurancePayerId("string"),
801
- * memberId: {
802
- * "key": "value"
803
- * }
825
+ * id: CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")
804
826
  * }],
805
827
  * guarantor: {
806
828
  * name: {
807
829
  * family: "string",
808
830
  * given: ["string"],
809
831
  * use: CandidApi.preEncounter.NameUse.Usual,
810
- * period: {
811
- * start: {
812
- * "key": "value"
813
- * },
814
- * end: {
815
- * "key": "value"
816
- * }
817
- * }
832
+ * period: {}
818
833
  * },
819
834
  * telecom: {
820
835
  * value: "string",
821
- * use: CandidApi.preEncounter.ContactPointUse.Home,
822
- * period: {
823
- * "key": "value"
824
- * }
836
+ * use: CandidApi.preEncounter.ContactPointUse.Home
825
837
  * },
826
838
  * email: "string",
827
839
  * birthDate: "2023-01-15",
@@ -832,35 +844,16 @@ class V1 {
832
844
  * state: "string",
833
845
  * postalCode: "string",
834
846
  * country: "string",
835
- * period: {
836
- * start: {
837
- * "key": "value"
838
- * },
839
- * end: {
840
- * "key": "value"
841
- * }
842
- * }
847
+ * period: {}
843
848
  * }
844
849
  * },
845
850
  * selfPay: true,
846
851
  * authorizations: [{
847
852
  * payerId: CandidApi.preEncounter.PayerId("string"),
848
853
  * payerName: "string",
849
- * additionalPayerInformation: {
850
- * "key": "value"
851
- * },
852
854
  * authorizationNumber: "string",
853
855
  * cptCode: "string",
854
- * units: CandidApi.preEncounter.patients.v1.AuthorizationUnit.Visit,
855
- * quantity: {
856
- * "key": "value"
857
- * },
858
- * period: {
859
- * "key": "value"
860
- * },
861
- * notes: {
862
- * "key": "value"
863
- * }
856
+ * units: CandidApi.preEncounter.patients.v1.AuthorizationUnit.Visit
864
857
  * }],
865
858
  * referrals: [{
866
859
  * provider: {
@@ -868,46 +861,22 @@ class V1 {
868
861
  * family: "string",
869
862
  * given: ["string"],
870
863
  * use: CandidApi.preEncounter.NameUse.Usual,
871
- * period: {
872
- * start: {
873
- * "key": "value"
874
- * },
875
- * end: {
876
- * "key": "value"
877
- * }
878
- * }
864
+ * period: {}
879
865
  * },
880
866
  * type: CandidApi.preEncounter.ExternalProviderType.Primary,
881
867
  * npi: "string",
882
868
  * telecoms: [{
883
869
  * value: "string",
884
- * use: CandidApi.preEncounter.ContactPointUse.Home,
885
- * period: {
886
- * "key": "value"
887
- * }
888
- * }],
889
- * addresses: [{
890
- * "key": "value"
870
+ * use: CandidApi.preEncounter.ContactPointUse.Home
891
871
  * }],
892
- * period: {
893
- * start: {
894
- * "key": "value"
895
- * },
896
- * end: {
897
- * "key": "value"
898
- * }
899
- * },
872
+ * addresses: [],
873
+ * period: {},
900
874
  * canonicalId: CandidApi.preEncounter.CanonicalProviderId("string")
901
875
  * },
902
- * referralNumber: "string",
903
- * period: {
904
- * "key": "value"
905
- * },
906
- * notes: {
907
- * "key": "value"
908
- * }
876
+ * referralNumber: "string"
909
877
  * }],
910
- * primaryServiceFacilityId: "string"
878
+ * primaryServiceFacilityId: "string",
879
+ * doNotInvoiceReason: CandidApi.preEncounter.patients.v1.DoNotInvoiceReason.Bankruptcy
911
880
  * })
912
881
  */
913
882
  update(id, version, request, requestOptions) {
@@ -921,7 +890,7 @@ class V1 {
921
890
  Authorization: yield this._getAuthorizationHeader(),
922
891
  "X-Fern-Language": "JavaScript",
923
892
  "X-Fern-SDK-Name": "candidhealth",
924
- "X-Fern-SDK-Version": "0.34.9",
893
+ "X-Fern-SDK-Version": "0.35.1",
925
894
  "X-Fern-Runtime": core.RUNTIME.type,
926
895
  "X-Fern-Runtime-Version": core.RUNTIME.version,
927
896
  },
@@ -987,7 +956,7 @@ class V1 {
987
956
  Authorization: yield this._getAuthorizationHeader(),
988
957
  "X-Fern-Language": "JavaScript",
989
958
  "X-Fern-SDK-Name": "candidhealth",
990
- "X-Fern-SDK-Version": "0.34.9",
959
+ "X-Fern-SDK-Version": "0.35.1",
991
960
  "X-Fern-Runtime": core.RUNTIME.type,
992
961
  "X-Fern-Runtime-Version": core.RUNTIME.version,
993
962
  },
@@ -1055,7 +1024,7 @@ class V1 {
1055
1024
  Authorization: yield this._getAuthorizationHeader(),
1056
1025
  "X-Fern-Language": "JavaScript",
1057
1026
  "X-Fern-SDK-Name": "candidhealth",
1058
- "X-Fern-SDK-Version": "0.34.9",
1027
+ "X-Fern-SDK-Version": "0.35.1",
1059
1028
  "X-Fern-Runtime": core.RUNTIME.type,
1060
1029
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1061
1030
  },
@@ -1108,7 +1077,7 @@ class V1 {
1108
1077
  Authorization: yield this._getAuthorizationHeader(),
1109
1078
  "X-Fern-Language": "JavaScript",
1110
1079
  "X-Fern-SDK-Name": "candidhealth",
1111
- "X-Fern-SDK-Version": "0.34.9",
1080
+ "X-Fern-SDK-Version": "0.35.1",
1112
1081
  "X-Fern-Runtime": core.RUNTIME.type,
1113
1082
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1114
1083
  },