candidhealth 0.39.9 → 0.39.11

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 (315) hide show
  1. package/README.md +28 -8
  2. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  3. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  4. package/api/resources/chargeCapture/resources/v1/client/Client.js +5 -5
  5. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +3 -3
  6. package/api/resources/claims/types/Claim.d.ts +1 -0
  7. package/api/resources/clinicalTrials/index.d.ts +1 -0
  8. package/api/resources/clinicalTrials/index.js +17 -0
  9. package/api/resources/clinicalTrials/resources/index.d.ts +1 -0
  10. package/api/resources/clinicalTrials/resources/index.js +37 -0
  11. package/api/resources/clinicalTrials/resources/v1/index.d.ts +1 -0
  12. package/api/resources/clinicalTrials/resources/v1/index.js +17 -0
  13. package/api/resources/clinicalTrials/resources/v1/types/ClinicalTrial.d.ts +9 -0
  14. package/api/resources/clinicalTrials/resources/v1/types/ClinicalTrial.js +5 -0
  15. package/api/resources/clinicalTrials/resources/v1/types/ClinicalTrialPhase.d.ts +9 -0
  16. package/api/resources/clinicalTrials/resources/v1/types/ClinicalTrialPhase.js +11 -0
  17. package/api/resources/clinicalTrials/resources/v1/types/MutableClinicalTrial.d.ts +10 -0
  18. package/api/resources/clinicalTrials/resources/v1/types/MutableClinicalTrial.js +5 -0
  19. package/api/resources/clinicalTrials/resources/v1/types/index.d.ts +3 -0
  20. package/api/resources/clinicalTrials/resources/v1/types/index.js +19 -0
  21. package/api/resources/commons/types/AdjustmentId.d.ts +8 -0
  22. package/api/resources/commons/types/AdjustmentId.js +9 -0
  23. package/api/resources/commons/types/ClinicalTrialId.d.ts +8 -0
  24. package/api/resources/commons/types/ClinicalTrialId.js +9 -0
  25. package/api/resources/commons/types/ProcedureModifier.d.ts +16 -0
  26. package/api/resources/commons/types/ProcedureModifier.js +4 -0
  27. package/api/resources/commons/types/index.d.ts +2 -0
  28. package/api/resources/commons/types/index.js +2 -0
  29. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  30. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  31. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  32. package/api/resources/diagnoses/client/Client.js +3 -3
  33. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  34. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  35. package/api/resources/encounters/resources/v4/client/Client.d.ts +4 -1
  36. package/api/resources/encounters/resources/v4/client/Client.js +9 -6
  37. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +4 -1
  38. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +11 -4
  39. package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +9 -4
  40. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  41. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  42. package/api/resources/exports/resources/v3/client/Client.d.ts +3 -0
  43. package/api/resources/exports/resources/v3/client/Client.js +4 -1
  44. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  45. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  46. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  47. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  48. package/api/resources/index.d.ts +1 -0
  49. package/api/resources/index.js +2 -1
  50. package/api/resources/individual/types/Patient.d.ts +6 -3
  51. package/api/resources/individual/types/PatientClinicalTrialInfo.d.ts +8 -0
  52. package/api/resources/individual/types/PatientClinicalTrialInfo.js +5 -0
  53. package/api/resources/individual/types/PatientClinicalTrialInfoCreate.d.ts +8 -0
  54. package/api/resources/individual/types/PatientClinicalTrialInfoCreate.js +5 -0
  55. package/api/resources/individual/types/PatientNonInsurancePayerInfo.d.ts +6 -2
  56. package/api/resources/individual/types/PatientNonInsurancePayerInfoCreate.d.ts +1 -0
  57. package/api/resources/individual/types/index.d.ts +2 -0
  58. package/api/resources/individual/types/index.js +2 -0
  59. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  60. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  61. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  62. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  63. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  64. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  65. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  66. package/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayer.d.ts +3 -1
  67. package/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +4 -1
  68. package/api/resources/organizationProviders/resources/v2/types/LicenseType.js +3 -0
  69. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  70. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  71. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  72. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  73. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  74. package/api/resources/payers/resources/v3/types/Payer.d.ts +1 -0
  75. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  76. package/api/resources/preEncounter/resources/common/types/CanonicalClinicalTrialAssociation.d.ts +9 -0
  77. package/api/resources/preEncounter/resources/common/types/CanonicalClinicalTrialAssociation.js +5 -0
  78. package/api/resources/preEncounter/resources/common/types/CanonicalClinicalTrialId.d.ts +11 -0
  79. package/api/resources/preEncounter/resources/common/types/CanonicalClinicalTrialId.js +9 -0
  80. package/api/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +2 -0
  81. package/api/resources/preEncounter/resources/common/types/index.d.ts +2 -0
  82. package/api/resources/preEncounter/resources/common/types/index.js +2 -0
  83. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
  84. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  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 +10 -10
  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/serviceLines/resources/v2/client/Client.js +3 -3
  91. package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +5 -0
  92. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -1
  93. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +5 -0
  94. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +6 -0
  95. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  96. package/api/resources/writeOffs/resources/v1/client/Client.d.ts +20 -0
  97. package/api/resources/writeOffs/resources/v1/client/Client.js +82 -4
  98. package/api/resources/writeOffs/resources/v1/client/index.d.ts +2 -0
  99. package/api/resources/writeOffs/resources/v1/client/index.js +3 -1
  100. package/api/resources/writeOffs/resources/v1/client/revertEraOriginatedInsuranceBalanceAdjustment.d.ts +22 -0
  101. package/api/resources/writeOffs/resources/v1/client/revertEraOriginatedInsuranceBalanceAdjustment.js +57 -0
  102. package/api/resources/writeOffs/resources/v1/client/revertInsuranceBalanceAdjustment.d.ts +22 -0
  103. package/api/resources/writeOffs/resources/v1/client/revertInsuranceBalanceAdjustment.js +57 -0
  104. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  105. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  106. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +5 -5
  107. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +3 -3
  108. package/dist/api/resources/claims/types/Claim.d.ts +1 -0
  109. package/dist/api/resources/clinicalTrials/index.d.ts +1 -0
  110. package/dist/api/resources/clinicalTrials/index.js +17 -0
  111. package/dist/api/resources/clinicalTrials/resources/index.d.ts +1 -0
  112. package/dist/api/resources/clinicalTrials/resources/index.js +37 -0
  113. package/dist/api/resources/clinicalTrials/resources/v1/index.d.ts +1 -0
  114. package/dist/api/resources/clinicalTrials/resources/v1/index.js +17 -0
  115. package/dist/api/resources/clinicalTrials/resources/v1/types/ClinicalTrial.d.ts +9 -0
  116. package/dist/api/resources/clinicalTrials/resources/v1/types/ClinicalTrial.js +5 -0
  117. package/dist/api/resources/clinicalTrials/resources/v1/types/ClinicalTrialPhase.d.ts +9 -0
  118. package/dist/api/resources/clinicalTrials/resources/v1/types/ClinicalTrialPhase.js +11 -0
  119. package/dist/api/resources/clinicalTrials/resources/v1/types/MutableClinicalTrial.d.ts +10 -0
  120. package/dist/api/resources/clinicalTrials/resources/v1/types/MutableClinicalTrial.js +5 -0
  121. package/dist/api/resources/clinicalTrials/resources/v1/types/index.d.ts +3 -0
  122. package/dist/api/resources/clinicalTrials/resources/v1/types/index.js +19 -0
  123. package/dist/api/resources/commons/types/AdjustmentId.d.ts +8 -0
  124. package/dist/api/resources/commons/types/AdjustmentId.js +9 -0
  125. package/dist/api/resources/commons/types/ClinicalTrialId.d.ts +8 -0
  126. package/dist/api/resources/commons/types/ClinicalTrialId.js +9 -0
  127. package/dist/api/resources/commons/types/ProcedureModifier.d.ts +16 -0
  128. package/dist/api/resources/commons/types/ProcedureModifier.js +4 -0
  129. package/dist/api/resources/commons/types/index.d.ts +2 -0
  130. package/dist/api/resources/commons/types/index.js +2 -0
  131. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  132. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  133. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  134. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  135. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  136. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  137. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +4 -1
  138. package/dist/api/resources/encounters/resources/v4/client/Client.js +9 -6
  139. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +4 -1
  140. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +11 -4
  141. package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +9 -4
  142. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  143. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  144. package/dist/api/resources/exports/resources/v3/client/Client.d.ts +3 -0
  145. package/dist/api/resources/exports/resources/v3/client/Client.js +4 -1
  146. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  147. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  148. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  149. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  150. package/dist/api/resources/index.d.ts +1 -0
  151. package/dist/api/resources/index.js +2 -1
  152. package/dist/api/resources/individual/types/Patient.d.ts +6 -3
  153. package/dist/api/resources/individual/types/PatientClinicalTrialInfo.d.ts +8 -0
  154. package/dist/api/resources/individual/types/PatientClinicalTrialInfo.js +5 -0
  155. package/dist/api/resources/individual/types/PatientClinicalTrialInfoCreate.d.ts +8 -0
  156. package/dist/api/resources/individual/types/PatientClinicalTrialInfoCreate.js +5 -0
  157. package/dist/api/resources/individual/types/PatientNonInsurancePayerInfo.d.ts +6 -2
  158. package/dist/api/resources/individual/types/PatientNonInsurancePayerInfoCreate.d.ts +1 -0
  159. package/dist/api/resources/individual/types/index.d.ts +2 -0
  160. package/dist/api/resources/individual/types/index.js +2 -0
  161. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  162. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  163. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  164. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  165. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  166. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  167. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  168. package/dist/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayer.d.ts +3 -1
  169. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +4 -1
  170. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.js +3 -0
  171. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  172. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  173. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  174. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  175. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  176. package/dist/api/resources/payers/resources/v3/types/Payer.d.ts +1 -0
  177. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  178. package/dist/api/resources/preEncounter/resources/common/types/CanonicalClinicalTrialAssociation.d.ts +9 -0
  179. package/dist/api/resources/preEncounter/resources/common/types/CanonicalClinicalTrialAssociation.js +5 -0
  180. package/dist/api/resources/preEncounter/resources/common/types/CanonicalClinicalTrialId.d.ts +11 -0
  181. package/dist/api/resources/preEncounter/resources/common/types/CanonicalClinicalTrialId.js +9 -0
  182. package/dist/api/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +2 -0
  183. package/dist/api/resources/preEncounter/resources/common/types/index.d.ts +2 -0
  184. package/dist/api/resources/preEncounter/resources/common/types/index.js +2 -0
  185. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
  186. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  187. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  188. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  189. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +10 -10
  190. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  191. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  192. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  193. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +5 -0
  194. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -1
  195. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +5 -0
  196. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +6 -0
  197. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  198. package/dist/api/resources/writeOffs/resources/v1/client/Client.d.ts +20 -0
  199. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +82 -4
  200. package/dist/api/resources/writeOffs/resources/v1/client/index.d.ts +2 -0
  201. package/dist/api/resources/writeOffs/resources/v1/client/index.js +3 -1
  202. package/dist/api/resources/writeOffs/resources/v1/client/revertEraOriginatedInsuranceBalanceAdjustment.d.ts +22 -0
  203. package/dist/api/resources/writeOffs/resources/v1/client/revertEraOriginatedInsuranceBalanceAdjustment.js +57 -0
  204. package/dist/api/resources/writeOffs/resources/v1/client/revertInsuranceBalanceAdjustment.d.ts +22 -0
  205. package/dist/api/resources/writeOffs/resources/v1/client/revertInsuranceBalanceAdjustment.js +57 -0
  206. package/dist/serialization/resources/clinicalTrials/index.d.ts +1 -0
  207. package/dist/serialization/resources/clinicalTrials/index.js +17 -0
  208. package/dist/serialization/resources/clinicalTrials/resources/index.d.ts +1 -0
  209. package/dist/serialization/resources/clinicalTrials/resources/index.js +37 -0
  210. package/dist/serialization/resources/clinicalTrials/resources/v1/index.d.ts +1 -0
  211. package/dist/serialization/resources/clinicalTrials/resources/v1/index.js +17 -0
  212. package/dist/serialization/resources/clinicalTrials/resources/v1/types/ClinicalTrial.d.ts +17 -0
  213. package/dist/serialization/resources/clinicalTrials/resources/v1/types/ClinicalTrial.js +50 -0
  214. package/dist/serialization/resources/clinicalTrials/resources/v1/types/ClinicalTrialPhase.d.ts +10 -0
  215. package/dist/serialization/resources/clinicalTrials/resources/v1/types/ClinicalTrialPhase.js +41 -0
  216. package/dist/serialization/resources/clinicalTrials/resources/v1/types/MutableClinicalTrial.d.ts +15 -0
  217. package/dist/serialization/resources/clinicalTrials/resources/v1/types/MutableClinicalTrial.js +46 -0
  218. package/dist/serialization/resources/clinicalTrials/resources/v1/types/index.d.ts +3 -0
  219. package/dist/serialization/resources/clinicalTrials/resources/v1/types/index.js +19 -0
  220. package/dist/serialization/resources/commons/types/AdjustmentId.d.ts +10 -0
  221. package/dist/serialization/resources/commons/types/AdjustmentId.js +45 -0
  222. package/dist/serialization/resources/commons/types/ClinicalTrialId.d.ts +10 -0
  223. package/dist/serialization/resources/commons/types/ClinicalTrialId.js +45 -0
  224. package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  225. package/dist/serialization/resources/commons/types/ProcedureModifier.js +4 -0
  226. package/dist/serialization/resources/commons/types/index.d.ts +2 -0
  227. package/dist/serialization/resources/commons/types/index.js +2 -0
  228. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  229. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -0
  230. package/dist/serialization/resources/index.d.ts +1 -0
  231. package/dist/serialization/resources/index.js +2 -1
  232. package/dist/serialization/resources/individual/types/PatientClinicalTrialInfo.d.ts +14 -0
  233. package/dist/serialization/resources/individual/types/PatientClinicalTrialInfo.js +45 -0
  234. package/dist/serialization/resources/individual/types/PatientClinicalTrialInfoCreate.d.ts +14 -0
  235. package/dist/serialization/resources/individual/types/PatientClinicalTrialInfoCreate.js +45 -0
  236. package/dist/serialization/resources/individual/types/PatientNonInsurancePayerInfo.d.ts +2 -0
  237. package/dist/serialization/resources/individual/types/PatientNonInsurancePayerInfo.js +2 -0
  238. package/dist/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreate.d.ts +2 -0
  239. package/dist/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreate.js +2 -0
  240. package/dist/serialization/resources/individual/types/index.d.ts +2 -0
  241. package/dist/serialization/resources/individual/types/index.js +2 -0
  242. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayer.d.ts +2 -0
  243. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayer.js +2 -0
  244. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  245. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +3 -0
  246. package/dist/serialization/resources/payers/resources/v3/types/Payer.d.ts +2 -0
  247. package/dist/serialization/resources/payers/resources/v3/types/Payer.js +2 -0
  248. package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalClinicalTrialAssociation.d.ts +16 -0
  249. package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalClinicalTrialAssociation.js +47 -0
  250. package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalClinicalTrialId.d.ts +10 -0
  251. package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalClinicalTrialId.js +45 -0
  252. package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +2 -0
  253. package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.js +2 -0
  254. package/dist/serialization/resources/preEncounter/resources/common/types/index.d.ts +2 -0
  255. package/dist/serialization/resources/preEncounter/resources/common/types/index.js +2 -0
  256. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +4 -0
  257. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +4 -0
  258. package/dist/version.d.ts +1 -1
  259. package/dist/version.js +1 -1
  260. package/package.json +1 -1
  261. package/reference.md +138 -0
  262. package/serialization/resources/clinicalTrials/index.d.ts +1 -0
  263. package/serialization/resources/clinicalTrials/index.js +17 -0
  264. package/serialization/resources/clinicalTrials/resources/index.d.ts +1 -0
  265. package/serialization/resources/clinicalTrials/resources/index.js +37 -0
  266. package/serialization/resources/clinicalTrials/resources/v1/index.d.ts +1 -0
  267. package/serialization/resources/clinicalTrials/resources/v1/index.js +17 -0
  268. package/serialization/resources/clinicalTrials/resources/v1/types/ClinicalTrial.d.ts +17 -0
  269. package/serialization/resources/clinicalTrials/resources/v1/types/ClinicalTrial.js +50 -0
  270. package/serialization/resources/clinicalTrials/resources/v1/types/ClinicalTrialPhase.d.ts +10 -0
  271. package/serialization/resources/clinicalTrials/resources/v1/types/ClinicalTrialPhase.js +41 -0
  272. package/serialization/resources/clinicalTrials/resources/v1/types/MutableClinicalTrial.d.ts +15 -0
  273. package/serialization/resources/clinicalTrials/resources/v1/types/MutableClinicalTrial.js +46 -0
  274. package/serialization/resources/clinicalTrials/resources/v1/types/index.d.ts +3 -0
  275. package/serialization/resources/clinicalTrials/resources/v1/types/index.js +19 -0
  276. package/serialization/resources/commons/types/AdjustmentId.d.ts +10 -0
  277. package/serialization/resources/commons/types/AdjustmentId.js +45 -0
  278. package/serialization/resources/commons/types/ClinicalTrialId.d.ts +10 -0
  279. package/serialization/resources/commons/types/ClinicalTrialId.js +45 -0
  280. package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  281. package/serialization/resources/commons/types/ProcedureModifier.js +4 -0
  282. package/serialization/resources/commons/types/index.d.ts +2 -0
  283. package/serialization/resources/commons/types/index.js +2 -0
  284. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  285. package/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -0
  286. package/serialization/resources/index.d.ts +1 -0
  287. package/serialization/resources/index.js +2 -1
  288. package/serialization/resources/individual/types/PatientClinicalTrialInfo.d.ts +14 -0
  289. package/serialization/resources/individual/types/PatientClinicalTrialInfo.js +45 -0
  290. package/serialization/resources/individual/types/PatientClinicalTrialInfoCreate.d.ts +14 -0
  291. package/serialization/resources/individual/types/PatientClinicalTrialInfoCreate.js +45 -0
  292. package/serialization/resources/individual/types/PatientNonInsurancePayerInfo.d.ts +2 -0
  293. package/serialization/resources/individual/types/PatientNonInsurancePayerInfo.js +2 -0
  294. package/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreate.d.ts +2 -0
  295. package/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreate.js +2 -0
  296. package/serialization/resources/individual/types/index.d.ts +2 -0
  297. package/serialization/resources/individual/types/index.js +2 -0
  298. package/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayer.d.ts +2 -0
  299. package/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayer.js +2 -0
  300. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  301. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +3 -0
  302. package/serialization/resources/payers/resources/v3/types/Payer.d.ts +2 -0
  303. package/serialization/resources/payers/resources/v3/types/Payer.js +2 -0
  304. package/serialization/resources/preEncounter/resources/common/types/CanonicalClinicalTrialAssociation.d.ts +16 -0
  305. package/serialization/resources/preEncounter/resources/common/types/CanonicalClinicalTrialAssociation.js +47 -0
  306. package/serialization/resources/preEncounter/resources/common/types/CanonicalClinicalTrialId.d.ts +10 -0
  307. package/serialization/resources/preEncounter/resources/common/types/CanonicalClinicalTrialId.js +45 -0
  308. package/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +2 -0
  309. package/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.js +2 -0
  310. package/serialization/resources/preEncounter/resources/common/types/index.d.ts +2 -0
  311. package/serialization/resources/preEncounter/resources/common/types/index.js +2 -0
  312. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +4 -0
  313. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +4 -0
  314. package/version.d.ts +1 -1
  315. package/version.js +1 -1
@@ -83,7 +83,7 @@ class V1 {
83
83
  const _response = yield core.fetcher({
84
84
  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/non-insurance-payers/v1"),
85
85
  method: "POST",
86
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
87
  contentType: "application/json",
88
88
  requestType: "json",
89
89
  body: serializers.nonInsurancePayers.v1.CreateNonInsurancePayerRequest.jsonOrThrow(request, {
@@ -141,7 +141,7 @@ class V1 {
141
141
  const _response = yield core.fetcher({
142
142
  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/non-insurance-payers/v1/${encodeURIComponent(serializers.nonInsurancePayers.v1.NonInsurancePayerId.jsonOrThrow(nonInsurancePayerId))}/toggle_enablement`),
143
143
  method: "PATCH",
144
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
144
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
145
145
  contentType: "application/json",
146
146
  requestType: "json",
147
147
  body: serializers.nonInsurancePayers.v1.ToggleNonInsurancePayerEnablementRequest.jsonOrThrow(request, {
@@ -230,7 +230,7 @@ class V1 {
230
230
  const _response = yield core.fetcher({
231
231
  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/non-insurance-payers/v1"),
232
232
  method: "GET",
233
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
233
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
234
234
  contentType: "application/json",
235
235
  queryParameters: _queryParams,
236
236
  requestType: "json",
@@ -282,7 +282,7 @@ class V1 {
282
282
  const _response = yield core.fetcher({
283
283
  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/non-insurance-payers/v1/${encodeURIComponent(serializers.nonInsurancePayers.v1.NonInsurancePayerId.jsonOrThrow(nonInsurancePayerId))}`),
284
284
  method: "GET",
285
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
285
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
286
286
  contentType: "application/json",
287
287
  requestType: "json",
288
288
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -345,7 +345,7 @@ class V1 {
345
345
  const _response = yield core.fetcher({
346
346
  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/non-insurance-payers/v1/${encodeURIComponent(serializers.nonInsurancePayers.v1.NonInsurancePayerId.jsonOrThrow(nonInsurancePayerId))}`),
347
347
  method: "PATCH",
348
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
348
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
349
349
  contentType: "application/json",
350
350
  requestType: "json",
351
351
  body: serializers.nonInsurancePayers.v1.NonInsurancePayerUpdateRequest.jsonOrThrow(request, {
@@ -400,7 +400,7 @@ class V1 {
400
400
  const _response = yield core.fetcher({
401
401
  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/non-insurance-payers/v1/${encodeURIComponent(serializers.nonInsurancePayers.v1.NonInsurancePayerId.jsonOrThrow(nonInsurancePayerId))}`),
402
402
  method: "DELETE",
403
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
403
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
404
404
  contentType: "application/json",
405
405
  requestType: "json",
406
406
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -15,7 +15,8 @@ import * as CandidApi from "../../../../../index";
15
15
  * city: "San Francisco",
16
16
  * state: CandidApi.State.Ca,
17
17
  * zipCode: "94105"
18
- * }
18
+ * },
19
+ * clinicalTrials: []
19
20
  * }
20
21
  */
21
22
  export interface NonInsurancePayer {
@@ -25,4 +26,5 @@ export interface NonInsurancePayer {
25
26
  category?: string;
26
27
  enabled: boolean;
27
28
  address?: CandidApi.StreetAddressShortZip;
29
+ clinicalTrials: CandidApi.clinicalTrials.v1.ClinicalTrial[];
28
30
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type LicenseType = "MD" | "NP" | "PA" | "LMFT" | "LCPC" | "LCSW" | "PMHNP" | "FNP" | "LPCC" | "DO" | "RD" | "SLP" | "APRN" | "LPC" | "PHD" | "PSYD" | "LMSW" | "LMHC" | "OTHER_MASTERS" | "BCBA" | "UNKNOWN" | "RPH" | "PHT" | "LAC" | "LMT" | "DC" | "ND" | "MA" | "PT" | "IBCLC" | "RN" | "DPT" | "LCMHC" | "CNM" | "RNFA" | "ACSW" | "APC" | "BCABA" | "BHA" | "OD" | "DPM" | "DA" | "DDS" | "DEH" | "DMD" | "PTA" | "LCADC" | "LCAT" | "LCMHCS" | "LCMHCA" | "LCSWA" | "LICSW" | "LISW" | "LMFTS" | "LMFTA" | "LPCI" | "LSCSW" | "MHCA" | "MHT" | "RBT" | "RCSWI" | "RHMCI" | "LPN" | "OTD" | "OMS" | "MFTA" | "APCC" | "DNP" | "AGNPBC" | "ANP" | "FNPPP" | "LCSWR" | "ALC" | "RMFTI" | "LAMFT" | "LPCA" | "LSWI" | "CSW" | "CPC" | "LGMFT" | "LLPC" | "PLPC" | "PLMFT" | "LMHCA" | "CIT" | "CT" | "MFT" | "LSW" | "PLMHP" | "PCMSW" | "LMHP" | "OTR/L" | "RPA" | "COTA" | "CRNP";
4
+ export type LicenseType = "MD" | "NP" | "PA" | "LMFT" | "LCPC" | "LCSW" | "PMHNP" | "FNP" | "LPCC" | "DO" | "RD" | "SLP" | "APRN" | "LPC" | "PHD" | "PSYD" | "LMSW" | "LMHC" | "OTHER_MASTERS" | "BCBA" | "UNKNOWN" | "RPH" | "PHT" | "LAC" | "LMT" | "DC" | "ND" | "MA" | "PT" | "IBCLC" | "RN" | "DPT" | "LCMHC" | "CNM" | "RNFA" | "ACSW" | "APC" | "BCABA" | "BHA" | "OD" | "DPM" | "DA" | "DDS" | "DEH" | "DMD" | "PTA" | "LCADC" | "LCAT" | "LCMHCS" | "LCMHCA" | "LCSWA" | "LICSW" | "LISW" | "LMFTS" | "LMFTA" | "LPCI" | "LSCSW" | "MHCA" | "MHT" | "RBT" | "RCSWI" | "RHMCI" | "LPN" | "OTD" | "OMS" | "MFTA" | "APCC" | "DNP" | "AGNPBC" | "ANP" | "FNPPP" | "LCSWR" | "ALC" | "RMFTI" | "LAMFT" | "LPCA" | "LSWI" | "CSW" | "CPC" | "LGMFT" | "LLPC" | "PLPC" | "PLMFT" | "LMHCA" | "CIT" | "CT" | "MFT" | "LSW" | "PLMHP" | "PCMSW" | "LMHP" | "OTR/L" | "RPA" | "COTA" | "CRNP" | "SLP-CF" | "NP-C" | "PA-C";
5
5
  export declare const LicenseType: {
6
6
  readonly Md: "MD";
7
7
  readonly Np: "NP";
@@ -98,4 +98,7 @@ export declare const LicenseType: {
98
98
  readonly Rpa: "RPA";
99
99
  readonly Cota: "COTA";
100
100
  readonly Crnp: "CRNP";
101
+ readonly SlpCf: "SLP-CF";
102
+ readonly NpC: "NP-C";
103
+ readonly PaC: "PA-C";
101
104
  };
@@ -100,4 +100,7 @@ exports.LicenseType = {
100
100
  Rpa: "RPA",
101
101
  Cota: "COTA",
102
102
  Crnp: "CRNP",
103
+ SlpCf: "SLP-CF",
104
+ NpC: "NP-C",
105
+ PaC: "PA-C",
103
106
  };
@@ -71,7 +71,7 @@ class V3 {
71
71
  const _response = yield core.fetcher({
72
72
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/organization-providers/v3/${encodeURIComponent(serializers.organizationProviders.v2.OrganizationProviderId.jsonOrThrow(organizationProviderId))}`),
73
73
  method: "GET",
74
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
74
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
75
  contentType: "application/json",
76
76
  requestType: "json",
77
77
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -153,7 +153,7 @@ class V3 {
153
153
  const _response = yield core.fetcher({
154
154
  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/organization-providers/v3"),
155
155
  method: "GET",
156
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
156
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
157
157
  contentType: "application/json",
158
158
  queryParameters: _queryParams,
159
159
  requestType: "json",
@@ -224,7 +224,7 @@ class V3 {
224
224
  const _response = yield core.fetcher({
225
225
  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/organization-providers/v3"),
226
226
  method: "POST",
227
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
227
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
228
228
  contentType: "application/json",
229
229
  requestType: "json",
230
230
  body: serializers.organizationProviders.v3.OrganizationProviderCreateV2.jsonOrThrow(request, {
@@ -314,7 +314,7 @@ class V3 {
314
314
  const _response = yield core.fetcher({
315
315
  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/organization-providers/v3/${encodeURIComponent(serializers.organizationProviders.v2.OrganizationProviderId.jsonOrThrow(organizationProviderId))}`),
316
316
  method: "PATCH",
317
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
317
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
318
318
  contentType: "application/json",
319
319
  requestType: "json",
320
320
  body: serializers.organizationProviders.v3.OrganizationProviderUpdateV2.jsonOrThrow(request, {
@@ -71,7 +71,7 @@ class V2 {
71
71
  const _response = yield core.fetcher({
72
72
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/organization-service-facilities/v2/${encodeURIComponent(serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityId.jsonOrThrow(organizationServiceFacilityId))}`),
73
73
  method: "GET",
74
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
74
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
75
  contentType: "application/json",
76
76
  requestType: "json",
77
77
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -137,7 +137,7 @@ class V2 {
137
137
  const _response = yield core.fetcher({
138
138
  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/organization-service-facilities/v2"),
139
139
  method: "GET",
140
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
140
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
141
141
  contentType: "application/json",
142
142
  queryParameters: _queryParams,
143
143
  requestType: "json",
@@ -193,7 +193,7 @@ class V2 {
193
193
  const _response = yield core.fetcher({
194
194
  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/organization-service-facilities/v2"),
195
195
  method: "POST",
196
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
196
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
197
197
  contentType: "application/json",
198
198
  requestType: "json",
199
199
  body: serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityCreate.jsonOrThrow(request, {
@@ -266,7 +266,7 @@ class V2 {
266
266
  const _response = yield core.fetcher({
267
267
  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/organization-service-facilities/v2/${encodeURIComponent(serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityId.jsonOrThrow(organizationServiceFacilityId))}`),
268
268
  method: "PATCH",
269
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
269
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
270
270
  contentType: "application/json",
271
271
  requestType: "json",
272
272
  body: serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityUpdate.jsonOrThrow(request, {
@@ -321,7 +321,7 @@ class V2 {
321
321
  const _response = yield core.fetcher({
322
322
  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/organization-service-facilities/v2/${encodeURIComponent(serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityId.jsonOrThrow(organizationServiceFacilityId))}`),
323
323
  method: "DELETE",
324
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
324
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
325
325
  contentType: "application/json",
326
326
  requestType: "json",
327
327
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -132,7 +132,7 @@ class V4 {
132
132
  const _response = yield core.fetcher({
133
133
  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/patient-payments/v4"),
134
134
  method: "GET",
135
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
135
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
136
136
  contentType: "application/json",
137
137
  queryParameters: _queryParams,
138
138
  requestType: "json",
@@ -187,7 +187,7 @@ class V4 {
187
187
  const _response = yield core.fetcher({
188
188
  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/patient-payments/v4/${encodeURIComponent(serializers.patientPayments.v4.PatientPaymentId.jsonOrThrow(patientPaymentId))}`),
189
189
  method: "GET",
190
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
190
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
191
191
  contentType: "application/json",
192
192
  requestType: "json",
193
193
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -256,7 +256,7 @@ class V4 {
256
256
  const _response = yield core.fetcher({
257
257
  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/patient-payments/v4"),
258
258
  method: "POST",
259
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
259
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
260
260
  contentType: "application/json",
261
261
  requestType: "json",
262
262
  body: serializers.patientPayments.v4.PatientPaymentCreate.jsonOrThrow(request, {
@@ -325,7 +325,7 @@ class V4 {
325
325
  const _response = yield core.fetcher({
326
326
  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/patient-payments/v4/${encodeURIComponent(serializers.patientPayments.v4.PatientPaymentId.jsonOrThrow(patientPaymentId))}`),
327
327
  method: "PATCH",
328
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
328
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
329
329
  contentType: "application/json",
330
330
  requestType: "json",
331
331
  body: serializers.patientPayments.v4.PatientPaymentUpdate.jsonOrThrow(request, {
@@ -383,7 +383,7 @@ class V4 {
383
383
  const _response = yield core.fetcher({
384
384
  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/patient-payments/v4/${encodeURIComponent(serializers.patientPayments.v4.PatientPaymentId.jsonOrThrow(patientPaymentId))}`),
385
385
  method: "DELETE",
386
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
386
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
387
387
  contentType: "application/json",
388
388
  requestType: "json",
389
389
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -132,7 +132,7 @@ class V1 {
132
132
  const _response = yield core.fetcher({
133
133
  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/patient-refunds/v1"),
134
134
  method: "GET",
135
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
135
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
136
136
  contentType: "application/json",
137
137
  queryParameters: _queryParams,
138
138
  requestType: "json",
@@ -187,7 +187,7 @@ class V1 {
187
187
  const _response = yield core.fetcher({
188
188
  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/patient-refunds/v1/${encodeURIComponent(serializers.patientRefunds.v1.PatientRefundId.jsonOrThrow(patientRefundId))}`),
189
189
  method: "GET",
190
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
190
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
191
191
  contentType: "application/json",
192
192
  requestType: "json",
193
193
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -257,7 +257,7 @@ class V1 {
257
257
  const _response = yield core.fetcher({
258
258
  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/patient-refunds/v1"),
259
259
  method: "POST",
260
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
260
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
261
261
  contentType: "application/json",
262
262
  requestType: "json",
263
263
  body: serializers.patientRefunds.v1.PatientRefundCreate.jsonOrThrow(request, {
@@ -330,7 +330,7 @@ class V1 {
330
330
  const _response = yield core.fetcher({
331
331
  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/patient-refunds/v1/${encodeURIComponent(serializers.patientRefunds.v1.PatientRefundId.jsonOrThrow(patientRefundId))}`),
332
332
  method: "PATCH",
333
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
333
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
334
334
  contentType: "application/json",
335
335
  requestType: "json",
336
336
  body: serializers.patientRefunds.v1.PatientRefundUpdate.jsonOrThrow(request, {
@@ -388,7 +388,7 @@ class V1 {
388
388
  const _response = yield core.fetcher({
389
389
  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/patient-refunds/v1/${encodeURIComponent(serializers.patientRefunds.v1.PatientRefundId.jsonOrThrow(patientRefundId))}`),
390
390
  method: "DELETE",
391
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
391
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
392
392
  contentType: "application/json",
393
393
  requestType: "json",
394
394
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -71,7 +71,7 @@ class V3 {
71
71
  const _response = yield core.fetcher({
72
72
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/payers/v3/${encodeURIComponent(serializers.payers.v3.PayerUuid.jsonOrThrow(payerUuid))}`),
73
73
  method: "GET",
74
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
74
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
75
  contentType: "application/json",
76
76
  requestType: "json",
77
77
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -123,7 +123,7 @@ class V3 {
123
123
  const _response = yield core.fetcher({
124
124
  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/payers/v3"),
125
125
  method: "GET",
126
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
126
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
127
127
  contentType: "application/json",
128
128
  queryParameters: _queryParams,
129
129
  requestType: "json",
@@ -29,4 +29,5 @@ export interface Payer {
29
29
  availityEligibilityId?: string;
30
30
  /** The remittance ID of the payer as it appears in Availity. */
31
31
  availityRemittancePayerId?: string;
32
+ streetAddress?: CandidApi.StreetAddressLongZip;
32
33
  }
@@ -109,7 +109,7 @@ class V1 {
109
109
  const _response = yield core.fetcher({
110
110
  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).preEncounter, "/appointments/v1"),
111
111
  method: "POST",
112
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
112
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
113
113
  contentType: "application/json",
114
114
  requestType: "json",
115
115
  body: serializers.preEncounter.appointments.v1.MutableAppointment.jsonOrThrow(request, {
@@ -191,7 +191,7 @@ class V1 {
191
191
  const _response = yield core.fetcher({
192
192
  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).preEncounter, "/appointments/v1/visits"),
193
193
  method: "GET",
194
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
194
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
195
195
  contentType: "application/json",
196
196
  queryParameters: _queryParams,
197
197
  requestType: "json",
@@ -245,7 +245,7 @@ class V1 {
245
245
  const _response = yield core.fetcher({
246
246
  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).preEncounter, `/appointments/v1/${encodeURIComponent(serializers.preEncounter.AppointmentId.jsonOrThrow(id))}`),
247
247
  method: "GET",
248
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
248
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
249
249
  contentType: "application/json",
250
250
  requestType: "json",
251
251
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -298,7 +298,7 @@ class V1 {
298
298
  const _response = yield core.fetcher({
299
299
  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).preEncounter, `/appointments/v1/${encodeURIComponent(serializers.preEncounter.AppointmentId.jsonOrThrow(id))}/history`),
300
300
  method: "GET",
301
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
301
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
302
302
  contentType: "application/json",
303
303
  requestType: "json",
304
304
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -389,7 +389,7 @@ class V1 {
389
389
  const _response = yield core.fetcher({
390
390
  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).preEncounter, `/appointments/v1/${encodeURIComponent(serializers.preEncounter.AppointmentId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
391
391
  method: "PUT",
392
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
392
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
393
393
  contentType: "application/json",
394
394
  requestType: "json",
395
395
  body: serializers.preEncounter.appointments.v1.MutableAppointment.jsonOrThrow(request, {
@@ -451,7 +451,7 @@ class V1 {
451
451
  const _response = yield core.fetcher({
452
452
  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).preEncounter, "/appointments/v1/updates/scan"),
453
453
  method: "GET",
454
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
454
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
455
455
  contentType: "application/json",
456
456
  queryParameters: _queryParams,
457
457
  requestType: "json",
@@ -492,7 +492,7 @@ class V1 {
492
492
  const _response = yield core.fetcher({
493
493
  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).preEncounter, `/appointments/v1/${encodeURIComponent(serializers.preEncounter.AppointmentId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
494
494
  method: "DELETE",
495
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.9", "User-Agent": "candidhealth/0.39.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
495
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11", "User-Agent": "candidhealth/0.39.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
496
496
  contentType: "application/json",
497
497
  requestType: "json",
498
498
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ export interface CanonicalClinicalTrialAssociation {
6
+ id: CandidApi.preEncounter.CanonicalClinicalTrialId;
7
+ clinicalTrialArm?: string;
8
+ period?: CandidApi.preEncounter.Period;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ /**
6
+ * The unique identifier for a clinical trial configured in the Candid system
7
+ */
8
+ export type CanonicalClinicalTrialId = string & {
9
+ preEncounter_CanonicalClinicalTrialId: void;
10
+ };
11
+ export declare function CanonicalClinicalTrialId(value: string): CandidApi.preEncounter.CanonicalClinicalTrialId;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CanonicalClinicalTrialId = CanonicalClinicalTrialId;
7
+ function CanonicalClinicalTrialId(value) {
8
+ return value;
9
+ }
@@ -5,4 +5,6 @@ import * as CandidApi from "../../../../../index";
5
5
  export interface CanonicalNonInsurancePayerAssociation {
6
6
  id: CandidApi.preEncounter.CanonicalNonInsurancePayerId;
7
7
  memberId?: string;
8
+ /** A patient cannot be associated with a given trial more than once */
9
+ clinicalTrialInfo?: CandidApi.preEncounter.CanonicalClinicalTrialAssociation[];
8
10
  }
@@ -12,6 +12,8 @@ export * from "./CanonicalProviderId";
12
12
  export * from "./ExternalIdentifier";
13
13
  export * from "./CanonicalNonInsurancePayerAssociation";
14
14
  export * from "./CanonicalNonInsurancePayerId";
15
+ export * from "./CanonicalClinicalTrialAssociation";
16
+ export * from "./CanonicalClinicalTrialId";
15
17
  export * from "./Relationship";
16
18
  export * from "./Gender";
17
19
  export * from "./Sex";
@@ -28,6 +28,8 @@ __exportStar(require("./CanonicalProviderId"), exports);
28
28
  __exportStar(require("./ExternalIdentifier"), exports);
29
29
  __exportStar(require("./CanonicalNonInsurancePayerAssociation"), exports);
30
30
  __exportStar(require("./CanonicalNonInsurancePayerId"), exports);
31
+ __exportStar(require("./CanonicalClinicalTrialAssociation"), exports);
32
+ __exportStar(require("./CanonicalClinicalTrialId"), exports);
31
33
  __exportStar(require("./Relationship"), exports);
32
34
  __exportStar(require("./Gender"), exports);
33
35
  __exportStar(require("./Sex"), exports);