candidhealth 1.8.1 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1057) hide show
  1. package/Client.d.ts +5 -1
  2. package/Client.js +10 -4
  3. package/README.md +28 -3
  4. package/api/resources/auth/client/Client.d.ts +2 -10
  5. package/api/resources/auth/resources/default/client/Client.d.ts +7 -14
  6. package/api/resources/auth/resources/default/client/Client.js +39 -68
  7. package/api/resources/auth/resources/default/client/index.d.ts +1 -2
  8. package/api/resources/auth/resources/default/client/index.js +5 -6
  9. package/api/resources/auth/resources/default/client/requests/index.d.ts +0 -1
  10. package/api/resources/billingNotes/client/Client.d.ts +2 -10
  11. package/api/resources/billingNotes/resources/v2/client/Client.d.ts +13 -5
  12. package/api/resources/billingNotes/resources/v2/client/Client.js +100 -54
  13. package/api/resources/billingNotes/resources/v2/client/index.d.ts +1 -1
  14. package/api/resources/billingNotes/resources/v2/client/index.js +4 -4
  15. package/api/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +2 -1
  16. package/api/resources/billingNotes/resources/v2/types/BillingNote.d.ts +1 -1
  17. package/api/resources/chargeCapture/client/Client.d.ts +2 -10
  18. package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +17 -7
  19. package/api/resources/chargeCapture/resources/v1/client/Client.js +208 -116
  20. package/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -1
  21. package/api/resources/chargeCapture/resources/v1/client/index.js +4 -4
  22. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +37 -111
  23. package/api/resources/chargeCaptureBundles/client/Client.d.ts +2 -10
  24. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +13 -5
  25. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +115 -65
  26. package/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -1
  27. package/api/resources/chargeCaptureBundles/resources/v1/client/index.js +4 -4
  28. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureClaimCreationsRequest.d.ts +21 -63
  29. package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +2 -2
  30. package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +2 -2
  31. package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +4 -4
  32. package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +4 -4
  33. package/api/resources/claims/types/Claim.d.ts +5 -5
  34. package/api/resources/contracts/client/Client.d.ts +2 -10
  35. package/api/resources/contracts/resources/v2/client/Client.d.ts +30 -7
  36. package/api/resources/contracts/resources/v2/client/Client.js +179 -93
  37. package/api/resources/contracts/resources/v2/client/index.d.ts +1 -1
  38. package/api/resources/contracts/resources/v2/client/index.js +4 -4
  39. package/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +15 -1
  40. package/api/resources/contracts/resources/v2/client/requests/GetMultiContractsRequest.d.ts +5 -15
  41. package/api/resources/credentialing/client/Client.d.ts +2 -10
  42. package/api/resources/credentialing/resources/v2/client/Client.d.ts +25 -11
  43. package/api/resources/credentialing/resources/v2/client/Client.js +374 -211
  44. package/api/resources/credentialing/resources/v2/client/index.d.ts +1 -1
  45. package/api/resources/credentialing/resources/v2/client/index.js +4 -4
  46. package/api/resources/credentialing/resources/v2/client/requests/GetAllFacilityCredentialingSpansRequest.d.ts +4 -12
  47. package/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +5 -15
  48. package/api/resources/customSchemas/client/Client.d.ts +2 -10
  49. package/api/resources/customSchemas/resources/v1/client/Client.d.ts +13 -5
  50. package/api/resources/customSchemas/resources/v1/client/Client.js +154 -89
  51. package/api/resources/customSchemas/resources/v1/client/index.d.ts +1 -1
  52. package/api/resources/customSchemas/resources/v1/client/index.js +4 -4
  53. package/api/resources/diagnoses/client/Client.d.ts +13 -6
  54. package/api/resources/diagnoses/client/Client.js +101 -56
  55. package/api/resources/diagnoses/client/index.d.ts +1 -1
  56. package/api/resources/diagnoses/client/index.js +4 -4
  57. package/api/resources/diagnoses/types/Diagnosis.d.ts +2 -2
  58. package/api/resources/eligibility/client/Client.d.ts +2 -10
  59. package/api/resources/eligibility/resources/v2/client/Client.d.ts +11 -4
  60. package/api/resources/eligibility/resources/v2/client/Client.js +102 -52
  61. package/api/resources/encounterAttachments/client/Client.d.ts +2 -10
  62. package/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +11 -4
  63. package/api/resources/encounterAttachments/resources/v1/client/Client.js +74 -37
  64. package/api/resources/encounterAttachments/resources/v1/client/index.d.ts +1 -1
  65. package/api/resources/encounterAttachments/resources/v1/client/index.js +4 -4
  66. package/api/resources/encounterProviders/client/Client.d.ts +2 -10
  67. package/api/resources/encounterProviders/resources/v2/client/Client.d.ts +29 -13
  68. package/api/resources/encounterProviders/resources/v2/client/Client.js +449 -238
  69. package/api/resources/encounters/client/Client.d.ts +2 -10
  70. package/api/resources/encounters/resources/v4/client/Client.d.ts +50 -135
  71. package/api/resources/encounters/resources/v4/client/Client.js +207 -390
  72. package/api/resources/encounters/resources/v4/client/index.d.ts +1 -4
  73. package/api/resources/encounters/resources/v4/client/index.js +5 -8
  74. package/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +14 -40
  75. package/api/resources/encounters/resources/v4/types/ClinicalNoteCategory.d.ts +1 -1
  76. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +12 -12
  77. package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +12 -12
  78. package/api/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.d.ts +2 -3
  79. package/api/resources/encountersUniversal/types/index.d.ts +0 -3
  80. package/api/resources/encountersUniversal/types/index.js +0 -3
  81. package/api/resources/expectedNetworkStatus/client/Client.d.ts +2 -10
  82. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +7 -2
  83. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +27 -16
  84. package/api/resources/expectedNetworkStatus/resources/v1/client/index.d.ts +1 -1
  85. package/api/resources/expectedNetworkStatus/resources/v1/client/index.js +4 -4
  86. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +9 -3
  87. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +79 -46
  88. package/api/resources/exports/client/Client.d.ts +2 -10
  89. package/api/resources/exports/resources/v3/client/Client.d.ts +7 -2
  90. package/api/resources/exports/resources/v3/client/Client.js +39 -27
  91. package/api/resources/exports/resources/v3/client/index.d.ts +1 -1
  92. package/api/resources/exports/resources/v3/client/index.js +4 -4
  93. package/api/resources/exports/resources/v3/types/GetExportsResponse.d.ts +2 -2
  94. package/api/resources/externalPaymentAccountConfig/client/Client.d.ts +2 -10
  95. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +7 -2
  96. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +28 -20
  97. package/api/resources/externalPaymentAccountConfig/resources/v1/client/index.d.ts +1 -1
  98. package/api/resources/externalPaymentAccountConfig/resources/v1/client/index.js +4 -4
  99. package/api/resources/externalPaymentAccountConfig/resources/v1/client/requests/GetExternalPaymentAccountConfigsRequest.d.ts +1 -3
  100. package/api/resources/feeSchedules/client/Client.d.ts +2 -10
  101. package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +29 -13
  102. package/api/resources/feeSchedules/resources/v3/client/Client.js +381 -211
  103. package/api/resources/feeSchedules/resources/v3/client/index.d.ts +1 -1
  104. package/api/resources/feeSchedules/resources/v3/client/index.js +4 -4
  105. package/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -3
  106. package/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +2 -6
  107. package/api/resources/guarantor/client/Client.d.ts +2 -10
  108. package/api/resources/guarantor/resources/v1/client/Client.d.ts +11 -4
  109. package/api/resources/guarantor/resources/v1/client/Client.js +91 -50
  110. package/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +1 -1
  111. package/api/resources/healthCareCodeInformation/client/Client.d.ts +2 -10
  112. package/api/resources/healthCareCodeInformation/resources/v1/client/Client.d.ts +9 -3
  113. package/api/resources/healthCareCodeInformation/resources/v1/client/Client.js +78 -47
  114. package/api/resources/healthCareCodeInformation/resources/v1/types/ConditionCode.d.ts +433 -40
  115. package/api/resources/healthCareCodeInformation/resources/v1/types/ConditionCode.js +95 -1
  116. package/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationGetAllResponse.d.ts +12 -1
  117. package/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationNew.d.ts +0 -52
  118. package/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationUpdate.d.ts +14 -1
  119. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceCode.d.ts +3 -0
  120. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformation.d.ts +6 -0
  121. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.d.ts +24 -5
  122. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.js +5 -1
  123. package/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformation.d.ts +6 -0
  124. package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformation.d.ts +6 -0
  125. package/api/resources/healthCareCodeInformation/resources/v1/types/Rd8Date.d.ts +12 -0
  126. package/api/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +0 -16
  127. package/api/resources/healthCareCodeInformation/resources/v1/types/index.js +0 -16
  128. package/api/resources/importInvoice/client/Client.d.ts +2 -10
  129. package/api/resources/importInvoice/resources/v1/client/Client.d.ts +13 -5
  130. package/api/resources/importInvoice/resources/v1/client/Client.js +142 -82
  131. package/api/resources/importInvoice/resources/v1/client/index.d.ts +1 -1
  132. package/api/resources/importInvoice/resources/v1/client/index.js +4 -4
  133. package/api/resources/importInvoice/resources/v1/client/requests/SearchImportedInvoicesRequest.d.ts +7 -21
  134. package/api/resources/individual/types/Patient.d.ts +1 -1
  135. package/api/resources/insuranceAdjudications/client/Client.d.ts +2 -10
  136. package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +11 -4
  137. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +86 -47
  138. package/api/resources/insurancePayments/client/Client.d.ts +2 -10
  139. package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +9 -3
  140. package/api/resources/insurancePayments/resources/v1/client/Client.js +78 -50
  141. package/api/resources/insurancePayments/resources/v1/client/index.d.ts +1 -1
  142. package/api/resources/insurancePayments/resources/v1/client/index.js +4 -4
  143. package/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +3 -9
  144. package/api/resources/insuranceRefunds/client/Client.d.ts +2 -10
  145. package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +15 -6
  146. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +188 -108
  147. package/api/resources/insuranceRefunds/resources/v1/client/index.d.ts +1 -1
  148. package/api/resources/insuranceRefunds/resources/v1/client/index.js +4 -4
  149. package/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.d.ts +3 -9
  150. package/api/resources/medicationDispense/client/Client.d.ts +2 -10
  151. package/api/resources/medicationDispense/resources/v1/client/Client.d.ts +7 -2
  152. package/api/resources/medicationDispense/resources/v1/client/Client.js +39 -24
  153. package/api/resources/nonInsurancePayerPayments/client/Client.d.ts +2 -10
  154. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.d.ts +15 -6
  155. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +188 -108
  156. package/api/resources/nonInsurancePayerPayments/resources/v1/client/index.d.ts +1 -1
  157. package/api/resources/nonInsurancePayerPayments/resources/v1/client/index.js +4 -4
  158. package/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/GetMultiNonInsurancePayerPaymentRequest.d.ts +3 -9
  159. package/api/resources/nonInsurancePayerRefunds/client/Client.d.ts +2 -10
  160. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +15 -6
  161. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +188 -108
  162. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/index.d.ts +1 -1
  163. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/index.js +4 -4
  164. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/GetMultiNonInsurancePayerRefundsRequest.d.ts +3 -9
  165. package/api/resources/nonInsurancePayers/client/Client.d.ts +2 -10
  166. package/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +19 -8
  167. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +252 -143
  168. package/api/resources/nonInsurancePayers/resources/v1/client/index.d.ts +1 -1
  169. package/api/resources/nonInsurancePayers/resources/v1/client/index.js +4 -4
  170. package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +2 -6
  171. package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.d.ts +3 -9
  172. package/api/resources/organizationProviders/client/Client.d.ts +2 -10
  173. package/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +3 -1
  174. package/api/resources/organizationProviders/resources/v2/types/LicenseType.js +2 -0
  175. package/api/resources/organizationProviders/resources/v3/client/Client.d.ts +13 -5
  176. package/api/resources/organizationProviders/resources/v3/client/Client.js +142 -82
  177. package/api/resources/organizationProviders/resources/v3/client/index.d.ts +1 -1
  178. package/api/resources/organizationProviders/resources/v3/client/index.js +4 -4
  179. package/api/resources/organizationProviders/resources/v3/client/requests/GetAllOrganizationProvidersRequestV2.d.ts +8 -24
  180. package/api/resources/organizationServiceFacilities/client/Client.d.ts +2 -10
  181. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +28 -6
  182. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +261 -100
  183. package/api/resources/organizationServiceFacilities/resources/v2/client/getByExternalId.d.ts +28 -0
  184. package/api/resources/{auth/resources/default/client/getMachineTokenForOrgId.js → organizationServiceFacilities/resources/v2/client/getByExternalId.js} +12 -1
  185. package/api/resources/organizationServiceFacilities/resources/v2/client/index.d.ts +2 -1
  186. package/api/resources/organizationServiceFacilities/resources/v2/client/index.js +6 -5
  187. package/api/resources/organizationServiceFacilities/resources/v2/client/requests/GetAllOrganizationServiceFacilitiesRequest.d.ts +8 -12
  188. package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +4 -0
  189. package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +4 -0
  190. package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +4 -0
  191. package/api/resources/patientAr/client/Client.d.ts +2 -10
  192. package/api/resources/patientAr/resources/v1/client/Client.d.ts +9 -3
  193. package/api/resources/patientAr/resources/v1/client/Client.js +78 -50
  194. package/api/resources/patientAr/resources/v1/client/index.d.ts +1 -1
  195. package/api/resources/patientAr/resources/v1/client/index.js +4 -4
  196. package/api/resources/patientAr/resources/v1/client/requests/GetInventoryRecordsRequest.d.ts +2 -6
  197. package/api/resources/patientPayments/client/Client.d.ts +2 -10
  198. package/api/resources/patientPayments/resources/v3/types/PatientPayment.d.ts +1 -1
  199. package/api/resources/patientPayments/resources/v4/client/Client.d.ts +15 -6
  200. package/api/resources/patientPayments/resources/v4/client/Client.js +188 -108
  201. package/api/resources/patientPayments/resources/v4/client/index.d.ts +1 -1
  202. package/api/resources/patientPayments/resources/v4/client/index.js +4 -4
  203. package/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +4 -12
  204. package/api/resources/patientRefunds/client/Client.d.ts +2 -10
  205. package/api/resources/patientRefunds/resources/v1/client/Client.d.ts +15 -6
  206. package/api/resources/patientRefunds/resources/v1/client/Client.js +188 -108
  207. package/api/resources/patientRefunds/resources/v1/client/index.d.ts +1 -1
  208. package/api/resources/patientRefunds/resources/v1/client/index.js +4 -4
  209. package/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +4 -12
  210. package/api/resources/payerPlanGroups/client/Client.d.ts +2 -10
  211. package/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +15 -6
  212. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +192 -112
  213. package/api/resources/payerPlanGroups/resources/v1/client/index.d.ts +1 -1
  214. package/api/resources/payerPlanGroups/resources/v1/client/index.js +4 -4
  215. package/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +3 -9
  216. package/api/resources/payers/client/Client.d.ts +2 -10
  217. package/api/resources/payers/resources/v3/client/Client.d.ts +9 -3
  218. package/api/resources/payers/resources/v3/client/Client.js +54 -34
  219. package/api/resources/payers/resources/v3/client/index.d.ts +1 -1
  220. package/api/resources/payers/resources/v3/client/index.js +4 -4
  221. package/api/resources/payers/resources/v3/client/requests/GetAllPayersRequest.d.ts +1 -3
  222. package/api/resources/payers/resources/v4/client/Client.d.ts +9 -3
  223. package/api/resources/payers/resources/v4/client/Client.js +54 -34
  224. package/api/resources/payers/resources/v4/client/index.d.ts +1 -1
  225. package/api/resources/payers/resources/v4/client/index.js +4 -4
  226. package/api/resources/payers/resources/v4/client/requests/GetAllPayersRequest.d.ts +1 -3
  227. package/api/resources/payers/resources/v4/types/Payer.d.ts +2 -0
  228. package/api/resources/preEncounter/client/Client.d.ts +2 -10
  229. package/api/resources/preEncounter/resources/appointments/client/Client.d.ts +2 -10
  230. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +22 -11
  231. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +254 -147
  232. package/api/resources/preEncounter/resources/appointments/resources/v1/client/index.d.ts +1 -1
  233. package/api/resources/preEncounter/resources/appointments/resources/v1/client/index.js +4 -4
  234. package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/AppointmentScanRequest.d.ts +1 -1
  235. package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +2 -6
  236. package/api/resources/preEncounter/resources/common/types/CanonicalServiceFacilityId.d.ts +11 -0
  237. package/api/resources/{encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js → preEncounter/resources/common/types/CanonicalServiceFacilityId.js} +4 -0
  238. package/api/resources/preEncounter/resources/common/types/FilterQueryString.d.ts +1 -1
  239. package/api/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  240. package/api/resources/preEncounter/resources/common/types/index.js +1 -0
  241. package/api/resources/preEncounter/resources/coverages/client/Client.d.ts +2 -10
  242. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +26 -12
  243. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +296 -161
  244. package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -1
  245. package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +4 -4
  246. package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiPaginatedRequest.d.ts +1 -3
  247. package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageScanRequest.d.ts +1 -1
  248. package/api/resources/preEncounter/resources/eligibilityChecks/client/Client.d.ts +2 -10
  249. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +17 -7
  250. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +160 -88
  251. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +1 -1
  252. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +4 -4
  253. package/api/resources/preEncounter/resources/images/client/Client.d.ts +2 -10
  254. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.d.ts +15 -6
  255. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +175 -99
  256. package/api/resources/preEncounter/resources/images/resources/v1/client/index.d.ts +1 -1
  257. package/api/resources/preEncounter/resources/images/resources/v1/client/index.js +4 -4
  258. package/api/resources/preEncounter/resources/lists/client/Client.d.ts +2 -10
  259. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.d.ts +9 -3
  260. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +67 -44
  261. package/api/resources/preEncounter/resources/lists/resources/v1/client/index.d.ts +1 -1
  262. package/api/resources/preEncounter/resources/lists/resources/v1/client/index.js +4 -4
  263. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +3 -9
  264. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +2 -6
  265. package/api/resources/preEncounter/resources/notes/client/Client.d.ts +2 -10
  266. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.d.ts +13 -5
  267. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +100 -51
  268. package/api/resources/preEncounter/resources/patients/client/Client.d.ts +2 -10
  269. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +32 -16
  270. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +404 -231
  271. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -1
  272. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +4 -4
  273. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +2 -2
  274. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientGetMultiRequest.d.ts +1 -3
  275. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientScanRequest.d.ts +1 -1
  276. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientsSearchRequestPaginated.d.ts +1 -3
  277. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  278. package/api/resources/preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.d.ts +10 -0
  279. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -0
  280. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -0
  281. package/api/resources/preEncounter/resources/tags/client/Client.d.ts +2 -10
  282. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.d.ts +15 -6
  283. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +127 -67
  284. package/api/resources/preEncounter/resources/tags/resources/v1/client/index.d.ts +1 -1
  285. package/api/resources/preEncounter/resources/tags/resources/v1/client/index.js +4 -4
  286. package/api/resources/serviceFacility/client/Client.d.ts +7 -2
  287. package/api/resources/serviceFacility/client/Client.js +27 -16
  288. package/api/resources/serviceLines/client/Client.d.ts +2 -10
  289. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +17 -8
  290. package/api/resources/serviceLines/resources/v2/client/Client.js +188 -103
  291. package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +5 -5
  292. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.d.ts +1 -1
  293. package/api/resources/serviceLines/resources/v2/types/index.d.ts +0 -1
  294. package/api/resources/serviceLines/resources/v2/types/index.js +0 -1
  295. package/api/resources/superbills/client/Client.d.ts +2 -10
  296. package/api/resources/superbills/resources/v1/client/Client.d.ts +7 -2
  297. package/api/resources/superbills/resources/v1/client/Client.js +39 -24
  298. package/api/resources/superbills/resources/v1/client/index.d.ts +1 -1
  299. package/api/resources/superbills/resources/v1/client/index.js +4 -4
  300. package/api/resources/tasks/client/Client.d.ts +2 -10
  301. package/api/resources/tasks/resources/v3/client/Client.d.ts +15 -6
  302. package/api/resources/tasks/resources/v3/client/Client.js +168 -96
  303. package/api/resources/tasks/resources/v3/client/index.d.ts +1 -1
  304. package/api/resources/tasks/resources/v3/client/index.js +4 -4
  305. package/api/resources/tasks/resources/v3/client/requests/GetAllTasksRequest.d.ts +10 -30
  306. package/api/resources/writeOffs/client/Client.d.ts +2 -10
  307. package/api/resources/writeOffs/resources/v1/client/Client.d.ts +19 -9
  308. package/api/resources/writeOffs/resources/v1/client/Client.js +160 -90
  309. package/api/resources/writeOffs/resources/v1/client/index.d.ts +1 -1
  310. package/api/resources/writeOffs/resources/v1/client/index.js +4 -4
  311. package/api/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.d.ts +2 -2
  312. package/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.d.ts +4 -12
  313. package/api/resources/x12/resources/v1/types/index.d.ts +0 -1
  314. package/api/resources/x12/resources/v1/types/index.js +0 -1
  315. package/core/auth/AuthProvider.d.ts +4 -0
  316. package/core/auth/AuthProvider.js +2 -0
  317. package/core/auth/AuthRequest.d.ts +9 -0
  318. package/core/auth/AuthRequest.js +2 -0
  319. package/core/auth/BasicAuth.js +3 -3
  320. package/core/base64.d.ts +2 -0
  321. package/core/base64.js +26 -0
  322. package/core/fetcher/APIResponse.d.ts +10 -0
  323. package/core/fetcher/BinaryResponse.d.ts +20 -0
  324. package/core/fetcher/BinaryResponse.js +17 -0
  325. package/core/fetcher/Fetcher.d.ts +4 -3
  326. package/core/fetcher/Fetcher.js +32 -12
  327. package/core/fetcher/Headers.d.ts +2 -0
  328. package/core/fetcher/Headers.js +84 -0
  329. package/core/fetcher/HttpResponsePromise.d.ts +58 -0
  330. package/core/fetcher/HttpResponsePromise.js +103 -0
  331. package/core/fetcher/RawResponse.d.ts +29 -0
  332. package/core/fetcher/RawResponse.js +44 -0
  333. package/core/fetcher/ResponseWithBody.d.ts +4 -0
  334. package/core/fetcher/ResponseWithBody.js +6 -0
  335. package/core/fetcher/createRequestUrl.d.ts +1 -1
  336. package/core/fetcher/createRequestUrl.js +3 -7
  337. package/core/fetcher/getErrorResponseBody.d.ts +1 -0
  338. package/core/fetcher/getErrorResponseBody.js +44 -0
  339. package/core/fetcher/getFetchFn.js +3 -3
  340. package/core/fetcher/getResponseBody.js +34 -32
  341. package/core/fetcher/index.d.ts +5 -1
  342. package/core/fetcher/index.js +7 -1
  343. package/core/fetcher/requestWithRetries.js +44 -8
  344. package/core/form-data-utils/FormDataWrapper.d.ts +4 -0
  345. package/core/form-data-utils/FormDataWrapper.js +58 -13
  346. package/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
  347. package/core/form-data-utils/encodeAsFormParameter.js +12 -0
  348. package/core/form-data-utils/index.d.ts +1 -0
  349. package/core/form-data-utils/index.js +3 -0
  350. package/core/headers.d.ts +3 -0
  351. package/core/headers.js +29 -0
  352. package/core/index.d.ts +2 -0
  353. package/core/index.js +3 -1
  354. package/core/runtime/runtime.js +0 -1
  355. package/core/schemas/builders/lazy/index.d.ts +1 -1
  356. package/core/schemas/builders/literals/index.d.ts +1 -1
  357. package/core/schemas/builders/literals/index.js +3 -3
  358. package/core/schemas/builders/object/index.d.ts +2 -2
  359. package/core/schemas/builders/object/object.d.ts +1 -1
  360. package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +1 -1
  361. package/core/schemas/builders/object/types.d.ts +1 -1
  362. package/core/schemas/builders/schema-utils/index.d.ts +1 -1
  363. package/core/schemas/builders/undiscriminated-union/types.d.ts +1 -1
  364. package/core/schemas/builders/union/index.d.ts +1 -1
  365. package/core/schemas/builders/union/types.d.ts +1 -1
  366. package/core/schemas/builders/union/union.d.ts +1 -1
  367. package/core/schemas/utils/maybeSkipValidation.js +1 -1
  368. package/core/url/index.d.ts +2 -0
  369. package/core/url/index.js +7 -0
  370. package/core/url/join.d.ts +1 -0
  371. package/core/url/join.js +69 -0
  372. package/core/url/qs.d.ts +6 -0
  373. package/core/url/qs.js +64 -0
  374. package/dist/Client.d.ts +5 -1
  375. package/dist/Client.js +10 -4
  376. package/dist/api/resources/auth/client/Client.d.ts +2 -10
  377. package/dist/api/resources/auth/resources/default/client/Client.d.ts +7 -14
  378. package/dist/api/resources/auth/resources/default/client/Client.js +39 -68
  379. package/dist/api/resources/auth/resources/default/client/index.d.ts +1 -2
  380. package/dist/api/resources/auth/resources/default/client/index.js +5 -6
  381. package/dist/api/resources/auth/resources/default/client/requests/index.d.ts +0 -1
  382. package/dist/api/resources/billingNotes/client/Client.d.ts +2 -10
  383. package/dist/api/resources/billingNotes/resources/v2/client/Client.d.ts +13 -5
  384. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +100 -54
  385. package/dist/api/resources/billingNotes/resources/v2/client/index.d.ts +1 -1
  386. package/dist/api/resources/billingNotes/resources/v2/client/index.js +4 -4
  387. package/dist/api/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +2 -1
  388. package/dist/api/resources/billingNotes/resources/v2/types/BillingNote.d.ts +1 -1
  389. package/dist/api/resources/chargeCapture/client/Client.d.ts +2 -10
  390. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +17 -7
  391. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +208 -116
  392. package/dist/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -1
  393. package/dist/api/resources/chargeCapture/resources/v1/client/index.js +4 -4
  394. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +37 -111
  395. package/dist/api/resources/chargeCaptureBundles/client/Client.d.ts +2 -10
  396. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +13 -5
  397. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +115 -65
  398. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -1
  399. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.js +4 -4
  400. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureClaimCreationsRequest.d.ts +21 -63
  401. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +2 -2
  402. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +2 -2
  403. package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +4 -4
  404. package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +4 -4
  405. package/dist/api/resources/claims/types/Claim.d.ts +5 -5
  406. package/dist/api/resources/contracts/client/Client.d.ts +2 -10
  407. package/dist/api/resources/contracts/resources/v2/client/Client.d.ts +30 -7
  408. package/dist/api/resources/contracts/resources/v2/client/Client.js +179 -93
  409. package/dist/api/resources/contracts/resources/v2/client/index.d.ts +1 -1
  410. package/dist/api/resources/contracts/resources/v2/client/index.js +4 -4
  411. package/dist/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +15 -1
  412. package/dist/api/resources/contracts/resources/v2/client/requests/GetMultiContractsRequest.d.ts +5 -15
  413. package/dist/api/resources/credentialing/client/Client.d.ts +2 -10
  414. package/dist/api/resources/credentialing/resources/v2/client/Client.d.ts +25 -11
  415. package/dist/api/resources/credentialing/resources/v2/client/Client.js +374 -211
  416. package/dist/api/resources/credentialing/resources/v2/client/index.d.ts +1 -1
  417. package/dist/api/resources/credentialing/resources/v2/client/index.js +4 -4
  418. package/dist/api/resources/credentialing/resources/v2/client/requests/GetAllFacilityCredentialingSpansRequest.d.ts +4 -12
  419. package/dist/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +5 -15
  420. package/dist/api/resources/customSchemas/client/Client.d.ts +2 -10
  421. package/dist/api/resources/customSchemas/resources/v1/client/Client.d.ts +13 -5
  422. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +154 -89
  423. package/dist/api/resources/customSchemas/resources/v1/client/index.d.ts +1 -1
  424. package/dist/api/resources/customSchemas/resources/v1/client/index.js +4 -4
  425. package/dist/api/resources/diagnoses/client/Client.d.ts +13 -6
  426. package/dist/api/resources/diagnoses/client/Client.js +101 -56
  427. package/dist/api/resources/diagnoses/client/index.d.ts +1 -1
  428. package/dist/api/resources/diagnoses/client/index.js +4 -4
  429. package/dist/api/resources/diagnoses/types/Diagnosis.d.ts +2 -2
  430. package/dist/api/resources/eligibility/client/Client.d.ts +2 -10
  431. package/dist/api/resources/eligibility/resources/v2/client/Client.d.ts +11 -4
  432. package/dist/api/resources/eligibility/resources/v2/client/Client.js +102 -52
  433. package/dist/api/resources/encounterAttachments/client/Client.d.ts +2 -10
  434. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +11 -4
  435. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +74 -37
  436. package/dist/api/resources/encounterAttachments/resources/v1/client/index.d.ts +1 -1
  437. package/dist/api/resources/encounterAttachments/resources/v1/client/index.js +4 -4
  438. package/dist/api/resources/encounterProviders/client/Client.d.ts +2 -10
  439. package/dist/api/resources/encounterProviders/resources/v2/client/Client.d.ts +29 -13
  440. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +449 -238
  441. package/dist/api/resources/encounters/client/Client.d.ts +2 -10
  442. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +50 -135
  443. package/dist/api/resources/encounters/resources/v4/client/Client.js +207 -390
  444. package/dist/api/resources/encounters/resources/v4/client/index.d.ts +1 -4
  445. package/dist/api/resources/encounters/resources/v4/client/index.js +5 -8
  446. package/dist/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +14 -40
  447. package/dist/api/resources/encounters/resources/v4/types/ClinicalNoteCategory.d.ts +1 -1
  448. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +12 -12
  449. package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +12 -12
  450. package/dist/api/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.d.ts +2 -3
  451. package/dist/api/resources/encountersUniversal/types/index.d.ts +0 -3
  452. package/dist/api/resources/encountersUniversal/types/index.js +0 -3
  453. package/dist/api/resources/expectedNetworkStatus/client/Client.d.ts +2 -10
  454. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +7 -2
  455. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +27 -16
  456. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/index.d.ts +1 -1
  457. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/index.js +4 -4
  458. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +9 -3
  459. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +79 -46
  460. package/dist/api/resources/exports/client/Client.d.ts +2 -10
  461. package/dist/api/resources/exports/resources/v3/client/Client.d.ts +7 -2
  462. package/dist/api/resources/exports/resources/v3/client/Client.js +39 -27
  463. package/dist/api/resources/exports/resources/v3/client/index.d.ts +1 -1
  464. package/dist/api/resources/exports/resources/v3/client/index.js +4 -4
  465. package/dist/api/resources/exports/resources/v3/types/GetExportsResponse.d.ts +2 -2
  466. package/dist/api/resources/externalPaymentAccountConfig/client/Client.d.ts +2 -10
  467. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +7 -2
  468. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +28 -20
  469. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/index.d.ts +1 -1
  470. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/index.js +4 -4
  471. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/requests/GetExternalPaymentAccountConfigsRequest.d.ts +1 -3
  472. package/dist/api/resources/feeSchedules/client/Client.d.ts +2 -10
  473. package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +29 -13
  474. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +381 -211
  475. package/dist/api/resources/feeSchedules/resources/v3/client/index.d.ts +1 -1
  476. package/dist/api/resources/feeSchedules/resources/v3/client/index.js +4 -4
  477. package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -3
  478. package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +2 -6
  479. package/dist/api/resources/guarantor/client/Client.d.ts +2 -10
  480. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +11 -4
  481. package/dist/api/resources/guarantor/resources/v1/client/Client.js +91 -50
  482. package/dist/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +1 -1
  483. package/dist/api/resources/healthCareCodeInformation/client/Client.d.ts +2 -10
  484. package/dist/api/resources/healthCareCodeInformation/resources/v1/client/Client.d.ts +9 -3
  485. package/dist/api/resources/healthCareCodeInformation/resources/v1/client/Client.js +78 -47
  486. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ConditionCode.d.ts +433 -40
  487. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ConditionCode.js +95 -1
  488. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationGetAllResponse.d.ts +12 -1
  489. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationNew.d.ts +0 -52
  490. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationUpdate.d.ts +14 -1
  491. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceCode.d.ts +3 -0
  492. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformation.d.ts +6 -0
  493. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.d.ts +24 -5
  494. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.js +5 -1
  495. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformation.d.ts +6 -0
  496. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformation.d.ts +6 -0
  497. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/Rd8Date.d.ts +12 -0
  498. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +0 -16
  499. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/index.js +0 -16
  500. package/dist/api/resources/importInvoice/client/Client.d.ts +2 -10
  501. package/dist/api/resources/importInvoice/resources/v1/client/Client.d.ts +13 -5
  502. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +142 -82
  503. package/dist/api/resources/importInvoice/resources/v1/client/index.d.ts +1 -1
  504. package/dist/api/resources/importInvoice/resources/v1/client/index.js +4 -4
  505. package/dist/api/resources/importInvoice/resources/v1/client/requests/SearchImportedInvoicesRequest.d.ts +7 -21
  506. package/dist/api/resources/individual/types/Patient.d.ts +1 -1
  507. package/dist/api/resources/insuranceAdjudications/client/Client.d.ts +2 -10
  508. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +11 -4
  509. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +86 -47
  510. package/dist/api/resources/insurancePayments/client/Client.d.ts +2 -10
  511. package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +9 -3
  512. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +78 -50
  513. package/dist/api/resources/insurancePayments/resources/v1/client/index.d.ts +1 -1
  514. package/dist/api/resources/insurancePayments/resources/v1/client/index.js +4 -4
  515. package/dist/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +3 -9
  516. package/dist/api/resources/insuranceRefunds/client/Client.d.ts +2 -10
  517. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +15 -6
  518. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +188 -108
  519. package/dist/api/resources/insuranceRefunds/resources/v1/client/index.d.ts +1 -1
  520. package/dist/api/resources/insuranceRefunds/resources/v1/client/index.js +4 -4
  521. package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.d.ts +3 -9
  522. package/dist/api/resources/medicationDispense/client/Client.d.ts +2 -10
  523. package/dist/api/resources/medicationDispense/resources/v1/client/Client.d.ts +7 -2
  524. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +39 -24
  525. package/dist/api/resources/nonInsurancePayerPayments/client/Client.d.ts +2 -10
  526. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.d.ts +15 -6
  527. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +188 -108
  528. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/index.d.ts +1 -1
  529. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/index.js +4 -4
  530. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/GetMultiNonInsurancePayerPaymentRequest.d.ts +3 -9
  531. package/dist/api/resources/nonInsurancePayerRefunds/client/Client.d.ts +2 -10
  532. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +15 -6
  533. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +188 -108
  534. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/index.d.ts +1 -1
  535. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/index.js +4 -4
  536. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/GetMultiNonInsurancePayerRefundsRequest.d.ts +3 -9
  537. package/dist/api/resources/nonInsurancePayers/client/Client.d.ts +2 -10
  538. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +19 -8
  539. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +252 -143
  540. package/dist/api/resources/nonInsurancePayers/resources/v1/client/index.d.ts +1 -1
  541. package/dist/api/resources/nonInsurancePayers/resources/v1/client/index.js +4 -4
  542. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +2 -6
  543. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.d.ts +3 -9
  544. package/dist/api/resources/organizationProviders/client/Client.d.ts +2 -10
  545. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +3 -1
  546. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.js +2 -0
  547. package/dist/api/resources/organizationProviders/resources/v3/client/Client.d.ts +13 -5
  548. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +142 -82
  549. package/dist/api/resources/organizationProviders/resources/v3/client/index.d.ts +1 -1
  550. package/dist/api/resources/organizationProviders/resources/v3/client/index.js +4 -4
  551. package/dist/api/resources/organizationProviders/resources/v3/client/requests/GetAllOrganizationProvidersRequestV2.d.ts +8 -24
  552. package/dist/api/resources/organizationServiceFacilities/client/Client.d.ts +2 -10
  553. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +28 -6
  554. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +261 -100
  555. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/getByExternalId.d.ts +28 -0
  556. package/dist/api/resources/{auth/resources/default/client/getMachineTokenForOrgId.js → organizationServiceFacilities/resources/v2/client/getByExternalId.js} +12 -1
  557. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/index.d.ts +2 -1
  558. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/index.js +6 -5
  559. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/requests/GetAllOrganizationServiceFacilitiesRequest.d.ts +8 -12
  560. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +4 -0
  561. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +4 -0
  562. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +4 -0
  563. package/dist/api/resources/patientAr/client/Client.d.ts +2 -10
  564. package/dist/api/resources/patientAr/resources/v1/client/Client.d.ts +9 -3
  565. package/dist/api/resources/patientAr/resources/v1/client/Client.js +78 -50
  566. package/dist/api/resources/patientAr/resources/v1/client/index.d.ts +1 -1
  567. package/dist/api/resources/patientAr/resources/v1/client/index.js +4 -4
  568. package/dist/api/resources/patientAr/resources/v1/client/requests/GetInventoryRecordsRequest.d.ts +2 -6
  569. package/dist/api/resources/patientPayments/client/Client.d.ts +2 -10
  570. package/dist/api/resources/patientPayments/resources/v3/types/PatientPayment.d.ts +1 -1
  571. package/dist/api/resources/patientPayments/resources/v4/client/Client.d.ts +15 -6
  572. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +188 -108
  573. package/dist/api/resources/patientPayments/resources/v4/client/index.d.ts +1 -1
  574. package/dist/api/resources/patientPayments/resources/v4/client/index.js +4 -4
  575. package/dist/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +4 -12
  576. package/dist/api/resources/patientRefunds/client/Client.d.ts +2 -10
  577. package/dist/api/resources/patientRefunds/resources/v1/client/Client.d.ts +15 -6
  578. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +188 -108
  579. package/dist/api/resources/patientRefunds/resources/v1/client/index.d.ts +1 -1
  580. package/dist/api/resources/patientRefunds/resources/v1/client/index.js +4 -4
  581. package/dist/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +4 -12
  582. package/dist/api/resources/payerPlanGroups/client/Client.d.ts +2 -10
  583. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +15 -6
  584. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +192 -112
  585. package/dist/api/resources/payerPlanGroups/resources/v1/client/index.d.ts +1 -1
  586. package/dist/api/resources/payerPlanGroups/resources/v1/client/index.js +4 -4
  587. package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +3 -9
  588. package/dist/api/resources/payers/client/Client.d.ts +2 -10
  589. package/dist/api/resources/payers/resources/v3/client/Client.d.ts +9 -3
  590. package/dist/api/resources/payers/resources/v3/client/Client.js +54 -34
  591. package/dist/api/resources/payers/resources/v3/client/index.d.ts +1 -1
  592. package/dist/api/resources/payers/resources/v3/client/index.js +4 -4
  593. package/dist/api/resources/payers/resources/v3/client/requests/GetAllPayersRequest.d.ts +1 -3
  594. package/dist/api/resources/payers/resources/v4/client/Client.d.ts +9 -3
  595. package/dist/api/resources/payers/resources/v4/client/Client.js +54 -34
  596. package/dist/api/resources/payers/resources/v4/client/index.d.ts +1 -1
  597. package/dist/api/resources/payers/resources/v4/client/index.js +4 -4
  598. package/dist/api/resources/payers/resources/v4/client/requests/GetAllPayersRequest.d.ts +1 -3
  599. package/dist/api/resources/payers/resources/v4/types/Payer.d.ts +2 -0
  600. package/dist/api/resources/preEncounter/client/Client.d.ts +2 -10
  601. package/dist/api/resources/preEncounter/resources/appointments/client/Client.d.ts +2 -10
  602. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +22 -11
  603. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +254 -147
  604. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/index.d.ts +1 -1
  605. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/index.js +4 -4
  606. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/AppointmentScanRequest.d.ts +1 -1
  607. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +2 -6
  608. package/dist/api/resources/preEncounter/resources/common/types/CanonicalServiceFacilityId.d.ts +11 -0
  609. package/{api/resources/encountersUniversal/types/UniversalEncounterUpdate.js → dist/api/resources/preEncounter/resources/common/types/CanonicalServiceFacilityId.js} +4 -0
  610. package/dist/api/resources/preEncounter/resources/common/types/FilterQueryString.d.ts +1 -1
  611. package/dist/api/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  612. package/dist/api/resources/preEncounter/resources/common/types/index.js +1 -0
  613. package/dist/api/resources/preEncounter/resources/coverages/client/Client.d.ts +2 -10
  614. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +26 -12
  615. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +296 -161
  616. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -1
  617. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +4 -4
  618. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiPaginatedRequest.d.ts +1 -3
  619. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageScanRequest.d.ts +1 -1
  620. package/dist/api/resources/preEncounter/resources/eligibilityChecks/client/Client.d.ts +2 -10
  621. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +17 -7
  622. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +160 -88
  623. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +1 -1
  624. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +4 -4
  625. package/dist/api/resources/preEncounter/resources/images/client/Client.d.ts +2 -10
  626. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.d.ts +15 -6
  627. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +175 -99
  628. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/index.d.ts +1 -1
  629. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/index.js +4 -4
  630. package/dist/api/resources/preEncounter/resources/lists/client/Client.d.ts +2 -10
  631. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.d.ts +9 -3
  632. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +67 -44
  633. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/index.d.ts +1 -1
  634. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/index.js +4 -4
  635. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +3 -9
  636. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +2 -6
  637. package/dist/api/resources/preEncounter/resources/notes/client/Client.d.ts +2 -10
  638. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.d.ts +13 -5
  639. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +100 -51
  640. package/dist/api/resources/preEncounter/resources/patients/client/Client.d.ts +2 -10
  641. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +32 -16
  642. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +404 -231
  643. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -1
  644. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +4 -4
  645. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +2 -2
  646. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientGetMultiRequest.d.ts +1 -3
  647. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientScanRequest.d.ts +1 -1
  648. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientsSearchRequestPaginated.d.ts +1 -3
  649. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  650. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.d.ts +10 -0
  651. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -0
  652. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -0
  653. package/dist/api/resources/preEncounter/resources/tags/client/Client.d.ts +2 -10
  654. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.d.ts +15 -6
  655. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +127 -67
  656. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/index.d.ts +1 -1
  657. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/index.js +4 -4
  658. package/dist/api/resources/serviceFacility/client/Client.d.ts +7 -2
  659. package/dist/api/resources/serviceFacility/client/Client.js +27 -16
  660. package/dist/api/resources/serviceLines/client/Client.d.ts +2 -10
  661. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +17 -8
  662. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +188 -103
  663. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +5 -5
  664. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.d.ts +1 -1
  665. package/dist/api/resources/serviceLines/resources/v2/types/index.d.ts +0 -1
  666. package/dist/api/resources/serviceLines/resources/v2/types/index.js +0 -1
  667. package/dist/api/resources/superbills/client/Client.d.ts +2 -10
  668. package/dist/api/resources/superbills/resources/v1/client/Client.d.ts +7 -2
  669. package/dist/api/resources/superbills/resources/v1/client/Client.js +39 -24
  670. package/dist/api/resources/superbills/resources/v1/client/index.d.ts +1 -1
  671. package/dist/api/resources/superbills/resources/v1/client/index.js +4 -4
  672. package/dist/api/resources/tasks/client/Client.d.ts +2 -10
  673. package/dist/api/resources/tasks/resources/v3/client/Client.d.ts +15 -6
  674. package/dist/api/resources/tasks/resources/v3/client/Client.js +168 -96
  675. package/dist/api/resources/tasks/resources/v3/client/index.d.ts +1 -1
  676. package/dist/api/resources/tasks/resources/v3/client/index.js +4 -4
  677. package/dist/api/resources/tasks/resources/v3/client/requests/GetAllTasksRequest.d.ts +10 -30
  678. package/dist/api/resources/writeOffs/client/Client.d.ts +2 -10
  679. package/dist/api/resources/writeOffs/resources/v1/client/Client.d.ts +19 -9
  680. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +160 -90
  681. package/dist/api/resources/writeOffs/resources/v1/client/index.d.ts +1 -1
  682. package/dist/api/resources/writeOffs/resources/v1/client/index.js +4 -4
  683. package/dist/api/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.d.ts +2 -2
  684. package/dist/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.d.ts +4 -12
  685. package/dist/api/resources/x12/resources/v1/types/index.d.ts +0 -1
  686. package/dist/api/resources/x12/resources/v1/types/index.js +0 -1
  687. package/dist/core/auth/AuthProvider.d.ts +4 -0
  688. package/dist/core/auth/AuthProvider.js +2 -0
  689. package/dist/core/auth/AuthRequest.d.ts +9 -0
  690. package/dist/core/auth/AuthRequest.js +2 -0
  691. package/dist/core/auth/BasicAuth.js +3 -3
  692. package/dist/core/base64.d.ts +2 -0
  693. package/dist/core/base64.js +26 -0
  694. package/dist/core/fetcher/APIResponse.d.ts +10 -0
  695. package/dist/core/fetcher/BinaryResponse.d.ts +20 -0
  696. package/dist/core/fetcher/BinaryResponse.js +17 -0
  697. package/dist/core/fetcher/Fetcher.d.ts +4 -3
  698. package/dist/core/fetcher/Fetcher.js +32 -12
  699. package/dist/core/fetcher/Headers.d.ts +2 -0
  700. package/dist/core/fetcher/Headers.js +84 -0
  701. package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
  702. package/dist/core/fetcher/HttpResponsePromise.js +103 -0
  703. package/dist/core/fetcher/RawResponse.d.ts +29 -0
  704. package/dist/core/fetcher/RawResponse.js +44 -0
  705. package/dist/core/fetcher/ResponseWithBody.d.ts +4 -0
  706. package/dist/core/fetcher/ResponseWithBody.js +6 -0
  707. package/dist/core/fetcher/createRequestUrl.d.ts +1 -1
  708. package/dist/core/fetcher/createRequestUrl.js +3 -7
  709. package/dist/core/fetcher/getErrorResponseBody.d.ts +1 -0
  710. package/dist/core/fetcher/getErrorResponseBody.js +44 -0
  711. package/dist/core/fetcher/getFetchFn.js +3 -3
  712. package/dist/core/fetcher/getResponseBody.js +34 -32
  713. package/dist/core/fetcher/index.d.ts +5 -1
  714. package/dist/core/fetcher/index.js +7 -1
  715. package/dist/core/fetcher/requestWithRetries.js +44 -8
  716. package/dist/core/form-data-utils/FormDataWrapper.d.ts +4 -0
  717. package/dist/core/form-data-utils/FormDataWrapper.js +58 -13
  718. package/dist/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
  719. package/dist/core/form-data-utils/encodeAsFormParameter.js +12 -0
  720. package/dist/core/form-data-utils/index.d.ts +1 -0
  721. package/dist/core/form-data-utils/index.js +3 -0
  722. package/dist/core/headers.d.ts +3 -0
  723. package/dist/core/headers.js +29 -0
  724. package/dist/core/index.d.ts +2 -0
  725. package/dist/core/index.js +3 -1
  726. package/dist/core/runtime/runtime.js +0 -1
  727. package/dist/core/schemas/builders/lazy/index.d.ts +1 -1
  728. package/dist/core/schemas/builders/literals/index.d.ts +1 -1
  729. package/dist/core/schemas/builders/literals/index.js +3 -3
  730. package/dist/core/schemas/builders/object/index.d.ts +2 -2
  731. package/dist/core/schemas/builders/object/object.d.ts +1 -1
  732. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +1 -1
  733. package/dist/core/schemas/builders/object/types.d.ts +1 -1
  734. package/dist/core/schemas/builders/schema-utils/index.d.ts +1 -1
  735. package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +1 -1
  736. package/dist/core/schemas/builders/union/index.d.ts +1 -1
  737. package/dist/core/schemas/builders/union/types.d.ts +1 -1
  738. package/dist/core/schemas/builders/union/union.d.ts +1 -1
  739. package/dist/core/schemas/utils/maybeSkipValidation.js +1 -1
  740. package/dist/core/url/index.d.ts +2 -0
  741. package/dist/core/url/index.js +7 -0
  742. package/dist/core/url/join.d.ts +1 -0
  743. package/dist/core/url/join.js +69 -0
  744. package/dist/core/url/qs.d.ts +6 -0
  745. package/dist/core/url/qs.js +64 -0
  746. package/dist/errors/CandidApiError.d.ts +4 -1
  747. package/dist/errors/CandidApiError.js +4 -7
  748. package/dist/index.d.ts +2 -2
  749. package/dist/index.js +5 -5
  750. package/dist/serialization/resources/auth/resources/default/client/requests/index.d.ts +0 -1
  751. package/dist/serialization/resources/auth/resources/default/client/requests/index.js +1 -3
  752. package/dist/serialization/resources/encounters/resources/v4/client/index.d.ts +0 -3
  753. package/dist/serialization/resources/encounters/resources/v4/client/index.js +1 -4
  754. package/dist/serialization/resources/encountersUniversal/types/index.d.ts +0 -3
  755. package/dist/serialization/resources/encountersUniversal/types/index.js +0 -3
  756. package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +1 -1
  757. package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.js +1 -1
  758. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionCode.d.ts +1 -1
  759. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionCode.js +95 -1
  760. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationGetAllResponse.d.ts +2 -2
  761. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationGetAllResponse.js +2 -2
  762. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationNew.d.ts +0 -12
  763. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationNew.js +1 -14
  764. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationUpdate.d.ts +2 -2
  765. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationUpdate.js +2 -2
  766. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.d.ts +1 -1
  767. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.js +19 -1
  768. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +0 -16
  769. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/index.js +0 -16
  770. package/dist/serialization/resources/individual/types/Patient.d.ts +1 -1
  771. package/dist/serialization/resources/individual/types/Patient.js +1 -1
  772. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  773. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +2 -0
  774. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/client/getByExternalId.d.ts +15 -0
  775. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/client/getByExternalId.js +71 -0
  776. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/client/index.d.ts +1 -0
  777. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/client/index.js +2 -1
  778. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +3 -0
  779. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.js +3 -0
  780. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +3 -0
  781. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.js +3 -0
  782. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +3 -0
  783. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.js +3 -0
  784. package/dist/serialization/resources/payers/resources/v4/types/Payer.d.ts +1 -0
  785. package/dist/serialization/resources/payers/resources/v4/types/Payer.js +1 -0
  786. package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalServiceFacilityId.d.ts +10 -0
  787. package/dist/serialization/resources/{x12/resources/v1/types/TypeOfBillCompositeUpdate.js → preEncounter/resources/common/types/CanonicalServiceFacilityId.js} +4 -11
  788. package/dist/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  789. package/dist/serialization/resources/preEncounter/resources/common/types/index.js +1 -0
  790. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  791. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +2 -0
  792. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.d.ts +13 -0
  793. package/{serialization/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.js → dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.js} +5 -7
  794. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -0
  795. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -0
  796. package/dist/serialization/resources/serviceLines/resources/v2/types/index.d.ts +0 -1
  797. package/dist/serialization/resources/serviceLines/resources/v2/types/index.js +0 -1
  798. package/dist/serialization/resources/x12/resources/v1/types/index.d.ts +0 -1
  799. package/dist/serialization/resources/x12/resources/v1/types/index.js +0 -1
  800. package/dist/version.d.ts +1 -1
  801. package/dist/version.js +1 -1
  802. package/errors/CandidApiError.d.ts +4 -1
  803. package/errors/CandidApiError.js +4 -7
  804. package/index.d.ts +2 -2
  805. package/index.js +5 -5
  806. package/jest.config.mjs +37 -3
  807. package/package.json +18 -12
  808. package/reference.md +125 -335
  809. package/scripts/rename-to-esm-files.js +10 -2
  810. package/serialization/resources/auth/resources/default/client/requests/index.d.ts +0 -1
  811. package/serialization/resources/auth/resources/default/client/requests/index.js +1 -3
  812. package/serialization/resources/encounters/resources/v4/client/index.d.ts +0 -3
  813. package/serialization/resources/encounters/resources/v4/client/index.js +1 -4
  814. package/serialization/resources/encountersUniversal/types/index.d.ts +0 -3
  815. package/serialization/resources/encountersUniversal/types/index.js +0 -3
  816. package/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +1 -1
  817. package/serialization/resources/guarantor/resources/v1/types/Guarantor.js +1 -1
  818. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionCode.d.ts +1 -1
  819. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionCode.js +95 -1
  820. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationGetAllResponse.d.ts +2 -2
  821. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationGetAllResponse.js +2 -2
  822. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationNew.d.ts +0 -12
  823. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationNew.js +1 -14
  824. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationUpdate.d.ts +2 -2
  825. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationUpdate.js +2 -2
  826. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.d.ts +1 -1
  827. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.js +19 -1
  828. package/serialization/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +0 -16
  829. package/serialization/resources/healthCareCodeInformation/resources/v1/types/index.js +0 -16
  830. package/serialization/resources/individual/types/Patient.d.ts +1 -1
  831. package/serialization/resources/individual/types/Patient.js +1 -1
  832. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  833. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +2 -0
  834. package/serialization/resources/organizationServiceFacilities/resources/v2/client/getByExternalId.d.ts +15 -0
  835. package/serialization/resources/organizationServiceFacilities/resources/v2/client/getByExternalId.js +71 -0
  836. package/serialization/resources/organizationServiceFacilities/resources/v2/client/index.d.ts +1 -0
  837. package/serialization/resources/organizationServiceFacilities/resources/v2/client/index.js +2 -1
  838. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +3 -0
  839. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.js +3 -0
  840. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +3 -0
  841. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.js +3 -0
  842. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +3 -0
  843. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.js +3 -0
  844. package/serialization/resources/payers/resources/v4/types/Payer.d.ts +1 -0
  845. package/serialization/resources/payers/resources/v4/types/Payer.js +1 -0
  846. package/serialization/resources/preEncounter/resources/common/types/CanonicalServiceFacilityId.d.ts +10 -0
  847. package/serialization/resources/{x12/resources/v1/types/TypeOfBillCompositeUpdate.js → preEncounter/resources/common/types/CanonicalServiceFacilityId.js} +4 -11
  848. package/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  849. package/serialization/resources/preEncounter/resources/common/types/index.js +1 -0
  850. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  851. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +2 -0
  852. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.d.ts +13 -0
  853. package/{dist/serialization/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.js → serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.js} +5 -7
  854. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -0
  855. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -0
  856. package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +0 -1
  857. package/serialization/resources/serviceLines/resources/v2/types/index.js +0 -1
  858. package/serialization/resources/x12/resources/v1/types/index.d.ts +0 -1
  859. package/serialization/resources/x12/resources/v1/types/index.js +0 -1
  860. package/version.d.ts +1 -1
  861. package/version.js +1 -1
  862. package/api/resources/auth/resources/default/client/getMachineTokenForOrgId.d.ts +0 -22
  863. package/api/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.d.ts +0 -21
  864. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +0 -70
  865. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +0 -145
  866. package/api/resources/encounters/resources/v4/client/createUniversal.d.ts +0 -94
  867. package/api/resources/encounters/resources/v4/client/createUniversal.js +0 -189
  868. package/api/resources/encounters/resources/v4/client/updateUniversal.d.ts +0 -70
  869. package/api/resources/encounters/resources/v4/client/updateUniversal.js +0 -145
  870. package/api/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +0 -49
  871. package/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +0 -47
  872. package/api/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +0 -39
  873. package/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +0 -11
  874. package/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +0 -5
  875. package/api/resources/healthCareCodeInformation/resources/v1/types/CodeListQualifierCode.d.ts +0 -4230
  876. package/api/resources/healthCareCodeInformation/resources/v1/types/CodeListQualifierCode.js +0 -1064
  877. package/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +0 -11
  878. package/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +0 -5
  879. package/api/resources/healthCareCodeInformation/resources/v1/types/DateTimePeriodFormatQualifier.d.ts +0 -174
  880. package/api/resources/healthCareCodeInformation/resources/v1/types/DateTimePeriodFormatQualifier.js +0 -50
  881. package/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +0 -11
  882. package/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +0 -5
  883. package/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +0 -12
  884. package/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +0 -5
  885. package/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +0 -19
  886. package/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +0 -5
  887. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +0 -12
  888. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +0 -5
  889. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +0 -12
  890. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +0 -5
  891. package/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +0 -12
  892. package/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +0 -5
  893. package/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +0 -12
  894. package/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +0 -5
  895. package/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +0 -11
  896. package/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +0 -5
  897. package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +0 -12
  898. package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +0 -5
  899. package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +0 -12
  900. package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +0 -5
  901. package/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +0 -11
  902. package/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +0 -5
  903. package/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +0 -12
  904. package/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +0 -5
  905. package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +0 -11
  906. package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js +0 -5
  907. package/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +0 -30
  908. package/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js +0 -5
  909. package/dist/api/resources/auth/resources/default/client/getMachineTokenForOrgId.d.ts +0 -22
  910. package/dist/api/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.d.ts +0 -21
  911. package/dist/api/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.js +0 -5
  912. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +0 -70
  913. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +0 -145
  914. package/dist/api/resources/encounters/resources/v4/client/createUniversal.d.ts +0 -94
  915. package/dist/api/resources/encounters/resources/v4/client/createUniversal.js +0 -189
  916. package/dist/api/resources/encounters/resources/v4/client/updateUniversal.d.ts +0 -70
  917. package/dist/api/resources/encounters/resources/v4/client/updateUniversal.js +0 -145
  918. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +0 -49
  919. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreate.js +0 -5
  920. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +0 -47
  921. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +0 -5
  922. package/dist/api/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +0 -39
  923. package/dist/api/resources/encountersUniversal/types/UniversalEncounterUpdate.js +0 -5
  924. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +0 -11
  925. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +0 -5
  926. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/CodeListQualifierCode.d.ts +0 -4230
  927. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/CodeListQualifierCode.js +0 -1064
  928. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +0 -11
  929. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +0 -5
  930. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/DateTimePeriodFormatQualifier.d.ts +0 -174
  931. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/DateTimePeriodFormatQualifier.js +0 -50
  932. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +0 -11
  933. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +0 -5
  934. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +0 -12
  935. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +0 -5
  936. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +0 -19
  937. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +0 -5
  938. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +0 -12
  939. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +0 -5
  940. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +0 -12
  941. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +0 -5
  942. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +0 -12
  943. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +0 -5
  944. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +0 -12
  945. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +0 -5
  946. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +0 -11
  947. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +0 -5
  948. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +0 -12
  949. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +0 -5
  950. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +0 -12
  951. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +0 -5
  952. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +0 -11
  953. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +0 -5
  954. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +0 -12
  955. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +0 -5
  956. package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +0 -11
  957. package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js +0 -5
  958. package/dist/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +0 -30
  959. package/dist/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js +0 -5
  960. package/dist/serialization/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.d.ts +0 -15
  961. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +0 -49
  962. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +0 -112
  963. package/dist/serialization/resources/encounters/resources/v4/client/createUniversal.d.ts +0 -69
  964. package/dist/serialization/resources/encounters/resources/v4/client/createUniversal.js +0 -136
  965. package/dist/serialization/resources/encounters/resources/v4/client/updateUniversal.d.ts +0 -50
  966. package/dist/serialization/resources/encounters/resources/v4/client/updateUniversal.js +0 -113
  967. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +0 -39
  968. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.js +0 -72
  969. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +0 -37
  970. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +0 -70
  971. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +0 -32
  972. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.js +0 -65
  973. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +0 -16
  974. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +0 -49
  975. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/CodeListQualifierCode.d.ts +0 -10
  976. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/CodeListQualifierCode.js +0 -1098
  977. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +0 -16
  978. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +0 -49
  979. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/DateTimePeriodFormatQualifier.d.ts +0 -10
  980. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/DateTimePeriodFormatQualifier.js +0 -84
  981. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +0 -16
  982. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +0 -49
  983. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +0 -18
  984. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +0 -51
  985. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +0 -37
  986. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +0 -68
  987. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +0 -18
  988. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +0 -51
  989. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +0 -18
  990. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +0 -51
  991. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +0 -18
  992. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +0 -51
  993. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +0 -18
  994. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +0 -51
  995. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +0 -16
  996. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +0 -49
  997. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +0 -18
  998. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +0 -51
  999. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +0 -18
  1000. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +0 -51
  1001. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +0 -16
  1002. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +0 -49
  1003. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +0 -18
  1004. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +0 -51
  1005. package/dist/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +0 -15
  1006. package/dist/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js +0 -48
  1007. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +0 -18
  1008. package/serialization/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.d.ts +0 -15
  1009. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +0 -49
  1010. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +0 -112
  1011. package/serialization/resources/encounters/resources/v4/client/createUniversal.d.ts +0 -69
  1012. package/serialization/resources/encounters/resources/v4/client/createUniversal.js +0 -136
  1013. package/serialization/resources/encounters/resources/v4/client/updateUniversal.d.ts +0 -50
  1014. package/serialization/resources/encounters/resources/v4/client/updateUniversal.js +0 -113
  1015. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +0 -39
  1016. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.js +0 -72
  1017. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +0 -37
  1018. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +0 -70
  1019. package/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +0 -32
  1020. package/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.js +0 -65
  1021. package/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +0 -16
  1022. package/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +0 -49
  1023. package/serialization/resources/healthCareCodeInformation/resources/v1/types/CodeListQualifierCode.d.ts +0 -10
  1024. package/serialization/resources/healthCareCodeInformation/resources/v1/types/CodeListQualifierCode.js +0 -1098
  1025. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +0 -16
  1026. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +0 -49
  1027. package/serialization/resources/healthCareCodeInformation/resources/v1/types/DateTimePeriodFormatQualifier.d.ts +0 -10
  1028. package/serialization/resources/healthCareCodeInformation/resources/v1/types/DateTimePeriodFormatQualifier.js +0 -84
  1029. package/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +0 -16
  1030. package/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +0 -49
  1031. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +0 -18
  1032. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +0 -51
  1033. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +0 -37
  1034. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +0 -68
  1035. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +0 -18
  1036. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +0 -51
  1037. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +0 -18
  1038. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +0 -51
  1039. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +0 -18
  1040. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +0 -51
  1041. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +0 -18
  1042. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +0 -51
  1043. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +0 -16
  1044. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +0 -49
  1045. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +0 -18
  1046. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +0 -51
  1047. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +0 -18
  1048. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +0 -51
  1049. package/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +0 -16
  1050. package/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +0 -49
  1051. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +0 -18
  1052. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +0 -51
  1053. package/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +0 -15
  1054. package/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js +0 -48
  1055. package/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +0 -18
  1056. /package/api/resources/{auth/resources/default/client/requests/AuthGetTokenForOrgRequest.js → preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.js} +0 -0
  1057. /package/{api/resources/encountersUniversal/types/UniversalEncounterCreate.js → dist/api/resources/preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.js} +0 -0
@@ -44,16 +44,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
44
44
  step((generator = generator.apply(thisArg, _arguments || [])).next());
45
45
  });
46
46
  };
47
- var __importDefault = (this && this.__importDefault) || function (mod) {
48
- return (mod && mod.__esModule) ? mod : { "default": mod };
49
- };
50
47
  Object.defineProperty(exports, "__esModule", { value: true });
51
48
  exports.V4 = void 0;
52
49
  const environments = __importStar(require("../../../../../../environments"));
53
50
  const core = __importStar(require("../../../../../../core"));
54
51
  const CandidApi = __importStar(require("../../../../../index"));
55
52
  const serializers = __importStar(require("../../../../../../serialization/index"));
56
- const url_join_1 = __importDefault(require("url-join"));
53
+ const headers_1 = require("../../../../../../core/headers");
57
54
  class V4 {
58
55
  constructor(_options = {}) {
59
56
  this._options = _options;
@@ -73,12 +70,15 @@ class V4 {
73
70
  * primaryPayerNames: "Medicare,Medicaid",
74
71
  * searchTerm: "doe",
75
72
  * externalId: CandidApi.EncounterExternalId("123456"),
76
- * diagnosesUpdatedSince: "2019-08-24T14:15:22Z"
73
+ * diagnosesUpdatedSince: new Date("2019-08-24T14:15:22.000Z")
77
74
  * })
78
75
  */
79
- getAll() {
76
+ getAll(request = {}, requestOptions) {
77
+ return core.HttpResponsePromise.fromPromise(this.__getAll(request, requestOptions));
78
+ }
79
+ __getAll() {
80
80
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
81
- var _a, _b;
81
+ var _a, _b, _c;
82
82
  const { limit, claimStatus, sort, pageToken, dateOfServiceMin, dateOfServiceMax, primaryPayerNames, searchTerm, externalId, diagnosesUpdatedSince, tagIds, workQueueId, billableStatus, responsibleParty, ownerOfNextAction, patientExternalId, } = request;
83
83
  const _queryParams = {};
84
84
  if (limit != null) {
@@ -140,31 +140,39 @@ class V4 {
140
140
  if (patientExternalId != null) {
141
141
  _queryParams["patient_external_id"] = patientExternalId;
142
142
  }
143
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
143
144
  const _response = yield core.fetcher({
144
- 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).candidApi, "/api/encounters/v4"),
145
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).candidApi, "/api/encounters/v4"),
145
146
  method: "GET",
146
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
147
- contentType: "application/json",
148
- queryParameters: _queryParams,
149
- requestType: "json",
147
+ headers: _headers,
148
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
150
149
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
151
150
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
152
151
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
153
152
  });
154
153
  if (_response.ok) {
155
154
  return {
156
- ok: true,
157
- body: serializers.encounters.v4.EncounterPage.parseOrThrow(_response.body, {
158
- unrecognizedObjectKeys: "passthrough",
159
- allowUnrecognizedUnionMembers: true,
160
- allowUnrecognizedEnumValues: true,
161
- breadcrumbsPrefix: ["response"],
162
- }),
155
+ data: {
156
+ ok: true,
157
+ body: serializers.encounters.v4.EncounterPage.parseOrThrow(_response.body, {
158
+ unrecognizedObjectKeys: "passthrough",
159
+ allowUnrecognizedUnionMembers: true,
160
+ allowUnrecognizedEnumValues: true,
161
+ breadcrumbsPrefix: ["response"],
162
+ }),
163
+ headers: _response.headers,
164
+ rawResponse: _response.rawResponse,
165
+ },
166
+ rawResponse: _response.rawResponse,
163
167
  };
164
168
  }
165
169
  return {
166
- ok: false,
167
- error: CandidApi.encounters.v4.getAll.Error._unknown(_response.error),
170
+ data: {
171
+ ok: false,
172
+ error: CandidApi.encounters.v4.getAll.Error._unknown(_response.error),
173
+ rawResponse: _response.rawResponse,
174
+ },
175
+ rawResponse: _response.rawResponse,
168
176
  };
169
177
  });
170
178
  }
@@ -176,129 +184,44 @@ class V4 {
176
184
  * await client.encounters.v4.get(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
177
185
  */
178
186
  get(encounterId, requestOptions) {
179
- return __awaiter(this, void 0, void 0, function* () {
180
- var _a, _b;
181
- const _response = yield core.fetcher({
182
- 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).candidApi, `/api/encounters/v4/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
183
- method: "GET",
184
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
185
- contentType: "application/json",
186
- requestType: "json",
187
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
188
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
189
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
190
- });
191
- if (_response.ok) {
192
- return {
193
- ok: true,
194
- body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
195
- unrecognizedObjectKeys: "passthrough",
196
- allowUnrecognizedUnionMembers: true,
197
- allowUnrecognizedEnumValues: true,
198
- breadcrumbsPrefix: ["response"],
199
- }),
200
- };
201
- }
202
- return {
203
- ok: false,
204
- error: CandidApi.encounters.v4.get.Error._unknown(_response.error),
205
- };
206
- });
187
+ return core.HttpResponsePromise.fromPromise(this.__get(encounterId, requestOptions));
207
188
  }
208
- /**
209
- * @param {CandidApi.encountersUniversal.UniversalEncounterCreate} request
210
- * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
211
- *
212
- * @example
213
- * await client.encounters.v4.createUniversal({
214
- * externalId: CandidApi.EncounterExternalId("external_id"),
215
- * patientAuthorizedRelease: true,
216
- * benefitsAssignedToProvider: true,
217
- * providerAcceptsAssignment: true,
218
- * billableStatus: "BILLABLE",
219
- * patient: {
220
- * firstName: "first_name",
221
- * lastName: "last_name",
222
- * gender: "male",
223
- * externalId: "external_id",
224
- * dateOfBirth: "2023-01-15",
225
- * address: {
226
- * address1: "address1",
227
- * city: "city",
228
- * state: "AA",
229
- * zipCode: "zip_code"
230
- * }
231
- * },
232
- * responsibleParty: "INSURANCE_PAY",
233
- * billingProvider: {
234
- * address: {
235
- * address1: "address1",
236
- * city: "city",
237
- * state: "AA",
238
- * zipCode: "zip_code",
239
- * zipPlusFourCode: "zip_plus_four_code"
240
- * },
241
- * taxId: "tax_id",
242
- * npi: "npi"
243
- * },
244
- * submissionExpectation: "TARGET_PROFESSIONAL"
245
- * })
246
- */
247
- createUniversal(request, requestOptions) {
189
+ __get(encounterId, requestOptions) {
248
190
  return __awaiter(this, void 0, void 0, function* () {
249
191
  var _a, _b, _c;
192
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
250
193
  const _response = yield core.fetcher({
251
- 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).candidApi, "/api/encounters/v4/universal"),
252
- method: "POST",
253
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
254
- contentType: "application/json",
255
- requestType: "json",
256
- body: serializers.encountersUniversal.UniversalEncounterCreate.jsonOrThrow(request, {
257
- unrecognizedObjectKeys: "strip",
258
- }),
194
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).candidApi, `/api/encounters/v4/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
195
+ method: "GET",
196
+ headers: _headers,
197
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
259
198
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
260
199
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
261
200
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
262
201
  });
263
202
  if (_response.ok) {
264
203
  return {
265
- ok: true,
266
- body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
267
- unrecognizedObjectKeys: "passthrough",
268
- allowUnrecognizedUnionMembers: true,
269
- allowUnrecognizedEnumValues: true,
270
- breadcrumbsPrefix: ["response"],
271
- }),
204
+ data: {
205
+ ok: true,
206
+ body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
207
+ unrecognizedObjectKeys: "passthrough",
208
+ allowUnrecognizedUnionMembers: true,
209
+ allowUnrecognizedEnumValues: true,
210
+ breadcrumbsPrefix: ["response"],
211
+ }),
212
+ headers: _response.headers,
213
+ rawResponse: _response.rawResponse,
214
+ },
215
+ rawResponse: _response.rawResponse,
272
216
  };
273
217
  }
274
- if (_response.error.reason === "status-code") {
275
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
276
- case "EncounterExternalIdUniquenessError":
277
- case "EncounterPatientControlNumberUniquenessError":
278
- case "EntityNotFoundError":
279
- case "UnauthorizedError":
280
- case "EncounterGuarantorMissingContactInfoError":
281
- case "HttpRequestValidationsError":
282
- case "CashPayPayerError":
283
- case "SchemaInstanceValidationHttpFailure":
284
- case "InvalidTagNamesError":
285
- case "HttpRequestValidationError":
286
- case "PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError":
287
- case "EncounterRenderingOrAttendingProviderRequired":
288
- return {
289
- ok: false,
290
- error: serializers.encounters.v4.createUniversal.Error.parseOrThrow(_response.error.body, {
291
- unrecognizedObjectKeys: "passthrough",
292
- allowUnrecognizedUnionMembers: true,
293
- allowUnrecognizedEnumValues: true,
294
- breadcrumbsPrefix: ["response"],
295
- }),
296
- };
297
- }
298
- }
299
218
  return {
300
- ok: false,
301
- error: CandidApi.encounters.v4.createUniversal.Error._unknown(_response.error),
219
+ data: {
220
+ ok: false,
221
+ error: CandidApi.encounters.v4.get.Error._unknown(_response.error),
222
+ rawResponse: _response.rawResponse,
223
+ },
224
+ rawResponse: _response.rawResponse,
302
225
  };
303
226
  });
304
227
  }
@@ -308,32 +231,13 @@ class V4 {
308
231
  *
309
232
  * @example
310
233
  * await client.encounters.v4.create({
311
- * externalId: CandidApi.EncounterExternalId("external_id"),
312
- * patientAuthorizedRelease: true,
313
- * benefitsAssignedToProvider: true,
314
- * providerAcceptsAssignment: true,
315
- * billableStatus: "BILLABLE",
316
- * patient: {
317
- * firstName: "first_name",
318
- * lastName: "last_name",
319
- * gender: "male",
320
- * externalId: "external_id",
321
- * dateOfBirth: "2023-01-15",
322
- * address: {
323
- * address1: "address1",
324
- * city: "city",
325
- * state: "AA",
326
- * zipCode: "zip_code"
327
- * }
328
- * },
329
- * responsibleParty: "INSURANCE_PAY",
330
234
  * billingProvider: {
331
235
  * address: {
236
+ * zipPlusFourCode: "zip_plus_four_code",
332
237
  * address1: "address1",
333
238
  * city: "city",
334
239
  * state: "AA",
335
- * zipCode: "zip_code",
336
- * zipPlusFourCode: "zip_plus_four_code"
240
+ * zipCode: "zip_code"
337
241
  * },
338
242
  * taxId: "tax_id",
339
243
  * npi: "npi"
@@ -348,17 +252,41 @@ class V4 {
348
252
  * placeOfServiceCode: "01",
349
253
  * renderingProvider: {
350
254
  * npi: "npi"
351
- * }
255
+ * },
256
+ * patient: {
257
+ * externalId: "external_id",
258
+ * dateOfBirth: "2023-01-15",
259
+ * address: {
260
+ * address1: "address1",
261
+ * city: "city",
262
+ * state: "AA",
263
+ * zipCode: "zip_code"
264
+ * },
265
+ * firstName: "first_name",
266
+ * lastName: "last_name",
267
+ * gender: "male"
268
+ * },
269
+ * responsibleParty: "INSURANCE_PAY",
270
+ * externalId: CandidApi.EncounterExternalId("external_id"),
271
+ * patientAuthorizedRelease: true,
272
+ * benefitsAssignedToProvider: true,
273
+ * providerAcceptsAssignment: true,
274
+ * billableStatus: "BILLABLE"
352
275
  * })
353
276
  */
354
277
  create(request, requestOptions) {
278
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
279
+ }
280
+ __create(request, requestOptions) {
355
281
  return __awaiter(this, void 0, void 0, function* () {
356
- var _a, _b, _c;
282
+ var _a, _b, _c, _d;
283
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
357
284
  const _response = yield core.fetcher({
358
- 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).candidApi, "/api/encounters/v4"),
285
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).candidApi, "/api/encounters/v4"),
359
286
  method: "POST",
360
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
287
+ headers: _headers,
361
288
  contentType: "application/json",
289
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
362
290
  requestType: "json",
363
291
  body: serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
364
292
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -367,17 +295,22 @@ class V4 {
367
295
  });
368
296
  if (_response.ok) {
369
297
  return {
370
- ok: true,
371
- body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
372
- unrecognizedObjectKeys: "passthrough",
373
- allowUnrecognizedUnionMembers: true,
374
- allowUnrecognizedEnumValues: true,
375
- breadcrumbsPrefix: ["response"],
376
- }),
298
+ data: {
299
+ ok: true,
300
+ body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
301
+ unrecognizedObjectKeys: "passthrough",
302
+ allowUnrecognizedUnionMembers: true,
303
+ allowUnrecognizedEnumValues: true,
304
+ breadcrumbsPrefix: ["response"],
305
+ }),
306
+ headers: _response.headers,
307
+ rawResponse: _response.rawResponse,
308
+ },
309
+ rawResponse: _response.rawResponse,
377
310
  };
378
311
  }
379
312
  if (_response.error.reason === "status-code") {
380
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
313
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
381
314
  case "EncounterExternalIdUniquenessError":
382
315
  case "EncounterPatientControlNumberUniquenessError":
383
316
  case "EntityNotFoundError":
@@ -391,19 +324,27 @@ class V4 {
391
324
  case "PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError":
392
325
  case "EncounterRenderingOrAttendingProviderRequired":
393
326
  return {
394
- ok: false,
395
- error: serializers.encounters.v4.create.Error.parseOrThrow(_response.error.body, {
396
- unrecognizedObjectKeys: "passthrough",
397
- allowUnrecognizedUnionMembers: true,
398
- allowUnrecognizedEnumValues: true,
399
- breadcrumbsPrefix: ["response"],
400
- }),
327
+ data: {
328
+ ok: false,
329
+ error: serializers.encounters.v4.create.Error.parseOrThrow(_response.error.body, {
330
+ unrecognizedObjectKeys: "passthrough",
331
+ allowUnrecognizedUnionMembers: true,
332
+ allowUnrecognizedEnumValues: true,
333
+ breadcrumbsPrefix: ["response"],
334
+ }),
335
+ rawResponse: _response.rawResponse,
336
+ },
337
+ rawResponse: _response.rawResponse,
401
338
  };
402
339
  }
403
340
  }
404
341
  return {
405
- ok: false,
406
- error: CandidApi.encounters.v4.create.Error._unknown(_response.error),
342
+ data: {
343
+ ok: false,
344
+ error: CandidApi.encounters.v4.create.Error._unknown(_response.error),
345
+ rawResponse: _response.rawResponse,
346
+ },
347
+ rawResponse: _response.rawResponse,
407
348
  };
408
349
  });
409
350
  }
@@ -425,149 +366,55 @@ class V4 {
425
366
  * Utilizing this endpoint opts you into automatic updating of the encounter when the patient or appointment is updated, assuming the
426
367
  * encounter has not already been submitted or adjudicated.
427
368
  *
428
- * @param {CandidApi.encountersUniversal.UniversalEncounterCreateFromPreEncounter} request
369
+ * @param {CandidApi.encounters.v4.EncounterCreateFromPreEncounter} request
429
370
  * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
430
371
  *
431
372
  * @example
432
- * await client.encounters.v4.createFromPreEncounterPatientUniversal({
433
- * externalId: CandidApi.EncounterExternalId("external_id"),
434
- * patientAuthorizedRelease: true,
435
- * benefitsAssignedToProvider: true,
436
- * providerAcceptsAssignment: true,
437
- * billableStatus: "BILLABLE",
373
+ * await client.encounters.v4.createFromPreEncounterPatient({
374
+ * renderingProvider: {
375
+ * npi: "npi"
376
+ * },
377
+ * placeOfServiceCode: "01",
378
+ * diagnoses: [{
379
+ * codeType: "ABF",
380
+ * code: "code"
381
+ * }, {
382
+ * codeType: "ABF",
383
+ * code: "code"
384
+ * }],
438
385
  * preEncounterPatientId: CandidApi.PreEncounterPatientId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
439
386
  * preEncounterAppointmentIds: [CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
440
387
  * billingProvider: {
441
388
  * address: {
389
+ * zipPlusFourCode: "zip_plus_four_code",
442
390
  * address1: "address1",
443
391
  * city: "city",
444
392
  * state: "AA",
445
- * zipCode: "zip_code",
446
- * zipPlusFourCode: "zip_plus_four_code"
393
+ * zipCode: "zip_code"
447
394
  * },
448
395
  * taxId: "tax_id",
449
396
  * npi: "npi"
450
397
  * },
451
- * submissionExpectation: "TARGET_PROFESSIONAL"
452
- * })
453
- */
454
- createFromPreEncounterPatientUniversal(request, requestOptions) {
455
- return __awaiter(this, void 0, void 0, function* () {
456
- var _a, _b, _c;
457
- const _response = yield core.fetcher({
458
- 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).candidApi, "/api/encounters/v4/create-from-pre-encounter/universal"),
459
- method: "POST",
460
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
461
- contentType: "application/json",
462
- requestType: "json",
463
- body: serializers.encountersUniversal.UniversalEncounterCreateFromPreEncounter.jsonOrThrow(request, {
464
- unrecognizedObjectKeys: "strip",
465
- }),
466
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
467
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
468
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
469
- });
470
- if (_response.ok) {
471
- return {
472
- ok: true,
473
- body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
474
- unrecognizedObjectKeys: "passthrough",
475
- allowUnrecognizedUnionMembers: true,
476
- allowUnrecognizedEnumValues: true,
477
- breadcrumbsPrefix: ["response"],
478
- }),
479
- };
480
- }
481
- if (_response.error.reason === "status-code") {
482
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
483
- case "EncounterExternalIdUniquenessError":
484
- case "EncounterPatientControlNumberUniquenessError":
485
- case "EntityNotFoundError":
486
- case "UnauthorizedError":
487
- case "HttpRequestValidationsError":
488
- case "SchemaInstanceValidationHttpFailure":
489
- case "HttpRequestValidationError":
490
- case "PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError":
491
- return {
492
- ok: false,
493
- error: serializers.encounters.v4.createFromPreEncounterPatientUniversal.Error.parseOrThrow(_response.error
494
- .body, {
495
- unrecognizedObjectKeys: "passthrough",
496
- allowUnrecognizedUnionMembers: true,
497
- allowUnrecognizedEnumValues: true,
498
- breadcrumbsPrefix: ["response"],
499
- }),
500
- };
501
- }
502
- }
503
- return {
504
- ok: false,
505
- error: CandidApi.encounters.v4.createFromPreEncounterPatientUniversal.Error._unknown(_response.error),
506
- };
507
- });
508
- }
509
- /**
510
- * Create an encounter from a pre-encounter patient and appointment. This endpoint is intended to be used by consumers who are managing
511
- * patients and appointments in the pre-encounter service and is currently under development. Consumers who are not taking advantage
512
- * of the pre-encounter service should use the standard create endpoint.
513
- *
514
- * The endpoint will create an encounter from the provided fields, pulling information from the provided patient and appointment objects
515
- * where applicable. In particular, the following fields are populated from the patient and appointment objects:
516
- * - Patient
517
- * - Referring Provider
518
- * - Subscriber Primary
519
- * - Subscriber Secondary
520
- * - Referral Number
521
- * - Responsible Party
522
- * - Guarantor
523
- *
524
- * Utilizing this endpoint opts you into automatic updating of the encounter when the patient or appointment is updated, assuming the
525
- * encounter has not already been submitted or adjudicated.
526
- *
527
- * @param {CandidApi.encounters.v4.EncounterCreateFromPreEncounter} request
528
- * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
529
- *
530
- * @example
531
- * await client.encounters.v4.createFromPreEncounterPatient({
532
398
  * externalId: CandidApi.EncounterExternalId("external_id"),
533
399
  * patientAuthorizedRelease: true,
534
400
  * benefitsAssignedToProvider: true,
535
401
  * providerAcceptsAssignment: true,
536
- * billableStatus: "BILLABLE",
537
- * preEncounterPatientId: CandidApi.PreEncounterPatientId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
538
- * preEncounterAppointmentIds: [CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
539
- * billingProvider: {
540
- * address: {
541
- * address1: "address1",
542
- * city: "city",
543
- * state: "AA",
544
- * zipCode: "zip_code",
545
- * zipPlusFourCode: "zip_plus_four_code"
546
- * },
547
- * taxId: "tax_id",
548
- * npi: "npi"
549
- * },
550
- * renderingProvider: {
551
- * npi: "npi"
552
- * },
553
- * placeOfServiceCode: "01",
554
- * diagnoses: [{
555
- * codeType: "ABF",
556
- * code: "code"
557
- * }, {
558
- * codeType: "ABF",
559
- * code: "code"
560
- * }]
402
+ * billableStatus: "BILLABLE"
561
403
  * })
562
404
  */
563
405
  createFromPreEncounterPatient(request, requestOptions) {
406
+ return core.HttpResponsePromise.fromPromise(this.__createFromPreEncounterPatient(request, requestOptions));
407
+ }
408
+ __createFromPreEncounterPatient(request, requestOptions) {
564
409
  return __awaiter(this, void 0, void 0, function* () {
565
- var _a, _b, _c;
410
+ var _a, _b, _c, _d;
411
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
566
412
  const _response = yield core.fetcher({
567
- 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).candidApi, "/api/encounters/v4/create-from-pre-encounter"),
413
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).candidApi, "/api/encounters/v4/create-from-pre-encounter"),
568
414
  method: "POST",
569
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
415
+ headers: _headers,
570
416
  contentType: "application/json",
417
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
571
418
  requestType: "json",
572
419
  body: serializers.encounters.v4.EncounterCreateFromPreEncounter.jsonOrThrow(request, {
573
420
  unrecognizedObjectKeys: "strip",
@@ -578,17 +425,22 @@ class V4 {
578
425
  });
579
426
  if (_response.ok) {
580
427
  return {
581
- ok: true,
582
- body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
583
- unrecognizedObjectKeys: "passthrough",
584
- allowUnrecognizedUnionMembers: true,
585
- allowUnrecognizedEnumValues: true,
586
- breadcrumbsPrefix: ["response"],
587
- }),
428
+ data: {
429
+ ok: true,
430
+ body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
431
+ unrecognizedObjectKeys: "passthrough",
432
+ allowUnrecognizedUnionMembers: true,
433
+ allowUnrecognizedEnumValues: true,
434
+ breadcrumbsPrefix: ["response"],
435
+ }),
436
+ headers: _response.headers,
437
+ rawResponse: _response.rawResponse,
438
+ },
439
+ rawResponse: _response.rawResponse,
588
440
  };
589
441
  }
590
442
  if (_response.error.reason === "status-code") {
591
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
443
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
592
444
  case "EncounterExternalIdUniquenessError":
593
445
  case "EncounterPatientControlNumberUniquenessError":
594
446
  case "EntityNotFoundError":
@@ -598,81 +450,28 @@ class V4 {
598
450
  case "HttpRequestValidationError":
599
451
  case "PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError":
600
452
  return {
601
- ok: false,
602
- error: serializers.encounters.v4.createFromPreEncounterPatient.Error.parseOrThrow(_response.error.body, {
603
- unrecognizedObjectKeys: "passthrough",
604
- allowUnrecognizedUnionMembers: true,
605
- allowUnrecognizedEnumValues: true,
606
- breadcrumbsPrefix: ["response"],
607
- }),
453
+ data: {
454
+ ok: false,
455
+ error: serializers.encounters.v4.createFromPreEncounterPatient.Error.parseOrThrow(_response.error
456
+ .body, {
457
+ unrecognizedObjectKeys: "passthrough",
458
+ allowUnrecognizedUnionMembers: true,
459
+ allowUnrecognizedEnumValues: true,
460
+ breadcrumbsPrefix: ["response"],
461
+ }),
462
+ rawResponse: _response.rawResponse,
463
+ },
464
+ rawResponse: _response.rawResponse,
608
465
  };
609
466
  }
610
467
  }
611
468
  return {
612
- ok: false,
613
- error: CandidApi.encounters.v4.createFromPreEncounterPatient.Error._unknown(_response.error),
614
- };
615
- });
616
- }
617
- /**
618
- * @param {CandidApi.EncounterId} encounterId
619
- * @param {CandidApi.encountersUniversal.UniversalEncounterUpdate} request
620
- * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
621
- *
622
- * @example
623
- * await client.encounters.v4.updateUniversal(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {})
624
- */
625
- updateUniversal(encounterId, request, requestOptions) {
626
- return __awaiter(this, void 0, void 0, function* () {
627
- var _a, _b, _c;
628
- const _response = yield core.fetcher({
629
- 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).candidApi, `/api/encounters/v4/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}/universal`),
630
- method: "PATCH",
631
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
632
- contentType: "application/json",
633
- requestType: "json",
634
- body: serializers.encountersUniversal.UniversalEncounterUpdate.jsonOrThrow(request, {
635
- unrecognizedObjectKeys: "strip",
636
- }),
637
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
638
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
639
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
640
- });
641
- if (_response.ok) {
642
- return {
643
- ok: true,
644
- body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
645
- unrecognizedObjectKeys: "passthrough",
646
- allowUnrecognizedUnionMembers: true,
647
- allowUnrecognizedEnumValues: true,
648
- breadcrumbsPrefix: ["response"],
649
- }),
650
- };
651
- }
652
- if (_response.error.reason === "status-code") {
653
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
654
- case "EncounterExternalIdUniquenessError":
655
- case "EntityNotFoundError":
656
- case "UnauthorizedError":
657
- case "HttpRequestValidationsError":
658
- case "SchemaInstanceValidationHttpFailure":
659
- case "UnprocessableEntityError":
660
- case "InvalidTagNamesError":
661
- case "PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError":
662
- return {
663
- ok: false,
664
- error: serializers.encounters.v4.updateUniversal.Error.parseOrThrow(_response.error.body, {
665
- unrecognizedObjectKeys: "passthrough",
666
- allowUnrecognizedUnionMembers: true,
667
- allowUnrecognizedEnumValues: true,
668
- breadcrumbsPrefix: ["response"],
669
- }),
670
- };
671
- }
672
- }
673
- return {
674
- ok: false,
675
- error: CandidApi.encounters.v4.updateUniversal.Error._unknown(_response.error),
469
+ data: {
470
+ ok: false,
471
+ error: CandidApi.encounters.v4.createFromPreEncounterPatient.Error._unknown(_response.error),
472
+ rawResponse: _response.rawResponse,
473
+ },
474
+ rawResponse: _response.rawResponse,
676
475
  };
677
476
  });
678
477
  }
@@ -685,13 +484,18 @@ class V4 {
685
484
  * await client.encounters.v4.update(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {})
686
485
  */
687
486
  update(encounterId, request, requestOptions) {
487
+ return core.HttpResponsePromise.fromPromise(this.__update(encounterId, request, requestOptions));
488
+ }
489
+ __update(encounterId, request, requestOptions) {
688
490
  return __awaiter(this, void 0, void 0, function* () {
689
- var _a, _b, _c;
491
+ var _a, _b, _c, _d;
492
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
690
493
  const _response = yield core.fetcher({
691
- 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).candidApi, `/api/encounters/v4/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
494
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).candidApi, `/api/encounters/v4/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
692
495
  method: "PATCH",
693
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
496
+ headers: _headers,
694
497
  contentType: "application/json",
498
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
695
499
  requestType: "json",
696
500
  body: serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
697
501
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -700,17 +504,22 @@ class V4 {
700
504
  });
701
505
  if (_response.ok) {
702
506
  return {
703
- ok: true,
704
- body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
705
- unrecognizedObjectKeys: "passthrough",
706
- allowUnrecognizedUnionMembers: true,
707
- allowUnrecognizedEnumValues: true,
708
- breadcrumbsPrefix: ["response"],
709
- }),
507
+ data: {
508
+ ok: true,
509
+ body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
510
+ unrecognizedObjectKeys: "passthrough",
511
+ allowUnrecognizedUnionMembers: true,
512
+ allowUnrecognizedEnumValues: true,
513
+ breadcrumbsPrefix: ["response"],
514
+ }),
515
+ headers: _response.headers,
516
+ rawResponse: _response.rawResponse,
517
+ },
518
+ rawResponse: _response.rawResponse,
710
519
  };
711
520
  }
712
521
  if (_response.error.reason === "status-code") {
713
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
522
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
714
523
  case "EncounterExternalIdUniquenessError":
715
524
  case "EntityNotFoundError":
716
525
  case "UnauthorizedError":
@@ -720,19 +529,27 @@ class V4 {
720
529
  case "InvalidTagNamesError":
721
530
  case "PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError":
722
531
  return {
723
- ok: false,
724
- error: serializers.encounters.v4.update.Error.parseOrThrow(_response.error.body, {
725
- unrecognizedObjectKeys: "passthrough",
726
- allowUnrecognizedUnionMembers: true,
727
- allowUnrecognizedEnumValues: true,
728
- breadcrumbsPrefix: ["response"],
729
- }),
532
+ data: {
533
+ ok: false,
534
+ error: serializers.encounters.v4.update.Error.parseOrThrow(_response.error.body, {
535
+ unrecognizedObjectKeys: "passthrough",
536
+ allowUnrecognizedUnionMembers: true,
537
+ allowUnrecognizedEnumValues: true,
538
+ breadcrumbsPrefix: ["response"],
539
+ }),
540
+ rawResponse: _response.rawResponse,
541
+ },
542
+ rawResponse: _response.rawResponse,
730
543
  };
731
544
  }
732
545
  }
733
546
  return {
734
- ok: false,
735
- error: CandidApi.encounters.v4.update.Error._unknown(_response.error),
547
+ data: {
548
+ ok: false,
549
+ error: CandidApi.encounters.v4.update.Error._unknown(_response.error),
550
+ rawResponse: _response.rawResponse,
551
+ },
552
+ rawResponse: _response.rawResponse,
736
553
  };
737
554
  });
738
555
  }