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
@@ -48,6 +48,15 @@ exports.Error = {
48
48
  },
49
49
  };
50
50
  },
51
+ serviceLinesMustHaveAtLeastOneDiagnosisHttpError: (value) => {
52
+ return {
53
+ content: value,
54
+ errorName: "ServiceLinesMustHaveAtLeastOneDiagnosisHTTPError",
55
+ _visit: function (visitor) {
56
+ return CandidApi.diagnoses.delete.Error._visit(this, visitor);
57
+ },
58
+ };
59
+ },
51
60
  _unknown: (fetcherError) => {
52
61
  return {
53
62
  errorName: undefined,
@@ -61,6 +70,8 @@ exports.Error = {
61
70
  switch (value.errorName) {
62
71
  case "DiagnosisNotFoundHTTPError":
63
72
  return visitor.diagnosisNotFoundHttpError(value.content);
73
+ case "ServiceLinesMustHaveAtLeastOneDiagnosisHTTPError":
74
+ return visitor.serviceLinesMustHaveAtLeastOneDiagnosisHttpError(value.content);
64
75
  default:
65
76
  return visitor._other(value);
66
77
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../index";
5
+ export interface ServiceLinesMustHaveAtLeastOneDiagnosisError {
6
+ diagnosisId: CandidApi.DiagnosisId;
7
+ serviceLineId: CandidApi.ServiceLineId;
8
+ message: string;
9
+ }
@@ -3,9 +3,3 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ClaimFrequencyTypeCode = void 0;
7
- exports.ClaimFrequencyTypeCode = {
8
- Original: "1",
9
- Replacement: "7",
10
- Void: "8",
11
- };
@@ -5,3 +5,4 @@ export * from "./StandaloneDiagnosisCreate";
5
5
  export * from "./DiagnosisTypeCode";
6
6
  export * from "./Diagnosis";
7
7
  export * from "./DiagnosisNotFoundError";
8
+ export * from "./ServiceLinesMustHaveAtLeastOneDiagnosisError";
@@ -21,3 +21,4 @@ __exportStar(require("./StandaloneDiagnosisCreate"), exports);
21
21
  __exportStar(require("./DiagnosisTypeCode"), exports);
22
22
  __exportStar(require("./Diagnosis"), exports);
23
23
  __exportStar(require("./DiagnosisNotFoundError"), exports);
24
+ __exportStar(require("./ServiceLinesMustHaveAtLeastOneDiagnosisError"), exports);
@@ -91,7 +91,7 @@ class V2 {
91
91
  const _response = yield core.fetcher({
92
92
  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/eligibility/v2"),
93
93
  method: "POST",
94
- 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),
94
+ 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),
95
95
  contentType: "application/json",
96
96
  requestType: "json",
97
97
  body: request,
@@ -157,7 +157,7 @@ class V2 {
157
157
  const _response = yield core.fetcher({
158
158
  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/eligibility/v2/availity"),
159
159
  method: "GET",
160
- 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),
160
+ 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),
161
161
  contentType: "application/json",
162
162
  requestType: "json",
163
163
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -221,7 +221,7 @@ class V2 {
221
221
  const _response = yield core.fetcher({
222
222
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/eligibility/v2/availity"),
223
223
  method: "POST",
224
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
224
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.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),
225
225
  contentType: "application/json",
226
226
  requestType: "json",
227
227
  body: request,
@@ -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/encounter-attachments/v1/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
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,
@@ -116,7 +116,7 @@ class V1 {
116
116
  const _response = yield core.fetcher({
117
117
  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/encounter-attachments/v1/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
118
118
  method: "PUT",
119
- headers: Object.assign(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 }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
119
+ headers: Object.assign(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 }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
120
120
  requestType: "file",
121
121
  duplex: _maybeEncodedRequest.duplex,
122
122
  body: _maybeEncodedRequest.body,
@@ -157,7 +157,7 @@ class V1 {
157
157
  const _response = yield core.fetcher({
158
158
  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/encounter-attachments/v1/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
159
159
  method: "DELETE",
160
- 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),
160
+ 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),
161
161
  contentType: "application/json",
162
162
  requestType: "json",
163
163
  body: serializers.encounterAttachments.v1.DeleteAttachmentRequest.jsonOrThrow(request, {
@@ -72,7 +72,7 @@ class V2 {
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/encounter-providers/v2/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
74
74
  method: "PATCH",
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
  body: serializers.encounterProviders.v2.ReferringProviderUpdate.jsonOrThrow(request, {
@@ -128,7 +128,7 @@ class V2 {
128
128
  const _response = yield core.fetcher({
129
129
  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/encounter-providers/v2/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}/initial-referring-provider`),
130
130
  method: "PATCH",
131
- 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),
131
+ 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),
132
132
  contentType: "application/json",
133
133
  requestType: "json",
134
134
  body: serializers.encounterProviders.v2.InitialReferringProviderUpdate.jsonOrThrow(request, {
@@ -185,7 +185,7 @@ class V2 {
185
185
  const _response = yield core.fetcher({
186
186
  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/encounter-providers/v2/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}/supervising-provider`),
187
187
  method: "PATCH",
188
- 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),
188
+ 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),
189
189
  contentType: "application/json",
190
190
  requestType: "json",
191
191
  body: serializers.encounterProviders.v2.SupervisingProviderUpdate.jsonOrThrow(request, {
@@ -242,7 +242,7 @@ class V2 {
242
242
  const _response = yield core.fetcher({
243
243
  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/encounter-providers/v2/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}/ordering-provider`),
244
244
  method: "PATCH",
245
- 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),
245
+ 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),
246
246
  contentType: "application/json",
247
247
  requestType: "json",
248
248
  body: serializers.encounterProviders.v2.OrderingProviderUpdate.jsonOrThrow(request, {
@@ -300,7 +300,7 @@ class V2 {
300
300
  const _response = yield core.fetcher({
301
301
  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/encounter-providers/v2/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}/create-referring-provider`),
302
302
  method: "POST",
303
- 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),
303
+ 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),
304
304
  contentType: "application/json",
305
305
  requestType: "json",
306
306
  body: serializers.encounterProviders.v2.ReferringProvider.jsonOrThrow(request, {
@@ -359,7 +359,7 @@ class V2 {
359
359
  const _response = yield core.fetcher({
360
360
  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/encounter-providers/v2/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}/create-initial-referring-provider`),
361
361
  method: "POST",
362
- 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),
362
+ 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),
363
363
  contentType: "application/json",
364
364
  requestType: "json",
365
365
  body: serializers.encounterProviders.v2.InitialReferringProvider.jsonOrThrow(request, {
@@ -420,7 +420,7 @@ class V2 {
420
420
  const _response = yield core.fetcher({
421
421
  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/encounter-providers/v2/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}/create-supervising-provider`),
422
422
  method: "POST",
423
- 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),
423
+ 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),
424
424
  contentType: "application/json",
425
425
  requestType: "json",
426
426
  body: serializers.encounterProviders.v2.SupervisingProvider.jsonOrThrow(request, {
@@ -480,7 +480,7 @@ class V2 {
480
480
  const _response = yield core.fetcher({
481
481
  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/encounter-providers/v2/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}/create-ordering-provider`),
482
482
  method: "POST",
483
- 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),
483
+ 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),
484
484
  contentType: "application/json",
485
485
  requestType: "json",
486
486
  body: serializers.encounterProviders.v2.OrderingProvider.jsonOrThrow(request, {
@@ -536,7 +536,7 @@ class V2 {
536
536
  const _response = yield core.fetcher({
537
537
  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/encounter-providers/v2/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}/referring-provider`),
538
538
  method: "DELETE",
539
- 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),
539
+ 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),
540
540
  contentType: "application/json",
541
541
  requestType: "json",
542
542
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -583,7 +583,7 @@ class V2 {
583
583
  const _response = yield core.fetcher({
584
584
  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/encounter-providers/v2/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}/initial-referring-provider`),
585
585
  method: "DELETE",
586
- 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),
586
+ 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),
587
587
  contentType: "application/json",
588
588
  requestType: "json",
589
589
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -630,7 +630,7 @@ class V2 {
630
630
  const _response = yield core.fetcher({
631
631
  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/encounter-providers/v2/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}/supervising-provider`),
632
632
  method: "DELETE",
633
- 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),
633
+ 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),
634
634
  contentType: "application/json",
635
635
  requestType: "json",
636
636
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -677,7 +677,7 @@ class V2 {
677
677
  const _response = yield core.fetcher({
678
678
  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/encounter-providers/v2/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}/ordering-provider`),
679
679
  method: "DELETE",
680
- 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),
680
+ 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),
681
681
  contentType: "application/json",
682
682
  requestType: "json",
683
683
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -143,7 +143,7 @@ class V4 {
143
143
  const _response = yield core.fetcher({
144
144
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/encounters/v4"),
145
145
  method: "GET",
146
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
146
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
147
147
  contentType: "application/json",
148
148
  queryParameters: _queryParams,
149
149
  requestType: "json",
@@ -181,7 +181,7 @@ class V4 {
181
181
  const _response = yield core.fetcher({
182
182
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/encounters/v4/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
183
183
  method: "GET",
184
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.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),
184
+ 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),
185
185
  contentType: "application/json",
186
186
  requestType: "json",
187
187
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -255,7 +255,7 @@ class V4 {
255
255
  const _response = yield core.fetcher({
256
256
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/encounters/v4"),
257
257
  method: "POST",
258
- 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),
258
+ 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),
259
259
  contentType: "application/json",
260
260
  requestType: "json",
261
261
  body: serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -364,7 +364,7 @@ class V4 {
364
364
  const _response = yield core.fetcher({
365
365
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/encounters/v4/create-from-pre-encounter"),
366
366
  method: "POST",
367
- 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),
367
+ 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),
368
368
  contentType: "application/json",
369
369
  requestType: "json",
370
370
  body: serializers.encounters.v4.EncounterCreateFromPreEncounter.jsonOrThrow(request, {
@@ -426,7 +426,7 @@ class V4 {
426
426
  const _response = yield core.fetcher({
427
427
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/encounters/v4/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
428
428
  method: "PATCH",
429
- 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),
429
+ 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),
430
430
  contentType: "application/json",
431
431
  requestType: "json",
432
432
  body: serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -355,7 +355,7 @@ import * as CandidApi from "../../../../../index";
355
355
  * color: CandidApi.TagColorEnum.Black
356
356
  * }],
357
357
  * codingAttribution: CandidApi.encounters.v4.CodingAttributionType.Candid,
358
- * workQueueId: CandidApi.WorkQueueId("000856FE-1024-418F-BF96-2E7347AB4520"),
358
+ * workQueueId: CandidApi.WorkQueueId("12"),
359
359
  * workQueueMembershipActivatedAt: "2023-01-01T00:00:00Z",
360
360
  * ownerOfNextAction: CandidApi.encounters.v4.EncounterOwnerOfNextActionType.Candid,
361
361
  * submissionOrigin: CandidApi.encounters.v4.EncounterSubmissionOriginType.Candid,
@@ -426,10 +426,13 @@ import * as CandidApi from "../../../../../index";
426
426
  * "age": 38
427
427
  * }
428
428
  * }],
429
- * createdAt: "2023-01-01T00:00:00Z"
429
+ * createdAt: "2023-01-01T00:00:00Z",
430
+ * nextResponsibleParty: CandidApi.NextResponsibleParty.Primary
430
431
  * }
431
432
  */
432
433
  export interface Encounter extends CandidApi.encounters.v4.EncounterBase {
434
+ /** 837i-REF1000 -- an optional state indicating where an accident related to the encounter occurred. */
435
+ accidentStateOrProvinceCode?: CandidApi.State;
433
436
  /** If the encounter was created from ingested charge captures, this is the associated Charge Capture Claim Creation Id. */
434
437
  claimCreationId?: CandidApi.ChargeCaptureClaimCreationId;
435
438
  /**
@@ -450,6 +453,43 @@ export interface Encounter extends CandidApi.encounters.v4.EncounterBase {
450
453
  * For telehealth services, the rendering provider performs the visit, asynchronous communication, or other service. The rendering provider address should generally be the same as the service facility address.
451
454
  */
452
455
  renderingProvider: CandidApi.encounterProviders.v2.EncounterProvider;
456
+ /** 837i NM1 2500 variant for Loop ID-2310. Used to indicate the individual whom has overall responsibility for the patient in institutional claims processing. */
457
+ attendingProvider?: CandidApi.encounterProviders.v2.RenderingProvider;
458
+ /**
459
+ * 837i Loop 2300 DTP-03
460
+ * Extension of the admission date with hour (0-23) details.
461
+ * Required for institutional submission.
462
+ */
463
+ admissionHour?: number;
464
+ /**
465
+ * 837i Loop 2300 CL1-01
466
+ * Code used to indicate the priority of an admission or visit.
467
+ */
468
+ admissionTypeCode?: CandidApi.x12.v1.TypeOfAdmissionOrVisitCode;
469
+ /**
470
+ * 837i Loop 2300 CLI1-02
471
+ * Code used to indicate the conditions under which an admission occurs.
472
+ */
473
+ admissionSourceCode?: CandidApi.x12.v1.PointOfOriginForAdmissionOrVisitCode;
474
+ /**
475
+ * 837i Loop 2300 DTP-03
476
+ * Extension of the discharge date with hour (0-23) details.
477
+ * Required for institutional submission.
478
+ */
479
+ dischargeHour?: number;
480
+ /**
481
+ * 837i CL1-03
482
+ * Code indicating patient status as of the "statement covers through date".
483
+ */
484
+ dischargeStatus?: CandidApi.x12.v1.PatientDischargeStatusCode;
485
+ /** 837i NM1 2500 variant for Loop ID-2310. Used to indicate the individual whom has primary responsibility for surgical procedures in institutional claims processing. */
486
+ operatingProvider?: CandidApi.encounterProviders.v2.RenderingProvider;
487
+ /** 837i NM1 2500 variant for Loop ID-2310. Used to indicate the individual whom has secondary responsibility for surgical procedures in institutional claims processing. Only used when operating_provider is also set. */
488
+ otherOperatingProvider?: CandidApi.encounterProviders.v2.RenderingProvider;
489
+ /** Describes the currently expected target form for this encounter. This effects what validations and queues the form is processed under. When this value is not set, it should be assumed to be TARGET_PROFESSIONAL. */
490
+ submissionExpectation?: CandidApi.encounters.v4.EncounterSubmissionExpectation;
491
+ /** Used by institutional forms to indicate how the bill is to be interpreted. Professional forms are not required to submit this attribute. */
492
+ typeOfBill?: CandidApi.x12.v1.TypeOfBillComposite;
453
493
  referringProvider?: CandidApi.encounterProviders.v2.EncounterProvider;
454
494
  initialReferringProvider?: CandidApi.encounterProviders.v2.EncounterProvider;
455
495
  supervisingProvider?: CandidApi.encounterProviders.v2.EncounterProvider;
@@ -517,4 +557,6 @@ export interface Encounter extends CandidApi.encounters.v4.EncounterBase {
517
557
  lastSubmittedAt?: Date;
518
558
  /** The date and time the encounter was created. */
519
559
  createdAt: Date;
560
+ /** The party (payer, patient, etc.) responsible for the remainder of the balance on the claim. */
561
+ nextResponsibleParty?: CandidApi.NextResponsibleParty;
520
562
  }
@@ -356,7 +356,7 @@ import * as CandidApi from "../../../../../index";
356
356
  * color: CandidApi.TagColorEnum.Black
357
357
  * }],
358
358
  * codingAttribution: CandidApi.encounters.v4.CodingAttributionType.Candid,
359
- * workQueueId: CandidApi.WorkQueueId("000856FE-1024-418F-BF96-2E7347AB4520"),
359
+ * workQueueId: CandidApi.WorkQueueId("12"),
360
360
  * workQueueMembershipActivatedAt: "2023-01-01T00:00:00Z",
361
361
  * ownerOfNextAction: CandidApi.encounters.v4.EncounterOwnerOfNextActionType.Candid,
362
362
  * submissionOrigin: CandidApi.encounters.v4.EncounterSubmissionOriginType.Candid,
@@ -427,7 +427,8 @@ import * as CandidApi from "../../../../../index";
427
427
  * "age": 38
428
428
  * }
429
429
  * }],
430
- * createdAt: "2023-01-01T00:00:00Z"
430
+ * createdAt: "2023-01-01T00:00:00Z",
431
+ * nextResponsibleParty: CandidApi.NextResponsibleParty.Primary
431
432
  * }]
432
433
  * }
433
434
  */
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Used to describe the currently expected target form for this encounter. This effects what
6
+ * validations and queues the form is processed under. If you're not sure, you can set this value
7
+ * to UNEXPECTED, in which case the form will be treated loosely during processing. Before
8
+ * submission, this value will be required by some rules or user intervention. It can be changed
9
+ * at any time, although doing so may incur other rules.
10
+ */
11
+ export type EncounterSubmissionExpectation =
12
+ /**
13
+ * Treat this encounter as a potential professional claim submission and validate it as such. */
14
+ "TARGET_PROFESSIONAL"
15
+ /**
16
+ * Treat this encounter as a potential institutional claim submission and validate it as such. */
17
+ | "TARGET_INSTITUTIONAL";
18
+ export declare const EncounterSubmissionExpectation: {
19
+ readonly TargetProfessional: "TARGET_PROFESSIONAL";
20
+ readonly TargetInstitutional: "TARGET_INSTITUTIONAL";
21
+ };
@@ -0,0 +1,10 @@
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.EncounterSubmissionExpectation = void 0;
7
+ exports.EncounterSubmissionExpectation = {
8
+ TargetProfessional: "TARGET_PROFESSIONAL",
9
+ TargetInstitutional: "TARGET_INSTITUTIONAL",
10
+ };
@@ -58,3 +58,4 @@ export * from "./ValueDoesNotMatchKeyTypeError";
58
58
  export * from "./MultipleInstancesForSchemaError";
59
59
  export * from "./SchemaInstanceValidationError";
60
60
  export * from "./PayerPlanGroupPayerDoesNotMatchInsuranceCardError";
61
+ export * from "./EncounterSubmissionExpectation";
@@ -74,3 +74,4 @@ __exportStar(require("./ValueDoesNotMatchKeyTypeError"), exports);
74
74
  __exportStar(require("./MultipleInstancesForSchemaError"), exports);
75
75
  __exportStar(require("./SchemaInstanceValidationError"), exports);
76
76
  __exportStar(require("./PayerPlanGroupPayerDoesNotMatchInsuranceCardError"), exports);
77
+ __exportStar(require("./EncounterSubmissionExpectation"), exports);
@@ -81,7 +81,7 @@ class V1 {
81
81
  const _response = yield core.fetcher({
82
82
  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/expected-network-status/v1"),
83
83
  method: "POST",
84
- 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),
84
+ 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),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  body: serializers.expectedNetworkStatus.v1.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
@@ -99,7 +99,7 @@ class V2 {
99
99
  const _response = yield core.fetcher({
100
100
  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/expected-network-status/v2/compute/${encodeURIComponent(serializers.organizationProviders.v2.OrganizationProviderId.jsonOrThrow(renderingProviderId))}`),
101
101
  method: "POST",
102
- 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),
102
+ 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),
103
103
  contentType: "application/json",
104
104
  requestType: "json",
105
105
  body: serializers.expectedNetworkStatus.v2.ExpectedNetworkStatusRequestV2.jsonOrThrow(request, {
@@ -182,7 +182,7 @@ class V2 {
182
182
  const _response = yield core.fetcher({
183
183
  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/expected-network-status/v2/compute"),
184
184
  method: "POST",
185
- 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),
185
+ 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),
186
186
  contentType: "application/json",
187
187
  requestType: "json",
188
188
  body: serializers.expectedNetworkStatus.v2.ComputeAllInNetworkProvidersRequest.jsonOrThrow(request, {
@@ -26,6 +26,11 @@ export declare class V3 {
26
26
  protected readonly _options: V3.Options;
27
27
  constructor(_options?: V3.Options);
28
28
  /**
29
+ * <Warning>
30
+ * API-based exports are in the process of being deprecated in favor of Candid Data Share and are not being offered to new customers.
31
+ * Please see the [Candid Data Share docs](https://docs.joincandidhealth.com/introduction/candid-data-share) for more information.
32
+ * </Warning>
33
+ *
29
34
  * Retrieve CSV-formatted reports on claim submissions and outcomes. This endpoint returns Export objects that contain an
30
35
  * authenticated URL to a customer's reports with a 2min TTL. The schema for the CSV export can be found [here](https://app.joincandidhealth.com/files/exports_schema.csv).
31
36
  *
@@ -40,9 +45,6 @@ export declare class V3 {
40
45
  * up to 90 days in the past by default. Please email our [Support team](mailto:support@joincandidhealth.com) with any data requests
41
46
  * outside of these stated guarantees.
42
47
  *
43
- * **New Customers:** This endpoint is not enabled by default for new Candid customers. To have this endpoint enabled for your organization,
44
- * please email our [Support team](mailto:support@joincandidhealth.com) with the request.
45
- *
46
48
  * @param {CandidApi.exports.v3.GetExportsRequest} request
47
49
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
48
50
  *
@@ -59,6 +59,11 @@ class V3 {
59
59
  this._options = _options;
60
60
  }
61
61
  /**
62
+ * <Warning>
63
+ * API-based exports are in the process of being deprecated in favor of Candid Data Share and are not being offered to new customers.
64
+ * Please see the [Candid Data Share docs](https://docs.joincandidhealth.com/introduction/candid-data-share) for more information.
65
+ * </Warning>
66
+ *
62
67
  * Retrieve CSV-formatted reports on claim submissions and outcomes. This endpoint returns Export objects that contain an
63
68
  * authenticated URL to a customer's reports with a 2min TTL. The schema for the CSV export can be found [here](https://app.joincandidhealth.com/files/exports_schema.csv).
64
69
  *
@@ -73,9 +78,6 @@ class V3 {
73
78
  * up to 90 days in the past by default. Please email our [Support team](mailto:support@joincandidhealth.com) with any data requests
74
79
  * outside of these stated guarantees.
75
80
  *
76
- * **New Customers:** This endpoint is not enabled by default for new Candid customers. To have this endpoint enabled for your organization,
77
- * please email our [Support team](mailto:support@joincandidhealth.com) with the request.
78
- *
79
81
  * @param {CandidApi.exports.v3.GetExportsRequest} request
80
82
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
81
83
  *
@@ -95,7 +97,7 @@ class V3 {
95
97
  const _response = yield core.fetcher({
96
98
  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/exports/v3"),
97
99
  method: "GET",
98
- 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),
100
+ 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),
99
101
  contentType: "application/json",
100
102
  queryParameters: _queryParams,
101
103
  requestType: "json",
@@ -121,6 +123,8 @@ class V3 {
121
123
  case "MissingDailyIncrementalExportFileError":
122
124
  case "ExportNotYetAvailableError":
123
125
  case "ExportDateTooEarlyError":
126
+ case "UnsupportedExportWindowError":
127
+ case "ExportDisabledError":
124
128
  return {
125
129
  ok: false,
126
130
  error: serializers.exports.v3.getExports.Error.parseOrThrow(_response.error.body, {
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../../index";
5
5
  import * as core from "../../../../../../core";
6
- export type Error = CandidApi.exports.v3.getExports.Error.HttpRequestValidationsError | CandidApi.exports.v3.getExports.Error.ExportFilesUnavailableError | CandidApi.exports.v3.getExports.Error.MissingDailyIncrementalExportFileError | CandidApi.exports.v3.getExports.Error.ExportNotYetAvailableError | CandidApi.exports.v3.getExports.Error.ExportDateTooEarlyError | CandidApi.exports.v3.getExports.Error._Unknown;
6
+ export type Error = CandidApi.exports.v3.getExports.Error.HttpRequestValidationsError | CandidApi.exports.v3.getExports.Error.ExportFilesUnavailableError | CandidApi.exports.v3.getExports.Error.MissingDailyIncrementalExportFileError | CandidApi.exports.v3.getExports.Error.ExportNotYetAvailableError | CandidApi.exports.v3.getExports.Error.ExportDateTooEarlyError | CandidApi.exports.v3.getExports.Error.UnsupportedExportWindowError | CandidApi.exports.v3.getExports.Error.ExportDisabledError | CandidApi.exports.v3.getExports.Error._Unknown;
7
7
  export declare namespace Error {
8
8
  interface HttpRequestValidationsError extends _Utils {
9
9
  errorName: "HttpRequestValidationsError";
@@ -25,6 +25,14 @@ export declare namespace Error {
25
25
  errorName: "ExportDateTooEarlyError";
26
26
  content: CandidApi.ErrorMessage;
27
27
  }
28
+ interface UnsupportedExportWindowError extends _Utils {
29
+ errorName: "UnsupportedExportWindowError";
30
+ content: CandidApi.ErrorMessage;
31
+ }
32
+ interface ExportDisabledError extends _Utils {
33
+ errorName: "ExportDisabledError";
34
+ content: CandidApi.ErrorMessage;
35
+ }
28
36
  interface _Unknown extends _Utils {
29
37
  errorName: void;
30
38
  content: core.Fetcher.Error;
@@ -38,6 +46,8 @@ export declare namespace Error {
38
46
  missingDailyIncrementalExportFileError: (value: CandidApi.ErrorMessage) => _Result;
39
47
  exportNotYetAvailableError: (value: CandidApi.ErrorMessage) => _Result;
40
48
  exportDateTooEarlyError: (value: CandidApi.ErrorMessage) => _Result;
49
+ unsupportedExportWindowError: (value: CandidApi.ErrorMessage) => _Result;
50
+ exportDisabledError: (value: CandidApi.ErrorMessage) => _Result;
41
51
  _other: (value: core.Fetcher.Error) => _Result;
42
52
  }
43
53
  }
@@ -47,6 +57,8 @@ export declare const Error: {
47
57
  readonly missingDailyIncrementalExportFileError: (value: CandidApi.ErrorMessage) => CandidApi.exports.v3.getExports.Error.MissingDailyIncrementalExportFileError;
48
58
  readonly exportNotYetAvailableError: (value: CandidApi.ErrorMessage) => CandidApi.exports.v3.getExports.Error.ExportNotYetAvailableError;
49
59
  readonly exportDateTooEarlyError: (value: CandidApi.ErrorMessage) => CandidApi.exports.v3.getExports.Error.ExportDateTooEarlyError;
60
+ readonly unsupportedExportWindowError: (value: CandidApi.ErrorMessage) => CandidApi.exports.v3.getExports.Error.UnsupportedExportWindowError;
61
+ readonly exportDisabledError: (value: CandidApi.ErrorMessage) => CandidApi.exports.v3.getExports.Error.ExportDisabledError;
50
62
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.exports.v3.getExports.Error._Unknown;
51
63
  readonly _visit: <_Result>(value: CandidApi.exports.v3.getExports.Error, visitor: CandidApi.exports.v3.getExports.Error._Visitor<_Result>) => _Result;
52
64
  };