candidhealth 0.45.0 → 0.46.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 (371) hide show
  1. package/README.md +4 -18
  2. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  3. package/api/resources/billingNotes/resources/v2/client/Client.d.ts +2 -3
  4. package/api/resources/billingNotes/resources/v2/client/Client.js +5 -6
  5. package/api/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.d.ts +1 -1
  6. package/api/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +1 -2
  7. package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +5 -46
  8. package/api/resources/chargeCapture/resources/v1/client/Client.js +11 -52
  9. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +1 -3
  10. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +1 -9
  11. package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +5 -15
  12. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +1 -35
  13. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +1 -1
  14. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +1 -22
  15. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -25
  16. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureClaimCreationsRequest.d.ts +1 -22
  17. package/api/resources/commons/types/InsuranceTypeCode.d.ts +1 -1
  18. package/api/resources/contracts/resources/v2/client/Client.d.ts +3 -67
  19. package/api/resources/contracts/resources/v2/client/Client.js +19 -73
  20. package/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +1 -25
  21. package/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +1 -36
  22. package/api/resources/contracts/resources/v2/client/requests/GetMultiContractsRequest.d.ts +9 -9
  23. package/api/resources/contracts/resources/v2/types/ContractSortField.d.ts +12 -0
  24. package/api/resources/contracts/resources/v2/types/ContractSortField.js +14 -0
  25. package/api/resources/contracts/resources/v2/types/index.d.ts +1 -0
  26. package/api/resources/contracts/resources/v2/types/index.js +1 -0
  27. package/api/resources/credentialing/resources/v2/client/Client.d.ts +4 -26
  28. package/api/resources/credentialing/resources/v2/client/Client.js +9 -31
  29. package/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +1 -8
  30. package/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanCreate.d.ts +4 -14
  31. package/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanUpdate.d.ts +3 -20
  32. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  33. package/api/resources/diagnoses/client/Client.d.ts +3 -8
  34. package/api/resources/diagnoses/client/Client.js +6 -11
  35. package/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +2 -10
  36. package/api/resources/diagnoses/types/DiagnosisCreate.d.ts +5 -6
  37. package/api/resources/eligibility/resources/v2/client/Client.d.ts +2 -6
  38. package/api/resources/eligibility/resources/v2/client/Client.js +5 -9
  39. package/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +0 -3
  40. package/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -6
  41. package/api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentRequest.d.ts +0 -4
  42. package/api/resources/encounterProviders/resources/v2/client/Client.d.ts +8 -114
  43. package/api/resources/encounterProviders/resources/v2/client/Client.js +20 -126
  44. package/api/resources/encounterProviders/resources/v2/client/createInitialReferringProvider.d.ts +1 -2
  45. package/api/resources/encounters/resources/v4/client/Client.d.ts +49 -674
  46. package/api/resources/encounters/resources/v4/client/Client.js +54 -679
  47. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +35 -410
  48. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +6 -155
  49. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
  50. package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +5 -5
  51. package/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +7 -7
  52. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +6 -9
  53. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +7 -10
  54. package/api/resources/expectedNetworkStatus/resources/v1/client/requests/ExpectedNetworkStatusRequest.d.ts +7 -13
  55. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +12 -16
  56. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +14 -18
  57. package/api/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.d.ts +5 -0
  58. package/api/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.js +5 -0
  59. package/api/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +5 -8
  60. package/api/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +1 -0
  61. package/api/resources/expectedNetworkStatus/resources/v2/types/index.js +1 -0
  62. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  63. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +1 -5
  64. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +2 -6
  65. package/api/resources/externalPaymentAccountConfig/resources/v1/client/requests/GetExternalPaymentAccountConfigsRequest.d.ts +1 -4
  66. package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +37 -38
  67. package/api/resources/feeSchedules/resources/v3/client/Client.js +47 -48
  68. package/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +32 -5
  69. package/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -15
  70. package/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +1 -13
  71. package/api/resources/feeSchedules/resources/v3/types/PayerThreshold.d.ts +1 -1
  72. package/api/resources/feeSchedules/resources/v3/types/Rate.d.ts +1 -1
  73. package/api/resources/feeSchedules/resources/v3/types/RateEntry.d.ts +1 -1
  74. package/api/resources/guarantor/resources/v1/client/Client.d.ts +8 -38
  75. package/api/resources/guarantor/resources/v1/client/Client.js +11 -41
  76. package/api/resources/importInvoice/resources/v1/client/Client.d.ts +11 -34
  77. package/api/resources/importInvoice/resources/v1/client/Client.js +15 -38
  78. package/api/resources/importInvoice/resources/v1/client/requests/SearchImportedInvoicesRequest.d.ts +1 -12
  79. package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +92 -10
  80. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +95 -13
  81. package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +1 -10
  82. package/api/resources/insurancePayments/resources/v1/client/Client.js +3 -12
  83. package/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +1 -10
  84. package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +12 -26
  85. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +17 -31
  86. package/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.d.ts +1 -10
  87. package/api/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.d.ts +1 -11
  88. package/api/resources/medicationDispense/resources/v1/client/Client.d.ts +5 -17
  89. package/api/resources/medicationDispense/resources/v1/client/Client.js +6 -18
  90. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.d.ts +9 -25
  91. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +14 -30
  92. package/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/GetMultiNonInsurancePayerPaymentRequest.d.ts +1 -9
  93. package/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/UpdateNonInsurancePayerPaymentRequest.d.ts +1 -11
  94. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +9 -30
  95. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +14 -35
  96. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/GetMultiNonInsurancePayerRefundsRequest.d.ts +1 -9
  97. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/NonInsurancePayerRefundUpdate.d.ts +1 -15
  98. package/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +3 -37
  99. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +9 -43
  100. package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +1 -9
  101. package/api/resources/organizationProviders/resources/v3/client/Client.d.ts +12 -58
  102. package/api/resources/organizationProviders/resources/v3/client/Client.js +16 -62
  103. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +1 -1
  104. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +6 -6
  105. package/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityPhysicalType.d.ts +1 -1
  106. package/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityType.d.ts +3 -3
  107. package/api/resources/patientPayments/resources/v4/client/Client.d.ts +10 -29
  108. package/api/resources/patientPayments/resources/v4/client/Client.js +15 -34
  109. package/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +1 -13
  110. package/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentCreate.d.ts +8 -5
  111. package/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.d.ts +1 -11
  112. package/api/resources/patientRefunds/resources/v1/client/Client.d.ts +10 -34
  113. package/api/resources/patientRefunds/resources/v1/client/Client.js +15 -39
  114. package/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +1 -13
  115. package/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundCreate.d.ts +8 -6
  116. package/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.d.ts +1 -15
  117. package/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +3 -15
  118. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +8 -20
  119. package/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +1 -13
  120. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  121. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +14 -84
  122. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +21 -91
  123. package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +1 -7
  124. package/api/resources/preEncounter/resources/common/types/BaseModel.d.ts +2 -2
  125. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +28 -87
  126. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +38 -97
  127. package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CheckEligibilityRequest.d.ts +1 -1
  128. package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiPaginatedRequest.d.ts +1 -6
  129. package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiRequest.d.ts +1 -3
  130. package/api/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.d.ts +1 -1
  131. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +4 -18
  132. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +5 -19
  133. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.d.ts +15 -34
  134. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +20 -39
  135. package/api/resources/preEncounter/resources/images/resources/v1/client/requests/ImageGetMultiRequest.d.ts +1 -4
  136. package/api/resources/preEncounter/resources/images/resources/v1/types/Image.d.ts +1 -1
  137. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.d.ts +2 -14
  138. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +4 -16
  139. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +1 -7
  140. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +1 -7
  141. package/api/resources/preEncounter/resources/lists/resources/v1/types/FilterQueryString.d.ts +1 -1
  142. package/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +1 -1
  143. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.d.ts +6 -10
  144. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +10 -14
  145. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +328 -456
  146. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +339 -467
  147. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +104 -144
  148. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +104 -144
  149. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientGetMultiRequest.d.ts +1 -4
  150. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientsSearchRequestPaginated.d.ts +1 -7
  151. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/SearchProvidersRequest.d.ts +1 -1
  152. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -3
  153. package/api/resources/preEncounter/resources/patients/resources/v1/types/Patient.d.ts +2 -2
  154. package/api/resources/preEncounter/resources/patients/resources/v1/types/PatientSortField.d.ts +1 -1
  155. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.d.ts +7 -10
  156. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +12 -15
  157. package/api/resources/preEncounter/resources/tags/resources/v1/client/requests/GetAllTagsRequest.d.ts +1 -4
  158. package/api/resources/serviceFacility/client/Client.d.ts +1 -11
  159. package/api/resources/serviceFacility/client/Client.js +2 -12
  160. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +4 -82
  161. package/api/resources/serviceLines/resources/v2/client/Client.js +7 -85
  162. package/api/resources/superbills/resources/v1/client/Client.d.ts +2 -10
  163. package/api/resources/superbills/resources/v1/client/Client.js +3 -11
  164. package/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +3 -14
  165. package/api/resources/tasks/resources/v3/client/Client.d.ts +4 -25
  166. package/api/resources/tasks/resources/v3/client/Client.js +9 -30
  167. package/api/resources/tasks/resources/v3/client/requests/GetAllTasksRequest.d.ts +1 -15
  168. package/api/resources/writeOffs/resources/v1/client/Client.d.ts +7 -13
  169. package/api/resources/writeOffs/resources/v1/client/Client.js +13 -19
  170. package/api/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.d.ts +6 -1
  171. package/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.d.ts +1 -12
  172. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  173. package/dist/api/resources/billingNotes/resources/v2/client/Client.d.ts +2 -3
  174. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +5 -6
  175. package/dist/api/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.d.ts +1 -1
  176. package/dist/api/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +1 -2
  177. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +5 -46
  178. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +11 -52
  179. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +1 -3
  180. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +1 -9
  181. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +5 -15
  182. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +1 -35
  183. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +1 -1
  184. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +1 -22
  185. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -25
  186. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureClaimCreationsRequest.d.ts +1 -22
  187. package/dist/api/resources/commons/types/InsuranceTypeCode.d.ts +1 -1
  188. package/dist/api/resources/contracts/resources/v2/client/Client.d.ts +3 -67
  189. package/dist/api/resources/contracts/resources/v2/client/Client.js +19 -73
  190. package/dist/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +1 -25
  191. package/dist/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +1 -36
  192. package/dist/api/resources/contracts/resources/v2/client/requests/GetMultiContractsRequest.d.ts +9 -9
  193. package/dist/api/resources/contracts/resources/v2/types/ContractSortField.d.ts +12 -0
  194. package/dist/api/resources/contracts/resources/v2/types/ContractSortField.js +14 -0
  195. package/dist/api/resources/contracts/resources/v2/types/index.d.ts +1 -0
  196. package/dist/api/resources/contracts/resources/v2/types/index.js +1 -0
  197. package/dist/api/resources/credentialing/resources/v2/client/Client.d.ts +4 -26
  198. package/dist/api/resources/credentialing/resources/v2/client/Client.js +9 -31
  199. package/dist/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +1 -8
  200. package/dist/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanCreate.d.ts +4 -14
  201. package/dist/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanUpdate.d.ts +3 -20
  202. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  203. package/dist/api/resources/diagnoses/client/Client.d.ts +3 -8
  204. package/dist/api/resources/diagnoses/client/Client.js +6 -11
  205. package/dist/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +2 -10
  206. package/dist/api/resources/diagnoses/types/DiagnosisCreate.d.ts +5 -6
  207. package/dist/api/resources/eligibility/resources/v2/client/Client.d.ts +2 -6
  208. package/dist/api/resources/eligibility/resources/v2/client/Client.js +5 -9
  209. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +0 -3
  210. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -6
  211. package/dist/api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentRequest.d.ts +0 -4
  212. package/dist/api/resources/encounterProviders/resources/v2/client/Client.d.ts +8 -114
  213. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +20 -126
  214. package/dist/api/resources/encounterProviders/resources/v2/client/createInitialReferringProvider.d.ts +1 -2
  215. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +49 -674
  216. package/dist/api/resources/encounters/resources/v4/client/Client.js +54 -679
  217. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +35 -410
  218. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +6 -155
  219. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
  220. package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +5 -5
  221. package/dist/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +7 -7
  222. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +6 -9
  223. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +7 -10
  224. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/requests/ExpectedNetworkStatusRequest.d.ts +7 -13
  225. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +12 -16
  226. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +14 -18
  227. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.d.ts +5 -0
  228. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.js +5 -0
  229. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +5 -8
  230. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +1 -0
  231. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/index.js +1 -0
  232. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  233. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +1 -5
  234. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +2 -6
  235. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/requests/GetExternalPaymentAccountConfigsRequest.d.ts +1 -4
  236. package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +37 -38
  237. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +47 -48
  238. package/dist/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +32 -5
  239. package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -15
  240. package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +1 -13
  241. package/dist/api/resources/feeSchedules/resources/v3/types/PayerThreshold.d.ts +1 -1
  242. package/dist/api/resources/feeSchedules/resources/v3/types/Rate.d.ts +1 -1
  243. package/dist/api/resources/feeSchedules/resources/v3/types/RateEntry.d.ts +1 -1
  244. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +8 -38
  245. package/dist/api/resources/guarantor/resources/v1/client/Client.js +11 -41
  246. package/dist/api/resources/importInvoice/resources/v1/client/Client.d.ts +11 -34
  247. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +15 -38
  248. package/dist/api/resources/importInvoice/resources/v1/client/requests/SearchImportedInvoicesRequest.d.ts +1 -12
  249. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +92 -10
  250. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +95 -13
  251. package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +1 -10
  252. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +3 -12
  253. package/dist/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +1 -10
  254. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +12 -26
  255. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +17 -31
  256. package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.d.ts +1 -10
  257. package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.d.ts +1 -11
  258. package/dist/api/resources/medicationDispense/resources/v1/client/Client.d.ts +5 -17
  259. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +6 -18
  260. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.d.ts +9 -25
  261. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +14 -30
  262. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/GetMultiNonInsurancePayerPaymentRequest.d.ts +1 -9
  263. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/UpdateNonInsurancePayerPaymentRequest.d.ts +1 -11
  264. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +9 -30
  265. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +14 -35
  266. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/GetMultiNonInsurancePayerRefundsRequest.d.ts +1 -9
  267. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/NonInsurancePayerRefundUpdate.d.ts +1 -15
  268. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +3 -37
  269. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +9 -43
  270. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +1 -9
  271. package/dist/api/resources/organizationProviders/resources/v3/client/Client.d.ts +12 -58
  272. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +16 -62
  273. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +1 -1
  274. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +6 -6
  275. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityPhysicalType.d.ts +1 -1
  276. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityType.d.ts +3 -3
  277. package/dist/api/resources/patientPayments/resources/v4/client/Client.d.ts +10 -29
  278. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +15 -34
  279. package/dist/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +1 -13
  280. package/dist/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentCreate.d.ts +8 -5
  281. package/dist/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.d.ts +1 -11
  282. package/dist/api/resources/patientRefunds/resources/v1/client/Client.d.ts +10 -34
  283. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +15 -39
  284. package/dist/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +1 -13
  285. package/dist/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundCreate.d.ts +8 -6
  286. package/dist/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.d.ts +1 -15
  287. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +3 -15
  288. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +8 -20
  289. package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +1 -13
  290. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  291. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +14 -84
  292. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +21 -91
  293. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +1 -7
  294. package/dist/api/resources/preEncounter/resources/common/types/BaseModel.d.ts +2 -2
  295. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +28 -87
  296. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +38 -97
  297. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CheckEligibilityRequest.d.ts +1 -1
  298. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiPaginatedRequest.d.ts +1 -6
  299. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiRequest.d.ts +1 -3
  300. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.d.ts +1 -1
  301. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +4 -18
  302. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +5 -19
  303. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.d.ts +15 -34
  304. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +20 -39
  305. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/requests/ImageGetMultiRequest.d.ts +1 -4
  306. package/dist/api/resources/preEncounter/resources/images/resources/v1/types/Image.d.ts +1 -1
  307. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.d.ts +2 -14
  308. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +4 -16
  309. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +1 -7
  310. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +1 -7
  311. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/FilterQueryString.d.ts +1 -1
  312. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +1 -1
  313. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.d.ts +6 -10
  314. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +10 -14
  315. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +328 -456
  316. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +339 -467
  317. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +104 -144
  318. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +104 -144
  319. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientGetMultiRequest.d.ts +1 -4
  320. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientsSearchRequestPaginated.d.ts +1 -7
  321. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/SearchProvidersRequest.d.ts +1 -1
  322. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -3
  323. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Patient.d.ts +2 -2
  324. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PatientSortField.d.ts +1 -1
  325. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.d.ts +7 -10
  326. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +12 -15
  327. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/requests/GetAllTagsRequest.d.ts +1 -4
  328. package/dist/api/resources/serviceFacility/client/Client.d.ts +1 -11
  329. package/dist/api/resources/serviceFacility/client/Client.js +2 -12
  330. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +4 -82
  331. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +7 -85
  332. package/dist/api/resources/superbills/resources/v1/client/Client.d.ts +2 -10
  333. package/dist/api/resources/superbills/resources/v1/client/Client.js +3 -11
  334. package/dist/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +3 -14
  335. package/dist/api/resources/tasks/resources/v3/client/Client.d.ts +4 -25
  336. package/dist/api/resources/tasks/resources/v3/client/Client.js +9 -30
  337. package/dist/api/resources/tasks/resources/v3/client/requests/GetAllTasksRequest.d.ts +1 -15
  338. package/dist/api/resources/writeOffs/resources/v1/client/Client.d.ts +7 -13
  339. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +13 -19
  340. package/dist/api/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.d.ts +6 -1
  341. package/dist/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.d.ts +1 -12
  342. package/dist/environments.d.ts +5 -1
  343. package/dist/environments.js +4 -0
  344. package/dist/serialization/resources/contracts/resources/v2/types/ContractSortField.d.ts +10 -0
  345. package/dist/serialization/resources/contracts/resources/v2/types/ContractSortField.js +48 -0
  346. package/dist/serialization/resources/contracts/resources/v2/types/index.d.ts +1 -0
  347. package/dist/serialization/resources/contracts/resources/v2/types/index.js +1 -0
  348. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.d.ts +11 -0
  349. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.js +41 -0
  350. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +3 -2
  351. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.js +3 -2
  352. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +1 -0
  353. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/index.js +1 -0
  354. package/dist/version.d.ts +1 -1
  355. package/dist/version.js +1 -1
  356. package/environments.d.ts +5 -1
  357. package/environments.js +4 -0
  358. package/package.json +1 -1
  359. package/reference.md +772 -2366
  360. package/serialization/resources/contracts/resources/v2/types/ContractSortField.d.ts +10 -0
  361. package/serialization/resources/contracts/resources/v2/types/ContractSortField.js +48 -0
  362. package/serialization/resources/contracts/resources/v2/types/index.d.ts +1 -0
  363. package/serialization/resources/contracts/resources/v2/types/index.js +1 -0
  364. package/serialization/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.d.ts +11 -0
  365. package/serialization/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.js +41 -0
  366. package/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +3 -2
  367. package/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.js +3 -2
  368. package/serialization/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +1 -0
  369. package/serialization/resources/expectedNetworkStatus/resources/v2/types/index.js +1 -0
  370. package/version.d.ts +1 -1
  371. package/version.js +1 -1
@@ -4,15 +4,7 @@
4
4
  import * as CandidApi from "../../../../../../index";
5
5
  /**
6
6
  * @example
7
- * {
8
- * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
9
- * limit: 1,
10
- * contractingProviderId: CandidApi.contracts.v2.ContractingProviderId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
11
- * renderingProviderIds: CandidApi.contracts.v2.RenderingProviderid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
12
- * payerNames: "string",
13
- * states: "AA",
14
- * contractStatus: "pending"
15
- * }
7
+ * {}
16
8
  */
17
9
  export interface GetMultiContractsRequest {
18
10
  pageToken?: CandidApi.PageToken;
@@ -31,4 +23,12 @@ export interface GetMultiContractsRequest {
31
23
  * The status of the contract. Defaults to `pending`
32
24
  */
33
25
  contractStatus?: CandidApi.contracts.v2.ContractStatus;
26
+ /**
27
+ * Potentially sort by a contract related attribute. Defaults to created_at
28
+ */
29
+ sort?: CandidApi.contracts.v2.ContractSortField;
30
+ /**
31
+ * Direction of sort, defaulting to desc
32
+ */
33
+ sortDirection?: CandidApi.SortDirection;
34
34
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ContractSortField = "created_at" | "payer_name" | "payer_id" | "billing_provider_name" | "effective_date" | "contract_status";
5
+ export declare const ContractSortField: {
6
+ readonly CreatedAt: "created_at";
7
+ readonly PayerName: "payer_name";
8
+ readonly PayerId: "payer_id";
9
+ readonly BillingProviderName: "billing_provider_name";
10
+ readonly EffectiveDate: "effective_date";
11
+ readonly ContractStatus: "contract_status";
12
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ContractSortField = void 0;
7
+ exports.ContractSortField = {
8
+ CreatedAt: "created_at",
9
+ PayerName: "payer_name",
10
+ PayerId: "payer_id",
11
+ BillingProviderName: "billing_provider_name",
12
+ EffectiveDate: "effective_date",
13
+ ContractStatus: "contract_status",
14
+ };
@@ -12,4 +12,5 @@ export * from "./Contract";
12
12
  export * from "./ContractWithProviders";
13
13
  export * from "./ContractsPage";
14
14
  export * from "./ContractStatus";
15
+ export * from "./ContractSortField";
15
16
  export * from "./AuthorizedSignatory";
@@ -28,4 +28,5 @@ __exportStar(require("./Contract"), exports);
28
28
  __exportStar(require("./ContractWithProviders"), exports);
29
29
  __exportStar(require("./ContractsPage"), exports);
30
30
  __exportStar(require("./ContractStatus"), exports);
31
+ __exportStar(require("./ContractSortField"), exports);
31
32
  __exportStar(require("./AuthorizedSignatory"), exports);
@@ -34,14 +34,10 @@ export declare class V2 {
34
34
  * renderingProviderId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
35
35
  * contractingProviderId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
36
36
  * payerUuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
37
- * startDate: "2023-01-15",
38
- * endDate: "2023-01-15",
39
37
  * regions: {
40
38
  * type: "states",
41
- * states: ["AA"]
42
- * },
43
- * submittedDate: "2023-01-15",
44
- * payerLoadedDate: "2023-01-15"
39
+ * states: ["AA", "AA"]
40
+ * }
45
41
  * })
46
42
  */
47
43
  create(request: CandidApi.credentialing.v2.ProviderCredentialingSpanCreate, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<CandidApi.credentialing.v2.ProviderCredentialingSpan, CandidApi.credentialing.v2.create.Error>>;
@@ -58,14 +54,7 @@ export declare class V2 {
58
54
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
59
55
  *
60
56
  * @example
61
- * await client.credentialing.v2.getAll({
62
- * limit: 1,
63
- * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
64
- * payerUuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
65
- * providerId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
66
- * asRenderingProvider: true,
67
- * asContractingProvider: true
68
- * })
57
+ * await client.credentialing.v2.getAll()
69
58
  */
70
59
  getAll(request?: CandidApi.credentialing.v2.GetAllProviderCredentialingSpansRequest, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<CandidApi.credentialing.v2.ProviderCredentialingSpanPage, CandidApi.credentialing.v2.getAll.Error>>;
71
60
  /**
@@ -84,18 +73,7 @@ export declare class V2 {
84
73
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
85
74
  *
86
75
  * @example
87
- * await client.credentialing.v2.update(CandidApi.ProviderCredentialingSpanId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
88
- * contractingProviderId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
89
- * payerUuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
90
- * startDate: "2023-01-15",
91
- * endDate: "2023-01-15",
92
- * regions: {
93
- * type: "states",
94
- * states: ["AA"]
95
- * },
96
- * submittedDate: "2023-01-15",
97
- * payerLoadedDate: "2023-01-15"
98
- * })
76
+ * await client.credentialing.v2.update(CandidApi.ProviderCredentialingSpanId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
99
77
  */
100
78
  update(providerCredentialingId: CandidApi.ProviderCredentialingSpanId, request?: CandidApi.credentialing.v2.ProviderCredentialingSpanUpdate, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<CandidApi.credentialing.v2.ProviderCredentialingSpan, CandidApi.credentialing.v2.update.Error>>;
101
79
  protected _getAuthorizationHeader(): Promise<string | undefined>;
@@ -67,14 +67,10 @@ class V2 {
67
67
  * renderingProviderId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
68
68
  * contractingProviderId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
69
69
  * payerUuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
70
- * startDate: "2023-01-15",
71
- * endDate: "2023-01-15",
72
70
  * regions: {
73
71
  * type: "states",
74
- * states: ["AA"]
75
- * },
76
- * submittedDate: "2023-01-15",
77
- * payerLoadedDate: "2023-01-15"
72
+ * states: ["AA", "AA"]
73
+ * }
78
74
  * })
79
75
  */
80
76
  create(request, requestOptions) {
@@ -83,7 +79,7 @@ class V2 {
83
79
  const _response = yield core.fetcher({
84
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"),
85
81
  method: "POST",
86
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
83
  contentType: "application/json",
88
84
  requestType: "json",
89
85
  body: serializers.credentialing.v2.ProviderCredentialingSpanCreate.jsonOrThrow(request, {
@@ -138,7 +134,7 @@ class V2 {
138
134
  const _response = yield core.fetcher({
139
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))}`),
140
136
  method: "GET",
141
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
137
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
142
138
  contentType: "application/json",
143
139
  requestType: "json",
144
140
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -182,14 +178,7 @@ class V2 {
182
178
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
183
179
  *
184
180
  * @example
185
- * await client.credentialing.v2.getAll({
186
- * limit: 1,
187
- * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
188
- * payerUuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
189
- * providerId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
190
- * asRenderingProvider: true,
191
- * asContractingProvider: true
192
- * })
181
+ * await client.credentialing.v2.getAll()
193
182
  */
194
183
  getAll() {
195
184
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
@@ -217,7 +206,7 @@ class V2 {
217
206
  const _response = yield core.fetcher({
218
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"),
219
208
  method: "GET",
220
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
209
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
221
210
  contentType: "application/json",
222
211
  queryParameters: _queryParams,
223
212
  requestType: "json",
@@ -272,7 +261,7 @@ class V2 {
272
261
  const _response = yield core.fetcher({
273
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))}`),
274
263
  method: "DELETE",
275
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
264
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
276
265
  contentType: "application/json",
277
266
  requestType: "json",
278
267
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -312,18 +301,7 @@ class V2 {
312
301
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
313
302
  *
314
303
  * @example
315
- * await client.credentialing.v2.update(CandidApi.ProviderCredentialingSpanId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
316
- * contractingProviderId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
317
- * payerUuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
318
- * startDate: "2023-01-15",
319
- * endDate: "2023-01-15",
320
- * regions: {
321
- * type: "states",
322
- * states: ["AA"]
323
- * },
324
- * submittedDate: "2023-01-15",
325
- * payerLoadedDate: "2023-01-15"
326
- * })
304
+ * await client.credentialing.v2.update(CandidApi.ProviderCredentialingSpanId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
327
305
  */
328
306
  update(providerCredentialingId_1) {
329
307
  return __awaiter(this, arguments, void 0, function* (providerCredentialingId, request = {}, requestOptions) {
@@ -331,7 +309,7 @@ class V2 {
331
309
  const _response = yield core.fetcher({
332
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))}`),
333
311
  method: "PATCH",
334
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
312
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
335
313
  contentType: "application/json",
336
314
  requestType: "json",
337
315
  body: serializers.credentialing.v2.ProviderCredentialingSpanUpdate.jsonOrThrow(request, {
@@ -4,14 +4,7 @@
4
4
  import * as CandidApi from "../../../../../../index";
5
5
  /**
6
6
  * @example
7
- * {
8
- * limit: 1,
9
- * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
10
- * payerUuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
11
- * providerId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
12
- * asRenderingProvider: true,
13
- * asContractingProvider: true
14
- * }
7
+ * {}
15
8
  */
16
9
  export interface GetAllProviderCredentialingSpansRequest {
17
10
  /**
@@ -8,23 +8,16 @@ import * as CandidApi from "../../../../../../index";
8
8
  * renderingProviderId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
9
9
  * contractingProviderId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
10
10
  * payerUuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
11
- * startDate: "2023-01-15",
12
- * endDate: "2023-01-15",
13
11
  * regions: {
14
12
  * type: "states",
15
- * states: ["AA"]
16
- * },
17
- * submittedDate: "2023-01-15",
18
- * payerLoadedDate: "2023-01-15"
13
+ * states: ["AA", "AA"]
14
+ * }
19
15
  * }
20
16
  */
21
17
  export interface ProviderCredentialingSpanCreate {
22
18
  /** The ID of the rendering provider covered by the credentialing span. */
23
19
  renderingProviderId: string;
24
- /**
25
- * The ID of the practice location at which the rendering provider is covered by the credentialing span.
26
- *
27
- */
20
+ /** The ID of the practice location at which the rendering provider is covered by the credentialing span. */
28
21
  contractingProviderId: string;
29
22
  /** The ID of the payer covered by the credentialing span. */
30
23
  payerUuid: string;
@@ -32,10 +25,7 @@ export interface ProviderCredentialingSpanCreate {
32
25
  startDate?: string;
33
26
  /** End date of the credentialing span. */
34
27
  endDate?: string;
35
- /**
36
- * The states covered by the credentialing span. A span may be national and cover all states.
37
- *
38
- */
28
+ /** The states covered by the credentialing span. A span may be national and cover all states. */
39
29
  regions: CandidApi.Regions;
40
30
  /** Date that the credential paperwork was submitted. */
41
31
  submittedDate?: string;
@@ -4,24 +4,10 @@
4
4
  import * as CandidApi from "../../../../../../index";
5
5
  /**
6
6
  * @example
7
- * {
8
- * contractingProviderId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
9
- * payerUuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
10
- * startDate: "2023-01-15",
11
- * endDate: "2023-01-15",
12
- * regions: {
13
- * type: "states",
14
- * states: ["AA"]
15
- * },
16
- * submittedDate: "2023-01-15",
17
- * payerLoadedDate: "2023-01-15"
18
- * }
7
+ * {}
19
8
  */
20
9
  export interface ProviderCredentialingSpanUpdate {
21
- /**
22
- * The ID of the practice location at which the rendering provider is covered by the credentialing span.
23
- *
24
- */
10
+ /** The ID of the practice location at which the rendering provider is covered by the credentialing span. */
25
11
  contractingProviderId?: string;
26
12
  /** The ID of the payer doing the credentialing. */
27
13
  payerUuid?: string;
@@ -29,10 +15,7 @@ export interface ProviderCredentialingSpanUpdate {
29
15
  startDate?: string;
30
16
  /** End date of the credentialing span. */
31
17
  endDate?: string;
32
- /**
33
- * The states covered by the credentialing span. A span may be national and cover all states.
34
- *
35
- */
18
+ /** The states covered by the credentialing span. A span may be national and cover all states. */
36
19
  regions?: CandidApi.Regions;
37
20
  /** Date that the credential paperwork was submitted. */
38
21
  submittedDate?: string;
@@ -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.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.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.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
128
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.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.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
199
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.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.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
261
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.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" }),
@@ -33,10 +33,9 @@ export declare class Diagnoses {
33
33
  *
34
34
  * @example
35
35
  * await client.diagnoses.create({
36
- * encounterId: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
37
- * name: "string",
38
36
  * codeType: "ABF",
39
- * code: "string"
37
+ * code: "code",
38
+ * encounterId: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
40
39
  * })
41
40
  */
42
41
  create(request: CandidApi.StandaloneDiagnosisCreate, requestOptions?: Diagnoses.RequestOptions): Promise<core.APIResponse<CandidApi.Diagnosis, CandidApi.diagnoses.create.Error>>;
@@ -48,11 +47,7 @@ export declare class Diagnoses {
48
47
  * @param {Diagnoses.RequestOptions} requestOptions - Request-specific configuration.
49
48
  *
50
49
  * @example
51
- * await client.diagnoses.update(CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
52
- * name: "string",
53
- * codeType: "ABF",
54
- * code: "string"
55
- * })
50
+ * await client.diagnoses.update(CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
56
51
  */
57
52
  update(diagnosisId: CandidApi.DiagnosisId, request?: CandidApi.DiagnosisUpdate, requestOptions?: Diagnoses.RequestOptions): Promise<core.APIResponse<CandidApi.Diagnosis, CandidApi.diagnoses.update.Error>>;
58
53
  /**
@@ -66,10 +66,9 @@ class Diagnoses {
66
66
  *
67
67
  * @example
68
68
  * await client.diagnoses.create({
69
- * encounterId: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
70
- * name: "string",
71
69
  * codeType: "ABF",
72
- * code: "string"
70
+ * code: "code",
71
+ * encounterId: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
73
72
  * })
74
73
  */
75
74
  create(request, requestOptions) {
@@ -78,7 +77,7 @@ class Diagnoses {
78
77
  const _response = yield core.fetcher({
79
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"),
80
79
  method: "POST",
81
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
81
  contentType: "application/json",
83
82
  requestType: "json",
84
83
  body: serializers.StandaloneDiagnosisCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -111,11 +110,7 @@ class Diagnoses {
111
110
  * @param {Diagnoses.RequestOptions} requestOptions - Request-specific configuration.
112
111
  *
113
112
  * @example
114
- * await client.diagnoses.update(CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
115
- * name: "string",
116
- * codeType: "ABF",
117
- * code: "string"
118
- * })
113
+ * await client.diagnoses.update(CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
119
114
  */
120
115
  update(diagnosisId_1) {
121
116
  return __awaiter(this, arguments, void 0, function* (diagnosisId, request = {}, requestOptions) {
@@ -123,7 +118,7 @@ class Diagnoses {
123
118
  const _response = yield core.fetcher({
124
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))}`),
125
120
  method: "PATCH",
126
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
121
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
127
122
  contentType: "application/json",
128
123
  requestType: "json",
129
124
  body: serializers.DiagnosisUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -177,7 +172,7 @@ class Diagnoses {
177
172
  const _response = yield core.fetcher({
178
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))}`),
179
174
  method: "DELETE",
180
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
175
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
181
176
  contentType: "application/json",
182
177
  requestType: "json",
183
178
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -4,19 +4,12 @@
4
4
  import * as CandidApi from "../../../../index";
5
5
  /**
6
6
  * @example
7
- * {
8
- * name: "string",
9
- * codeType: "ABF",
10
- * code: "string"
11
- * }
7
+ * {}
12
8
  */
13
9
  export interface DiagnosisUpdate {
14
10
  /** Empty string not allowed. */
15
11
  name?: string;
16
- /**
17
- * 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.
18
- *
19
- */
12
+ /** 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. */
20
13
  codeType?: CandidApi.DiagnosisTypeCode;
21
14
  /**
22
15
  * Empty string not allowed.
@@ -27,7 +20,6 @@ export interface DiagnosisUpdate {
27
20
  * - Digit or the letter `A` or `B`
28
21
  * - (Optional) Period `.`
29
22
  * - Up to 4 (or as few as 0) letters and digits
30
- *
31
23
  */
32
24
  code?: string;
33
25
  }
@@ -11,12 +11,11 @@ export interface DiagnosisCreate {
11
11
  * Empty string not allowed.
12
12
  * Should be of the appropriate format for the provided `code_type`.
13
13
  * Must obey the ICD-10 format if an ICD-10 code_type is provided, specifically:
14
- *
15
- * - Letter
16
- * - Digit
17
- * - Digit or the letter `A` or `B`
18
- * - (Optional) Period `.`
19
- * - Up to 4 (or as few as 0) letters and digits
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
20
19
  */
21
20
  code: string;
22
21
  }
@@ -69,11 +69,9 @@ export declare class V2 {
69
69
  * - [Candid Availity Eligibility Integration Guide](https://support.joincandidhealth.com/hc/en-us/articles/24218441631892--Availity-Eligibility-Integration-Guide)
70
70
  *
71
71
  * A schema of the response object can be found here: [Availity Docs](https://developer.availity.com/partner/product/191210/api/190898#/Coverages_100/operation/%2Fcoverages%2F{id}/get)
72
- *
73
- * - Note Availity requires a free developer account to access this documentation.
72
+ * * Note Availity requires a free developer account to access this documentation.
74
73
  *
75
74
  * Check connection status of Availity API and partners here:
76
- *
77
75
  * - [Availity Trading Partner Connection Status](https://www.availity.com/status/)
78
76
  *
79
77
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
@@ -94,11 +92,9 @@ export declare class V2 {
94
92
  * - [Candid Availity Eligibility Integration Guide](https://support.joincandidhealth.com/hc/en-us/articles/24218441631892--Availity-Eligibility-Integration-Guide)
95
93
  *
96
94
  * A schema of the response object can be found here: [Availity Docs](https://developer.availity.com/partner/product/191210/api/190898#/Coverages_100/operation/%2Fcoverages%2F{id}/get)
97
- *
98
- * - Note Availity requires a free developer account to access this documentation.
95
+ * * Note Availity requires a free developer account to access this documentation.
99
96
  *
100
97
  * Check connection status of Availity API and partners here:
101
- *
102
98
  * - [Availity Trading Partner Connection Status](https://www.availity.com/status/)
103
99
  *
104
100
  * @param {unknown} request
@@ -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.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.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,
@@ -141,11 +141,9 @@ class V2 {
141
141
  * - [Candid Availity Eligibility Integration Guide](https://support.joincandidhealth.com/hc/en-us/articles/24218441631892--Availity-Eligibility-Integration-Guide)
142
142
  *
143
143
  * A schema of the response object can be found here: [Availity Docs](https://developer.availity.com/partner/product/191210/api/190898#/Coverages_100/operation/%2Fcoverages%2F{id}/get)
144
- *
145
- * - Note Availity requires a free developer account to access this documentation.
144
+ * * Note Availity requires a free developer account to access this documentation.
146
145
  *
147
146
  * Check connection status of Availity API and partners here:
148
- *
149
147
  * - [Availity Trading Partner Connection Status](https://www.availity.com/status/)
150
148
  *
151
149
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
@@ -159,7 +157,7 @@ class V2 {
159
157
  const _response = yield core.fetcher({
160
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"),
161
159
  method: "GET",
162
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
160
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
163
161
  contentType: "application/json",
164
162
  requestType: "json",
165
163
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -204,11 +202,9 @@ class V2 {
204
202
  * - [Candid Availity Eligibility Integration Guide](https://support.joincandidhealth.com/hc/en-us/articles/24218441631892--Availity-Eligibility-Integration-Guide)
205
203
  *
206
204
  * A schema of the response object can be found here: [Availity Docs](https://developer.availity.com/partner/product/191210/api/190898#/Coverages_100/operation/%2Fcoverages%2F{id}/get)
207
- *
208
- * - Note Availity requires a free developer account to access this documentation.
205
+ * * Note Availity requires a free developer account to access this documentation.
209
206
  *
210
207
  * Check connection status of Availity API and partners here:
211
- *
212
208
  * - [Availity Trading Partner Connection Status](https://www.availity.com/status/)
213
209
  *
214
210
  * @param {unknown} request
@@ -225,7 +221,7 @@ class V2 {
225
221
  const _response = yield core.fetcher({
226
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"),
227
223
  method: "POST",
228
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
224
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
229
225
  contentType: "application/json",
230
226
  requestType: "json",
231
227
  body: request,
@@ -43,9 +43,6 @@ export declare class V1 {
43
43
  * @param {CandidApi.EncounterId} encounterId
44
44
  * @param {CandidApi.encounterAttachments.v1.CreateAttachmentRequest} request
45
45
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
46
- *
47
- * @example
48
- * await client.encounterAttachments.v1.create(fs.createReadStream("/path/to/your/file"), CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {})
49
46
  */
50
47
  create(attachmentFile: File | fs.ReadStream | Blob, encounterId: CandidApi.EncounterId, request: CandidApi.encounterAttachments.v1.CreateAttachmentRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.encounterAttachments.v1.AttachmentId, CandidApi.encounterAttachments.v1.create.Error>>;
51
48
  /**