candidhealth 1.0.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 (1007) hide show
  1. package/Client.js +2 -2
  2. package/README.md +1 -1
  3. package/api/resources/auth/client/Client.d.ts +3 -3
  4. package/api/resources/auth/client/Client.js +3 -3
  5. package/api/resources/auth/resources/{v2 → default}/client/Client.d.ts +23 -9
  6. package/{dist/api/resources/auth/resources/v2 → api/resources/auth/resources/default}/client/Client.js +29 -12
  7. package/api/resources/auth/resources/default/client/getToken.d.ts +34 -0
  8. package/{dist/api/resources/auth/resources/v2 → api/resources/auth/resources/default}/client/getToken.js +13 -2
  9. package/api/resources/auth/resources/default/types/InvalidContentTypeErrorType.d.ts +6 -0
  10. package/{dist/api/resources/auth/resources/v2 → api/resources/auth/resources/default}/types/index.d.ts +1 -0
  11. package/{dist/serialization/resources/auth/resources/v2 → api/resources/auth/resources/default}/types/index.js +1 -0
  12. package/api/resources/auth/resources/index.d.ts +1 -1
  13. package/api/resources/auth/resources/index.js +2 -2
  14. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  15. package/api/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.d.ts +7 -0
  16. package/api/resources/billingNotes/resources/v2/types/index.d.ts +1 -0
  17. package/api/resources/billingNotes/resources/v2/types/index.js +1 -0
  18. package/api/resources/chargeCapture/resources/v1/client/Client.js +17 -6
  19. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +4 -0
  20. package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +4 -0
  21. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +14 -0
  22. package/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  23. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +1 -52
  24. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureError.d.ts +6 -0
  25. package/api/resources/chargeCapture/resources/v1/types/index.d.ts +1 -1
  26. package/api/resources/chargeCapture/resources/v1/types/index.js +1 -1
  27. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +9 -0
  28. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +55 -3
  29. package/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -0
  30. package/api/resources/chargeCaptureBundles/resources/v1/client/index.js +2 -1
  31. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.d.ts +13 -0
  32. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -0
  33. package/api/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.d.ts +34 -0
  34. package/api/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.js +79 -0
  35. package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +3 -3
  36. package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +34 -0
  37. package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js +5 -0
  38. package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +2 -2
  39. package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +43 -0
  40. package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.js +5 -0
  41. package/api/resources/claimSubmission/resources/v1/types/index.d.ts +2 -1
  42. package/api/resources/claimSubmission/resources/v1/types/index.js +2 -1
  43. package/api/resources/commons/types/NextResponsibleParty.d.ts +12 -0
  44. package/api/resources/commons/types/NextResponsibleParty.js +14 -0
  45. package/api/resources/commons/types/PhoneNumberOptional.d.ts +15 -0
  46. package/api/resources/commons/types/PhoneNumberOptional.js +5 -0
  47. package/api/resources/commons/types/ProcedureModifier.d.ts +9 -1
  48. package/api/resources/commons/types/ProcedureModifier.js +2 -0
  49. package/api/resources/commons/types/StreetAddressLongZipOptional.d.ts +19 -0
  50. package/api/resources/commons/types/StreetAddressLongZipOptional.js +5 -0
  51. package/api/resources/commons/types/index.d.ts +3 -0
  52. package/api/resources/commons/types/index.js +3 -0
  53. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  54. package/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +1 -1
  55. package/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +1 -1
  56. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  57. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  58. package/api/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.d.ts +22 -0
  59. package/api/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.js +5 -0
  60. package/api/resources/customSchemas/resources/v1/types/index.d.ts +1 -0
  61. package/api/resources/customSchemas/resources/v1/types/index.js +1 -0
  62. package/api/resources/diagnoses/client/Client.js +4 -3
  63. package/api/resources/diagnoses/client/delete.d.ts +7 -1
  64. package/api/resources/diagnoses/client/delete.js +11 -0
  65. package/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +7 -0
  66. package/api/resources/diagnoses/types/DiagnosisCreate.d.ts +7 -0
  67. package/api/resources/diagnoses/types/DiagnosisCreateOptional.d.ts +28 -0
  68. package/api/resources/diagnoses/types/DiagnosisCreateOptional.js +5 -0
  69. package/api/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.d.ts +9 -0
  70. package/api/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.js +5 -0
  71. package/api/resources/diagnoses/types/index.d.ts +2 -0
  72. package/api/resources/diagnoses/types/index.js +2 -0
  73. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  74. package/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
  75. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  76. package/api/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.d.ts +13 -0
  77. package/api/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.js +5 -0
  78. package/api/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
  79. package/api/resources/encounterProviders/resources/v2/types/index.js +1 -0
  80. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  81. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
  82. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +26 -0
  83. package/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +9 -0
  84. package/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +5 -0
  85. package/api/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.d.ts +8 -0
  86. package/api/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.js +5 -0
  87. package/api/resources/encounters/resources/v4/types/ClinicalNoteOptional.d.ts +10 -0
  88. package/api/resources/encounters/resources/v4/types/ClinicalNoteOptional.js +5 -0
  89. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +47 -3
  90. package/api/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +1 -1
  91. package/api/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +80 -0
  92. package/api/resources/encounters/resources/v4/types/EncounterDeepOptional.js +5 -0
  93. package/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -26
  94. package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +3 -2
  95. package/api/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.d.ts +21 -0
  96. package/api/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.js +10 -0
  97. package/api/resources/encounters/resources/v4/types/EpsdtReferralOptional.d.ts +9 -0
  98. package/api/resources/encounters/resources/v4/types/EpsdtReferralOptional.js +5 -0
  99. package/api/resources/encounters/resources/v4/types/IntakeQuestionOptional.d.ts +24 -0
  100. package/api/resources/encounters/resources/v4/types/IntakeQuestionOptional.js +5 -0
  101. package/api/resources/encounters/resources/v4/types/InterventionOptional.d.ts +14 -0
  102. package/api/resources/encounters/resources/v4/types/InterventionOptional.js +5 -0
  103. package/api/resources/encounters/resources/v4/types/LabOptional.d.ts +17 -0
  104. package/api/resources/encounters/resources/v4/types/LabOptional.js +5 -0
  105. package/api/resources/encounters/resources/v4/types/MedicationOptional.d.ts +12 -0
  106. package/api/resources/encounters/resources/v4/types/MedicationOptional.js +5 -0
  107. package/api/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.d.ts +9 -0
  108. package/api/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.js +5 -0
  109. package/api/resources/encounters/resources/v4/types/index.d.ts +11 -0
  110. package/api/resources/encounters/resources/v4/types/index.js +11 -0
  111. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  112. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  113. package/api/resources/exports/resources/v3/client/Client.d.ts +5 -3
  114. package/api/resources/exports/resources/v3/client/Client.js +8 -4
  115. package/api/resources/exports/resources/v3/client/getExports.d.ts +13 -1
  116. package/api/resources/exports/resources/v3/client/getExports.js +22 -0
  117. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  118. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  119. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  120. package/api/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +17 -0
  121. package/api/resources/guarantor/resources/v1/types/GuarantorOptional.js +5 -0
  122. package/api/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  123. package/api/resources/guarantor/resources/v1/types/index.js +1 -0
  124. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  125. package/api/resources/index.d.ts +2 -0
  126. package/api/resources/index.js +3 -1
  127. package/api/resources/individual/types/IndividualBaseOptional.d.ts +9 -0
  128. package/api/resources/individual/types/IndividualBaseOptional.js +5 -0
  129. package/api/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.d.ts +9 -0
  130. package/api/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.js +5 -0
  131. package/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +2 -2
  132. package/api/resources/individual/types/SubscriberBaseOptional.d.ts +9 -0
  133. package/api/resources/individual/types/SubscriberBaseOptional.js +5 -0
  134. package/api/resources/individual/types/SubscriberCreateOptional.d.ts +7 -0
  135. package/api/resources/individual/types/SubscriberCreateOptional.js +5 -0
  136. package/api/resources/individual/types/index.d.ts +4 -0
  137. package/api/resources/individual/types/index.js +4 -0
  138. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  139. package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
  140. package/api/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.d.ts +14 -0
  141. package/api/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.js +5 -0
  142. package/api/resources/insuranceCards/resources/v2/types/index.d.ts +1 -0
  143. package/api/resources/insuranceCards/resources/v2/types/index.js +1 -0
  144. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  145. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  146. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  147. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  148. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  149. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  150. package/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +2 -1
  151. package/api/resources/organizationProviders/resources/v2/types/LicenseType.js +1 -0
  152. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  153. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  154. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  155. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  156. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  157. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  158. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  159. package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +1 -1
  160. package/{dist/api/resources/preEncounter/resources/lists/resources/v1 → api/resources/preEncounter/resources/common}/types/FilterQueryString.d.ts +3 -3
  161. package/api/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  162. package/api/resources/preEncounter/resources/common/types/index.js +1 -0
  163. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
  164. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +42 -1
  165. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +158 -5
  166. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/createRecommendation.d.ts +22 -0
  167. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/createRecommendation.js +57 -0
  168. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +4 -0
  169. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +8 -1
  170. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/payerSearch.d.ts +22 -0
  171. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/payerSearch.js +57 -0
  172. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.d.ts +22 -0
  173. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.js +57 -0
  174. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/BatchEligibilityPollRequest.d.ts +11 -0
  175. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/BatchEligibilityPollRequest.js +5 -0
  176. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/EligibilityRecommendationRequest.d.ts +11 -0
  177. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/EligibilityRecommendationRequest.js +5 -0
  178. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/PayerSearchRequest.d.ts +13 -0
  179. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/PayerSearchRequest.js +5 -0
  180. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/index.d.ts +3 -0
  181. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.d.ts +9 -0
  182. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.js +5 -0
  183. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.d.ts +13 -0
  184. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.js +5 -0
  185. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.d.ts +18 -0
  186. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.js +5 -0
  187. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.d.ts +13 -0
  188. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.js +5 -0
  189. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.d.ts +10 -0
  190. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.js +5 -0
  191. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +11 -0
  192. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.js +5 -0
  193. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.d.ts +8 -0
  194. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.js +5 -0
  195. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.d.ts +9 -0
  196. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.js +5 -0
  197. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.d.ts +15 -0
  198. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.js +5 -0
  199. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.d.ts +8 -0
  200. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.js +5 -0
  201. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +10 -0
  202. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +10 -0
  203. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  204. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  205. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +1 -1
  206. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +1 -1
  207. package/api/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
  208. package/api/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +0 -1
  209. package/api/resources/preEncounter/resources/lists/resources/v1/types/index.js +0 -1
  210. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  211. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  212. package/api/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +2 -0
  213. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  214. package/api/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.d.ts +2 -0
  215. package/api/resources/serviceFacility/client/Client.js +1 -1
  216. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  217. package/api/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.d.ts +14 -0
  218. package/api/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.js +5 -0
  219. package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +3 -0
  220. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
  221. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +52 -0
  222. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +5 -0
  223. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +2 -0
  224. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -0
  225. package/api/resources/serviceLines/resources/v2/types/TestResultOptional.d.ts +8 -0
  226. package/api/resources/serviceLines/resources/v2/types/TestResultOptional.js +5 -0
  227. package/api/resources/serviceLines/resources/v2/types/index.d.ts +3 -0
  228. package/api/resources/serviceLines/resources/v2/types/index.js +3 -0
  229. package/api/resources/superbills/resources/v1/client/Client.js +1 -1
  230. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  231. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  232. package/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +2 -1
  233. package/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +1 -0
  234. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
  235. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  236. package/api/resources/x12/resources/v1/types/PatientDischargeStatusCode.d.ts +166 -0
  237. package/api/resources/x12/resources/v1/types/PatientDischargeStatusCode.js +48 -0
  238. package/api/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.d.ts +50 -0
  239. package/api/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.js +19 -0
  240. package/api/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.d.ts +30 -0
  241. package/api/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.js +14 -0
  242. package/api/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +14 -0
  243. package/api/resources/x12/resources/v1/types/TypeOfBillComposite.js +5 -0
  244. package/api/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.d.ts +114 -0
  245. package/api/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.js +35 -0
  246. package/api/resources/x12/resources/v1/types/TypeOfCareCode.d.ts +42 -0
  247. package/api/resources/x12/resources/v1/types/TypeOfCareCode.js +17 -0
  248. package/api/resources/x12/resources/v1/types/TypeOfFacilityCode.d.ts +34 -0
  249. package/api/resources/x12/resources/v1/types/TypeOfFacilityCode.js +15 -0
  250. package/api/resources/x12/resources/v1/types/index.d.ts +7 -0
  251. package/api/resources/x12/resources/v1/types/index.js +7 -0
  252. package/api/resources/yesNoIndicator/index.d.ts +1 -0
  253. package/api/resources/yesNoIndicator/index.js +17 -0
  254. package/api/resources/yesNoIndicator/types/YesNoIndicator.d.ts +10 -0
  255. package/{dist/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js → api/resources/yesNoIndicator/types/YesNoIndicator.js} +6 -5
  256. package/api/resources/yesNoIndicator/types/index.d.ts +1 -0
  257. package/api/resources/yesNoIndicator/types/index.js +17 -0
  258. package/core/auth/OAuthTokenProvider.d.ts +2 -2
  259. package/dist/Client.js +2 -2
  260. package/dist/api/resources/auth/client/Client.d.ts +3 -3
  261. package/dist/api/resources/auth/client/Client.js +3 -3
  262. package/dist/api/resources/auth/resources/{v2 → default}/client/Client.d.ts +23 -9
  263. package/{api/resources/auth/resources/v2 → dist/api/resources/auth/resources/default}/client/Client.js +29 -12
  264. package/dist/api/resources/auth/resources/default/client/getToken.d.ts +34 -0
  265. package/{api/resources/auth/resources/v2 → dist/api/resources/auth/resources/default}/client/getToken.js +13 -2
  266. package/dist/api/resources/auth/resources/default/client/requests/AuthGetTokenRequest.js +5 -0
  267. package/dist/api/resources/auth/resources/default/client/requests/index.js +2 -0
  268. package/dist/api/resources/auth/resources/default/types/AuthGetTokenResponse.js +5 -0
  269. package/dist/api/resources/auth/resources/default/types/InvalidContentTypeErrorType.d.ts +6 -0
  270. package/dist/api/resources/auth/resources/default/types/InvalidContentTypeErrorType.js +5 -0
  271. package/dist/api/resources/auth/resources/default/types/TooManyRequestsErrorType.js +5 -0
  272. package/dist/{serialization/resources/auth/resources/v2 → api/resources/auth/resources/default}/types/index.d.ts +1 -0
  273. package/{api/resources/auth/resources/v2 → dist/api/resources/auth/resources/default}/types/index.js +1 -0
  274. package/dist/api/resources/auth/resources/index.d.ts +1 -1
  275. package/dist/api/resources/auth/resources/index.js +2 -2
  276. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  277. package/dist/api/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.d.ts +7 -0
  278. package/dist/api/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.js +5 -0
  279. package/dist/api/resources/billingNotes/resources/v2/types/index.d.ts +1 -0
  280. package/dist/api/resources/billingNotes/resources/v2/types/index.js +1 -0
  281. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +17 -6
  282. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +4 -0
  283. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +4 -0
  284. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +14 -0
  285. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  286. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +1 -52
  287. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureError.d.ts +6 -0
  288. package/dist/api/resources/chargeCapture/resources/v1/types/index.d.ts +1 -1
  289. package/dist/api/resources/chargeCapture/resources/v1/types/index.js +1 -1
  290. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +9 -0
  291. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +55 -3
  292. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -0
  293. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.js +2 -1
  294. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.d.ts +13 -0
  295. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.js +5 -0
  296. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -0
  297. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.d.ts +34 -0
  298. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.js +79 -0
  299. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +3 -3
  300. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +34 -0
  301. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js +5 -0
  302. package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +2 -2
  303. package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +43 -0
  304. package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.js +5 -0
  305. package/dist/api/resources/claimSubmission/resources/v1/types/index.d.ts +2 -1
  306. package/dist/api/resources/claimSubmission/resources/v1/types/index.js +2 -1
  307. package/dist/api/resources/commons/types/NextResponsibleParty.d.ts +12 -0
  308. package/dist/api/resources/commons/types/NextResponsibleParty.js +14 -0
  309. package/dist/api/resources/commons/types/PhoneNumberOptional.d.ts +15 -0
  310. package/dist/api/resources/commons/types/PhoneNumberOptional.js +5 -0
  311. package/dist/api/resources/commons/types/ProcedureModifier.d.ts +9 -1
  312. package/dist/api/resources/commons/types/ProcedureModifier.js +2 -0
  313. package/dist/api/resources/commons/types/StreetAddressLongZipOptional.d.ts +19 -0
  314. package/dist/api/resources/commons/types/StreetAddressLongZipOptional.js +5 -0
  315. package/dist/api/resources/commons/types/index.d.ts +3 -0
  316. package/dist/api/resources/commons/types/index.js +3 -0
  317. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  318. package/dist/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +1 -1
  319. package/dist/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +1 -1
  320. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  321. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  322. package/dist/api/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.d.ts +22 -0
  323. package/dist/api/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.js +5 -0
  324. package/dist/api/resources/customSchemas/resources/v1/types/index.d.ts +1 -0
  325. package/dist/api/resources/customSchemas/resources/v1/types/index.js +1 -0
  326. package/dist/api/resources/diagnoses/client/Client.js +4 -3
  327. package/dist/api/resources/diagnoses/client/delete.d.ts +7 -1
  328. package/dist/api/resources/diagnoses/client/delete.js +11 -0
  329. package/dist/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +7 -0
  330. package/dist/api/resources/diagnoses/types/DiagnosisCreate.d.ts +7 -0
  331. package/dist/api/resources/diagnoses/types/DiagnosisCreateOptional.d.ts +28 -0
  332. package/dist/api/resources/diagnoses/types/DiagnosisCreateOptional.js +5 -0
  333. package/dist/api/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.d.ts +9 -0
  334. package/dist/api/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.js +5 -0
  335. package/dist/api/resources/diagnoses/types/index.d.ts +2 -0
  336. package/dist/api/resources/diagnoses/types/index.js +2 -0
  337. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  338. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
  339. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  340. package/dist/api/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.d.ts +13 -0
  341. package/dist/api/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.js +5 -0
  342. package/dist/api/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
  343. package/dist/api/resources/encounterProviders/resources/v2/types/index.js +1 -0
  344. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  345. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
  346. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +26 -0
  347. package/dist/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +9 -0
  348. package/dist/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +5 -0
  349. package/dist/api/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.d.ts +8 -0
  350. package/dist/api/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.js +5 -0
  351. package/dist/api/resources/encounters/resources/v4/types/ClinicalNoteOptional.d.ts +10 -0
  352. package/dist/api/resources/encounters/resources/v4/types/ClinicalNoteOptional.js +5 -0
  353. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +47 -3
  354. package/dist/api/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +1 -1
  355. package/dist/api/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +80 -0
  356. package/dist/api/resources/encounters/resources/v4/types/EncounterDeepOptional.js +5 -0
  357. package/dist/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -26
  358. package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +3 -2
  359. package/dist/api/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.d.ts +21 -0
  360. package/dist/api/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.js +10 -0
  361. package/dist/api/resources/encounters/resources/v4/types/EpsdtReferralOptional.d.ts +9 -0
  362. package/dist/api/resources/encounters/resources/v4/types/EpsdtReferralOptional.js +5 -0
  363. package/dist/api/resources/encounters/resources/v4/types/IntakeQuestionOptional.d.ts +24 -0
  364. package/dist/api/resources/encounters/resources/v4/types/IntakeQuestionOptional.js +5 -0
  365. package/dist/api/resources/encounters/resources/v4/types/InterventionOptional.d.ts +14 -0
  366. package/dist/api/resources/encounters/resources/v4/types/InterventionOptional.js +5 -0
  367. package/dist/api/resources/encounters/resources/v4/types/LabOptional.d.ts +17 -0
  368. package/dist/api/resources/encounters/resources/v4/types/LabOptional.js +5 -0
  369. package/dist/api/resources/encounters/resources/v4/types/MedicationOptional.d.ts +12 -0
  370. package/dist/api/resources/encounters/resources/v4/types/MedicationOptional.js +5 -0
  371. package/dist/api/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.d.ts +9 -0
  372. package/dist/api/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.js +5 -0
  373. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +11 -0
  374. package/dist/api/resources/encounters/resources/v4/types/index.js +11 -0
  375. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  376. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  377. package/dist/api/resources/exports/resources/v3/client/Client.d.ts +5 -3
  378. package/dist/api/resources/exports/resources/v3/client/Client.js +8 -4
  379. package/dist/api/resources/exports/resources/v3/client/getExports.d.ts +13 -1
  380. package/dist/api/resources/exports/resources/v3/client/getExports.js +22 -0
  381. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  382. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  383. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  384. package/dist/api/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +17 -0
  385. package/dist/api/resources/guarantor/resources/v1/types/GuarantorOptional.js +5 -0
  386. package/dist/api/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  387. package/dist/api/resources/guarantor/resources/v1/types/index.js +1 -0
  388. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  389. package/dist/api/resources/index.d.ts +2 -0
  390. package/dist/api/resources/index.js +3 -1
  391. package/dist/api/resources/individual/types/IndividualBaseOptional.d.ts +9 -0
  392. package/dist/api/resources/individual/types/IndividualBaseOptional.js +5 -0
  393. package/dist/api/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.d.ts +9 -0
  394. package/dist/api/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.js +5 -0
  395. package/dist/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +2 -2
  396. package/dist/api/resources/individual/types/SubscriberBaseOptional.d.ts +9 -0
  397. package/dist/api/resources/individual/types/SubscriberBaseOptional.js +5 -0
  398. package/dist/api/resources/individual/types/SubscriberCreateOptional.d.ts +7 -0
  399. package/dist/api/resources/individual/types/SubscriberCreateOptional.js +5 -0
  400. package/dist/api/resources/individual/types/index.d.ts +4 -0
  401. package/dist/api/resources/individual/types/index.js +4 -0
  402. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  403. package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
  404. package/dist/api/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.d.ts +14 -0
  405. package/dist/api/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.js +5 -0
  406. package/dist/api/resources/insuranceCards/resources/v2/types/index.d.ts +1 -0
  407. package/dist/api/resources/insuranceCards/resources/v2/types/index.js +1 -0
  408. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  409. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  410. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  411. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  412. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  413. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  414. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +2 -1
  415. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.js +1 -0
  416. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  417. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  418. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  419. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  420. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  421. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  422. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  423. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +1 -1
  424. package/{api/resources/preEncounter/resources/lists/resources/v1 → dist/api/resources/preEncounter/resources/common}/types/FilterQueryString.d.ts +3 -3
  425. package/dist/api/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  426. package/dist/api/resources/preEncounter/resources/common/types/index.js +1 -0
  427. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
  428. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +42 -1
  429. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +158 -5
  430. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/createRecommendation.d.ts +22 -0
  431. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/createRecommendation.js +57 -0
  432. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +4 -0
  433. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +8 -1
  434. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/payerSearch.d.ts +22 -0
  435. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/payerSearch.js +57 -0
  436. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.d.ts +22 -0
  437. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.js +57 -0
  438. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/BatchEligibilityPollRequest.d.ts +11 -0
  439. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/BatchEligibilityPollRequest.js +5 -0
  440. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/EligibilityRecommendationRequest.d.ts +11 -0
  441. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/EligibilityRecommendationRequest.js +5 -0
  442. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/PayerSearchRequest.d.ts +13 -0
  443. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/PayerSearchRequest.js +5 -0
  444. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/index.d.ts +3 -0
  445. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/index.js +2 -0
  446. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.d.ts +9 -0
  447. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.js +5 -0
  448. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.d.ts +13 -0
  449. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.js +5 -0
  450. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.d.ts +18 -0
  451. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.js +5 -0
  452. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.d.ts +13 -0
  453. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.js +5 -0
  454. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.d.ts +10 -0
  455. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.js +5 -0
  456. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +11 -0
  457. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.js +5 -0
  458. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.d.ts +8 -0
  459. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.js +5 -0
  460. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.d.ts +9 -0
  461. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.js +5 -0
  462. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.d.ts +15 -0
  463. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.js +5 -0
  464. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.d.ts +8 -0
  465. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.js +5 -0
  466. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +10 -0
  467. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +10 -0
  468. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  469. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  470. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +1 -1
  471. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +1 -1
  472. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
  473. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +0 -1
  474. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/index.js +0 -1
  475. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  476. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  477. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +2 -0
  478. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  479. package/dist/api/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.d.ts +2 -0
  480. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  481. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  482. package/dist/api/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.d.ts +14 -0
  483. package/dist/api/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.js +5 -0
  484. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +3 -0
  485. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
  486. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +52 -0
  487. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +5 -0
  488. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +2 -0
  489. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -0
  490. package/dist/api/resources/serviceLines/resources/v2/types/TestResultOptional.d.ts +8 -0
  491. package/dist/api/resources/serviceLines/resources/v2/types/TestResultOptional.js +5 -0
  492. package/dist/api/resources/serviceLines/resources/v2/types/index.d.ts +3 -0
  493. package/dist/api/resources/serviceLines/resources/v2/types/index.js +3 -0
  494. package/dist/api/resources/superbills/resources/v1/client/Client.js +1 -1
  495. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  496. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  497. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +2 -1
  498. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +1 -0
  499. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
  500. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  501. package/dist/api/resources/x12/resources/v1/types/PatientDischargeStatusCode.d.ts +166 -0
  502. package/dist/api/resources/x12/resources/v1/types/PatientDischargeStatusCode.js +48 -0
  503. package/dist/api/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.d.ts +50 -0
  504. package/dist/api/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.js +19 -0
  505. package/dist/api/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.d.ts +30 -0
  506. package/dist/api/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.js +14 -0
  507. package/dist/api/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +14 -0
  508. package/dist/api/resources/x12/resources/v1/types/TypeOfBillComposite.js +5 -0
  509. package/dist/api/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.d.ts +114 -0
  510. package/dist/api/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.js +35 -0
  511. package/dist/api/resources/x12/resources/v1/types/TypeOfCareCode.d.ts +42 -0
  512. package/dist/api/resources/x12/resources/v1/types/TypeOfCareCode.js +17 -0
  513. package/dist/api/resources/x12/resources/v1/types/TypeOfFacilityCode.d.ts +34 -0
  514. package/dist/api/resources/x12/resources/v1/types/TypeOfFacilityCode.js +15 -0
  515. package/dist/api/resources/x12/resources/v1/types/index.d.ts +7 -0
  516. package/dist/api/resources/x12/resources/v1/types/index.js +7 -0
  517. package/dist/api/resources/yesNoIndicator/index.d.ts +1 -0
  518. package/dist/api/resources/yesNoIndicator/index.js +17 -0
  519. package/dist/api/resources/yesNoIndicator/types/YesNoIndicator.d.ts +10 -0
  520. package/{api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js → dist/api/resources/yesNoIndicator/types/YesNoIndicator.js} +6 -5
  521. package/dist/api/resources/yesNoIndicator/types/index.d.ts +1 -0
  522. package/dist/api/resources/yesNoIndicator/types/index.js +17 -0
  523. package/dist/core/auth/OAuthTokenProvider.d.ts +2 -2
  524. package/dist/serialization/resources/auth/resources/{v2 → default}/client/getToken.d.ts +7 -2
  525. package/dist/serialization/resources/auth/resources/{v2 → default}/client/getToken.js +7 -1
  526. package/{serialization/resources/auth/resources/v2 → dist/serialization/resources/auth/resources/default}/client/requests/AuthGetTokenRequest.d.ts +1 -1
  527. package/{serialization/resources/auth/resources/v2 → dist/serialization/resources/auth/resources/default}/types/AuthGetTokenResponse.d.ts +1 -1
  528. package/dist/serialization/resources/auth/resources/default/types/InvalidContentTypeErrorType.d.ts +12 -0
  529. package/dist/serialization/resources/auth/resources/default/types/InvalidContentTypeErrorType.js +43 -0
  530. package/{serialization/resources/auth/resources/v2 → dist/serialization/resources/auth/resources/default}/types/TooManyRequestsErrorType.d.ts +1 -1
  531. package/{serialization/resources/auth/resources/v2 → dist/serialization/resources/auth/resources/default}/types/index.d.ts +1 -0
  532. package/dist/{api/resources/auth/resources/v2 → serialization/resources/auth/resources/default}/types/index.js +1 -0
  533. package/dist/serialization/resources/auth/resources/index.d.ts +1 -1
  534. package/dist/serialization/resources/auth/resources/index.js +2 -2
  535. package/dist/serialization/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.d.ts +12 -0
  536. package/dist/serialization/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.js +43 -0
  537. package/dist/serialization/resources/billingNotes/resources/v2/types/index.d.ts +1 -0
  538. package/dist/serialization/resources/billingNotes/resources/v2/types/index.js +1 -0
  539. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +2 -0
  540. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.js +2 -0
  541. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +2 -0
  542. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.js +2 -0
  543. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  544. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -0
  545. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +2 -30
  546. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +2 -33
  547. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.d.ts +3 -0
  548. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js +3 -0
  549. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +1 -1
  550. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.js +1 -1
  551. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +2 -0
  552. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/index.js +41 -0
  553. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.d.ts +13 -0
  554. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.js +44 -0
  555. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -0
  556. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/index.js +5 -0
  557. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.d.ts +20 -0
  558. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.js +77 -0
  559. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/index.d.ts +1 -0
  560. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/index.js +1 -0
  561. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +2 -2
  562. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.js +2 -2
  563. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +18 -0
  564. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js +49 -0
  565. package/dist/serialization/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +15 -0
  566. package/dist/serialization/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.js +46 -0
  567. package/dist/serialization/resources/claimSubmission/resources/v1/types/index.d.ts +2 -1
  568. package/dist/serialization/resources/claimSubmission/resources/v1/types/index.js +2 -1
  569. package/dist/serialization/resources/commons/types/NextResponsibleParty.d.ts +10 -0
  570. package/dist/serialization/resources/commons/types/NextResponsibleParty.js +41 -0
  571. package/dist/serialization/resources/commons/types/PhoneNumberOptional.d.ts +14 -0
  572. package/dist/serialization/resources/commons/types/PhoneNumberOptional.js +45 -0
  573. package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  574. package/dist/serialization/resources/commons/types/ProcedureModifier.js +2 -0
  575. package/dist/serialization/resources/commons/types/StreetAddressLongZipOptional.d.ts +13 -0
  576. package/dist/serialization/resources/commons/types/StreetAddressLongZipOptional.js +46 -0
  577. package/dist/serialization/resources/commons/types/index.d.ts +3 -0
  578. package/dist/serialization/resources/commons/types/index.js +3 -0
  579. package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.d.ts +14 -0
  580. package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.js +45 -0
  581. package/dist/serialization/resources/customSchemas/resources/v1/types/index.d.ts +1 -0
  582. package/dist/serialization/resources/customSchemas/resources/v1/types/index.js +1 -0
  583. package/dist/serialization/resources/diagnoses/client/delete.d.ts +6 -1
  584. package/dist/serialization/resources/diagnoses/client/delete.js +6 -0
  585. package/dist/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +2 -0
  586. package/dist/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.js +2 -0
  587. package/dist/serialization/resources/diagnoses/types/DiagnosisCreate.d.ts +2 -0
  588. package/dist/serialization/resources/diagnoses/types/DiagnosisCreate.js +2 -0
  589. package/dist/serialization/resources/diagnoses/types/DiagnosisCreateOptional.d.ts +17 -0
  590. package/dist/serialization/resources/diagnoses/types/DiagnosisCreateOptional.js +48 -0
  591. package/dist/serialization/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.d.ts +16 -0
  592. package/dist/serialization/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.js +47 -0
  593. package/dist/serialization/resources/diagnoses/types/index.d.ts +2 -0
  594. package/dist/serialization/resources/diagnoses/types/index.js +2 -0
  595. package/dist/serialization/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.d.ts +16 -0
  596. package/dist/serialization/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.js +49 -0
  597. package/dist/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
  598. package/dist/serialization/resources/encounterProviders/resources/v2/types/index.js +1 -0
  599. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +16 -0
  600. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +16 -0
  601. package/dist/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +16 -0
  602. package/dist/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +47 -0
  603. package/dist/serialization/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.d.ts +15 -0
  604. package/dist/serialization/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.js +46 -0
  605. package/dist/serialization/resources/encounters/resources/v4/types/ClinicalNoteOptional.d.ts +16 -0
  606. package/dist/serialization/resources/encounters/resources/v4/types/ClinicalNoteOptional.js +47 -0
  607. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +22 -0
  608. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +22 -0
  609. package/dist/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +56 -0
  610. package/dist/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.js +89 -0
  611. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -16
  612. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +0 -16
  613. package/dist/serialization/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.d.ts +10 -0
  614. package/dist/serialization/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.js +41 -0
  615. package/dist/serialization/resources/encounters/resources/v4/types/EpsdtReferralOptional.d.ts +15 -0
  616. package/dist/serialization/resources/encounters/resources/v4/types/EpsdtReferralOptional.js +46 -0
  617. package/dist/serialization/resources/encounters/resources/v4/types/IntakeQuestionOptional.d.ts +16 -0
  618. package/dist/serialization/resources/encounters/resources/v4/types/IntakeQuestionOptional.js +47 -0
  619. package/dist/serialization/resources/encounters/resources/v4/types/InterventionOptional.d.ts +19 -0
  620. package/dist/serialization/resources/encounters/resources/v4/types/InterventionOptional.js +50 -0
  621. package/dist/serialization/resources/encounters/resources/v4/types/LabOptional.d.ts +15 -0
  622. package/dist/serialization/resources/encounters/resources/v4/types/LabOptional.js +46 -0
  623. package/dist/serialization/resources/encounters/resources/v4/types/MedicationOptional.d.ts +18 -0
  624. package/dist/serialization/resources/encounters/resources/v4/types/MedicationOptional.js +49 -0
  625. package/dist/serialization/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.d.ts +15 -0
  626. package/dist/serialization/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.js +46 -0
  627. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +11 -0
  628. package/dist/serialization/resources/encounters/resources/v4/types/index.js +11 -0
  629. package/dist/serialization/resources/exports/resources/v3/client/getExports.d.ts +9 -1
  630. package/dist/serialization/resources/exports/resources/v3/client/getExports.js +10 -0
  631. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +23 -0
  632. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.js +54 -0
  633. package/dist/serialization/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  634. package/dist/serialization/resources/guarantor/resources/v1/types/index.js +1 -0
  635. package/dist/serialization/resources/index.d.ts +2 -0
  636. package/dist/serialization/resources/index.js +3 -1
  637. package/dist/serialization/resources/individual/types/IndividualBaseOptional.d.ts +15 -0
  638. package/dist/serialization/resources/individual/types/IndividualBaseOptional.js +46 -0
  639. package/dist/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.d.ts +16 -0
  640. package/dist/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.js +47 -0
  641. package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +4 -4
  642. package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +4 -4
  643. package/dist/serialization/resources/individual/types/SubscriberBaseOptional.d.ts +17 -0
  644. package/dist/serialization/resources/individual/types/SubscriberBaseOptional.js +50 -0
  645. package/dist/serialization/resources/individual/types/SubscriberCreateOptional.d.ts +14 -0
  646. package/dist/serialization/resources/individual/types/SubscriberCreateOptional.js +47 -0
  647. package/dist/serialization/resources/individual/types/index.d.ts +4 -0
  648. package/dist/serialization/resources/individual/types/index.js +4 -0
  649. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
  650. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +1 -0
  651. package/dist/serialization/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.d.ts +21 -0
  652. package/dist/serialization/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.js +54 -0
  653. package/dist/serialization/resources/insuranceCards/resources/v2/types/index.d.ts +1 -0
  654. package/dist/serialization/resources/insuranceCards/resources/v2/types/index.js +1 -0
  655. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  656. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +1 -0
  657. package/dist/serialization/resources/preEncounter/resources/common/types/FilterQueryString.d.ts +10 -0
  658. package/dist/serialization/resources/preEncounter/resources/{lists/resources/v1 → common}/types/FilterQueryString.js +3 -3
  659. package/dist/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  660. package/dist/serialization/resources/preEncounter/resources/common/types/index.js +1 -0
  661. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +1 -0
  662. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +2 -1
  663. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.d.ts +11 -0
  664. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.js +42 -0
  665. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.d.ts +12 -0
  666. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.js +43 -0
  667. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.d.ts +17 -0
  668. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.js +50 -0
  669. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.d.ts +20 -0
  670. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.js +51 -0
  671. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.d.ts +18 -0
  672. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.js +51 -0
  673. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.d.ts +13 -0
  674. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.js +44 -0
  675. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +14 -0
  676. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.js +45 -0
  677. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.d.ts +15 -0
  678. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.js +48 -0
  679. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.d.ts +16 -0
  680. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.js +47 -0
  681. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.d.ts +21 -0
  682. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.js +52 -0
  683. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.d.ts +14 -0
  684. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.js +45 -0
  685. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +10 -0
  686. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +10 -0
  687. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
  688. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.js +2 -0
  689. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +0 -1
  690. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.js +0 -1
  691. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +1 -0
  692. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.js +1 -0
  693. package/dist/serialization/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.d.ts +2 -0
  694. package/dist/serialization/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.js +2 -0
  695. package/dist/serialization/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.d.ts +21 -0
  696. package/dist/serialization/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.js +52 -0
  697. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -0
  698. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -0
  699. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -0
  700. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +1 -0
  701. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +34 -0
  702. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +65 -0
  703. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +1 -0
  704. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +1 -0
  705. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -0
  706. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +1 -0
  707. package/dist/serialization/resources/serviceLines/resources/v2/types/TestResultOptional.d.ts +14 -0
  708. package/dist/serialization/resources/serviceLines/resources/v2/types/TestResultOptional.js +45 -0
  709. package/dist/serialization/resources/serviceLines/resources/v2/types/index.d.ts +3 -0
  710. package/dist/serialization/resources/serviceLines/resources/v2/types/index.js +3 -0
  711. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +1 -1
  712. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +1 -0
  713. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
  714. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  715. package/dist/serialization/resources/x12/resources/v1/types/PatientDischargeStatusCode.d.ts +10 -0
  716. package/dist/serialization/resources/x12/resources/v1/types/PatientDischargeStatusCode.js +82 -0
  717. package/dist/serialization/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.d.ts +10 -0
  718. package/dist/serialization/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.js +41 -0
  719. package/dist/serialization/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.d.ts +10 -0
  720. package/dist/serialization/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.js +41 -0
  721. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +18 -0
  722. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.js +49 -0
  723. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.d.ts +10 -0
  724. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.js +69 -0
  725. package/dist/serialization/resources/x12/resources/v1/types/TypeOfCareCode.d.ts +10 -0
  726. package/dist/serialization/resources/x12/resources/v1/types/TypeOfCareCode.js +41 -0
  727. package/dist/serialization/resources/x12/resources/v1/types/TypeOfFacilityCode.d.ts +10 -0
  728. package/dist/serialization/resources/{claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js → x12/resources/v1/types/TypeOfFacilityCode.js} +2 -2
  729. package/dist/serialization/resources/x12/resources/v1/types/index.d.ts +7 -0
  730. package/dist/serialization/resources/x12/resources/v1/types/index.js +7 -0
  731. package/dist/serialization/resources/yesNoIndicator/index.d.ts +1 -0
  732. package/dist/serialization/resources/yesNoIndicator/index.js +17 -0
  733. package/dist/serialization/resources/yesNoIndicator/types/YesNoIndicator.d.ts +10 -0
  734. package/dist/serialization/resources/yesNoIndicator/types/YesNoIndicator.js +41 -0
  735. package/dist/serialization/resources/yesNoIndicator/types/index.d.ts +1 -0
  736. package/dist/serialization/resources/yesNoIndicator/types/index.js +17 -0
  737. package/dist/version.d.ts +1 -1
  738. package/dist/version.js +1 -1
  739. package/package.json +1 -1
  740. package/reference.md +290 -10
  741. package/serialization/resources/auth/resources/{v2 → default}/client/getToken.d.ts +7 -2
  742. package/serialization/resources/auth/resources/{v2 → default}/client/getToken.js +7 -1
  743. package/{dist/serialization/resources/auth/resources/v2 → serialization/resources/auth/resources/default}/client/requests/AuthGetTokenRequest.d.ts +1 -1
  744. package/{dist/serialization/resources/auth/resources/v2 → serialization/resources/auth/resources/default}/types/AuthGetTokenResponse.d.ts +1 -1
  745. package/serialization/resources/auth/resources/default/types/InvalidContentTypeErrorType.d.ts +12 -0
  746. package/serialization/resources/auth/resources/default/types/InvalidContentTypeErrorType.js +43 -0
  747. package/{dist/serialization/resources/auth/resources/v2 → serialization/resources/auth/resources/default}/types/TooManyRequestsErrorType.d.ts +1 -1
  748. package/{api/resources/auth/resources/v2 → serialization/resources/auth/resources/default}/types/index.d.ts +1 -0
  749. package/serialization/resources/auth/resources/{v2 → default}/types/index.js +1 -0
  750. package/serialization/resources/auth/resources/index.d.ts +1 -1
  751. package/serialization/resources/auth/resources/index.js +2 -2
  752. package/serialization/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.d.ts +12 -0
  753. package/serialization/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.js +43 -0
  754. package/serialization/resources/billingNotes/resources/v2/types/index.d.ts +1 -0
  755. package/serialization/resources/billingNotes/resources/v2/types/index.js +1 -0
  756. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +2 -0
  757. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.js +2 -0
  758. package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +2 -0
  759. package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.js +2 -0
  760. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  761. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -0
  762. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +2 -30
  763. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +2 -33
  764. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.d.ts +3 -0
  765. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js +3 -0
  766. package/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +1 -1
  767. package/serialization/resources/chargeCapture/resources/v1/types/index.js +1 -1
  768. package/serialization/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +2 -0
  769. package/serialization/resources/chargeCaptureBundles/resources/v1/client/index.js +41 -0
  770. package/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.d.ts +13 -0
  771. package/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.js +44 -0
  772. package/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -0
  773. package/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/index.js +5 -0
  774. package/serialization/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.d.ts +20 -0
  775. package/serialization/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.js +77 -0
  776. package/serialization/resources/chargeCaptureBundles/resources/v1/index.d.ts +1 -0
  777. package/serialization/resources/chargeCaptureBundles/resources/v1/index.js +1 -0
  778. package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +2 -2
  779. package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.js +2 -2
  780. package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +18 -0
  781. package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js +49 -0
  782. package/serialization/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +15 -0
  783. package/serialization/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.js +46 -0
  784. package/serialization/resources/claimSubmission/resources/v1/types/index.d.ts +2 -1
  785. package/serialization/resources/claimSubmission/resources/v1/types/index.js +2 -1
  786. package/serialization/resources/commons/types/NextResponsibleParty.d.ts +10 -0
  787. package/serialization/resources/commons/types/NextResponsibleParty.js +41 -0
  788. package/serialization/resources/commons/types/PhoneNumberOptional.d.ts +14 -0
  789. package/serialization/resources/commons/types/PhoneNumberOptional.js +45 -0
  790. package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  791. package/serialization/resources/commons/types/ProcedureModifier.js +2 -0
  792. package/serialization/resources/commons/types/StreetAddressLongZipOptional.d.ts +13 -0
  793. package/serialization/resources/commons/types/StreetAddressLongZipOptional.js +46 -0
  794. package/serialization/resources/commons/types/index.d.ts +3 -0
  795. package/serialization/resources/commons/types/index.js +3 -0
  796. package/serialization/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.d.ts +14 -0
  797. package/serialization/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.js +45 -0
  798. package/serialization/resources/customSchemas/resources/v1/types/index.d.ts +1 -0
  799. package/serialization/resources/customSchemas/resources/v1/types/index.js +1 -0
  800. package/serialization/resources/diagnoses/client/delete.d.ts +6 -1
  801. package/serialization/resources/diagnoses/client/delete.js +6 -0
  802. package/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +2 -0
  803. package/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.js +2 -0
  804. package/serialization/resources/diagnoses/types/DiagnosisCreate.d.ts +2 -0
  805. package/serialization/resources/diagnoses/types/DiagnosisCreate.js +2 -0
  806. package/serialization/resources/diagnoses/types/DiagnosisCreateOptional.d.ts +17 -0
  807. package/serialization/resources/diagnoses/types/DiagnosisCreateOptional.js +48 -0
  808. package/serialization/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.d.ts +16 -0
  809. package/serialization/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.js +47 -0
  810. package/serialization/resources/diagnoses/types/index.d.ts +2 -0
  811. package/serialization/resources/diagnoses/types/index.js +2 -0
  812. package/serialization/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.d.ts +16 -0
  813. package/serialization/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.js +49 -0
  814. package/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
  815. package/serialization/resources/encounterProviders/resources/v2/types/index.js +1 -0
  816. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +16 -0
  817. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +16 -0
  818. package/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +16 -0
  819. package/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +47 -0
  820. package/serialization/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.d.ts +15 -0
  821. package/serialization/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.js +46 -0
  822. package/serialization/resources/encounters/resources/v4/types/ClinicalNoteOptional.d.ts +16 -0
  823. package/serialization/resources/encounters/resources/v4/types/ClinicalNoteOptional.js +47 -0
  824. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +22 -0
  825. package/serialization/resources/encounters/resources/v4/types/Encounter.js +22 -0
  826. package/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +56 -0
  827. package/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.js +89 -0
  828. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -16
  829. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +0 -16
  830. package/serialization/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.d.ts +10 -0
  831. package/serialization/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.js +41 -0
  832. package/serialization/resources/encounters/resources/v4/types/EpsdtReferralOptional.d.ts +15 -0
  833. package/serialization/resources/encounters/resources/v4/types/EpsdtReferralOptional.js +46 -0
  834. package/serialization/resources/encounters/resources/v4/types/IntakeQuestionOptional.d.ts +16 -0
  835. package/serialization/resources/encounters/resources/v4/types/IntakeQuestionOptional.js +47 -0
  836. package/serialization/resources/encounters/resources/v4/types/InterventionOptional.d.ts +19 -0
  837. package/serialization/resources/encounters/resources/v4/types/InterventionOptional.js +50 -0
  838. package/serialization/resources/encounters/resources/v4/types/LabOptional.d.ts +15 -0
  839. package/serialization/resources/encounters/resources/v4/types/LabOptional.js +46 -0
  840. package/serialization/resources/encounters/resources/v4/types/MedicationOptional.d.ts +18 -0
  841. package/serialization/resources/encounters/resources/v4/types/MedicationOptional.js +49 -0
  842. package/serialization/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.d.ts +15 -0
  843. package/serialization/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.js +46 -0
  844. package/serialization/resources/encounters/resources/v4/types/index.d.ts +11 -0
  845. package/serialization/resources/encounters/resources/v4/types/index.js +11 -0
  846. package/serialization/resources/exports/resources/v3/client/getExports.d.ts +9 -1
  847. package/serialization/resources/exports/resources/v3/client/getExports.js +10 -0
  848. package/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +23 -0
  849. package/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.js +54 -0
  850. package/serialization/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  851. package/serialization/resources/guarantor/resources/v1/types/index.js +1 -0
  852. package/serialization/resources/index.d.ts +2 -0
  853. package/serialization/resources/index.js +3 -1
  854. package/serialization/resources/individual/types/IndividualBaseOptional.d.ts +15 -0
  855. package/serialization/resources/individual/types/IndividualBaseOptional.js +46 -0
  856. package/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.d.ts +16 -0
  857. package/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.js +47 -0
  858. package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +4 -4
  859. package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +4 -4
  860. package/serialization/resources/individual/types/SubscriberBaseOptional.d.ts +17 -0
  861. package/serialization/resources/individual/types/SubscriberBaseOptional.js +50 -0
  862. package/serialization/resources/individual/types/SubscriberCreateOptional.d.ts +14 -0
  863. package/serialization/resources/individual/types/SubscriberCreateOptional.js +47 -0
  864. package/serialization/resources/individual/types/index.d.ts +4 -0
  865. package/serialization/resources/individual/types/index.js +4 -0
  866. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
  867. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +1 -0
  868. package/serialization/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.d.ts +21 -0
  869. package/serialization/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.js +54 -0
  870. package/serialization/resources/insuranceCards/resources/v2/types/index.d.ts +1 -0
  871. package/serialization/resources/insuranceCards/resources/v2/types/index.js +1 -0
  872. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  873. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +1 -0
  874. package/serialization/resources/preEncounter/resources/common/types/FilterQueryString.d.ts +10 -0
  875. package/serialization/resources/preEncounter/resources/{lists/resources/v1 → common}/types/FilterQueryString.js +3 -3
  876. package/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  877. package/serialization/resources/preEncounter/resources/common/types/index.js +1 -0
  878. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +1 -0
  879. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +2 -1
  880. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.d.ts +11 -0
  881. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.js +42 -0
  882. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.d.ts +12 -0
  883. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.js +43 -0
  884. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.d.ts +17 -0
  885. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.js +50 -0
  886. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.d.ts +20 -0
  887. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.js +51 -0
  888. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.d.ts +18 -0
  889. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.js +51 -0
  890. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.d.ts +13 -0
  891. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.js +44 -0
  892. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +14 -0
  893. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.js +45 -0
  894. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.d.ts +15 -0
  895. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.js +48 -0
  896. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.d.ts +16 -0
  897. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.js +47 -0
  898. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.d.ts +21 -0
  899. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.js +52 -0
  900. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.d.ts +14 -0
  901. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.js +45 -0
  902. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +10 -0
  903. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +10 -0
  904. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
  905. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.js +2 -0
  906. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +0 -1
  907. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.js +0 -1
  908. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +1 -0
  909. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.js +1 -0
  910. package/serialization/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.d.ts +2 -0
  911. package/serialization/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.js +2 -0
  912. package/serialization/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.d.ts +21 -0
  913. package/serialization/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.js +52 -0
  914. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -0
  915. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -0
  916. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -0
  917. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +1 -0
  918. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +34 -0
  919. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +65 -0
  920. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +1 -0
  921. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +1 -0
  922. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -0
  923. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +1 -0
  924. package/serialization/resources/serviceLines/resources/v2/types/TestResultOptional.d.ts +14 -0
  925. package/serialization/resources/serviceLines/resources/v2/types/TestResultOptional.js +45 -0
  926. package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +3 -0
  927. package/serialization/resources/serviceLines/resources/v2/types/index.js +3 -0
  928. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +1 -1
  929. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +1 -0
  930. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
  931. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  932. package/serialization/resources/x12/resources/v1/types/PatientDischargeStatusCode.d.ts +10 -0
  933. package/serialization/resources/x12/resources/v1/types/PatientDischargeStatusCode.js +82 -0
  934. package/serialization/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.d.ts +10 -0
  935. package/serialization/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.js +41 -0
  936. package/serialization/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.d.ts +10 -0
  937. package/serialization/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.js +41 -0
  938. package/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +18 -0
  939. package/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.js +49 -0
  940. package/serialization/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.d.ts +10 -0
  941. package/serialization/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.js +69 -0
  942. package/serialization/resources/x12/resources/v1/types/TypeOfCareCode.d.ts +10 -0
  943. package/serialization/resources/x12/resources/v1/types/TypeOfCareCode.js +41 -0
  944. package/serialization/resources/x12/resources/v1/types/TypeOfFacilityCode.d.ts +10 -0
  945. package/serialization/resources/{claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js → x12/resources/v1/types/TypeOfFacilityCode.js} +2 -2
  946. package/serialization/resources/x12/resources/v1/types/index.d.ts +7 -0
  947. package/serialization/resources/x12/resources/v1/types/index.js +7 -0
  948. package/serialization/resources/yesNoIndicator/index.d.ts +1 -0
  949. package/serialization/resources/yesNoIndicator/index.js +17 -0
  950. package/serialization/resources/yesNoIndicator/types/YesNoIndicator.d.ts +10 -0
  951. package/serialization/resources/yesNoIndicator/types/YesNoIndicator.js +41 -0
  952. package/serialization/resources/yesNoIndicator/types/index.d.ts +1 -0
  953. package/serialization/resources/yesNoIndicator/types/index.js +17 -0
  954. package/version.d.ts +1 -1
  955. package/version.js +1 -1
  956. package/api/resources/auth/resources/v2/client/getToken.d.ts +0 -28
  957. package/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +0 -9
  958. package/dist/api/resources/auth/resources/v2/client/getToken.d.ts +0 -28
  959. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +0 -9
  960. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +0 -10
  961. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/FilterQueryString.d.ts +0 -10
  962. package/serialization/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +0 -10
  963. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/FilterQueryString.d.ts +0 -10
  964. /package/api/resources/auth/resources/{v2 → default}/client/index.d.ts +0 -0
  965. /package/api/resources/auth/resources/{v2 → default}/client/index.js +0 -0
  966. /package/api/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.d.ts +0 -0
  967. /package/api/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.js +0 -0
  968. /package/api/resources/auth/resources/{v2 → default}/client/requests/index.d.ts +0 -0
  969. /package/api/resources/auth/resources/{v2 → default}/client/requests/index.js +0 -0
  970. /package/api/resources/auth/resources/{v2 → default}/index.d.ts +0 -0
  971. /package/api/resources/auth/resources/{v2 → default}/index.js +0 -0
  972. /package/api/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.d.ts +0 -0
  973. /package/api/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.js +0 -0
  974. /package/api/resources/auth/resources/{v2/types/TooManyRequestsErrorType.js → default/types/InvalidContentTypeErrorType.js} +0 -0
  975. /package/api/resources/auth/resources/{v2 → default}/types/TooManyRequestsErrorType.d.ts +0 -0
  976. /package/{dist/api/resources/auth/resources/v2 → api/resources/auth/resources/default}/types/TooManyRequestsErrorType.js +0 -0
  977. /package/{dist/api/resources/auth/resources/v2/client/requests/AuthGetTokenRequest.js → api/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.js} +0 -0
  978. /package/{dist/api/resources/auth/resources/v2/types/AuthGetTokenResponse.js → api/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.js} +0 -0
  979. /package/api/resources/preEncounter/resources/{lists/resources/v1 → common}/types/FilterQueryString.js +0 -0
  980. /package/{dist/api/resources/auth/resources/v2 → api/resources/preEncounter/resources/eligibilityChecks/resources/v1}/client/requests/index.js +0 -0
  981. /package/dist/api/resources/auth/resources/{v2 → default}/client/index.d.ts +0 -0
  982. /package/dist/api/resources/auth/resources/{v2 → default}/client/index.js +0 -0
  983. /package/dist/api/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.d.ts +0 -0
  984. /package/dist/api/resources/auth/resources/{v2 → default}/client/requests/index.d.ts +0 -0
  985. /package/dist/api/resources/auth/resources/{v2 → default}/index.d.ts +0 -0
  986. /package/dist/api/resources/auth/resources/{v2 → default}/index.js +0 -0
  987. /package/dist/api/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.d.ts +0 -0
  988. /package/dist/api/resources/auth/resources/{v2 → default}/types/TooManyRequestsErrorType.d.ts +0 -0
  989. /package/dist/api/resources/preEncounter/resources/{lists/resources/v1 → common}/types/FilterQueryString.js +0 -0
  990. /package/dist/serialization/resources/auth/resources/{v2 → default}/client/index.d.ts +0 -0
  991. /package/dist/serialization/resources/auth/resources/{v2 → default}/client/index.js +0 -0
  992. /package/dist/serialization/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.js +0 -0
  993. /package/dist/serialization/resources/auth/resources/{v2 → default}/client/requests/index.d.ts +0 -0
  994. /package/dist/serialization/resources/auth/resources/{v2 → default}/client/requests/index.js +0 -0
  995. /package/dist/serialization/resources/auth/resources/{v2 → default}/index.d.ts +0 -0
  996. /package/dist/serialization/resources/auth/resources/{v2 → default}/index.js +0 -0
  997. /package/dist/serialization/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.js +0 -0
  998. /package/dist/serialization/resources/auth/resources/{v2 → default}/types/TooManyRequestsErrorType.js +0 -0
  999. /package/serialization/resources/auth/resources/{v2 → default}/client/index.d.ts +0 -0
  1000. /package/serialization/resources/auth/resources/{v2 → default}/client/index.js +0 -0
  1001. /package/serialization/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.js +0 -0
  1002. /package/serialization/resources/auth/resources/{v2 → default}/client/requests/index.d.ts +0 -0
  1003. /package/serialization/resources/auth/resources/{v2 → default}/client/requests/index.js +0 -0
  1004. /package/serialization/resources/auth/resources/{v2 → default}/index.d.ts +0 -0
  1005. /package/serialization/resources/auth/resources/{v2 → default}/index.js +0 -0
  1006. /package/serialization/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.js +0 -0
  1007. /package/serialization/resources/auth/resources/{v2 → default}/types/TooManyRequestsErrorType.js +0 -0
package/Client.js CHANGED
@@ -47,7 +47,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
47
47
  Object.defineProperty(exports, "__esModule", { value: true });
48
48
  exports.CandidApiClient = void 0;
49
49
  const core = __importStar(require("./core"));
50
- const Client_1 = require("./api/resources/auth/resources/v2/client/Client");
50
+ const Client_1 = require("./api/resources/auth/resources/default/client/Client");
51
51
  const Client_2 = require("./api/resources/auth/client/Client");
52
52
  const Client_3 = require("./api/resources/billingNotes/client/Client");
53
53
  const Client_4 = require("./api/resources/chargeCaptureBundles/client/Client");
@@ -91,7 +91,7 @@ class CandidApiClient {
91
91
  this._oauthTokenProvider = new core.OAuthTokenProvider({
92
92
  clientId: this._options.clientId,
93
93
  clientSecret: this._options.clientSecret,
94
- authClient: new Client_1.V2({
94
+ authClient: new Client_1.Default({
95
95
  environment: this._options.environment,
96
96
  }),
97
97
  });
package/README.md CHANGED
@@ -13,7 +13,7 @@ npm i -s candidhealth
13
13
 
14
14
  ## Reference
15
15
 
16
- A full reference for this library is available [here](./reference.md).
16
+ A full reference for this library is available [here](https://github.com/candidhealth/candid-node/blob/HEAD/./reference.md).
17
17
 
18
18
  ## Usage
19
19
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as environments from "../../../../environments";
5
5
  import * as core from "../../../../core";
6
- import { V2 } from "../resources/v2/client/Client";
6
+ import { Default } from "../resources/default/client/Client";
7
7
  export declare namespace Auth {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
@@ -24,7 +24,7 @@ export declare namespace Auth {
24
24
  }
25
25
  export declare class Auth {
26
26
  protected readonly _options: Auth.Options;
27
- protected _v2: V2 | undefined;
27
+ protected _default: Default | undefined;
28
28
  constructor(_options?: Auth.Options);
29
- get v2(): V2;
29
+ get default(): Default;
30
30
  }
@@ -4,14 +4,14 @@
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Auth = void 0;
7
- const Client_1 = require("../resources/v2/client/Client");
7
+ const Client_1 = require("../resources/default/client/Client");
8
8
  class Auth {
9
9
  constructor(_options = {}) {
10
10
  this._options = _options;
11
11
  }
12
- get v2() {
12
+ get default() {
13
13
  var _a;
14
- return ((_a = this._v2) !== null && _a !== void 0 ? _a : (this._v2 = new Client_1.V2(this._options)));
14
+ return ((_a = this._default) !== null && _a !== void 0 ? _a : (this._default = new Client_1.Default(this._options)));
15
15
  }
16
16
  }
17
17
  exports.Auth = Auth;
@@ -4,7 +4,7 @@
4
4
  import * as environments from "../../../../../../environments";
5
5
  import * as core from "../../../../../../core";
6
6
  import * as CandidApi from "../../../../../index";
7
- export declare namespace V2 {
7
+ export declare namespace Default {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
10
10
  /** Specify a custom URL to connect the client to. */
@@ -22,9 +22,9 @@ export declare namespace V2 {
22
22
  headers?: Record<string, string>;
23
23
  }
24
24
  }
25
- export declare class V2 {
26
- protected readonly _options: V2.Options;
27
- constructor(_options?: V2.Options);
25
+ export declare class Default {
26
+ protected readonly _options: Default.Options;
27
+ constructor(_options?: Default.Options);
28
28
  /**
29
29
  * <Callout intent="info">
30
30
  * Candid Health SDKs automatically handle authentication workflows after configuring them with the `client_id` and
@@ -32,7 +32,21 @@ export declare class V2 {
32
32
  * </Callout>
33
33
  *
34
34
  * Candid Health utilizes the [OAuth 2.0 bearer token authentication scheme](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication) in our auth flow. You obtain the bearer token for all
35
- * subsequent API requests via the `/auth/token` endpoint defined below, which requires you to provide your `client_id` and `client_secret`. Your `client_id` and `client_secret` can be [generated](https://support.joincandidhealth.com/hc/en-us/articles/23065219476244--Generating-Candid-API-Keys) from the "Users & Credentials" tab by your org admin.
35
+ * subsequent API requests via the `/auth/v2/token` endpoint defined below, which requires you to provide your `client_id` and `client_secret`. Your `client_id` and `client_secret` can be [generated](https://support.joincandidhealth.com/hc/en-us/articles/23065219476244--Generating-Candid-API-Keys) from the "Users & Credentials" tab by your org admin.
36
+ *
37
+ * The `/auth/v2/token` endpoint accepts both `Content-Type: application/json` and `Content-Type: application/x-www-form-urlencoded`. The request body should contain the `client_id` and `client_secret` as follows:
38
+ *
39
+ * ```json
40
+ * {
41
+ * "client_id": "YOUR_CLIENT_ID",
42
+ * "client_secret": "YOUR_CLIENT_SECRET"
43
+ * }
44
+ * ```
45
+ * or as URL-encoded form data:
46
+ *
47
+ * ```
48
+ * client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET
49
+ * ```
36
50
  *
37
51
  * The bearer token is a signed [JWT](https://jwt.io/). The public key for the JWT can be found [here](https://candidhealth.auth0.com/pem) for any verification workflows.
38
52
  *
@@ -44,15 +58,15 @@ export declare class V2 {
44
58
  * requests; if the client attempts to generate a token too often, it will be rate-limited and will receive an `HTTP 429 Too Many Requests` error.
45
59
  * </Callout>
46
60
  *
47
- * @param {CandidApi.auth.v2.AuthGetTokenRequest} request
48
- * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
61
+ * @param {CandidApi.auth.default_.AuthGetTokenRequest} request
62
+ * @param {Default.RequestOptions} requestOptions - Request-specific configuration.
49
63
  *
50
64
  * @example
51
- * await client.auth.v2.getToken({
65
+ * await client.auth.default.getToken({
52
66
  * clientId: "YOUR_CLIENT_ID",
53
67
  * clientSecret: "YOUR_CLIENT_SECRET"
54
68
  * })
55
69
  */
56
- getToken(request: CandidApi.auth.v2.AuthGetTokenRequest, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<CandidApi.auth.v2.AuthGetTokenResponse, CandidApi.auth.v2.getToken.Error>>;
70
+ getToken(request: CandidApi.auth.default_.AuthGetTokenRequest, requestOptions?: Default.RequestOptions): Promise<core.APIResponse<CandidApi.auth.default_.AuthGetTokenResponse, CandidApi.auth.default_.getToken.Error>>;
57
71
  protected _getAuthorizationHeader(): Promise<string | undefined>;
58
72
  }
@@ -48,13 +48,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
48
48
  return (mod && mod.__esModule) ? mod : { "default": mod };
49
49
  };
50
50
  Object.defineProperty(exports, "__esModule", { value: true });
51
- exports.V2 = void 0;
51
+ exports.Default = void 0;
52
52
  const environments = __importStar(require("../../../../../../environments"));
53
53
  const core = __importStar(require("../../../../../../core"));
54
54
  const CandidApi = __importStar(require("../../../../../index"));
55
55
  const serializers = __importStar(require("../../../../../../serialization/index"));
56
56
  const url_join_1 = __importDefault(require("url-join"));
57
- class V2 {
57
+ class Default {
58
58
  constructor(_options = {}) {
59
59
  this._options = _options;
60
60
  }
@@ -65,7 +65,21 @@ class V2 {
65
65
  * </Callout>
66
66
  *
67
67
  * Candid Health utilizes the [OAuth 2.0 bearer token authentication scheme](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication) in our auth flow. You obtain the bearer token for all
68
- * subsequent API requests via the `/auth/token` endpoint defined below, which requires you to provide your `client_id` and `client_secret`. Your `client_id` and `client_secret` can be [generated](https://support.joincandidhealth.com/hc/en-us/articles/23065219476244--Generating-Candid-API-Keys) from the "Users & Credentials" tab by your org admin.
68
+ * subsequent API requests via the `/auth/v2/token` endpoint defined below, which requires you to provide your `client_id` and `client_secret`. Your `client_id` and `client_secret` can be [generated](https://support.joincandidhealth.com/hc/en-us/articles/23065219476244--Generating-Candid-API-Keys) from the "Users & Credentials" tab by your org admin.
69
+ *
70
+ * The `/auth/v2/token` endpoint accepts both `Content-Type: application/json` and `Content-Type: application/x-www-form-urlencoded`. The request body should contain the `client_id` and `client_secret` as follows:
71
+ *
72
+ * ```json
73
+ * {
74
+ * "client_id": "YOUR_CLIENT_ID",
75
+ * "client_secret": "YOUR_CLIENT_SECRET"
76
+ * }
77
+ * ```
78
+ * or as URL-encoded form data:
79
+ *
80
+ * ```
81
+ * client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET
82
+ * ```
69
83
  *
70
84
  * The bearer token is a signed [JWT](https://jwt.io/). The public key for the JWT can be found [here](https://candidhealth.auth0.com/pem) for any verification workflows.
71
85
  *
@@ -77,11 +91,11 @@ class V2 {
77
91
  * requests; if the client attempts to generate a token too often, it will be rate-limited and will receive an `HTTP 429 Too Many Requests` error.
78
92
  * </Callout>
79
93
  *
80
- * @param {CandidApi.auth.v2.AuthGetTokenRequest} request
81
- * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
94
+ * @param {CandidApi.auth.default_.AuthGetTokenRequest} request
95
+ * @param {Default.RequestOptions} requestOptions - Request-specific configuration.
82
96
  *
83
97
  * @example
84
- * await client.auth.v2.getToken({
98
+ * await client.auth.default.getToken({
85
99
  * clientId: "YOUR_CLIENT_ID",
86
100
  * clientSecret: "YOUR_CLIENT_SECRET"
87
101
  * })
@@ -92,10 +106,12 @@ class V2 {
92
106
  const _response = yield core.fetcher({
93
107
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/auth/v2/token"),
94
108
  method: "POST",
95
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
109
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
96
110
  contentType: "application/json",
97
111
  requestType: "json",
98
- body: serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
112
+ body: serializers.auth.default_.AuthGetTokenRequest.jsonOrThrow(request, {
113
+ unrecognizedObjectKeys: "strip",
114
+ }),
99
115
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
100
116
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
101
117
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -103,7 +119,7 @@ class V2 {
103
119
  if (_response.ok) {
104
120
  return {
105
121
  ok: true,
106
- body: serializers.auth.v2.AuthGetTokenResponse.parseOrThrow(_response.body, {
122
+ body: serializers.auth.default_.AuthGetTokenResponse.parseOrThrow(_response.body, {
107
123
  unrecognizedObjectKeys: "passthrough",
108
124
  allowUnrecognizedUnionMembers: true,
109
125
  allowUnrecognizedEnumValues: true,
@@ -114,9 +130,10 @@ class V2 {
114
130
  if (_response.error.reason === "status-code") {
115
131
  switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
116
132
  case "TooManyRequestsError":
133
+ case "InvalidContentTypeError":
117
134
  return {
118
135
  ok: false,
119
- error: serializers.auth.v2.getToken.Error.parseOrThrow(_response.error.body, {
136
+ error: serializers.auth.default_.getToken.Error.parseOrThrow(_response.error.body, {
120
137
  unrecognizedObjectKeys: "passthrough",
121
138
  allowUnrecognizedUnionMembers: true,
122
139
  allowUnrecognizedEnumValues: true,
@@ -127,7 +144,7 @@ class V2 {
127
144
  }
128
145
  return {
129
146
  ok: false,
130
- error: CandidApi.auth.v2.getToken.Error._unknown(_response.error),
147
+ error: CandidApi.auth.default_.getToken.Error._unknown(_response.error),
131
148
  };
132
149
  });
133
150
  }
@@ -141,4 +158,4 @@ class V2 {
141
158
  });
142
159
  }
143
160
  }
144
- exports.V2 = V2;
161
+ exports.Default = Default;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ import * as core from "../../../../../../core";
6
+ export type Error = CandidApi.auth.default_.getToken.Error.TooManyRequestsError | CandidApi.auth.default_.getToken.Error.InvalidContentTypeError | CandidApi.auth.default_.getToken.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface TooManyRequestsError extends _Utils {
9
+ errorName: "TooManyRequestsError";
10
+ content: CandidApi.auth.default_.TooManyRequestsErrorType;
11
+ }
12
+ interface InvalidContentTypeError extends _Utils {
13
+ errorName: "InvalidContentTypeError";
14
+ content: CandidApi.auth.default_.InvalidContentTypeErrorType;
15
+ }
16
+ interface _Unknown extends _Utils {
17
+ errorName: void;
18
+ content: core.Fetcher.Error;
19
+ }
20
+ interface _Utils {
21
+ _visit: <_Result>(visitor: CandidApi.auth.default_.getToken.Error._Visitor<_Result>) => _Result;
22
+ }
23
+ interface _Visitor<_Result> {
24
+ tooManyRequestsError: (value: CandidApi.auth.default_.TooManyRequestsErrorType) => _Result;
25
+ invalidContentTypeError: (value: CandidApi.auth.default_.InvalidContentTypeErrorType) => _Result;
26
+ _other: (value: core.Fetcher.Error) => _Result;
27
+ }
28
+ }
29
+ export declare const Error: {
30
+ readonly tooManyRequestsError: (value: CandidApi.auth.default_.TooManyRequestsErrorType) => CandidApi.auth.default_.getToken.Error.TooManyRequestsError;
31
+ readonly invalidContentTypeError: (value: CandidApi.auth.default_.InvalidContentTypeErrorType) => CandidApi.auth.default_.getToken.Error.InvalidContentTypeError;
32
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.auth.default_.getToken.Error._Unknown;
33
+ readonly _visit: <_Result>(value: CandidApi.auth.default_.getToken.Error, visitor: CandidApi.auth.default_.getToken.Error._Visitor<_Result>) => _Result;
34
+ };
@@ -44,7 +44,16 @@ exports.Error = {
44
44
  content: value,
45
45
  errorName: "TooManyRequestsError",
46
46
  _visit: function (visitor) {
47
- return CandidApi.auth.v2.getToken.Error._visit(this, visitor);
47
+ return CandidApi.auth.default_.getToken.Error._visit(this, visitor);
48
+ },
49
+ };
50
+ },
51
+ invalidContentTypeError: (value) => {
52
+ return {
53
+ content: value,
54
+ errorName: "InvalidContentTypeError",
55
+ _visit: function (visitor) {
56
+ return CandidApi.auth.default_.getToken.Error._visit(this, visitor);
48
57
  },
49
58
  };
50
59
  },
@@ -53,7 +62,7 @@ exports.Error = {
53
62
  errorName: undefined,
54
63
  content: fetcherError,
55
64
  _visit: function (visitor) {
56
- return CandidApi.auth.v2.getToken.Error._visit(this, visitor);
65
+ return CandidApi.auth.default_.getToken.Error._visit(this, visitor);
57
66
  },
58
67
  };
59
68
  },
@@ -61,6 +70,8 @@ exports.Error = {
61
70
  switch (value.errorName) {
62
71
  case "TooManyRequestsError":
63
72
  return visitor.tooManyRequestsError(value.content);
73
+ case "InvalidContentTypeError":
74
+ return visitor.invalidContentTypeError(value.content);
64
75
  default:
65
76
  return visitor._other(value);
66
77
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface InvalidContentTypeErrorType {
5
+ message: string;
6
+ }
@@ -1,2 +1,3 @@
1
1
  export * from "./AuthGetTokenResponse";
2
2
  export * from "./TooManyRequestsErrorType";
3
+ export * from "./InvalidContentTypeErrorType";
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./AuthGetTokenResponse"), exports);
18
18
  __exportStar(require("./TooManyRequestsErrorType"), exports);
19
+ __exportStar(require("./InvalidContentTypeErrorType"), exports);
@@ -1 +1 @@
1
- export * as v2 from "./v2";
1
+ export * as default_ from "./default";
@@ -33,5 +33,5 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.v2 = void 0;
37
- exports.v2 = __importStar(require("./v2"));
36
+ exports.default_ = void 0;
37
+ exports.default_ = __importStar(require("./default"));
@@ -73,7 +73,7 @@ class V2 {
73
73
  const _response = yield core.fetcher({
74
74
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/billing_notes/v2"),
75
75
  method: "POST",
76
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
77
  contentType: "application/json",
78
78
  requestType: "json",
79
79
  body: serializers.billingNotes.v2.StandaloneBillingNoteCreate.jsonOrThrow(request, {
@@ -113,7 +113,7 @@ class V2 {
113
113
  const _response = yield core.fetcher({
114
114
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/billing_notes/v2/${encodeURIComponent(serializers.billingNotes.v2.BillingNoteId.jsonOrThrow(billingNoteId))}`),
115
115
  method: "DELETE",
116
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
116
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
117
117
  contentType: "application/json",
118
118
  requestType: "json",
119
119
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -164,7 +164,7 @@ class V2 {
164
164
  const _response = yield core.fetcher({
165
165
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/billing_notes/v2/${encodeURIComponent(serializers.billingNotes.v2.BillingNoteId.jsonOrThrow(billingNoteId))}`),
166
166
  method: "PATCH",
167
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
167
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
168
  contentType: "application/json",
169
169
  requestType: "json",
170
170
  body: serializers.billingNotes.v2.BillingNoteUpdate.jsonOrThrow(request, {
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface BillingNoteBaseOptional {
5
+ /** Empty string not allowed. */
6
+ text?: string;
7
+ }
@@ -1,3 +1,4 @@
1
1
  export * from "./BillingNoteId";
2
+ export * from "./BillingNoteBaseOptional";
2
3
  export * from "./BillingNoteBase";
3
4
  export * from "./BillingNote";
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./BillingNoteId"), exports);
18
+ __exportStar(require("./BillingNoteBaseOptional"), exports);
18
19
  __exportStar(require("./BillingNoteBase"), exports);
19
20
  __exportStar(require("./BillingNote"), exports);
@@ -76,7 +76,7 @@ class V1 {
76
76
  const _response = yield core.fetcher({
77
77
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/charge_captures/v1"),
78
78
  method: "POST",
79
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  body: serializers.chargeCapture.v1.CreateChargeCaptureRequest.jsonOrThrow(request, {
@@ -136,7 +136,7 @@ class V1 {
136
136
  const _response = yield core.fetcher({
137
137
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
138
138
  method: "PATCH",
139
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
139
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
140
140
  contentType: "application/json",
141
141
  requestType: "json",
142
142
  body: serializers.chargeCapture.v1.ChargeCaptureUpdate.jsonOrThrow(request, {
@@ -194,7 +194,7 @@ class V1 {
194
194
  const _response = yield core.fetcher({
195
195
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
196
196
  method: "GET",
197
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
197
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
198
198
  contentType: "application/json",
199
199
  requestType: "json",
200
200
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -228,7 +228,7 @@ class V1 {
228
228
  getAll() {
229
229
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
230
230
  var _a, _b;
231
- const { limit, sort, sortDirection, pageToken, patientExternalId, status, chargeExternalId, dateOfServiceMin, dateOfServiceMax, claimIds, claimCreationIds, billingProviderNpis, serviceFacilityName, primaryPayerIds, renderingProviderNpis, renderingProviderNames, supervisingProviderNpis, supervisingProviderNames, excludeChargesLinkedToClaims, patientExternalIdRankedSort, statusRankedSort, chargeExternalIdRankedSort, dateOfServiceMinRankedSort, dateOfServiceMaxRankedSort, claimIdsRankedSort, claimCreationIdsRankedSort, billingProviderNpisRankedSort, serviceFacilityNameRankedSort, primaryPayerIdsRankedSort, renderingProviderNpisRankedSort, renderingProviderNamesRankedSort, supervisingProviderNpisRankedSort, supervisingProviderNamesRankedSort, } = request;
231
+ const { limit, sort, sortDirection, pageToken, patientExternalId, status, chargeExternalId, dateOfServiceMin, dateOfServiceMax, claimIds, claimCreationIds, billingProviderNpis, serviceFacilityName, primaryPayerIds, renderingProviderNpis, renderingProviderNames, supervisingProviderNpis, supervisingProviderNames, excludeChargesLinkedToClaims, patientExternalIdRankedSort, statusRankedSort, chargeExternalIdRankedSort, dateOfServiceMinRankedSort, dateOfServiceMaxRankedSort, searchTerm, billableStatus, responsibleParty, claimIdsRankedSort, claimCreationIdsRankedSort, billingProviderNpisRankedSort, serviceFacilityNameRankedSort, primaryPayerIdsRankedSort, renderingProviderNpisRankedSort, renderingProviderNamesRankedSort, supervisingProviderNpisRankedSort, supervisingProviderNamesRankedSort, } = request;
232
232
  const _queryParams = {};
233
233
  if (limit != null) {
234
234
  _queryParams["limit"] = limit.toString();
@@ -348,6 +348,17 @@ class V1 {
348
348
  if (dateOfServiceMaxRankedSort != null) {
349
349
  _queryParams["date_of_service_max_ranked_sort"] = dateOfServiceMaxRankedSort;
350
350
  }
351
+ if (searchTerm != null) {
352
+ _queryParams["search_term"] = searchTerm;
353
+ }
354
+ if (billableStatus != null) {
355
+ _queryParams["billable_status"] = serializers.encounters.v4.BillableStatusType.jsonOrThrow(billableStatus, {
356
+ unrecognizedObjectKeys: "strip",
357
+ });
358
+ }
359
+ if (responsibleParty != null) {
360
+ _queryParams["responsible_party"] = serializers.encounters.v4.ResponsiblePartyType.jsonOrThrow(responsibleParty, { unrecognizedObjectKeys: "strip" });
361
+ }
351
362
  if (claimIdsRankedSort != null) {
352
363
  if (Array.isArray(claimIdsRankedSort)) {
353
364
  _queryParams["claim_ids_ranked_sort"] = claimIdsRankedSort.map((item) => serializers.EncounterId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" }));
@@ -418,7 +429,7 @@ class V1 {
418
429
  const _response = yield core.fetcher({
419
430
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/charge_captures/v1"),
420
431
  method: "GET",
421
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
432
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
422
433
  contentType: "application/json",
423
434
  queryParameters: _queryParams,
424
435
  requestType: "json",
@@ -459,7 +470,7 @@ class V1 {
459
470
  const _response = yield core.fetcher({
460
471
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/charge_captures/v1/changes/"),
461
472
  method: "PATCH",
462
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
473
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
463
474
  contentType: "application/json",
464
475
  requestType: "json",
465
476
  body: serializers.chargeCapture.v1.ChargeCapturePostBilledChangeUpdate.jsonOrThrow(request, {
@@ -19,6 +19,10 @@ export interface ChargeCaptureUpdate {
19
19
  * Send full URL format for the external link (e.g. https://emr_charge_capture_url.com/123).
20
20
  */
21
21
  ehrSourceUrl?: string;
22
+ /** An optional string field denoting the originating system of the charge. */
23
+ originatingSystem?: string;
24
+ /** An optional string field denoting the user defined category of the claim creation. */
25
+ claimCreationCategory?: string;
22
26
  /** The patient ID from the external EMR platform for the patient */
23
27
  patientExternalId?: string;
24
28
  /** the status of the charge capture */
@@ -16,6 +16,10 @@ export interface CreateChargeCaptureRequest {
16
16
  data: CandidApi.chargeCapture.v1.ChargeCaptureData;
17
17
  /** A client-specified unique ID to associate with this encounter; for example, your internal encounter ID or a Dr. Chrono encounter ID. This field should not contain PHI. */
18
18
  chargeExternalId: string;
19
+ /** An optional string field denoting the originating system of the charge. */
20
+ originatingSystem?: string;
21
+ /** An optional string field denoting the user defined category of the claim creation. */
22
+ claimCreationCategory?: string;
19
23
  /** External URL reference that links to Charge Capture details within the external system (e.g. the EHR visit page). Send full URL format for the external link (e.g. https://emr_charge_capture_url.com/123). */
20
24
  ehrSourceUrl?: string;
21
25
  /** The patient ID from the external EMR platform for the patient */
@@ -108,6 +108,20 @@ export interface GetAllChargeCapturesRequest {
108
108
  * This date must be the local date in the timezone where the service occurred.
109
109
  */
110
110
  dateOfServiceMaxRankedSort?: string;
111
+ /**
112
+ * Filter by any of the following fields: charge_id, claim_id, patient external_id,
113
+ * patient date of birth, patient first name, patient last name,
114
+ * or charge external id.
115
+ */
116
+ searchTerm?: string;
117
+ /**
118
+ * Defines if the Encounter is to be billed by Candid to the responsible_party. Examples for when this should be set to NOT_BILLABLE include if the Encounter has not occurred yet or if there is no intention of ever billing the responsible_party.
119
+ */
120
+ billableStatus?: CandidApi.encounters.v4.BillableStatusType;
121
+ /**
122
+ * Defines the party to be billed with the initial balance owed on the claim. Use SELF_PAY if you intend to bill self pay/cash pay.
123
+ */
124
+ responsibleParty?: CandidApi.encounters.v4.ResponsiblePartyType;
111
125
  /**
112
126
  * A list of claim IDs to show first. This will return all charge captures that have a resulting claim with one of the IDs in this list.
113
127
  */
@@ -10,6 +10,8 @@ export interface ChargeCapture {
10
10
  patientExternalId: CandidApi.PatientExternalId;
11
11
  chargeExternalId: string;
12
12
  ehrSourceUrl?: string;
13
+ originatingSystem?: string;
14
+ claimCreationCategory?: string;
13
15
  error?: CandidApi.chargeCapture.v1.ChargeCaptureError;
14
16
  updates: CandidApi.chargeCapture.v1.ChargeCapturePostBilledChange[];
15
17
  claimCreationId?: CandidApi.ChargeCaptureClaimCreationId;
@@ -2,56 +2,5 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as CandidApi from "../../../../../index";
5
- export interface ChargeCaptureData extends CandidApi.encounters.v4.EncounterOptional {
6
- /**
7
- * Ideally, this field should contain no more than 12 diagnoses. However, more diagnoses
8
- * may be submitted at this time, and coders will later prioritize the 12 that will be
9
- * submitted to the payor.
10
- */
11
- diagnoses?: CandidApi.DiagnosisCreate[];
12
- interventions?: CandidApi.encounters.v4.Intervention[];
13
- /**
14
- * ***This field is in beta.***
15
- * To be included for claims that have been submitted outside of Candid.
16
- * Candid supports posting remits and payments to these claims and working them in-platform (e.g. editing, resubmitting).
17
- */
18
- externalClaimSubmission?: CandidApi.claimSubmission.v1.ExternalClaimSubmissionCreate;
19
- /**
20
- * Each service line must be linked to a diagnosis. Concretely,
21
- * `service_line.diagnosis_pointers`must contain at least one entry which should be
22
- * in bounds of the diagnoses list field.
23
- */
24
- serviceLines?: CandidApi.serviceLines.v2.ServiceLineCreate[];
25
- patientHistories?: CandidApi.encounters.v4.PatientHistoryCategory[];
26
- /**
27
- * Spot to store misc, human-readable, notes about this encounter to be
28
- * used in the billing process.
29
- */
30
- billingNotes?: CandidApi.billingNotes.v2.BillingNoteBase[];
31
- /** Contains the identification information of the individual receiving medical services. */
32
- patient?: CandidApi.PatientUpdateWithOptionalAddress;
33
- /** Encounter Service facility is typically the location a medical service was rendered, such as a provider office or hospital. For telehealth, service facility can represent the provider's location when the service was delivered (e.g., home), or the location where an in-person visit would have taken place, whichever is easier to identify. If the provider is in-network, service facility may be defined in payer contracts. Box 32 on the CMS-1500 claim form. Note that for an in-network claim to be successfully adjudicated, the service facility address listed on claims must match what was provided to the payer during the credentialing process. */
34
- serviceFacility?: CandidApi.EncounterServiceFacilityUpdateWithOptionalAddress;
35
- /**
36
- * The rendering provider is the practitioner -- physician, nurse practitioner, etc. -- performing the service.
37
- * 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.
38
- */
39
- renderingProvider?: CandidApi.encounterProviders.v2.RenderingProviderUpdateWithOptionalAddress;
40
- /**
41
- * The second iteration of Loop ID-2310. Use code "P3 - Primary Care Provider" in this loop to
42
- * indicate the initial referral from the primary care provider or whatever provider wrote the initial referral for this patient's episode of care being billed/reported in this transaction.
43
- */
44
- initialReferringProvider?: CandidApi.encounterProviders.v2.InitialReferringProviderUpdateWithOptionalAddress;
45
- /**
46
- * The final provider who referred the services that were rendered.
47
- * All physicians who order services or refer Medicare beneficiaries must
48
- * report this data.
49
- */
50
- referringProvider?: CandidApi.encounterProviders.v2.ReferringProviderUpdateWithOptionalAddress;
51
- /** Required when the rendering provider is supervised by a physician. If not required by this implementation guide, do not send. */
52
- supervisingProvider?: CandidApi.encounterProviders.v2.SupervisingProviderUpdateWithOptionalAddress;
53
- /** The billing provider is the provider or business entity submitting the claim. Billing provider may be, but is not necessarily, the same person/NPI as the rendering provider. From a payer's perspective, this represents the person or entity being reimbursed. When a contract exists with the target payer, the billing provider should be the entity contracted with the payer. In some circumstances, this will be an individual provider. In that case, submit that provider's NPI and the tax ID (TIN) that the provider gave to the payer during contracting. In other cases, the billing entity will be a medical group. If so, submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim form. */
54
- billingProvider?: CandidApi.encounterProviders.v2.BillingProviderUpdateWithOptionalAddress;
55
- /** Specifies the address to which payments for the claim should be sent. */
56
- payToAddress?: CandidApi.StreetAddressShortZipOptional;
5
+ export interface ChargeCaptureData extends CandidApi.encounters.v4.EncounterDeepOptional {
57
6
  }
@@ -12,6 +12,12 @@ export interface ChargeCaptureError {
12
12
  chargeCaptureId?: CandidApi.ChargeCaptureId;
13
13
  /** A human readable error explaining why this charge capture Claim Creation failed to create a claim. */
14
14
  message: string;
15
+ /** Whether or not the error has been resolved as part of user workflows */
16
+ resolved?: boolean;
17
+ /** A string denoting who resolved the error within candid's system. */
18
+ resolvedBy?: string;
19
+ /** A string denoting how or why an error was resolved. */
20
+ resolutionReason?: string;
15
21
  /**
16
22
  * The field of the corresponding underlying ChargeCapture that has a field that is failing validations,
17
23
  * is not present but marked as required, or otherwise in error.
@@ -1,6 +1,6 @@
1
+ export * from "./ChargeCaptureData";
1
2
  export * from "./ChargeCapturePage";
2
3
  export * from "./ChargeCapture";
3
- export * from "./ChargeCaptureData";
4
4
  export * from "./ChargeCaptureError";
5
5
  export * from "./ChargeCaptureSortField";
6
6
  export * from "./ChargeCaptureStatus";