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
@@ -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.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),
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.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),
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.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),
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.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),
168
168
  contentType: "application/json",
169
169
  requestType: "json",
170
170
  body: serializers.billingNotes.v2.BillingNoteUpdate.jsonOrThrow(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.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),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  body: serializers.chargeCapture.v1.CreateChargeCaptureRequest.jsonOrThrow(request, {
@@ -136,7 +136,7 @@ class V1 {
136
136
  const _response = yield core.fetcher({
137
137
  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
138
  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),
139
+ 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),
140
140
  contentType: "application/json",
141
141
  requestType: "json",
142
142
  body: serializers.chargeCapture.v1.ChargeCaptureUpdate.jsonOrThrow(request, {
@@ -194,7 +194,7 @@ class V1 {
194
194
  const _response = yield core.fetcher({
195
195
  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
196
  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),
197
+ 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),
198
198
  contentType: "application/json",
199
199
  requestType: "json",
200
200
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -228,7 +228,7 @@ class V1 {
228
228
  getAll() {
229
229
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
230
230
  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;
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, searchTerm, billableStatus, responsibleParty, claimIdsRankedSort, claimCreationIdsRankedSort, billingProviderNpisRankedSort, serviceFacilityNameRankedSort, primaryPayerIdsRankedSort, renderingProviderNpisRankedSort, renderingProviderNamesRankedSort, supervisingProviderNpisRankedSort, supervisingProviderNamesRankedSort, } = request;
232
232
  const _queryParams = {};
233
233
  if (limit != null) {
234
234
  _queryParams["limit"] = limit.toString();
@@ -348,6 +348,17 @@ class V1 {
348
348
  if (dateOfServiceMaxRankedSort != null) {
349
349
  _queryParams["date_of_service_max_ranked_sort"] = dateOfServiceMaxRankedSort;
350
350
  }
351
+ if (searchTerm != null) {
352
+ _queryParams["search_term"] = searchTerm;
353
+ }
354
+ if (billableStatus != null) {
355
+ _queryParams["billable_status"] = serializers.encounters.v4.BillableStatusType.jsonOrThrow(billableStatus, {
356
+ unrecognizedObjectKeys: "strip",
357
+ });
358
+ }
359
+ if (responsibleParty != null) {
360
+ _queryParams["responsible_party"] = serializers.encounters.v4.ResponsiblePartyType.jsonOrThrow(responsibleParty, { unrecognizedObjectKeys: "strip" });
361
+ }
351
362
  if (claimIdsRankedSort != null) {
352
363
  if (Array.isArray(claimIdsRankedSort)) {
353
364
  _queryParams["claim_ids_ranked_sort"] = claimIdsRankedSort.map((item) => serializers.EncounterId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" }));
@@ -418,7 +429,7 @@ class V1 {
418
429
  const _response = yield core.fetcher({
419
430
  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
431
  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),
432
+ 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),
422
433
  contentType: "application/json",
423
434
  queryParameters: _queryParams,
424
435
  requestType: "json",
@@ -459,7 +470,7 @@ class V1 {
459
470
  const _response = yield core.fetcher({
460
471
  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
472
  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),
473
+ 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),
463
474
  contentType: "application/json",
464
475
  requestType: "json",
465
476
  body: serializers.chargeCapture.v1.ChargeCapturePostBilledChangeUpdate.jsonOrThrow(request, {
@@ -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
  */
@@ -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.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),
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.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),
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.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),
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.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),
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.
@@ -9,12 +9,12 @@ import * as CandidApi from "../../../../../index";
9
9
  * patientControlNumber: "PATIENT_CONTROL_NUMBER",
10
10
  * submissionRecords: [{
11
11
  * submittedAt: "2023-01-01T13:00:00.000000Z",
12
- * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Original,
12
+ * claimFrequencyCode: CandidApi.x12.v1.TypeOfBillFrequencyCode.C1,
13
13
  * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
14
14
  * intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Electronic
15
15
  * }, {
16
16
  * submittedAt: "2023-01-04T12:00:00.000000Z",
17
- * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Replacement,
17
+ * claimFrequencyCode: CandidApi.x12.v1.TypeOfBillFrequencyCode.C7,
18
18
  * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
19
19
  * intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Paper
20
20
  * }]
@@ -9,12 +9,12 @@ import * as CandidApi from "../../../../../index";
9
9
  * patientControlNumber: "PATIENT_CONTROL_NUMBER",
10
10
  * submissionRecords: [{
11
11
  * submittedAt: "2023-01-01T13:00:00.000000Z",
12
- * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Original,
12
+ * claimFrequencyCode: CandidApi.x12.v1.TypeOfBillFrequencyCode.C1,
13
13
  * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
14
14
  * intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Electronic
15
15
  * }, {
16
16
  * submittedAt: "2023-01-04T12:00:00.000000Z",
17
- * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Replacement,
17
+ * claimFrequencyCode: CandidApi.x12.v1.TypeOfBillFrequencyCode.C7,
18
18
  * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
19
19
  * intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Paper
20
20
  * }]
@@ -1,4 +1,3 @@
1
- export * from "./ClaimFrequencyTypeCode";
2
1
  export * from "./ExternalClaimSubmissionCreate";
3
2
  export * from "./ExternalClaimSubmissionCreateOptional";
4
3
  export * from "./ClaimSubmissionRecordCreate";
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./ClaimFrequencyTypeCode"), exports);
18
17
  __exportStar(require("./ExternalClaimSubmissionCreate"), exports);
19
18
  __exportStar(require("./ExternalClaimSubmissionCreateOptional"), exports);
20
19
  __exportStar(require("./ClaimSubmissionRecordCreate"), exports);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type NextResponsibleParty = "primary" | "secondary" | "tertiary" | "patient" | "non_insurance" | "none";
5
+ export declare const NextResponsibleParty: {
6
+ readonly Primary: "primary";
7
+ readonly Secondary: "secondary";
8
+ readonly Tertiary: "tertiary";
9
+ readonly Patient: "patient";
10
+ readonly NonInsurance: "non_insurance";
11
+ readonly None: "none";
12
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.NextResponsibleParty = void 0;
7
+ exports.NextResponsibleParty = {
8
+ Primary: "primary",
9
+ Secondary: "secondary",
10
+ Tertiary: "tertiary",
11
+ Patient: "patient",
12
+ NonInsurance: "non_insurance",
13
+ None: "none",
14
+ };
@@ -72,3 +72,4 @@ export * from "./DelayReasonCode";
72
72
  export * from "./IntendedSubmissionMedium";
73
73
  export * from "./BillingProviderCommercialLicenseType";
74
74
  export * from "./EpsdtReferralConditionIndicatorCode";
75
+ export * from "./NextResponsibleParty";
@@ -88,3 +88,4 @@ __exportStar(require("./DelayReasonCode"), exports);
88
88
  __exportStar(require("./IntendedSubmissionMedium"), exports);
89
89
  __exportStar(require("./BillingProviderCommercialLicenseType"), exports);
90
90
  __exportStar(require("./EpsdtReferralConditionIndicatorCode"), exports);
91
+ __exportStar(require("./NextResponsibleParty"), exports);
@@ -71,7 +71,7 @@ class V2 {
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/contracts/v2/${encodeURIComponent(serializers.contracts.v2.ContractId.jsonOrThrow(contractId))}`),
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.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),
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,
@@ -172,7 +172,7 @@ class V2 {
172
172
  const _response = yield core.fetcher({
173
173
  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/contracts/v2"),
174
174
  method: "GET",
175
- 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),
175
+ 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),
176
176
  contentType: "application/json",
177
177
  queryParameters: _queryParams,
178
178
  requestType: "json",
@@ -216,7 +216,7 @@ class V2 {
216
216
  const _response = yield core.fetcher({
217
217
  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/contracts/v2"),
218
218
  method: "POST",
219
- 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),
219
+ 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),
220
220
  contentType: "application/json",
221
221
  requestType: "json",
222
222
  body: serializers.contracts.v2.ContractCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -254,7 +254,7 @@ class V2 {
254
254
  const _response = yield core.fetcher({
255
255
  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/contracts/v2/${encodeURIComponent(serializers.contracts.v2.ContractId.jsonOrThrow(contractId))}`),
256
256
  method: "DELETE",
257
- 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),
257
+ 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),
258
258
  contentType: "application/json",
259
259
  requestType: "json",
260
260
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -301,7 +301,7 @@ class V2 {
301
301
  const _response = yield core.fetcher({
302
302
  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/contracts/v2/${encodeURIComponent(serializers.contracts.v2.ContractId.jsonOrThrow(contractId))}`),
303
303
  method: "PATCH",
304
- 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),
304
+ 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),
305
305
  contentType: "application/json",
306
306
  requestType: "json",
307
307
  body: serializers.contracts.v2.ContractUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -16,7 +16,7 @@ export interface ContractCreate extends CandidApi.contracts.v2.ContractBase {
16
16
  /**
17
17
  * A rendering provider isn't contracted directly with the payer but can render
18
18
  * services under the contract held by the contracting provider.
19
- * Max items is 100.
19
+ * Max items is 1000.
20
20
  */
21
21
  renderingProviderIds: Set<CandidApi.contracts.v2.RenderingProviderid>;
22
22
  /** The UUID of the insurance company under agreement to the contract */
@@ -10,7 +10,7 @@ export interface ContractUpdate {
10
10
  /**
11
11
  * A rendering provider isn't contracted directly with the payer but can render
12
12
  * services under the contract held by the contracting provider.
13
- * Max items is 100.
13
+ * Max items is 1000.
14
14
  */
15
15
  renderingProviderIds?: Set<CandidApi.contracts.v2.RenderingProviderid>;
16
16
  /** The starting day upon which the contract is effective */
@@ -79,7 +79,7 @@ class V2 {
79
79
  const _response = yield core.fetcher({
80
80
  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/provider-credentialing-span/v2"),
81
81
  method: "POST",
82
- 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),
82
+ 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),
83
83
  contentType: "application/json",
84
84
  requestType: "json",
85
85
  body: serializers.credentialing.v2.ProviderCredentialingSpanCreate.jsonOrThrow(request, {
@@ -134,7 +134,7 @@ class V2 {
134
134
  const _response = yield core.fetcher({
135
135
  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/provider-credentialing-span/v2/${encodeURIComponent(serializers.ProviderCredentialingSpanId.jsonOrThrow(providerCredentialingId))}`),
136
136
  method: "GET",
137
- 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),
137
+ 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),
138
138
  contentType: "application/json",
139
139
  requestType: "json",
140
140
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -206,7 +206,7 @@ class V2 {
206
206
  const _response = yield core.fetcher({
207
207
  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/provider-credentialing-span/v2"),
208
208
  method: "GET",
209
- 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),
209
+ 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),
210
210
  contentType: "application/json",
211
211
  queryParameters: _queryParams,
212
212
  requestType: "json",
@@ -261,7 +261,7 @@ class V2 {
261
261
  const _response = yield core.fetcher({
262
262
  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/provider-credentialing-span/v2/${encodeURIComponent(serializers.ProviderCredentialingSpanId.jsonOrThrow(providerCredentialingId))}`),
263
263
  method: "DELETE",
264
- 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),
264
+ 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),
265
265
  contentType: "application/json",
266
266
  requestType: "json",
267
267
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -309,7 +309,7 @@ class V2 {
309
309
  const _response = yield core.fetcher({
310
310
  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/provider-credentialing-span/v2/${encodeURIComponent(serializers.ProviderCredentialingSpanId.jsonOrThrow(providerCredentialingId))}`),
311
311
  method: "PATCH",
312
- 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),
312
+ 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),
313
313
  contentType: "application/json",
314
314
  requestType: "json",
315
315
  body: serializers.credentialing.v2.ProviderCredentialingSpanUpdate.jsonOrThrow(request, {
@@ -72,7 +72,7 @@ class V1 {
72
72
  const _response = yield core.fetcher({
73
73
  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/custom-schemas/v1"),
74
74
  method: "GET",
75
- 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),
75
+ 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),
76
76
  contentType: "application/json",
77
77
  requestType: "json",
78
78
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -125,7 +125,7 @@ class V1 {
125
125
  const _response = yield core.fetcher({
126
126
  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/custom-schemas/v1/${encodeURIComponent(serializers.SchemaId.jsonOrThrow(schemaId))}`),
127
127
  method: "GET",
128
- 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),
128
+ 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),
129
129
  contentType: "application/json",
130
130
  requestType: "json",
131
131
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -196,7 +196,7 @@ class V1 {
196
196
  const _response = yield core.fetcher({
197
197
  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/custom-schemas/v1"),
198
198
  method: "POST",
199
- 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),
199
+ 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),
200
200
  contentType: "application/json",
201
201
  requestType: "json",
202
202
  body: serializers.customSchemas.v1.SchemaCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -258,7 +258,7 @@ class V1 {
258
258
  const _response = yield core.fetcher({
259
259
  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/custom-schemas/v1/${encodeURIComponent(serializers.SchemaId.jsonOrThrow(schemaId))}`),
260
260
  method: "PATCH",
261
- 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),
261
+ 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),
262
262
  contentType: "application/json",
263
263
  requestType: "json",
264
264
  body: serializers.customSchemas.v1.SchemaUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -77,7 +77,7 @@ class Diagnoses {
77
77
  const _response = yield core.fetcher({
78
78
  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/diagnoses/v2"),
79
79
  method: "POST",
80
- 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),
80
+ 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),
81
81
  contentType: "application/json",
82
82
  requestType: "json",
83
83
  body: serializers.StandaloneDiagnosisCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -118,7 +118,7 @@ class Diagnoses {
118
118
  const _response = yield core.fetcher({
119
119
  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/diagnoses/v2/${encodeURIComponent(serializers.DiagnosisId.jsonOrThrow(diagnosisId))}`),
120
120
  method: "PATCH",
121
- 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),
121
+ 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),
122
122
  contentType: "application/json",
123
123
  requestType: "json",
124
124
  body: serializers.DiagnosisUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -172,7 +172,7 @@ class Diagnoses {
172
172
  const _response = yield core.fetcher({
173
173
  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/diagnoses/v2/${encodeURIComponent(serializers.DiagnosisId.jsonOrThrow(diagnosisId))}`),
174
174
  method: "DELETE",
175
- 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),
175
+ 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),
176
176
  contentType: "application/json",
177
177
  requestType: "json",
178
178
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -188,6 +188,7 @@ class Diagnoses {
188
188
  if (_response.error.reason === "status-code") {
189
189
  switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
190
190
  case "DiagnosisNotFoundHTTPError":
191
+ case "ServiceLinesMustHaveAtLeastOneDiagnosisHTTPError":
191
192
  return {
192
193
  ok: false,
193
194
  error: serializers.diagnoses.delete.Error.parseOrThrow(_response.error.body, {
@@ -3,12 +3,16 @@
3
3
  */
4
4
  import * as CandidApi from "../../../index";
5
5
  import * as core from "../../../../core";
6
- export type Error = CandidApi.diagnoses.delete.Error.DiagnosisNotFoundHttpError | CandidApi.diagnoses.delete.Error._Unknown;
6
+ export type Error = CandidApi.diagnoses.delete.Error.DiagnosisNotFoundHttpError | CandidApi.diagnoses.delete.Error.ServiceLinesMustHaveAtLeastOneDiagnosisHttpError | CandidApi.diagnoses.delete.Error._Unknown;
7
7
  export declare namespace Error {
8
8
  interface DiagnosisNotFoundHttpError extends _Utils {
9
9
  errorName: "DiagnosisNotFoundHTTPError";
10
10
  content: CandidApi.DiagnosisNotFoundError;
11
11
  }
12
+ interface ServiceLinesMustHaveAtLeastOneDiagnosisHttpError extends _Utils {
13
+ errorName: "ServiceLinesMustHaveAtLeastOneDiagnosisHTTPError";
14
+ content: CandidApi.ServiceLinesMustHaveAtLeastOneDiagnosisError;
15
+ }
12
16
  interface _Unknown extends _Utils {
13
17
  errorName: void;
14
18
  content: core.Fetcher.Error;
@@ -18,11 +22,13 @@ export declare namespace Error {
18
22
  }
19
23
  interface _Visitor<_Result> {
20
24
  diagnosisNotFoundHttpError: (value: CandidApi.DiagnosisNotFoundError) => _Result;
25
+ serviceLinesMustHaveAtLeastOneDiagnosisHttpError: (value: CandidApi.ServiceLinesMustHaveAtLeastOneDiagnosisError) => _Result;
21
26
  _other: (value: core.Fetcher.Error) => _Result;
22
27
  }
23
28
  }
24
29
  export declare const Error: {
25
30
  readonly diagnosisNotFoundHttpError: (value: CandidApi.DiagnosisNotFoundError) => CandidApi.diagnoses.delete.Error.DiagnosisNotFoundHttpError;
31
+ readonly serviceLinesMustHaveAtLeastOneDiagnosisHttpError: (value: CandidApi.ServiceLinesMustHaveAtLeastOneDiagnosisError) => CandidApi.diagnoses.delete.Error.ServiceLinesMustHaveAtLeastOneDiagnosisHttpError;
26
32
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.diagnoses.delete.Error._Unknown;
27
33
  readonly _visit: <_Result>(value: CandidApi.diagnoses.delete.Error, visitor: CandidApi.diagnoses.delete.Error._Visitor<_Result>) => _Result;
28
34
  };