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
@@ -5,6 +5,11 @@ import * as CandidApi from "../../../../../index";
5
5
  export interface ServiceLineUpdate {
6
6
  editReason?: string;
7
7
  modifiers?: CandidApi.ProcedureModifier[];
8
+ /**
9
+ * The total amount charged for this service line, factoring in quantity. If `procedure_code` is updated and this is not, the system will attempt
10
+ * to set it based on chargemasters entries and the service line's quantity. For example, if a single unit has an entry of 100 cents and 2
11
+ * units were rendered, the `charge_amount_cents` will be set to 200, if this field is unfilled.
12
+ */
8
13
  chargeAmountCents?: number;
9
14
  diagnosisIdZero?: CandidApi.DiagnosisId;
10
15
  diagnosisIdOne?: CandidApi.DiagnosisId;
@@ -15,6 +20,7 @@ export interface ServiceLineUpdate {
15
20
  /** 837p Loop2300, SV105. If your organization does not intend to submit claims with a different place of service at the service line level, this field should not be populated. 02 for telemedicine, 11 for in-person. Full list [here](https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set). */
16
21
  placeOfServiceCode?: CandidApi.FacilityTypeCode;
17
22
  units?: CandidApi.ServiceLineUnits;
23
+ /** If `procedure_code` is updated, and `charge_amount_cents` is not, then `charge_amount_cents` will be set by the system. */
18
24
  procedureCode?: string;
19
25
  /**
20
26
  * String representation of a Decimal that can be parsed by most libraries.
@@ -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/tasks/v3/${encodeURIComponent(serializers.TaskId.jsonOrThrow(taskId))}/actions`),
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,
@@ -169,7 +169,7 @@ class V3 {
169
169
  const _response = yield core.fetcher({
170
170
  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/tasks/v3"),
171
171
  method: "GET",
172
- 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),
172
+ 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),
173
173
  contentType: "application/json",
174
174
  queryParameters: _queryParams,
175
175
  requestType: "json",
@@ -221,7 +221,7 @@ class V3 {
221
221
  const _response = yield core.fetcher({
222
222
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/tasks/v3/${encodeURIComponent(serializers.TaskId.jsonOrThrow(taskId))}`),
223
223
  method: "GET",
224
- 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),
224
+ 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),
225
225
  contentType: "application/json",
226
226
  requestType: "json",
227
227
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -281,7 +281,7 @@ class V3 {
281
281
  const _response = yield core.fetcher({
282
282
  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/tasks/v3"),
283
283
  method: "POST",
284
- 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),
284
+ 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),
285
285
  contentType: "application/json",
286
286
  requestType: "json",
287
287
  body: serializers.tasks.v3.TaskCreateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -324,7 +324,7 @@ class V3 {
324
324
  const _response = yield core.fetcher({
325
325
  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/tasks/v3/${encodeURIComponent(serializers.TaskId.jsonOrThrow(taskId))}`),
326
326
  method: "PATCH",
327
- 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),
327
+ 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),
328
328
  contentType: "application/json",
329
329
  requestType: "json",
330
330
  body: serializers.tasks.v3.TaskUpdateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -86,5 +86,25 @@ export declare class V1 {
86
86
  * await client.writeOffs.v1.revert(CandidApi.writeOffs.v1.WriteOffId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
87
87
  */
88
88
  revert(writeOffId: CandidApi.writeOffs.v1.WriteOffId, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.writeOffs.v1.WriteOff, CandidApi.writeOffs.v1.revert.Error>>;
89
+ /**
90
+ * Reverts an Insurance Balance Adjustment given an `adjustment_id`
91
+ *
92
+ * @param {CandidApi.AdjustmentId} adjustmentId
93
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
94
+ *
95
+ * @example
96
+ * await client.writeOffs.v1.revertInsuranceBalanceAdjustment(CandidApi.AdjustmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
97
+ */
98
+ revertInsuranceBalanceAdjustment(adjustmentId: CandidApi.AdjustmentId, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.writeOffs.v1.WriteOff, CandidApi.writeOffs.v1.revertInsuranceBalanceAdjustment.Error>>;
99
+ /**
100
+ * Reverts an ERA-originated Insurance Balance Adjustment given an `adjustment_id`
101
+ *
102
+ * @param {CandidApi.AdjustmentId} adjustmentId
103
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
104
+ *
105
+ * @example
106
+ * await client.writeOffs.v1.revertEraOriginatedInsuranceBalanceAdjustment(CandidApi.AdjustmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
107
+ */
108
+ revertEraOriginatedInsuranceBalanceAdjustment(adjustmentId: CandidApi.AdjustmentId, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.AdjustmentId, CandidApi.writeOffs.v1.revertEraOriginatedInsuranceBalanceAdjustment.Error>>;
89
109
  protected _getAuthorizationHeader(): Promise<string | undefined>;
90
110
  }
@@ -127,7 +127,7 @@ class V1 {
127
127
  const _response = yield core.fetcher({
128
128
  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/write-offs/v1"),
129
129
  method: "GET",
130
- 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),
130
+ 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),
131
131
  contentType: "application/json",
132
132
  queryParameters: _queryParams,
133
133
  requestType: "json",
@@ -167,7 +167,7 @@ class V1 {
167
167
  const _response = yield core.fetcher({
168
168
  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/write-offs/v1/${encodeURIComponent(serializers.writeOffs.v1.WriteOffId.jsonOrThrow(writeOffId))}`),
169
169
  method: "GET",
170
- 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),
170
+ 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),
171
171
  contentType: "application/json",
172
172
  requestType: "json",
173
173
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -216,7 +216,7 @@ class V1 {
216
216
  const _response = yield core.fetcher({
217
217
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/write-offs/v1"),
218
218
  method: "POST",
219
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.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),
219
+ 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),
220
220
  contentType: "application/json",
221
221
  requestType: "json",
222
222
  body: serializers.writeOffs.v1.CreateWriteOffsRequest.jsonOrThrow(request, {
@@ -258,7 +258,7 @@ class V1 {
258
258
  const _response = yield core.fetcher({
259
259
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/write-offs/v1/${encodeURIComponent(serializers.writeOffs.v1.WriteOffId.jsonOrThrow(writeOffId))}/revert`),
260
260
  method: "POST",
261
- 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),
261
+ 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),
262
262
  contentType: "application/json",
263
263
  requestType: "json",
264
264
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -282,6 +282,84 @@ class V1 {
282
282
  };
283
283
  });
284
284
  }
285
+ /**
286
+ * Reverts an Insurance Balance Adjustment given an `adjustment_id`
287
+ *
288
+ * @param {CandidApi.AdjustmentId} adjustmentId
289
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
290
+ *
291
+ * @example
292
+ * await client.writeOffs.v1.revertInsuranceBalanceAdjustment(CandidApi.AdjustmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
293
+ */
294
+ revertInsuranceBalanceAdjustment(adjustmentId, requestOptions) {
295
+ return __awaiter(this, void 0, void 0, function* () {
296
+ var _a, _b;
297
+ const _response = yield core.fetcher({
298
+ 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/write-offs/v1/${encodeURIComponent(serializers.AdjustmentId.jsonOrThrow(adjustmentId))}/revert`),
299
+ method: "POST",
300
+ 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),
301
+ contentType: "application/json",
302
+ requestType: "json",
303
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
304
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
305
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
306
+ });
307
+ if (_response.ok) {
308
+ return {
309
+ ok: true,
310
+ body: serializers.writeOffs.v1.WriteOff.parseOrThrow(_response.body, {
311
+ unrecognizedObjectKeys: "passthrough",
312
+ allowUnrecognizedUnionMembers: true,
313
+ allowUnrecognizedEnumValues: true,
314
+ breadcrumbsPrefix: ["response"],
315
+ }),
316
+ };
317
+ }
318
+ return {
319
+ ok: false,
320
+ error: CandidApi.writeOffs.v1.revertInsuranceBalanceAdjustment.Error._unknown(_response.error),
321
+ };
322
+ });
323
+ }
324
+ /**
325
+ * Reverts an ERA-originated Insurance Balance Adjustment given an `adjustment_id`
326
+ *
327
+ * @param {CandidApi.AdjustmentId} adjustmentId
328
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
329
+ *
330
+ * @example
331
+ * await client.writeOffs.v1.revertEraOriginatedInsuranceBalanceAdjustment(CandidApi.AdjustmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
332
+ */
333
+ revertEraOriginatedInsuranceBalanceAdjustment(adjustmentId, requestOptions) {
334
+ return __awaiter(this, void 0, void 0, function* () {
335
+ var _a, _b;
336
+ const _response = yield core.fetcher({
337
+ 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/write-offs/v1/${encodeURIComponent(serializers.AdjustmentId.jsonOrThrow(adjustmentId))}/revert-era-originated`),
338
+ method: "POST",
339
+ 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),
340
+ contentType: "application/json",
341
+ requestType: "json",
342
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
343
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
344
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
345
+ });
346
+ if (_response.ok) {
347
+ return {
348
+ ok: true,
349
+ body: serializers.AdjustmentId.parseOrThrow(_response.body, {
350
+ unrecognizedObjectKeys: "passthrough",
351
+ allowUnrecognizedUnionMembers: true,
352
+ allowUnrecognizedEnumValues: true,
353
+ breadcrumbsPrefix: ["response"],
354
+ }),
355
+ };
356
+ }
357
+ return {
358
+ ok: false,
359
+ error: CandidApi.writeOffs.v1.revertEraOriginatedInsuranceBalanceAdjustment.Error._unknown(_response.error),
360
+ };
361
+ });
362
+ }
285
363
  _getAuthorizationHeader() {
286
364
  return __awaiter(this, void 0, void 0, function* () {
287
365
  const bearer = yield core.Supplier.get(this._options.token);
@@ -3,3 +3,5 @@ export * as getMulti from "./getMulti";
3
3
  export * as get from "./get";
4
4
  export * as create from "./create";
5
5
  export * as revert from "./revert";
6
+ export * as revertInsuranceBalanceAdjustment from "./revertInsuranceBalanceAdjustment";
7
+ export * as revertEraOriginatedInsuranceBalanceAdjustment from "./revertEraOriginatedInsuranceBalanceAdjustment";
@@ -36,9 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.revert = exports.create = exports.get = exports.getMulti = void 0;
39
+ exports.revertEraOriginatedInsuranceBalanceAdjustment = exports.revertInsuranceBalanceAdjustment = exports.revert = exports.create = exports.get = exports.getMulti = void 0;
40
40
  __exportStar(require("./requests"), exports);
41
41
  exports.getMulti = __importStar(require("./getMulti"));
42
42
  exports.get = __importStar(require("./get"));
43
43
  exports.create = __importStar(require("./create"));
44
44
  exports.revert = __importStar(require("./revert"));
45
+ exports.revertInsuranceBalanceAdjustment = __importStar(require("./revertInsuranceBalanceAdjustment"));
46
+ exports.revertEraOriginatedInsuranceBalanceAdjustment = __importStar(require("./revertEraOriginatedInsuranceBalanceAdjustment"));
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ import * as core from "../../../../../../core";
6
+ export type Error = CandidApi.writeOffs.v1.revertEraOriginatedInsuranceBalanceAdjustment.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface _Unknown extends _Utils {
9
+ errorName: void;
10
+ content: core.Fetcher.Error;
11
+ }
12
+ interface _Utils {
13
+ _visit: <_Result>(visitor: CandidApi.writeOffs.v1.revertEraOriginatedInsuranceBalanceAdjustment.Error._Visitor<_Result>) => _Result;
14
+ }
15
+ interface _Visitor<_Result> {
16
+ _other: (value: core.Fetcher.Error) => _Result;
17
+ }
18
+ }
19
+ export declare const Error: {
20
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.writeOffs.v1.revertEraOriginatedInsuranceBalanceAdjustment.Error._Unknown;
21
+ readonly _visit: <_Result>(value: CandidApi.writeOffs.v1.revertEraOriginatedInsuranceBalanceAdjustment.Error, visitor: CandidApi.writeOffs.v1.revertEraOriginatedInsuranceBalanceAdjustment.Error._Visitor<_Result>) => _Result;
22
+ };
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Error = void 0;
40
+ const CandidApi = __importStar(require("../../../../../index"));
41
+ exports.Error = {
42
+ _unknown: (fetcherError) => {
43
+ return {
44
+ errorName: undefined,
45
+ content: fetcherError,
46
+ _visit: function (visitor) {
47
+ return CandidApi.writeOffs.v1.revertEraOriginatedInsuranceBalanceAdjustment.Error._visit(this, visitor);
48
+ },
49
+ };
50
+ },
51
+ _visit: (value, visitor) => {
52
+ switch (value.errorName) {
53
+ default:
54
+ return visitor._other(value);
55
+ }
56
+ },
57
+ };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ import * as core from "../../../../../../core";
6
+ export type Error = CandidApi.writeOffs.v1.revertInsuranceBalanceAdjustment.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface _Unknown extends _Utils {
9
+ errorName: void;
10
+ content: core.Fetcher.Error;
11
+ }
12
+ interface _Utils {
13
+ _visit: <_Result>(visitor: CandidApi.writeOffs.v1.revertInsuranceBalanceAdjustment.Error._Visitor<_Result>) => _Result;
14
+ }
15
+ interface _Visitor<_Result> {
16
+ _other: (value: core.Fetcher.Error) => _Result;
17
+ }
18
+ }
19
+ export declare const Error: {
20
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.writeOffs.v1.revertInsuranceBalanceAdjustment.Error._Unknown;
21
+ readonly _visit: <_Result>(value: CandidApi.writeOffs.v1.revertInsuranceBalanceAdjustment.Error, visitor: CandidApi.writeOffs.v1.revertInsuranceBalanceAdjustment.Error._Visitor<_Result>) => _Result;
22
+ };
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Error = void 0;
40
+ const CandidApi = __importStar(require("../../../../../index"));
41
+ exports.Error = {
42
+ _unknown: (fetcherError) => {
43
+ return {
44
+ errorName: undefined,
45
+ content: fetcherError,
46
+ _visit: function (visitor) {
47
+ return CandidApi.writeOffs.v1.revertInsuranceBalanceAdjustment.Error._visit(this, visitor);
48
+ },
49
+ };
50
+ },
51
+ _visit: (value, visitor) => {
52
+ switch (value.errorName) {
53
+ default:
54
+ return visitor._other(value);
55
+ }
56
+ },
57
+ };
@@ -0,0 +1 @@
1
+ export * from "./resources";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./resources"), exports);
@@ -0,0 +1 @@
1
+ export * as v1 from "./v1";
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.v1 = void 0;
37
+ exports.v1 = __importStar(require("./v1"));
@@ -0,0 +1 @@
1
+ export * from "./types";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as CandidApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ import { ClinicalTrialId } from "../../../../commons/types/ClinicalTrialId";
8
+ import { NonInsurancePayerId } from "../../../../nonInsurancePayers/resources/v1/types/NonInsurancePayerId";
9
+ import { MutableClinicalTrial } from "./MutableClinicalTrial";
10
+ export declare const ClinicalTrial: core.serialization.ObjectSchema<serializers.clinicalTrials.v1.ClinicalTrial.Raw, CandidApi.clinicalTrials.v1.ClinicalTrial>;
11
+ export declare namespace ClinicalTrial {
12
+ interface Raw extends MutableClinicalTrial.Raw {
13
+ clinical_trial_id: ClinicalTrialId.Raw;
14
+ non_insurance_payer_id: NonInsurancePayerId.Raw;
15
+ is_active: boolean;
16
+ }
17
+ }
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ClinicalTrial = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ const ClinicalTrialId_1 = require("../../../../commons/types/ClinicalTrialId");
42
+ const NonInsurancePayerId_1 = require("../../../../nonInsurancePayers/resources/v1/types/NonInsurancePayerId");
43
+ const MutableClinicalTrial_1 = require("./MutableClinicalTrial");
44
+ exports.ClinicalTrial = core.serialization
45
+ .object({
46
+ clinicalTrialId: core.serialization.property("clinical_trial_id", ClinicalTrialId_1.ClinicalTrialId),
47
+ nonInsurancePayerId: core.serialization.property("non_insurance_payer_id", NonInsurancePayerId_1.NonInsurancePayerId),
48
+ isActive: core.serialization.property("is_active", core.serialization.boolean()),
49
+ })
50
+ .extend(MutableClinicalTrial_1.MutableClinicalTrial);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as CandidApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ export declare const ClinicalTrialPhase: core.serialization.Schema<serializers.clinicalTrials.v1.ClinicalTrialPhase.Raw, CandidApi.clinicalTrials.v1.ClinicalTrialPhase>;
8
+ export declare namespace ClinicalTrialPhase {
9
+ type Raw = "Phase 1" | "Phase 2" | "Phase 3";
10
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ClinicalTrialPhase = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ exports.ClinicalTrialPhase = core.serialization.enum_(["Phase 1", "Phase 2", "Phase 3"]);
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as CandidApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ import { ClinicalTrialPhase } from "./ClinicalTrialPhase";
8
+ export declare const MutableClinicalTrial: core.serialization.ObjectSchema<serializers.clinicalTrials.v1.MutableClinicalTrial.Raw, CandidApi.clinicalTrials.v1.MutableClinicalTrial>;
9
+ export declare namespace MutableClinicalTrial {
10
+ interface Raw {
11
+ name: string;
12
+ clinical_trial_number: string;
13
+ clinical_trial_phase?: ClinicalTrialPhase.Raw | null;
14
+ }
15
+ }