candidhealth 0.35.0 → 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 (254) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  3. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  4. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  5. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  6. package/api/resources/diagnoses/client/Client.js +3 -3
  7. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  8. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  9. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  10. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  11. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  12. package/api/resources/exports/resources/v3/client/Client.d.ts +3 -2
  13. package/api/resources/exports/resources/v3/client/Client.js +4 -3
  14. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  15. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  16. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  17. package/api/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -1
  18. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  19. package/api/resources/index.d.ts +1 -0
  20. package/api/resources/index.js +2 -1
  21. package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +2 -1
  22. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +5 -4
  23. package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
  24. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  25. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  26. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  27. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  28. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  29. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  30. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  31. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  32. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  33. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  34. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  35. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  36. package/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.d.ts +2 -1
  37. package/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.js +1 -0
  38. package/api/resources/preEncounter/resources/common/types/ExternalProvider.d.ts +1 -0
  39. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
  40. package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
  41. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.d.ts +2 -2
  42. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +4 -4
  43. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +3 -3
  44. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +5 -2
  45. package/api/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +1 -0
  46. package/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +11 -0
  47. package/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.js +10 -0
  48. package/api/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +1 -0
  49. package/api/resources/preEncounter/resources/lists/resources/v1/types/index.js +1 -0
  50. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +177 -2
  51. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +247 -10
  52. package/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +40 -0
  53. package/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +80 -0
  54. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  55. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  56. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +2 -1
  57. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +175 -0
  58. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.js +5 -0
  59. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/index.d.ts +1 -0
  60. package/api/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.d.ts +10 -0
  61. package/api/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.js +12 -0
  62. package/api/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.d.ts +7 -0
  63. package/api/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.js +5 -0
  64. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  65. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.d.ts +8 -0
  66. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.js +5 -0
  67. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +3 -0
  68. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +3 -0
  69. package/api/resources/remitDrafts/index.d.ts +1 -0
  70. package/api/resources/remitDrafts/index.js +17 -0
  71. package/api/resources/remitDrafts/resources/index.d.ts +1 -0
  72. package/api/resources/remitDrafts/resources/index.js +27 -0
  73. package/api/resources/remitDrafts/resources/v1/index.d.ts +1 -0
  74. package/api/resources/remitDrafts/resources/v1/index.js +17 -0
  75. package/api/resources/remitDrafts/resources/v1/types/RemitDraftId.d.ts +8 -0
  76. package/api/resources/remitDrafts/resources/v1/types/RemitDraftId.js +10 -0
  77. package/api/resources/remitDrafts/resources/v1/types/index.d.ts +1 -0
  78. package/api/resources/remitDrafts/resources/v1/types/index.js +17 -0
  79. package/api/resources/serviceFacility/client/Client.js +1 -1
  80. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  81. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  82. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  83. package/api/resources/x12/resources/v1/types/Rarc.d.ts +7 -1
  84. package/api/resources/x12/resources/v1/types/Rarc.js +6 -0
  85. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  86. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  87. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  88. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  89. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  90. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  91. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  92. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  93. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  94. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  95. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  96. package/dist/api/resources/exports/resources/v3/client/Client.d.ts +3 -2
  97. package/dist/api/resources/exports/resources/v3/client/Client.js +4 -3
  98. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  99. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  100. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  101. package/dist/api/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -1
  102. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  103. package/dist/api/resources/index.d.ts +1 -0
  104. package/dist/api/resources/index.js +2 -1
  105. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +2 -1
  106. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +5 -4
  107. package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
  108. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  109. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  110. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  111. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  112. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  113. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  114. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  115. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  116. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  117. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  118. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  119. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  120. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.d.ts +2 -1
  121. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.js +1 -0
  122. package/dist/api/resources/preEncounter/resources/common/types/ExternalProvider.d.ts +1 -0
  123. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
  124. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
  125. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.d.ts +2 -2
  126. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +4 -4
  127. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +3 -3
  128. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +5 -2
  129. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +1 -0
  130. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +11 -0
  131. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.js +10 -0
  132. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +1 -0
  133. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/index.js +1 -0
  134. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +177 -2
  135. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +247 -10
  136. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +40 -0
  137. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +80 -0
  138. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  139. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  140. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +2 -1
  141. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +175 -0
  142. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.js +5 -0
  143. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/index.d.ts +1 -0
  144. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.d.ts +10 -0
  145. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.js +12 -0
  146. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.d.ts +7 -0
  147. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.js +5 -0
  148. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  149. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.d.ts +8 -0
  150. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.js +5 -0
  151. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +3 -0
  152. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +3 -0
  153. package/dist/api/resources/remitDrafts/index.d.ts +1 -0
  154. package/dist/api/resources/remitDrafts/index.js +17 -0
  155. package/dist/api/resources/remitDrafts/resources/index.d.ts +1 -0
  156. package/dist/api/resources/remitDrafts/resources/index.js +27 -0
  157. package/dist/api/resources/remitDrafts/resources/v1/index.d.ts +1 -0
  158. package/dist/api/resources/remitDrafts/resources/v1/index.js +17 -0
  159. package/dist/api/resources/remitDrafts/resources/v1/types/RemitDraftId.d.ts +8 -0
  160. package/dist/api/resources/remitDrafts/resources/v1/types/RemitDraftId.js +10 -0
  161. package/dist/api/resources/remitDrafts/resources/v1/types/index.d.ts +1 -0
  162. package/dist/api/resources/remitDrafts/resources/v1/types/index.js +17 -0
  163. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  164. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  165. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  166. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  167. package/dist/api/resources/x12/resources/v1/types/Rarc.d.ts +7 -1
  168. package/dist/api/resources/x12/resources/v1/types/Rarc.js +6 -0
  169. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -1
  170. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +1 -1
  171. package/dist/serialization/resources/index.d.ts +1 -0
  172. package/dist/serialization/resources/index.js +2 -1
  173. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +2 -0
  174. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +2 -0
  175. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.d.ts +1 -1
  176. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.js +1 -1
  177. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
  178. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.js +1 -0
  179. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +2 -0
  180. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.js +2 -0
  181. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +10 -0
  182. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.js +35 -0
  183. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +1 -0
  184. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.js +1 -0
  185. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +25 -0
  186. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +73 -0
  187. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  188. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  189. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.d.ts +10 -0
  190. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.js +31 -0
  191. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.d.ts +13 -0
  192. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.js +36 -0
  193. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  194. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +2 -0
  195. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.d.ts +13 -0
  196. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.js +36 -0
  197. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +3 -0
  198. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +3 -0
  199. package/dist/serialization/resources/remitDrafts/index.d.ts +1 -0
  200. package/dist/serialization/resources/remitDrafts/index.js +17 -0
  201. package/dist/serialization/resources/remitDrafts/resources/index.d.ts +1 -0
  202. package/dist/serialization/resources/remitDrafts/resources/index.js +27 -0
  203. package/dist/serialization/resources/remitDrafts/resources/v1/index.d.ts +1 -0
  204. package/dist/serialization/resources/remitDrafts/resources/v1/index.js +17 -0
  205. package/dist/serialization/resources/remitDrafts/resources/v1/types/RemitDraftId.d.ts +10 -0
  206. package/dist/serialization/resources/remitDrafts/resources/v1/types/RemitDraftId.js +35 -0
  207. package/dist/serialization/resources/remitDrafts/resources/v1/types/index.d.ts +1 -0
  208. package/dist/serialization/resources/remitDrafts/resources/v1/types/index.js +17 -0
  209. package/dist/serialization/resources/x12/resources/v1/types/Rarc.d.ts +1 -1
  210. package/dist/serialization/resources/x12/resources/v1/types/Rarc.js +6 -0
  211. package/package.json +1 -1
  212. package/reference.md +258 -4
  213. package/serialization/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -1
  214. package/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +1 -1
  215. package/serialization/resources/index.d.ts +1 -0
  216. package/serialization/resources/index.js +2 -1
  217. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +2 -0
  218. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +2 -0
  219. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.d.ts +1 -1
  220. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.js +1 -1
  221. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
  222. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.js +1 -0
  223. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +2 -0
  224. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.js +2 -0
  225. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +10 -0
  226. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.js +35 -0
  227. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +1 -0
  228. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.js +1 -0
  229. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +25 -0
  230. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +73 -0
  231. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  232. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  233. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.d.ts +10 -0
  234. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.js +31 -0
  235. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.d.ts +13 -0
  236. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.js +36 -0
  237. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  238. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +2 -0
  239. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.d.ts +13 -0
  240. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.js +36 -0
  241. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +3 -0
  242. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +3 -0
  243. package/serialization/resources/remitDrafts/index.d.ts +1 -0
  244. package/serialization/resources/remitDrafts/index.js +17 -0
  245. package/serialization/resources/remitDrafts/resources/index.d.ts +1 -0
  246. package/serialization/resources/remitDrafts/resources/index.js +27 -0
  247. package/serialization/resources/remitDrafts/resources/v1/index.d.ts +1 -0
  248. package/serialization/resources/remitDrafts/resources/v1/index.js +17 -0
  249. package/serialization/resources/remitDrafts/resources/v1/types/RemitDraftId.d.ts +10 -0
  250. package/serialization/resources/remitDrafts/resources/v1/types/RemitDraftId.js +35 -0
  251. package/serialization/resources/remitDrafts/resources/v1/types/index.d.ts +1 -0
  252. package/serialization/resources/remitDrafts/resources/v1/types/index.js +17 -0
  253. package/serialization/resources/x12/resources/v1/types/Rarc.d.ts +1 -1
  254. package/serialization/resources/x12/resources/v1/types/Rarc.js +6 -0
@@ -7,7 +7,7 @@ import * as CandidApi from "../../../../../../../../index";
7
7
  * {
8
8
  * pageToken: CandidApi.preEncounter.PageToken("string"),
9
9
  * limit: 1,
10
- * sortField: "string",
10
+ * sortField: CandidApi.preEncounter.lists.v1.SortFieldString("string"),
11
11
  * sortDirection: CandidApi.preEncounter.SortDirection.Asc,
12
12
  * filters: CandidApi.preEncounter.lists.v1.FilterQueryString("string")
13
13
  * }
@@ -15,7 +15,10 @@ import * as CandidApi from "../../../../../../../../index";
15
15
  export interface PatientListRequest {
16
16
  pageToken?: CandidApi.preEncounter.PageToken;
17
17
  limit?: number;
18
- sortField?: string;
18
+ /**
19
+ * Defaults to patient.updatedAt.
20
+ */
21
+ sortField?: CandidApi.preEncounter.lists.v1.SortFieldString;
19
22
  /**
20
23
  * Defaults to ascending.
21
24
  */
@@ -6,4 +6,5 @@ export interface AppointmentListItem {
6
6
  appointment: CandidApi.preEncounter.appointments.v1.Appointment;
7
7
  patient: CandidApi.preEncounter.patients.v1.MutablePatient;
8
8
  primaryCoverage?: CandidApi.preEncounter.coverages.v1.MutableCoverage;
9
+ primaryServiceType?: CandidApi.preEncounter.appointments.v1.UniversalServiceIdentifier;
9
10
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../../../index";
5
+ /**
6
+ * The field to order by. Valid values are either keys on the list item object or a special ordering "similar_name:<search_string>" (Ex: similar_name:John). Similar name ordering uses trigrams to fuzzy match patient name to the search criteria. Path names are camelCase.
7
+ */
8
+ export declare type SortFieldString = string & {
9
+ preEncounter_lists_v1_SortFieldString: void;
10
+ };
11
+ export declare function SortFieldString(value: string): CandidApi.preEncounter.lists.v1.SortFieldString;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SortFieldString = void 0;
7
+ function SortFieldString(value) {
8
+ return value;
9
+ }
10
+ exports.SortFieldString = SortFieldString;
@@ -1,4 +1,5 @@
1
1
  export * from "./FilterQueryString";
2
+ export * from "./SortFieldString";
2
3
  export * from "./PatientListItem";
3
4
  export * from "./PatientListPage";
4
5
  export * from "./AppointmentListItem";
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./FilterQueryString"), exports);
18
+ __exportStar(require("./SortFieldString"), exports);
18
19
  __exportStar(require("./PatientListItem"), exports);
19
20
  __exportStar(require("./PatientListPage"), exports);
20
21
  __exportStar(require("./AppointmentListItem"), exports);
@@ -187,11 +187,185 @@ export declare class V1 {
187
187
  * },
188
188
  * referralNumber: "string"
189
189
  * }],
190
- * primaryServiceFacilityId: "string"
190
+ * primaryServiceFacilityId: "string",
191
+ * doNotInvoiceReason: CandidApi.preEncounter.patients.v1.DoNotInvoiceReason.Bankruptcy
191
192
  * }
192
193
  * })
193
194
  */
194
195
  create(request: CandidApi.preEncounter.patients.v1.CreatePatientRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.patients.v1.Patient, CandidApi.preEncounter.patients.v1.create.Error>>;
196
+ /**
197
+ * 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.
198
+ *
199
+ * @param {CandidApi.preEncounter.patients.v1.CreatePatientWithMrnRequest} request
200
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
201
+ *
202
+ * @example
203
+ * await client.preEncounter.patients.v1.createWithMrn({
204
+ * skipDuplicateCheck: true,
205
+ * body: {
206
+ * mrn: "string",
207
+ * name: {
208
+ * family: "string",
209
+ * given: ["string"],
210
+ * use: CandidApi.preEncounter.NameUse.Usual,
211
+ * period: {}
212
+ * },
213
+ * otherNames: [{
214
+ * family: "string",
215
+ * given: ["string"],
216
+ * use: CandidApi.preEncounter.NameUse.Usual,
217
+ * period: {}
218
+ * }],
219
+ * gender: CandidApi.preEncounter.Gender.Man,
220
+ * birthDate: "2023-01-15",
221
+ * socialSecurityNumber: "string",
222
+ * biologicalSex: CandidApi.preEncounter.Sex.Female,
223
+ * sexualOrientation: CandidApi.preEncounter.SexualOrientation.Heterosexual,
224
+ * race: CandidApi.preEncounter.Race.AmericanIndianOrAlaskaNative,
225
+ * ethnicity: CandidApi.preEncounter.Ethnicity.HispanicOrLatino,
226
+ * disabilityStatus: CandidApi.preEncounter.DisabilityStatus.Disabled,
227
+ * maritalStatus: CandidApi.preEncounter.patients.v1.MaritalStatus.Annulled,
228
+ * deceased: new Date("2024-01-15T09:30:00.000Z"),
229
+ * multipleBirth: 1,
230
+ * primaryAddress: {
231
+ * use: CandidApi.preEncounter.AddressUse.Home,
232
+ * line: ["string"],
233
+ * city: "string",
234
+ * state: "string",
235
+ * postalCode: "string",
236
+ * country: "string",
237
+ * period: {}
238
+ * },
239
+ * otherAddresses: [{
240
+ * use: CandidApi.preEncounter.AddressUse.Home,
241
+ * line: ["string"],
242
+ * city: "string",
243
+ * state: "string",
244
+ * postalCode: "string",
245
+ * country: "string",
246
+ * period: {}
247
+ * }],
248
+ * primaryTelecom: {
249
+ * value: "string",
250
+ * use: CandidApi.preEncounter.ContactPointUse.Home
251
+ * },
252
+ * otherTelecoms: [{
253
+ * value: "string",
254
+ * use: CandidApi.preEncounter.ContactPointUse.Home
255
+ * }],
256
+ * email: "string",
257
+ * electronicCommunicationOptIn: true,
258
+ * photo: "string",
259
+ * language: "string",
260
+ * externalProvenance: {
261
+ * externalId: "string",
262
+ * systemName: "string"
263
+ * },
264
+ * contacts: [{
265
+ * relationship: [CandidApi.preEncounter.Relationship.Self],
266
+ * name: {
267
+ * family: "string",
268
+ * given: ["string"],
269
+ * use: CandidApi.preEncounter.NameUse.Usual,
270
+ * period: {}
271
+ * },
272
+ * telecoms: [{
273
+ * value: "string",
274
+ * use: CandidApi.preEncounter.ContactPointUse.Home
275
+ * }],
276
+ * addresses: [{
277
+ * use: CandidApi.preEncounter.AddressUse.Home,
278
+ * line: ["string"],
279
+ * city: "string",
280
+ * state: "string",
281
+ * postalCode: "string",
282
+ * country: "string",
283
+ * period: {}
284
+ * }],
285
+ * period: {},
286
+ * hipaaAuthorization: true
287
+ * }],
288
+ * generalPractitioners: [{
289
+ * name: {
290
+ * family: "string",
291
+ * given: ["string"],
292
+ * use: CandidApi.preEncounter.NameUse.Usual,
293
+ * period: {}
294
+ * },
295
+ * type: CandidApi.preEncounter.ExternalProviderType.Primary,
296
+ * npi: "string",
297
+ * telecoms: [{
298
+ * value: "string",
299
+ * use: CandidApi.preEncounter.ContactPointUse.Home
300
+ * }],
301
+ * addresses: [],
302
+ * period: {},
303
+ * canonicalId: CandidApi.preEncounter.CanonicalProviderId("string")
304
+ * }],
305
+ * filingOrder: {
306
+ * coverages: [CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]
307
+ * },
308
+ * nonInsurancePayers: [CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")],
309
+ * nonInsurancePayerAssociations: [{
310
+ * id: CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")
311
+ * }],
312
+ * guarantor: {
313
+ * name: {
314
+ * family: "string",
315
+ * given: ["string"],
316
+ * use: CandidApi.preEncounter.NameUse.Usual,
317
+ * period: {}
318
+ * },
319
+ * telecom: {
320
+ * value: "string",
321
+ * use: CandidApi.preEncounter.ContactPointUse.Home
322
+ * },
323
+ * email: "string",
324
+ * birthDate: "2023-01-15",
325
+ * address: {
326
+ * use: CandidApi.preEncounter.AddressUse.Home,
327
+ * line: ["string"],
328
+ * city: "string",
329
+ * state: "string",
330
+ * postalCode: "string",
331
+ * country: "string",
332
+ * period: {}
333
+ * }
334
+ * },
335
+ * selfPay: true,
336
+ * authorizations: [{
337
+ * payerId: CandidApi.preEncounter.PayerId("string"),
338
+ * payerName: "string",
339
+ * authorizationNumber: "string",
340
+ * cptCode: "string",
341
+ * units: CandidApi.preEncounter.patients.v1.AuthorizationUnit.Visit
342
+ * }],
343
+ * referrals: [{
344
+ * provider: {
345
+ * name: {
346
+ * family: "string",
347
+ * given: ["string"],
348
+ * use: CandidApi.preEncounter.NameUse.Usual,
349
+ * period: {}
350
+ * },
351
+ * type: CandidApi.preEncounter.ExternalProviderType.Primary,
352
+ * npi: "string",
353
+ * telecoms: [{
354
+ * value: "string",
355
+ * use: CandidApi.preEncounter.ContactPointUse.Home
356
+ * }],
357
+ * addresses: [],
358
+ * period: {},
359
+ * canonicalId: CandidApi.preEncounter.CanonicalProviderId("string")
360
+ * },
361
+ * referralNumber: "string"
362
+ * }],
363
+ * primaryServiceFacilityId: "string",
364
+ * doNotInvoiceReason: CandidApi.preEncounter.patients.v1.DoNotInvoiceReason.Bankruptcy
365
+ * }
366
+ * })
367
+ */
368
+ createWithMrn(request: CandidApi.preEncounter.patients.v1.CreatePatientWithMrnRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.patients.v1.Patient, CandidApi.preEncounter.patients.v1.createWithMrn.Error>>;
195
369
  /**
196
370
  * Searches for patients that match the query parameters.
197
371
  *
@@ -394,7 +568,8 @@ export declare class V1 {
394
568
  * },
395
569
  * referralNumber: "string"
396
570
  * }],
397
- * primaryServiceFacilityId: "string"
571
+ * primaryServiceFacilityId: "string",
572
+ * doNotInvoiceReason: CandidApi.preEncounter.patients.v1.DoNotInvoiceReason.Bankruptcy
398
573
  * })
399
574
  */
400
575
  update(id: CandidApi.preEncounter.PatientId, version: string, request: CandidApi.preEncounter.patients.v1.MutablePatient, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.patients.v1.Patient, CandidApi.preEncounter.patients.v1.update.Error>>;
@@ -214,7 +214,8 @@ class V1 {
214
214
  * },
215
215
  * referralNumber: "string"
216
216
  * }],
217
- * primaryServiceFacilityId: "string"
217
+ * primaryServiceFacilityId: "string",
218
+ * doNotInvoiceReason: CandidApi.preEncounter.patients.v1.DoNotInvoiceReason.Bankruptcy
218
219
  * }
219
220
  * })
220
221
  */
@@ -234,7 +235,7 @@ class V1 {
234
235
  Authorization: yield this._getAuthorizationHeader(),
235
236
  "X-Fern-Language": "JavaScript",
236
237
  "X-Fern-SDK-Name": "candidhealth",
237
- "X-Fern-SDK-Version": "0.35.0",
238
+ "X-Fern-SDK-Version": "0.35.1",
238
239
  "X-Fern-Runtime": core.RUNTIME.type,
239
240
  "X-Fern-Runtime-Version": core.RUNTIME.version,
240
241
  },
@@ -280,6 +281,241 @@ class V1 {
280
281
  };
281
282
  });
282
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
+ }
283
519
  /**
284
520
  * Searches for patients that match the query parameters.
285
521
  *
@@ -323,7 +559,7 @@ class V1 {
323
559
  Authorization: yield this._getAuthorizationHeader(),
324
560
  "X-Fern-Language": "JavaScript",
325
561
  "X-Fern-SDK-Name": "candidhealth",
326
- "X-Fern-SDK-Version": "0.35.0",
562
+ "X-Fern-SDK-Version": "0.35.1",
327
563
  "X-Fern-Runtime": core.RUNTIME.type,
328
564
  "X-Fern-Runtime-Version": core.RUNTIME.version,
329
565
  },
@@ -371,7 +607,7 @@ class V1 {
371
607
  Authorization: yield this._getAuthorizationHeader(),
372
608
  "X-Fern-Language": "JavaScript",
373
609
  "X-Fern-SDK-Name": "candidhealth",
374
- "X-Fern-SDK-Version": "0.35.0",
610
+ "X-Fern-SDK-Version": "0.35.1",
375
611
  "X-Fern-Runtime": core.RUNTIME.type,
376
612
  "X-Fern-Runtime-Version": core.RUNTIME.version,
377
613
  },
@@ -432,7 +668,7 @@ class V1 {
432
668
  Authorization: yield this._getAuthorizationHeader(),
433
669
  "X-Fern-Language": "JavaScript",
434
670
  "X-Fern-SDK-Name": "candidhealth",
435
- "X-Fern-SDK-Version": "0.35.0",
671
+ "X-Fern-SDK-Version": "0.35.1",
436
672
  "X-Fern-Runtime": core.RUNTIME.type,
437
673
  "X-Fern-Runtime-Version": core.RUNTIME.version,
438
674
  },
@@ -639,7 +875,8 @@ class V1 {
639
875
  * },
640
876
  * referralNumber: "string"
641
877
  * }],
642
- * primaryServiceFacilityId: "string"
878
+ * primaryServiceFacilityId: "string",
879
+ * doNotInvoiceReason: CandidApi.preEncounter.patients.v1.DoNotInvoiceReason.Bankruptcy
643
880
  * })
644
881
  */
645
882
  update(id, version, request, requestOptions) {
@@ -653,7 +890,7 @@ class V1 {
653
890
  Authorization: yield this._getAuthorizationHeader(),
654
891
  "X-Fern-Language": "JavaScript",
655
892
  "X-Fern-SDK-Name": "candidhealth",
656
- "X-Fern-SDK-Version": "0.35.0",
893
+ "X-Fern-SDK-Version": "0.35.1",
657
894
  "X-Fern-Runtime": core.RUNTIME.type,
658
895
  "X-Fern-Runtime-Version": core.RUNTIME.version,
659
896
  },
@@ -719,7 +956,7 @@ class V1 {
719
956
  Authorization: yield this._getAuthorizationHeader(),
720
957
  "X-Fern-Language": "JavaScript",
721
958
  "X-Fern-SDK-Name": "candidhealth",
722
- "X-Fern-SDK-Version": "0.35.0",
959
+ "X-Fern-SDK-Version": "0.35.1",
723
960
  "X-Fern-Runtime": core.RUNTIME.type,
724
961
  "X-Fern-Runtime-Version": core.RUNTIME.version,
725
962
  },
@@ -787,7 +1024,7 @@ class V1 {
787
1024
  Authorization: yield this._getAuthorizationHeader(),
788
1025
  "X-Fern-Language": "JavaScript",
789
1026
  "X-Fern-SDK-Name": "candidhealth",
790
- "X-Fern-SDK-Version": "0.35.0",
1027
+ "X-Fern-SDK-Version": "0.35.1",
791
1028
  "X-Fern-Runtime": core.RUNTIME.type,
792
1029
  "X-Fern-Runtime-Version": core.RUNTIME.version,
793
1030
  },
@@ -840,7 +1077,7 @@ class V1 {
840
1077
  Authorization: yield this._getAuthorizationHeader(),
841
1078
  "X-Fern-Language": "JavaScript",
842
1079
  "X-Fern-SDK-Name": "candidhealth",
843
- "X-Fern-SDK-Version": "0.35.0",
1080
+ "X-Fern-SDK-Version": "0.35.1",
844
1081
  "X-Fern-Runtime": core.RUNTIME.type,
845
1082
  "X-Fern-Runtime-Version": core.RUNTIME.version,
846
1083
  },
@@ -0,0 +1,40 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../../../index";
5
+ import * as core from "../../../../../../../../core";
6
+ export declare type Error = CandidApi.preEncounter.patients.v1.createWithMrn.Error.VersionConflictError | CandidApi.preEncounter.patients.v1.createWithMrn.Error.PotentialDuplicatePatients | CandidApi.preEncounter.patients.v1.createWithMrn.Error.InvalidMrnError | CandidApi.preEncounter.patients.v1.createWithMrn.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface VersionConflictError extends _Utils {
9
+ errorName: "VersionConflictError";
10
+ content: CandidApi.preEncounter.VersionConflictErrorBody;
11
+ }
12
+ interface PotentialDuplicatePatients extends _Utils {
13
+ errorName: "PotentialDuplicatePatients";
14
+ content: CandidApi.preEncounter.patients.v1.PotentialDuplicatePatientsErrorBody;
15
+ }
16
+ interface InvalidMrnError extends _Utils {
17
+ errorName: "InvalidMRNError";
18
+ content: CandidApi.preEncounter.patients.v1.InvalidMrnErrorBody;
19
+ }
20
+ interface _Unknown extends _Utils {
21
+ errorName: void;
22
+ content: core.Fetcher.Error;
23
+ }
24
+ interface _Utils {
25
+ _visit: <_Result>(visitor: CandidApi.preEncounter.patients.v1.createWithMrn.Error._Visitor<_Result>) => _Result;
26
+ }
27
+ interface _Visitor<_Result> {
28
+ versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => _Result;
29
+ potentialDuplicatePatients: (value: CandidApi.preEncounter.patients.v1.PotentialDuplicatePatientsErrorBody) => _Result;
30
+ invalidMrnError: (value: CandidApi.preEncounter.patients.v1.InvalidMrnErrorBody) => _Result;
31
+ _other: (value: core.Fetcher.Error) => _Result;
32
+ }
33
+ }
34
+ export declare const Error: {
35
+ readonly versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => CandidApi.preEncounter.patients.v1.createWithMrn.Error.VersionConflictError;
36
+ readonly potentialDuplicatePatients: (value: CandidApi.preEncounter.patients.v1.PotentialDuplicatePatientsErrorBody) => CandidApi.preEncounter.patients.v1.createWithMrn.Error.PotentialDuplicatePatients;
37
+ readonly invalidMrnError: (value: CandidApi.preEncounter.patients.v1.InvalidMrnErrorBody) => CandidApi.preEncounter.patients.v1.createWithMrn.Error.InvalidMrnError;
38
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.patients.v1.createWithMrn.Error._Unknown;
39
+ readonly _visit: <_Result>(value: CandidApi.preEncounter.patients.v1.createWithMrn.Error, visitor: CandidApi.preEncounter.patients.v1.createWithMrn.Error._Visitor<_Result>) => _Result;
40
+ };