candidhealth 0.43.1 → 0.46.0

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 (507) hide show
  1. package/README.md +4 -18
  2. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  3. package/api/resources/billingNotes/resources/v2/client/Client.d.ts +2 -3
  4. package/api/resources/billingNotes/resources/v2/client/Client.js +5 -6
  5. package/api/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.d.ts +1 -1
  6. package/api/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +1 -2
  7. package/api/resources/billingNotes/resources/v2/types/index.d.ts +0 -1
  8. package/api/resources/billingNotes/resources/v2/types/index.js +0 -1
  9. package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +5 -46
  10. package/api/resources/chargeCapture/resources/v1/client/Client.js +11 -52
  11. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +1 -3
  12. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +1 -9
  13. package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +5 -15
  14. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +1 -35
  15. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +28 -2
  16. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +1 -22
  17. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -25
  18. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureClaimCreationsRequest.d.ts +1 -22
  19. package/api/resources/commons/types/InsuranceTypeCode.d.ts +1 -1
  20. package/api/resources/commons/types/StreetAddressOptionalBase.d.ts +12 -0
  21. package/api/resources/commons/types/StreetAddressShortZipOptional.d.ts +19 -0
  22. package/api/resources/commons/types/index.d.ts +2 -0
  23. package/api/resources/commons/types/index.js +2 -0
  24. package/api/resources/contracts/resources/v2/client/Client.d.ts +3 -67
  25. package/api/resources/contracts/resources/v2/client/Client.js +19 -73
  26. package/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +1 -25
  27. package/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +1 -36
  28. package/api/resources/contracts/resources/v2/client/requests/GetMultiContractsRequest.d.ts +9 -9
  29. package/api/resources/contracts/resources/v2/types/ContractSortField.d.ts +12 -0
  30. package/api/resources/contracts/resources/v2/types/ContractSortField.js +14 -0
  31. package/api/resources/contracts/resources/v2/types/index.d.ts +1 -0
  32. package/api/resources/contracts/resources/v2/types/index.js +1 -0
  33. package/api/resources/credentialing/resources/v2/client/Client.d.ts +4 -26
  34. package/api/resources/credentialing/resources/v2/client/Client.js +9 -31
  35. package/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +1 -8
  36. package/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanCreate.d.ts +4 -14
  37. package/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanUpdate.d.ts +3 -20
  38. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  39. package/api/resources/diagnoses/client/Client.d.ts +3 -8
  40. package/api/resources/diagnoses/client/Client.js +6 -11
  41. package/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +2 -10
  42. package/api/resources/diagnoses/types/DiagnosisCreate.d.ts +5 -6
  43. package/api/resources/eligibility/resources/v2/client/Client.d.ts +2 -6
  44. package/api/resources/eligibility/resources/v2/client/Client.js +5 -9
  45. package/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +0 -3
  46. package/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -6
  47. package/api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentRequest.d.ts +0 -4
  48. package/api/resources/encounterProviders/resources/v2/client/Client.d.ts +8 -114
  49. package/api/resources/encounterProviders/resources/v2/client/Client.js +20 -126
  50. package/api/resources/encounterProviders/resources/v2/client/createInitialReferringProvider.d.ts +1 -2
  51. package/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +27 -0
  52. package/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.js +5 -0
  53. package/api/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.d.ts +14 -0
  54. package/api/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.js +5 -0
  55. package/api/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.d.ts +13 -0
  56. package/api/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.js +5 -0
  57. package/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.d.ts +13 -0
  58. package/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.js +5 -0
  59. package/api/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.d.ts +13 -0
  60. package/api/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.js +5 -0
  61. package/api/resources/encounterProviders/resources/v2/types/index.d.ts +5 -0
  62. package/api/resources/encounterProviders/resources/v2/types/index.js +5 -0
  63. package/api/resources/encounters/resources/v4/client/Client.d.ts +49 -546
  64. package/api/resources/encounters/resources/v4/client/Client.js +54 -551
  65. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +36 -405
  66. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +26 -7
  67. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +3 -1
  68. package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +5 -5
  69. package/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +9 -33
  70. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +6 -9
  71. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +7 -10
  72. package/api/resources/expectedNetworkStatus/resources/v1/client/requests/ExpectedNetworkStatusRequest.d.ts +7 -13
  73. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +12 -16
  74. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +14 -18
  75. package/api/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.d.ts +5 -0
  76. package/api/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.js +5 -0
  77. package/api/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +5 -8
  78. package/api/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +1 -0
  79. package/api/resources/expectedNetworkStatus/resources/v2/types/index.js +1 -0
  80. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  81. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +1 -5
  82. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +2 -6
  83. package/api/resources/externalPaymentAccountConfig/resources/v1/client/requests/GetExternalPaymentAccountConfigsRequest.d.ts +1 -4
  84. package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +37 -38
  85. package/api/resources/feeSchedules/resources/v3/client/Client.js +47 -48
  86. package/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +32 -5
  87. package/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -15
  88. package/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +1 -13
  89. package/api/resources/feeSchedules/resources/v3/types/PayerThreshold.d.ts +1 -1
  90. package/api/resources/feeSchedules/resources/v3/types/Rate.d.ts +1 -1
  91. package/api/resources/feeSchedules/resources/v3/types/RateEntry.d.ts +1 -1
  92. package/api/resources/guarantor/resources/v1/client/Client.d.ts +8 -38
  93. package/api/resources/guarantor/resources/v1/client/Client.js +11 -41
  94. package/api/resources/importInvoice/resources/v1/client/Client.d.ts +11 -34
  95. package/api/resources/importInvoice/resources/v1/client/Client.js +15 -38
  96. package/api/resources/importInvoice/resources/v1/client/requests/SearchImportedInvoicesRequest.d.ts +1 -12
  97. package/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +23 -0
  98. package/api/resources/individual/types/PatientUpdateWithOptionalAddress.js +5 -0
  99. package/api/resources/individual/types/index.d.ts +1 -0
  100. package/api/resources/individual/types/index.js +1 -0
  101. package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +92 -10
  102. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +95 -13
  103. package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +1 -10
  104. package/api/resources/insurancePayments/resources/v1/client/Client.js +3 -12
  105. package/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +1 -10
  106. package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +12 -26
  107. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +17 -31
  108. package/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.d.ts +1 -10
  109. package/api/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.d.ts +1 -11
  110. package/api/resources/medicationDispense/resources/v1/client/Client.d.ts +5 -17
  111. package/api/resources/medicationDispense/resources/v1/client/Client.js +6 -18
  112. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.d.ts +9 -25
  113. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +14 -30
  114. package/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/GetMultiNonInsurancePayerPaymentRequest.d.ts +1 -9
  115. package/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/UpdateNonInsurancePayerPaymentRequest.d.ts +1 -11
  116. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +9 -30
  117. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +14 -35
  118. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/GetMultiNonInsurancePayerRefundsRequest.d.ts +1 -9
  119. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/NonInsurancePayerRefundUpdate.d.ts +1 -15
  120. package/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +3 -37
  121. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +9 -43
  122. package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +1 -9
  123. package/api/resources/organizationProviders/resources/v3/client/Client.d.ts +12 -58
  124. package/api/resources/organizationProviders/resources/v3/client/Client.js +16 -62
  125. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +1 -1
  126. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +6 -6
  127. package/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityPhysicalType.d.ts +1 -1
  128. package/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityType.d.ts +3 -3
  129. package/api/resources/patientPayments/resources/v4/client/Client.d.ts +10 -29
  130. package/api/resources/patientPayments/resources/v4/client/Client.js +15 -34
  131. package/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +1 -13
  132. package/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentCreate.d.ts +8 -5
  133. package/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.d.ts +1 -11
  134. package/api/resources/patientRefunds/resources/v1/client/Client.d.ts +10 -34
  135. package/api/resources/patientRefunds/resources/v1/client/Client.js +15 -39
  136. package/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +1 -13
  137. package/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundCreate.d.ts +8 -6
  138. package/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.d.ts +1 -15
  139. package/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +3 -15
  140. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +8 -20
  141. package/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +1 -13
  142. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  143. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +14 -84
  144. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +21 -91
  145. package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +1 -7
  146. package/api/resources/preEncounter/resources/common/types/BaseModel.d.ts +2 -2
  147. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +28 -87
  148. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +38 -97
  149. package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CheckEligibilityRequest.d.ts +1 -1
  150. package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiPaginatedRequest.d.ts +1 -6
  151. package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiRequest.d.ts +1 -3
  152. package/api/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.d.ts +1 -1
  153. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +4 -18
  154. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +5 -19
  155. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.d.ts +15 -34
  156. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +20 -39
  157. package/api/resources/preEncounter/resources/images/resources/v1/client/requests/ImageGetMultiRequest.d.ts +1 -4
  158. package/api/resources/preEncounter/resources/images/resources/v1/types/Image.d.ts +1 -1
  159. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.d.ts +2 -14
  160. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +4 -16
  161. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +1 -7
  162. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +1 -7
  163. package/api/resources/preEncounter/resources/lists/resources/v1/types/FilterQueryString.d.ts +1 -1
  164. package/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +1 -1
  165. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.d.ts +6 -10
  166. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +10 -14
  167. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +328 -456
  168. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +339 -467
  169. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +104 -144
  170. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +104 -144
  171. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientGetMultiRequest.d.ts +1 -4
  172. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientsSearchRequestPaginated.d.ts +1 -7
  173. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/SearchProvidersRequest.d.ts +1 -1
  174. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -3
  175. package/api/resources/preEncounter/resources/patients/resources/v1/types/Patient.d.ts +2 -2
  176. package/api/resources/preEncounter/resources/patients/resources/v1/types/PatientSortField.d.ts +1 -1
  177. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.d.ts +7 -10
  178. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +12 -15
  179. package/api/resources/preEncounter/resources/tags/resources/v1/client/requests/GetAllTagsRequest.d.ts +1 -4
  180. package/api/resources/serviceFacility/client/Client.d.ts +1 -11
  181. package/api/resources/serviceFacility/client/Client.js +2 -12
  182. package/api/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.d.ts +20 -0
  183. package/api/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.js +5 -0
  184. package/api/resources/serviceFacility/types/index.d.ts +1 -0
  185. package/api/resources/serviceFacility/types/index.js +1 -0
  186. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +4 -82
  187. package/api/resources/serviceLines/resources/v2/client/Client.js +7 -85
  188. package/api/resources/superbills/resources/v1/client/Client.d.ts +2 -10
  189. package/api/resources/superbills/resources/v1/client/Client.js +3 -11
  190. package/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +3 -14
  191. package/api/resources/tasks/resources/v3/client/Client.d.ts +4 -25
  192. package/api/resources/tasks/resources/v3/client/Client.js +9 -30
  193. package/api/resources/tasks/resources/v3/client/requests/GetAllTasksRequest.d.ts +1 -15
  194. package/api/resources/writeOffs/resources/v1/client/Client.d.ts +7 -13
  195. package/api/resources/writeOffs/resources/v1/client/Client.js +13 -19
  196. package/api/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.d.ts +6 -1
  197. package/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.d.ts +1 -12
  198. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  199. package/dist/api/resources/billingNotes/resources/v2/client/Client.d.ts +2 -3
  200. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +5 -6
  201. package/dist/api/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.d.ts +1 -1
  202. package/dist/api/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +1 -2
  203. package/dist/api/resources/billingNotes/resources/v2/types/index.d.ts +0 -1
  204. package/dist/api/resources/billingNotes/resources/v2/types/index.js +0 -1
  205. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +5 -46
  206. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +11 -52
  207. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +1 -3
  208. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +1 -9
  209. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +5 -15
  210. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +1 -35
  211. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +28 -2
  212. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +1 -22
  213. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -25
  214. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureClaimCreationsRequest.d.ts +1 -22
  215. package/dist/api/resources/commons/types/InsuranceTypeCode.d.ts +1 -1
  216. package/dist/api/resources/commons/types/StreetAddressOptionalBase.d.ts +12 -0
  217. package/dist/api/resources/commons/types/StreetAddressOptionalBase.js +5 -0
  218. package/dist/api/resources/commons/types/StreetAddressShortZipOptional.d.ts +19 -0
  219. package/dist/api/resources/commons/types/StreetAddressShortZipOptional.js +5 -0
  220. package/dist/api/resources/commons/types/index.d.ts +2 -0
  221. package/dist/api/resources/commons/types/index.js +2 -0
  222. package/dist/api/resources/contracts/resources/v2/client/Client.d.ts +3 -67
  223. package/dist/api/resources/contracts/resources/v2/client/Client.js +19 -73
  224. package/dist/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +1 -25
  225. package/dist/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +1 -36
  226. package/dist/api/resources/contracts/resources/v2/client/requests/GetMultiContractsRequest.d.ts +9 -9
  227. package/dist/api/resources/contracts/resources/v2/types/ContractSortField.d.ts +12 -0
  228. package/dist/api/resources/contracts/resources/v2/types/ContractSortField.js +14 -0
  229. package/dist/api/resources/contracts/resources/v2/types/index.d.ts +1 -0
  230. package/dist/api/resources/contracts/resources/v2/types/index.js +1 -0
  231. package/dist/api/resources/credentialing/resources/v2/client/Client.d.ts +4 -26
  232. package/dist/api/resources/credentialing/resources/v2/client/Client.js +9 -31
  233. package/dist/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +1 -8
  234. package/dist/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanCreate.d.ts +4 -14
  235. package/dist/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanUpdate.d.ts +3 -20
  236. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  237. package/dist/api/resources/diagnoses/client/Client.d.ts +3 -8
  238. package/dist/api/resources/diagnoses/client/Client.js +6 -11
  239. package/dist/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +2 -10
  240. package/dist/api/resources/diagnoses/types/DiagnosisCreate.d.ts +5 -6
  241. package/dist/api/resources/eligibility/resources/v2/client/Client.d.ts +2 -6
  242. package/dist/api/resources/eligibility/resources/v2/client/Client.js +5 -9
  243. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +0 -3
  244. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -6
  245. package/dist/api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentRequest.d.ts +0 -4
  246. package/dist/api/resources/encounterProviders/resources/v2/client/Client.d.ts +8 -114
  247. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +20 -126
  248. package/dist/api/resources/encounterProviders/resources/v2/client/createInitialReferringProvider.d.ts +1 -2
  249. package/dist/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +27 -0
  250. package/dist/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.js +5 -0
  251. package/dist/api/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.d.ts +14 -0
  252. package/dist/api/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.js +5 -0
  253. package/dist/api/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.d.ts +13 -0
  254. package/dist/api/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.js +5 -0
  255. package/dist/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.d.ts +13 -0
  256. package/dist/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.js +5 -0
  257. package/dist/api/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.d.ts +13 -0
  258. package/dist/api/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.js +5 -0
  259. package/dist/api/resources/encounterProviders/resources/v2/types/index.d.ts +5 -0
  260. package/dist/api/resources/encounterProviders/resources/v2/types/index.js +5 -0
  261. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +49 -546
  262. package/dist/api/resources/encounters/resources/v4/client/Client.js +54 -551
  263. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +36 -405
  264. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +26 -7
  265. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +3 -1
  266. package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +5 -5
  267. package/dist/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +9 -33
  268. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +6 -9
  269. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +7 -10
  270. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/requests/ExpectedNetworkStatusRequest.d.ts +7 -13
  271. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +12 -16
  272. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +14 -18
  273. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.d.ts +5 -0
  274. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.js +5 -0
  275. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +5 -8
  276. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +1 -0
  277. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/index.js +1 -0
  278. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  279. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +1 -5
  280. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +2 -6
  281. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/requests/GetExternalPaymentAccountConfigsRequest.d.ts +1 -4
  282. package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +37 -38
  283. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +47 -48
  284. package/dist/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +32 -5
  285. package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -15
  286. package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +1 -13
  287. package/dist/api/resources/feeSchedules/resources/v3/types/PayerThreshold.d.ts +1 -1
  288. package/dist/api/resources/feeSchedules/resources/v3/types/Rate.d.ts +1 -1
  289. package/dist/api/resources/feeSchedules/resources/v3/types/RateEntry.d.ts +1 -1
  290. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +8 -38
  291. package/dist/api/resources/guarantor/resources/v1/client/Client.js +11 -41
  292. package/dist/api/resources/importInvoice/resources/v1/client/Client.d.ts +11 -34
  293. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +15 -38
  294. package/dist/api/resources/importInvoice/resources/v1/client/requests/SearchImportedInvoicesRequest.d.ts +1 -12
  295. package/dist/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +23 -0
  296. package/dist/api/resources/individual/types/PatientUpdateWithOptionalAddress.js +5 -0
  297. package/dist/api/resources/individual/types/index.d.ts +1 -0
  298. package/dist/api/resources/individual/types/index.js +1 -0
  299. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +92 -10
  300. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +95 -13
  301. package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +1 -10
  302. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +3 -12
  303. package/dist/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +1 -10
  304. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +12 -26
  305. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +17 -31
  306. package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.d.ts +1 -10
  307. package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.d.ts +1 -11
  308. package/dist/api/resources/medicationDispense/resources/v1/client/Client.d.ts +5 -17
  309. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +6 -18
  310. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.d.ts +9 -25
  311. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +14 -30
  312. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/GetMultiNonInsurancePayerPaymentRequest.d.ts +1 -9
  313. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/UpdateNonInsurancePayerPaymentRequest.d.ts +1 -11
  314. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +9 -30
  315. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +14 -35
  316. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/GetMultiNonInsurancePayerRefundsRequest.d.ts +1 -9
  317. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/NonInsurancePayerRefundUpdate.d.ts +1 -15
  318. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +3 -37
  319. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +9 -43
  320. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +1 -9
  321. package/dist/api/resources/organizationProviders/resources/v3/client/Client.d.ts +12 -58
  322. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +16 -62
  323. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +1 -1
  324. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +6 -6
  325. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityPhysicalType.d.ts +1 -1
  326. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityType.d.ts +3 -3
  327. package/dist/api/resources/patientPayments/resources/v4/client/Client.d.ts +10 -29
  328. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +15 -34
  329. package/dist/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +1 -13
  330. package/dist/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentCreate.d.ts +8 -5
  331. package/dist/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.d.ts +1 -11
  332. package/dist/api/resources/patientRefunds/resources/v1/client/Client.d.ts +10 -34
  333. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +15 -39
  334. package/dist/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +1 -13
  335. package/dist/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundCreate.d.ts +8 -6
  336. package/dist/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.d.ts +1 -15
  337. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +3 -15
  338. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +8 -20
  339. package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +1 -13
  340. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  341. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +14 -84
  342. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +21 -91
  343. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +1 -7
  344. package/dist/api/resources/preEncounter/resources/common/types/BaseModel.d.ts +2 -2
  345. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +28 -87
  346. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +38 -97
  347. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CheckEligibilityRequest.d.ts +1 -1
  348. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiPaginatedRequest.d.ts +1 -6
  349. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiRequest.d.ts +1 -3
  350. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.d.ts +1 -1
  351. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +4 -18
  352. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +5 -19
  353. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.d.ts +15 -34
  354. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +20 -39
  355. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/requests/ImageGetMultiRequest.d.ts +1 -4
  356. package/dist/api/resources/preEncounter/resources/images/resources/v1/types/Image.d.ts +1 -1
  357. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.d.ts +2 -14
  358. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +4 -16
  359. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +1 -7
  360. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +1 -7
  361. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/FilterQueryString.d.ts +1 -1
  362. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +1 -1
  363. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.d.ts +6 -10
  364. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +10 -14
  365. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +328 -456
  366. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +339 -467
  367. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +104 -144
  368. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +104 -144
  369. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientGetMultiRequest.d.ts +1 -4
  370. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientsSearchRequestPaginated.d.ts +1 -7
  371. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/SearchProvidersRequest.d.ts +1 -1
  372. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -3
  373. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Patient.d.ts +2 -2
  374. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PatientSortField.d.ts +1 -1
  375. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.d.ts +7 -10
  376. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +12 -15
  377. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/requests/GetAllTagsRequest.d.ts +1 -4
  378. package/dist/api/resources/serviceFacility/client/Client.d.ts +1 -11
  379. package/dist/api/resources/serviceFacility/client/Client.js +2 -12
  380. package/dist/api/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.d.ts +20 -0
  381. package/dist/api/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.js +5 -0
  382. package/dist/api/resources/serviceFacility/types/index.d.ts +1 -0
  383. package/dist/api/resources/serviceFacility/types/index.js +1 -0
  384. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +4 -82
  385. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +7 -85
  386. package/dist/api/resources/superbills/resources/v1/client/Client.d.ts +2 -10
  387. package/dist/api/resources/superbills/resources/v1/client/Client.js +3 -11
  388. package/dist/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +3 -14
  389. package/dist/api/resources/tasks/resources/v3/client/Client.d.ts +4 -25
  390. package/dist/api/resources/tasks/resources/v3/client/Client.js +9 -30
  391. package/dist/api/resources/tasks/resources/v3/client/requests/GetAllTasksRequest.d.ts +1 -15
  392. package/dist/api/resources/writeOffs/resources/v1/client/Client.d.ts +7 -13
  393. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +13 -19
  394. package/dist/api/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.d.ts +6 -1
  395. package/dist/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.d.ts +1 -12
  396. package/dist/environments.d.ts +5 -1
  397. package/dist/environments.js +4 -0
  398. package/dist/serialization/resources/billingNotes/resources/v2/types/index.d.ts +0 -1
  399. package/dist/serialization/resources/billingNotes/resources/v2/types/index.js +0 -1
  400. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +18 -2
  401. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +18 -2
  402. package/dist/serialization/resources/commons/types/StreetAddressOptionalBase.d.ts +17 -0
  403. package/dist/serialization/resources/commons/types/StreetAddressOptionalBase.js +48 -0
  404. package/dist/serialization/resources/commons/types/StreetAddressShortZipOptional.d.ts +13 -0
  405. package/dist/serialization/resources/commons/types/StreetAddressShortZipOptional.js +46 -0
  406. package/dist/serialization/resources/commons/types/index.d.ts +2 -0
  407. package/dist/serialization/resources/commons/types/index.js +2 -0
  408. package/dist/serialization/resources/contracts/resources/v2/types/ContractSortField.d.ts +10 -0
  409. package/dist/serialization/resources/contracts/resources/v2/types/ContractSortField.js +48 -0
  410. package/dist/serialization/resources/contracts/resources/v2/types/index.d.ts +1 -0
  411. package/dist/serialization/resources/contracts/resources/v2/types/index.js +1 -0
  412. package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +19 -0
  413. package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.js +52 -0
  414. package/dist/serialization/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.d.ts +18 -0
  415. package/dist/serialization/resources/{billingNotes/resources/v2/types/BillingNoteOptional.js → encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.js} +10 -11
  416. package/dist/serialization/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.d.ts +16 -0
  417. package/{serialization/resources/billingNotes/resources/v2/types/BillingNoteOptional.js → dist/serialization/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.js} +8 -11
  418. package/dist/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.d.ts +16 -0
  419. package/dist/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.js +49 -0
  420. package/dist/serialization/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.d.ts +16 -0
  421. package/dist/serialization/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.js +49 -0
  422. package/dist/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +5 -0
  423. package/dist/serialization/resources/encounterProviders/resources/v2/types/index.js +5 -0
  424. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -0
  425. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +1 -0
  426. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +16 -0
  427. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +16 -0
  428. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  429. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -0
  430. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +1 -16
  431. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +1 -16
  432. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.d.ts +11 -0
  433. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.js +41 -0
  434. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +3 -2
  435. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.js +3 -2
  436. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +1 -0
  437. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/index.js +1 -0
  438. package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +29 -0
  439. package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +60 -0
  440. package/dist/serialization/resources/individual/types/index.d.ts +1 -0
  441. package/dist/serialization/resources/individual/types/index.js +1 -0
  442. package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.d.ts +16 -0
  443. package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.js +47 -0
  444. package/dist/serialization/resources/serviceFacility/types/index.d.ts +1 -0
  445. package/dist/serialization/resources/serviceFacility/types/index.js +1 -0
  446. package/dist/version.d.ts +1 -1
  447. package/dist/version.js +1 -1
  448. package/environments.d.ts +5 -1
  449. package/environments.js +4 -0
  450. package/package.json +1 -1
  451. package/reference.md +772 -2232
  452. package/serialization/resources/billingNotes/resources/v2/types/index.d.ts +0 -1
  453. package/serialization/resources/billingNotes/resources/v2/types/index.js +0 -1
  454. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +18 -2
  455. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +18 -2
  456. package/serialization/resources/commons/types/StreetAddressOptionalBase.d.ts +17 -0
  457. package/serialization/resources/commons/types/StreetAddressOptionalBase.js +48 -0
  458. package/serialization/resources/commons/types/StreetAddressShortZipOptional.d.ts +13 -0
  459. package/serialization/resources/commons/types/StreetAddressShortZipOptional.js +46 -0
  460. package/serialization/resources/commons/types/index.d.ts +2 -0
  461. package/serialization/resources/commons/types/index.js +2 -0
  462. package/serialization/resources/contracts/resources/v2/types/ContractSortField.d.ts +10 -0
  463. package/serialization/resources/contracts/resources/v2/types/ContractSortField.js +48 -0
  464. package/serialization/resources/contracts/resources/v2/types/index.d.ts +1 -0
  465. package/serialization/resources/contracts/resources/v2/types/index.js +1 -0
  466. package/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +19 -0
  467. package/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.js +52 -0
  468. package/serialization/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.d.ts +18 -0
  469. package/serialization/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.js +51 -0
  470. package/serialization/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.d.ts +16 -0
  471. package/serialization/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.js +49 -0
  472. package/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.d.ts +16 -0
  473. package/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.js +49 -0
  474. package/serialization/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.d.ts +16 -0
  475. package/serialization/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.js +49 -0
  476. package/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +5 -0
  477. package/serialization/resources/encounterProviders/resources/v2/types/index.js +5 -0
  478. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -0
  479. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +1 -0
  480. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +16 -0
  481. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +16 -0
  482. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  483. package/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -0
  484. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +1 -16
  485. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +1 -16
  486. package/serialization/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.d.ts +11 -0
  487. package/serialization/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.js +41 -0
  488. package/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +3 -2
  489. package/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.js +3 -2
  490. package/serialization/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +1 -0
  491. package/serialization/resources/expectedNetworkStatus/resources/v2/types/index.js +1 -0
  492. package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +29 -0
  493. package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +60 -0
  494. package/serialization/resources/individual/types/index.d.ts +1 -0
  495. package/serialization/resources/individual/types/index.js +1 -0
  496. package/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.d.ts +16 -0
  497. package/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.js +47 -0
  498. package/serialization/resources/serviceFacility/types/index.d.ts +1 -0
  499. package/serialization/resources/serviceFacility/types/index.js +1 -0
  500. package/version.d.ts +1 -1
  501. package/version.js +1 -1
  502. package/api/resources/billingNotes/resources/v2/types/BillingNoteOptional.d.ts +0 -15
  503. package/dist/api/resources/billingNotes/resources/v2/types/BillingNoteOptional.d.ts +0 -15
  504. package/dist/serialization/resources/billingNotes/resources/v2/types/BillingNoteOptional.d.ts +0 -19
  505. package/serialization/resources/billingNotes/resources/v2/types/BillingNoteOptional.d.ts +0 -19
  506. /package/api/resources/{billingNotes/resources/v2/types/BillingNoteOptional.js → commons/types/StreetAddressOptionalBase.js} +0 -0
  507. /package/{dist/api/resources/billingNotes/resources/v2/types/BillingNoteOptional.js → api/resources/commons/types/StreetAddressShortZipOptional.js} +0 -0
@@ -59,193 +59,153 @@ class V1 {
59
59
  this._options = _options;
60
60
  }
61
61
  /**
62
- * Adds a patient. VersionConflictError is returned when the patient's external ID is already in use.
62
+ * Adds a patient. VersionConflictError is returned when the patient's external ID is already in use.
63
63
  *
64
64
  * @param {CandidApi.preEncounter.patients.v1.CreatePatientRequest} request
65
65
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
66
66
  *
67
67
  * @example
68
68
  * await client.preEncounter.patients.v1.create({
69
- * skipDuplicateCheck: true,
70
69
  * body: {
71
70
  * name: {
72
- * family: "string",
73
- * given: ["string"],
74
- * use: "USUAL",
75
- * period: {},
76
- * suffix: "string"
71
+ * family: "family",
72
+ * given: ["given", "given"],
73
+ * use: "USUAL"
77
74
  * },
78
75
  * otherNames: [{
79
- * family: "string",
80
- * given: ["string"],
81
- * use: "USUAL",
82
- * period: {},
83
- * suffix: "string"
76
+ * family: "family",
77
+ * given: ["given", "given"],
78
+ * use: "USUAL"
79
+ * }, {
80
+ * family: "family",
81
+ * given: ["given", "given"],
82
+ * use: "USUAL"
84
83
  * }],
85
- * otherIdentifiers: [{
86
- * value: "string",
87
- * system: "string"
88
- * }],
89
- * gender: "MAN",
90
84
  * birthDate: "2023-01-15",
91
- * socialSecurityNumber: "string",
92
85
  * biologicalSex: "FEMALE",
93
- * sexualOrientation: "HETEROSEXUAL",
94
- * pronouns: ["string"],
95
- * race: "AMERICAN_INDIAN_OR_ALASKA_NATIVE",
96
- * ethnicity: "HISPANIC_OR_LATINO",
97
- * disabilityStatus: "DISABLED",
98
- * maritalStatus: "ANNULLED",
99
- * deceased: "2024-01-15T09:30:00Z",
100
- * multipleBirth: 1,
101
86
  * primaryAddress: {
102
87
  * use: "HOME",
103
- * line: ["string"],
104
- * city: "string",
105
- * state: "string",
106
- * postalCode: "string",
107
- * country: "string",
108
- * period: {}
88
+ * line: ["line", "line"],
89
+ * city: "city",
90
+ * state: "state",
91
+ * postalCode: "postal_code",
92
+ * country: "country"
109
93
  * },
110
94
  * otherAddresses: [{
111
95
  * use: "HOME",
112
- * line: ["string"],
113
- * city: "string",
114
- * state: "string",
115
- * postalCode: "string",
116
- * country: "string",
117
- * period: {}
96
+ * line: ["line", "line"],
97
+ * city: "city",
98
+ * state: "state",
99
+ * postalCode: "postal_code",
100
+ * country: "country"
101
+ * }, {
102
+ * use: "HOME",
103
+ * line: ["line", "line"],
104
+ * city: "city",
105
+ * state: "state",
106
+ * postalCode: "postal_code",
107
+ * country: "country"
118
108
  * }],
119
109
  * primaryTelecom: {
120
- * value: "string",
110
+ * value: "value",
121
111
  * use: "HOME"
122
112
  * },
123
113
  * otherTelecoms: [{
124
- * value: "string",
114
+ * value: "value",
115
+ * use: "HOME"
116
+ * }, {
117
+ * value: "value",
125
118
  * use: "HOME"
126
119
  * }],
127
- * email: "string",
128
- * electronicCommunicationOptIn: true,
129
- * photo: "string",
130
- * language: "string",
131
- * externalProvenance: {
132
- * externalId: "string",
133
- * systemName: "string"
134
- * },
135
120
  * contacts: [{
136
- * relationship: ["SELF"],
121
+ * relationship: ["SELF", "SELF"],
137
122
  * name: {
138
- * family: "string",
139
- * given: ["string"],
140
- * use: "USUAL",
141
- * period: {},
142
- * suffix: "string"
123
+ * family: "family",
124
+ * given: ["given", "given"],
125
+ * use: "USUAL"
143
126
  * },
144
127
  * telecoms: [{
145
- * value: "string",
128
+ * value: "value",
129
+ * use: "HOME"
130
+ * }, {
131
+ * value: "value",
146
132
  * use: "HOME"
147
133
  * }],
148
134
  * addresses: [{
149
135
  * use: "HOME",
150
- * line: ["string"],
151
- * city: "string",
152
- * state: "string",
153
- * postalCode: "string",
154
- * country: "string",
155
- * period: {}
136
+ * line: ["line", "line"],
137
+ * city: "city",
138
+ * state: "state",
139
+ * postalCode: "postal_code",
140
+ * country: "country"
141
+ * }, {
142
+ * use: "HOME",
143
+ * line: ["line", "line"],
144
+ * city: "city",
145
+ * state: "state",
146
+ * postalCode: "postal_code",
147
+ * country: "country"
148
+ * }]
149
+ * }, {
150
+ * relationship: ["SELF", "SELF"],
151
+ * name: {
152
+ * family: "family",
153
+ * given: ["given", "given"],
154
+ * use: "USUAL"
155
+ * },
156
+ * telecoms: [{
157
+ * value: "value",
158
+ * use: "HOME"
159
+ * }, {
160
+ * value: "value",
161
+ * use: "HOME"
156
162
  * }],
157
- * period: {},
158
- * hipaaAuthorization: true
163
+ * addresses: [{
164
+ * use: "HOME",
165
+ * line: ["line", "line"],
166
+ * city: "city",
167
+ * state: "state",
168
+ * postalCode: "postal_code",
169
+ * country: "country"
170
+ * }, {
171
+ * use: "HOME",
172
+ * line: ["line", "line"],
173
+ * city: "city",
174
+ * state: "state",
175
+ * postalCode: "postal_code",
176
+ * country: "country"
177
+ * }]
159
178
  * }],
160
179
  * generalPractitioners: [{
161
180
  * name: {
162
- * family: "string",
163
- * given: ["string"],
164
- * use: "USUAL",
165
- * period: {},
166
- * suffix: "string"
181
+ * family: "family",
182
+ * given: ["given", "given"],
183
+ * use: "USUAL"
167
184
  * },
168
- * type: "PRIMARY",
169
- * npi: "string",
170
185
  * telecoms: [{
171
- * value: "string",
186
+ * value: "value",
172
187
  * use: "HOME"
173
- * }],
174
- * addresses: [],
175
- * period: {},
176
- * canonicalId: CandidApi.preEncounter.CanonicalProviderId("string"),
177
- * fax: "string"
178
- * }],
179
- * filingOrder: {
180
- * coverages: [CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]
181
- * },
182
- * nonInsurancePayers: [CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")],
183
- * nonInsurancePayerAssociations: [{
184
- * id: CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")
185
- * }],
186
- * guarantor: {
187
- * name: {
188
- * family: "string",
189
- * given: ["string"],
190
- * use: "USUAL",
191
- * period: {},
192
- * suffix: "string"
193
- * },
194
- * telecom: {
195
- * value: "string",
196
- * use: "HOME"
197
- * },
198
- * email: "string",
199
- * birthDate: "2023-01-15",
200
- * address: {
201
- * use: "HOME",
202
- * line: ["string"],
203
- * city: "string",
204
- * state: "string",
205
- * postalCode: "string",
206
- * country: "string",
207
- * period: {}
208
- * }
209
- * },
210
- * selfPay: true,
211
- * authorizations: [{
212
- * payerId: CandidApi.preEncounter.PayerId("string"),
213
- * payerName: "string",
214
- * additionalPayerInformation: {},
215
- * authorizationNumber: "string",
216
- * cptCode: "string",
217
- * applyForAllCptCodes: true,
218
- * units: "VISIT",
219
- * quantity: 1,
220
- * period: {},
221
- * notes: "string"
222
- * }],
223
- * referrals: [{
224
- * provider: {
225
- * name: {
226
- * family: "string",
227
- * given: ["string"],
228
- * use: "USUAL",
229
- * period: {},
230
- * suffix: "string"
231
- * },
232
- * type: "PRIMARY",
233
- * npi: "string",
234
- * telecoms: [{
235
- * value: "string",
236
- * use: "HOME"
237
- * }],
238
- * addresses: [],
239
- * period: {},
240
- * canonicalId: CandidApi.preEncounter.CanonicalProviderId("string"),
241
- * fax: "string"
188
+ * }, {
189
+ * value: "value",
190
+ * use: "HOME"
191
+ * }]
192
+ * }, {
193
+ * name: {
194
+ * family: "family",
195
+ * given: ["given", "given"],
196
+ * use: "USUAL"
242
197
  * },
243
- * referralNumber: "string"
198
+ * telecoms: [{
199
+ * value: "value",
200
+ * use: "HOME"
201
+ * }, {
202
+ * value: "value",
203
+ * use: "HOME"
204
+ * }]
244
205
  * }],
245
- * primaryServiceFacilityId: "string",
246
- * doNotInvoiceReason: "BANKRUPTCY",
247
- * noteIds: [CandidApi.preEncounter.NoteId("string")],
248
- * tagIds: [CandidApi.preEncounter.TagId("string")]
206
+ * filingOrder: {
207
+ * coverages: [CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]
208
+ * }
249
209
  * }
250
210
  * })
251
211
  */
@@ -260,7 +220,7 @@ class V1 {
260
220
  const _response = yield core.fetcher({
261
221
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1"),
262
222
  method: "POST",
263
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
223
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
264
224
  contentType: "application/json",
265
225
  queryParameters: _queryParams,
266
226
  requestType: "json",
@@ -303,194 +263,154 @@ class V1 {
303
263
  });
304
264
  }
305
265
  /**
306
- * Adds a patient and hydrates their MRN with a pre-existing MRN. Once this patient is created their MRN will not be editable. BadRequestError is returned when the MRN is greater than 20 characters. VersionConflictError is returned when the patient's external ID is already in use.
266
+ * Adds a patient and hydrates their MRN with a pre-existing MRN. Once this patient is created their MRN will not be editable. BadRequestError is returned when the MRN is greater than 20 characters. VersionConflictError is returned when the patient's external ID is already in use.
307
267
  *
308
268
  * @param {CandidApi.preEncounter.patients.v1.CreatePatientWithMrnRequest} request
309
269
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
310
270
  *
311
271
  * @example
312
272
  * await client.preEncounter.patients.v1.createWithMrn({
313
- * skipDuplicateCheck: true,
314
273
  * body: {
315
- * mrn: "string",
316
274
  * name: {
317
- * family: "string",
318
- * given: ["string"],
319
- * use: "USUAL",
320
- * period: {},
321
- * suffix: "string"
275
+ * family: "family",
276
+ * given: ["given", "given"],
277
+ * use: "USUAL"
322
278
  * },
323
279
  * otherNames: [{
324
- * family: "string",
325
- * given: ["string"],
326
- * use: "USUAL",
327
- * period: {},
328
- * suffix: "string"
329
- * }],
330
- * otherIdentifiers: [{
331
- * value: "string",
332
- * system: "string"
280
+ * family: "family",
281
+ * given: ["given", "given"],
282
+ * use: "USUAL"
283
+ * }, {
284
+ * family: "family",
285
+ * given: ["given", "given"],
286
+ * use: "USUAL"
333
287
  * }],
334
- * gender: "MAN",
335
288
  * birthDate: "2023-01-15",
336
- * socialSecurityNumber: "string",
337
289
  * biologicalSex: "FEMALE",
338
- * sexualOrientation: "HETEROSEXUAL",
339
- * pronouns: ["string"],
340
- * race: "AMERICAN_INDIAN_OR_ALASKA_NATIVE",
341
- * ethnicity: "HISPANIC_OR_LATINO",
342
- * disabilityStatus: "DISABLED",
343
- * maritalStatus: "ANNULLED",
344
- * deceased: "2024-01-15T09:30:00Z",
345
- * multipleBirth: 1,
346
290
  * primaryAddress: {
347
291
  * use: "HOME",
348
- * line: ["string"],
349
- * city: "string",
350
- * state: "string",
351
- * postalCode: "string",
352
- * country: "string",
353
- * period: {}
292
+ * line: ["line", "line"],
293
+ * city: "city",
294
+ * state: "state",
295
+ * postalCode: "postal_code",
296
+ * country: "country"
354
297
  * },
355
298
  * otherAddresses: [{
356
299
  * use: "HOME",
357
- * line: ["string"],
358
- * city: "string",
359
- * state: "string",
360
- * postalCode: "string",
361
- * country: "string",
362
- * period: {}
300
+ * line: ["line", "line"],
301
+ * city: "city",
302
+ * state: "state",
303
+ * postalCode: "postal_code",
304
+ * country: "country"
305
+ * }, {
306
+ * use: "HOME",
307
+ * line: ["line", "line"],
308
+ * city: "city",
309
+ * state: "state",
310
+ * postalCode: "postal_code",
311
+ * country: "country"
363
312
  * }],
364
313
  * primaryTelecom: {
365
- * value: "string",
314
+ * value: "value",
366
315
  * use: "HOME"
367
316
  * },
368
317
  * otherTelecoms: [{
369
- * value: "string",
318
+ * value: "value",
319
+ * use: "HOME"
320
+ * }, {
321
+ * value: "value",
370
322
  * use: "HOME"
371
323
  * }],
372
- * email: "string",
373
- * electronicCommunicationOptIn: true,
374
- * photo: "string",
375
- * language: "string",
376
- * externalProvenance: {
377
- * externalId: "string",
378
- * systemName: "string"
379
- * },
380
324
  * contacts: [{
381
- * relationship: ["SELF"],
325
+ * relationship: ["SELF", "SELF"],
382
326
  * name: {
383
- * family: "string",
384
- * given: ["string"],
385
- * use: "USUAL",
386
- * period: {},
387
- * suffix: "string"
327
+ * family: "family",
328
+ * given: ["given", "given"],
329
+ * use: "USUAL"
388
330
  * },
389
331
  * telecoms: [{
390
- * value: "string",
332
+ * value: "value",
333
+ * use: "HOME"
334
+ * }, {
335
+ * value: "value",
391
336
  * use: "HOME"
392
337
  * }],
393
338
  * addresses: [{
394
339
  * use: "HOME",
395
- * line: ["string"],
396
- * city: "string",
397
- * state: "string",
398
- * postalCode: "string",
399
- * country: "string",
400
- * period: {}
340
+ * line: ["line", "line"],
341
+ * city: "city",
342
+ * state: "state",
343
+ * postalCode: "postal_code",
344
+ * country: "country"
345
+ * }, {
346
+ * use: "HOME",
347
+ * line: ["line", "line"],
348
+ * city: "city",
349
+ * state: "state",
350
+ * postalCode: "postal_code",
351
+ * country: "country"
352
+ * }]
353
+ * }, {
354
+ * relationship: ["SELF", "SELF"],
355
+ * name: {
356
+ * family: "family",
357
+ * given: ["given", "given"],
358
+ * use: "USUAL"
359
+ * },
360
+ * telecoms: [{
361
+ * value: "value",
362
+ * use: "HOME"
363
+ * }, {
364
+ * value: "value",
365
+ * use: "HOME"
401
366
  * }],
402
- * period: {},
403
- * hipaaAuthorization: true
367
+ * addresses: [{
368
+ * use: "HOME",
369
+ * line: ["line", "line"],
370
+ * city: "city",
371
+ * state: "state",
372
+ * postalCode: "postal_code",
373
+ * country: "country"
374
+ * }, {
375
+ * use: "HOME",
376
+ * line: ["line", "line"],
377
+ * city: "city",
378
+ * state: "state",
379
+ * postalCode: "postal_code",
380
+ * country: "country"
381
+ * }]
404
382
  * }],
405
383
  * generalPractitioners: [{
406
384
  * name: {
407
- * family: "string",
408
- * given: ["string"],
409
- * use: "USUAL",
410
- * period: {},
411
- * suffix: "string"
385
+ * family: "family",
386
+ * given: ["given", "given"],
387
+ * use: "USUAL"
412
388
  * },
413
- * type: "PRIMARY",
414
- * npi: "string",
415
389
  * telecoms: [{
416
- * value: "string",
390
+ * value: "value",
417
391
  * use: "HOME"
418
- * }],
419
- * addresses: [],
420
- * period: {},
421
- * canonicalId: CandidApi.preEncounter.CanonicalProviderId("string"),
422
- * fax: "string"
392
+ * }, {
393
+ * value: "value",
394
+ * use: "HOME"
395
+ * }]
396
+ * }, {
397
+ * name: {
398
+ * family: "family",
399
+ * given: ["given", "given"],
400
+ * use: "USUAL"
401
+ * },
402
+ * telecoms: [{
403
+ * value: "value",
404
+ * use: "HOME"
405
+ * }, {
406
+ * value: "value",
407
+ * use: "HOME"
408
+ * }]
423
409
  * }],
424
410
  * filingOrder: {
425
- * coverages: [CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]
426
- * },
427
- * nonInsurancePayers: [CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")],
428
- * nonInsurancePayerAssociations: [{
429
- * id: CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")
430
- * }],
431
- * guarantor: {
432
- * name: {
433
- * family: "string",
434
- * given: ["string"],
435
- * use: "USUAL",
436
- * period: {},
437
- * suffix: "string"
438
- * },
439
- * telecom: {
440
- * value: "string",
441
- * use: "HOME"
442
- * },
443
- * email: "string",
444
- * birthDate: "2023-01-15",
445
- * address: {
446
- * use: "HOME",
447
- * line: ["string"],
448
- * city: "string",
449
- * state: "string",
450
- * postalCode: "string",
451
- * country: "string",
452
- * period: {}
453
- * }
411
+ * coverages: [CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]
454
412
  * },
455
- * selfPay: true,
456
- * authorizations: [{
457
- * payerId: CandidApi.preEncounter.PayerId("string"),
458
- * payerName: "string",
459
- * additionalPayerInformation: {},
460
- * authorizationNumber: "string",
461
- * cptCode: "string",
462
- * applyForAllCptCodes: true,
463
- * units: "VISIT",
464
- * quantity: 1,
465
- * period: {},
466
- * notes: "string"
467
- * }],
468
- * referrals: [{
469
- * provider: {
470
- * name: {
471
- * family: "string",
472
- * given: ["string"],
473
- * use: "USUAL",
474
- * period: {},
475
- * suffix: "string"
476
- * },
477
- * type: "PRIMARY",
478
- * npi: "string",
479
- * telecoms: [{
480
- * value: "string",
481
- * use: "HOME"
482
- * }],
483
- * addresses: [],
484
- * period: {},
485
- * canonicalId: CandidApi.preEncounter.CanonicalProviderId("string"),
486
- * fax: "string"
487
- * },
488
- * referralNumber: "string"
489
- * }],
490
- * primaryServiceFacilityId: "string",
491
- * doNotInvoiceReason: "BANKRUPTCY",
492
- * noteIds: [CandidApi.preEncounter.NoteId("string")],
493
- * tagIds: [CandidApi.preEncounter.TagId("string")]
413
+ * mrn: "mrn"
494
414
  * }
495
415
  * })
496
416
  */
@@ -505,7 +425,7 @@ class V1 {
505
425
  const _response = yield core.fetcher({
506
426
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1/with_mrn"),
507
427
  method: "POST",
508
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
428
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
509
429
  contentType: "application/json",
510
430
  queryParameters: _queryParams,
511
431
  requestType: "json",
@@ -555,13 +475,7 @@ class V1 {
555
475
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
556
476
  *
557
477
  * @example
558
- * await client.preEncounter.patients.v1.getMulti({
559
- * limit: 1,
560
- * mrn: "string",
561
- * pageToken: CandidApi.preEncounter.PageToken("string"),
562
- * sortField: CandidApi.preEncounter.patients.v1.PatientSortField("string"),
563
- * sortDirection: "asc"
564
- * })
478
+ * await client.preEncounter.patients.v1.getMulti()
565
479
  */
566
480
  getMulti() {
567
481
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
@@ -588,7 +502,7 @@ class V1 {
588
502
  const _response = yield core.fetcher({
589
503
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1/get_multi"),
590
504
  method: "GET",
591
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
505
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
592
506
  contentType: "application/json",
593
507
  queryParameters: _queryParams,
594
508
  requestType: "json",
@@ -614,14 +528,14 @@ class V1 {
614
528
  });
615
529
  }
616
530
  /**
617
- * Searches for referring providers that match the query parameters. The search is case-insensitive, supports fuzzy matching, and matches against provider name and NPI. The search criteria must be an alphanumeric string, and the search is limited to the first 20 results.
531
+ * Searches for referring providers that match the query parameters. The search is case-insensitive, supports fuzzy matching, and matches against provider name and NPI. The search criteria must be an alphanumeric string, and the search is limited to the first 20 results.
618
532
  *
619
533
  * @param {CandidApi.preEncounter.patients.v1.SearchProvidersRequest} request
620
534
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
621
535
  *
622
536
  * @example
623
537
  * await client.preEncounter.patients.v1.searchProviders({
624
- * searchCriteria: "string"
538
+ * searchCriteria: "search_criteria"
625
539
  * })
626
540
  */
627
541
  searchProviders(request, requestOptions) {
@@ -633,7 +547,7 @@ class V1 {
633
547
  const _response = yield core.fetcher({
634
548
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1/search_providers"),
635
549
  method: "GET",
636
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
550
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
637
551
  contentType: "application/json",
638
552
  queryParameters: _queryParams,
639
553
  requestType: "json",
@@ -665,7 +579,7 @@ class V1 {
665
579
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
666
580
  *
667
581
  * @example
668
- * await client.preEncounter.patients.v1.get(CandidApi.preEncounter.PatientId("string"))
582
+ * await client.preEncounter.patients.v1.get(CandidApi.preEncounter.PatientId("id"))
669
583
  */
670
584
  get(id, requestOptions) {
671
585
  return __awaiter(this, void 0, void 0, function* () {
@@ -673,7 +587,7 @@ class V1 {
673
587
  const _response = yield core.fetcher({
674
588
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}`),
675
589
  method: "GET",
676
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
590
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
677
591
  contentType: "application/json",
678
592
  requestType: "json",
679
593
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -712,13 +626,13 @@ class V1 {
712
626
  });
713
627
  }
714
628
  /**
715
- * Gets a patient along with it's full history. The return list is ordered by version ascending.
629
+ * Gets a patient along with it's full history. The return list is ordered by version ascending.
716
630
  *
717
631
  * @param {CandidApi.preEncounter.PatientId} id
718
632
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
719
633
  *
720
634
  * @example
721
- * await client.preEncounter.patients.v1.getHistory(CandidApi.preEncounter.PatientId("string"))
635
+ * await client.preEncounter.patients.v1.getHistory(CandidApi.preEncounter.PatientId("id"))
722
636
  */
723
637
  getHistory(id, requestOptions) {
724
638
  return __awaiter(this, void 0, void 0, function* () {
@@ -726,7 +640,7 @@ class V1 {
726
640
  const _response = yield core.fetcher({
727
641
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/history`),
728
642
  method: "GET",
729
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
643
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
730
644
  contentType: "application/json",
731
645
  requestType: "json",
732
646
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -765,7 +679,7 @@ class V1 {
765
679
  });
766
680
  }
767
681
  /**
768
- * Updates a patient. The path must contain the most recent version to prevent race conditions. Updating historic versions is not supported.
682
+ * Updates a patient. The path must contain the most recent version to prevent race conditions. Updating historic versions is not supported.
769
683
  *
770
684
  * @param {CandidApi.preEncounter.PatientId} id
771
685
  * @param {string} version
@@ -773,185 +687,146 @@ class V1 {
773
687
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
774
688
  *
775
689
  * @example
776
- * await client.preEncounter.patients.v1.update(CandidApi.preEncounter.PatientId("string"), "string", {
690
+ * await client.preEncounter.patients.v1.update(CandidApi.preEncounter.PatientId("id"), "version", {
777
691
  * name: {
778
- * family: "string",
779
- * given: ["string"],
780
- * use: "USUAL",
781
- * period: {},
782
- * suffix: "string"
692
+ * family: "family",
693
+ * given: ["given", "given"],
694
+ * use: "USUAL"
783
695
  * },
784
696
  * otherNames: [{
785
- * family: "string",
786
- * given: ["string"],
787
- * use: "USUAL",
788
- * period: {},
789
- * suffix: "string"
790
- * }],
791
- * otherIdentifiers: [{
792
- * value: "string",
793
- * system: "string"
697
+ * family: "family",
698
+ * given: ["given", "given"],
699
+ * use: "USUAL"
700
+ * }, {
701
+ * family: "family",
702
+ * given: ["given", "given"],
703
+ * use: "USUAL"
794
704
  * }],
795
- * gender: "MAN",
796
705
  * birthDate: "2023-01-15",
797
- * socialSecurityNumber: "string",
798
706
  * biologicalSex: "FEMALE",
799
- * sexualOrientation: "HETEROSEXUAL",
800
- * pronouns: ["string"],
801
- * race: "AMERICAN_INDIAN_OR_ALASKA_NATIVE",
802
- * ethnicity: "HISPANIC_OR_LATINO",
803
- * disabilityStatus: "DISABLED",
804
- * maritalStatus: "ANNULLED",
805
- * deceased: "2024-01-15T09:30:00Z",
806
- * multipleBirth: 1,
807
707
  * primaryAddress: {
808
708
  * use: "HOME",
809
- * line: ["string"],
810
- * city: "string",
811
- * state: "string",
812
- * postalCode: "string",
813
- * country: "string",
814
- * period: {}
709
+ * line: ["line", "line"],
710
+ * city: "city",
711
+ * state: "state",
712
+ * postalCode: "postal_code",
713
+ * country: "country"
815
714
  * },
816
715
  * otherAddresses: [{
817
716
  * use: "HOME",
818
- * line: ["string"],
819
- * city: "string",
820
- * state: "string",
821
- * postalCode: "string",
822
- * country: "string",
823
- * period: {}
717
+ * line: ["line", "line"],
718
+ * city: "city",
719
+ * state: "state",
720
+ * postalCode: "postal_code",
721
+ * country: "country"
722
+ * }, {
723
+ * use: "HOME",
724
+ * line: ["line", "line"],
725
+ * city: "city",
726
+ * state: "state",
727
+ * postalCode: "postal_code",
728
+ * country: "country"
824
729
  * }],
825
730
  * primaryTelecom: {
826
- * value: "string",
731
+ * value: "value",
827
732
  * use: "HOME"
828
733
  * },
829
734
  * otherTelecoms: [{
830
- * value: "string",
735
+ * value: "value",
736
+ * use: "HOME"
737
+ * }, {
738
+ * value: "value",
831
739
  * use: "HOME"
832
740
  * }],
833
- * email: "string",
834
- * electronicCommunicationOptIn: true,
835
- * photo: "string",
836
- * language: "string",
837
- * externalProvenance: {
838
- * externalId: "string",
839
- * systemName: "string"
840
- * },
841
741
  * contacts: [{
842
- * relationship: ["SELF"],
742
+ * relationship: ["SELF", "SELF"],
843
743
  * name: {
844
- * family: "string",
845
- * given: ["string"],
846
- * use: "USUAL",
847
- * period: {},
848
- * suffix: "string"
744
+ * family: "family",
745
+ * given: ["given", "given"],
746
+ * use: "USUAL"
849
747
  * },
850
748
  * telecoms: [{
851
- * value: "string",
749
+ * value: "value",
750
+ * use: "HOME"
751
+ * }, {
752
+ * value: "value",
852
753
  * use: "HOME"
853
754
  * }],
854
755
  * addresses: [{
855
756
  * use: "HOME",
856
- * line: ["string"],
857
- * city: "string",
858
- * state: "string",
859
- * postalCode: "string",
860
- * country: "string",
861
- * period: {}
757
+ * line: ["line", "line"],
758
+ * city: "city",
759
+ * state: "state",
760
+ * postalCode: "postal_code",
761
+ * country: "country"
762
+ * }, {
763
+ * use: "HOME",
764
+ * line: ["line", "line"],
765
+ * city: "city",
766
+ * state: "state",
767
+ * postalCode: "postal_code",
768
+ * country: "country"
769
+ * }]
770
+ * }, {
771
+ * relationship: ["SELF", "SELF"],
772
+ * name: {
773
+ * family: "family",
774
+ * given: ["given", "given"],
775
+ * use: "USUAL"
776
+ * },
777
+ * telecoms: [{
778
+ * value: "value",
779
+ * use: "HOME"
780
+ * }, {
781
+ * value: "value",
782
+ * use: "HOME"
862
783
  * }],
863
- * period: {},
864
- * hipaaAuthorization: true
784
+ * addresses: [{
785
+ * use: "HOME",
786
+ * line: ["line", "line"],
787
+ * city: "city",
788
+ * state: "state",
789
+ * postalCode: "postal_code",
790
+ * country: "country"
791
+ * }, {
792
+ * use: "HOME",
793
+ * line: ["line", "line"],
794
+ * city: "city",
795
+ * state: "state",
796
+ * postalCode: "postal_code",
797
+ * country: "country"
798
+ * }]
865
799
  * }],
866
800
  * generalPractitioners: [{
867
801
  * name: {
868
- * family: "string",
869
- * given: ["string"],
870
- * use: "USUAL",
871
- * period: {},
872
- * suffix: "string"
802
+ * family: "family",
803
+ * given: ["given", "given"],
804
+ * use: "USUAL"
873
805
  * },
874
- * type: "PRIMARY",
875
- * npi: "string",
876
806
  * telecoms: [{
877
- * value: "string",
807
+ * value: "value",
878
808
  * use: "HOME"
879
- * }],
880
- * addresses: [],
881
- * period: {},
882
- * canonicalId: CandidApi.preEncounter.CanonicalProviderId("string"),
883
- * fax: "string"
884
- * }],
885
- * filingOrder: {
886
- * coverages: [CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]
887
- * },
888
- * nonInsurancePayers: [CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")],
889
- * nonInsurancePayerAssociations: [{
890
- * id: CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")
891
- * }],
892
- * guarantor: {
893
- * name: {
894
- * family: "string",
895
- * given: ["string"],
896
- * use: "USUAL",
897
- * period: {},
898
- * suffix: "string"
899
- * },
900
- * telecom: {
901
- * value: "string",
902
- * use: "HOME"
903
- * },
904
- * email: "string",
905
- * birthDate: "2023-01-15",
906
- * address: {
907
- * use: "HOME",
908
- * line: ["string"],
909
- * city: "string",
910
- * state: "string",
911
- * postalCode: "string",
912
- * country: "string",
913
- * period: {}
914
- * }
915
- * },
916
- * selfPay: true,
917
- * authorizations: [{
918
- * payerId: CandidApi.preEncounter.PayerId("string"),
919
- * payerName: "string",
920
- * additionalPayerInformation: {},
921
- * authorizationNumber: "string",
922
- * cptCode: "string",
923
- * applyForAllCptCodes: true,
924
- * units: "VISIT",
925
- * quantity: 1,
926
- * period: {},
927
- * notes: "string"
928
- * }],
929
- * referrals: [{
930
- * provider: {
931
- * name: {
932
- * family: "string",
933
- * given: ["string"],
934
- * use: "USUAL",
935
- * period: {},
936
- * suffix: "string"
937
- * },
938
- * type: "PRIMARY",
939
- * npi: "string",
940
- * telecoms: [{
941
- * value: "string",
942
- * use: "HOME"
943
- * }],
944
- * addresses: [],
945
- * period: {},
946
- * canonicalId: CandidApi.preEncounter.CanonicalProviderId("string"),
947
- * fax: "string"
809
+ * }, {
810
+ * value: "value",
811
+ * use: "HOME"
812
+ * }]
813
+ * }, {
814
+ * name: {
815
+ * family: "family",
816
+ * given: ["given", "given"],
817
+ * use: "USUAL"
948
818
  * },
949
- * referralNumber: "string"
819
+ * telecoms: [{
820
+ * value: "value",
821
+ * use: "HOME"
822
+ * }, {
823
+ * value: "value",
824
+ * use: "HOME"
825
+ * }]
950
826
  * }],
951
- * primaryServiceFacilityId: "string",
952
- * doNotInvoiceReason: "BANKRUPTCY",
953
- * noteIds: [CandidApi.preEncounter.NoteId("string")],
954
- * tagIds: [CandidApi.preEncounter.TagId("string")]
827
+ * filingOrder: {
828
+ * coverages: [CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]
829
+ * }
955
830
  * })
956
831
  */
957
832
  update(id, version, request, requestOptions) {
@@ -960,7 +835,7 @@ class V1 {
960
835
  const _response = yield core.fetcher({
961
836
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
962
837
  method: "PUT",
963
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
838
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
964
839
  contentType: "application/json",
965
840
  requestType: "json",
966
841
  body: serializers.preEncounter.patients.v1.MutablePatient.jsonOrThrow(request, {
@@ -1003,14 +878,14 @@ class V1 {
1003
878
  });
1004
879
  }
1005
880
  /**
1006
- * Sets a patient as deactivated. The path must contain the most recent version plus 1 to prevent race conditions. Deactivating historic versions is not supported.
881
+ * Sets a patient as deactivated. The path must contain the most recent version plus 1 to prevent race conditions. Deactivating historic versions is not supported.
1007
882
  *
1008
883
  * @param {CandidApi.preEncounter.PatientId} id
1009
884
  * @param {string} version
1010
885
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
1011
886
  *
1012
887
  * @example
1013
- * await client.preEncounter.patients.v1.deactivate(CandidApi.preEncounter.PatientId("string"), "string")
888
+ * await client.preEncounter.patients.v1.deactivate(CandidApi.preEncounter.PatientId("id"), "version")
1014
889
  */
1015
890
  deactivate(id, version, requestOptions) {
1016
891
  return __awaiter(this, void 0, void 0, function* () {
@@ -1018,7 +893,7 @@ class V1 {
1018
893
  const _response = yield core.fetcher({
1019
894
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
1020
895
  method: "DELETE",
1021
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
896
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1022
897
  contentType: "application/json",
1023
898
  requestType: "json",
1024
899
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1053,14 +928,14 @@ class V1 {
1053
928
  });
1054
929
  }
1055
930
  /**
1056
- * Removes the deactivated flag for a patient. The path must contain the most recent version plus 1 to prevent race conditions. Reactivating historic versions is not supported.
931
+ * Removes the deactivated flag for a patient. The path must contain the most recent version plus 1 to prevent race conditions. Reactivating historic versions is not supported.
1057
932
  *
1058
933
  * @param {CandidApi.preEncounter.PatientId} id
1059
934
  * @param {string} version
1060
935
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
1061
936
  *
1062
937
  * @example
1063
- * await client.preEncounter.patients.v1.reactivate(CandidApi.preEncounter.PatientId("string"), "string")
938
+ * await client.preEncounter.patients.v1.reactivate(CandidApi.preEncounter.PatientId("id"), "version")
1064
939
  */
1065
940
  reactivate(id, version, requestOptions) {
1066
941
  return __awaiter(this, void 0, void 0, function* () {
@@ -1068,7 +943,7 @@ class V1 {
1068
943
  const _response = yield core.fetcher({
1069
944
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
1070
945
  method: "PATCH",
1071
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
946
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1072
947
  contentType: "application/json",
1073
948
  requestType: "json",
1074
949
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1109,10 +984,7 @@ class V1 {
1109
984
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
1110
985
  *
1111
986
  * @example
1112
- * await client.preEncounter.patients.v1.search({
1113
- * mrn: "string",
1114
- * similarNameOrdering: "string"
1115
- * })
987
+ * await client.preEncounter.patients.v1.search()
1116
988
  */
1117
989
  search() {
1118
990
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
@@ -1128,7 +1000,7 @@ class V1 {
1128
1000
  const _response = yield core.fetcher({
1129
1001
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1"),
1130
1002
  method: "GET",
1131
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1003
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1132
1004
  contentType: "application/json",
1133
1005
  queryParameters: _queryParams,
1134
1006
  requestType: "json",
@@ -1154,7 +1026,7 @@ class V1 {
1154
1026
  });
1155
1027
  }
1156
1028
  /**
1157
- * Scans up to 100 patient updates. The since query parameter is inclusive, and the result list is ordered by updatedAt ascending.
1029
+ * Scans up to 100 patient updates. The since query parameter is inclusive, and the result list is ordered by updatedAt ascending.
1158
1030
  *
1159
1031
  * @param {CandidApi.preEncounter.patients.v1.PatientScanRequest} request
1160
1032
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
@@ -1173,7 +1045,7 @@ class V1 {
1173
1045
  const _response = yield core.fetcher({
1174
1046
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1/updates/scan"),
1175
1047
  method: "GET",
1176
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1", "User-Agent": "candidhealth/0.43.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1048
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1177
1049
  contentType: "application/json",
1178
1050
  queryParameters: _queryParams,
1179
1051
  requestType: "json",