candidhealth 1.3.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (610) hide show
  1. package/api/resources/auth/resources/default/client/Client.js +1 -1
  2. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  3. package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +33 -0
  4. package/api/resources/chargeCapture/resources/v1/client/Client.js +102 -6
  5. package/api/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.d.ts +58 -0
  6. package/api/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.js +123 -0
  7. package/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  8. package/api/resources/chargeCapture/resources/v1/client/index.js +2 -1
  9. package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.d.ts +30 -0
  10. package/{dist/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js → api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.js} +0 -6
  11. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +14 -0
  12. package/api/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  13. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
  14. package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +3 -3
  15. package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +3 -3
  16. package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +2 -2
  17. package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +2 -2
  18. package/api/resources/claimSubmission/resources/v1/types/index.d.ts +0 -1
  19. package/api/resources/claimSubmission/resources/v1/types/index.js +0 -1
  20. package/api/resources/commons/types/NextResponsibleParty.d.ts +12 -0
  21. package/api/resources/commons/types/NextResponsibleParty.js +14 -0
  22. package/api/resources/commons/types/index.d.ts +1 -0
  23. package/api/resources/commons/types/index.js +1 -0
  24. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  25. package/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +1 -1
  26. package/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +1 -1
  27. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  28. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  29. package/api/resources/diagnoses/client/Client.js +5 -3
  30. package/api/resources/diagnoses/client/delete.d.ts +7 -1
  31. package/api/resources/diagnoses/client/delete.js +11 -0
  32. package/api/resources/diagnoses/client/update.d.ts +7 -1
  33. package/api/resources/diagnoses/client/update.js +11 -0
  34. package/api/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.d.ts +9 -0
  35. package/api/resources/{claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js → diagnoses/types/DisallowMultiplePrimaryDiagnosisError.js} +0 -6
  36. package/api/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.d.ts +9 -0
  37. package/api/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.js +5 -0
  38. package/api/resources/diagnoses/types/index.d.ts +2 -0
  39. package/api/resources/diagnoses/types/index.js +2 -0
  40. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  41. package/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
  42. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  43. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  44. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +44 -2
  45. package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +3 -2
  46. package/api/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.d.ts +21 -0
  47. package/api/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.js +10 -0
  48. package/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
  49. package/api/resources/encounters/resources/v4/types/index.js +1 -0
  50. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  51. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  52. package/api/resources/exports/resources/v3/client/Client.d.ts +5 -3
  53. package/api/resources/exports/resources/v3/client/Client.js +8 -4
  54. package/api/resources/exports/resources/v3/client/getExports.d.ts +13 -1
  55. package/api/resources/exports/resources/v3/client/getExports.js +22 -0
  56. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  57. package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +18 -0
  58. package/api/resources/feeSchedules/resources/v3/client/Client.js +60 -10
  59. package/api/resources/feeSchedules/resources/v3/client/hardDeleteRates.d.ts +22 -0
  60. package/api/resources/feeSchedules/resources/v3/client/hardDeleteRates.js +57 -0
  61. package/api/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
  62. package/api/resources/feeSchedules/resources/v3/client/index.js +2 -1
  63. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  64. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  65. package/api/resources/individual/types/SubscriberCreate.d.ts +1 -0
  66. package/api/resources/individual/types/SubscriberCreateOptional.d.ts +1 -0
  67. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  68. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  69. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  70. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  71. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  72. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  73. package/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +15 -0
  74. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +79 -7
  75. package/api/resources/nonInsurancePayers/resources/v1/client/getCategories.d.ts +22 -0
  76. package/api/resources/nonInsurancePayers/resources/v1/client/getCategories.js +57 -0
  77. package/api/resources/nonInsurancePayers/resources/v1/client/index.d.ts +1 -0
  78. package/api/resources/nonInsurancePayers/resources/v1/client/index.js +2 -1
  79. package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +15 -0
  80. package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.d.ts +22 -0
  81. package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.js +5 -0
  82. package/api/resources/nonInsurancePayers/resources/v1/client/requests/index.d.ts +1 -0
  83. package/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.d.ts +7 -0
  84. package/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.js +5 -0
  85. package/api/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
  86. package/api/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
  87. package/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +2 -1
  88. package/api/resources/organizationProviders/resources/v2/types/LicenseType.js +1 -0
  89. package/api/resources/organizationProviders/resources/v3/client/Client.js +15 -5
  90. package/api/resources/organizationProviders/resources/v3/client/requests/GetAllOrganizationProvidersRequestV2.d.ts +4 -0
  91. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +16 -6
  92. package/api/resources/organizationServiceFacilities/resources/v2/client/requests/GetAllOrganizationServiceFacilitiesRequest.d.ts +4 -0
  93. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  94. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  95. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  96. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  97. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +1 -1
  98. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +8 -8
  99. package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +1 -1
  100. package/api/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +1 -0
  101. package/api/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -0
  102. package/api/resources/preEncounter/resources/common/types/BaseModel.d.ts +1 -1
  103. package/{dist/api/resources/preEncounter/resources/lists/resources/v1 → api/resources/preEncounter/resources/common}/types/FilterQueryString.d.ts +4 -4
  104. package/api/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  105. package/api/resources/preEncounter/resources/common/types/index.js +1 -0
  106. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +1 -1
  107. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +11 -11
  108. package/api/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +1 -1
  109. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +39 -4
  110. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +155 -8
  111. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/createRecommendation.d.ts +22 -0
  112. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/createRecommendation.js +57 -0
  113. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +4 -0
  114. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +8 -1
  115. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/payerSearch.d.ts +22 -0
  116. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/payerSearch.js +57 -0
  117. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.d.ts +22 -0
  118. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.js +57 -0
  119. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/BatchEligibilityPollRequest.d.ts +11 -0
  120. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/BatchEligibilityPollRequest.js +5 -0
  121. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/EligibilityRecommendationRequest.d.ts +11 -0
  122. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/EligibilityRecommendationRequest.js +5 -0
  123. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/PayerSearchRequest.d.ts +13 -0
  124. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/PayerSearchRequest.js +5 -0
  125. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/index.d.ts +3 -0
  126. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/index.js +2 -0
  127. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.d.ts +9 -0
  128. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.js +5 -0
  129. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.d.ts +13 -0
  130. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.js +5 -0
  131. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.d.ts +18 -0
  132. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.js +5 -0
  133. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.d.ts +13 -0
  134. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.js +5 -0
  135. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.d.ts +10 -0
  136. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.js +5 -0
  137. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +12 -0
  138. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.js +5 -0
  139. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.d.ts +8 -0
  140. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.js +5 -0
  141. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.d.ts +9 -0
  142. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.js +5 -0
  143. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.d.ts +15 -0
  144. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.js +5 -0
  145. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.d.ts +8 -0
  146. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.js +5 -0
  147. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +10 -0
  148. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +10 -0
  149. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  150. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  151. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +1 -1
  152. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +1 -1
  153. package/api/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
  154. package/api/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +0 -1
  155. package/api/resources/preEncounter/resources/lists/resources/v1/types/index.js +0 -1
  156. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  157. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +1 -1
  158. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +12 -12
  159. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  160. package/api/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.d.ts +2 -0
  161. package/api/resources/serviceFacility/client/Client.js +1 -1
  162. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  163. package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +3 -0
  164. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
  165. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +2 -0
  166. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +2 -0
  167. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -0
  168. package/api/resources/superbills/resources/v1/client/Client.js +1 -1
  169. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  170. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  171. package/api/resources/x12/resources/v1/types/PatientDischargeStatusCode.d.ts +166 -0
  172. package/api/resources/x12/resources/v1/types/PatientDischargeStatusCode.js +48 -0
  173. package/api/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.d.ts +50 -0
  174. package/api/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.js +19 -0
  175. package/api/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.d.ts +30 -0
  176. package/api/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.js +14 -0
  177. package/api/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +14 -0
  178. package/api/resources/x12/resources/v1/types/TypeOfBillComposite.js +5 -0
  179. package/api/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.d.ts +114 -0
  180. package/api/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.js +35 -0
  181. package/api/resources/x12/resources/v1/types/TypeOfCareCode.d.ts +42 -0
  182. package/api/resources/x12/resources/v1/types/TypeOfCareCode.js +17 -0
  183. package/api/resources/x12/resources/v1/types/TypeOfFacilityCode.d.ts +34 -0
  184. package/api/resources/x12/resources/v1/types/TypeOfFacilityCode.js +15 -0
  185. package/api/resources/x12/resources/v1/types/index.d.ts +7 -0
  186. package/api/resources/x12/resources/v1/types/index.js +7 -0
  187. package/dist/api/resources/auth/resources/default/client/Client.js +1 -1
  188. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  189. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +33 -0
  190. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +102 -6
  191. package/dist/api/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.d.ts +58 -0
  192. package/dist/api/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.js +123 -0
  193. package/dist/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  194. package/dist/api/resources/chargeCapture/resources/v1/client/index.js +2 -1
  195. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.d.ts +30 -0
  196. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.js +5 -0
  197. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +14 -0
  198. package/dist/api/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  199. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
  200. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +3 -3
  201. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +3 -3
  202. package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +2 -2
  203. package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +2 -2
  204. package/dist/api/resources/claimSubmission/resources/v1/types/index.d.ts +0 -1
  205. package/dist/api/resources/claimSubmission/resources/v1/types/index.js +0 -1
  206. package/dist/api/resources/commons/types/NextResponsibleParty.d.ts +12 -0
  207. package/dist/api/resources/commons/types/NextResponsibleParty.js +14 -0
  208. package/dist/api/resources/commons/types/index.d.ts +1 -0
  209. package/dist/api/resources/commons/types/index.js +1 -0
  210. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  211. package/dist/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +1 -1
  212. package/dist/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +1 -1
  213. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  214. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  215. package/dist/api/resources/diagnoses/client/Client.js +5 -3
  216. package/dist/api/resources/diagnoses/client/delete.d.ts +7 -1
  217. package/dist/api/resources/diagnoses/client/delete.js +11 -0
  218. package/dist/api/resources/diagnoses/client/update.d.ts +7 -1
  219. package/dist/api/resources/diagnoses/client/update.js +11 -0
  220. package/dist/api/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.d.ts +9 -0
  221. package/dist/api/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.js +5 -0
  222. package/dist/api/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.d.ts +9 -0
  223. package/dist/api/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.js +5 -0
  224. package/dist/api/resources/diagnoses/types/index.d.ts +2 -0
  225. package/dist/api/resources/diagnoses/types/index.js +2 -0
  226. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  227. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
  228. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  229. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  230. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +44 -2
  231. package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +3 -2
  232. package/dist/api/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.d.ts +21 -0
  233. package/dist/api/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.js +10 -0
  234. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
  235. package/dist/api/resources/encounters/resources/v4/types/index.js +1 -0
  236. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  237. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  238. package/dist/api/resources/exports/resources/v3/client/Client.d.ts +5 -3
  239. package/dist/api/resources/exports/resources/v3/client/Client.js +8 -4
  240. package/dist/api/resources/exports/resources/v3/client/getExports.d.ts +13 -1
  241. package/dist/api/resources/exports/resources/v3/client/getExports.js +22 -0
  242. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  243. package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +18 -0
  244. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +60 -10
  245. package/dist/api/resources/feeSchedules/resources/v3/client/hardDeleteRates.d.ts +22 -0
  246. package/dist/api/resources/feeSchedules/resources/v3/client/hardDeleteRates.js +57 -0
  247. package/dist/api/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
  248. package/dist/api/resources/feeSchedules/resources/v3/client/index.js +2 -1
  249. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  250. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  251. package/dist/api/resources/individual/types/SubscriberCreate.d.ts +1 -0
  252. package/dist/api/resources/individual/types/SubscriberCreateOptional.d.ts +1 -0
  253. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  254. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  255. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  256. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  257. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  258. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  259. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +15 -0
  260. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +79 -7
  261. package/dist/api/resources/nonInsurancePayers/resources/v1/client/getCategories.d.ts +22 -0
  262. package/dist/api/resources/nonInsurancePayers/resources/v1/client/getCategories.js +57 -0
  263. package/dist/api/resources/nonInsurancePayers/resources/v1/client/index.d.ts +1 -0
  264. package/dist/api/resources/nonInsurancePayers/resources/v1/client/index.js +2 -1
  265. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +15 -0
  266. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.d.ts +22 -0
  267. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.js +5 -0
  268. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/index.d.ts +1 -0
  269. package/dist/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.d.ts +7 -0
  270. package/dist/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.js +5 -0
  271. package/dist/api/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
  272. package/dist/api/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
  273. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +2 -1
  274. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.js +1 -0
  275. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +15 -5
  276. package/dist/api/resources/organizationProviders/resources/v3/client/requests/GetAllOrganizationProvidersRequestV2.d.ts +4 -0
  277. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +16 -6
  278. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/requests/GetAllOrganizationServiceFacilitiesRequest.d.ts +4 -0
  279. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  280. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  281. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  282. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  283. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +1 -1
  284. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +8 -8
  285. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +1 -1
  286. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +1 -0
  287. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -0
  288. package/dist/api/resources/preEncounter/resources/common/types/BaseModel.d.ts +1 -1
  289. package/{api/resources/preEncounter/resources/lists/resources/v1 → dist/api/resources/preEncounter/resources/common}/types/FilterQueryString.d.ts +4 -4
  290. package/dist/api/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  291. package/dist/api/resources/preEncounter/resources/common/types/index.js +1 -0
  292. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +1 -1
  293. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +11 -11
  294. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +1 -1
  295. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +39 -4
  296. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +155 -8
  297. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/createRecommendation.d.ts +22 -0
  298. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/createRecommendation.js +57 -0
  299. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +4 -0
  300. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +8 -1
  301. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/payerSearch.d.ts +22 -0
  302. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/payerSearch.js +57 -0
  303. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.d.ts +22 -0
  304. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.js +57 -0
  305. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/BatchEligibilityPollRequest.d.ts +11 -0
  306. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/BatchEligibilityPollRequest.js +5 -0
  307. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/EligibilityRecommendationRequest.d.ts +11 -0
  308. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/EligibilityRecommendationRequest.js +5 -0
  309. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/PayerSearchRequest.d.ts +13 -0
  310. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/PayerSearchRequest.js +5 -0
  311. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/index.d.ts +3 -0
  312. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/index.js +2 -0
  313. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.d.ts +9 -0
  314. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.js +5 -0
  315. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.d.ts +13 -0
  316. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.js +5 -0
  317. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.d.ts +18 -0
  318. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.js +5 -0
  319. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.d.ts +13 -0
  320. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.js +5 -0
  321. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.d.ts +10 -0
  322. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.js +5 -0
  323. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +12 -0
  324. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.js +5 -0
  325. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.d.ts +8 -0
  326. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.js +5 -0
  327. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.d.ts +9 -0
  328. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.js +5 -0
  329. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.d.ts +15 -0
  330. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.js +5 -0
  331. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.d.ts +8 -0
  332. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.js +5 -0
  333. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +10 -0
  334. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +10 -0
  335. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  336. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  337. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +1 -1
  338. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +1 -1
  339. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
  340. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +0 -1
  341. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/index.js +0 -1
  342. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  343. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +1 -1
  344. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +12 -12
  345. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  346. package/dist/api/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.d.ts +2 -0
  347. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  348. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  349. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +3 -0
  350. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
  351. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +2 -0
  352. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +2 -0
  353. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -0
  354. package/dist/api/resources/superbills/resources/v1/client/Client.js +1 -1
  355. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  356. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  357. package/dist/api/resources/x12/resources/v1/types/PatientDischargeStatusCode.d.ts +166 -0
  358. package/dist/api/resources/x12/resources/v1/types/PatientDischargeStatusCode.js +48 -0
  359. package/dist/api/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.d.ts +50 -0
  360. package/dist/api/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.js +19 -0
  361. package/dist/api/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.d.ts +30 -0
  362. package/dist/api/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.js +14 -0
  363. package/dist/api/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +14 -0
  364. package/dist/api/resources/x12/resources/v1/types/TypeOfBillComposite.js +5 -0
  365. package/dist/api/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.d.ts +114 -0
  366. package/dist/api/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.js +35 -0
  367. package/dist/api/resources/x12/resources/v1/types/TypeOfCareCode.d.ts +42 -0
  368. package/dist/api/resources/x12/resources/v1/types/TypeOfCareCode.js +17 -0
  369. package/dist/api/resources/x12/resources/v1/types/TypeOfFacilityCode.d.ts +34 -0
  370. package/dist/api/resources/x12/resources/v1/types/TypeOfFacilityCode.js +15 -0
  371. package/dist/api/resources/x12/resources/v1/types/index.d.ts +7 -0
  372. package/dist/api/resources/x12/resources/v1/types/index.js +7 -0
  373. package/dist/serialization/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.d.ts +40 -0
  374. package/dist/serialization/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.js +101 -0
  375. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  376. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.js +2 -1
  377. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.d.ts +23 -0
  378. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.js +54 -0
  379. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  380. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/index.js +3 -1
  381. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +2 -2
  382. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.js +2 -2
  383. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +2 -2
  384. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js +2 -2
  385. package/dist/serialization/resources/claimSubmission/resources/v1/types/index.d.ts +0 -1
  386. package/dist/serialization/resources/claimSubmission/resources/v1/types/index.js +0 -1
  387. package/dist/serialization/resources/commons/types/NextResponsibleParty.d.ts +10 -0
  388. package/dist/serialization/resources/commons/types/NextResponsibleParty.js +41 -0
  389. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  390. package/dist/serialization/resources/commons/types/index.js +1 -0
  391. package/dist/serialization/resources/diagnoses/client/delete.d.ts +6 -1
  392. package/dist/serialization/resources/diagnoses/client/delete.js +6 -0
  393. package/dist/serialization/resources/diagnoses/client/update.d.ts +6 -1
  394. package/dist/serialization/resources/diagnoses/client/update.js +6 -0
  395. package/dist/serialization/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.d.ts +15 -0
  396. package/dist/serialization/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.js +46 -0
  397. package/dist/serialization/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.d.ts +16 -0
  398. package/dist/serialization/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.js +47 -0
  399. package/dist/serialization/resources/diagnoses/types/index.d.ts +2 -0
  400. package/dist/serialization/resources/diagnoses/types/index.js +2 -0
  401. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +20 -0
  402. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +20 -0
  403. package/dist/serialization/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.d.ts +10 -0
  404. package/dist/serialization/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.js +41 -0
  405. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  406. package/dist/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  407. package/dist/serialization/resources/exports/resources/v3/client/getExports.d.ts +9 -1
  408. package/dist/serialization/resources/exports/resources/v3/client/getExports.js +10 -0
  409. package/dist/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRates.d.ts +9 -0
  410. package/dist/serialization/resources/{claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js → feeSchedules/resources/v3/client/hardDeleteRates.js} +2 -2
  411. package/dist/serialization/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
  412. package/dist/serialization/resources/feeSchedules/resources/v3/client/index.js +2 -1
  413. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.d.ts +13 -0
  414. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.js +46 -0
  415. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
  416. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
  417. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  418. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +1 -0
  419. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +1 -0
  420. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.js +1 -0
  421. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +2 -0
  422. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.js +2 -0
  423. package/dist/serialization/resources/preEncounter/resources/common/types/FilterQueryString.d.ts +10 -0
  424. package/dist/serialization/resources/preEncounter/resources/{lists/resources/v1 → common}/types/FilterQueryString.js +3 -3
  425. package/dist/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  426. package/dist/serialization/resources/preEncounter/resources/common/types/index.js +1 -0
  427. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +1 -0
  428. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +2 -1
  429. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.d.ts +11 -0
  430. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.js +42 -0
  431. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.d.ts +12 -0
  432. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.js +43 -0
  433. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.d.ts +17 -0
  434. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.js +50 -0
  435. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.d.ts +20 -0
  436. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.js +51 -0
  437. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.d.ts +18 -0
  438. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.js +51 -0
  439. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.d.ts +13 -0
  440. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.js +44 -0
  441. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +15 -0
  442. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.js +46 -0
  443. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.d.ts +15 -0
  444. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.js +48 -0
  445. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.d.ts +16 -0
  446. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.js +47 -0
  447. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.d.ts +21 -0
  448. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.js +52 -0
  449. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.d.ts +14 -0
  450. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.js +45 -0
  451. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +10 -0
  452. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +10 -0
  453. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
  454. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.js +2 -0
  455. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +0 -1
  456. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.js +0 -1
  457. package/dist/serialization/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.d.ts +2 -0
  458. package/dist/serialization/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.js +2 -0
  459. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -0
  460. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -0
  461. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -0
  462. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +1 -0
  463. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +1 -0
  464. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +1 -0
  465. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +1 -0
  466. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +1 -0
  467. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -0
  468. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +1 -0
  469. package/dist/serialization/resources/x12/resources/v1/types/PatientDischargeStatusCode.d.ts +10 -0
  470. package/dist/serialization/resources/x12/resources/v1/types/PatientDischargeStatusCode.js +82 -0
  471. package/dist/serialization/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.d.ts +10 -0
  472. package/dist/serialization/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.js +41 -0
  473. package/dist/serialization/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.d.ts +10 -0
  474. package/dist/serialization/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.js +41 -0
  475. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +18 -0
  476. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.js +49 -0
  477. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.d.ts +10 -0
  478. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.js +69 -0
  479. package/dist/serialization/resources/x12/resources/v1/types/TypeOfCareCode.d.ts +10 -0
  480. package/dist/serialization/resources/x12/resources/v1/types/TypeOfCareCode.js +41 -0
  481. package/dist/serialization/resources/x12/resources/v1/types/TypeOfFacilityCode.d.ts +10 -0
  482. package/dist/serialization/resources/x12/resources/v1/types/TypeOfFacilityCode.js +41 -0
  483. package/dist/serialization/resources/x12/resources/v1/types/index.d.ts +7 -0
  484. package/dist/serialization/resources/x12/resources/v1/types/index.js +7 -0
  485. package/dist/version.d.ts +1 -1
  486. package/dist/version.js +1 -1
  487. package/package.json +1 -1
  488. package/reference.md +442 -10
  489. package/serialization/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.d.ts +40 -0
  490. package/serialization/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.js +101 -0
  491. package/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  492. package/serialization/resources/chargeCapture/resources/v1/client/index.js +2 -1
  493. package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.d.ts +23 -0
  494. package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.js +54 -0
  495. package/serialization/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  496. package/serialization/resources/chargeCapture/resources/v1/client/requests/index.js +3 -1
  497. package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +2 -2
  498. package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.js +2 -2
  499. package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +2 -2
  500. package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js +2 -2
  501. package/serialization/resources/claimSubmission/resources/v1/types/index.d.ts +0 -1
  502. package/serialization/resources/claimSubmission/resources/v1/types/index.js +0 -1
  503. package/serialization/resources/commons/types/NextResponsibleParty.d.ts +10 -0
  504. package/serialization/resources/commons/types/NextResponsibleParty.js +41 -0
  505. package/serialization/resources/commons/types/index.d.ts +1 -0
  506. package/serialization/resources/commons/types/index.js +1 -0
  507. package/serialization/resources/diagnoses/client/delete.d.ts +6 -1
  508. package/serialization/resources/diagnoses/client/delete.js +6 -0
  509. package/serialization/resources/diagnoses/client/update.d.ts +6 -1
  510. package/serialization/resources/diagnoses/client/update.js +6 -0
  511. package/serialization/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.d.ts +15 -0
  512. package/serialization/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.js +46 -0
  513. package/serialization/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.d.ts +16 -0
  514. package/serialization/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.js +47 -0
  515. package/serialization/resources/diagnoses/types/index.d.ts +2 -0
  516. package/serialization/resources/diagnoses/types/index.js +2 -0
  517. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +20 -0
  518. package/serialization/resources/encounters/resources/v4/types/Encounter.js +20 -0
  519. package/serialization/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.d.ts +10 -0
  520. package/serialization/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.js +41 -0
  521. package/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  522. package/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  523. package/serialization/resources/exports/resources/v3/client/getExports.d.ts +9 -1
  524. package/serialization/resources/exports/resources/v3/client/getExports.js +10 -0
  525. package/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRates.d.ts +9 -0
  526. package/serialization/resources/{claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js → feeSchedules/resources/v3/client/hardDeleteRates.js} +2 -2
  527. package/serialization/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
  528. package/serialization/resources/feeSchedules/resources/v3/client/index.js +2 -1
  529. package/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.d.ts +13 -0
  530. package/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.js +46 -0
  531. package/serialization/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
  532. package/serialization/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
  533. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  534. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +1 -0
  535. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +1 -0
  536. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.js +1 -0
  537. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +2 -0
  538. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.js +2 -0
  539. package/serialization/resources/preEncounter/resources/common/types/FilterQueryString.d.ts +10 -0
  540. package/serialization/resources/preEncounter/resources/{lists/resources/v1 → common}/types/FilterQueryString.js +3 -3
  541. package/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  542. package/serialization/resources/preEncounter/resources/common/types/index.js +1 -0
  543. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +1 -0
  544. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +2 -1
  545. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.d.ts +11 -0
  546. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.js +42 -0
  547. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.d.ts +12 -0
  548. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.js +43 -0
  549. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.d.ts +17 -0
  550. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.js +50 -0
  551. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.d.ts +20 -0
  552. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.js +51 -0
  553. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.d.ts +18 -0
  554. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.js +51 -0
  555. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.d.ts +13 -0
  556. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.js +44 -0
  557. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +15 -0
  558. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.js +46 -0
  559. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.d.ts +15 -0
  560. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.js +48 -0
  561. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.d.ts +16 -0
  562. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.js +47 -0
  563. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.d.ts +21 -0
  564. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.js +52 -0
  565. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.d.ts +14 -0
  566. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.js +45 -0
  567. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +10 -0
  568. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +10 -0
  569. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
  570. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.js +2 -0
  571. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +0 -1
  572. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.js +0 -1
  573. package/serialization/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.d.ts +2 -0
  574. package/serialization/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.js +2 -0
  575. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -0
  576. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -0
  577. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -0
  578. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +1 -0
  579. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +1 -0
  580. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +1 -0
  581. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +1 -0
  582. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +1 -0
  583. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -0
  584. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +1 -0
  585. package/serialization/resources/x12/resources/v1/types/PatientDischargeStatusCode.d.ts +10 -0
  586. package/serialization/resources/x12/resources/v1/types/PatientDischargeStatusCode.js +82 -0
  587. package/serialization/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.d.ts +10 -0
  588. package/serialization/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.js +41 -0
  589. package/serialization/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.d.ts +10 -0
  590. package/serialization/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.js +41 -0
  591. package/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +18 -0
  592. package/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.js +49 -0
  593. package/serialization/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.d.ts +10 -0
  594. package/serialization/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.js +69 -0
  595. package/serialization/resources/x12/resources/v1/types/TypeOfCareCode.d.ts +10 -0
  596. package/serialization/resources/x12/resources/v1/types/TypeOfCareCode.js +41 -0
  597. package/serialization/resources/x12/resources/v1/types/TypeOfFacilityCode.d.ts +10 -0
  598. package/serialization/resources/x12/resources/v1/types/TypeOfFacilityCode.js +41 -0
  599. package/serialization/resources/x12/resources/v1/types/index.d.ts +7 -0
  600. package/serialization/resources/x12/resources/v1/types/index.js +7 -0
  601. package/version.d.ts +1 -1
  602. package/version.js +1 -1
  603. package/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +0 -9
  604. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +0 -9
  605. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +0 -10
  606. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/FilterQueryString.d.ts +0 -10
  607. package/serialization/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +0 -10
  608. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/FilterQueryString.d.ts +0 -10
  609. /package/api/resources/preEncounter/resources/{lists/resources/v1 → common}/types/FilterQueryString.js +0 -0
  610. /package/dist/api/resources/preEncounter/resources/{lists/resources/v1 → common}/types/FilterQueryString.js +0 -0
@@ -106,7 +106,7 @@ class Default {
106
106
  const _response = yield core.fetcher({
107
107
  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/auth/v2/token"),
108
108
  method: "POST",
109
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
109
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
110
110
  contentType: "application/json",
111
111
  requestType: "json",
112
112
  body: serializers.auth.default_.AuthGetTokenRequest.jsonOrThrow(request, {
@@ -73,7 +73,7 @@ class V2 {
73
73
  const _response = yield core.fetcher({
74
74
  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/billing_notes/v2"),
75
75
  method: "POST",
76
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
77
  contentType: "application/json",
78
78
  requestType: "json",
79
79
  body: serializers.billingNotes.v2.StandaloneBillingNoteCreate.jsonOrThrow(request, {
@@ -113,7 +113,7 @@ class V2 {
113
113
  const _response = yield core.fetcher({
114
114
  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/billing_notes/v2/${encodeURIComponent(serializers.billingNotes.v2.BillingNoteId.jsonOrThrow(billingNoteId))}`),
115
115
  method: "DELETE",
116
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
116
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
117
117
  contentType: "application/json",
118
118
  requestType: "json",
119
119
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -164,7 +164,7 @@ class V2 {
164
164
  const _response = yield core.fetcher({
165
165
  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/billing_notes/v2/${encodeURIComponent(serializers.billingNotes.v2.BillingNoteId.jsonOrThrow(billingNoteId))}`),
166
166
  method: "PATCH",
167
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
167
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
168
  contentType: "application/json",
169
169
  requestType: "json",
170
170
  body: serializers.billingNotes.v2.BillingNoteUpdate.jsonOrThrow(request, {
@@ -38,6 +38,39 @@ export declare class V1 {
38
38
  * })
39
39
  */
40
40
  create(request: CandidApi.chargeCapture.v1.CreateChargeCaptureRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.chargeCapture.v1.ChargeCapture, CandidApi.chargeCapture.v1.create.Error>>;
41
+ /**
42
+ * Create a Charge Capture from a pre-encounter patient and appointment. This endpoint is intended to be used by consumers who are managing
43
+ * patients and appointments in the pre-encounter service and is currently under development. Consumers who are not taking advantage
44
+ * of the pre-encounter service should use the standard create endpoint.
45
+ *
46
+ * At encounter creation time, information from the provided patient and appointment objects will be populated
47
+ * where applicable. In particular, the following fields are populated from the patient and appointment objects:
48
+ * - Patient
49
+ * - Referring Provider
50
+ * - Subscriber Primary
51
+ * - Subscriber Secondary
52
+ * - Referral Number
53
+ * - Responsible Party
54
+ * - Guarantor
55
+ *
56
+ * Note that these fields should not be populated in the ChargeCaptureData property of this endpoint, as they will be overwritten at encounter creation time.
57
+ *
58
+ * Utilizing this endpoint opts you into automatic updating of the encounter when the patient or appointment is updated, assuming the
59
+ * encounter has not already been submitted or adjudicated.
60
+ *
61
+ * @param {CandidApi.chargeCapture.v1.CreateChargeCaptureFromPreEncounterRequest} request
62
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
63
+ *
64
+ * @example
65
+ * await client.chargeCapture.v1.createFromPreEncounterPatient({
66
+ * data: {},
67
+ * chargeExternalId: "charge_external_id",
68
+ * preEncounterPatientId: CandidApi.PreEncounterPatientId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
69
+ * preEncounterAppointmentIds: [CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
70
+ * status: "planned"
71
+ * })
72
+ */
73
+ createFromPreEncounterPatient(request: CandidApi.chargeCapture.v1.CreateChargeCaptureFromPreEncounterRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.chargeCapture.v1.ChargeCapture, CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error>>;
41
74
  /**
42
75
  * @param {CandidApi.ChargeCaptureId} chargeCaptureId
43
76
  * @param {CandidApi.chargeCapture.v1.ChargeCaptureUpdate} request
@@ -76,7 +76,7 @@ class V1 {
76
76
  const _response = yield core.fetcher({
77
77
  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/charge_captures/v1"),
78
78
  method: "POST",
79
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  body: serializers.chargeCapture.v1.CreateChargeCaptureRequest.jsonOrThrow(request, {
@@ -122,6 +122,91 @@ class V1 {
122
122
  };
123
123
  });
124
124
  }
125
+ /**
126
+ * Create a Charge Capture from a pre-encounter patient and appointment. This endpoint is intended to be used by consumers who are managing
127
+ * patients and appointments in the pre-encounter service and is currently under development. Consumers who are not taking advantage
128
+ * of the pre-encounter service should use the standard create endpoint.
129
+ *
130
+ * At encounter creation time, information from the provided patient and appointment objects will be populated
131
+ * where applicable. In particular, the following fields are populated from the patient and appointment objects:
132
+ * - Patient
133
+ * - Referring Provider
134
+ * - Subscriber Primary
135
+ * - Subscriber Secondary
136
+ * - Referral Number
137
+ * - Responsible Party
138
+ * - Guarantor
139
+ *
140
+ * Note that these fields should not be populated in the ChargeCaptureData property of this endpoint, as they will be overwritten at encounter creation time.
141
+ *
142
+ * Utilizing this endpoint opts you into automatic updating of the encounter when the patient or appointment is updated, assuming the
143
+ * encounter has not already been submitted or adjudicated.
144
+ *
145
+ * @param {CandidApi.chargeCapture.v1.CreateChargeCaptureFromPreEncounterRequest} request
146
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
147
+ *
148
+ * @example
149
+ * await client.chargeCapture.v1.createFromPreEncounterPatient({
150
+ * data: {},
151
+ * chargeExternalId: "charge_external_id",
152
+ * preEncounterPatientId: CandidApi.PreEncounterPatientId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
153
+ * preEncounterAppointmentIds: [CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
154
+ * status: "planned"
155
+ * })
156
+ */
157
+ createFromPreEncounterPatient(request, requestOptions) {
158
+ return __awaiter(this, void 0, void 0, function* () {
159
+ var _a, _b, _c;
160
+ const _response = yield core.fetcher({
161
+ 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/charge_captures/v1/create-from-pre-encounter"),
162
+ method: "POST",
163
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
164
+ contentType: "application/json",
165
+ requestType: "json",
166
+ body: serializers.chargeCapture.v1.CreateChargeCaptureFromPreEncounterRequest.jsonOrThrow(request, {
167
+ unrecognizedObjectKeys: "strip",
168
+ }),
169
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
170
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
171
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
172
+ });
173
+ if (_response.ok) {
174
+ return {
175
+ ok: true,
176
+ body: serializers.chargeCapture.v1.ChargeCapture.parseOrThrow(_response.body, {
177
+ unrecognizedObjectKeys: "passthrough",
178
+ allowUnrecognizedUnionMembers: true,
179
+ allowUnrecognizedEnumValues: true,
180
+ breadcrumbsPrefix: ["response"],
181
+ }),
182
+ };
183
+ }
184
+ if (_response.error.reason === "status-code") {
185
+ switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
186
+ case "EntityNotFoundError":
187
+ case "UnauthorizedError":
188
+ case "HttpRequestValidationsError":
189
+ case "SchemaInstanceValidationHttpFailure":
190
+ case "UnprocessableEntityError":
191
+ case "ChargeExternalIdConflictError":
192
+ return {
193
+ ok: false,
194
+ error: serializers.chargeCapture.v1.createFromPreEncounterPatient.Error.parseOrThrow(_response.error
195
+ .body, {
196
+ unrecognizedObjectKeys: "passthrough",
197
+ allowUnrecognizedUnionMembers: true,
198
+ allowUnrecognizedEnumValues: true,
199
+ breadcrumbsPrefix: ["response"],
200
+ }),
201
+ };
202
+ }
203
+ }
204
+ return {
205
+ ok: false,
206
+ error: CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._unknown(_response.error),
207
+ };
208
+ });
209
+ }
125
210
  /**
126
211
  * @param {CandidApi.ChargeCaptureId} chargeCaptureId
127
212
  * @param {CandidApi.chargeCapture.v1.ChargeCaptureUpdate} request
@@ -136,7 +221,7 @@ class V1 {
136
221
  const _response = yield core.fetcher({
137
222
  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/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
138
223
  method: "PATCH",
139
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
224
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
140
225
  contentType: "application/json",
141
226
  requestType: "json",
142
227
  body: serializers.chargeCapture.v1.ChargeCaptureUpdate.jsonOrThrow(request, {
@@ -194,7 +279,7 @@ class V1 {
194
279
  const _response = yield core.fetcher({
195
280
  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/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
196
281
  method: "GET",
197
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
282
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
198
283
  contentType: "application/json",
199
284
  requestType: "json",
200
285
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -228,7 +313,7 @@ class V1 {
228
313
  getAll() {
229
314
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
230
315
  var _a, _b;
231
- const { limit, sort, sortDirection, pageToken, patientExternalId, status, chargeExternalId, dateOfServiceMin, dateOfServiceMax, claimIds, claimCreationIds, billingProviderNpis, serviceFacilityName, primaryPayerIds, renderingProviderNpis, renderingProviderNames, supervisingProviderNpis, supervisingProviderNames, excludeChargesLinkedToClaims, patientExternalIdRankedSort, statusRankedSort, chargeExternalIdRankedSort, dateOfServiceMinRankedSort, dateOfServiceMaxRankedSort, claimIdsRankedSort, claimCreationIdsRankedSort, billingProviderNpisRankedSort, serviceFacilityNameRankedSort, primaryPayerIdsRankedSort, renderingProviderNpisRankedSort, renderingProviderNamesRankedSort, supervisingProviderNpisRankedSort, supervisingProviderNamesRankedSort, } = request;
316
+ const { limit, sort, sortDirection, pageToken, patientExternalId, status, chargeExternalId, dateOfServiceMin, dateOfServiceMax, claimIds, claimCreationIds, billingProviderNpis, serviceFacilityName, primaryPayerIds, renderingProviderNpis, renderingProviderNames, supervisingProviderNpis, supervisingProviderNames, excludeChargesLinkedToClaims, patientExternalIdRankedSort, statusRankedSort, chargeExternalIdRankedSort, dateOfServiceMinRankedSort, dateOfServiceMaxRankedSort, searchTerm, billableStatus, responsibleParty, claimIdsRankedSort, claimCreationIdsRankedSort, billingProviderNpisRankedSort, serviceFacilityNameRankedSort, primaryPayerIdsRankedSort, renderingProviderNpisRankedSort, renderingProviderNamesRankedSort, supervisingProviderNpisRankedSort, supervisingProviderNamesRankedSort, } = request;
232
317
  const _queryParams = {};
233
318
  if (limit != null) {
234
319
  _queryParams["limit"] = limit.toString();
@@ -348,6 +433,17 @@ class V1 {
348
433
  if (dateOfServiceMaxRankedSort != null) {
349
434
  _queryParams["date_of_service_max_ranked_sort"] = dateOfServiceMaxRankedSort;
350
435
  }
436
+ if (searchTerm != null) {
437
+ _queryParams["search_term"] = searchTerm;
438
+ }
439
+ if (billableStatus != null) {
440
+ _queryParams["billable_status"] = serializers.encounters.v4.BillableStatusType.jsonOrThrow(billableStatus, {
441
+ unrecognizedObjectKeys: "strip",
442
+ });
443
+ }
444
+ if (responsibleParty != null) {
445
+ _queryParams["responsible_party"] = serializers.encounters.v4.ResponsiblePartyType.jsonOrThrow(responsibleParty, { unrecognizedObjectKeys: "strip" });
446
+ }
351
447
  if (claimIdsRankedSort != null) {
352
448
  if (Array.isArray(claimIdsRankedSort)) {
353
449
  _queryParams["claim_ids_ranked_sort"] = claimIdsRankedSort.map((item) => serializers.EncounterId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" }));
@@ -418,7 +514,7 @@ class V1 {
418
514
  const _response = yield core.fetcher({
419
515
  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/charge_captures/v1"),
420
516
  method: "GET",
421
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
517
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
422
518
  contentType: "application/json",
423
519
  queryParameters: _queryParams,
424
520
  requestType: "json",
@@ -459,7 +555,7 @@ class V1 {
459
555
  const _response = yield core.fetcher({
460
556
  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/charge_captures/v1/changes/"),
461
557
  method: "PATCH",
462
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
558
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
463
559
  contentType: "application/json",
464
560
  requestType: "json",
465
561
  body: serializers.chargeCapture.v1.ChargeCapturePostBilledChangeUpdate.jsonOrThrow(request, {
@@ -0,0 +1,58 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ import * as core from "../../../../../../core";
6
+ export type Error = CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.EntityNotFoundError | CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.UnauthorizedError | CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.HttpRequestValidationsError | CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.SchemaInstanceValidationHttpFailure | CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.UnprocessableEntityError | CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.ChargeExternalIdConflictError | CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface EntityNotFoundError extends _Utils {
9
+ errorName: "EntityNotFoundError";
10
+ content: CandidApi.EntityNotFoundErrorMessage;
11
+ }
12
+ interface UnauthorizedError extends _Utils {
13
+ errorName: "UnauthorizedError";
14
+ content: CandidApi.UnauthorizedErrorMessage;
15
+ }
16
+ interface HttpRequestValidationsError extends _Utils {
17
+ errorName: "HttpRequestValidationsError";
18
+ content: CandidApi.RequestValidationError[];
19
+ }
20
+ interface SchemaInstanceValidationHttpFailure extends _Utils {
21
+ errorName: "SchemaInstanceValidationHttpFailure";
22
+ content: CandidApi.encounters.v4.SchemaInstanceValidationFailure;
23
+ }
24
+ interface UnprocessableEntityError extends _Utils {
25
+ errorName: "UnprocessableEntityError";
26
+ content: CandidApi.UnprocessableEntityErrorMessage;
27
+ }
28
+ interface ChargeExternalIdConflictError extends _Utils {
29
+ errorName: "ChargeExternalIdConflictError";
30
+ content: CandidApi.chargeCapture.v1.ChargeExternalIdConflictErrorMessage;
31
+ }
32
+ interface _Unknown extends _Utils {
33
+ errorName: void;
34
+ content: core.Fetcher.Error;
35
+ }
36
+ interface _Utils {
37
+ _visit: <_Result>(visitor: CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._Visitor<_Result>) => _Result;
38
+ }
39
+ interface _Visitor<_Result> {
40
+ entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
41
+ unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
42
+ httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
43
+ schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => _Result;
44
+ unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
45
+ chargeExternalIdConflictError: (value: CandidApi.chargeCapture.v1.ChargeExternalIdConflictErrorMessage) => _Result;
46
+ _other: (value: core.Fetcher.Error) => _Result;
47
+ }
48
+ }
49
+ export declare const Error: {
50
+ readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.EntityNotFoundError;
51
+ readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.UnauthorizedError;
52
+ readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.HttpRequestValidationsError;
53
+ readonly schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.SchemaInstanceValidationHttpFailure;
54
+ readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.UnprocessableEntityError;
55
+ readonly chargeExternalIdConflictError: (value: CandidApi.chargeCapture.v1.ChargeExternalIdConflictErrorMessage) => CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.ChargeExternalIdConflictError;
56
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._Unknown;
57
+ readonly _visit: <_Result>(value: CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error, visitor: CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._Visitor<_Result>) => _Result;
58
+ };
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Error = void 0;
40
+ const CandidApi = __importStar(require("../../../../../index"));
41
+ exports.Error = {
42
+ entityNotFoundError: (value) => {
43
+ return {
44
+ content: value,
45
+ errorName: "EntityNotFoundError",
46
+ _visit: function (visitor) {
47
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._visit(this, visitor);
48
+ },
49
+ };
50
+ },
51
+ unauthorizedError: (value) => {
52
+ return {
53
+ content: value,
54
+ errorName: "UnauthorizedError",
55
+ _visit: function (visitor) {
56
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._visit(this, visitor);
57
+ },
58
+ };
59
+ },
60
+ httpRequestValidationsError: (value) => {
61
+ return {
62
+ content: value,
63
+ errorName: "HttpRequestValidationsError",
64
+ _visit: function (visitor) {
65
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._visit(this, visitor);
66
+ },
67
+ };
68
+ },
69
+ schemaInstanceValidationHttpFailure: (value) => {
70
+ return {
71
+ content: value,
72
+ errorName: "SchemaInstanceValidationHttpFailure",
73
+ _visit: function (visitor) {
74
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._visit(this, visitor);
75
+ },
76
+ };
77
+ },
78
+ unprocessableEntityError: (value) => {
79
+ return {
80
+ content: value,
81
+ errorName: "UnprocessableEntityError",
82
+ _visit: function (visitor) {
83
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._visit(this, visitor);
84
+ },
85
+ };
86
+ },
87
+ chargeExternalIdConflictError: (value) => {
88
+ return {
89
+ content: value,
90
+ errorName: "ChargeExternalIdConflictError",
91
+ _visit: function (visitor) {
92
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._visit(this, visitor);
93
+ },
94
+ };
95
+ },
96
+ _unknown: (fetcherError) => {
97
+ return {
98
+ errorName: undefined,
99
+ content: fetcherError,
100
+ _visit: function (visitor) {
101
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._visit(this, visitor);
102
+ },
103
+ };
104
+ },
105
+ _visit: (value, visitor) => {
106
+ switch (value.errorName) {
107
+ case "EntityNotFoundError":
108
+ return visitor.entityNotFoundError(value.content);
109
+ case "UnauthorizedError":
110
+ return visitor.unauthorizedError(value.content);
111
+ case "HttpRequestValidationsError":
112
+ return visitor.httpRequestValidationsError(value.content);
113
+ case "SchemaInstanceValidationHttpFailure":
114
+ return visitor.schemaInstanceValidationHttpFailure(value.content);
115
+ case "UnprocessableEntityError":
116
+ return visitor.unprocessableEntityError(value.content);
117
+ case "ChargeExternalIdConflictError":
118
+ return visitor.chargeExternalIdConflictError(value.content);
119
+ default:
120
+ return visitor._other(value);
121
+ }
122
+ },
123
+ };
@@ -1,5 +1,6 @@
1
1
  export * from "./requests";
2
2
  export * as create from "./create";
3
+ export * as createFromPreEncounterPatient from "./createFromPreEncounterPatient";
3
4
  export * as update from "./update";
4
5
  export * as get from "./get";
5
6
  export * as getAll from "./getAll";
@@ -36,9 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.updatePostBilledChanges = exports.getAll = exports.get = exports.update = exports.create = void 0;
39
+ exports.updatePostBilledChanges = exports.getAll = exports.get = exports.update = exports.createFromPreEncounterPatient = exports.create = void 0;
40
40
  __exportStar(require("./requests"), exports);
41
41
  exports.create = __importStar(require("./create"));
42
+ exports.createFromPreEncounterPatient = __importStar(require("./createFromPreEncounterPatient"));
42
43
  exports.update = __importStar(require("./update"));
43
44
  exports.get = __importStar(require("./get"));
44
45
  exports.getAll = __importStar(require("./getAll"));
@@ -0,0 +1,30 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * data: {},
9
+ * chargeExternalId: "charge_external_id",
10
+ * preEncounterPatientId: CandidApi.PreEncounterPatientId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
11
+ * preEncounterAppointmentIds: [CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
12
+ * status: "planned"
13
+ * }
14
+ */
15
+ export interface CreateChargeCaptureFromPreEncounterRequest {
16
+ /** Charge Capture data contains all the fields needed to create an encounter, but listed as optional. Candid will use this data when attempting to bundle multiple Charge Captures into a single encounter. */
17
+ data: CandidApi.chargeCapture.v1.ChargeCaptureData;
18
+ /** A client-specified unique ID to associate with this encounter; for example, your internal encounter ID or a Dr. Chrono encounter ID. This field should not contain PHI. */
19
+ chargeExternalId: string;
20
+ preEncounterPatientId: CandidApi.PreEncounterPatientId;
21
+ preEncounterAppointmentIds: CandidApi.PreEncounterAppointmentId[];
22
+ /** An optional string field denoting the originating system of the charge. */
23
+ originatingSystem?: string;
24
+ /** An optional string field denoting the user defined category of the claim creation. */
25
+ claimCreationCategory?: string;
26
+ /** External URL reference that links to Charge Capture details within the external system (e.g. the EHR visit page). Send full URL format for the external link (e.g. https://emr_charge_capture_url.com/123). */
27
+ ehrSourceUrl?: string;
28
+ /** the status of the charge capture */
29
+ status: CandidApi.chargeCapture.v1.ChargeCaptureStatus;
30
+ }
@@ -3,9 +3,3 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ClaimFrequencyTypeCode = void 0;
7
- exports.ClaimFrequencyTypeCode = {
8
- Original: "1",
9
- Replacement: "7",
10
- Void: "8",
11
- };
@@ -108,6 +108,20 @@ export interface GetAllChargeCapturesRequest {
108
108
  * This date must be the local date in the timezone where the service occurred.
109
109
  */
110
110
  dateOfServiceMaxRankedSort?: string;
111
+ /**
112
+ * Filter by any of the following fields: charge_id, claim_id, patient external_id,
113
+ * patient date of birth, patient first name, patient last name,
114
+ * or charge external id.
115
+ */
116
+ searchTerm?: string;
117
+ /**
118
+ * Defines if the Encounter is to be billed by Candid to the responsible_party. Examples for when this should be set to NOT_BILLABLE include if the Encounter has not occurred yet or if there is no intention of ever billing the responsible_party.
119
+ */
120
+ billableStatus?: CandidApi.encounters.v4.BillableStatusType;
121
+ /**
122
+ * Defines the party to be billed with the initial balance owed on the claim. Use SELF_PAY if you intend to bill self pay/cash pay.
123
+ */
124
+ responsibleParty?: CandidApi.encounters.v4.ResponsiblePartyType;
111
125
  /**
112
126
  * A list of claim IDs to show first. This will return all charge captures that have a resulting claim with one of the IDs in this list.
113
127
  */
@@ -1,4 +1,5 @@
1
1
  export { type CreateChargeCaptureRequest } from "./CreateChargeCaptureRequest";
2
+ export { type CreateChargeCaptureFromPreEncounterRequest } from "./CreateChargeCaptureFromPreEncounterRequest";
2
3
  export { type ChargeCaptureUpdate } from "./ChargeCaptureUpdate";
3
4
  export { type GetAllChargeCapturesRequest } from "./GetAllChargeCapturesRequest";
4
5
  export { type ChargeCapturePostBilledChangeUpdate } from "./ChargeCapturePostBilledChangeUpdate";
@@ -71,7 +71,7 @@ class V1 {
71
71
  const _response = yield core.fetcher({
72
72
  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/charge_capture_claim_creation/v1/${encodeURIComponent(serializers.ChargeCaptureClaimCreationId.jsonOrThrow(chargeCaptureClaimCreationId))}`),
73
73
  method: "GET",
74
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
74
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
75
  contentType: "application/json",
76
76
  requestType: "json",
77
77
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -107,7 +107,7 @@ class V1 {
107
107
  const _response = yield core.fetcher({
108
108
  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/charge_capture_claim_creation/v1/all/summary"),
109
109
  method: "GET",
110
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
110
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
111
111
  contentType: "application/json",
112
112
  requestType: "json",
113
113
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -145,7 +145,7 @@ class V1 {
145
145
  const _response = yield core.fetcher({
146
146
  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/charge_capture_claim_creation/v1/error/${encodeURIComponent(chargeCaptureBundleErrorId)}`),
147
147
  method: "PATCH",
148
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
148
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
149
149
  contentType: "application/json",
150
150
  requestType: "json",
151
151
  body: serializers.chargeCaptureBundles.v1.ChargeCaptureBundleErrorResolution.jsonOrThrow(request, {
@@ -305,7 +305,7 @@ class V1 {
305
305
  const _response = yield core.fetcher({
306
306
  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/charge_capture_claim_creation/v1"),
307
307
  method: "GET",
308
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
308
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
309
309
  contentType: "application/json",
310
310
  queryParameters: _queryParams,
311
311
  requestType: "json",
@@ -8,7 +8,7 @@ import * as CandidApi from "../../../../../index";
8
8
  * @example
9
9
  * {
10
10
  * submittedAt: "2023-01-01T13:00:00.000000Z",
11
- * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Original,
11
+ * claimFrequencyCode: CandidApi.x12.v1.TypeOfBillFrequencyCode.C1,
12
12
  * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
13
13
  * intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Electronic
14
14
  * }
@@ -16,7 +16,7 @@ import * as CandidApi from "../../../../../index";
16
16
  * @example
17
17
  * {
18
18
  * submittedAt: "2023-01-04T12:00:00.000000Z",
19
- * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Replacement,
19
+ * claimFrequencyCode: CandidApi.x12.v1.TypeOfBillFrequencyCode.C7,
20
20
  * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
21
21
  * intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Paper
22
22
  * }
@@ -24,7 +24,7 @@ import * as CandidApi from "../../../../../index";
24
24
  export interface ClaimSubmissionRecordCreate {
25
25
  /** When the claim was submitted to the payer. */
26
26
  submittedAt: Date;
27
- claimFrequencyCode?: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode;
27
+ claimFrequencyCode?: CandidApi.x12.v1.TypeOfBillFrequencyCode;
28
28
  payerResponsibility?: CandidApi.ClaimSubmissionPayerResponsibilityType;
29
29
  /**
30
30
  * The medium by which the claim was submitted to the payer: paper or electronic.
@@ -8,7 +8,7 @@ import * as CandidApi from "../../../../../index";
8
8
  * @example
9
9
  * {
10
10
  * submittedAt: "2023-01-01T13:00:00.000000Z",
11
- * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Original,
11
+ * claimFrequencyCode: CandidApi.x12.v1.TypeOfBillFrequencyCode.C1,
12
12
  * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
13
13
  * intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Electronic
14
14
  * }
@@ -16,7 +16,7 @@ import * as CandidApi from "../../../../../index";
16
16
  * @example
17
17
  * {
18
18
  * submittedAt: "2023-01-04T12:00:00.000000Z",
19
- * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Replacement,
19
+ * claimFrequencyCode: CandidApi.x12.v1.TypeOfBillFrequencyCode.C7,
20
20
  * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
21
21
  * intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Paper
22
22
  * }
@@ -24,7 +24,7 @@ import * as CandidApi from "../../../../../index";
24
24
  export interface ClaimSubmissionRecordCreateOptional {
25
25
  /** When the claim was submitted to the payer. */
26
26
  submittedAt?: Date;
27
- claimFrequencyCode?: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode;
27
+ claimFrequencyCode?: CandidApi.x12.v1.TypeOfBillFrequencyCode;
28
28
  payerResponsibility?: CandidApi.ClaimSubmissionPayerResponsibilityType;
29
29
  /**
30
30
  * The medium by which the claim was submitted to the payer: paper or electronic.