candidhealth 0.46.1 → 1.3.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 (841) 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.d.ts +0 -8
  19. package/api/resources/chargeCapture/resources/v1/client/Client.js +5 -52
  20. package/api/resources/chargeCapture/resources/v1/client/index.d.ts +0 -1
  21. package/api/resources/chargeCapture/resources/v1/client/index.js +1 -2
  22. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +4 -0
  23. package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +4 -0
  24. package/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  25. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +1 -52
  26. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureError.d.ts +6 -0
  27. package/api/resources/chargeCapture/resources/v1/types/index.d.ts +1 -1
  28. package/api/resources/chargeCapture/resources/v1/types/index.js +1 -1
  29. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +9 -0
  30. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +55 -3
  31. package/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -0
  32. package/api/resources/chargeCaptureBundles/resources/v1/client/index.js +2 -1
  33. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.d.ts +13 -0
  34. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -0
  35. package/api/resources/{chargeCapture/resources/v1/client/delete.d.ts → chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.d.ts} +6 -6
  36. package/api/resources/{chargeCapture/resources/v1/client/delete.js → chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.js} +3 -3
  37. package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +34 -0
  38. package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +43 -0
  39. package/api/resources/claimSubmission/resources/v1/types/index.d.ts +2 -0
  40. package/api/resources/claimSubmission/resources/v1/types/index.js +2 -0
  41. package/api/resources/commons/types/PhoneNumberOptional.d.ts +15 -0
  42. package/api/resources/commons/types/ProcedureModifier.d.ts +9 -1
  43. package/api/resources/commons/types/ProcedureModifier.js +2 -0
  44. package/api/resources/commons/types/StreetAddressLongZipOptional.d.ts +19 -0
  45. package/api/resources/commons/types/index.d.ts +2 -0
  46. package/api/resources/commons/types/index.js +2 -0
  47. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  48. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  49. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  50. package/api/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.d.ts +22 -0
  51. package/api/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.js +5 -0
  52. package/api/resources/customSchemas/resources/v1/types/index.d.ts +1 -0
  53. package/api/resources/customSchemas/resources/v1/types/index.js +1 -0
  54. package/api/resources/diagnoses/client/Client.js +3 -3
  55. package/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +7 -0
  56. package/api/resources/diagnoses/types/DiagnosisCreate.d.ts +7 -0
  57. package/api/resources/diagnoses/types/DiagnosisCreateOptional.d.ts +28 -0
  58. package/api/resources/diagnoses/types/DiagnosisCreateOptional.js +5 -0
  59. package/api/resources/diagnoses/types/index.d.ts +1 -0
  60. package/api/resources/diagnoses/types/index.js +1 -0
  61. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  62. package/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
  63. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  64. package/api/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.d.ts +13 -0
  65. package/api/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.js +5 -0
  66. package/api/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
  67. package/api/resources/encounterProviders/resources/v2/types/index.js +1 -0
  68. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  69. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
  70. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +26 -0
  71. package/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +9 -0
  72. package/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +5 -0
  73. package/api/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.d.ts +8 -0
  74. package/api/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.js +5 -0
  75. package/api/resources/encounters/resources/v4/types/ClinicalNoteOptional.d.ts +10 -0
  76. package/api/resources/encounters/resources/v4/types/ClinicalNoteOptional.js +5 -0
  77. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +3 -1
  78. package/api/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +1 -1
  79. package/api/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +80 -0
  80. package/api/resources/encounters/resources/v4/types/EncounterDeepOptional.js +5 -0
  81. package/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -26
  82. package/api/resources/encounters/resources/v4/types/EpsdtReferralOptional.d.ts +9 -0
  83. package/api/resources/encounters/resources/v4/types/EpsdtReferralOptional.js +5 -0
  84. package/api/resources/encounters/resources/v4/types/IntakeQuestionOptional.d.ts +24 -0
  85. package/api/resources/encounters/resources/v4/types/IntakeQuestionOptional.js +5 -0
  86. package/api/resources/encounters/resources/v4/types/InterventionOptional.d.ts +14 -0
  87. package/api/resources/encounters/resources/v4/types/InterventionOptional.js +5 -0
  88. package/api/resources/encounters/resources/v4/types/LabOptional.d.ts +17 -0
  89. package/api/resources/encounters/resources/v4/types/LabOptional.js +5 -0
  90. package/api/resources/encounters/resources/v4/types/MedicationOptional.d.ts +12 -0
  91. package/api/resources/encounters/resources/v4/types/MedicationOptional.js +5 -0
  92. package/api/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.d.ts +9 -0
  93. package/api/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.js +5 -0
  94. package/api/resources/encounters/resources/v4/types/index.d.ts +10 -0
  95. package/api/resources/encounters/resources/v4/types/index.js +10 -0
  96. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  97. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  98. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  99. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  100. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  101. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  102. package/api/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +17 -0
  103. package/api/resources/guarantor/resources/v1/types/GuarantorOptional.js +5 -0
  104. package/api/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  105. package/api/resources/guarantor/resources/v1/types/index.js +1 -0
  106. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  107. package/api/resources/index.d.ts +2 -0
  108. package/api/resources/index.js +3 -1
  109. package/api/resources/individual/types/IndividualBaseOptional.d.ts +9 -0
  110. package/api/resources/individual/types/IndividualBaseOptional.js +5 -0
  111. package/api/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.d.ts +9 -0
  112. package/api/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.js +5 -0
  113. package/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +2 -2
  114. package/api/resources/individual/types/SubscriberBaseOptional.d.ts +9 -0
  115. package/api/resources/individual/types/SubscriberBaseOptional.js +5 -0
  116. package/api/resources/individual/types/SubscriberCreateOptional.d.ts +7 -0
  117. package/api/resources/individual/types/SubscriberCreateOptional.js +5 -0
  118. package/api/resources/individual/types/index.d.ts +4 -0
  119. package/api/resources/individual/types/index.js +4 -0
  120. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  121. package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
  122. package/api/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.d.ts +14 -0
  123. package/api/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.js +5 -0
  124. package/api/resources/insuranceCards/resources/v2/types/index.d.ts +1 -0
  125. package/api/resources/insuranceCards/resources/v2/types/index.js +1 -0
  126. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  127. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  128. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  129. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  130. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  131. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  132. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  133. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  134. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  135. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  136. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  137. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  138. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  139. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +1 -1
  140. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +11 -11
  141. package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageEligibilityCheckResponse.d.ts +2 -2
  142. package/api/resources/preEncounter/resources/coverages/resources/v1/types/LatestEligibilityCheck.d.ts +1 -1
  143. package/api/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +1 -1
  144. package/api/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -5
  145. package/api/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -5
  146. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +40 -0
  147. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +102 -1
  148. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/batch.d.ts +22 -0
  149. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/batch.js +57 -0
  150. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +2 -0
  151. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +3 -1
  152. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/pollBatch.d.ts +22 -0
  153. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/pollBatch.js +57 -0
  154. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/BatchEligibilityResponse.d.ts +10 -0
  155. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/BatchEligibilityResponse.js +5 -0
  156. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheck.d.ts +2 -1
  157. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckError.d.ts +8 -0
  158. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckError.js +5 -0
  159. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorDetails.d.ts +14 -0
  160. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorDetails.js +5 -0
  161. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorSource.d.ts +11 -0
  162. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorSource.js +10 -0
  163. package/{dist/api/resources/preEncounter/resources/coverages → api/resources/preEncounter/resources/eligibilityChecks}/resources/v1/types/EligibilityCheckMetadata.d.ts +1 -1
  164. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckMetadata.js +5 -0
  165. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckPage.d.ts +7 -0
  166. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckPage.js +5 -0
  167. package/api/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityCheckStatus.d.ts +1 -1
  168. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRequest.d.ts +5 -0
  169. package/api/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityStatus.d.ts +3 -0
  170. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/ParsedResponse.d.ts +1 -1
  171. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +8 -0
  172. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +8 -0
  173. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  174. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  175. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  176. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  177. package/api/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +2 -0
  178. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  179. package/api/resources/serviceFacility/client/Client.js +1 -1
  180. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  181. package/api/resources/serviceLines/resources/v2/types/DenialReasonContent.d.ts +2 -1
  182. package/api/resources/serviceLines/resources/v2/types/DenialReasonContent.js +1 -0
  183. package/api/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.d.ts +14 -0
  184. package/api/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.js +5 -0
  185. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +50 -0
  186. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +5 -0
  187. package/api/resources/serviceLines/resources/v2/types/TestResultOptional.d.ts +8 -0
  188. package/api/resources/serviceLines/resources/v2/types/TestResultOptional.js +5 -0
  189. package/api/resources/serviceLines/resources/v2/types/index.d.ts +3 -0
  190. package/api/resources/serviceLines/resources/v2/types/index.js +3 -0
  191. package/api/resources/superbills/resources/v1/client/Client.js +1 -1
  192. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  193. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  194. package/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +2 -1
  195. package/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +1 -0
  196. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
  197. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  198. package/api/resources/yesNoIndicator/index.d.ts +1 -0
  199. package/api/resources/yesNoIndicator/index.js +17 -0
  200. package/api/resources/yesNoIndicator/types/YesNoIndicator.d.ts +10 -0
  201. package/api/resources/yesNoIndicator/types/YesNoIndicator.js +12 -0
  202. package/api/resources/yesNoIndicator/types/index.d.ts +1 -0
  203. package/api/resources/yesNoIndicator/types/index.js +17 -0
  204. package/core/auth/OAuthTokenProvider.d.ts +2 -2
  205. package/dist/Client.js +2 -2
  206. package/dist/api/resources/auth/client/Client.d.ts +3 -3
  207. package/dist/api/resources/auth/client/Client.js +3 -3
  208. package/dist/api/resources/auth/resources/{v2 → default}/client/Client.d.ts +23 -9
  209. package/{api/resources/auth/resources/v2 → dist/api/resources/auth/resources/default}/client/Client.js +29 -12
  210. package/dist/api/resources/auth/resources/default/client/getToken.d.ts +34 -0
  211. package/{api/resources/auth/resources/v2 → dist/api/resources/auth/resources/default}/client/getToken.js +13 -2
  212. package/dist/api/resources/auth/resources/default/client/requests/AuthGetTokenRequest.js +5 -0
  213. package/dist/api/resources/auth/resources/default/types/AuthGetTokenResponse.js +5 -0
  214. package/dist/api/resources/auth/resources/default/types/InvalidContentTypeErrorType.d.ts +6 -0
  215. package/dist/api/resources/auth/resources/default/types/InvalidContentTypeErrorType.js +5 -0
  216. package/dist/api/resources/auth/resources/default/types/TooManyRequestsErrorType.js +5 -0
  217. package/dist/{serialization/resources/auth/resources/v2 → api/resources/auth/resources/default}/types/index.d.ts +1 -0
  218. package/{api/resources/auth/resources/v2 → dist/api/resources/auth/resources/default}/types/index.js +1 -0
  219. package/dist/api/resources/auth/resources/index.d.ts +1 -1
  220. package/dist/api/resources/auth/resources/index.js +2 -2
  221. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  222. package/dist/api/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.d.ts +7 -0
  223. package/dist/api/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.js +5 -0
  224. package/dist/api/resources/billingNotes/resources/v2/types/index.d.ts +1 -0
  225. package/dist/api/resources/billingNotes/resources/v2/types/index.js +1 -0
  226. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +0 -8
  227. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +5 -52
  228. package/dist/api/resources/chargeCapture/resources/v1/client/index.d.ts +0 -1
  229. package/dist/api/resources/chargeCapture/resources/v1/client/index.js +1 -2
  230. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +4 -0
  231. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +4 -0
  232. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  233. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +1 -52
  234. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureError.d.ts +6 -0
  235. package/dist/api/resources/chargeCapture/resources/v1/types/index.d.ts +1 -1
  236. package/dist/api/resources/chargeCapture/resources/v1/types/index.js +1 -1
  237. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +9 -0
  238. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +55 -3
  239. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -0
  240. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.js +2 -1
  241. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.d.ts +13 -0
  242. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.js +5 -0
  243. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -0
  244. package/dist/api/resources/{chargeCapture/resources/v1/client/delete.d.ts → chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.d.ts} +6 -6
  245. package/dist/api/resources/{chargeCapture/resources/v1/client/delete.js → chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.js} +3 -3
  246. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +34 -0
  247. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js +5 -0
  248. package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +43 -0
  249. package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.js +5 -0
  250. package/dist/api/resources/claimSubmission/resources/v1/types/index.d.ts +2 -0
  251. package/dist/api/resources/claimSubmission/resources/v1/types/index.js +2 -0
  252. package/dist/api/resources/commons/types/PhoneNumberOptional.d.ts +15 -0
  253. package/dist/api/resources/commons/types/PhoneNumberOptional.js +5 -0
  254. package/dist/api/resources/commons/types/ProcedureModifier.d.ts +9 -1
  255. package/dist/api/resources/commons/types/ProcedureModifier.js +2 -0
  256. package/dist/api/resources/commons/types/StreetAddressLongZipOptional.d.ts +19 -0
  257. package/dist/api/resources/commons/types/StreetAddressLongZipOptional.js +5 -0
  258. package/dist/api/resources/commons/types/index.d.ts +2 -0
  259. package/dist/api/resources/commons/types/index.js +2 -0
  260. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  261. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  262. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  263. package/dist/api/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.d.ts +22 -0
  264. package/dist/api/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.js +5 -0
  265. package/dist/api/resources/customSchemas/resources/v1/types/index.d.ts +1 -0
  266. package/dist/api/resources/customSchemas/resources/v1/types/index.js +1 -0
  267. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  268. package/dist/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +7 -0
  269. package/dist/api/resources/diagnoses/types/DiagnosisCreate.d.ts +7 -0
  270. package/dist/api/resources/diagnoses/types/DiagnosisCreateOptional.d.ts +28 -0
  271. package/dist/api/resources/diagnoses/types/DiagnosisCreateOptional.js +5 -0
  272. package/dist/api/resources/diagnoses/types/index.d.ts +1 -0
  273. package/dist/api/resources/diagnoses/types/index.js +1 -0
  274. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  275. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
  276. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  277. package/dist/api/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.d.ts +13 -0
  278. package/dist/api/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.js +5 -0
  279. package/dist/api/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
  280. package/dist/api/resources/encounterProviders/resources/v2/types/index.js +1 -0
  281. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  282. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
  283. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +26 -0
  284. package/dist/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +9 -0
  285. package/dist/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +5 -0
  286. package/dist/api/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.d.ts +8 -0
  287. package/dist/api/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.js +5 -0
  288. package/dist/api/resources/encounters/resources/v4/types/ClinicalNoteOptional.d.ts +10 -0
  289. package/dist/api/resources/encounters/resources/v4/types/ClinicalNoteOptional.js +5 -0
  290. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +3 -1
  291. package/dist/api/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +1 -1
  292. package/dist/api/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +80 -0
  293. package/dist/api/resources/encounters/resources/v4/types/EncounterDeepOptional.js +5 -0
  294. package/dist/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -26
  295. package/dist/api/resources/encounters/resources/v4/types/EpsdtReferralOptional.d.ts +9 -0
  296. package/dist/api/resources/encounters/resources/v4/types/EpsdtReferralOptional.js +5 -0
  297. package/dist/api/resources/encounters/resources/v4/types/IntakeQuestionOptional.d.ts +24 -0
  298. package/dist/api/resources/encounters/resources/v4/types/IntakeQuestionOptional.js +5 -0
  299. package/dist/api/resources/encounters/resources/v4/types/InterventionOptional.d.ts +14 -0
  300. package/dist/api/resources/encounters/resources/v4/types/InterventionOptional.js +5 -0
  301. package/dist/api/resources/encounters/resources/v4/types/LabOptional.d.ts +17 -0
  302. package/dist/api/resources/encounters/resources/v4/types/LabOptional.js +5 -0
  303. package/dist/api/resources/encounters/resources/v4/types/MedicationOptional.d.ts +12 -0
  304. package/dist/api/resources/encounters/resources/v4/types/MedicationOptional.js +5 -0
  305. package/dist/api/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.d.ts +9 -0
  306. package/dist/api/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.js +5 -0
  307. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +10 -0
  308. package/dist/api/resources/encounters/resources/v4/types/index.js +10 -0
  309. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  310. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  311. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  312. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  313. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  314. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  315. package/dist/api/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +17 -0
  316. package/dist/api/resources/guarantor/resources/v1/types/GuarantorOptional.js +5 -0
  317. package/dist/api/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  318. package/dist/api/resources/guarantor/resources/v1/types/index.js +1 -0
  319. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  320. package/dist/api/resources/index.d.ts +2 -0
  321. package/dist/api/resources/index.js +3 -1
  322. package/dist/api/resources/individual/types/IndividualBaseOptional.d.ts +9 -0
  323. package/dist/api/resources/individual/types/IndividualBaseOptional.js +5 -0
  324. package/dist/api/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.d.ts +9 -0
  325. package/dist/api/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.js +5 -0
  326. package/dist/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +2 -2
  327. package/dist/api/resources/individual/types/SubscriberBaseOptional.d.ts +9 -0
  328. package/dist/api/resources/individual/types/SubscriberBaseOptional.js +5 -0
  329. package/dist/api/resources/individual/types/SubscriberCreateOptional.d.ts +7 -0
  330. package/dist/api/resources/individual/types/SubscriberCreateOptional.js +5 -0
  331. package/dist/api/resources/individual/types/index.d.ts +4 -0
  332. package/dist/api/resources/individual/types/index.js +4 -0
  333. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  334. package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
  335. package/dist/api/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.d.ts +14 -0
  336. package/dist/api/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.js +5 -0
  337. package/dist/api/resources/insuranceCards/resources/v2/types/index.d.ts +1 -0
  338. package/dist/api/resources/insuranceCards/resources/v2/types/index.js +1 -0
  339. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  340. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  341. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  342. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  343. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  344. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  345. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  346. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  347. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  348. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  349. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  350. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  351. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  352. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +1 -1
  353. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +11 -11
  354. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageEligibilityCheckResponse.d.ts +2 -2
  355. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/LatestEligibilityCheck.d.ts +1 -1
  356. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +1 -1
  357. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -5
  358. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -5
  359. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +40 -0
  360. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +102 -1
  361. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/batch.d.ts +22 -0
  362. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/batch.js +57 -0
  363. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +2 -0
  364. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +3 -1
  365. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/pollBatch.d.ts +22 -0
  366. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/pollBatch.js +57 -0
  367. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/BatchEligibilityResponse.d.ts +10 -0
  368. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/BatchEligibilityResponse.js +5 -0
  369. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheck.d.ts +2 -1
  370. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckError.d.ts +8 -0
  371. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckError.js +5 -0
  372. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorDetails.d.ts +14 -0
  373. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorDetails.js +5 -0
  374. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorSource.d.ts +11 -0
  375. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorSource.js +10 -0
  376. package/{api/resources/preEncounter/resources/coverages → dist/api/resources/preEncounter/resources/eligibilityChecks}/resources/v1/types/EligibilityCheckMetadata.d.ts +1 -1
  377. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckMetadata.js +5 -0
  378. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckPage.d.ts +7 -0
  379. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckPage.js +5 -0
  380. package/dist/api/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityCheckStatus.d.ts +1 -1
  381. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRequest.d.ts +5 -0
  382. package/dist/api/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityStatus.d.ts +3 -0
  383. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/ParsedResponse.d.ts +1 -1
  384. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +8 -0
  385. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +8 -0
  386. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  387. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  388. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  389. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  390. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +2 -0
  391. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  392. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  393. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  394. package/dist/api/resources/serviceLines/resources/v2/types/DenialReasonContent.d.ts +2 -1
  395. package/dist/api/resources/serviceLines/resources/v2/types/DenialReasonContent.js +1 -0
  396. package/dist/api/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.d.ts +14 -0
  397. package/dist/api/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.js +5 -0
  398. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +50 -0
  399. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +5 -0
  400. package/dist/api/resources/serviceLines/resources/v2/types/TestResultOptional.d.ts +8 -0
  401. package/dist/api/resources/serviceLines/resources/v2/types/TestResultOptional.js +5 -0
  402. package/dist/api/resources/serviceLines/resources/v2/types/index.d.ts +3 -0
  403. package/dist/api/resources/serviceLines/resources/v2/types/index.js +3 -0
  404. package/dist/api/resources/superbills/resources/v1/client/Client.js +1 -1
  405. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  406. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  407. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +2 -1
  408. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +1 -0
  409. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
  410. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  411. package/dist/api/resources/yesNoIndicator/index.d.ts +1 -0
  412. package/dist/api/resources/yesNoIndicator/index.js +17 -0
  413. package/dist/api/resources/yesNoIndicator/types/YesNoIndicator.d.ts +10 -0
  414. package/dist/api/resources/yesNoIndicator/types/YesNoIndicator.js +12 -0
  415. package/dist/api/resources/yesNoIndicator/types/index.d.ts +1 -0
  416. package/dist/api/resources/yesNoIndicator/types/index.js +17 -0
  417. package/dist/core/auth/OAuthTokenProvider.d.ts +2 -2
  418. package/dist/serialization/resources/auth/resources/{v2 → default}/client/getToken.d.ts +7 -2
  419. package/{serialization/resources/auth/resources/v2 → dist/serialization/resources/auth/resources/default}/client/getToken.js +7 -1
  420. package/{serialization/resources/auth/resources/v2 → dist/serialization/resources/auth/resources/default}/client/requests/AuthGetTokenRequest.d.ts +1 -1
  421. package/dist/serialization/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.d.ts +1 -1
  422. package/dist/serialization/resources/auth/resources/default/types/InvalidContentTypeErrorType.d.ts +12 -0
  423. package/dist/serialization/resources/auth/resources/default/types/InvalidContentTypeErrorType.js +43 -0
  424. package/{serialization/resources/auth/resources/v2 → dist/serialization/resources/auth/resources/default}/types/TooManyRequestsErrorType.d.ts +1 -1
  425. package/{serialization/resources/auth/resources/v2 → dist/serialization/resources/auth/resources/default}/types/index.d.ts +1 -0
  426. package/dist/{api/resources/auth/resources/v2 → serialization/resources/auth/resources/default}/types/index.js +1 -0
  427. package/dist/serialization/resources/auth/resources/index.d.ts +1 -1
  428. package/dist/serialization/resources/auth/resources/index.js +2 -2
  429. package/dist/serialization/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.d.ts +12 -0
  430. package/dist/serialization/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.js +43 -0
  431. package/dist/serialization/resources/billingNotes/resources/v2/types/index.d.ts +1 -0
  432. package/dist/serialization/resources/billingNotes/resources/v2/types/index.js +1 -0
  433. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +0 -1
  434. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.js +1 -2
  435. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +2 -0
  436. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.js +2 -0
  437. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +2 -0
  438. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.js +2 -0
  439. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  440. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -0
  441. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +2 -30
  442. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +2 -33
  443. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.d.ts +3 -0
  444. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js +3 -0
  445. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +1 -1
  446. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.js +1 -1
  447. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +2 -0
  448. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/index.js +41 -0
  449. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.d.ts +13 -0
  450. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.js +44 -0
  451. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -0
  452. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/index.js +5 -0
  453. package/{serialization/resources/chargeCapture/resources/v1/client/delete.d.ts → dist/serialization/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.d.ts} +1 -1
  454. package/{serialization/resources/chargeCapture/resources/v1/client/delete.js → dist/serialization/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.js} +2 -2
  455. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/index.d.ts +1 -0
  456. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/index.js +1 -0
  457. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +18 -0
  458. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js +49 -0
  459. package/dist/serialization/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +15 -0
  460. package/dist/serialization/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.js +46 -0
  461. package/dist/serialization/resources/claimSubmission/resources/v1/types/index.d.ts +2 -0
  462. package/dist/serialization/resources/claimSubmission/resources/v1/types/index.js +2 -0
  463. package/dist/serialization/resources/commons/types/PhoneNumberOptional.d.ts +14 -0
  464. package/dist/serialization/resources/commons/types/PhoneNumberOptional.js +45 -0
  465. package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  466. package/dist/serialization/resources/commons/types/ProcedureModifier.js +2 -0
  467. package/dist/serialization/resources/commons/types/StreetAddressLongZipOptional.d.ts +13 -0
  468. package/dist/serialization/resources/commons/types/StreetAddressLongZipOptional.js +46 -0
  469. package/dist/serialization/resources/commons/types/index.d.ts +2 -0
  470. package/dist/serialization/resources/commons/types/index.js +2 -0
  471. package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.d.ts +14 -0
  472. package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.js +45 -0
  473. package/dist/serialization/resources/customSchemas/resources/v1/types/index.d.ts +1 -0
  474. package/dist/serialization/resources/customSchemas/resources/v1/types/index.js +1 -0
  475. package/dist/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +2 -0
  476. package/dist/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.js +2 -0
  477. package/dist/serialization/resources/diagnoses/types/DiagnosisCreate.d.ts +2 -0
  478. package/dist/serialization/resources/diagnoses/types/DiagnosisCreate.js +2 -0
  479. package/dist/serialization/resources/diagnoses/types/DiagnosisCreateOptional.d.ts +17 -0
  480. package/dist/serialization/resources/diagnoses/types/DiagnosisCreateOptional.js +48 -0
  481. package/dist/serialization/resources/diagnoses/types/index.d.ts +1 -0
  482. package/dist/serialization/resources/diagnoses/types/index.js +1 -0
  483. package/dist/serialization/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.d.ts +16 -0
  484. package/dist/serialization/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.js +49 -0
  485. package/dist/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
  486. package/dist/serialization/resources/encounterProviders/resources/v2/types/index.js +1 -0
  487. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +16 -0
  488. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +16 -0
  489. package/dist/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +16 -0
  490. package/dist/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +47 -0
  491. package/dist/serialization/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.d.ts +15 -0
  492. package/dist/serialization/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.js +46 -0
  493. package/dist/serialization/resources/encounters/resources/v4/types/ClinicalNoteOptional.d.ts +16 -0
  494. package/dist/serialization/resources/encounters/resources/v4/types/ClinicalNoteOptional.js +47 -0
  495. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  496. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
  497. package/dist/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +56 -0
  498. package/dist/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.js +89 -0
  499. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -16
  500. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +0 -16
  501. package/dist/serialization/resources/encounters/resources/v4/types/EpsdtReferralOptional.d.ts +15 -0
  502. package/dist/serialization/resources/encounters/resources/v4/types/EpsdtReferralOptional.js +46 -0
  503. package/dist/serialization/resources/encounters/resources/v4/types/IntakeQuestionOptional.d.ts +16 -0
  504. package/dist/serialization/resources/encounters/resources/v4/types/IntakeQuestionOptional.js +47 -0
  505. package/dist/serialization/resources/encounters/resources/v4/types/InterventionOptional.d.ts +19 -0
  506. package/dist/serialization/resources/encounters/resources/v4/types/InterventionOptional.js +50 -0
  507. package/dist/serialization/resources/encounters/resources/v4/types/LabOptional.d.ts +15 -0
  508. package/dist/serialization/resources/encounters/resources/v4/types/LabOptional.js +46 -0
  509. package/dist/serialization/resources/encounters/resources/v4/types/MedicationOptional.d.ts +18 -0
  510. package/dist/serialization/resources/encounters/resources/v4/types/MedicationOptional.js +49 -0
  511. package/dist/serialization/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.d.ts +15 -0
  512. package/dist/serialization/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.js +46 -0
  513. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +10 -0
  514. package/dist/serialization/resources/encounters/resources/v4/types/index.js +10 -0
  515. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +23 -0
  516. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.js +54 -0
  517. package/dist/serialization/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  518. package/dist/serialization/resources/guarantor/resources/v1/types/index.js +1 -0
  519. package/dist/serialization/resources/index.d.ts +2 -0
  520. package/dist/serialization/resources/index.js +3 -1
  521. package/dist/serialization/resources/individual/types/IndividualBaseOptional.d.ts +15 -0
  522. package/dist/serialization/resources/individual/types/IndividualBaseOptional.js +46 -0
  523. package/dist/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.d.ts +16 -0
  524. package/dist/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.js +47 -0
  525. package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +4 -4
  526. package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +4 -4
  527. package/dist/serialization/resources/individual/types/SubscriberBaseOptional.d.ts +17 -0
  528. package/dist/serialization/resources/individual/types/SubscriberBaseOptional.js +50 -0
  529. package/dist/serialization/resources/individual/types/SubscriberCreateOptional.d.ts +14 -0
  530. package/dist/serialization/resources/individual/types/SubscriberCreateOptional.js +47 -0
  531. package/dist/serialization/resources/individual/types/index.d.ts +4 -0
  532. package/dist/serialization/resources/individual/types/index.js +4 -0
  533. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
  534. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +1 -0
  535. package/dist/serialization/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.d.ts +21 -0
  536. package/dist/serialization/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.js +54 -0
  537. package/dist/serialization/resources/insuranceCards/resources/v2/types/index.d.ts +1 -0
  538. package/dist/serialization/resources/insuranceCards/resources/v2/types/index.js +1 -0
  539. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageEligibilityCheckResponse.d.ts +2 -2
  540. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageEligibilityCheckResponse.js +2 -2
  541. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/LatestEligibilityCheck.d.ts +1 -1
  542. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/LatestEligibilityCheck.js +1 -1
  543. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +1 -1
  544. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.js +1 -1
  545. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -5
  546. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -5
  547. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/batch.d.ts +11 -0
  548. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/batch.js +42 -0
  549. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +1 -0
  550. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +37 -0
  551. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/index.d.ts +1 -0
  552. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/index.js +1 -0
  553. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/BatchEligibilityResponse.d.ts +13 -0
  554. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/BatchEligibilityResponse.js +44 -0
  555. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheck.d.ts +3 -1
  556. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheck.js +3 -1
  557. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckError.d.ts +15 -0
  558. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckError.js +46 -0
  559. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorDetails.d.ts +17 -0
  560. package/{serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheck.js → dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorDetails.js} +8 -10
  561. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorSource.d.ts +10 -0
  562. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorSource.js +41 -0
  563. package/dist/serialization/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityCheckMetadata.d.ts +2 -2
  564. package/dist/serialization/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityCheckMetadata.js +1 -1
  565. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckPage.d.ts +14 -0
  566. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckPage.js +47 -0
  567. package/{serialization/resources/preEncounter/resources/coverages → dist/serialization/resources/preEncounter/resources/eligibilityChecks}/resources/v1/types/EligibilityCheckStatus.d.ts +1 -1
  568. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRequest.d.ts +1 -0
  569. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRequest.js +1 -0
  570. package/{serialization/resources/preEncounter/resources/coverages → dist/serialization/resources/preEncounter/resources/eligibilityChecks}/resources/v1/types/EligibilityStatus.d.ts +1 -1
  571. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/ParsedResponse.d.ts +1 -1
  572. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/ParsedResponse.js +1 -1
  573. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +8 -0
  574. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +8 -0
  575. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +1 -0
  576. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.js +1 -0
  577. package/dist/serialization/resources/serviceLines/resources/v2/types/DenialReasonContent.d.ts +1 -1
  578. package/dist/serialization/resources/serviceLines/resources/v2/types/DenialReasonContent.js +1 -0
  579. package/dist/serialization/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.d.ts +21 -0
  580. package/dist/serialization/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.js +52 -0
  581. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +33 -0
  582. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +64 -0
  583. package/dist/serialization/resources/serviceLines/resources/v2/types/TestResultOptional.d.ts +14 -0
  584. package/dist/serialization/resources/serviceLines/resources/v2/types/TestResultOptional.js +45 -0
  585. package/dist/serialization/resources/serviceLines/resources/v2/types/index.d.ts +3 -0
  586. package/dist/serialization/resources/serviceLines/resources/v2/types/index.js +3 -0
  587. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +1 -1
  588. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +1 -0
  589. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
  590. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  591. package/dist/serialization/resources/yesNoIndicator/index.d.ts +1 -0
  592. package/dist/serialization/resources/yesNoIndicator/index.js +17 -0
  593. package/dist/serialization/resources/yesNoIndicator/types/YesNoIndicator.d.ts +10 -0
  594. package/dist/serialization/resources/yesNoIndicator/types/YesNoIndicator.js +41 -0
  595. package/dist/serialization/resources/yesNoIndicator/types/index.d.ts +1 -0
  596. package/dist/serialization/resources/yesNoIndicator/types/index.js +17 -0
  597. package/dist/version.d.ts +1 -1
  598. package/dist/version.js +1 -1
  599. package/package.json +1 -1
  600. package/reference.md +194 -22
  601. package/serialization/resources/auth/resources/{v2 → default}/client/getToken.d.ts +7 -2
  602. package/{dist/serialization/resources/auth/resources/v2 → serialization/resources/auth/resources/default}/client/getToken.js +7 -1
  603. package/{dist/serialization/resources/auth/resources/v2 → serialization/resources/auth/resources/default}/client/requests/AuthGetTokenRequest.d.ts +1 -1
  604. package/serialization/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.d.ts +1 -1
  605. package/serialization/resources/auth/resources/default/types/InvalidContentTypeErrorType.d.ts +12 -0
  606. package/serialization/resources/auth/resources/default/types/InvalidContentTypeErrorType.js +43 -0
  607. package/{dist/serialization/resources/auth/resources/v2 → serialization/resources/auth/resources/default}/types/TooManyRequestsErrorType.d.ts +1 -1
  608. package/{api/resources/auth/resources/v2 → serialization/resources/auth/resources/default}/types/index.d.ts +1 -0
  609. package/serialization/resources/auth/resources/{v2 → default}/types/index.js +1 -0
  610. package/serialization/resources/auth/resources/index.d.ts +1 -1
  611. package/serialization/resources/auth/resources/index.js +2 -2
  612. package/serialization/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.d.ts +12 -0
  613. package/serialization/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.js +43 -0
  614. package/serialization/resources/billingNotes/resources/v2/types/index.d.ts +1 -0
  615. package/serialization/resources/billingNotes/resources/v2/types/index.js +1 -0
  616. package/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +0 -1
  617. package/serialization/resources/chargeCapture/resources/v1/client/index.js +1 -2
  618. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +2 -0
  619. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.js +2 -0
  620. package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +2 -0
  621. package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.js +2 -0
  622. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  623. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -0
  624. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +2 -30
  625. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +2 -33
  626. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.d.ts +3 -0
  627. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js +3 -0
  628. package/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +1 -1
  629. package/serialization/resources/chargeCapture/resources/v1/types/index.js +1 -1
  630. package/serialization/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +2 -0
  631. package/serialization/resources/chargeCaptureBundles/resources/v1/client/index.js +41 -0
  632. package/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.d.ts +13 -0
  633. package/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.js +44 -0
  634. package/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -0
  635. package/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/index.js +5 -0
  636. package/{dist/serialization/resources/chargeCapture/resources/v1/client/delete.d.ts → serialization/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.d.ts} +1 -1
  637. package/{dist/serialization/resources/chargeCapture/resources/v1/client/delete.js → serialization/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.js} +2 -2
  638. package/serialization/resources/chargeCaptureBundles/resources/v1/index.d.ts +1 -0
  639. package/serialization/resources/chargeCaptureBundles/resources/v1/index.js +1 -0
  640. package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +18 -0
  641. package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js +49 -0
  642. package/serialization/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +15 -0
  643. package/serialization/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.js +46 -0
  644. package/serialization/resources/claimSubmission/resources/v1/types/index.d.ts +2 -0
  645. package/serialization/resources/claimSubmission/resources/v1/types/index.js +2 -0
  646. package/serialization/resources/commons/types/PhoneNumberOptional.d.ts +14 -0
  647. package/serialization/resources/commons/types/PhoneNumberOptional.js +45 -0
  648. package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  649. package/serialization/resources/commons/types/ProcedureModifier.js +2 -0
  650. package/serialization/resources/commons/types/StreetAddressLongZipOptional.d.ts +13 -0
  651. package/serialization/resources/commons/types/StreetAddressLongZipOptional.js +46 -0
  652. package/serialization/resources/commons/types/index.d.ts +2 -0
  653. package/serialization/resources/commons/types/index.js +2 -0
  654. package/serialization/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.d.ts +14 -0
  655. package/serialization/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.js +45 -0
  656. package/serialization/resources/customSchemas/resources/v1/types/index.d.ts +1 -0
  657. package/serialization/resources/customSchemas/resources/v1/types/index.js +1 -0
  658. package/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +2 -0
  659. package/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.js +2 -0
  660. package/serialization/resources/diagnoses/types/DiagnosisCreate.d.ts +2 -0
  661. package/serialization/resources/diagnoses/types/DiagnosisCreate.js +2 -0
  662. package/serialization/resources/diagnoses/types/DiagnosisCreateOptional.d.ts +17 -0
  663. package/serialization/resources/diagnoses/types/DiagnosisCreateOptional.js +48 -0
  664. package/serialization/resources/diagnoses/types/index.d.ts +1 -0
  665. package/serialization/resources/diagnoses/types/index.js +1 -0
  666. package/serialization/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.d.ts +16 -0
  667. package/serialization/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.js +49 -0
  668. package/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
  669. package/serialization/resources/encounterProviders/resources/v2/types/index.js +1 -0
  670. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +16 -0
  671. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +16 -0
  672. package/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +16 -0
  673. package/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +47 -0
  674. package/serialization/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.d.ts +15 -0
  675. package/serialization/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.js +46 -0
  676. package/serialization/resources/encounters/resources/v4/types/ClinicalNoteOptional.d.ts +16 -0
  677. package/serialization/resources/encounters/resources/v4/types/ClinicalNoteOptional.js +47 -0
  678. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  679. package/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
  680. package/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +56 -0
  681. package/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.js +89 -0
  682. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -16
  683. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +0 -16
  684. package/serialization/resources/encounters/resources/v4/types/EpsdtReferralOptional.d.ts +15 -0
  685. package/serialization/resources/encounters/resources/v4/types/EpsdtReferralOptional.js +46 -0
  686. package/serialization/resources/encounters/resources/v4/types/IntakeQuestionOptional.d.ts +16 -0
  687. package/serialization/resources/encounters/resources/v4/types/IntakeQuestionOptional.js +47 -0
  688. package/serialization/resources/encounters/resources/v4/types/InterventionOptional.d.ts +19 -0
  689. package/serialization/resources/encounters/resources/v4/types/InterventionOptional.js +50 -0
  690. package/serialization/resources/encounters/resources/v4/types/LabOptional.d.ts +15 -0
  691. package/serialization/resources/encounters/resources/v4/types/LabOptional.js +46 -0
  692. package/serialization/resources/encounters/resources/v4/types/MedicationOptional.d.ts +18 -0
  693. package/serialization/resources/encounters/resources/v4/types/MedicationOptional.js +49 -0
  694. package/serialization/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.d.ts +15 -0
  695. package/serialization/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.js +46 -0
  696. package/serialization/resources/encounters/resources/v4/types/index.d.ts +10 -0
  697. package/serialization/resources/encounters/resources/v4/types/index.js +10 -0
  698. package/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +23 -0
  699. package/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.js +54 -0
  700. package/serialization/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  701. package/serialization/resources/guarantor/resources/v1/types/index.js +1 -0
  702. package/serialization/resources/index.d.ts +2 -0
  703. package/serialization/resources/index.js +3 -1
  704. package/serialization/resources/individual/types/IndividualBaseOptional.d.ts +15 -0
  705. package/serialization/resources/individual/types/IndividualBaseOptional.js +46 -0
  706. package/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.d.ts +16 -0
  707. package/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.js +47 -0
  708. package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +4 -4
  709. package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +4 -4
  710. package/serialization/resources/individual/types/SubscriberBaseOptional.d.ts +17 -0
  711. package/serialization/resources/individual/types/SubscriberBaseOptional.js +50 -0
  712. package/serialization/resources/individual/types/SubscriberCreateOptional.d.ts +14 -0
  713. package/serialization/resources/individual/types/SubscriberCreateOptional.js +47 -0
  714. package/serialization/resources/individual/types/index.d.ts +4 -0
  715. package/serialization/resources/individual/types/index.js +4 -0
  716. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
  717. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +1 -0
  718. package/serialization/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.d.ts +21 -0
  719. package/serialization/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.js +54 -0
  720. package/serialization/resources/insuranceCards/resources/v2/types/index.d.ts +1 -0
  721. package/serialization/resources/insuranceCards/resources/v2/types/index.js +1 -0
  722. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageEligibilityCheckResponse.d.ts +2 -2
  723. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageEligibilityCheckResponse.js +2 -2
  724. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/LatestEligibilityCheck.d.ts +1 -1
  725. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/LatestEligibilityCheck.js +1 -1
  726. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +1 -1
  727. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.js +1 -1
  728. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -5
  729. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -5
  730. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/batch.d.ts +11 -0
  731. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/batch.js +42 -0
  732. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +1 -0
  733. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +37 -0
  734. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/index.d.ts +1 -0
  735. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/index.js +1 -0
  736. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/BatchEligibilityResponse.d.ts +13 -0
  737. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/BatchEligibilityResponse.js +44 -0
  738. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheck.d.ts +3 -1
  739. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheck.js +3 -1
  740. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckError.d.ts +15 -0
  741. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckError.js +46 -0
  742. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorDetails.d.ts +17 -0
  743. package/{dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheck.js → serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorDetails.js} +8 -10
  744. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorSource.d.ts +10 -0
  745. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorSource.js +41 -0
  746. package/serialization/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityCheckMetadata.d.ts +2 -2
  747. package/serialization/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityCheckMetadata.js +1 -1
  748. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckPage.d.ts +14 -0
  749. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckPage.js +47 -0
  750. package/{dist/serialization/resources/preEncounter/resources/coverages → serialization/resources/preEncounter/resources/eligibilityChecks}/resources/v1/types/EligibilityCheckStatus.d.ts +1 -1
  751. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRequest.d.ts +1 -0
  752. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRequest.js +1 -0
  753. package/{dist/serialization/resources/preEncounter/resources/coverages → serialization/resources/preEncounter/resources/eligibilityChecks}/resources/v1/types/EligibilityStatus.d.ts +1 -1
  754. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/ParsedResponse.d.ts +1 -1
  755. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/ParsedResponse.js +1 -1
  756. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +8 -0
  757. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +8 -0
  758. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +1 -0
  759. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.js +1 -0
  760. package/serialization/resources/serviceLines/resources/v2/types/DenialReasonContent.d.ts +1 -1
  761. package/serialization/resources/serviceLines/resources/v2/types/DenialReasonContent.js +1 -0
  762. package/serialization/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.d.ts +21 -0
  763. package/serialization/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.js +52 -0
  764. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +33 -0
  765. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +64 -0
  766. package/serialization/resources/serviceLines/resources/v2/types/TestResultOptional.d.ts +14 -0
  767. package/serialization/resources/serviceLines/resources/v2/types/TestResultOptional.js +45 -0
  768. package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +3 -0
  769. package/serialization/resources/serviceLines/resources/v2/types/index.js +3 -0
  770. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +1 -1
  771. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +1 -0
  772. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
  773. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  774. package/serialization/resources/yesNoIndicator/index.d.ts +1 -0
  775. package/serialization/resources/yesNoIndicator/index.js +17 -0
  776. package/serialization/resources/yesNoIndicator/types/YesNoIndicator.d.ts +10 -0
  777. package/serialization/resources/yesNoIndicator/types/YesNoIndicator.js +41 -0
  778. package/serialization/resources/yesNoIndicator/types/index.d.ts +1 -0
  779. package/serialization/resources/yesNoIndicator/types/index.js +17 -0
  780. package/version.d.ts +1 -1
  781. package/version.js +1 -1
  782. package/api/resources/auth/resources/v2/client/getToken.d.ts +0 -28
  783. package/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheck.d.ts +0 -11
  784. package/dist/api/resources/auth/resources/v2/client/getToken.d.ts +0 -28
  785. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheck.d.ts +0 -11
  786. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheck.d.ts +0 -19
  787. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheck.d.ts +0 -19
  788. /package/api/resources/auth/resources/{v2 → default}/client/index.d.ts +0 -0
  789. /package/api/resources/auth/resources/{v2 → default}/client/index.js +0 -0
  790. /package/api/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.d.ts +0 -0
  791. /package/api/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.js +0 -0
  792. /package/api/resources/auth/resources/{v2 → default}/client/requests/index.d.ts +0 -0
  793. /package/api/resources/auth/resources/{v2 → default}/client/requests/index.js +0 -0
  794. /package/api/resources/auth/resources/{v2 → default}/index.d.ts +0 -0
  795. /package/api/resources/auth/resources/{v2 → default}/index.js +0 -0
  796. /package/api/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.d.ts +0 -0
  797. /package/api/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.js +0 -0
  798. /package/api/resources/auth/resources/{v2/types/TooManyRequestsErrorType.js → default/types/InvalidContentTypeErrorType.js} +0 -0
  799. /package/api/resources/auth/resources/{v2 → default}/types/TooManyRequestsErrorType.d.ts +0 -0
  800. /package/{dist/api/resources/auth/resources/v2 → api/resources/auth/resources/default}/types/TooManyRequestsErrorType.js +0 -0
  801. /package/api/resources/{preEncounter/resources/coverages/resources/v1/types/EligibilityCheck.js → billingNotes/resources/v2/types/BillingNoteBaseOptional.js} +0 -0
  802. /package/api/resources/{preEncounter/resources/coverages/resources/v1/types/EligibilityCheckMetadata.js → chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.js} +0 -0
  803. /package/{dist/api/resources/auth/resources/v2/client/requests/AuthGetTokenRequest.js → api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js} +0 -0
  804. /package/{dist/api/resources/auth/resources/v2/types/AuthGetTokenResponse.js → api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.js} +0 -0
  805. /package/{dist/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheck.js → api/resources/commons/types/PhoneNumberOptional.js} +0 -0
  806. /package/{dist/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckMetadata.js → api/resources/commons/types/StreetAddressLongZipOptional.js} +0 -0
  807. /package/api/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityCheckStatus.js +0 -0
  808. /package/api/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityStatus.js +0 -0
  809. /package/dist/api/resources/auth/resources/{v2 → default}/client/index.d.ts +0 -0
  810. /package/dist/api/resources/auth/resources/{v2 → default}/client/index.js +0 -0
  811. /package/dist/api/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.d.ts +0 -0
  812. /package/dist/api/resources/auth/resources/{v2 → default}/client/requests/index.d.ts +0 -0
  813. /package/dist/api/resources/auth/resources/{v2 → default}/client/requests/index.js +0 -0
  814. /package/dist/api/resources/auth/resources/{v2 → default}/index.d.ts +0 -0
  815. /package/dist/api/resources/auth/resources/{v2 → default}/index.js +0 -0
  816. /package/dist/api/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.d.ts +0 -0
  817. /package/dist/api/resources/auth/resources/{v2 → default}/types/TooManyRequestsErrorType.d.ts +0 -0
  818. /package/dist/api/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityCheckStatus.js +0 -0
  819. /package/dist/api/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityStatus.js +0 -0
  820. /package/dist/serialization/resources/auth/resources/{v2 → default}/client/index.d.ts +0 -0
  821. /package/dist/serialization/resources/auth/resources/{v2 → default}/client/index.js +0 -0
  822. /package/dist/serialization/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.js +0 -0
  823. /package/dist/serialization/resources/auth/resources/{v2 → default}/client/requests/index.d.ts +0 -0
  824. /package/dist/serialization/resources/auth/resources/{v2 → default}/client/requests/index.js +0 -0
  825. /package/dist/serialization/resources/auth/resources/{v2 → default}/index.d.ts +0 -0
  826. /package/dist/serialization/resources/auth/resources/{v2 → default}/index.js +0 -0
  827. /package/dist/serialization/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.js +0 -0
  828. /package/dist/serialization/resources/auth/resources/{v2 → default}/types/TooManyRequestsErrorType.js +0 -0
  829. /package/dist/serialization/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityCheckStatus.js +0 -0
  830. /package/dist/serialization/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityStatus.js +0 -0
  831. /package/serialization/resources/auth/resources/{v2 → default}/client/index.d.ts +0 -0
  832. /package/serialization/resources/auth/resources/{v2 → default}/client/index.js +0 -0
  833. /package/serialization/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.js +0 -0
  834. /package/serialization/resources/auth/resources/{v2 → default}/client/requests/index.d.ts +0 -0
  835. /package/serialization/resources/auth/resources/{v2 → default}/client/requests/index.js +0 -0
  836. /package/serialization/resources/auth/resources/{v2 → default}/index.d.ts +0 -0
  837. /package/serialization/resources/auth/resources/{v2 → default}/index.js +0 -0
  838. /package/serialization/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.js +0 -0
  839. /package/serialization/resources/auth/resources/{v2 → default}/types/TooManyRequestsErrorType.js +0 -0
  840. /package/serialization/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityCheckStatus.js +0 -0
  841. /package/serialization/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityStatus.js +0 -0
@@ -1181,6 +1181,9 @@ export type ProcedureModifier =
1181
1181
  /**
1182
1182
  * The treatment was approved under the workers’ compensation plan */
1183
1183
  | "W3"
1184
+ /**
1185
+ * Episodic/Focused Services - Reported by a specialty focused clinician who provides care that is time-limited */
1186
+ | "X4"
1184
1187
  /**
1185
1188
  * Two or more separate patient visits on the same date of service */
1186
1189
  | "XE"
@@ -1192,7 +1195,10 @@ export type ProcedureModifier =
1192
1195
  | "XS"
1193
1196
  /**
1194
1197
  * The use of a service that is distinct because it does not overlap usual components of the main service */
1195
- | "XU";
1198
+ | "XU"
1199
+ /**
1200
+ * Custom modifier */
1201
+ | "XY";
1196
1202
  export declare const ProcedureModifier: {
1197
1203
  readonly Av: "AV";
1198
1204
  readonly Au: "AU";
@@ -1587,8 +1593,10 @@ export declare const ProcedureModifier: {
1587
1593
  readonly W1: "W1";
1588
1594
  readonly W2: "W2";
1589
1595
  readonly W3: "W3";
1596
+ readonly X4: "X4";
1590
1597
  readonly Xe: "XE";
1591
1598
  readonly Xp: "XP";
1592
1599
  readonly Xs: "XS";
1593
1600
  readonly Xu: "XU";
1601
+ readonly Xy: "XY";
1594
1602
  };
@@ -398,8 +398,10 @@ exports.ProcedureModifier = {
398
398
  W1: "W1",
399
399
  W2: "W2",
400
400
  W3: "W3",
401
+ X4: "X4",
401
402
  Xe: "XE",
402
403
  Xp: "XP",
403
404
  Xs: "XS",
404
405
  Xu: "XU",
406
+ Xy: "XY",
405
407
  };
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * address1: "123 Main St",
9
+ * address2: "Apt 1",
10
+ * city: "New York",
11
+ * state: CandidApi.State.Ny,
12
+ * zipCode: "10001",
13
+ * zipPlusFourCode: "1234"
14
+ * }
15
+ */
16
+ export interface StreetAddressLongZipOptional extends CandidApi.StreetAddressOptionalBase {
17
+ /** 4-digit zip add-on code https://en.wikipedia.org/wiki/ZIP_Code#ZIP+4 */
18
+ zipPlusFourCode?: string;
19
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -40,6 +40,7 @@ export * from "./StreetAddressOptionalBase";
40
40
  export * from "./StreetAddressShortZipOptional";
41
41
  export * from "./StreetAddressShortZip";
42
42
  export * from "./StreetAddressLongZip";
43
+ export * from "./StreetAddressLongZipOptional";
43
44
  export * from "./Regions";
44
45
  export * from "./RegionStates";
45
46
  export * from "./RegionNational";
@@ -64,6 +65,7 @@ export * from "./RequestValidationError";
64
65
  export * from "./UpdatesDisabledDueToExternalSystemIntegrationErrorMessage";
65
66
  export * from "./OrganizationNotAuthorizedErrorMessage";
66
67
  export * from "./PhoneNumber";
68
+ export * from "./PhoneNumberOptional";
67
69
  export * from "./PhoneNumberType";
68
70
  export * from "./Email";
69
71
  export * from "./DelayReasonCode";
@@ -56,6 +56,7 @@ __exportStar(require("./StreetAddressOptionalBase"), exports);
56
56
  __exportStar(require("./StreetAddressShortZipOptional"), exports);
57
57
  __exportStar(require("./StreetAddressShortZip"), exports);
58
58
  __exportStar(require("./StreetAddressLongZip"), exports);
59
+ __exportStar(require("./StreetAddressLongZipOptional"), exports);
59
60
  __exportStar(require("./Regions"), exports);
60
61
  __exportStar(require("./RegionStates"), exports);
61
62
  __exportStar(require("./RegionNational"), exports);
@@ -80,6 +81,7 @@ __exportStar(require("./RequestValidationError"), exports);
80
81
  __exportStar(require("./UpdatesDisabledDueToExternalSystemIntegrationErrorMessage"), exports);
81
82
  __exportStar(require("./OrganizationNotAuthorizedErrorMessage"), exports);
82
83
  __exportStar(require("./PhoneNumber"), exports);
84
+ __exportStar(require("./PhoneNumberOptional"), exports);
83
85
  __exportStar(require("./PhoneNumberType"), exports);
84
86
  __exportStar(require("./Email"), exports);
85
87
  __exportStar(require("./DelayReasonCode"), exports);
@@ -71,7 +71,7 @@ class V2 {
71
71
  const _response = yield core.fetcher({
72
72
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/contracts/v2/${encodeURIComponent(serializers.contracts.v2.ContractId.jsonOrThrow(contractId))}`),
73
73
  method: "GET",
74
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
74
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
75
  contentType: "application/json",
76
76
  requestType: "json",
77
77
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -172,7 +172,7 @@ class V2 {
172
172
  const _response = yield core.fetcher({
173
173
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/contracts/v2"),
174
174
  method: "GET",
175
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
175
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
176
176
  contentType: "application/json",
177
177
  queryParameters: _queryParams,
178
178
  requestType: "json",
@@ -216,7 +216,7 @@ class V2 {
216
216
  const _response = yield core.fetcher({
217
217
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/contracts/v2"),
218
218
  method: "POST",
219
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
219
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
220
220
  contentType: "application/json",
221
221
  requestType: "json",
222
222
  body: serializers.contracts.v2.ContractCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -254,7 +254,7 @@ class V2 {
254
254
  const _response = yield core.fetcher({
255
255
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/contracts/v2/${encodeURIComponent(serializers.contracts.v2.ContractId.jsonOrThrow(contractId))}`),
256
256
  method: "DELETE",
257
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
257
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
258
258
  contentType: "application/json",
259
259
  requestType: "json",
260
260
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -301,7 +301,7 @@ class V2 {
301
301
  const _response = yield core.fetcher({
302
302
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/contracts/v2/${encodeURIComponent(serializers.contracts.v2.ContractId.jsonOrThrow(contractId))}`),
303
303
  method: "PATCH",
304
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
304
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
305
305
  contentType: "application/json",
306
306
  requestType: "json",
307
307
  body: serializers.contracts.v2.ContractUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -79,7 +79,7 @@ class V2 {
79
79
  const _response = yield core.fetcher({
80
80
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/provider-credentialing-span/v2"),
81
81
  method: "POST",
82
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
83
  contentType: "application/json",
84
84
  requestType: "json",
85
85
  body: serializers.credentialing.v2.ProviderCredentialingSpanCreate.jsonOrThrow(request, {
@@ -134,7 +134,7 @@ class V2 {
134
134
  const _response = yield core.fetcher({
135
135
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/provider-credentialing-span/v2/${encodeURIComponent(serializers.ProviderCredentialingSpanId.jsonOrThrow(providerCredentialingId))}`),
136
136
  method: "GET",
137
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
137
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
138
138
  contentType: "application/json",
139
139
  requestType: "json",
140
140
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -206,7 +206,7 @@ class V2 {
206
206
  const _response = yield core.fetcher({
207
207
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/provider-credentialing-span/v2"),
208
208
  method: "GET",
209
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
209
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
210
210
  contentType: "application/json",
211
211
  queryParameters: _queryParams,
212
212
  requestType: "json",
@@ -261,7 +261,7 @@ class V2 {
261
261
  const _response = yield core.fetcher({
262
262
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/provider-credentialing-span/v2/${encodeURIComponent(serializers.ProviderCredentialingSpanId.jsonOrThrow(providerCredentialingId))}`),
263
263
  method: "DELETE",
264
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
264
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
265
265
  contentType: "application/json",
266
266
  requestType: "json",
267
267
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -309,7 +309,7 @@ class V2 {
309
309
  const _response = yield core.fetcher({
310
310
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/provider-credentialing-span/v2/${encodeURIComponent(serializers.ProviderCredentialingSpanId.jsonOrThrow(providerCredentialingId))}`),
311
311
  method: "PATCH",
312
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
312
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
313
313
  contentType: "application/json",
314
314
  requestType: "json",
315
315
  body: serializers.credentialing.v2.ProviderCredentialingSpanUpdate.jsonOrThrow(request, {
@@ -72,7 +72,7 @@ class V1 {
72
72
  const _response = yield core.fetcher({
73
73
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/custom-schemas/v1"),
74
74
  method: "GET",
75
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
76
  contentType: "application/json",
77
77
  requestType: "json",
78
78
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -125,7 +125,7 @@ class V1 {
125
125
  const _response = yield core.fetcher({
126
126
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/custom-schemas/v1/${encodeURIComponent(serializers.SchemaId.jsonOrThrow(schemaId))}`),
127
127
  method: "GET",
128
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
128
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
129
129
  contentType: "application/json",
130
130
  requestType: "json",
131
131
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -196,7 +196,7 @@ class V1 {
196
196
  const _response = yield core.fetcher({
197
197
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/custom-schemas/v1"),
198
198
  method: "POST",
199
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
199
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
200
200
  contentType: "application/json",
201
201
  requestType: "json",
202
202
  body: serializers.customSchemas.v1.SchemaCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -258,7 +258,7 @@ class V1 {
258
258
  const _response = yield core.fetcher({
259
259
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/custom-schemas/v1/${encodeURIComponent(serializers.SchemaId.jsonOrThrow(schemaId))}`),
260
260
  method: "PATCH",
261
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
261
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
262
262
  contentType: "application/json",
263
263
  requestType: "json",
264
264
  body: serializers.customSchemas.v1.SchemaUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * schemaId: CandidApi.SchemaId("ec096b13-f80a-471d-aaeb-54b021c9d582"),
9
+ * content: {
10
+ * "provider_category": "internist",
11
+ * "is_urgent_care": true,
12
+ * "bmi": 24.2,
13
+ * "age": 38
14
+ * }
15
+ * }
16
+ */
17
+ export interface SchemaInstanceOptional {
18
+ /** The schema to which the content must adhere. */
19
+ schemaId?: CandidApi.SchemaId;
20
+ /** A set of key-value pairs that adhere to the naming and type convention of the schema. Not all keys in the schema must be included, but attaching any key that does not exist in the schema or attaching a key with the incorrect value type will result in errors. */
21
+ content?: Record<string, unknown>;
22
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,6 @@
1
1
  export * from "./Schema";
2
2
  export * from "./SchemaInstance";
3
+ export * from "./SchemaInstanceOptional";
3
4
  export * from "./SchemaField";
4
5
  export * from "./SchemaGetMultiResponse";
5
6
  export * from "./SchemaWithNameAlreadyExistsError";
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Schema"), exports);
18
18
  __exportStar(require("./SchemaInstance"), exports);
19
+ __exportStar(require("./SchemaInstanceOptional"), exports);
19
20
  __exportStar(require("./SchemaField"), exports);
20
21
  __exportStar(require("./SchemaGetMultiResponse"), exports);
21
22
  __exportStar(require("./SchemaWithNameAlreadyExistsError"), exports);
@@ -77,7 +77,7 @@ class Diagnoses {
77
77
  const _response = yield core.fetcher({
78
78
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/diagnoses/v2"),
79
79
  method: "POST",
80
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
81
  contentType: "application/json",
82
82
  requestType: "json",
83
83
  body: serializers.StandaloneDiagnosisCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -118,7 +118,7 @@ class Diagnoses {
118
118
  const _response = yield core.fetcher({
119
119
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/diagnoses/v2/${encodeURIComponent(serializers.DiagnosisId.jsonOrThrow(diagnosisId))}`),
120
120
  method: "PATCH",
121
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
121
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
122
122
  contentType: "application/json",
123
123
  requestType: "json",
124
124
  body: serializers.DiagnosisUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -172,7 +172,7 @@ class Diagnoses {
172
172
  const _response = yield core.fetcher({
173
173
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/diagnoses/v2/${encodeURIComponent(serializers.DiagnosisId.jsonOrThrow(diagnosisId))}`),
174
174
  method: "DELETE",
175
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
175
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
176
176
  contentType: "application/json",
177
177
  requestType: "json",
178
178
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -22,4 +22,11 @@ export interface DiagnosisUpdate {
22
22
  * - Up to 4 (or as few as 0) letters and digits
23
23
  */
24
24
  code?: string;
25
+ /**
26
+ * For Institutional claims only.
27
+ * A "Y" indicates that the onset occurred prior to admission to the hospital.
28
+ * An "N" indicates that the onset did NOT occur prior to admission to the hospital.
29
+ * A "U" indicates that it is unknown whether the onset occurred prior to admission to the hospital or not.
30
+ */
31
+ presentOnAdmissionIndicator?: CandidApi.YesNoIndicator;
25
32
  }
@@ -18,4 +18,11 @@ export interface DiagnosisCreate {
18
18
  * - Up to 4 (or as few as 0) letters and digits
19
19
  */
20
20
  code: string;
21
+ /**
22
+ * For Institutional claims only.
23
+ * A "Y" indicates that the onset occurred prior to admission to the hospital.
24
+ * An "N" indicates that the onset did NOT occur prior to admission to the hospital.
25
+ * A "U" indicates that it is unknown whether the onset occurred prior to admission to the hospital or not.
26
+ */
27
+ presentOnAdmissionIndicator?: CandidApi.YesNoIndicator;
21
28
  }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../index";
5
+ export interface DiagnosisCreateOptional {
6
+ /** Empty string not allowed. */
7
+ name?: string;
8
+ /** Typically, providers submitting claims to Candid are using ICD-10 diagnosis codes. If you are using ICD-10 codes, the primary diagnosis code listed on the claim should use the ABK code_type. If more than one diagnosis is being submitted on a claim, please use ABF for the rest of the listed diagnoses. If you are using ICD-9 diagnosis codes, use BK and BF for the principal and following diagnosis code(s) respectively. */
9
+ codeType?: CandidApi.DiagnosisTypeCode;
10
+ /**
11
+ * Empty string not allowed.
12
+ * Should be of the appropriate format for the provided `code_type`.
13
+ * Must obey the ICD-10 format if an ICD-10 code_type is provided, specifically:
14
+ * - Letter
15
+ * - Digit
16
+ * - Digit or the letter `A` or `B`
17
+ * - (Optional) Period `.`
18
+ * - Up to 4 (or as few as 0) letters and digits
19
+ */
20
+ code?: string;
21
+ /**
22
+ * For Institutional claims only.
23
+ * A "Y" indicates that the onset occurred prior to admission to the hospital.
24
+ * An "N" indicates that the onset did NOT occur prior to admission to the hospital.
25
+ * A "U" indicates that it is unknown whether the onset occurred prior to admission to the hospital or not.
26
+ */
27
+ presentOnAdmissionIndicator?: CandidApi.YesNoIndicator;
28
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,5 @@
1
1
  export * from "./DiagnosisId";
2
+ export * from "./DiagnosisCreateOptional";
2
3
  export * from "./DiagnosisCreate";
3
4
  export * from "./StandaloneDiagnosisCreate";
4
5
  export * from "./DiagnosisTypeCode";
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./DiagnosisId"), exports);
18
+ __exportStar(require("./DiagnosisCreateOptional"), exports);
18
19
  __exportStar(require("./DiagnosisCreate"), exports);
19
20
  __exportStar(require("./StandaloneDiagnosisCreate"), exports);
20
21
  __exportStar(require("./DiagnosisTypeCode"), exports);
@@ -91,7 +91,7 @@ class V2 {
91
91
  const _response = yield core.fetcher({
92
92
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/eligibility/v2"),
93
93
  method: "POST",
94
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
95
95
  contentType: "application/json",
96
96
  requestType: "json",
97
97
  body: request,
@@ -157,7 +157,7 @@ class V2 {
157
157
  const _response = yield core.fetcher({
158
158
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/eligibility/v2/availity"),
159
159
  method: "GET",
160
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
160
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
161
161
  contentType: "application/json",
162
162
  requestType: "json",
163
163
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -221,7 +221,7 @@ class V2 {
221
221
  const _response = yield core.fetcher({
222
222
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/eligibility/v2/availity"),
223
223
  method: "POST",
224
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
224
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
225
225
  contentType: "application/json",
226
226
  requestType: "json",
227
227
  body: request,
@@ -71,7 +71,7 @@ class V1 {
71
71
  const _response = yield core.fetcher({
72
72
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/encounter-attachments/v1/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
73
73
  method: "GET",
74
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
74
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
75
  contentType: "application/json",
76
76
  requestType: "json",
77
77
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -116,7 +116,7 @@ class V1 {
116
116
  const _response = yield core.fetcher({
117
117
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/encounter-attachments/v1/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
118
118
  method: "PUT",
119
- headers: Object.assign(Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
119
+ headers: Object.assign(Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
120
120
  requestType: "file",
121
121
  duplex: _maybeEncodedRequest.duplex,
122
122
  body: _maybeEncodedRequest.body,
@@ -157,7 +157,7 @@ class V1 {
157
157
  const _response = yield core.fetcher({
158
158
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/encounter-attachments/v1/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
159
159
  method: "DELETE",
160
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
160
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
161
161
  contentType: "application/json",
162
162
  requestType: "json",
163
163
  body: serializers.encounterAttachments.v1.DeleteAttachmentRequest.jsonOrThrow(request, {