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
@@ -143,7 +143,7 @@ class V4 {
143
143
  const _response = yield core.fetcher({
144
144
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/encounters/v4"),
145
145
  method: "GET",
146
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "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),
146
+ 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),
147
147
  contentType: "application/json",
148
148
  queryParameters: _queryParams,
149
149
  requestType: "json",
@@ -181,7 +181,7 @@ class V4 {
181
181
  const _response = yield core.fetcher({
182
182
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/encounters/v4/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
183
183
  method: "GET",
184
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "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),
184
+ 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),
185
185
  contentType: "application/json",
186
186
  requestType: "json",
187
187
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -212,368 +212,41 @@ class V4 {
212
212
  * @example
213
213
  * await client.encounters.v4.create({
214
214
  * patient: {
215
- * phoneNumbers: [{
216
- * number: "1234567890",
217
- * type: "Home"
218
- * }],
219
- * phoneConsent: true,
220
- * email: CandidApi.Email("johndoe@joincandidhealth.com"),
221
- * nonInsurancePayers: [CandidApi.nonInsurancePayers.v1.NonInsurancePayerId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
222
- * nonInsurancePayersInfo: [{
223
- * nonInsurancePayerId: CandidApi.nonInsurancePayers.v1.NonInsurancePayerId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
224
- * memberId: "string",
225
- * clinicalTrialInfo: [{
226
- * clinicalTrialId: CandidApi.ClinicalTrialId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
227
- * }]
228
- * }],
229
- * emailConsent: true,
230
- * externalId: "string",
215
+ * firstName: "first_name",
216
+ * lastName: "last_name",
217
+ * gender: "male",
218
+ * externalId: "external_id",
231
219
  * dateOfBirth: "2023-01-15",
232
220
  * address: {
233
- * address1: "123 Main St",
234
- * address2: "Apt 1",
235
- * city: "New York",
236
- * state: "NY",
237
- * zipCode: "10001",
238
- * zipPlusFourCode: "1234"
239
- * },
240
- * firstName: "string",
241
- * lastName: "string",
242
- * gender: "male"
221
+ * address1: "address1",
222
+ * city: "city",
223
+ * state: "AA",
224
+ * zipCode: "zip_code"
225
+ * }
243
226
  * },
244
227
  * billingProvider: {
245
228
  * address: {
246
- * address1: "123 Main St",
247
- * address2: "Apt 1",
248
- * city: "New York",
249
- * state: "NY",
250
- * zipCode: "10001",
251
- * zipPlusFourCode: "1234"
229
+ * address1: "address1",
230
+ * city: "city",
231
+ * state: "AA",
232
+ * zipCode: "zip_code",
233
+ * zipPlusFourCode: "zip_plus_four_code"
252
234
  * },
253
- * taxId: "string",
254
- * npi: "string",
255
- * taxonomyCode: "string",
256
- * providerCommercialLicenseType: "0",
257
- * firstName: "string",
258
- * lastName: "string",
259
- * organizationName: "string"
235
+ * taxId: "tax_id",
236
+ * npi: "npi"
260
237
  * },
261
238
  * renderingProvider: {
262
- * npi: "string",
263
- * taxonomyCode: "string",
264
- * address: {
265
- * address1: "123 Main St",
266
- * address2: "Apt 1",
267
- * city: "New York",
268
- * state: "NY",
269
- * zipCode: "10001",
270
- * zipPlusFourCode: "1234"
271
- * },
272
- * firstName: "string",
273
- * lastName: "string",
274
- * organizationName: "string"
275
- * },
276
- * referringProvider: {
277
- * npi: "string",
278
- * taxonomyCode: "string",
279
- * address: {
280
- * address1: "123 Main St",
281
- * address2: "Apt 1",
282
- * city: "New York",
283
- * state: "NY",
284
- * zipCode: "10001",
285
- * zipPlusFourCode: "1234"
286
- * },
287
- * firstName: "string",
288
- * lastName: "string",
289
- * organizationName: "string"
290
- * },
291
- * initialReferringProvider: {
292
- * npi: "string",
293
- * taxonomyCode: "string",
294
- * address: {
295
- * address1: "123 Main St",
296
- * address2: "Apt 1",
297
- * city: "New York",
298
- * state: "NY",
299
- * zipCode: "10001",
300
- * zipPlusFourCode: "1234"
301
- * },
302
- * qualifier: "DQ",
303
- * firstName: "string",
304
- * lastName: "string",
305
- * organizationName: "string"
306
- * },
307
- * supervisingProvider: {
308
- * npi: "string",
309
- * taxonomyCode: "string",
310
- * address: {
311
- * address1: "123 Main St",
312
- * address2: "Apt 1",
313
- * city: "New York",
314
- * state: "NY",
315
- * zipCode: "10001",
316
- * zipPlusFourCode: "1234"
317
- * },
318
- * firstName: "string",
319
- * lastName: "string",
320
- * organizationName: "string"
321
- * },
322
- * serviceFacility: {
323
- * organizationName: "string",
324
- * npi: "string",
325
- * address: {
326
- * address1: "123 Main St",
327
- * address2: "Apt 1",
328
- * city: "New York",
329
- * state: "NY",
330
- * zipCode: "10001",
331
- * zipPlusFourCode: "1234"
332
- * },
333
- * secondaryIdentification: "string"
334
- * },
335
- * subscriberPrimary: {
336
- * insuranceCard: {
337
- * memberId: "string",
338
- * payerName: "string",
339
- * payerId: "string",
340
- * rxBin: "string",
341
- * rxPcn: "string",
342
- * imageUrlFront: "string",
343
- * imageUrlBack: "string",
344
- * emrPayerCrosswalk: "HEALTHIE",
345
- * groupNumber: "string",
346
- * planName: "string",
347
- * planType: "09",
348
- * insuranceType: "01",
349
- * payerPlanGroupId: CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
350
- * },
351
- * patientRelationshipToSubscriberCode: "01",
352
- * dateOfBirth: "2023-01-15",
353
- * address: {
354
- * address1: "123 Main St",
355
- * address2: "Apt 1",
356
- * city: "New York",
357
- * state: "NY",
358
- * zipCode: "10001",
359
- * zipPlusFourCode: "1234"
360
- * },
361
- * firstName: "string",
362
- * lastName: "string",
363
- * gender: "male"
364
- * },
365
- * subscriberSecondary: {
366
- * insuranceCard: {
367
- * memberId: "string",
368
- * payerName: "string",
369
- * payerId: "string",
370
- * rxBin: "string",
371
- * rxPcn: "string",
372
- * imageUrlFront: "string",
373
- * imageUrlBack: "string",
374
- * emrPayerCrosswalk: "HEALTHIE",
375
- * groupNumber: "string",
376
- * planName: "string",
377
- * planType: "09",
378
- * insuranceType: "01",
379
- * payerPlanGroupId: CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
380
- * },
381
- * patientRelationshipToSubscriberCode: "01",
382
- * dateOfBirth: "2023-01-15",
383
- * address: {
384
- * address1: "123 Main St",
385
- * address2: "Apt 1",
386
- * city: "New York",
387
- * state: "NY",
388
- * zipCode: "10001",
389
- * zipPlusFourCode: "1234"
390
- * },
391
- * firstName: "string",
392
- * lastName: "string",
393
- * gender: "male"
394
- * },
395
- * subscriberTertiary: {
396
- * insuranceCard: {
397
- * memberId: "string",
398
- * payerName: "string",
399
- * payerId: "string",
400
- * rxBin: "string",
401
- * rxPcn: "string",
402
- * imageUrlFront: "string",
403
- * imageUrlBack: "string",
404
- * emrPayerCrosswalk: "HEALTHIE",
405
- * groupNumber: "string",
406
- * planName: "string",
407
- * planType: "09",
408
- * insuranceType: "01",
409
- * payerPlanGroupId: CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
410
- * },
411
- * patientRelationshipToSubscriberCode: "01",
412
- * dateOfBirth: "2023-01-15",
413
- * address: {
414
- * address1: "123 Main St",
415
- * address2: "Apt 1",
416
- * city: "New York",
417
- * state: "NY",
418
- * zipCode: "10001",
419
- * zipPlusFourCode: "1234"
420
- * },
421
- * firstName: "string",
422
- * lastName: "string",
423
- * gender: "male"
239
+ * npi: "npi"
424
240
  * },
425
- * priorAuthorizationNumber: CandidApi.encounters.v4.PriorAuthorizationNumber("string"),
426
241
  * responsibleParty: "INSURANCE_PAY",
427
242
  * diagnoses: [{
428
- * name: "string",
429
243
  * codeType: "ABF",
430
- * code: "string"
431
- * }],
432
- * clinicalNotes: [{
433
- * category: "clinical",
434
- * notes: []
435
- * }],
436
- * billingNotes: [{
437
- * text: "string"
438
- * }],
439
- * placeOfServiceCode: "01",
440
- * patientHistories: [{
441
- * category: "present_illness",
442
- * questions: [{
443
- * id: CandidApi.encounters.v4.IntakeQuestionId("6E7FBCE4-A8EA-46D0-A8D8-FF83CA3BB176"),
444
- * text: "Do you have any allergies?",
445
- * responses: [{
446
- * response: "No allergies",
447
- * followUps: [{
448
- * id: CandidApi.encounters.v4.IntakeFollowUpId("4F3D57F9-AC94-49D6-87E4-E804B709917A"),
449
- * text: "Do you have any allergies?",
450
- * response: "No allergies"
451
- * }]
452
- * }]
453
- * }]
454
- * }],
455
- * serviceLines: [{
456
- * procedureCode: "string",
457
- * quantity: CandidApi.Decimal("string"),
458
- * units: "MJ",
459
- * diagnosisPointers: []
460
- * }],
461
- * guarantor: {
462
- * phoneNumbers: [{
463
- * number: "1234567890",
464
- * type: "Home"
465
- * }],
466
- * phoneConsent: true,
467
- * email: CandidApi.Email("johndoe@joincandidhealth.com"),
468
- * emailConsent: true,
469
- * firstName: "string",
470
- * lastName: "string",
471
- * externalId: "string",
472
- * dateOfBirth: "2023-01-15",
473
- * address: {
474
- * address1: "123 Main St",
475
- * address2: "Apt 1",
476
- * city: "New York",
477
- * state: "NY",
478
- * zipCode: "10001",
479
- * zipPlusFourCode: "1234"
480
- * }
481
- * },
482
- * externalClaimSubmission: {
483
- * claimCreatedAt: "2023-01-01T12:00:00.000000Z",
484
- * patientControlNumber: "PATIENT_CONTROL_NUMBER",
485
- * submissionRecords: [{
486
- * submittedAt: "2023-01-01T13:00:00.000000Z",
487
- * claimFrequencyCode: "1",
488
- * payerResponsibility: "primary",
489
- * intendedSubmissionMedium: "electronic"
490
- * }, {
491
- * submittedAt: "2023-01-04T12:00:00.000000Z",
492
- * claimFrequencyCode: "7",
493
- * payerResponsibility: "primary",
494
- * intendedSubmissionMedium: "paper"
495
- * }]
496
- * },
497
- * tagIds: [CandidApi.TagId("string")],
498
- * schemaInstances: [{
499
- * schemaId: CandidApi.SchemaId("ec096b13-f80a-471d-aaeb-54b021c9d582"),
500
- * content: {
501
- * "provider_category": "internist",
502
- * "is_urgent_care": true,
503
- * "bmi": 24.2,
504
- * "age": 38
505
- * }
506
- * }],
507
- * referralNumber: "string",
508
- * epsdtReferral: {
509
- * conditionIndicator1: "AV",
510
- * conditionIndicator2: "AV",
511
- * conditionIndicator3: "AV"
512
- * },
513
- * claimSupplementalInformation: [{
514
- * attachmentReportTypeCode: "03",
515
- * attachmentTransmissionCode: "BM"
516
- * }],
517
- * secondaryPayerCarrierCode: "string",
518
- * externalId: CandidApi.EncounterExternalId("string"),
519
- * dateOfService: "2023-01-15",
520
- * endDateOfService: "2023-01-15",
521
- * patientAuthorizedRelease: true,
522
- * benefitsAssignedToProvider: true,
523
- * providerAcceptsAssignment: true,
524
- * appointmentType: "string",
525
- * existingMedications: [{
526
- * name: "Lisinopril",
527
- * rxCui: CandidApi.encounters.v4.RxCui("860975"),
528
- * dosage: "10mg",
529
- * dosageForm: "Tablet",
530
- * frequency: "Once Daily",
531
- * asNeeded: true
532
- * }],
533
- * vitals: {
534
- * heightIn: 70,
535
- * weightLbs: 165,
536
- * bloodPressureSystolicMmhg: 115,
537
- * bloodPressureDiastolicMmhg: 85,
538
- * bodyTemperatureF: 98,
539
- * hemoglobinGdl: 15.1,
540
- * hematocritPct: 51.2
541
- * },
542
- * interventions: [{
543
- * name: "Physical Therapy Session",
544
- * category: "lifestyle",
545
- * description: "A session focused on improving muscular strength, flexibility, and range of motion post-injury.",
546
- * medication: {
547
- * name: "Lisinopril",
548
- * rxCui: CandidApi.encounters.v4.RxCui("860975"),
549
- * dosage: "10mg",
550
- * dosageForm: "Tablet",
551
- * frequency: "Once Daily",
552
- * asNeeded: true
553
- * },
554
- * labs: [{
555
- * name: "Genetic Health Labs",
556
- * code: "GH12345",
557
- * codeType: "quest"
558
- * }]
244
+ * code: "code"
245
+ * }, {
246
+ * codeType: "ABF",
247
+ * code: "code"
559
248
  * }],
560
- * payToAddress: {
561
- * address1: "123 Main St",
562
- * address2: "Apt 1",
563
- * city: "New York",
564
- * state: "NY",
565
- * zipCode: "10001",
566
- * zipPlusFourCode: "1234"
567
- * },
568
- * synchronicity: "Synchronous",
569
- * billableStatus: "BILLABLE",
570
- * additionalInformation: "string",
571
- * serviceAuthorizationExceptionCode: "1",
572
- * admissionDate: "2023-01-15",
573
- * dischargeDate: "2023-01-15",
574
- * onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
575
- * lastMenstrualPeriodDate: "2023-01-15",
576
- * delayReasonCode: "1"
249
+ * placeOfServiceCode: "01"
577
250
  * })
578
251
  */
579
252
  create(request, requestOptions) {
@@ -582,7 +255,7 @@ class V4 {
582
255
  const _response = yield core.fetcher({
583
256
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/encounters/v4"),
584
257
  method: "POST",
585
- 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),
258
+ 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),
586
259
  contentType: "application/json",
587
260
  requestType: "json",
588
261
  body: serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -638,14 +311,13 @@ class V4 {
638
311
  *
639
312
  * The endpoint will create an encounter from the provided fields, pulling information from the provided patient and appointment objects
640
313
  * where applicable. In particular, the following fields are populated from the patient and appointment objects:
641
- *
642
- * - Patient
643
- * - Referring Provider
644
- * - Subscriber Primary
645
- * - Subscriber Secondary
646
- * - Referral Number
647
- * - Responsible Party
648
- * - Guarantor
314
+ * - Patient
315
+ * - Referring Provider
316
+ * - Subscriber Primary
317
+ * - Subscriber Secondary
318
+ * - Referral Number
319
+ * - Responsible Party
320
+ * - Guarantor
649
321
  *
650
322
  * Utilizing this endpoint opts you into automatic updating of the encounter when the patient or appointment is updated, assuming the
651
323
  * encounter has not already been submitted or adjudicated.
@@ -655,202 +327,35 @@ class V4 {
655
327
  *
656
328
  * @example
657
329
  * await client.encounters.v4.createFromPreEncounterPatient({
330
+ * externalId: CandidApi.EncounterExternalId("external_id"),
331
+ * patientAuthorizedRelease: true,
332
+ * benefitsAssignedToProvider: true,
333
+ * providerAcceptsAssignment: true,
334
+ * billableStatus: "BILLABLE",
658
335
  * preEncounterPatientId: CandidApi.PreEncounterPatientId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
659
- * preEncounterAppointmentIds: [CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
336
+ * preEncounterAppointmentIds: [CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
660
337
  * billingProvider: {
661
338
  * address: {
662
- * address1: "123 Main St",
663
- * address2: "Apt 1",
664
- * city: "New York",
665
- * state: "NY",
666
- * zipCode: "10001",
667
- * zipPlusFourCode: "1234"
339
+ * address1: "address1",
340
+ * city: "city",
341
+ * state: "AA",
342
+ * zipCode: "zip_code",
343
+ * zipPlusFourCode: "zip_plus_four_code"
668
344
  * },
669
- * taxId: "string",
670
- * npi: "string",
671
- * taxonomyCode: "string",
672
- * providerCommercialLicenseType: "0",
673
- * firstName: "string",
674
- * lastName: "string",
675
- * organizationName: "string"
345
+ * taxId: "tax_id",
346
+ * npi: "npi"
676
347
  * },
677
348
  * renderingProvider: {
678
- * npi: "string",
679
- * taxonomyCode: "string",
680
- * address: {
681
- * address1: "123 Main St",
682
- * address2: "Apt 1",
683
- * city: "New York",
684
- * state: "NY",
685
- * zipCode: "10001",
686
- * zipPlusFourCode: "1234"
687
- * },
688
- * firstName: "string",
689
- * lastName: "string",
690
- * organizationName: "string"
691
- * },
692
- * initialReferringProvider: {
693
- * npi: "string",
694
- * taxonomyCode: "string",
695
- * address: {
696
- * address1: "123 Main St",
697
- * address2: "Apt 1",
698
- * city: "New York",
699
- * state: "NY",
700
- * zipCode: "10001",
701
- * zipPlusFourCode: "1234"
702
- * },
703
- * qualifier: "DQ",
704
- * firstName: "string",
705
- * lastName: "string",
706
- * organizationName: "string"
707
- * },
708
- * supervisingProvider: {
709
- * npi: "string",
710
- * taxonomyCode: "string",
711
- * address: {
712
- * address1: "123 Main St",
713
- * address2: "Apt 1",
714
- * city: "New York",
715
- * state: "NY",
716
- * zipCode: "10001",
717
- * zipPlusFourCode: "1234"
718
- * },
719
- * firstName: "string",
720
- * lastName: "string",
721
- * organizationName: "string"
722
- * },
723
- * serviceFacility: {
724
- * organizationName: "string",
725
- * npi: "string",
726
- * address: {
727
- * address1: "123 Main St",
728
- * address2: "Apt 1",
729
- * city: "New York",
730
- * state: "NY",
731
- * zipCode: "10001",
732
- * zipPlusFourCode: "1234"
733
- * },
734
- * secondaryIdentification: "string"
349
+ * npi: "npi"
735
350
  * },
736
351
  * diagnoses: [{
737
- * name: "string",
738
352
  * codeType: "ABF",
739
- * code: "string"
740
- * }],
741
- * clinicalNotes: [{
742
- * category: "clinical",
743
- * notes: []
744
- * }],
745
- * billingNotes: [{
746
- * text: "string"
747
- * }],
748
- * placeOfServiceCode: "01",
749
- * patientHistories: [{
750
- * category: "present_illness",
751
- * questions: [{
752
- * id: CandidApi.encounters.v4.IntakeQuestionId("6E7FBCE4-A8EA-46D0-A8D8-FF83CA3BB176"),
753
- * text: "Do you have any allergies?",
754
- * responses: [{
755
- * response: "No allergies",
756
- * followUps: [{
757
- * id: CandidApi.encounters.v4.IntakeFollowUpId("4F3D57F9-AC94-49D6-87E4-E804B709917A"),
758
- * text: "Do you have any allergies?",
759
- * response: "No allergies"
760
- * }]
761
- * }]
762
- * }]
763
- * }],
764
- * serviceLines: [{
765
- * procedureCode: "string",
766
- * quantity: CandidApi.Decimal("string"),
767
- * units: "MJ",
768
- * diagnosisPointers: []
769
- * }],
770
- * externalClaimSubmission: {
771
- * claimCreatedAt: "2023-01-01T12:00:00.000000Z",
772
- * patientControlNumber: "PATIENT_CONTROL_NUMBER",
773
- * submissionRecords: [{
774
- * submittedAt: "2023-01-01T13:00:00.000000Z",
775
- * claimFrequencyCode: "1",
776
- * payerResponsibility: "primary",
777
- * intendedSubmissionMedium: "electronic"
778
- * }, {
779
- * submittedAt: "2023-01-04T12:00:00.000000Z",
780
- * claimFrequencyCode: "7",
781
- * payerResponsibility: "primary",
782
- * intendedSubmissionMedium: "paper"
783
- * }]
784
- * },
785
- * tagIds: [CandidApi.TagId("string")],
786
- * schemaInstances: [{
787
- * schemaId: CandidApi.SchemaId("ec096b13-f80a-471d-aaeb-54b021c9d582"),
788
- * content: {
789
- * "provider_category": "internist",
790
- * "is_urgent_care": true,
791
- * "bmi": 24.2,
792
- * "age": 38
793
- * }
794
- * }],
795
- * externalId: CandidApi.EncounterExternalId("string"),
796
- * dateOfService: "2023-01-15",
797
- * endDateOfService: "2023-01-15",
798
- * patientAuthorizedRelease: true,
799
- * benefitsAssignedToProvider: true,
800
- * providerAcceptsAssignment: true,
801
- * appointmentType: "string",
802
- * existingMedications: [{
803
- * name: "Lisinopril",
804
- * rxCui: CandidApi.encounters.v4.RxCui("860975"),
805
- * dosage: "10mg",
806
- * dosageForm: "Tablet",
807
- * frequency: "Once Daily",
808
- * asNeeded: true
809
- * }],
810
- * vitals: {
811
- * heightIn: 70,
812
- * weightLbs: 165,
813
- * bloodPressureSystolicMmhg: 115,
814
- * bloodPressureDiastolicMmhg: 85,
815
- * bodyTemperatureF: 98,
816
- * hemoglobinGdl: 15.1,
817
- * hematocritPct: 51.2
818
- * },
819
- * interventions: [{
820
- * name: "Physical Therapy Session",
821
- * category: "lifestyle",
822
- * description: "A session focused on improving muscular strength, flexibility, and range of motion post-injury.",
823
- * medication: {
824
- * name: "Lisinopril",
825
- * rxCui: CandidApi.encounters.v4.RxCui("860975"),
826
- * dosage: "10mg",
827
- * dosageForm: "Tablet",
828
- * frequency: "Once Daily",
829
- * asNeeded: true
830
- * },
831
- * labs: [{
832
- * name: "Genetic Health Labs",
833
- * code: "GH12345",
834
- * codeType: "quest"
835
- * }]
353
+ * code: "code"
354
+ * }, {
355
+ * codeType: "ABF",
356
+ * code: "code"
836
357
  * }],
837
- * payToAddress: {
838
- * address1: "123 Main St",
839
- * address2: "Apt 1",
840
- * city: "New York",
841
- * state: "NY",
842
- * zipCode: "10001",
843
- * zipPlusFourCode: "1234"
844
- * },
845
- * synchronicity: "Synchronous",
846
- * billableStatus: "BILLABLE",
847
- * additionalInformation: "string",
848
- * serviceAuthorizationExceptionCode: "1",
849
- * admissionDate: "2023-01-15",
850
- * dischargeDate: "2023-01-15",
851
- * onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
852
- * lastMenstrualPeriodDate: "2023-01-15",
853
- * delayReasonCode: "1"
358
+ * placeOfServiceCode: "01"
854
359
  * })
855
360
  */
856
361
  createFromPreEncounterPatient(request, requestOptions) {
@@ -859,7 +364,7 @@ class V4 {
859
364
  const _response = yield core.fetcher({
860
365
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/encounters/v4/create-from-pre-encounter"),
861
366
  method: "POST",
862
- 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),
367
+ 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),
863
368
  contentType: "application/json",
864
369
  requestType: "json",
865
370
  body: serializers.encounters.v4.EncounterCreateFromPreEncounter.jsonOrThrow(request, {
@@ -913,137 +418,7 @@ class V4 {
913
418
  * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
914
419
  *
915
420
  * @example
916
- * await client.encounters.v4.update(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
917
- * payToAddress: {
918
- * address1: "123 Main St",
919
- * address2: "Apt 1",
920
- * city: "New York",
921
- * state: "NY",
922
- * zipCode: "10001",
923
- * zipPlusFourCode: "1234"
924
- * },
925
- * diagnosisIds: [CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
926
- * initialReferringProvider: {
927
- * npi: "string",
928
- * taxonomyCode: "string",
929
- * address: {
930
- * address1: "123 Main St",
931
- * address2: "Apt 1",
932
- * city: "New York",
933
- * state: "NY",
934
- * zipCode: "10001",
935
- * zipPlusFourCode: "1234"
936
- * },
937
- * qualifier: "DQ",
938
- * firstName: "string",
939
- * lastName: "string",
940
- * organizationName: "string"
941
- * },
942
- * referringProvider: {
943
- * npi: "string",
944
- * taxonomyCode: "string",
945
- * address: {
946
- * address1: "123 Main St",
947
- * address2: "Apt 1",
948
- * city: "New York",
949
- * state: "NY",
950
- * zipCode: "10001",
951
- * zipPlusFourCode: "1234"
952
- * },
953
- * firstName: "string",
954
- * lastName: "string",
955
- * organizationName: "string"
956
- * },
957
- * patient: {
958
- * firstName: "string",
959
- * lastName: "string",
960
- * gender: "male",
961
- * externalId: "string",
962
- * dateOfBirth: "2023-01-15",
963
- * address: {
964
- * address1: "123 Main St",
965
- * address2: "Apt 1",
966
- * city: "New York",
967
- * state: "NY",
968
- * zipCode: "10001",
969
- * zipPlusFourCode: "1234"
970
- * },
971
- * phoneNumbers: [{
972
- * number: "1234567890",
973
- * type: "Home"
974
- * }],
975
- * phoneConsent: true,
976
- * email: CandidApi.Email("johndoe@joincandidhealth.com"),
977
- * emailConsent: true,
978
- * nonInsurancePayers: [CandidApi.nonInsurancePayers.v1.NonInsurancePayerId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
979
- * nonInsurancePayersInfo: [{
980
- * nonInsurancePayerId: CandidApi.nonInsurancePayers.v1.NonInsurancePayerId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
981
- * memberId: "string",
982
- * clinicalTrialInfo: [{
983
- * clinicalTrialId: CandidApi.ClinicalTrialId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
984
- * }]
985
- * }]
986
- * },
987
- * renderingProvider: {
988
- * npi: "string",
989
- * taxonomyCode: "string",
990
- * address: {
991
- * address1: "123 Main St",
992
- * address2: "Apt 1",
993
- * city: "New York",
994
- * state: "NY",
995
- * zipCode: "10001",
996
- * zipPlusFourCode: "1234"
997
- * },
998
- * firstName: "string",
999
- * lastName: "string",
1000
- * organizationName: "string"
1001
- * },
1002
- * serviceFacility: {
1003
- * organizationName: "Test Organization",
1004
- * address: {
1005
- * address1: "123 Main St",
1006
- * address2: "Apt 1",
1007
- * city: "New York",
1008
- * state: "NY",
1009
- * zipCode: "10001",
1010
- * zipPlusFourCode: "1234"
1011
- * }
1012
- * },
1013
- * supervisingProvider: {
1014
- * npi: "string",
1015
- * taxonomyCode: "string",
1016
- * address: {
1017
- * address1: "123 Main St",
1018
- * address2: "Apt 1",
1019
- * city: "New York",
1020
- * state: "NY",
1021
- * zipCode: "10001",
1022
- * zipPlusFourCode: "1234"
1023
- * },
1024
- * firstName: "string",
1025
- * lastName: "string",
1026
- * organizationName: "string"
1027
- * },
1028
- * billingProvider: {
1029
- * address: {
1030
- * address1: "123 Main St",
1031
- * address2: "Apt 1",
1032
- * city: "New York",
1033
- * state: "NY",
1034
- * zipCode: "10001",
1035
- * zipPlusFourCode: "1234"
1036
- * },
1037
- * taxId: "string",
1038
- * npi: "string",
1039
- * taxonomyCode: "string",
1040
- * providerCommercialLicenseType: "0",
1041
- * firstName: "string",
1042
- * lastName: "string",
1043
- * organizationName: "string"
1044
- * },
1045
- * placeOfServiceCodeAsSubmitted: "01"
1046
- * })
421
+ * await client.encounters.v4.update(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
1047
422
  */
1048
423
  update(encounterId_1) {
1049
424
  return __awaiter(this, arguments, void 0, function* (encounterId, request = {}, requestOptions) {
@@ -1051,7 +426,7 @@ class V4 {
1051
426
  const _response = yield core.fetcher({
1052
427
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/encounters/v4/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
1053
428
  method: "PATCH",
1054
- 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),
429
+ 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),
1055
430
  contentType: "application/json",
1056
431
  requestType: "json",
1057
432
  body: serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),