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
@@ -214,7 +214,8 @@ class V1 {
214
214
  * },
215
215
  * referralNumber: "string"
216
216
  * }],
217
- * primaryServiceFacilityId: "string"
217
+ * primaryServiceFacilityId: "string",
218
+ * doNotInvoiceReason: CandidApi.preEncounter.patients.v1.DoNotInvoiceReason.Bankruptcy
218
219
  * }
219
220
  * })
220
221
  */
@@ -234,7 +235,7 @@ class V1 {
234
235
  Authorization: yield this._getAuthorizationHeader(),
235
236
  "X-Fern-Language": "JavaScript",
236
237
  "X-Fern-SDK-Name": "candidhealth",
237
- "X-Fern-SDK-Version": "0.35.0",
238
+ "X-Fern-SDK-Version": "0.35.1",
238
239
  "X-Fern-Runtime": core.RUNTIME.type,
239
240
  "X-Fern-Runtime-Version": core.RUNTIME.version,
240
241
  },
@@ -280,6 +281,241 @@ class V1 {
280
281
  };
281
282
  });
282
283
  }
284
+ /**
285
+ * Adds a patient and hydrates their MRN with a pre-existing MRN. Once this patient is created their MRN will not be editable. InvalidMRNError is returned when the MRN is greater than 20 characters. VersionConflictError is returned when the patient's external ID is already in use.
286
+ *
287
+ * @param {CandidApi.preEncounter.patients.v1.CreatePatientWithMrnRequest} request
288
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
289
+ *
290
+ * @example
291
+ * await client.preEncounter.patients.v1.createWithMrn({
292
+ * skipDuplicateCheck: true,
293
+ * body: {
294
+ * mrn: "string",
295
+ * name: {
296
+ * family: "string",
297
+ * given: ["string"],
298
+ * use: CandidApi.preEncounter.NameUse.Usual,
299
+ * period: {}
300
+ * },
301
+ * otherNames: [{
302
+ * family: "string",
303
+ * given: ["string"],
304
+ * use: CandidApi.preEncounter.NameUse.Usual,
305
+ * period: {}
306
+ * }],
307
+ * gender: CandidApi.preEncounter.Gender.Man,
308
+ * birthDate: "2023-01-15",
309
+ * socialSecurityNumber: "string",
310
+ * biologicalSex: CandidApi.preEncounter.Sex.Female,
311
+ * sexualOrientation: CandidApi.preEncounter.SexualOrientation.Heterosexual,
312
+ * race: CandidApi.preEncounter.Race.AmericanIndianOrAlaskaNative,
313
+ * ethnicity: CandidApi.preEncounter.Ethnicity.HispanicOrLatino,
314
+ * disabilityStatus: CandidApi.preEncounter.DisabilityStatus.Disabled,
315
+ * maritalStatus: CandidApi.preEncounter.patients.v1.MaritalStatus.Annulled,
316
+ * deceased: new Date("2024-01-15T09:30:00.000Z"),
317
+ * multipleBirth: 1,
318
+ * primaryAddress: {
319
+ * use: CandidApi.preEncounter.AddressUse.Home,
320
+ * line: ["string"],
321
+ * city: "string",
322
+ * state: "string",
323
+ * postalCode: "string",
324
+ * country: "string",
325
+ * period: {}
326
+ * },
327
+ * otherAddresses: [{
328
+ * use: CandidApi.preEncounter.AddressUse.Home,
329
+ * line: ["string"],
330
+ * city: "string",
331
+ * state: "string",
332
+ * postalCode: "string",
333
+ * country: "string",
334
+ * period: {}
335
+ * }],
336
+ * primaryTelecom: {
337
+ * value: "string",
338
+ * use: CandidApi.preEncounter.ContactPointUse.Home
339
+ * },
340
+ * otherTelecoms: [{
341
+ * value: "string",
342
+ * use: CandidApi.preEncounter.ContactPointUse.Home
343
+ * }],
344
+ * email: "string",
345
+ * electronicCommunicationOptIn: true,
346
+ * photo: "string",
347
+ * language: "string",
348
+ * externalProvenance: {
349
+ * externalId: "string",
350
+ * systemName: "string"
351
+ * },
352
+ * contacts: [{
353
+ * relationship: [CandidApi.preEncounter.Relationship.Self],
354
+ * name: {
355
+ * family: "string",
356
+ * given: ["string"],
357
+ * use: CandidApi.preEncounter.NameUse.Usual,
358
+ * period: {}
359
+ * },
360
+ * telecoms: [{
361
+ * value: "string",
362
+ * use: CandidApi.preEncounter.ContactPointUse.Home
363
+ * }],
364
+ * addresses: [{
365
+ * use: CandidApi.preEncounter.AddressUse.Home,
366
+ * line: ["string"],
367
+ * city: "string",
368
+ * state: "string",
369
+ * postalCode: "string",
370
+ * country: "string",
371
+ * period: {}
372
+ * }],
373
+ * period: {},
374
+ * hipaaAuthorization: true
375
+ * }],
376
+ * generalPractitioners: [{
377
+ * name: {
378
+ * family: "string",
379
+ * given: ["string"],
380
+ * use: CandidApi.preEncounter.NameUse.Usual,
381
+ * period: {}
382
+ * },
383
+ * type: CandidApi.preEncounter.ExternalProviderType.Primary,
384
+ * npi: "string",
385
+ * telecoms: [{
386
+ * value: "string",
387
+ * use: CandidApi.preEncounter.ContactPointUse.Home
388
+ * }],
389
+ * addresses: [],
390
+ * period: {},
391
+ * canonicalId: CandidApi.preEncounter.CanonicalProviderId("string")
392
+ * }],
393
+ * filingOrder: {
394
+ * coverages: [CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]
395
+ * },
396
+ * nonInsurancePayers: [CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")],
397
+ * nonInsurancePayerAssociations: [{
398
+ * id: CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")
399
+ * }],
400
+ * guarantor: {
401
+ * name: {
402
+ * family: "string",
403
+ * given: ["string"],
404
+ * use: CandidApi.preEncounter.NameUse.Usual,
405
+ * period: {}
406
+ * },
407
+ * telecom: {
408
+ * value: "string",
409
+ * use: CandidApi.preEncounter.ContactPointUse.Home
410
+ * },
411
+ * email: "string",
412
+ * birthDate: "2023-01-15",
413
+ * address: {
414
+ * use: CandidApi.preEncounter.AddressUse.Home,
415
+ * line: ["string"],
416
+ * city: "string",
417
+ * state: "string",
418
+ * postalCode: "string",
419
+ * country: "string",
420
+ * period: {}
421
+ * }
422
+ * },
423
+ * selfPay: true,
424
+ * authorizations: [{
425
+ * payerId: CandidApi.preEncounter.PayerId("string"),
426
+ * payerName: "string",
427
+ * authorizationNumber: "string",
428
+ * cptCode: "string",
429
+ * units: CandidApi.preEncounter.patients.v1.AuthorizationUnit.Visit
430
+ * }],
431
+ * referrals: [{
432
+ * provider: {
433
+ * name: {
434
+ * family: "string",
435
+ * given: ["string"],
436
+ * use: CandidApi.preEncounter.NameUse.Usual,
437
+ * period: {}
438
+ * },
439
+ * type: CandidApi.preEncounter.ExternalProviderType.Primary,
440
+ * npi: "string",
441
+ * telecoms: [{
442
+ * value: "string",
443
+ * use: CandidApi.preEncounter.ContactPointUse.Home
444
+ * }],
445
+ * addresses: [],
446
+ * period: {},
447
+ * canonicalId: CandidApi.preEncounter.CanonicalProviderId("string")
448
+ * },
449
+ * referralNumber: "string"
450
+ * }],
451
+ * primaryServiceFacilityId: "string",
452
+ * doNotInvoiceReason: CandidApi.preEncounter.patients.v1.DoNotInvoiceReason.Bankruptcy
453
+ * }
454
+ * })
455
+ */
456
+ createWithMrn(request, requestOptions) {
457
+ var _a, _b;
458
+ return __awaiter(this, void 0, void 0, function* () {
459
+ const { skipDuplicateCheck, body: _body } = request;
460
+ const _queryParams = {};
461
+ if (skipDuplicateCheck != null) {
462
+ _queryParams["skip_duplicate_check"] = skipDuplicateCheck.toString();
463
+ }
464
+ const _response = yield core.fetcher({
465
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
466
+ .preEncounter, "/patients/v1/with_mrn"),
467
+ method: "POST",
468
+ headers: {
469
+ Authorization: yield this._getAuthorizationHeader(),
470
+ "X-Fern-Language": "JavaScript",
471
+ "X-Fern-SDK-Name": "candidhealth",
472
+ "X-Fern-SDK-Version": "0.35.1",
473
+ "X-Fern-Runtime": core.RUNTIME.type,
474
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
475
+ },
476
+ contentType: "application/json",
477
+ queryParameters: _queryParams,
478
+ requestType: "json",
479
+ body: serializers.preEncounter.patients.v1.MutablePatientWithMrn.jsonOrThrow(_body, {
480
+ unrecognizedObjectKeys: "strip",
481
+ }),
482
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
483
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
484
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
485
+ });
486
+ if (_response.ok) {
487
+ return {
488
+ ok: true,
489
+ body: serializers.preEncounter.patients.v1.Patient.parseOrThrow(_response.body, {
490
+ unrecognizedObjectKeys: "passthrough",
491
+ allowUnrecognizedUnionMembers: true,
492
+ allowUnrecognizedEnumValues: true,
493
+ breadcrumbsPrefix: ["response"],
494
+ }),
495
+ };
496
+ }
497
+ if (_response.error.reason === "status-code") {
498
+ switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
499
+ case "VersionConflictError":
500
+ case "PotentialDuplicatePatients":
501
+ case "InvalidMRNError":
502
+ return {
503
+ ok: false,
504
+ error: serializers.preEncounter.patients.v1.createWithMrn.Error.parseOrThrow(_response.error.body, {
505
+ unrecognizedObjectKeys: "passthrough",
506
+ allowUnrecognizedUnionMembers: true,
507
+ allowUnrecognizedEnumValues: true,
508
+ breadcrumbsPrefix: ["response"],
509
+ }),
510
+ };
511
+ }
512
+ }
513
+ return {
514
+ ok: false,
515
+ error: CandidApi.preEncounter.patients.v1.createWithMrn.Error._unknown(_response.error),
516
+ };
517
+ });
518
+ }
283
519
  /**
284
520
  * Searches for patients that match the query parameters.
285
521
  *
@@ -323,7 +559,7 @@ class V1 {
323
559
  Authorization: yield this._getAuthorizationHeader(),
324
560
  "X-Fern-Language": "JavaScript",
325
561
  "X-Fern-SDK-Name": "candidhealth",
326
- "X-Fern-SDK-Version": "0.35.0",
562
+ "X-Fern-SDK-Version": "0.35.1",
327
563
  "X-Fern-Runtime": core.RUNTIME.type,
328
564
  "X-Fern-Runtime-Version": core.RUNTIME.version,
329
565
  },
@@ -371,7 +607,7 @@ class V1 {
371
607
  Authorization: yield this._getAuthorizationHeader(),
372
608
  "X-Fern-Language": "JavaScript",
373
609
  "X-Fern-SDK-Name": "candidhealth",
374
- "X-Fern-SDK-Version": "0.35.0",
610
+ "X-Fern-SDK-Version": "0.35.1",
375
611
  "X-Fern-Runtime": core.RUNTIME.type,
376
612
  "X-Fern-Runtime-Version": core.RUNTIME.version,
377
613
  },
@@ -432,7 +668,7 @@ class V1 {
432
668
  Authorization: yield this._getAuthorizationHeader(),
433
669
  "X-Fern-Language": "JavaScript",
434
670
  "X-Fern-SDK-Name": "candidhealth",
435
- "X-Fern-SDK-Version": "0.35.0",
671
+ "X-Fern-SDK-Version": "0.35.1",
436
672
  "X-Fern-Runtime": core.RUNTIME.type,
437
673
  "X-Fern-Runtime-Version": core.RUNTIME.version,
438
674
  },
@@ -639,7 +875,8 @@ class V1 {
639
875
  * },
640
876
  * referralNumber: "string"
641
877
  * }],
642
- * primaryServiceFacilityId: "string"
878
+ * primaryServiceFacilityId: "string",
879
+ * doNotInvoiceReason: CandidApi.preEncounter.patients.v1.DoNotInvoiceReason.Bankruptcy
643
880
  * })
644
881
  */
645
882
  update(id, version, request, requestOptions) {
@@ -653,7 +890,7 @@ class V1 {
653
890
  Authorization: yield this._getAuthorizationHeader(),
654
891
  "X-Fern-Language": "JavaScript",
655
892
  "X-Fern-SDK-Name": "candidhealth",
656
- "X-Fern-SDK-Version": "0.35.0",
893
+ "X-Fern-SDK-Version": "0.35.1",
657
894
  "X-Fern-Runtime": core.RUNTIME.type,
658
895
  "X-Fern-Runtime-Version": core.RUNTIME.version,
659
896
  },
@@ -719,7 +956,7 @@ class V1 {
719
956
  Authorization: yield this._getAuthorizationHeader(),
720
957
  "X-Fern-Language": "JavaScript",
721
958
  "X-Fern-SDK-Name": "candidhealth",
722
- "X-Fern-SDK-Version": "0.35.0",
959
+ "X-Fern-SDK-Version": "0.35.1",
723
960
  "X-Fern-Runtime": core.RUNTIME.type,
724
961
  "X-Fern-Runtime-Version": core.RUNTIME.version,
725
962
  },
@@ -787,7 +1024,7 @@ class V1 {
787
1024
  Authorization: yield this._getAuthorizationHeader(),
788
1025
  "X-Fern-Language": "JavaScript",
789
1026
  "X-Fern-SDK-Name": "candidhealth",
790
- "X-Fern-SDK-Version": "0.35.0",
1027
+ "X-Fern-SDK-Version": "0.35.1",
791
1028
  "X-Fern-Runtime": core.RUNTIME.type,
792
1029
  "X-Fern-Runtime-Version": core.RUNTIME.version,
793
1030
  },
@@ -840,7 +1077,7 @@ class V1 {
840
1077
  Authorization: yield this._getAuthorizationHeader(),
841
1078
  "X-Fern-Language": "JavaScript",
842
1079
  "X-Fern-SDK-Name": "candidhealth",
843
- "X-Fern-SDK-Version": "0.35.0",
1080
+ "X-Fern-SDK-Version": "0.35.1",
844
1081
  "X-Fern-Runtime": core.RUNTIME.type,
845
1082
  "X-Fern-Runtime-Version": core.RUNTIME.version,
846
1083
  },
@@ -0,0 +1,40 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../../../index";
5
+ import * as core from "../../../../../../../../core";
6
+ export declare type Error = CandidApi.preEncounter.patients.v1.createWithMrn.Error.VersionConflictError | CandidApi.preEncounter.patients.v1.createWithMrn.Error.PotentialDuplicatePatients | CandidApi.preEncounter.patients.v1.createWithMrn.Error.InvalidMrnError | CandidApi.preEncounter.patients.v1.createWithMrn.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface VersionConflictError extends _Utils {
9
+ errorName: "VersionConflictError";
10
+ content: CandidApi.preEncounter.VersionConflictErrorBody;
11
+ }
12
+ interface PotentialDuplicatePatients extends _Utils {
13
+ errorName: "PotentialDuplicatePatients";
14
+ content: CandidApi.preEncounter.patients.v1.PotentialDuplicatePatientsErrorBody;
15
+ }
16
+ interface InvalidMrnError extends _Utils {
17
+ errorName: "InvalidMRNError";
18
+ content: CandidApi.preEncounter.patients.v1.InvalidMrnErrorBody;
19
+ }
20
+ interface _Unknown extends _Utils {
21
+ errorName: void;
22
+ content: core.Fetcher.Error;
23
+ }
24
+ interface _Utils {
25
+ _visit: <_Result>(visitor: CandidApi.preEncounter.patients.v1.createWithMrn.Error._Visitor<_Result>) => _Result;
26
+ }
27
+ interface _Visitor<_Result> {
28
+ versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => _Result;
29
+ potentialDuplicatePatients: (value: CandidApi.preEncounter.patients.v1.PotentialDuplicatePatientsErrorBody) => _Result;
30
+ invalidMrnError: (value: CandidApi.preEncounter.patients.v1.InvalidMrnErrorBody) => _Result;
31
+ _other: (value: core.Fetcher.Error) => _Result;
32
+ }
33
+ }
34
+ export declare const Error: {
35
+ readonly versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => CandidApi.preEncounter.patients.v1.createWithMrn.Error.VersionConflictError;
36
+ readonly potentialDuplicatePatients: (value: CandidApi.preEncounter.patients.v1.PotentialDuplicatePatientsErrorBody) => CandidApi.preEncounter.patients.v1.createWithMrn.Error.PotentialDuplicatePatients;
37
+ readonly invalidMrnError: (value: CandidApi.preEncounter.patients.v1.InvalidMrnErrorBody) => CandidApi.preEncounter.patients.v1.createWithMrn.Error.InvalidMrnError;
38
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.patients.v1.createWithMrn.Error._Unknown;
39
+ readonly _visit: <_Result>(value: CandidApi.preEncounter.patients.v1.createWithMrn.Error, visitor: CandidApi.preEncounter.patients.v1.createWithMrn.Error._Visitor<_Result>) => _Result;
40
+ };
@@ -0,0 +1,80 @@
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.Error = void 0;
30
+ const CandidApi = __importStar(require("../../../../../../../index"));
31
+ exports.Error = {
32
+ versionConflictError: (value) => {
33
+ return {
34
+ content: value,
35
+ errorName: "VersionConflictError",
36
+ _visit: function (visitor) {
37
+ return CandidApi.preEncounter.patients.v1.createWithMrn.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ potentialDuplicatePatients: (value) => {
42
+ return {
43
+ content: value,
44
+ errorName: "PotentialDuplicatePatients",
45
+ _visit: function (visitor) {
46
+ return CandidApi.preEncounter.patients.v1.createWithMrn.Error._visit(this, visitor);
47
+ },
48
+ };
49
+ },
50
+ invalidMrnError: (value) => {
51
+ return {
52
+ content: value,
53
+ errorName: "InvalidMRNError",
54
+ _visit: function (visitor) {
55
+ return CandidApi.preEncounter.patients.v1.createWithMrn.Error._visit(this, visitor);
56
+ },
57
+ };
58
+ },
59
+ _unknown: (fetcherError) => {
60
+ return {
61
+ errorName: undefined,
62
+ content: fetcherError,
63
+ _visit: function (visitor) {
64
+ return CandidApi.preEncounter.patients.v1.createWithMrn.Error._visit(this, visitor);
65
+ },
66
+ };
67
+ },
68
+ _visit: (value, visitor) => {
69
+ switch (value.errorName) {
70
+ case "VersionConflictError":
71
+ return visitor.versionConflictError(value.content);
72
+ case "PotentialDuplicatePatients":
73
+ return visitor.potentialDuplicatePatients(value.content);
74
+ case "InvalidMRNError":
75
+ return visitor.invalidMrnError(value.content);
76
+ default:
77
+ return visitor._other(value);
78
+ }
79
+ },
80
+ };
@@ -1,5 +1,6 @@
1
1
  export * from "./requests";
2
2
  export * as create from "./create";
3
+ export * as createWithMrn from "./createWithMrn";
3
4
  export * as getMulti from "./getMulti";
4
5
  export * as get from "./get";
5
6
  export * as getHistory from "./getHistory";
@@ -26,9 +26,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.scan = exports.search = exports.deactivate = exports.update = exports.getHistory = exports.get = exports.getMulti = exports.create = void 0;
29
+ exports.scan = exports.search = exports.deactivate = exports.update = exports.getHistory = exports.get = exports.getMulti = exports.createWithMrn = exports.create = void 0;
30
30
  __exportStar(require("./requests"), exports);
31
31
  exports.create = __importStar(require("./create"));
32
+ exports.createWithMrn = __importStar(require("./createWithMrn"));
32
33
  exports.getMulti = __importStar(require("./getMulti"));
33
34
  exports.get = __importStar(require("./get"));
34
35
  exports.getHistory = __importStar(require("./getHistory"));
@@ -163,7 +163,8 @@ import * as CandidApi from "../../../../../../../../index";
163
163
  * },
164
164
  * referralNumber: "string"
165
165
  * }],
166
- * primaryServiceFacilityId: "string"
166
+ * primaryServiceFacilityId: "string",
167
+ * doNotInvoiceReason: CandidApi.preEncounter.patients.v1.DoNotInvoiceReason.Bankruptcy
167
168
  * }
168
169
  * }
169
170
  */
@@ -0,0 +1,175 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * skipDuplicateCheck: true,
9
+ * body: {
10
+ * mrn: "string",
11
+ * name: {
12
+ * family: "string",
13
+ * given: ["string"],
14
+ * use: CandidApi.preEncounter.NameUse.Usual,
15
+ * period: {}
16
+ * },
17
+ * otherNames: [{
18
+ * family: "string",
19
+ * given: ["string"],
20
+ * use: CandidApi.preEncounter.NameUse.Usual,
21
+ * period: {}
22
+ * }],
23
+ * gender: CandidApi.preEncounter.Gender.Man,
24
+ * birthDate: "2023-01-15",
25
+ * socialSecurityNumber: "string",
26
+ * biologicalSex: CandidApi.preEncounter.Sex.Female,
27
+ * sexualOrientation: CandidApi.preEncounter.SexualOrientation.Heterosexual,
28
+ * race: CandidApi.preEncounter.Race.AmericanIndianOrAlaskaNative,
29
+ * ethnicity: CandidApi.preEncounter.Ethnicity.HispanicOrLatino,
30
+ * disabilityStatus: CandidApi.preEncounter.DisabilityStatus.Disabled,
31
+ * maritalStatus: CandidApi.preEncounter.patients.v1.MaritalStatus.Annulled,
32
+ * deceased: new Date("2024-01-15T09:30:00.000Z"),
33
+ * multipleBirth: 1,
34
+ * primaryAddress: {
35
+ * use: CandidApi.preEncounter.AddressUse.Home,
36
+ * line: ["string"],
37
+ * city: "string",
38
+ * state: "string",
39
+ * postalCode: "string",
40
+ * country: "string",
41
+ * period: {}
42
+ * },
43
+ * otherAddresses: [{
44
+ * use: CandidApi.preEncounter.AddressUse.Home,
45
+ * line: ["string"],
46
+ * city: "string",
47
+ * state: "string",
48
+ * postalCode: "string",
49
+ * country: "string",
50
+ * period: {}
51
+ * }],
52
+ * primaryTelecom: {
53
+ * value: "string",
54
+ * use: CandidApi.preEncounter.ContactPointUse.Home
55
+ * },
56
+ * otherTelecoms: [{
57
+ * value: "string",
58
+ * use: CandidApi.preEncounter.ContactPointUse.Home
59
+ * }],
60
+ * email: "string",
61
+ * electronicCommunicationOptIn: true,
62
+ * photo: "string",
63
+ * language: "string",
64
+ * externalProvenance: {
65
+ * externalId: "string",
66
+ * systemName: "string"
67
+ * },
68
+ * contacts: [{
69
+ * relationship: [CandidApi.preEncounter.Relationship.Self],
70
+ * name: {
71
+ * family: "string",
72
+ * given: ["string"],
73
+ * use: CandidApi.preEncounter.NameUse.Usual,
74
+ * period: {}
75
+ * },
76
+ * telecoms: [{
77
+ * value: "string",
78
+ * use: CandidApi.preEncounter.ContactPointUse.Home
79
+ * }],
80
+ * addresses: [{
81
+ * use: CandidApi.preEncounter.AddressUse.Home,
82
+ * line: ["string"],
83
+ * city: "string",
84
+ * state: "string",
85
+ * postalCode: "string",
86
+ * country: "string",
87
+ * period: {}
88
+ * }],
89
+ * period: {},
90
+ * hipaaAuthorization: true
91
+ * }],
92
+ * generalPractitioners: [{
93
+ * name: {
94
+ * family: "string",
95
+ * given: ["string"],
96
+ * use: CandidApi.preEncounter.NameUse.Usual,
97
+ * period: {}
98
+ * },
99
+ * type: CandidApi.preEncounter.ExternalProviderType.Primary,
100
+ * npi: "string",
101
+ * telecoms: [{
102
+ * value: "string",
103
+ * use: CandidApi.preEncounter.ContactPointUse.Home
104
+ * }],
105
+ * addresses: [],
106
+ * period: {},
107
+ * canonicalId: CandidApi.preEncounter.CanonicalProviderId("string")
108
+ * }],
109
+ * filingOrder: {
110
+ * coverages: [CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]
111
+ * },
112
+ * nonInsurancePayers: [CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")],
113
+ * nonInsurancePayerAssociations: [{
114
+ * id: CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")
115
+ * }],
116
+ * guarantor: {
117
+ * name: {
118
+ * family: "string",
119
+ * given: ["string"],
120
+ * use: CandidApi.preEncounter.NameUse.Usual,
121
+ * period: {}
122
+ * },
123
+ * telecom: {
124
+ * value: "string",
125
+ * use: CandidApi.preEncounter.ContactPointUse.Home
126
+ * },
127
+ * email: "string",
128
+ * birthDate: "2023-01-15",
129
+ * address: {
130
+ * use: CandidApi.preEncounter.AddressUse.Home,
131
+ * line: ["string"],
132
+ * city: "string",
133
+ * state: "string",
134
+ * postalCode: "string",
135
+ * country: "string",
136
+ * period: {}
137
+ * }
138
+ * },
139
+ * selfPay: true,
140
+ * authorizations: [{
141
+ * payerId: CandidApi.preEncounter.PayerId("string"),
142
+ * payerName: "string",
143
+ * authorizationNumber: "string",
144
+ * cptCode: "string",
145
+ * units: CandidApi.preEncounter.patients.v1.AuthorizationUnit.Visit
146
+ * }],
147
+ * referrals: [{
148
+ * provider: {
149
+ * name: {
150
+ * family: "string",
151
+ * given: ["string"],
152
+ * use: CandidApi.preEncounter.NameUse.Usual,
153
+ * period: {}
154
+ * },
155
+ * type: CandidApi.preEncounter.ExternalProviderType.Primary,
156
+ * npi: "string",
157
+ * telecoms: [{
158
+ * value: "string",
159
+ * use: CandidApi.preEncounter.ContactPointUse.Home
160
+ * }],
161
+ * addresses: [],
162
+ * period: {},
163
+ * canonicalId: CandidApi.preEncounter.CanonicalProviderId("string")
164
+ * },
165
+ * referralNumber: "string"
166
+ * }],
167
+ * primaryServiceFacilityId: "string",
168
+ * doNotInvoiceReason: CandidApi.preEncounter.patients.v1.DoNotInvoiceReason.Bankruptcy
169
+ * }
170
+ * }
171
+ */
172
+ export interface CreatePatientWithMrnRequest {
173
+ skipDuplicateCheck?: boolean;
174
+ body: CandidApi.preEncounter.patients.v1.MutablePatientWithMrn;
175
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });