candidhealth 0.35.0 → 0.35.2

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 (378) 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.d.ts +1 -0
  5. package/api/resources/credentialing/resources/v2/client/Client.js +11 -6
  6. package/api/resources/credentialing/resources/v2/client/getAll.d.ts +7 -1
  7. package/api/resources/credentialing/resources/v2/client/getAll.js +11 -0
  8. package/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +7 -2
  9. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  10. package/api/resources/diagnoses/client/Client.js +3 -3
  11. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  12. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  13. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  14. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  15. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  16. package/api/resources/exports/resources/v3/client/Client.d.ts +3 -2
  17. package/api/resources/exports/resources/v3/client/Client.js +4 -3
  18. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  19. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  20. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  21. package/api/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -1
  22. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  23. package/api/resources/index.d.ts +1 -0
  24. package/api/resources/index.js +2 -1
  25. package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +2 -1
  26. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +5 -4
  27. package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
  28. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  29. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  30. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  31. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  32. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  33. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  34. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  35. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  36. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  37. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  38. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  39. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  40. package/api/resources/preEncounter/resources/appointments/resources/v1/client/create.d.ts +3 -3
  41. package/api/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.d.ts +3 -3
  42. package/api/resources/preEncounter/resources/appointments/resources/v1/client/get.d.ts +3 -3
  43. package/api/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.d.ts +3 -3
  44. package/api/resources/preEncounter/resources/appointments/resources/v1/client/update.d.ts +3 -3
  45. package/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.d.ts +2 -1
  46. package/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.js +1 -0
  47. package/api/resources/preEncounter/resources/common/types/{ErrorBase.d.ts → ErrorBase4Xx.d.ts} +2 -1
  48. package/api/resources/preEncounter/resources/common/types/ExternalProvider.d.ts +1 -0
  49. package/api/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +2 -3
  50. package/api/resources/preEncounter/resources/common/types/index.d.ts +1 -2
  51. package/api/resources/preEncounter/resources/common/types/index.js +1 -2
  52. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
  53. package/api/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +3 -3
  54. package/api/resources/preEncounter/resources/coverages/resources/v1/client/update.d.ts +3 -3
  55. package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
  56. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.d.ts +2 -2
  57. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +4 -4
  58. package/api/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.d.ts +3 -3
  59. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +3 -3
  60. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +5 -2
  61. package/api/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +1 -0
  62. package/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +11 -0
  63. package/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.js +10 -0
  64. package/api/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +1 -0
  65. package/api/resources/preEncounter/resources/lists/resources/v1/types/index.js +1 -0
  66. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +177 -2
  67. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +246 -11
  68. package/api/resources/preEncounter/resources/patients/resources/v1/client/create.d.ts +1 -7
  69. package/api/resources/preEncounter/resources/patients/resources/v1/client/create.js +0 -11
  70. package/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +34 -0
  71. package/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +69 -0
  72. package/api/resources/preEncounter/resources/patients/resources/v1/client/deactivate.d.ts +3 -3
  73. package/api/resources/preEncounter/resources/patients/resources/v1/client/get.d.ts +3 -3
  74. package/api/resources/preEncounter/resources/patients/resources/v1/client/getHistory.d.ts +3 -3
  75. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  76. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  77. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +2 -1
  78. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +175 -0
  79. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/index.d.ts +1 -0
  80. package/api/resources/preEncounter/resources/patients/resources/v1/client/update.d.ts +3 -3
  81. package/api/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.d.ts +10 -0
  82. package/api/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.js +12 -0
  83. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  84. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.d.ts +8 -0
  85. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +2 -2
  86. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +2 -2
  87. package/api/resources/remitDrafts/index.d.ts +1 -0
  88. package/api/resources/remitDrafts/index.js +17 -0
  89. package/api/resources/remitDrafts/resources/index.d.ts +1 -0
  90. package/api/resources/remitDrafts/resources/index.js +27 -0
  91. package/api/resources/remitDrafts/resources/v1/index.d.ts +1 -0
  92. package/api/resources/remitDrafts/resources/v1/index.js +17 -0
  93. package/api/resources/remitDrafts/resources/v1/types/RemitDraftId.d.ts +8 -0
  94. package/api/resources/remitDrafts/resources/v1/types/RemitDraftId.js +10 -0
  95. package/api/resources/remitDrafts/resources/v1/types/index.d.ts +1 -0
  96. package/api/resources/remitDrafts/resources/v1/types/index.js +17 -0
  97. package/api/resources/serviceFacility/client/Client.js +1 -1
  98. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  99. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  100. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  101. package/api/resources/x12/resources/v1/types/Rarc.d.ts +8 -1
  102. package/api/resources/x12/resources/v1/types/Rarc.js +7 -0
  103. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  104. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  105. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  106. package/dist/api/resources/credentialing/resources/v2/client/Client.d.ts +1 -0
  107. package/dist/api/resources/credentialing/resources/v2/client/Client.js +11 -6
  108. package/dist/api/resources/credentialing/resources/v2/client/getAll.d.ts +7 -1
  109. package/dist/api/resources/credentialing/resources/v2/client/getAll.js +11 -0
  110. package/dist/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +7 -2
  111. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  112. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  113. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  114. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  115. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  116. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  117. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  118. package/dist/api/resources/exports/resources/v3/client/Client.d.ts +3 -2
  119. package/dist/api/resources/exports/resources/v3/client/Client.js +4 -3
  120. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  121. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  122. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  123. package/dist/api/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -1
  124. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  125. package/dist/api/resources/index.d.ts +1 -0
  126. package/dist/api/resources/index.js +2 -1
  127. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +2 -1
  128. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +5 -4
  129. package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
  130. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  131. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  132. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  133. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  134. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  135. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  136. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  137. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  138. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  139. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  140. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  141. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  142. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/create.d.ts +3 -3
  143. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.d.ts +3 -3
  144. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/get.d.ts +3 -3
  145. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.d.ts +3 -3
  146. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/update.d.ts +3 -3
  147. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.d.ts +2 -1
  148. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.js +1 -0
  149. package/dist/api/resources/preEncounter/resources/common/types/{ErrorBase.d.ts → ErrorBase4Xx.d.ts} +2 -1
  150. package/dist/api/resources/preEncounter/resources/common/types/ExternalProvider.d.ts +1 -0
  151. package/dist/api/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +2 -3
  152. package/dist/api/resources/preEncounter/resources/common/types/index.d.ts +1 -2
  153. package/dist/api/resources/preEncounter/resources/common/types/index.js +1 -2
  154. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
  155. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +3 -3
  156. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/update.d.ts +3 -3
  157. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
  158. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.d.ts +2 -2
  159. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +4 -4
  160. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.d.ts +3 -3
  161. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +3 -3
  162. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +5 -2
  163. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +1 -0
  164. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +11 -0
  165. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.js +10 -0
  166. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +1 -0
  167. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/index.js +1 -0
  168. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +177 -2
  169. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +246 -11
  170. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/create.d.ts +1 -7
  171. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/create.js +0 -11
  172. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +34 -0
  173. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +69 -0
  174. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/deactivate.d.ts +3 -3
  175. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/get.d.ts +3 -3
  176. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/getHistory.d.ts +3 -3
  177. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  178. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  179. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +2 -1
  180. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +175 -0
  181. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/index.d.ts +1 -0
  182. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/update.d.ts +3 -3
  183. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.d.ts +10 -0
  184. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.js +12 -0
  185. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  186. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.d.ts +8 -0
  187. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +2 -2
  188. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +2 -2
  189. package/dist/api/resources/remitDrafts/index.d.ts +1 -0
  190. package/dist/api/resources/remitDrafts/index.js +17 -0
  191. package/dist/api/resources/remitDrafts/resources/index.d.ts +1 -0
  192. package/dist/api/resources/remitDrafts/resources/index.js +27 -0
  193. package/dist/api/resources/remitDrafts/resources/v1/index.d.ts +1 -0
  194. package/dist/api/resources/remitDrafts/resources/v1/index.js +17 -0
  195. package/dist/api/resources/remitDrafts/resources/v1/types/RemitDraftId.d.ts +8 -0
  196. package/dist/api/resources/remitDrafts/resources/v1/types/RemitDraftId.js +10 -0
  197. package/dist/api/resources/remitDrafts/resources/v1/types/index.d.ts +1 -0
  198. package/dist/api/resources/remitDrafts/resources/v1/types/index.js +17 -0
  199. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  200. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  201. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  202. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  203. package/dist/api/resources/x12/resources/v1/types/Rarc.d.ts +8 -1
  204. package/dist/api/resources/x12/resources/v1/types/Rarc.js +7 -0
  205. package/dist/serialization/resources/credentialing/resources/v2/client/getAll.d.ts +6 -1
  206. package/dist/serialization/resources/credentialing/resources/v2/client/getAll.js +6 -0
  207. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -1
  208. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +1 -1
  209. package/dist/serialization/resources/index.d.ts +1 -0
  210. package/dist/serialization/resources/index.js +2 -1
  211. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +2 -0
  212. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +2 -0
  213. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/create.d.ts +2 -2
  214. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/create.js +2 -2
  215. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.d.ts +2 -2
  216. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.js +2 -2
  217. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/get.d.ts +2 -2
  218. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/get.js +2 -2
  219. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.d.ts +2 -2
  220. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.js +2 -2
  221. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/update.d.ts +2 -2
  222. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/update.js +2 -2
  223. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.d.ts +1 -1
  224. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.js +1 -1
  225. package/dist/serialization/resources/preEncounter/resources/common/types/{ErrorBase.d.ts → ErrorBase4Xx.d.ts} +3 -2
  226. package/dist/serialization/resources/preEncounter/resources/common/types/{ErrorBase.js → ErrorBase4Xx.js} +3 -2
  227. package/dist/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +3 -4
  228. package/dist/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.js +3 -4
  229. package/dist/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -2
  230. package/dist/serialization/resources/preEncounter/resources/common/types/index.js +1 -2
  231. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +2 -2
  232. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.js +2 -2
  233. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/update.d.ts +2 -2
  234. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/update.js +2 -2
  235. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
  236. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.js +1 -0
  237. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.d.ts +2 -2
  238. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.js +2 -2
  239. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +2 -0
  240. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.js +2 -0
  241. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +10 -0
  242. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.js +35 -0
  243. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +1 -0
  244. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.js +1 -0
  245. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/create.d.ts +1 -6
  246. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/create.js +0 -6
  247. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +20 -0
  248. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +67 -0
  249. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/deactivate.d.ts +2 -2
  250. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/deactivate.js +2 -2
  251. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/get.d.ts +2 -2
  252. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/get.js +2 -2
  253. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/getHistory.d.ts +2 -2
  254. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/getHistory.js +2 -2
  255. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  256. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  257. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/update.d.ts +2 -2
  258. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/update.js +2 -2
  259. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.d.ts +10 -0
  260. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.js +31 -0
  261. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  262. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +2 -0
  263. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.d.ts +13 -0
  264. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.js +36 -0
  265. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +2 -2
  266. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +2 -2
  267. package/dist/serialization/resources/remitDrafts/index.d.ts +1 -0
  268. package/dist/serialization/resources/remitDrafts/index.js +17 -0
  269. package/dist/serialization/resources/remitDrafts/resources/index.d.ts +1 -0
  270. package/dist/serialization/resources/remitDrafts/resources/index.js +27 -0
  271. package/dist/serialization/resources/remitDrafts/resources/v1/index.d.ts +1 -0
  272. package/dist/serialization/resources/remitDrafts/resources/v1/index.js +17 -0
  273. package/dist/serialization/resources/remitDrafts/resources/v1/types/RemitDraftId.d.ts +10 -0
  274. package/dist/serialization/resources/{preEncounter/resources/common/types/NotFoundErrorBody.js → remitDrafts/resources/v1/types/RemitDraftId.js} +6 -7
  275. package/dist/serialization/resources/remitDrafts/resources/v1/types/index.d.ts +1 -0
  276. package/dist/serialization/resources/remitDrafts/resources/v1/types/index.js +17 -0
  277. package/dist/serialization/resources/x12/resources/v1/types/Rarc.d.ts +1 -1
  278. package/dist/serialization/resources/x12/resources/v1/types/Rarc.js +7 -0
  279. package/package.json +1 -1
  280. package/reference.md +259 -4
  281. package/serialization/resources/credentialing/resources/v2/client/getAll.d.ts +6 -1
  282. package/serialization/resources/credentialing/resources/v2/client/getAll.js +6 -0
  283. package/serialization/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -1
  284. package/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +1 -1
  285. package/serialization/resources/index.d.ts +1 -0
  286. package/serialization/resources/index.js +2 -1
  287. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +2 -0
  288. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +2 -0
  289. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/create.d.ts +2 -2
  290. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/create.js +2 -2
  291. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.d.ts +2 -2
  292. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.js +2 -2
  293. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/get.d.ts +2 -2
  294. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/get.js +2 -2
  295. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.d.ts +2 -2
  296. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.js +2 -2
  297. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/update.d.ts +2 -2
  298. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/update.js +2 -2
  299. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.d.ts +1 -1
  300. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.js +1 -1
  301. package/serialization/resources/preEncounter/resources/common/types/{ErrorBase.d.ts → ErrorBase4Xx.d.ts} +3 -2
  302. package/serialization/resources/preEncounter/resources/common/types/{ErrorBase.js → ErrorBase4Xx.js} +3 -2
  303. package/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +3 -4
  304. package/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.js +3 -4
  305. package/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -2
  306. package/serialization/resources/preEncounter/resources/common/types/index.js +1 -2
  307. package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +2 -2
  308. package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.js +2 -2
  309. package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/update.d.ts +2 -2
  310. package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/update.js +2 -2
  311. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
  312. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.js +1 -0
  313. package/serialization/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.d.ts +2 -2
  314. package/serialization/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.js +2 -2
  315. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +2 -0
  316. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.js +2 -0
  317. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +10 -0
  318. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.js +35 -0
  319. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +1 -0
  320. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.js +1 -0
  321. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/create.d.ts +1 -6
  322. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/create.js +0 -6
  323. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +20 -0
  324. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +67 -0
  325. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/deactivate.d.ts +2 -2
  326. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/deactivate.js +2 -2
  327. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/get.d.ts +2 -2
  328. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/get.js +2 -2
  329. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/getHistory.d.ts +2 -2
  330. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/getHistory.js +2 -2
  331. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  332. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  333. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/update.d.ts +2 -2
  334. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/update.js +2 -2
  335. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.d.ts +10 -0
  336. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.js +31 -0
  337. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  338. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +2 -0
  339. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.d.ts +13 -0
  340. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.js +36 -0
  341. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +2 -2
  342. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +2 -2
  343. package/serialization/resources/remitDrafts/index.d.ts +1 -0
  344. package/serialization/resources/remitDrafts/index.js +17 -0
  345. package/serialization/resources/remitDrafts/resources/index.d.ts +1 -0
  346. package/serialization/resources/remitDrafts/resources/index.js +27 -0
  347. package/serialization/resources/remitDrafts/resources/v1/index.d.ts +1 -0
  348. package/serialization/resources/remitDrafts/resources/v1/index.js +17 -0
  349. package/serialization/resources/remitDrafts/resources/v1/types/RemitDraftId.d.ts +10 -0
  350. package/serialization/resources/{preEncounter/resources/common/types/NotFoundErrorBody.js → remitDrafts/resources/v1/types/RemitDraftId.js} +6 -7
  351. package/serialization/resources/remitDrafts/resources/v1/types/index.d.ts +1 -0
  352. package/serialization/resources/remitDrafts/resources/v1/types/index.js +17 -0
  353. package/serialization/resources/x12/resources/v1/types/Rarc.d.ts +1 -1
  354. package/serialization/resources/x12/resources/v1/types/Rarc.js +7 -0
  355. package/api/resources/preEncounter/resources/common/types/NotFoundErrorBody.d.ts +0 -7
  356. package/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.d.ts +0 -8
  357. package/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.d.ts +0 -8
  358. package/dist/api/resources/preEncounter/resources/common/types/NotFoundErrorBody.d.ts +0 -7
  359. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.d.ts +0 -8
  360. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.js +0 -5
  361. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.d.ts +0 -8
  362. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.js +0 -5
  363. package/dist/serialization/resources/preEncounter/resources/common/types/NotFoundErrorBody.d.ts +0 -13
  364. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.d.ts +0 -14
  365. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.js +0 -35
  366. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.d.ts +0 -15
  367. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.js +0 -38
  368. package/serialization/resources/preEncounter/resources/common/types/NotFoundErrorBody.d.ts +0 -13
  369. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.d.ts +0 -14
  370. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.js +0 -35
  371. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.d.ts +0 -15
  372. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.js +0 -38
  373. /package/api/resources/preEncounter/resources/common/types/{ErrorBase.js → ErrorBase4Xx.js} +0 -0
  374. /package/api/resources/preEncounter/resources/{common/types/NotFoundErrorBody.js → patients/resources/v1/client/requests/CreatePatientWithMrnRequest.js} +0 -0
  375. /package/api/resources/preEncounter/resources/patients/resources/v1/types/{PotentialDuplicatePatient.js → MutablePatientWithMrn.js} +0 -0
  376. /package/{api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.js → dist/api/resources/preEncounter/resources/common/types/ErrorBase4Xx.js} +0 -0
  377. /package/dist/api/resources/preEncounter/resources/{common/types/ErrorBase.js → patients/resources/v1/client/requests/CreatePatientWithMrnRequest.js} +0 -0
  378. /package/dist/api/resources/preEncounter/resources/{common/types/NotFoundErrorBody.js → patients/resources/v1/types/MutablePatientWithMrn.js} +0 -0
@@ -7,7 +7,7 @@ export declare type Error = CandidApi.preEncounter.coverages.v1.getHistory.Error
7
7
  export declare namespace Error {
8
8
  interface NotFoundError extends _Utils {
9
9
  errorName: "NotFoundError";
10
- content: CandidApi.preEncounter.NotFoundErrorBody;
10
+ content: CandidApi.preEncounter.ErrorBase4Xx;
11
11
  }
12
12
  interface _Unknown extends _Utils {
13
13
  errorName: void;
@@ -17,12 +17,12 @@ export declare namespace Error {
17
17
  _visit: <_Result>(visitor: CandidApi.preEncounter.coverages.v1.getHistory.Error._Visitor<_Result>) => _Result;
18
18
  }
19
19
  interface _Visitor<_Result> {
20
- notFoundError: (value: CandidApi.preEncounter.NotFoundErrorBody) => _Result;
20
+ notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
21
21
  _other: (value: core.Fetcher.Error) => _Result;
22
22
  }
23
23
  }
24
24
  export declare const Error: {
25
- readonly notFoundError: (value: CandidApi.preEncounter.NotFoundErrorBody) => CandidApi.preEncounter.coverages.v1.getHistory.Error.NotFoundError;
25
+ readonly notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.coverages.v1.getHistory.Error.NotFoundError;
26
26
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.coverages.v1.getHistory.Error._Unknown;
27
27
  readonly _visit: <_Result>(value: CandidApi.preEncounter.coverages.v1.getHistory.Error, visitor: CandidApi.preEncounter.coverages.v1.getHistory.Error._Visitor<_Result>) => _Result;
28
28
  };
@@ -7,7 +7,7 @@ export declare type Error = CandidApi.preEncounter.coverages.v1.update.Error.Not
7
7
  export declare namespace Error {
8
8
  interface NotFoundError extends _Utils {
9
9
  errorName: "NotFoundError";
10
- content: CandidApi.preEncounter.NotFoundErrorBody;
10
+ content: CandidApi.preEncounter.ErrorBase4Xx;
11
11
  }
12
12
  interface VersionConflictError extends _Utils {
13
13
  errorName: "VersionConflictError";
@@ -21,13 +21,13 @@ export declare namespace Error {
21
21
  _visit: <_Result>(visitor: CandidApi.preEncounter.coverages.v1.update.Error._Visitor<_Result>) => _Result;
22
22
  }
23
23
  interface _Visitor<_Result> {
24
- notFoundError: (value: CandidApi.preEncounter.NotFoundErrorBody) => _Result;
24
+ notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
25
25
  versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => _Result;
26
26
  _other: (value: core.Fetcher.Error) => _Result;
27
27
  }
28
28
  }
29
29
  export declare const Error: {
30
- readonly notFoundError: (value: CandidApi.preEncounter.NotFoundErrorBody) => CandidApi.preEncounter.coverages.v1.update.Error.NotFoundError;
30
+ readonly notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.coverages.v1.update.Error.NotFoundError;
31
31
  readonly versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => CandidApi.preEncounter.coverages.v1.update.Error.VersionConflictError;
32
32
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.coverages.v1.update.Error._Unknown;
33
33
  readonly _visit: <_Result>(value: CandidApi.preEncounter.coverages.v1.update.Error, visitor: CandidApi.preEncounter.coverages.v1.update.Error._Visitor<_Result>) => _Result;
@@ -5,4 +5,5 @@ import * as CandidApi from "../../../../../../../index";
5
5
  export interface CoverageBenefits {
6
6
  planCoverage?: CandidApi.preEncounter.coverages.v1.PlanCoverage;
7
7
  serviceSpecificCoverage?: CandidApi.preEncounter.coverages.v1.ServiceCoverage[];
8
+ notes?: string;
8
9
  }
@@ -31,7 +31,7 @@ export declare class V1 {
31
31
  * await client.preEncounter.lists.v1.getPatientList({
32
32
  * pageToken: CandidApi.preEncounter.PageToken("string"),
33
33
  * limit: 1,
34
- * sortField: "string",
34
+ * sortField: CandidApi.preEncounter.lists.v1.SortFieldString("string"),
35
35
  * sortDirection: CandidApi.preEncounter.SortDirection.Asc,
36
36
  * filters: CandidApi.preEncounter.lists.v1.FilterQueryString("string")
37
37
  * })
@@ -45,7 +45,7 @@ export declare class V1 {
45
45
  *
46
46
  * @example
47
47
  * await client.preEncounter.lists.v1.getAppointmentList({
48
- * sortField: "string",
48
+ * sortField: CandidApi.preEncounter.lists.v1.SortFieldString("string"),
49
49
  * sortDirection: CandidApi.preEncounter.SortDirection.Asc,
50
50
  * limit: 1,
51
51
  * pageToken: CandidApi.preEncounter.PageToken("string"),
@@ -58,7 +58,7 @@ class V1 {
58
58
  * await client.preEncounter.lists.v1.getPatientList({
59
59
  * pageToken: CandidApi.preEncounter.PageToken("string"),
60
60
  * limit: 1,
61
- * sortField: "string",
61
+ * sortField: CandidApi.preEncounter.lists.v1.SortFieldString("string"),
62
62
  * sortDirection: CandidApi.preEncounter.SortDirection.Asc,
63
63
  * filters: CandidApi.preEncounter.lists.v1.FilterQueryString("string")
64
64
  * })
@@ -91,7 +91,7 @@ class V1 {
91
91
  Authorization: yield this._getAuthorizationHeader(),
92
92
  "X-Fern-Language": "JavaScript",
93
93
  "X-Fern-SDK-Name": "candidhealth",
94
- "X-Fern-SDK-Version": "0.35.0",
94
+ "X-Fern-SDK-Version": "0.35.2",
95
95
  "X-Fern-Runtime": core.RUNTIME.type,
96
96
  "X-Fern-Runtime-Version": core.RUNTIME.version,
97
97
  },
@@ -141,7 +141,7 @@ class V1 {
141
141
  *
142
142
  * @example
143
143
  * await client.preEncounter.lists.v1.getAppointmentList({
144
- * sortField: "string",
144
+ * sortField: CandidApi.preEncounter.lists.v1.SortFieldString("string"),
145
145
  * sortDirection: CandidApi.preEncounter.SortDirection.Asc,
146
146
  * limit: 1,
147
147
  * pageToken: CandidApi.preEncounter.PageToken("string"),
@@ -176,7 +176,7 @@ class V1 {
176
176
  Authorization: yield this._getAuthorizationHeader(),
177
177
  "X-Fern-Language": "JavaScript",
178
178
  "X-Fern-SDK-Name": "candidhealth",
179
- "X-Fern-SDK-Version": "0.35.0",
179
+ "X-Fern-SDK-Version": "0.35.2",
180
180
  "X-Fern-Runtime": core.RUNTIME.type,
181
181
  "X-Fern-Runtime-Version": core.RUNTIME.version,
182
182
  },
@@ -7,7 +7,7 @@ export declare type Error = CandidApi.preEncounter.lists.v1.getPatientList.Error
7
7
  export declare namespace Error {
8
8
  interface BadRequestError extends _Utils {
9
9
  errorName: "BadRequestError";
10
- content: CandidApi.preEncounter.ErrorBase;
10
+ content: CandidApi.preEncounter.ErrorBase4Xx;
11
11
  }
12
12
  interface _Unknown extends _Utils {
13
13
  errorName: void;
@@ -17,12 +17,12 @@ export declare namespace Error {
17
17
  _visit: <_Result>(visitor: CandidApi.preEncounter.lists.v1.getPatientList.Error._Visitor<_Result>) => _Result;
18
18
  }
19
19
  interface _Visitor<_Result> {
20
- badRequestError: (value: CandidApi.preEncounter.ErrorBase) => _Result;
20
+ badRequestError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
21
21
  _other: (value: core.Fetcher.Error) => _Result;
22
22
  }
23
23
  }
24
24
  export declare const Error: {
25
- readonly badRequestError: (value: CandidApi.preEncounter.ErrorBase) => CandidApi.preEncounter.lists.v1.getPatientList.Error.BadRequestError;
25
+ readonly badRequestError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.lists.v1.getPatientList.Error.BadRequestError;
26
26
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.lists.v1.getPatientList.Error._Unknown;
27
27
  readonly _visit: <_Result>(value: CandidApi.preEncounter.lists.v1.getPatientList.Error, visitor: CandidApi.preEncounter.lists.v1.getPatientList.Error._Visitor<_Result>) => _Result;
28
28
  };
@@ -5,7 +5,7 @@ import * as CandidApi from "../../../../../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * sortField: "string",
8
+ * sortField: CandidApi.preEncounter.lists.v1.SortFieldString("string"),
9
9
  * sortDirection: CandidApi.preEncounter.SortDirection.Asc,
10
10
  * limit: 1,
11
11
  * pageToken: CandidApi.preEncounter.PageToken("string"),
@@ -14,9 +14,9 @@ import * as CandidApi from "../../../../../../../../index";
14
14
  */
15
15
  export interface AppointmentsGetListRequest {
16
16
  /**
17
- * The string path to the field to order by. Defaults to appointment.startTimestamp. Path values are camelCase.
17
+ * Defaults to appointment.startTimestamp.
18
18
  */
19
- sortField?: string;
19
+ sortField?: CandidApi.preEncounter.lists.v1.SortFieldString;
20
20
  /**
21
21
  * Defaults to asc.
22
22
  */
@@ -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. BadRequestError 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>>;