candidhealth 0.43.0 → 0.45.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 (318) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  3. package/api/resources/billingNotes/resources/v2/types/index.d.ts +0 -1
  4. package/api/resources/billingNotes/resources/v2/types/index.js +0 -1
  5. package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +5 -239
  6. package/api/resources/chargeCapture/resources/v1/client/Client.js +16 -249
  7. package/api/resources/chargeCapture/resources/v1/client/create.d.ts +7 -1
  8. package/api/resources/chargeCapture/resources/v1/client/create.js +11 -0
  9. package/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -1
  10. package/api/resources/chargeCapture/resources/v1/client/index.js +2 -2
  11. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +8 -0
  12. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +1 -118
  13. package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +1 -118
  14. package/{dist/api/resources/chargeCapture/resources/v1/client/updatePostBilledChange.d.ts → api/resources/chargeCapture/resources/v1/client/updatePostBilledChanges.d.ts} +6 -6
  15. package/{dist/api/resources/chargeCapture/resources/v1/client/updatePostBilledChange.js → api/resources/chargeCapture/resources/v1/client/updatePostBilledChanges.js} +3 -3
  16. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +27 -1
  17. package/api/resources/chargeCapture/resources/v1/types/ChargeExternalIdConflictErrorMessage.d.ts +6 -0
  18. package/api/resources/chargeCapture/resources/v1/types/index.d.ts +1 -0
  19. package/api/resources/chargeCapture/resources/v1/types/index.js +1 -0
  20. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +3 -3
  21. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreation.d.ts +3 -1
  22. package/api/resources/commons/types/StreetAddressOptionalBase.d.ts +12 -0
  23. package/api/resources/commons/types/StreetAddressShortZipOptional.d.ts +19 -0
  24. package/api/resources/commons/types/StreetAddressShortZipOptional.js +5 -0
  25. package/api/resources/commons/types/index.d.ts +2 -0
  26. package/api/resources/commons/types/index.js +2 -0
  27. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  28. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  29. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  30. package/api/resources/diagnoses/client/Client.js +3 -3
  31. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  32. package/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +1 -1
  33. package/api/resources/encounterAttachments/resources/v1/client/Client.js +4 -4
  34. package/api/resources/encounterAttachments/resources/v1/types/EncounterAttachmentType.d.ts +3 -1
  35. package/api/resources/encounterAttachments/resources/v1/types/EncounterAttachmentType.js +2 -0
  36. package/api/resources/encounterProviders/resources/v2/client/Client.d.ts +66 -8
  37. package/api/resources/encounterProviders/resources/v2/client/Client.js +78 -20
  38. package/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +27 -0
  39. package/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.js +5 -0
  40. package/api/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.d.ts +14 -0
  41. package/api/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.js +5 -0
  42. package/api/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.d.ts +13 -0
  43. package/api/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.js +5 -0
  44. package/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.d.ts +13 -0
  45. package/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.js +5 -0
  46. package/api/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.d.ts +13 -0
  47. package/api/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.js +5 -0
  48. package/api/resources/encounterProviders/resources/v2/types/index.d.ts +5 -0
  49. package/api/resources/encounterProviders/resources/v2/types/index.js +5 -0
  50. package/api/resources/encounters/resources/v4/client/Client.d.ts +197 -79
  51. package/api/resources/encounters/resources/v4/client/Client.js +202 -84
  52. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +89 -9
  53. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +138 -66
  54. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  55. package/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +2 -26
  56. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  57. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  58. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  59. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  60. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  61. package/api/resources/guarantor/resources/v1/client/Client.d.ts +21 -1
  62. package/api/resources/guarantor/resources/v1/client/Client.js +24 -4
  63. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  64. package/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +23 -0
  65. package/api/resources/individual/types/PatientUpdateWithOptionalAddress.js +5 -0
  66. package/api/resources/individual/types/index.d.ts +1 -0
  67. package/api/resources/individual/types/index.js +1 -0
  68. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  69. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  70. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  71. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  72. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  73. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  74. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  75. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  76. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  77. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  78. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  79. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  80. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  81. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  82. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
  83. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  84. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  85. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  86. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  87. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  88. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  89. package/api/resources/serviceFacility/client/Client.js +1 -1
  90. package/api/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.d.ts +20 -0
  91. package/api/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.js +5 -0
  92. package/api/resources/serviceFacility/types/index.d.ts +1 -0
  93. package/api/resources/serviceFacility/types/index.js +1 -0
  94. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +4 -1
  95. package/api/resources/serviceLines/resources/v2/client/Client.js +7 -4
  96. package/api/resources/superbills/resources/v1/client/Client.js +1 -1
  97. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  98. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  99. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  100. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  101. package/dist/api/resources/billingNotes/resources/v2/types/index.d.ts +0 -1
  102. package/dist/api/resources/billingNotes/resources/v2/types/index.js +0 -1
  103. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +5 -239
  104. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +16 -249
  105. package/dist/api/resources/chargeCapture/resources/v1/client/create.d.ts +7 -1
  106. package/dist/api/resources/chargeCapture/resources/v1/client/create.js +11 -0
  107. package/dist/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -1
  108. package/dist/api/resources/chargeCapture/resources/v1/client/index.js +2 -2
  109. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +8 -0
  110. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +1 -118
  111. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +1 -118
  112. package/{api/resources/chargeCapture/resources/v1/client/updatePostBilledChange.d.ts → dist/api/resources/chargeCapture/resources/v1/client/updatePostBilledChanges.d.ts} +6 -6
  113. package/{api/resources/chargeCapture/resources/v1/client/updatePostBilledChange.js → dist/api/resources/chargeCapture/resources/v1/client/updatePostBilledChanges.js} +3 -3
  114. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +27 -1
  115. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeExternalIdConflictErrorMessage.d.ts +6 -0
  116. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeExternalIdConflictErrorMessage.js +5 -0
  117. package/dist/api/resources/chargeCapture/resources/v1/types/index.d.ts +1 -0
  118. package/dist/api/resources/chargeCapture/resources/v1/types/index.js +1 -0
  119. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +3 -3
  120. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreation.d.ts +3 -1
  121. package/dist/api/resources/commons/types/StreetAddressOptionalBase.d.ts +12 -0
  122. package/dist/api/resources/commons/types/StreetAddressOptionalBase.js +5 -0
  123. package/dist/api/resources/commons/types/StreetAddressShortZipOptional.d.ts +19 -0
  124. package/dist/api/resources/commons/types/StreetAddressShortZipOptional.js +5 -0
  125. package/dist/api/resources/commons/types/index.d.ts +2 -0
  126. package/dist/api/resources/commons/types/index.js +2 -0
  127. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  128. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  129. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  130. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  131. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  132. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +1 -1
  133. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +4 -4
  134. package/dist/api/resources/encounterAttachments/resources/v1/types/EncounterAttachmentType.d.ts +3 -1
  135. package/dist/api/resources/encounterAttachments/resources/v1/types/EncounterAttachmentType.js +2 -0
  136. package/dist/api/resources/encounterProviders/resources/v2/client/Client.d.ts +66 -8
  137. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +78 -20
  138. package/dist/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +27 -0
  139. package/dist/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.js +5 -0
  140. package/dist/api/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.d.ts +14 -0
  141. package/dist/api/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.js +5 -0
  142. package/dist/api/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.d.ts +13 -0
  143. package/dist/api/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.js +5 -0
  144. package/dist/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.d.ts +13 -0
  145. package/dist/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.js +5 -0
  146. package/dist/api/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.d.ts +13 -0
  147. package/dist/api/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.js +5 -0
  148. package/dist/api/resources/encounterProviders/resources/v2/types/index.d.ts +5 -0
  149. package/dist/api/resources/encounterProviders/resources/v2/types/index.js +5 -0
  150. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +197 -79
  151. package/dist/api/resources/encounters/resources/v4/client/Client.js +202 -84
  152. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +89 -9
  153. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +138 -66
  154. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  155. package/dist/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +2 -26
  156. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  157. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  158. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  159. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  160. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  161. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +21 -1
  162. package/dist/api/resources/guarantor/resources/v1/client/Client.js +24 -4
  163. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  164. package/dist/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +23 -0
  165. package/dist/api/resources/individual/types/PatientUpdateWithOptionalAddress.js +5 -0
  166. package/dist/api/resources/individual/types/index.d.ts +1 -0
  167. package/dist/api/resources/individual/types/index.js +1 -0
  168. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  169. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  170. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  171. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  172. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  173. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  174. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  175. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  176. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  177. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  178. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  179. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  180. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  181. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  182. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
  183. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  184. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  185. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  186. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  187. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  188. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  189. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  190. package/dist/api/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.d.ts +20 -0
  191. package/dist/api/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.js +5 -0
  192. package/dist/api/resources/serviceFacility/types/index.d.ts +1 -0
  193. package/dist/api/resources/serviceFacility/types/index.js +1 -0
  194. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +4 -1
  195. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +7 -4
  196. package/dist/api/resources/superbills/resources/v1/client/Client.js +1 -1
  197. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  198. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  199. package/dist/serialization/resources/billingNotes/resources/v2/types/index.d.ts +0 -1
  200. package/dist/serialization/resources/billingNotes/resources/v2/types/index.js +0 -1
  201. package/dist/serialization/resources/chargeCapture/resources/v1/client/create.d.ts +6 -1
  202. package/dist/serialization/resources/chargeCapture/resources/v1/client/create.js +6 -0
  203. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +1 -1
  204. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.js +2 -2
  205. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +2 -0
  206. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.js +2 -0
  207. package/{serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChange.d.ts → dist/serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChanges.d.ts} +6 -1
  208. package/{serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChange.js → dist/serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChanges.js} +5 -3
  209. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +18 -2
  210. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +18 -2
  211. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeExternalIdConflictErrorMessage.d.ts +12 -0
  212. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeExternalIdConflictErrorMessage.js +43 -0
  213. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +1 -0
  214. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.js +1 -0
  215. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreation.d.ts +3 -1
  216. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreation.js +3 -1
  217. package/dist/serialization/resources/commons/types/StreetAddressOptionalBase.d.ts +17 -0
  218. package/dist/serialization/resources/commons/types/StreetAddressOptionalBase.js +48 -0
  219. package/dist/serialization/resources/commons/types/StreetAddressShortZipOptional.d.ts +13 -0
  220. package/dist/serialization/resources/commons/types/StreetAddressShortZipOptional.js +46 -0
  221. package/dist/serialization/resources/commons/types/index.d.ts +2 -0
  222. package/dist/serialization/resources/commons/types/index.js +2 -0
  223. package/dist/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachmentType.d.ts +1 -1
  224. package/dist/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachmentType.js +1 -1
  225. package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +19 -0
  226. package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.js +52 -0
  227. package/dist/serialization/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.d.ts +18 -0
  228. package/dist/serialization/resources/{billingNotes/resources/v2/types/BillingNoteOptional.js → encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.js} +10 -11
  229. package/dist/serialization/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.d.ts +16 -0
  230. package/{serialization/resources/billingNotes/resources/v2/types/BillingNoteOptional.js → dist/serialization/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.js} +8 -11
  231. package/dist/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.d.ts +16 -0
  232. package/dist/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.js +49 -0
  233. package/dist/serialization/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.d.ts +16 -0
  234. package/dist/serialization/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.js +49 -0
  235. package/dist/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +5 -0
  236. package/dist/serialization/resources/encounterProviders/resources/v2/types/index.js +5 -0
  237. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -0
  238. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +1 -0
  239. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +16 -0
  240. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +16 -0
  241. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  242. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -0
  243. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +1 -16
  244. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +1 -16
  245. package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +29 -0
  246. package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +60 -0
  247. package/dist/serialization/resources/individual/types/index.d.ts +1 -0
  248. package/dist/serialization/resources/individual/types/index.js +1 -0
  249. package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.d.ts +16 -0
  250. package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.js +47 -0
  251. package/dist/serialization/resources/serviceFacility/types/index.d.ts +1 -0
  252. package/dist/serialization/resources/serviceFacility/types/index.js +1 -0
  253. package/dist/version.d.ts +1 -1
  254. package/dist/version.js +1 -1
  255. package/package.json +1 -1
  256. package/reference.md +284 -327
  257. package/serialization/resources/billingNotes/resources/v2/types/index.d.ts +0 -1
  258. package/serialization/resources/billingNotes/resources/v2/types/index.js +0 -1
  259. package/serialization/resources/chargeCapture/resources/v1/client/create.d.ts +6 -1
  260. package/serialization/resources/chargeCapture/resources/v1/client/create.js +6 -0
  261. package/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +1 -1
  262. package/serialization/resources/chargeCapture/resources/v1/client/index.js +2 -2
  263. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +2 -0
  264. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.js +2 -0
  265. package/{dist/serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChange.d.ts → serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChanges.d.ts} +6 -1
  266. package/{dist/serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChange.js → serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChanges.js} +5 -3
  267. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +18 -2
  268. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +18 -2
  269. package/serialization/resources/chargeCapture/resources/v1/types/ChargeExternalIdConflictErrorMessage.d.ts +12 -0
  270. package/serialization/resources/chargeCapture/resources/v1/types/ChargeExternalIdConflictErrorMessage.js +43 -0
  271. package/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +1 -0
  272. package/serialization/resources/chargeCapture/resources/v1/types/index.js +1 -0
  273. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreation.d.ts +3 -1
  274. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreation.js +3 -1
  275. package/serialization/resources/commons/types/StreetAddressOptionalBase.d.ts +17 -0
  276. package/serialization/resources/commons/types/StreetAddressOptionalBase.js +48 -0
  277. package/serialization/resources/commons/types/StreetAddressShortZipOptional.d.ts +13 -0
  278. package/serialization/resources/commons/types/StreetAddressShortZipOptional.js +46 -0
  279. package/serialization/resources/commons/types/index.d.ts +2 -0
  280. package/serialization/resources/commons/types/index.js +2 -0
  281. package/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachmentType.d.ts +1 -1
  282. package/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachmentType.js +1 -1
  283. package/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +19 -0
  284. package/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.js +52 -0
  285. package/serialization/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.d.ts +18 -0
  286. package/serialization/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.js +51 -0
  287. package/serialization/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.d.ts +16 -0
  288. package/serialization/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.js +49 -0
  289. package/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.d.ts +16 -0
  290. package/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.js +49 -0
  291. package/serialization/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.d.ts +16 -0
  292. package/serialization/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.js +49 -0
  293. package/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +5 -0
  294. package/serialization/resources/encounterProviders/resources/v2/types/index.js +5 -0
  295. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -0
  296. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +1 -0
  297. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +16 -0
  298. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +16 -0
  299. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  300. package/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -0
  301. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +1 -16
  302. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +1 -16
  303. package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +29 -0
  304. package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +60 -0
  305. package/serialization/resources/individual/types/index.d.ts +1 -0
  306. package/serialization/resources/individual/types/index.js +1 -0
  307. package/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.d.ts +16 -0
  308. package/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.js +47 -0
  309. package/serialization/resources/serviceFacility/types/index.d.ts +1 -0
  310. package/serialization/resources/serviceFacility/types/index.js +1 -0
  311. package/version.d.ts +1 -1
  312. package/version.js +1 -1
  313. package/api/resources/billingNotes/resources/v2/types/BillingNoteOptional.d.ts +0 -15
  314. package/dist/api/resources/billingNotes/resources/v2/types/BillingNoteOptional.d.ts +0 -15
  315. package/dist/serialization/resources/billingNotes/resources/v2/types/BillingNoteOptional.d.ts +0 -19
  316. package/serialization/resources/billingNotes/resources/v2/types/BillingNoteOptional.d.ts +0 -19
  317. /package/api/resources/{billingNotes/resources/v2/types/BillingNoteOptional.js → chargeCapture/resources/v1/types/ChargeExternalIdConflictErrorMessage.js} +0 -0
  318. /package/{dist/api/resources/billingNotes/resources/v2/types/BillingNoteOptional.js → api/resources/commons/types/StreetAddressOptionalBase.js} +0 -0
@@ -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.43.0", "User-Agent": "candidhealth/0.43.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.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),
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.43.0", "User-Agent": "candidhealth/0.43.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.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),
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,
@@ -253,7 +253,10 @@ class V4 {
253
253
  * taxId: "string",
254
254
  * npi: "string",
255
255
  * taxonomyCode: "string",
256
- * providerCommercialLicenseType: "0"
256
+ * providerCommercialLicenseType: "0",
257
+ * firstName: "string",
258
+ * lastName: "string",
259
+ * organizationName: "string"
257
260
  * },
258
261
  * renderingProvider: {
259
262
  * npi: "string",
@@ -265,7 +268,10 @@ class V4 {
265
268
  * state: "NY",
266
269
  * zipCode: "10001",
267
270
  * zipPlusFourCode: "1234"
268
- * }
271
+ * },
272
+ * firstName: "string",
273
+ * lastName: "string",
274
+ * organizationName: "string"
269
275
  * },
270
276
  * referringProvider: {
271
277
  * npi: "string",
@@ -277,7 +283,10 @@ class V4 {
277
283
  * state: "NY",
278
284
  * zipCode: "10001",
279
285
  * zipPlusFourCode: "1234"
280
- * }
286
+ * },
287
+ * firstName: "string",
288
+ * lastName: "string",
289
+ * organizationName: "string"
281
290
  * },
282
291
  * initialReferringProvider: {
283
292
  * npi: "string",
@@ -290,7 +299,10 @@ class V4 {
290
299
  * zipCode: "10001",
291
300
  * zipPlusFourCode: "1234"
292
301
  * },
293
- * qualifier: "DQ"
302
+ * qualifier: "DQ",
303
+ * firstName: "string",
304
+ * lastName: "string",
305
+ * organizationName: "string"
294
306
  * },
295
307
  * supervisingProvider: {
296
308
  * npi: "string",
@@ -302,7 +314,10 @@ class V4 {
302
314
  * state: "NY",
303
315
  * zipCode: "10001",
304
316
  * zipPlusFourCode: "1234"
305
- * }
317
+ * },
318
+ * firstName: "string",
319
+ * lastName: "string",
320
+ * organizationName: "string"
306
321
  * },
307
322
  * serviceFacility: {
308
323
  * organizationName: "string",
@@ -321,9 +336,28 @@ class V4 {
321
336
  * insuranceCard: {
322
337
  * memberId: "string",
323
338
  * payerName: "string",
324
- * payerId: "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")
325
350
  * },
326
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
+ * },
327
361
  * firstName: "string",
328
362
  * lastName: "string",
329
363
  * gender: "male"
@@ -332,9 +366,28 @@ class V4 {
332
366
  * insuranceCard: {
333
367
  * memberId: "string",
334
368
  * payerName: "string",
335
- * payerId: "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")
336
380
  * },
337
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
+ * },
338
391
  * firstName: "string",
339
392
  * lastName: "string",
340
393
  * gender: "male"
@@ -343,9 +396,28 @@ class V4 {
343
396
  * insuranceCard: {
344
397
  * memberId: "string",
345
398
  * payerName: "string",
346
- * payerId: "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")
347
410
  * },
348
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
+ * },
349
421
  * firstName: "string",
350
422
  * lastName: "string",
351
423
  * gender: "male"
@@ -434,12 +506,15 @@ class V4 {
434
506
  * }],
435
507
  * referralNumber: "string",
436
508
  * epsdtReferral: {
437
- * conditionIndicator1: "AV"
509
+ * conditionIndicator1: "AV",
510
+ * conditionIndicator2: "AV",
511
+ * conditionIndicator3: "AV"
438
512
  * },
439
513
  * claimSupplementalInformation: [{
440
514
  * attachmentReportTypeCode: "03",
441
515
  * attachmentTransmissionCode: "BM"
442
516
  * }],
517
+ * secondaryPayerCarrierCode: "string",
443
518
  * externalId: CandidApi.EncounterExternalId("string"),
444
519
  * dateOfService: "2023-01-15",
445
520
  * endDateOfService: "2023-01-15",
@@ -507,7 +582,7 @@ class V4 {
507
582
  const _response = yield core.fetcher({
508
583
  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"),
509
584
  method: "POST",
510
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.0", "User-Agent": "candidhealth/0.43.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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),
511
586
  contentType: "application/json",
512
587
  requestType: "json",
513
588
  body: serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -594,7 +669,10 @@ class V4 {
594
669
  * taxId: "string",
595
670
  * npi: "string",
596
671
  * taxonomyCode: "string",
597
- * providerCommercialLicenseType: "0"
672
+ * providerCommercialLicenseType: "0",
673
+ * firstName: "string",
674
+ * lastName: "string",
675
+ * organizationName: "string"
598
676
  * },
599
677
  * renderingProvider: {
600
678
  * npi: "string",
@@ -606,7 +684,10 @@ class V4 {
606
684
  * state: "NY",
607
685
  * zipCode: "10001",
608
686
  * zipPlusFourCode: "1234"
609
- * }
687
+ * },
688
+ * firstName: "string",
689
+ * lastName: "string",
690
+ * organizationName: "string"
610
691
  * },
611
692
  * initialReferringProvider: {
612
693
  * npi: "string",
@@ -619,7 +700,10 @@ class V4 {
619
700
  * zipCode: "10001",
620
701
  * zipPlusFourCode: "1234"
621
702
  * },
622
- * qualifier: "DQ"
703
+ * qualifier: "DQ",
704
+ * firstName: "string",
705
+ * lastName: "string",
706
+ * organizationName: "string"
623
707
  * },
624
708
  * supervisingProvider: {
625
709
  * npi: "string",
@@ -631,7 +715,10 @@ class V4 {
631
715
  * state: "NY",
632
716
  * zipCode: "10001",
633
717
  * zipPlusFourCode: "1234"
634
- * }
718
+ * },
719
+ * firstName: "string",
720
+ * lastName: "string",
721
+ * organizationName: "string"
635
722
  * },
636
723
  * serviceFacility: {
637
724
  * organizationName: "string",
@@ -772,7 +859,7 @@ class V4 {
772
859
  const _response = yield core.fetcher({
773
860
  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"),
774
861
  method: "POST",
775
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.0", "User-Agent": "candidhealth/0.43.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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),
776
863
  contentType: "application/json",
777
864
  requestType: "json",
778
865
  body: serializers.encounters.v4.EncounterCreateFromPreEncounter.jsonOrThrow(request, {
@@ -827,14 +914,6 @@ class V4 {
827
914
  *
828
915
  * @example
829
916
  * await client.encounters.v4.update(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
830
- * diagnosisIds: [CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
831
- * placeOfServiceCodeAsSubmitted: "01",
832
- * benefitsAssignedToProvider: true,
833
- * priorAuthorizationNumber: CandidApi.encounters.v4.PriorAuthorizationNumber("string"),
834
- * externalId: CandidApi.EncounterExternalId("string"),
835
- * dateOfService: "2023-01-15",
836
- * tagIds: [],
837
- * clinicalNotes: [],
838
917
  * payToAddress: {
839
918
  * address1: "123 Main St",
840
919
  * address2: "Apt 1",
@@ -843,67 +922,83 @@ class V4 {
843
922
  * zipCode: "10001",
844
923
  * zipPlusFourCode: "1234"
845
924
  * },
846
- * billableStatus: "BILLABLE",
847
- * responsibleParty: "INSURANCE_PAY",
848
- * providerAcceptsAssignment: true,
849
- * synchronicity: "Synchronous",
850
- * placeOfServiceCode: "01",
851
- * appointmentType: "string",
852
- * endDateOfService: "2023-01-15",
853
- * subscriberPrimary: {
854
- * insuranceCard: {
855
- * memberId: "string",
856
- * payerName: "string",
857
- * payerId: "string"
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"
858
936
  * },
859
- * patientRelationshipToSubscriberCode: "01",
937
+ * qualifier: "DQ",
860
938
  * firstName: "string",
861
939
  * lastName: "string",
862
- * gender: "male"
940
+ * organizationName: "string"
863
941
  * },
864
- * subscriberSecondary: {
865
- * insuranceCard: {
866
- * memberId: "string",
867
- * payerName: "string",
868
- * payerId: "string"
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"
869
952
  * },
870
- * patientRelationshipToSubscriberCode: "01",
871
953
  * firstName: "string",
872
954
  * lastName: "string",
873
- * gender: "male"
955
+ * organizationName: "string"
874
956
  * },
875
- * subscriberTertiary: {
876
- * insuranceCard: {
877
- * memberId: "string",
878
- * payerName: "string",
879
- * payerId: "string"
880
- * },
881
- * patientRelationshipToSubscriberCode: "01",
957
+ * patient: {
882
958
  * firstName: "string",
883
959
  * lastName: "string",
884
- * gender: "male"
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
+ * }]
885
986
  * },
886
- * additionalInformation: "string",
887
- * serviceAuthorizationExceptionCode: "1",
888
- * admissionDate: "2023-01-15",
889
- * dischargeDate: "2023-01-15",
890
- * onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
891
- * lastMenstrualPeriodDate: "2023-01-15",
892
- * delayReasonCode: "1",
893
- * patient: {},
894
- * patientAuthorizedRelease: true,
895
- * schemaInstances: [],
896
- * vitals: {
897
- * heightIn: 70,
898
- * weightLbs: 165,
899
- * bloodPressureSystolicMmhg: 115,
900
- * bloodPressureDiastolicMmhg: 85,
901
- * bodyTemperatureF: 98,
902
- * hemoglobinGdl: 15.1,
903
- * hematocritPct: 51.2
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"
904
1001
  * },
905
- * existingMedications: [],
906
- * renderingProvider: {},
907
1002
  * serviceFacility: {
908
1003
  * organizationName: "Test Organization",
909
1004
  * address: {
@@ -915,16 +1010,39 @@ class V4 {
915
1010
  * zipPlusFourCode: "1234"
916
1011
  * }
917
1012
  * },
918
- * guarantor: {},
919
- * billingProvider: {},
920
- * supervisingProvider: {},
921
- * referringProvider: {},
922
- * initialReferringProvider: {},
923
- * referralNumber: "string",
924
- * epsdtReferral: {
925
- * conditionIndicator1: "AV"
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"
926
1044
  * },
927
- * claimSupplementalInformation: []
1045
+ * placeOfServiceCodeAsSubmitted: "01"
928
1046
  * })
929
1047
  */
930
1048
  update(encounterId_1) {
@@ -933,7 +1051,7 @@ class V4 {
933
1051
  const _response = yield core.fetcher({
934
1052
  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))}`),
935
1053
  method: "PATCH",
936
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.0", "User-Agent": "candidhealth/0.43.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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),
937
1055
  contentType: "application/json",
938
1056
  requestType: "json",
939
1057
  body: serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -47,7 +47,10 @@ import * as CandidApi from "../../../../../../index";
47
47
  * taxId: "string",
48
48
  * npi: "string",
49
49
  * taxonomyCode: "string",
50
- * providerCommercialLicenseType: "0"
50
+ * providerCommercialLicenseType: "0",
51
+ * firstName: "string",
52
+ * lastName: "string",
53
+ * organizationName: "string"
51
54
  * },
52
55
  * renderingProvider: {
53
56
  * npi: "string",
@@ -59,7 +62,10 @@ import * as CandidApi from "../../../../../../index";
59
62
  * state: "NY",
60
63
  * zipCode: "10001",
61
64
  * zipPlusFourCode: "1234"
62
- * }
65
+ * },
66
+ * firstName: "string",
67
+ * lastName: "string",
68
+ * organizationName: "string"
63
69
  * },
64
70
  * referringProvider: {
65
71
  * npi: "string",
@@ -71,7 +77,10 @@ import * as CandidApi from "../../../../../../index";
71
77
  * state: "NY",
72
78
  * zipCode: "10001",
73
79
  * zipPlusFourCode: "1234"
74
- * }
80
+ * },
81
+ * firstName: "string",
82
+ * lastName: "string",
83
+ * organizationName: "string"
75
84
  * },
76
85
  * initialReferringProvider: {
77
86
  * npi: "string",
@@ -84,7 +93,10 @@ import * as CandidApi from "../../../../../../index";
84
93
  * zipCode: "10001",
85
94
  * zipPlusFourCode: "1234"
86
95
  * },
87
- * qualifier: "DQ"
96
+ * qualifier: "DQ",
97
+ * firstName: "string",
98
+ * lastName: "string",
99
+ * organizationName: "string"
88
100
  * },
89
101
  * supervisingProvider: {
90
102
  * npi: "string",
@@ -96,7 +108,10 @@ import * as CandidApi from "../../../../../../index";
96
108
  * state: "NY",
97
109
  * zipCode: "10001",
98
110
  * zipPlusFourCode: "1234"
99
- * }
111
+ * },
112
+ * firstName: "string",
113
+ * lastName: "string",
114
+ * organizationName: "string"
100
115
  * },
101
116
  * serviceFacility: {
102
117
  * organizationName: "string",
@@ -115,9 +130,28 @@ import * as CandidApi from "../../../../../../index";
115
130
  * insuranceCard: {
116
131
  * memberId: "string",
117
132
  * payerName: "string",
118
- * payerId: "string"
133
+ * payerId: "string",
134
+ * rxBin: "string",
135
+ * rxPcn: "string",
136
+ * imageUrlFront: "string",
137
+ * imageUrlBack: "string",
138
+ * emrPayerCrosswalk: "HEALTHIE",
139
+ * groupNumber: "string",
140
+ * planName: "string",
141
+ * planType: "09",
142
+ * insuranceType: "01",
143
+ * payerPlanGroupId: CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
119
144
  * },
120
145
  * patientRelationshipToSubscriberCode: "01",
146
+ * dateOfBirth: "2023-01-15",
147
+ * address: {
148
+ * address1: "123 Main St",
149
+ * address2: "Apt 1",
150
+ * city: "New York",
151
+ * state: "NY",
152
+ * zipCode: "10001",
153
+ * zipPlusFourCode: "1234"
154
+ * },
121
155
  * firstName: "string",
122
156
  * lastName: "string",
123
157
  * gender: "male"
@@ -126,9 +160,28 @@ import * as CandidApi from "../../../../../../index";
126
160
  * insuranceCard: {
127
161
  * memberId: "string",
128
162
  * payerName: "string",
129
- * payerId: "string"
163
+ * payerId: "string",
164
+ * rxBin: "string",
165
+ * rxPcn: "string",
166
+ * imageUrlFront: "string",
167
+ * imageUrlBack: "string",
168
+ * emrPayerCrosswalk: "HEALTHIE",
169
+ * groupNumber: "string",
170
+ * planName: "string",
171
+ * planType: "09",
172
+ * insuranceType: "01",
173
+ * payerPlanGroupId: CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
130
174
  * },
131
175
  * patientRelationshipToSubscriberCode: "01",
176
+ * dateOfBirth: "2023-01-15",
177
+ * address: {
178
+ * address1: "123 Main St",
179
+ * address2: "Apt 1",
180
+ * city: "New York",
181
+ * state: "NY",
182
+ * zipCode: "10001",
183
+ * zipPlusFourCode: "1234"
184
+ * },
132
185
  * firstName: "string",
133
186
  * lastName: "string",
134
187
  * gender: "male"
@@ -137,9 +190,28 @@ import * as CandidApi from "../../../../../../index";
137
190
  * insuranceCard: {
138
191
  * memberId: "string",
139
192
  * payerName: "string",
140
- * payerId: "string"
193
+ * payerId: "string",
194
+ * rxBin: "string",
195
+ * rxPcn: "string",
196
+ * imageUrlFront: "string",
197
+ * imageUrlBack: "string",
198
+ * emrPayerCrosswalk: "HEALTHIE",
199
+ * groupNumber: "string",
200
+ * planName: "string",
201
+ * planType: "09",
202
+ * insuranceType: "01",
203
+ * payerPlanGroupId: CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
141
204
  * },
142
205
  * patientRelationshipToSubscriberCode: "01",
206
+ * dateOfBirth: "2023-01-15",
207
+ * address: {
208
+ * address1: "123 Main St",
209
+ * address2: "Apt 1",
210
+ * city: "New York",
211
+ * state: "NY",
212
+ * zipCode: "10001",
213
+ * zipPlusFourCode: "1234"
214
+ * },
143
215
  * firstName: "string",
144
216
  * lastName: "string",
145
217
  * gender: "male"
@@ -228,12 +300,15 @@ import * as CandidApi from "../../../../../../index";
228
300
  * }],
229
301
  * referralNumber: "string",
230
302
  * epsdtReferral: {
231
- * conditionIndicator1: "AV"
303
+ * conditionIndicator1: "AV",
304
+ * conditionIndicator2: "AV",
305
+ * conditionIndicator3: "AV"
232
306
  * },
233
307
  * claimSupplementalInformation: [{
234
308
  * attachmentReportTypeCode: "03",
235
309
  * attachmentTransmissionCode: "BM"
236
310
  * }],
311
+ * secondaryPayerCarrierCode: "string",
237
312
  * externalId: CandidApi.EncounterExternalId("string"),
238
313
  * dateOfService: "2023-01-15",
239
314
  * endDateOfService: "2023-01-15",
@@ -422,4 +497,9 @@ export interface EncounterCreate extends CandidApi.encounters.v4.EncounterBase {
422
497
  *
423
498
  */
424
499
  claimSupplementalInformation?: CandidApi.encounters.v4.ClaimSupplementalInformation[];
500
+ /**
501
+ * When Medicaid is billed as the secondary payer the Carrier Code is used to identify the primary payer. This is required for certain states.
502
+ *
503
+ */
504
+ secondaryPayerCarrierCode?: string;
425
505
  }