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
package/reference.md CHANGED
@@ -3586,8 +3586,9 @@ of Candid Health's export files be resilient to the addition of new columns at t
3586
3586
 
3587
3587
  **SLA guarantees:** Files for a given date are guaranteed to be available after 3 business days. For example, Friday's file will be
3588
3588
  available by Wednesday at the latest. If file generation is still in progress upon request before 3 business days have passed, the
3589
- caller will receive a 422 response. If the file has already been generated, it will be served. Please email
3590
- our [Support team](mailto:support@joincandidhealth.com) with any data requests outside of these stated guarantees.
3589
+ caller will receive a 422 response. If the file has already been generated, it will be served. Historic files should be available
3590
+ up to 90 days in the past by default. Please email our [Support team](mailto:support@joincandidhealth.com) with any data requests
3591
+ outside of these stated guarantees.
3591
3592
 
3592
3593
  </dd>
3593
3594
  </dl>
@@ -5078,6 +5079,7 @@ await client.insuranceAdjudications.v1.create({
5078
5079
  },
5079
5080
  ],
5080
5081
  },
5082
+ remitDraftId: CandidApi.RemitDraftId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
5081
5083
  });
5082
5084
  ```
5083
5085
 
@@ -10415,7 +10417,7 @@ Gets patients with dependent objects for patients that match the query parameter
10415
10417
  await client.preEncounter.lists.v1.getPatientList({
10416
10418
  pageToken: CandidApi.PageToken("string"),
10417
10419
  limit: 1,
10418
- sortField: "string",
10420
+ sortField: CandidApi.SortFieldString("string"),
10419
10421
  sortDirection: CandidApi.SortDirection.Asc,
10420
10422
  filters: CandidApi.FilterQueryString("string"),
10421
10423
  });
@@ -10482,7 +10484,7 @@ Searches for appointments that match the query parameters.
10482
10484
 
10483
10485
  ```typescript
10484
10486
  await client.preEncounter.lists.v1.getAppointmentList({
10485
- sortField: "string",
10487
+ sortField: CandidApi.SortFieldString("string"),
10486
10488
  sortDirection: CandidApi.SortDirection.Asc,
10487
10489
  limit: 1,
10488
10490
  pageToken: CandidApi.PageToken("string"),
@@ -10736,6 +10738,7 @@ await client.preEncounter.patients.v1.create({
10736
10738
  },
10737
10739
  ],
10738
10740
  primaryServiceFacilityId: "string",
10741
+ doNotInvoiceReason: CandidApi.DoNotInvoiceReason.Bankruptcy,
10739
10742
  },
10740
10743
  });
10741
10744
  ```
@@ -10772,6 +10775,256 @@ await client.preEncounter.patients.v1.create({
10772
10775
  </dl>
10773
10776
  </details>
10774
10777
 
10778
+ <details><summary><code>client.preEncounter.patients.v1.<a href="/src/api/resources/preEncounter/resources/patients/resources/v1/client/Client.ts">createWithMrn</a>({ ...params }) -> core.APIResponse<CandidApi.Patient, CandidApi.preEncounter.patients.v1.createWithMrn.Error></code></summary>
10779
+ <dl>
10780
+ <dd>
10781
+
10782
+ #### 📝 Description
10783
+
10784
+ <dl>
10785
+ <dd>
10786
+
10787
+ <dl>
10788
+ <dd>
10789
+
10790
+ 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.
10791
+
10792
+ </dd>
10793
+ </dl>
10794
+ </dd>
10795
+ </dl>
10796
+
10797
+ #### 🔌 Usage
10798
+
10799
+ <dl>
10800
+ <dd>
10801
+
10802
+ <dl>
10803
+ <dd>
10804
+
10805
+ ```typescript
10806
+ await client.preEncounter.patients.v1.createWithMrn({
10807
+ skipDuplicateCheck: true,
10808
+ body: {
10809
+ mrn: "string",
10810
+ name: {
10811
+ family: "string",
10812
+ given: ["string"],
10813
+ use: CandidApi.NameUse.Usual,
10814
+ period: {},
10815
+ },
10816
+ otherNames: [
10817
+ {
10818
+ family: "string",
10819
+ given: ["string"],
10820
+ use: CandidApi.NameUse.Usual,
10821
+ period: {},
10822
+ },
10823
+ ],
10824
+ gender: CandidApi.Gender.Man,
10825
+ birthDate: "2023-01-15",
10826
+ socialSecurityNumber: "string",
10827
+ biologicalSex: CandidApi.Sex.Female,
10828
+ sexualOrientation: CandidApi.SexualOrientation.Heterosexual,
10829
+ race: CandidApi.Race.AmericanIndianOrAlaskaNative,
10830
+ ethnicity: CandidApi.Ethnicity.HispanicOrLatino,
10831
+ disabilityStatus: CandidApi.DisabilityStatus.Disabled,
10832
+ maritalStatus: CandidApi.MaritalStatus.Annulled,
10833
+ deceased: new Date("2024-01-15T09:30:00.000Z"),
10834
+ multipleBirth: 1,
10835
+ primaryAddress: {
10836
+ use: CandidApi.AddressUse.Home,
10837
+ line: ["string"],
10838
+ city: "string",
10839
+ state: "string",
10840
+ postalCode: "string",
10841
+ country: "string",
10842
+ period: {},
10843
+ },
10844
+ otherAddresses: [
10845
+ {
10846
+ use: CandidApi.AddressUse.Home,
10847
+ line: ["string"],
10848
+ city: "string",
10849
+ state: "string",
10850
+ postalCode: "string",
10851
+ country: "string",
10852
+ period: {},
10853
+ },
10854
+ ],
10855
+ primaryTelecom: {
10856
+ value: "string",
10857
+ use: CandidApi.ContactPointUse.Home,
10858
+ },
10859
+ otherTelecoms: [
10860
+ {
10861
+ value: "string",
10862
+ use: CandidApi.ContactPointUse.Home,
10863
+ },
10864
+ ],
10865
+ email: "string",
10866
+ electronicCommunicationOptIn: true,
10867
+ photo: "string",
10868
+ language: "string",
10869
+ externalProvenance: {
10870
+ externalId: "string",
10871
+ systemName: "string",
10872
+ },
10873
+ contacts: [
10874
+ {
10875
+ relationship: [CandidApi.Relationship.Self],
10876
+ name: {
10877
+ family: "string",
10878
+ given: ["string"],
10879
+ use: CandidApi.NameUse.Usual,
10880
+ period: {},
10881
+ },
10882
+ telecoms: [
10883
+ {
10884
+ value: "string",
10885
+ use: CandidApi.ContactPointUse.Home,
10886
+ },
10887
+ ],
10888
+ addresses: [
10889
+ {
10890
+ use: CandidApi.AddressUse.Home,
10891
+ line: ["string"],
10892
+ city: "string",
10893
+ state: "string",
10894
+ postalCode: "string",
10895
+ country: "string",
10896
+ period: {},
10897
+ },
10898
+ ],
10899
+ period: {},
10900
+ hipaaAuthorization: true,
10901
+ },
10902
+ ],
10903
+ generalPractitioners: [
10904
+ {
10905
+ name: {
10906
+ family: "string",
10907
+ given: ["string"],
10908
+ use: CandidApi.NameUse.Usual,
10909
+ period: {},
10910
+ },
10911
+ type: CandidApi.ExternalProviderType.Primary,
10912
+ npi: "string",
10913
+ telecoms: [
10914
+ {
10915
+ value: "string",
10916
+ use: CandidApi.ContactPointUse.Home,
10917
+ },
10918
+ ],
10919
+ addresses: [],
10920
+ period: {},
10921
+ canonicalId: CandidApi.CanonicalProviderId("string"),
10922
+ },
10923
+ ],
10924
+ filingOrder: {
10925
+ coverages: [CandidApi.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
10926
+ },
10927
+ nonInsurancePayers: [CandidApi.CanonicalNonInsurancePayerId("string")],
10928
+ nonInsurancePayerAssociations: [
10929
+ {
10930
+ id: CandidApi.CanonicalNonInsurancePayerId("string"),
10931
+ },
10932
+ ],
10933
+ guarantor: {
10934
+ name: {
10935
+ family: "string",
10936
+ given: ["string"],
10937
+ use: CandidApi.NameUse.Usual,
10938
+ period: {},
10939
+ },
10940
+ telecom: {
10941
+ value: "string",
10942
+ use: CandidApi.ContactPointUse.Home,
10943
+ },
10944
+ email: "string",
10945
+ birthDate: "2023-01-15",
10946
+ address: {
10947
+ use: CandidApi.AddressUse.Home,
10948
+ line: ["string"],
10949
+ city: "string",
10950
+ state: "string",
10951
+ postalCode: "string",
10952
+ country: "string",
10953
+ period: {},
10954
+ },
10955
+ },
10956
+ selfPay: true,
10957
+ authorizations: [
10958
+ {
10959
+ payerId: CandidApi.PayerId("string"),
10960
+ payerName: "string",
10961
+ authorizationNumber: "string",
10962
+ cptCode: "string",
10963
+ units: CandidApi.AuthorizationUnit.Visit,
10964
+ },
10965
+ ],
10966
+ referrals: [
10967
+ {
10968
+ provider: {
10969
+ name: {
10970
+ family: "string",
10971
+ given: ["string"],
10972
+ use: CandidApi.NameUse.Usual,
10973
+ period: {},
10974
+ },
10975
+ type: CandidApi.ExternalProviderType.Primary,
10976
+ npi: "string",
10977
+ telecoms: [
10978
+ {
10979
+ value: "string",
10980
+ use: CandidApi.ContactPointUse.Home,
10981
+ },
10982
+ ],
10983
+ addresses: [],
10984
+ period: {},
10985
+ canonicalId: CandidApi.CanonicalProviderId("string"),
10986
+ },
10987
+ referralNumber: "string",
10988
+ },
10989
+ ],
10990
+ primaryServiceFacilityId: "string",
10991
+ doNotInvoiceReason: CandidApi.DoNotInvoiceReason.Bankruptcy,
10992
+ },
10993
+ });
10994
+ ```
10995
+
10996
+ </dd>
10997
+ </dl>
10998
+ </dd>
10999
+ </dl>
11000
+
11001
+ #### ⚙️ Parameters
11002
+
11003
+ <dl>
11004
+ <dd>
11005
+
11006
+ <dl>
11007
+ <dd>
11008
+
11009
+ **request:** `CandidApi.preEncounter.patients.v1.CreatePatientWithMrnRequest`
11010
+
11011
+ </dd>
11012
+ </dl>
11013
+
11014
+ <dl>
11015
+ <dd>
11016
+
11017
+ **requestOptions:** `V1.RequestOptions`
11018
+
11019
+ </dd>
11020
+ </dl>
11021
+ </dd>
11022
+ </dl>
11023
+
11024
+ </dd>
11025
+ </dl>
11026
+ </details>
11027
+
10775
11028
  <details><summary><code>client.preEncounter.patients.v1.<a href="/src/api/resources/preEncounter/resources/patients/resources/v1/client/Client.ts">getMulti</a>({ ...params }) -> core.APIResponse<CandidApi.PatientPage, CandidApi.preEncounter.patients.v1.getMulti.Error></code></summary>
10776
11029
  <dl>
10777
11030
  <dd>
@@ -11177,6 +11430,7 @@ await client.preEncounter.patients.v1.update(CandidApi.PatientId("string"), "str
11177
11430
  },
11178
11431
  ],
11179
11432
  primaryServiceFacilityId: "string",
11433
+ doNotInvoiceReason: CandidApi.DoNotInvoiceReason.Bankruptcy,
11180
11434
  });
11181
11435
  ```
11182
11436
 
@@ -12,6 +12,6 @@ export declare namespace GuarantorBase {
12
12
  last_name: string;
13
13
  external_id: string;
14
14
  date_of_birth?: string | null;
15
- address?: StreetAddressShortZip.Raw | null;
15
+ address: StreetAddressShortZip.Raw;
16
16
  }
17
17
  }
@@ -34,5 +34,5 @@ exports.GuarantorBase = core.serialization.object({
34
34
  lastName: core.serialization.property("last_name", core.serialization.string()),
35
35
  externalId: core.serialization.property("external_id", core.serialization.string()),
36
36
  dateOfBirth: core.serialization.property("date_of_birth", core.serialization.string().optional()),
37
- address: StreetAddressShortZip_1.StreetAddressShortZip.optional(),
37
+ address: StreetAddressShortZip_1.StreetAddressShortZip,
38
38
  });
@@ -28,6 +28,7 @@ export * as organizationProviders from "./organizationProviders";
28
28
  export * as patientPayments from "./patientPayments";
29
29
  export * as patientRefunds from "./patientRefunds";
30
30
  export * as payers from "./payers";
31
+ export * as remitDrafts from "./remitDrafts";
31
32
  export * as remits from "./remits";
32
33
  export * as serviceLines from "./serviceLines";
33
34
  export * as tasks from "./tasks";
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.eligibility = exports.tags = exports.serviceFacility = exports.paymentAccountConfigs = exports.individual = exports.identifiers = exports.financials = exports.era = exports.eraCommons = exports.diagnoses = exports.claims = exports.preEncounter = exports.x12 = exports.writeOffs = exports.tasks = exports.serviceLines = exports.remits = exports.payers = exports.patientRefunds = exports.patientPayments = exports.organizationProviders = exports.organizationServiceFacilities = exports.nonInsurancePayers = exports.nonInsurancePayerRefunds = exports.nonInsurancePayerPayments = exports.medicationDispense = exports.invoices = exports.insuranceRefunds = exports.insurancePayments = exports.insuranceCards = exports.insuranceAdjudications = exports.importInvoice = exports.guarantor = exports.externalPaymentAccountConfig = exports.exports = exports.expectedNetworkStatus = exports.encounters = exports.encounterProviders = exports.customSchemas = exports.credentialing = exports.contracts = exports.claimSubmission = exports.billingNotes = exports.auth = exports.commons = exports.feeSchedules = void 0;
29
+ exports.eligibility = exports.tags = exports.serviceFacility = exports.paymentAccountConfigs = exports.individual = exports.identifiers = exports.financials = exports.era = exports.eraCommons = exports.diagnoses = exports.claims = exports.preEncounter = exports.x12 = exports.writeOffs = exports.tasks = exports.serviceLines = exports.remits = exports.remitDrafts = exports.payers = exports.patientRefunds = exports.patientPayments = exports.organizationProviders = exports.organizationServiceFacilities = exports.nonInsurancePayers = exports.nonInsurancePayerRefunds = exports.nonInsurancePayerPayments = exports.medicationDispense = exports.invoices = exports.insuranceRefunds = exports.insurancePayments = exports.insuranceCards = exports.insuranceAdjudications = exports.importInvoice = exports.guarantor = exports.externalPaymentAccountConfig = exports.exports = exports.expectedNetworkStatus = exports.encounters = exports.encounterProviders = exports.customSchemas = exports.credentialing = exports.contracts = exports.claimSubmission = exports.billingNotes = exports.auth = exports.commons = exports.feeSchedules = void 0;
30
30
  exports.feeSchedules = __importStar(require("./feeSchedules"));
31
31
  exports.commons = __importStar(require("./commons"));
32
32
  __exportStar(require("./commons/errors"), exports);
@@ -57,6 +57,7 @@ exports.organizationProviders = __importStar(require("./organizationProviders"))
57
57
  exports.patientPayments = __importStar(require("./patientPayments"));
58
58
  exports.patientRefunds = __importStar(require("./patientRefunds"));
59
59
  exports.payers = __importStar(require("./payers"));
60
+ exports.remitDrafts = __importStar(require("./remitDrafts"));
60
61
  exports.remits = __importStar(require("./remits"));
61
62
  exports.serviceLines = __importStar(require("./serviceLines"));
62
63
  exports.tasks = __importStar(require("./tasks"));
@@ -8,6 +8,7 @@ import { PayerIdentifier } from "../../../../payers/resources/v3/types/PayerIden
8
8
  import { Payee } from "../../../../remits/resources/v1/types/Payee";
9
9
  import { ClaimId } from "../../../../commons/types/ClaimId";
10
10
  import { ClaimAdjudicationCreate } from "./ClaimAdjudicationCreate";
11
+ import { RemitDraftId } from "../../../../remitDrafts/resources/v1/types/RemitDraftId";
11
12
  export declare const InsuranceAdjudicationCreate: core.serialization.ObjectSchema<serializers.insuranceAdjudications.v1.InsuranceAdjudicationCreate.Raw, CandidApi.insuranceAdjudications.v1.InsuranceAdjudicationCreate>;
12
13
  export declare namespace InsuranceAdjudicationCreate {
13
14
  interface Raw {
@@ -18,5 +19,6 @@ export declare namespace InsuranceAdjudicationCreate {
18
19
  check_date: string;
19
20
  note?: string | null;
20
21
  claims: Record<ClaimId.Raw, ClaimAdjudicationCreate.Raw[]>;
22
+ remit_draft_id?: RemitDraftId.Raw | null;
21
23
  }
22
24
  }
@@ -32,6 +32,7 @@ const PayerIdentifier_1 = require("../../../../payers/resources/v3/types/PayerId
32
32
  const Payee_1 = require("../../../../remits/resources/v1/types/Payee");
33
33
  const ClaimId_1 = require("../../../../commons/types/ClaimId");
34
34
  const ClaimAdjudicationCreate_1 = require("./ClaimAdjudicationCreate");
35
+ const RemitDraftId_1 = require("../../../../remitDrafts/resources/v1/types/RemitDraftId");
35
36
  exports.InsuranceAdjudicationCreate = core.serialization.object({
36
37
  payerIdentifier: core.serialization.property("payer_identifier", PayerIdentifier_1.PayerIdentifier),
37
38
  payee: Payee_1.Payee,
@@ -40,4 +41,5 @@ exports.InsuranceAdjudicationCreate = core.serialization.object({
40
41
  checkDate: core.serialization.property("check_date", core.serialization.string()),
41
42
  note: core.serialization.string().optional(),
42
43
  claims: core.serialization.record(ClaimId_1.ClaimId, core.serialization.list(ClaimAdjudicationCreate_1.ClaimAdjudicationCreate)),
44
+ remitDraftId: core.serialization.property("remit_draft_id", RemitDraftId_1.RemitDraftId.optional()),
43
45
  });
@@ -6,5 +6,5 @@ import * as CandidApi from "../../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../../core";
7
7
  export declare const AppointmentWorkQueue: core.serialization.Schema<serializers.preEncounter.appointments.v1.AppointmentWorkQueue.Raw, CandidApi.preEncounter.appointments.v1.AppointmentWorkQueue>;
8
8
  export declare namespace AppointmentWorkQueue {
9
- type Raw = "EMERGENT_ISSUE" | "NEW_PATIENT" | "RETURNING_PATIENT";
9
+ type Raw = "EMERGENT_ISSUE" | "NEW_PATIENT" | "RETURNING_PATIENT" | "MANUAL_ESCALATION";
10
10
  }
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.AppointmentWorkQueue = void 0;
30
30
  const core = __importStar(require("../../../../../../../../core"));
31
- exports.AppointmentWorkQueue = core.serialization.enum_(["EMERGENT_ISSUE", "NEW_PATIENT", "RETURNING_PATIENT"]);
31
+ exports.AppointmentWorkQueue = core.serialization.enum_(["EMERGENT_ISSUE", "NEW_PATIENT", "RETURNING_PATIENT", "MANUAL_ESCALATION"]);
@@ -11,5 +11,6 @@ export declare namespace CoverageBenefits {
11
11
  interface Raw {
12
12
  plan_coverage?: PlanCoverage.Raw | null;
13
13
  service_specific_coverage?: ServiceCoverage.Raw[] | null;
14
+ notes?: string | null;
14
15
  }
15
16
  }
@@ -33,4 +33,5 @@ const ServiceCoverage_1 = require("./ServiceCoverage");
33
33
  exports.CoverageBenefits = core.serialization.object({
34
34
  planCoverage: core.serialization.property("plan_coverage", PlanCoverage_1.PlanCoverage.optional()),
35
35
  serviceSpecificCoverage: core.serialization.property("service_specific_coverage", core.serialization.list(ServiceCoverage_1.ServiceCoverage).optional()),
36
+ notes: core.serialization.string().optional(),
36
37
  });
@@ -7,11 +7,13 @@ import * as core from "../../../../../../../../core";
7
7
  import { Appointment } from "../../../../appointments/resources/v1/types/Appointment";
8
8
  import { MutablePatient } from "../../../../patients/resources/v1/types/MutablePatient";
9
9
  import { MutableCoverage } from "../../../../coverages/resources/v1/types/MutableCoverage";
10
+ import { UniversalServiceIdentifier } from "../../../../appointments/resources/v1/types/UniversalServiceIdentifier";
10
11
  export declare const AppointmentListItem: core.serialization.ObjectSchema<serializers.preEncounter.lists.v1.AppointmentListItem.Raw, CandidApi.preEncounter.lists.v1.AppointmentListItem>;
11
12
  export declare namespace AppointmentListItem {
12
13
  interface Raw {
13
14
  appointment: Appointment.Raw;
14
15
  patient: MutablePatient.Raw;
15
16
  primary_coverage?: MutableCoverage.Raw | null;
17
+ primary_service_type?: UniversalServiceIdentifier.Raw | null;
16
18
  }
17
19
  }
@@ -31,8 +31,10 @@ const core = __importStar(require("../../../../../../../../core"));
31
31
  const Appointment_1 = require("../../../../appointments/resources/v1/types/Appointment");
32
32
  const MutablePatient_1 = require("../../../../patients/resources/v1/types/MutablePatient");
33
33
  const MutableCoverage_1 = require("../../../../coverages/resources/v1/types/MutableCoverage");
34
+ const UniversalServiceIdentifier_1 = require("../../../../appointments/resources/v1/types/UniversalServiceIdentifier");
34
35
  exports.AppointmentListItem = core.serialization.object({
35
36
  appointment: Appointment_1.Appointment,
36
37
  patient: MutablePatient_1.MutablePatient,
37
38
  primaryCoverage: core.serialization.property("primary_coverage", MutableCoverage_1.MutableCoverage.optional()),
39
+ primaryServiceType: core.serialization.property("primary_service_type", UniversalServiceIdentifier_1.UniversalServiceIdentifier.optional()),
38
40
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../index";
5
+ import * as CandidApi from "../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../core";
7
+ export declare const SortFieldString: core.serialization.Schema<serializers.preEncounter.lists.v1.SortFieldString.Raw, CandidApi.preEncounter.lists.v1.SortFieldString>;
8
+ export declare namespace SortFieldString {
9
+ type Raw = string;
10
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SortFieldString = void 0;
30
+ const CandidApi = __importStar(require("../../../../../../../../api/index"));
31
+ const core = __importStar(require("../../../../../../../../core"));
32
+ exports.SortFieldString = core.serialization.string().transform({
33
+ transform: CandidApi.preEncounter.lists.v1.SortFieldString,
34
+ untransform: (value) => value,
35
+ });
@@ -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);
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../index";
5
+ import * as CandidApi from "../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../core";
7
+ import { VersionConflictErrorBody } from "../../../../common/types/VersionConflictErrorBody";
8
+ import { PotentialDuplicatePatientsErrorBody } from "../types/PotentialDuplicatePatientsErrorBody";
9
+ import { InvalidMrnErrorBody } from "../types/InvalidMrnErrorBody";
10
+ export declare const Error: core.serialization.Schema<serializers.preEncounter.patients.v1.createWithMrn.Error.Raw, CandidApi.preEncounter.patients.v1.createWithMrn.Error>;
11
+ export declare namespace Error {
12
+ type Raw = Error.VersionConflictError | Error.PotentialDuplicatePatients | Error.InvalidMrnError;
13
+ interface VersionConflictError {
14
+ errorName: "VersionConflictError";
15
+ content: VersionConflictErrorBody.Raw;
16
+ }
17
+ interface PotentialDuplicatePatients {
18
+ errorName: "PotentialDuplicatePatients";
19
+ content: PotentialDuplicatePatientsErrorBody.Raw;
20
+ }
21
+ interface InvalidMrnError {
22
+ errorName: "InvalidMRNError";
23
+ content: InvalidMrnErrorBody.Raw;
24
+ }
25
+ }
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __rest = (this && this.__rest) || function (s, e) {
29
+ var t = {};
30
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
31
+ t[p] = s[p];
32
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
33
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
34
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
35
+ t[p[i]] = s[p[i]];
36
+ }
37
+ return t;
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ exports.Error = void 0;
41
+ const CandidApi = __importStar(require("../../../../../../../../api/index"));
42
+ const core = __importStar(require("../../../../../../../../core"));
43
+ const VersionConflictErrorBody_1 = require("../../../../common/types/VersionConflictErrorBody");
44
+ const PotentialDuplicatePatientsErrorBody_1 = require("../types/PotentialDuplicatePatientsErrorBody");
45
+ const InvalidMrnErrorBody_1 = require("../types/InvalidMrnErrorBody");
46
+ exports.Error = core.serialization
47
+ .union("errorName", {
48
+ VersionConflictError: core.serialization.object({
49
+ content: VersionConflictErrorBody_1.VersionConflictErrorBody,
50
+ }),
51
+ PotentialDuplicatePatients: core.serialization.object({
52
+ content: PotentialDuplicatePatientsErrorBody_1.PotentialDuplicatePatientsErrorBody,
53
+ }),
54
+ InvalidMRNError: core.serialization.object({
55
+ content: InvalidMrnErrorBody_1.InvalidMrnErrorBody,
56
+ }),
57
+ })
58
+ .transform({
59
+ transform: (value) => {
60
+ switch (value.errorName) {
61
+ case "VersionConflictError":
62
+ return CandidApi.preEncounter.patients.v1.createWithMrn.Error.versionConflictError(value.content);
63
+ case "PotentialDuplicatePatients":
64
+ return CandidApi.preEncounter.patients.v1.createWithMrn.Error.potentialDuplicatePatients(value.content);
65
+ case "InvalidMRNError":
66
+ return CandidApi.preEncounter.patients.v1.createWithMrn.Error.invalidMrnError(value.content);
67
+ }
68
+ },
69
+ untransform: (_a) => {
70
+ var { _visit } = _a, value = __rest(_a, ["_visit"]);
71
+ return value;
72
+ },
73
+ });
@@ -1,4 +1,5 @@
1
1
  export * as create from "./create";
2
+ export * as createWithMrn from "./createWithMrn";
2
3
  export * as get from "./get";
3
4
  export * as getHistory from "./getHistory";
4
5
  export * as update from "./update";
@@ -23,8 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.scan = exports.search = exports.deactivate = exports.update = exports.getHistory = exports.get = exports.create = void 0;
26
+ exports.scan = exports.search = exports.deactivate = exports.update = exports.getHistory = exports.get = exports.createWithMrn = exports.create = void 0;
27
27
  exports.create = __importStar(require("./create"));
28
+ exports.createWithMrn = __importStar(require("./createWithMrn"));
28
29
  exports.get = __importStar(require("./get"));
29
30
  exports.getHistory = __importStar(require("./getHistory"));
30
31
  exports.update = __importStar(require("./update"));
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../index";
5
+ import * as CandidApi from "../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../core";
7
+ export declare const DoNotInvoiceReason: core.serialization.Schema<serializers.preEncounter.patients.v1.DoNotInvoiceReason.Raw, CandidApi.preEncounter.patients.v1.DoNotInvoiceReason>;
8
+ export declare namespace DoNotInvoiceReason {
9
+ type Raw = "BANKRUPTCY" | "DECEASED" | "HARDSHIP" | "OTHER";
10
+ }