candidhealth 1.3.0 → 1.4.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 (480) 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.js +17 -6
  4. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +14 -0
  5. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
  6. package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +3 -3
  7. package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +3 -3
  8. package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +2 -2
  9. package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +2 -2
  10. package/api/resources/claimSubmission/resources/v1/types/index.d.ts +0 -1
  11. package/api/resources/claimSubmission/resources/v1/types/index.js +0 -1
  12. package/api/resources/commons/types/NextResponsibleParty.d.ts +12 -0
  13. package/api/resources/commons/types/NextResponsibleParty.js +14 -0
  14. package/api/resources/commons/types/index.d.ts +1 -0
  15. package/api/resources/commons/types/index.js +1 -0
  16. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  17. package/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +1 -1
  18. package/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +1 -1
  19. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  20. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  21. package/api/resources/diagnoses/client/Client.js +4 -3
  22. package/api/resources/diagnoses/client/delete.d.ts +7 -1
  23. package/api/resources/diagnoses/client/delete.js +11 -0
  24. package/api/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.d.ts +9 -0
  25. package/{dist/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js → api/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.js} +0 -6
  26. package/api/resources/diagnoses/types/index.d.ts +1 -0
  27. package/api/resources/diagnoses/types/index.js +1 -0
  28. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  29. package/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
  30. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  31. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  32. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +44 -2
  33. package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +3 -2
  34. package/api/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.d.ts +21 -0
  35. package/api/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.js +10 -0
  36. package/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
  37. package/api/resources/encounters/resources/v4/types/index.js +1 -0
  38. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  39. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  40. package/api/resources/exports/resources/v3/client/Client.d.ts +5 -3
  41. package/api/resources/exports/resources/v3/client/Client.js +8 -4
  42. package/api/resources/exports/resources/v3/client/getExports.d.ts +13 -1
  43. package/api/resources/exports/resources/v3/client/getExports.js +22 -0
  44. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  45. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  46. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  47. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  48. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  49. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  50. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  51. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  52. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  53. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  54. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  55. package/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +2 -1
  56. package/api/resources/organizationProviders/resources/v2/types/LicenseType.js +1 -0
  57. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  58. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  59. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  60. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  61. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  62. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  63. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  64. package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +1 -1
  65. package/{dist/api/resources/preEncounter/resources/lists/resources/v1 → api/resources/preEncounter/resources/common}/types/FilterQueryString.d.ts +3 -3
  66. package/api/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  67. package/api/resources/preEncounter/resources/common/types/index.js +1 -0
  68. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
  69. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +42 -1
  70. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +158 -5
  71. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/createRecommendation.d.ts +22 -0
  72. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/createRecommendation.js +57 -0
  73. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +4 -0
  74. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +8 -1
  75. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/payerSearch.d.ts +22 -0
  76. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/payerSearch.js +57 -0
  77. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.d.ts +22 -0
  78. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.js +57 -0
  79. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/BatchEligibilityPollRequest.d.ts +11 -0
  80. package/api/resources/{claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js → preEncounter/resources/eligibilityChecks/resources/v1/client/requests/BatchEligibilityPollRequest.js} +0 -6
  81. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/EligibilityRecommendationRequest.d.ts +11 -0
  82. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/EligibilityRecommendationRequest.js +5 -0
  83. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/PayerSearchRequest.d.ts +13 -0
  84. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/PayerSearchRequest.js +5 -0
  85. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/index.d.ts +3 -0
  86. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/index.js +2 -0
  87. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.d.ts +9 -0
  88. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.js +5 -0
  89. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.d.ts +13 -0
  90. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.js +5 -0
  91. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.d.ts +18 -0
  92. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.js +5 -0
  93. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.d.ts +13 -0
  94. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.js +5 -0
  95. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.d.ts +10 -0
  96. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.js +5 -0
  97. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +11 -0
  98. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.js +5 -0
  99. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.d.ts +8 -0
  100. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.js +5 -0
  101. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.d.ts +9 -0
  102. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.js +5 -0
  103. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.d.ts +15 -0
  104. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.js +5 -0
  105. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.d.ts +8 -0
  106. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.js +5 -0
  107. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +10 -0
  108. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +10 -0
  109. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  110. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  111. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +1 -1
  112. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +1 -1
  113. package/api/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
  114. package/api/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +0 -1
  115. package/api/resources/preEncounter/resources/lists/resources/v1/types/index.js +0 -1
  116. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  117. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  118. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  119. package/api/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.d.ts +2 -0
  120. package/api/resources/serviceFacility/client/Client.js +1 -1
  121. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  122. package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +3 -0
  123. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
  124. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +2 -0
  125. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +2 -0
  126. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -0
  127. package/api/resources/superbills/resources/v1/client/Client.js +1 -1
  128. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  129. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  130. package/api/resources/x12/resources/v1/types/PatientDischargeStatusCode.d.ts +166 -0
  131. package/api/resources/x12/resources/v1/types/PatientDischargeStatusCode.js +48 -0
  132. package/api/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.d.ts +50 -0
  133. package/api/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.js +19 -0
  134. package/api/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.d.ts +30 -0
  135. package/api/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.js +14 -0
  136. package/api/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +14 -0
  137. package/api/resources/x12/resources/v1/types/TypeOfBillComposite.js +5 -0
  138. package/api/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.d.ts +114 -0
  139. package/api/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.js +35 -0
  140. package/api/resources/x12/resources/v1/types/TypeOfCareCode.d.ts +42 -0
  141. package/api/resources/x12/resources/v1/types/TypeOfCareCode.js +17 -0
  142. package/api/resources/x12/resources/v1/types/TypeOfFacilityCode.d.ts +34 -0
  143. package/api/resources/x12/resources/v1/types/TypeOfFacilityCode.js +15 -0
  144. package/api/resources/x12/resources/v1/types/index.d.ts +7 -0
  145. package/api/resources/x12/resources/v1/types/index.js +7 -0
  146. package/dist/api/resources/auth/resources/default/client/Client.js +1 -1
  147. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  148. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +17 -6
  149. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +14 -0
  150. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
  151. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +3 -3
  152. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +3 -3
  153. package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +2 -2
  154. package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +2 -2
  155. package/dist/api/resources/claimSubmission/resources/v1/types/index.d.ts +0 -1
  156. package/dist/api/resources/claimSubmission/resources/v1/types/index.js +0 -1
  157. package/dist/api/resources/commons/types/NextResponsibleParty.d.ts +12 -0
  158. package/dist/api/resources/commons/types/NextResponsibleParty.js +14 -0
  159. package/dist/api/resources/commons/types/index.d.ts +1 -0
  160. package/dist/api/resources/commons/types/index.js +1 -0
  161. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  162. package/dist/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +1 -1
  163. package/dist/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +1 -1
  164. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  165. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  166. package/dist/api/resources/diagnoses/client/Client.js +4 -3
  167. package/dist/api/resources/diagnoses/client/delete.d.ts +7 -1
  168. package/dist/api/resources/diagnoses/client/delete.js +11 -0
  169. package/dist/api/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.d.ts +9 -0
  170. package/dist/api/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.js +5 -0
  171. package/dist/api/resources/diagnoses/types/index.d.ts +1 -0
  172. package/dist/api/resources/diagnoses/types/index.js +1 -0
  173. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  174. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
  175. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  176. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  177. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +44 -2
  178. package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +3 -2
  179. package/dist/api/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.d.ts +21 -0
  180. package/dist/api/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.js +10 -0
  181. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
  182. package/dist/api/resources/encounters/resources/v4/types/index.js +1 -0
  183. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  184. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  185. package/dist/api/resources/exports/resources/v3/client/Client.d.ts +5 -3
  186. package/dist/api/resources/exports/resources/v3/client/Client.js +8 -4
  187. package/dist/api/resources/exports/resources/v3/client/getExports.d.ts +13 -1
  188. package/dist/api/resources/exports/resources/v3/client/getExports.js +22 -0
  189. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  190. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  191. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  192. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  193. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  194. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  195. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  196. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  197. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  198. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  199. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  200. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +2 -1
  201. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.js +1 -0
  202. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  203. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  204. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  205. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  206. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  207. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  208. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  209. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +1 -1
  210. package/{api/resources/preEncounter/resources/lists/resources/v1 → dist/api/resources/preEncounter/resources/common}/types/FilterQueryString.d.ts +3 -3
  211. package/dist/api/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  212. package/dist/api/resources/preEncounter/resources/common/types/index.js +1 -0
  213. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
  214. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +42 -1
  215. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +158 -5
  216. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/createRecommendation.d.ts +22 -0
  217. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/createRecommendation.js +57 -0
  218. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +4 -0
  219. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +8 -1
  220. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/payerSearch.d.ts +22 -0
  221. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/payerSearch.js +57 -0
  222. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.d.ts +22 -0
  223. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.js +57 -0
  224. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/BatchEligibilityPollRequest.d.ts +11 -0
  225. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/BatchEligibilityPollRequest.js +5 -0
  226. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/EligibilityRecommendationRequest.d.ts +11 -0
  227. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/EligibilityRecommendationRequest.js +5 -0
  228. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/PayerSearchRequest.d.ts +13 -0
  229. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/PayerSearchRequest.js +5 -0
  230. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/index.d.ts +3 -0
  231. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/index.js +2 -0
  232. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.d.ts +9 -0
  233. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.js +5 -0
  234. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.d.ts +13 -0
  235. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.js +5 -0
  236. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.d.ts +18 -0
  237. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.js +5 -0
  238. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.d.ts +13 -0
  239. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.js +5 -0
  240. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.d.ts +10 -0
  241. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.js +5 -0
  242. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +11 -0
  243. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.js +5 -0
  244. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.d.ts +8 -0
  245. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.js +5 -0
  246. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.d.ts +9 -0
  247. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.js +5 -0
  248. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.d.ts +15 -0
  249. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.js +5 -0
  250. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.d.ts +8 -0
  251. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.js +5 -0
  252. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +10 -0
  253. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +10 -0
  254. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  255. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  256. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +1 -1
  257. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +1 -1
  258. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
  259. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +0 -1
  260. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/index.js +0 -1
  261. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  262. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  263. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  264. package/dist/api/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.d.ts +2 -0
  265. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  266. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  267. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +3 -0
  268. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
  269. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +2 -0
  270. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +2 -0
  271. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -0
  272. package/dist/api/resources/superbills/resources/v1/client/Client.js +1 -1
  273. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  274. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  275. package/dist/api/resources/x12/resources/v1/types/PatientDischargeStatusCode.d.ts +166 -0
  276. package/dist/api/resources/x12/resources/v1/types/PatientDischargeStatusCode.js +48 -0
  277. package/dist/api/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.d.ts +50 -0
  278. package/dist/api/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.js +19 -0
  279. package/dist/api/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.d.ts +30 -0
  280. package/dist/api/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.js +14 -0
  281. package/dist/api/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +14 -0
  282. package/dist/api/resources/x12/resources/v1/types/TypeOfBillComposite.js +5 -0
  283. package/dist/api/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.d.ts +114 -0
  284. package/dist/api/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.js +35 -0
  285. package/dist/api/resources/x12/resources/v1/types/TypeOfCareCode.d.ts +42 -0
  286. package/dist/api/resources/x12/resources/v1/types/TypeOfCareCode.js +17 -0
  287. package/dist/api/resources/x12/resources/v1/types/TypeOfFacilityCode.d.ts +34 -0
  288. package/dist/api/resources/x12/resources/v1/types/TypeOfFacilityCode.js +15 -0
  289. package/dist/api/resources/x12/resources/v1/types/index.d.ts +7 -0
  290. package/dist/api/resources/x12/resources/v1/types/index.js +7 -0
  291. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +2 -2
  292. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.js +2 -2
  293. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +2 -2
  294. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js +2 -2
  295. package/dist/serialization/resources/claimSubmission/resources/v1/types/index.d.ts +0 -1
  296. package/dist/serialization/resources/claimSubmission/resources/v1/types/index.js +0 -1
  297. package/dist/serialization/resources/commons/types/NextResponsibleParty.d.ts +10 -0
  298. package/dist/serialization/resources/commons/types/NextResponsibleParty.js +41 -0
  299. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  300. package/dist/serialization/resources/commons/types/index.js +1 -0
  301. package/dist/serialization/resources/diagnoses/client/delete.d.ts +6 -1
  302. package/dist/serialization/resources/diagnoses/client/delete.js +6 -0
  303. package/dist/serialization/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.d.ts +16 -0
  304. package/dist/serialization/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.js +47 -0
  305. package/dist/serialization/resources/diagnoses/types/index.d.ts +1 -0
  306. package/dist/serialization/resources/diagnoses/types/index.js +1 -0
  307. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +20 -0
  308. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +20 -0
  309. package/dist/serialization/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.d.ts +10 -0
  310. package/dist/serialization/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.js +41 -0
  311. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  312. package/dist/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  313. package/dist/serialization/resources/exports/resources/v3/client/getExports.d.ts +9 -1
  314. package/dist/serialization/resources/exports/resources/v3/client/getExports.js +10 -0
  315. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  316. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +1 -0
  317. package/dist/serialization/resources/preEncounter/resources/common/types/FilterQueryString.d.ts +10 -0
  318. package/dist/serialization/resources/preEncounter/resources/{lists/resources/v1 → common}/types/FilterQueryString.js +3 -3
  319. package/dist/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  320. package/dist/serialization/resources/preEncounter/resources/common/types/index.js +1 -0
  321. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +1 -0
  322. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +2 -1
  323. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.d.ts +11 -0
  324. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.js +42 -0
  325. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.d.ts +12 -0
  326. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.js +43 -0
  327. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.d.ts +17 -0
  328. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.js +50 -0
  329. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.d.ts +20 -0
  330. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.js +51 -0
  331. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.d.ts +18 -0
  332. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.js +51 -0
  333. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.d.ts +13 -0
  334. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.js +44 -0
  335. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +14 -0
  336. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.js +45 -0
  337. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.d.ts +15 -0
  338. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.js +48 -0
  339. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.d.ts +16 -0
  340. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.js +47 -0
  341. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.d.ts +21 -0
  342. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.js +52 -0
  343. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.d.ts +14 -0
  344. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.js +45 -0
  345. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +10 -0
  346. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +10 -0
  347. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
  348. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.js +2 -0
  349. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +0 -1
  350. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.js +0 -1
  351. package/dist/serialization/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.d.ts +2 -0
  352. package/dist/serialization/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.js +2 -0
  353. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -0
  354. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -0
  355. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -0
  356. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +1 -0
  357. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +1 -0
  358. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +1 -0
  359. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +1 -0
  360. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +1 -0
  361. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -0
  362. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +1 -0
  363. package/dist/serialization/resources/x12/resources/v1/types/PatientDischargeStatusCode.d.ts +10 -0
  364. package/dist/serialization/resources/x12/resources/v1/types/PatientDischargeStatusCode.js +82 -0
  365. package/dist/serialization/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.d.ts +10 -0
  366. package/dist/serialization/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.js +41 -0
  367. package/dist/serialization/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.d.ts +10 -0
  368. package/dist/serialization/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.js +41 -0
  369. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +18 -0
  370. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.js +49 -0
  371. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.d.ts +10 -0
  372. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.js +69 -0
  373. package/dist/serialization/resources/x12/resources/v1/types/TypeOfCareCode.d.ts +10 -0
  374. package/dist/serialization/resources/x12/resources/v1/types/TypeOfCareCode.js +41 -0
  375. package/dist/serialization/resources/x12/resources/v1/types/TypeOfFacilityCode.d.ts +10 -0
  376. package/dist/serialization/resources/{claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js → x12/resources/v1/types/TypeOfFacilityCode.js} +2 -2
  377. package/dist/serialization/resources/x12/resources/v1/types/index.d.ts +7 -0
  378. package/dist/serialization/resources/x12/resources/v1/types/index.js +7 -0
  379. package/dist/version.d.ts +1 -1
  380. package/dist/version.js +1 -1
  381. package/package.json +1 -1
  382. package/reference.md +213 -4
  383. package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +2 -2
  384. package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.js +2 -2
  385. package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +2 -2
  386. package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js +2 -2
  387. package/serialization/resources/claimSubmission/resources/v1/types/index.d.ts +0 -1
  388. package/serialization/resources/claimSubmission/resources/v1/types/index.js +0 -1
  389. package/serialization/resources/commons/types/NextResponsibleParty.d.ts +10 -0
  390. package/serialization/resources/commons/types/NextResponsibleParty.js +41 -0
  391. package/serialization/resources/commons/types/index.d.ts +1 -0
  392. package/serialization/resources/commons/types/index.js +1 -0
  393. package/serialization/resources/diagnoses/client/delete.d.ts +6 -1
  394. package/serialization/resources/diagnoses/client/delete.js +6 -0
  395. package/serialization/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.d.ts +16 -0
  396. package/serialization/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.js +47 -0
  397. package/serialization/resources/diagnoses/types/index.d.ts +1 -0
  398. package/serialization/resources/diagnoses/types/index.js +1 -0
  399. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +20 -0
  400. package/serialization/resources/encounters/resources/v4/types/Encounter.js +20 -0
  401. package/serialization/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.d.ts +10 -0
  402. package/serialization/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.js +41 -0
  403. package/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  404. package/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  405. package/serialization/resources/exports/resources/v3/client/getExports.d.ts +9 -1
  406. package/serialization/resources/exports/resources/v3/client/getExports.js +10 -0
  407. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  408. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +1 -0
  409. package/serialization/resources/preEncounter/resources/common/types/FilterQueryString.d.ts +10 -0
  410. package/serialization/resources/preEncounter/resources/{lists/resources/v1 → common}/types/FilterQueryString.js +3 -3
  411. package/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  412. package/serialization/resources/preEncounter/resources/common/types/index.js +1 -0
  413. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +1 -0
  414. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +2 -1
  415. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.d.ts +11 -0
  416. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.js +42 -0
  417. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.d.ts +12 -0
  418. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.js +43 -0
  419. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.d.ts +17 -0
  420. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.js +50 -0
  421. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.d.ts +20 -0
  422. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.js +51 -0
  423. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.d.ts +18 -0
  424. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.js +51 -0
  425. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.d.ts +13 -0
  426. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.js +44 -0
  427. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +14 -0
  428. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.js +45 -0
  429. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.d.ts +15 -0
  430. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.js +48 -0
  431. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.d.ts +16 -0
  432. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.js +47 -0
  433. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.d.ts +21 -0
  434. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.js +52 -0
  435. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.d.ts +14 -0
  436. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.js +45 -0
  437. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +10 -0
  438. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +10 -0
  439. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
  440. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.js +2 -0
  441. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +0 -1
  442. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.js +0 -1
  443. package/serialization/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.d.ts +2 -0
  444. package/serialization/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.js +2 -0
  445. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -0
  446. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -0
  447. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -0
  448. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +1 -0
  449. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +1 -0
  450. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +1 -0
  451. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +1 -0
  452. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +1 -0
  453. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -0
  454. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +1 -0
  455. package/serialization/resources/x12/resources/v1/types/PatientDischargeStatusCode.d.ts +10 -0
  456. package/serialization/resources/x12/resources/v1/types/PatientDischargeStatusCode.js +82 -0
  457. package/serialization/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.d.ts +10 -0
  458. package/serialization/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.js +41 -0
  459. package/serialization/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.d.ts +10 -0
  460. package/serialization/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.js +41 -0
  461. package/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +18 -0
  462. package/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.js +49 -0
  463. package/serialization/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.d.ts +10 -0
  464. package/serialization/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.js +69 -0
  465. package/serialization/resources/x12/resources/v1/types/TypeOfCareCode.d.ts +10 -0
  466. package/serialization/resources/x12/resources/v1/types/TypeOfCareCode.js +41 -0
  467. package/serialization/resources/x12/resources/v1/types/TypeOfFacilityCode.d.ts +10 -0
  468. package/serialization/resources/{claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js → x12/resources/v1/types/TypeOfFacilityCode.js} +2 -2
  469. package/serialization/resources/x12/resources/v1/types/index.d.ts +7 -0
  470. package/serialization/resources/x12/resources/v1/types/index.js +7 -0
  471. package/version.d.ts +1 -1
  472. package/version.js +1 -1
  473. package/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +0 -9
  474. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +0 -9
  475. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +0 -10
  476. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/FilterQueryString.d.ts +0 -10
  477. package/serialization/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +0 -10
  478. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/FilterQueryString.d.ts +0 -10
  479. /package/api/resources/preEncounter/resources/{lists/resources/v1 → common}/types/FilterQueryString.js +0 -0
  480. /package/dist/api/resources/preEncounter/resources/{lists/resources/v1 → common}/types/FilterQueryString.js +0 -0
@@ -83,7 +83,7 @@ class V1 {
83
83
  const _response = yield core.fetcher({
84
84
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/eligibility-checks/v1"),
85
85
  method: "POST",
86
- 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),
86
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
87
  contentType: "application/json",
88
88
  requestType: "json",
89
89
  body: serializers.preEncounter.eligibilityChecks.v1.EligibilityRequest.jsonOrThrow(request, {
@@ -143,7 +143,7 @@ class V1 {
143
143
  const _response = yield core.fetcher({
144
144
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/eligibility-checks/v1/batch"),
145
145
  method: "POST",
146
- 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),
146
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
147
147
  contentType: "application/json",
148
148
  requestType: "json",
149
149
  body: serializers.preEncounter.eligibilityChecks.v1.batch.Request.jsonOrThrow(request, {
@@ -176,19 +176,26 @@ class V1 {
176
176
  * path-parameters:
177
177
  *
178
178
  * @param {string} batchId
179
+ * @param {CandidApi.preEncounter.eligibilityChecks.v1.BatchEligibilityPollRequest} request
179
180
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
180
181
  *
181
182
  * @example
182
183
  * await client.preEncounter.eligibilityChecks.v1.pollBatch("batch_id")
183
184
  */
184
- pollBatch(batchId, requestOptions) {
185
- return __awaiter(this, void 0, void 0, function* () {
185
+ pollBatch(batchId_1) {
186
+ return __awaiter(this, arguments, void 0, function* (batchId, request = {}, requestOptions) {
186
187
  var _a, _b;
188
+ const { pageToken } = request;
189
+ const _queryParams = {};
190
+ if (pageToken != null) {
191
+ _queryParams["page_token"] = pageToken;
192
+ }
187
193
  const _response = yield core.fetcher({
188
194
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/eligibility-checks/v1/batch/${encodeURIComponent(batchId)}`),
189
195
  method: "GET",
190
- 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),
196
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
191
197
  contentType: "application/json",
198
+ queryParameters: _queryParams,
192
199
  requestType: "json",
193
200
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
194
201
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -211,6 +218,152 @@ class V1 {
211
218
  };
212
219
  });
213
220
  }
221
+ /**
222
+ * Searches for payers that match the query parameters.
223
+ *
224
+ * @param {CandidApi.preEncounter.eligibilityChecks.v1.PayerSearchRequest} request
225
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
226
+ *
227
+ * @example
228
+ * await client.preEncounter.eligibilityChecks.v1.payerSearch()
229
+ */
230
+ payerSearch() {
231
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
232
+ var _a, _b;
233
+ const { pageSize, pageToken, query } = request;
234
+ const _queryParams = {};
235
+ if (pageSize != null) {
236
+ _queryParams["page_size"] = pageSize.toString();
237
+ }
238
+ if (pageToken != null) {
239
+ _queryParams["page_token"] = pageToken;
240
+ }
241
+ if (query != null) {
242
+ _queryParams["query"] = query;
243
+ }
244
+ const _response = yield core.fetcher({
245
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/eligibility-checks/v1/payer/search"),
246
+ method: "GET",
247
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
248
+ contentType: "application/json",
249
+ queryParameters: _queryParams,
250
+ requestType: "json",
251
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
252
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
253
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
254
+ });
255
+ if (_response.ok) {
256
+ return {
257
+ ok: true,
258
+ body: serializers.preEncounter.eligibilityChecks.v1.PayerSearchResponse.parseOrThrow(_response.body, {
259
+ unrecognizedObjectKeys: "passthrough",
260
+ allowUnrecognizedUnionMembers: true,
261
+ allowUnrecognizedEnumValues: true,
262
+ breadcrumbsPrefix: ["response"],
263
+ }),
264
+ };
265
+ }
266
+ return {
267
+ ok: false,
268
+ error: CandidApi.preEncounter.eligibilityChecks.v1.payerSearch.Error._unknown(_response.error),
269
+ };
270
+ });
271
+ }
272
+ /**
273
+ * Gets recommendation for eligibility checks based on the request.
274
+ *
275
+ * @param {CandidApi.preEncounter.eligibilityChecks.v1.EligibilityRecommendationRequest} request
276
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
277
+ *
278
+ * @example
279
+ * await client.preEncounter.eligibilityChecks.v1.recommendation()
280
+ */
281
+ recommendation() {
282
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
283
+ var _a, _b;
284
+ const { filters } = request;
285
+ const _queryParams = {};
286
+ if (filters != null) {
287
+ _queryParams["filters"] = filters;
288
+ }
289
+ const _response = yield core.fetcher({
290
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/eligibility-checks/v1/recommendation"),
291
+ method: "GET",
292
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
293
+ contentType: "application/json",
294
+ queryParameters: _queryParams,
295
+ requestType: "json",
296
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
297
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
298
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
299
+ });
300
+ if (_response.ok) {
301
+ return {
302
+ ok: true,
303
+ body: serializers.preEncounter.eligibilityChecks.v1.recommendation.Response.parseOrThrow(_response.body, {
304
+ unrecognizedObjectKeys: "passthrough",
305
+ allowUnrecognizedUnionMembers: true,
306
+ allowUnrecognizedEnumValues: true,
307
+ breadcrumbsPrefix: ["response"],
308
+ }),
309
+ };
310
+ }
311
+ return {
312
+ ok: false,
313
+ error: CandidApi.preEncounter.eligibilityChecks.v1.recommendation.Error._unknown(_response.error),
314
+ };
315
+ });
316
+ }
317
+ /**
318
+ * Create an eligibiilty recommendation based on the request.
319
+ *
320
+ * @param {CandidApi.preEncounter.eligibilityChecks.v1.PostEligibilityRecommendationRequest} request
321
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
322
+ *
323
+ * @example
324
+ * await client.preEncounter.eligibilityChecks.v1.createRecommendation({
325
+ * eligibilityCheckId: "eligibility_check_id",
326
+ * patient: {},
327
+ * recommendation: {
328
+ * type: "MEDICARE_ADVANTAGE",
329
+ * payload: {
330
+ * payerId: "payer_id",
331
+ * payerName: "payer_name"
332
+ * }
333
+ * }
334
+ * })
335
+ */
336
+ createRecommendation(request, requestOptions) {
337
+ return __awaiter(this, void 0, void 0, function* () {
338
+ var _a, _b;
339
+ const _response = yield core.fetcher({
340
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/eligibility-checks/v1/recommendation"),
341
+ method: "POST",
342
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
343
+ contentType: "application/json",
344
+ requestType: "json",
345
+ body: serializers.preEncounter.eligibilityChecks.v1.PostEligibilityRecommendationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
346
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
347
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
348
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
349
+ });
350
+ if (_response.ok) {
351
+ return {
352
+ ok: true,
353
+ body: serializers.preEncounter.eligibilityChecks.v1.EligibilityRecommendation.parseOrThrow(_response.body, {
354
+ unrecognizedObjectKeys: "passthrough",
355
+ allowUnrecognizedUnionMembers: true,
356
+ allowUnrecognizedEnumValues: true,
357
+ breadcrumbsPrefix: ["response"],
358
+ }),
359
+ };
360
+ }
361
+ return {
362
+ ok: false,
363
+ error: CandidApi.preEncounter.eligibilityChecks.v1.createRecommendation.Error._unknown(_response.error),
364
+ };
365
+ });
366
+ }
214
367
  _getAuthorizationHeader() {
215
368
  return __awaiter(this, void 0, void 0, function* () {
216
369
  const bearer = yield core.Supplier.get(this._options.token);
@@ -0,0 +1,22 @@
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.preEncounter.eligibilityChecks.v1.createRecommendation.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface _Unknown extends _Utils {
9
+ errorName: void;
10
+ content: core.Fetcher.Error;
11
+ }
12
+ interface _Utils {
13
+ _visit: <_Result>(visitor: CandidApi.preEncounter.eligibilityChecks.v1.createRecommendation.Error._Visitor<_Result>) => _Result;
14
+ }
15
+ interface _Visitor<_Result> {
16
+ _other: (value: core.Fetcher.Error) => _Result;
17
+ }
18
+ }
19
+ export declare const Error: {
20
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.eligibilityChecks.v1.createRecommendation.Error._Unknown;
21
+ readonly _visit: <_Result>(value: CandidApi.preEncounter.eligibilityChecks.v1.createRecommendation.Error, visitor: CandidApi.preEncounter.eligibilityChecks.v1.createRecommendation.Error._Visitor<_Result>) => _Result;
22
+ };
@@ -0,0 +1,57 @@
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
+ _unknown: (fetcherError) => {
43
+ return {
44
+ errorName: undefined,
45
+ content: fetcherError,
46
+ _visit: function (visitor) {
47
+ return CandidApi.preEncounter.eligibilityChecks.v1.createRecommendation.Error._visit(this, visitor);
48
+ },
49
+ };
50
+ },
51
+ _visit: (value, visitor) => {
52
+ switch (value.errorName) {
53
+ default:
54
+ return visitor._other(value);
55
+ }
56
+ },
57
+ };
@@ -1,3 +1,7 @@
1
+ export * from "./requests";
1
2
  export * as post from "./post";
2
3
  export * as batch from "./batch";
3
4
  export * as pollBatch from "./pollBatch";
5
+ export * as payerSearch from "./payerSearch";
6
+ export * as recommendation from "./recommendation";
7
+ export * as createRecommendation from "./createRecommendation";
@@ -15,6 +15,9 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
+ };
18
21
  var __importStar = (this && this.__importStar) || (function () {
19
22
  var ownKeys = function(o) {
20
23
  ownKeys = Object.getOwnPropertyNames || function (o) {
@@ -33,7 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
33
36
  };
34
37
  })();
35
38
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.pollBatch = exports.batch = exports.post = void 0;
39
+ exports.createRecommendation = exports.recommendation = exports.payerSearch = exports.pollBatch = exports.batch = exports.post = void 0;
40
+ __exportStar(require("./requests"), exports);
37
41
  exports.post = __importStar(require("./post"));
38
42
  exports.batch = __importStar(require("./batch"));
39
43
  exports.pollBatch = __importStar(require("./pollBatch"));
44
+ exports.payerSearch = __importStar(require("./payerSearch"));
45
+ exports.recommendation = __importStar(require("./recommendation"));
46
+ exports.createRecommendation = __importStar(require("./createRecommendation"));
@@ -0,0 +1,22 @@
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.preEncounter.eligibilityChecks.v1.payerSearch.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface _Unknown extends _Utils {
9
+ errorName: void;
10
+ content: core.Fetcher.Error;
11
+ }
12
+ interface _Utils {
13
+ _visit: <_Result>(visitor: CandidApi.preEncounter.eligibilityChecks.v1.payerSearch.Error._Visitor<_Result>) => _Result;
14
+ }
15
+ interface _Visitor<_Result> {
16
+ _other: (value: core.Fetcher.Error) => _Result;
17
+ }
18
+ }
19
+ export declare const Error: {
20
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.eligibilityChecks.v1.payerSearch.Error._Unknown;
21
+ readonly _visit: <_Result>(value: CandidApi.preEncounter.eligibilityChecks.v1.payerSearch.Error, visitor: CandidApi.preEncounter.eligibilityChecks.v1.payerSearch.Error._Visitor<_Result>) => _Result;
22
+ };
@@ -0,0 +1,57 @@
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
+ _unknown: (fetcherError) => {
43
+ return {
44
+ errorName: undefined,
45
+ content: fetcherError,
46
+ _visit: function (visitor) {
47
+ return CandidApi.preEncounter.eligibilityChecks.v1.payerSearch.Error._visit(this, visitor);
48
+ },
49
+ };
50
+ },
51
+ _visit: (value, visitor) => {
52
+ switch (value.errorName) {
53
+ default:
54
+ return visitor._other(value);
55
+ }
56
+ },
57
+ };
@@ -0,0 +1,22 @@
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.preEncounter.eligibilityChecks.v1.recommendation.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface _Unknown extends _Utils {
9
+ errorName: void;
10
+ content: core.Fetcher.Error;
11
+ }
12
+ interface _Utils {
13
+ _visit: <_Result>(visitor: CandidApi.preEncounter.eligibilityChecks.v1.recommendation.Error._Visitor<_Result>) => _Result;
14
+ }
15
+ interface _Visitor<_Result> {
16
+ _other: (value: core.Fetcher.Error) => _Result;
17
+ }
18
+ }
19
+ export declare const Error: {
20
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.eligibilityChecks.v1.recommendation.Error._Unknown;
21
+ readonly _visit: <_Result>(value: CandidApi.preEncounter.eligibilityChecks.v1.recommendation.Error, visitor: CandidApi.preEncounter.eligibilityChecks.v1.recommendation.Error._Visitor<_Result>) => _Result;
22
+ };
@@ -0,0 +1,57 @@
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
+ _unknown: (fetcherError) => {
43
+ return {
44
+ errorName: undefined,
45
+ content: fetcherError,
46
+ _visit: function (visitor) {
47
+ return CandidApi.preEncounter.eligibilityChecks.v1.recommendation.Error._visit(this, visitor);
48
+ },
49
+ };
50
+ },
51
+ _visit: (value, visitor) => {
52
+ switch (value.errorName) {
53
+ default:
54
+ return visitor._other(value);
55
+ }
56
+ },
57
+ };
@@ -0,0 +1,11 @@
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
+ */
9
+ export interface BatchEligibilityPollRequest {
10
+ pageToken?: CandidApi.preEncounter.PageToken;
11
+ }
@@ -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
- };
@@ -0,0 +1,11 @@
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
+ */
9
+ export interface EligibilityRecommendationRequest {
10
+ filters?: CandidApi.preEncounter.FilterQueryString;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
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
+ */
9
+ export interface PayerSearchRequest {
10
+ pageSize?: number;
11
+ pageToken?: CandidApi.preEncounter.PageToken;
12
+ query?: string;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export { type BatchEligibilityPollRequest } from "./BatchEligibilityPollRequest";
2
+ export { type PayerSearchRequest } from "./PayerSearchRequest";
3
+ export { type EligibilityRecommendationRequest } from "./EligibilityRecommendationRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * An object representing a Coordination Of Benefits recommendation.
6
+ */
7
+ export interface CoordinationOfBenefitsRecommendation {
8
+ payload?: unknown;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../../../index";
5
+ /**
6
+ * An eligibility recommendation object that contains an EligibilityRecommendationType and a payload of data denoting the recommendation.
7
+ */
8
+ export interface EligibilityRecommendation extends CandidApi.preEncounter.BaseModel {
9
+ /** The unique UUID identifier for an EligibilityRecommendation. */
10
+ id: string;
11
+ recommendation: CandidApi.preEncounter.eligibilityChecks.v1.EligibilityRecommendationPayload;
12
+ patient: CandidApi.preEncounter.eligibilityChecks.v1.EligibilityRecommendationPatientInfo;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../../../index";
5
+ /**
6
+ * An object representing patient information for an eligibility recommendation.
7
+ * This is used to find recommendations. Each field helps us find the right corresponding
8
+ * eligibility recommendation for the patient.
9
+ */
10
+ export interface EligibilityRecommendationPatientInfo {
11
+ id?: CandidApi.preEncounter.PatientId;
12
+ mrn?: string;
13
+ organizationId?: CandidApi.preEncounter.OrganizationId;
14
+ lastName?: string;
15
+ firstName?: string;
16
+ dateOfBirth?: string;
17
+ memberId?: string;
18
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../../../index";
5
+ export type EligibilityRecommendationPayload = CandidApi.preEncounter.eligibilityChecks.v1.EligibilityRecommendationPayload.MedicareAdvantage | CandidApi.preEncounter.eligibilityChecks.v1.EligibilityRecommendationPayload.CoordinationOfBenefits;
6
+ export declare namespace EligibilityRecommendationPayload {
7
+ interface MedicareAdvantage extends CandidApi.preEncounter.eligibilityChecks.v1.MedicareAdvantageRecommendation {
8
+ type: "MEDICARE_ADVANTAGE";
9
+ }
10
+ interface CoordinationOfBenefits extends CandidApi.preEncounter.eligibilityChecks.v1.CoordinationOfBenefitsRecommendation {
11
+ type: "COORDINATION_OF_BENEFITS";
12
+ }
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });