candidhealth 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. package/api/resources/auth/resources/default/client/Client.js +1 -1
  2. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  3. package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +33 -0
  4. package/api/resources/chargeCapture/resources/v1/client/Client.js +90 -5
  5. package/api/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.d.ts +58 -0
  6. package/api/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.js +123 -0
  7. package/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  8. package/api/resources/chargeCapture/resources/v1/client/index.js +2 -1
  9. package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.d.ts +30 -0
  10. package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.js +5 -0
  11. package/api/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  12. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
  13. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  14. package/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +1 -1
  15. package/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +1 -1
  16. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  17. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  18. package/api/resources/diagnoses/client/Client.js +4 -3
  19. package/api/resources/diagnoses/client/update.d.ts +7 -1
  20. package/api/resources/diagnoses/client/update.js +11 -0
  21. package/api/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.d.ts +9 -0
  22. package/api/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.js +5 -0
  23. package/api/resources/diagnoses/types/index.d.ts +1 -0
  24. package/api/resources/diagnoses/types/index.js +1 -0
  25. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  26. package/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
  27. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  28. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  29. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  30. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  31. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  32. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  33. package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +18 -0
  34. package/api/resources/feeSchedules/resources/v3/client/Client.js +60 -10
  35. package/api/resources/feeSchedules/resources/v3/client/hardDeleteRates.d.ts +22 -0
  36. package/api/resources/feeSchedules/resources/v3/client/hardDeleteRates.js +57 -0
  37. package/api/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
  38. package/api/resources/feeSchedules/resources/v3/client/index.js +2 -1
  39. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  40. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  41. package/api/resources/individual/types/SubscriberCreate.d.ts +1 -0
  42. package/api/resources/individual/types/SubscriberCreateOptional.d.ts +1 -0
  43. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  44. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  45. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  46. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  47. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  48. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  49. package/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +15 -0
  50. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +79 -7
  51. package/api/resources/nonInsurancePayers/resources/v1/client/getCategories.d.ts +22 -0
  52. package/api/resources/nonInsurancePayers/resources/v1/client/getCategories.js +57 -0
  53. package/api/resources/nonInsurancePayers/resources/v1/client/index.d.ts +1 -0
  54. package/api/resources/nonInsurancePayers/resources/v1/client/index.js +2 -1
  55. package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +15 -0
  56. package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.d.ts +22 -0
  57. package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.js +5 -0
  58. package/api/resources/nonInsurancePayers/resources/v1/client/requests/index.d.ts +1 -0
  59. package/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.d.ts +7 -0
  60. package/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.js +5 -0
  61. package/api/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
  62. package/api/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
  63. package/api/resources/organizationProviders/resources/v3/client/Client.js +15 -5
  64. package/api/resources/organizationProviders/resources/v3/client/requests/GetAllOrganizationProvidersRequestV2.d.ts +4 -0
  65. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +16 -6
  66. package/api/resources/organizationServiceFacilities/resources/v2/client/requests/GetAllOrganizationServiceFacilitiesRequest.d.ts +4 -0
  67. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  68. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  69. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  70. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  71. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +1 -1
  72. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +8 -8
  73. package/api/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +1 -0
  74. package/api/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -0
  75. package/api/resources/preEncounter/resources/common/types/BaseModel.d.ts +1 -1
  76. package/api/resources/preEncounter/resources/common/types/FilterQueryString.d.ts +1 -1
  77. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +1 -1
  78. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +11 -11
  79. package/api/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +1 -1
  80. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +1 -7
  81. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +7 -13
  82. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +3 -2
  83. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  84. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  85. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  86. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +1 -1
  87. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +12 -12
  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/superbills/resources/v1/client/Client.js +1 -1
  92. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  93. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  94. package/dist/api/resources/auth/resources/default/client/Client.js +1 -1
  95. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  96. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +33 -0
  97. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +90 -5
  98. package/dist/api/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.d.ts +58 -0
  99. package/dist/api/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.js +123 -0
  100. package/dist/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  101. package/dist/api/resources/chargeCapture/resources/v1/client/index.js +2 -1
  102. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.d.ts +30 -0
  103. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.js +5 -0
  104. package/dist/api/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  105. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
  106. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  107. package/dist/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +1 -1
  108. package/dist/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +1 -1
  109. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  110. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  111. package/dist/api/resources/diagnoses/client/Client.js +4 -3
  112. package/dist/api/resources/diagnoses/client/update.d.ts +7 -1
  113. package/dist/api/resources/diagnoses/client/update.js +11 -0
  114. package/dist/api/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.d.ts +9 -0
  115. package/dist/api/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.js +5 -0
  116. package/dist/api/resources/diagnoses/types/index.d.ts +1 -0
  117. package/dist/api/resources/diagnoses/types/index.js +1 -0
  118. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  119. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
  120. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  121. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  122. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  123. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  124. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  125. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  126. package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +18 -0
  127. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +60 -10
  128. package/dist/api/resources/feeSchedules/resources/v3/client/hardDeleteRates.d.ts +22 -0
  129. package/dist/api/resources/feeSchedules/resources/v3/client/hardDeleteRates.js +57 -0
  130. package/dist/api/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
  131. package/dist/api/resources/feeSchedules/resources/v3/client/index.js +2 -1
  132. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  133. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  134. package/dist/api/resources/individual/types/SubscriberCreate.d.ts +1 -0
  135. package/dist/api/resources/individual/types/SubscriberCreateOptional.d.ts +1 -0
  136. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  137. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  138. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  139. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  140. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  141. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  142. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +15 -0
  143. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +79 -7
  144. package/dist/api/resources/nonInsurancePayers/resources/v1/client/getCategories.d.ts +22 -0
  145. package/dist/api/resources/nonInsurancePayers/resources/v1/client/getCategories.js +57 -0
  146. package/dist/api/resources/nonInsurancePayers/resources/v1/client/index.d.ts +1 -0
  147. package/dist/api/resources/nonInsurancePayers/resources/v1/client/index.js +2 -1
  148. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +15 -0
  149. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.d.ts +22 -0
  150. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.js +5 -0
  151. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/index.d.ts +1 -0
  152. package/dist/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.d.ts +7 -0
  153. package/dist/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.js +5 -0
  154. package/dist/api/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
  155. package/dist/api/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
  156. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +15 -5
  157. package/dist/api/resources/organizationProviders/resources/v3/client/requests/GetAllOrganizationProvidersRequestV2.d.ts +4 -0
  158. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +16 -6
  159. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/requests/GetAllOrganizationServiceFacilitiesRequest.d.ts +4 -0
  160. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  161. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  162. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  163. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  164. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +1 -1
  165. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +8 -8
  166. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +1 -0
  167. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -0
  168. package/dist/api/resources/preEncounter/resources/common/types/BaseModel.d.ts +1 -1
  169. package/dist/api/resources/preEncounter/resources/common/types/FilterQueryString.d.ts +1 -1
  170. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +1 -1
  171. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +11 -11
  172. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +1 -1
  173. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +1 -7
  174. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +7 -13
  175. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +3 -2
  176. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  177. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  178. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  179. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +1 -1
  180. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +12 -12
  181. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  182. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  183. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  184. package/dist/api/resources/superbills/resources/v1/client/Client.js +1 -1
  185. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  186. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  187. package/dist/serialization/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.d.ts +40 -0
  188. package/dist/serialization/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.js +101 -0
  189. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  190. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.js +2 -1
  191. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.d.ts +23 -0
  192. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.js +54 -0
  193. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  194. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/index.js +3 -1
  195. package/dist/serialization/resources/diagnoses/client/update.d.ts +6 -1
  196. package/dist/serialization/resources/diagnoses/client/update.js +6 -0
  197. package/dist/serialization/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.d.ts +15 -0
  198. package/dist/serialization/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.js +46 -0
  199. package/dist/serialization/resources/diagnoses/types/index.d.ts +1 -0
  200. package/dist/serialization/resources/diagnoses/types/index.js +1 -0
  201. package/dist/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRates.d.ts +9 -0
  202. package/dist/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRates.js +41 -0
  203. package/dist/serialization/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
  204. package/dist/serialization/resources/feeSchedules/resources/v3/client/index.js +2 -1
  205. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.d.ts +13 -0
  206. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.js +46 -0
  207. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
  208. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
  209. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +1 -0
  210. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.js +1 -0
  211. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +2 -0
  212. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.js +2 -0
  213. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +3 -2
  214. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.js +3 -2
  215. package/dist/version.d.ts +1 -1
  216. package/dist/version.js +1 -1
  217. package/package.json +1 -1
  218. package/reference.md +233 -10
  219. package/serialization/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.d.ts +40 -0
  220. package/serialization/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.js +101 -0
  221. package/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  222. package/serialization/resources/chargeCapture/resources/v1/client/index.js +2 -1
  223. package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.d.ts +23 -0
  224. package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.js +54 -0
  225. package/serialization/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  226. package/serialization/resources/chargeCapture/resources/v1/client/requests/index.js +3 -1
  227. package/serialization/resources/diagnoses/client/update.d.ts +6 -1
  228. package/serialization/resources/diagnoses/client/update.js +6 -0
  229. package/serialization/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.d.ts +15 -0
  230. package/serialization/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.js +46 -0
  231. package/serialization/resources/diagnoses/types/index.d.ts +1 -0
  232. package/serialization/resources/diagnoses/types/index.js +1 -0
  233. package/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRates.d.ts +9 -0
  234. package/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRates.js +41 -0
  235. package/serialization/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
  236. package/serialization/resources/feeSchedules/resources/v3/client/index.js +2 -1
  237. package/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.d.ts +13 -0
  238. package/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.js +46 -0
  239. package/serialization/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
  240. package/serialization/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
  241. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +1 -0
  242. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.js +1 -0
  243. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +2 -0
  244. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.js +2 -0
  245. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +3 -2
  246. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.js +3 -2
  247. package/version.d.ts +1 -1
  248. package/version.js +1 -1
package/reference.md CHANGED
@@ -507,6 +507,96 @@ await client.chargeCapture.v1.create({
507
507
  </dl>
508
508
  </details>
509
509
 
510
+ <details><summary><code>client.chargeCapture.v1.<a href="/src/api/resources/chargeCapture/resources/v1/client/Client.ts">createFromPreEncounterPatient</a>({ ...params }) -> core.APIResponse<CandidApi.ChargeCapture, CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error></code></summary>
511
+ <dl>
512
+ <dd>
513
+
514
+ #### 📝 Description
515
+
516
+ <dl>
517
+ <dd>
518
+
519
+ <dl>
520
+ <dd>
521
+
522
+ Create a Charge Capture from a pre-encounter patient and appointment. This endpoint is intended to be used by consumers who are managing
523
+ patients and appointments in the pre-encounter service and is currently under development. Consumers who are not taking advantage
524
+ of the pre-encounter service should use the standard create endpoint.
525
+
526
+ At encounter creation time, information from the provided patient and appointment objects will be populated
527
+ where applicable. In particular, the following fields are populated from the patient and appointment objects:
528
+
529
+ - Patient
530
+ - Referring Provider
531
+ - Subscriber Primary
532
+ - Subscriber Secondary
533
+ - Referral Number
534
+ - Responsible Party
535
+ - Guarantor
536
+
537
+ Note that these fields should not be populated in the ChargeCaptureData property of this endpoint, as they will be overwritten at encounter creation time.
538
+
539
+ Utilizing this endpoint opts you into automatic updating of the encounter when the patient or appointment is updated, assuming the
540
+ encounter has not already been submitted or adjudicated.
541
+
542
+ </dd>
543
+ </dl>
544
+ </dd>
545
+ </dl>
546
+
547
+ #### 🔌 Usage
548
+
549
+ <dl>
550
+ <dd>
551
+
552
+ <dl>
553
+ <dd>
554
+
555
+ ```typescript
556
+ await client.chargeCapture.v1.createFromPreEncounterPatient({
557
+ data: {},
558
+ chargeExternalId: "charge_external_id",
559
+ preEncounterPatientId: CandidApi.PreEncounterPatientId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
560
+ preEncounterAppointmentIds: [
561
+ CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
562
+ CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
563
+ ],
564
+ status: "planned",
565
+ });
566
+ ```
567
+
568
+ </dd>
569
+ </dl>
570
+ </dd>
571
+ </dl>
572
+
573
+ #### ⚙️ Parameters
574
+
575
+ <dl>
576
+ <dd>
577
+
578
+ <dl>
579
+ <dd>
580
+
581
+ **request:** `CandidApi.chargeCapture.v1.CreateChargeCaptureFromPreEncounterRequest`
582
+
583
+ </dd>
584
+ </dl>
585
+
586
+ <dl>
587
+ <dd>
588
+
589
+ **requestOptions:** `V1.RequestOptions`
590
+
591
+ </dd>
592
+ </dl>
593
+ </dd>
594
+ </dl>
595
+
596
+ </dd>
597
+ </dl>
598
+ </details>
599
+
510
600
  <details><summary><code>client.chargeCapture.v1.<a href="/src/api/resources/chargeCapture/resources/v1/client/Client.ts">update</a>(chargeCaptureId, { ...params }) -> core.APIResponse<CandidApi.ChargeCapture, CandidApi.chargeCapture.v1.update.Error></code></summary>
511
601
  <dl>
512
602
  <dd>
@@ -4047,6 +4137,77 @@ await client.feeSchedules.v3.setPayerThreshold(CandidApi.PayerUuid("d5e9c84f-c2b
4047
4137
  </dl>
4048
4138
  </details>
4049
4139
 
4140
+ <details><summary><code>client.feeSchedules.v3.<a href="/src/api/resources/feeSchedules/resources/v3/client/Client.ts">hardDeleteRates</a>({ ...params }) -> core.APIResponse<number, CandidApi.feeSchedules.v3.hardDeleteRates.Error></code></summary>
4141
+ <dl>
4142
+ <dd>
4143
+
4144
+ #### 📝 Description
4145
+
4146
+ <dl>
4147
+ <dd>
4148
+
4149
+ <dl>
4150
+ <dd>
4151
+
4152
+ Hard deletes rates from the system that match the provided dimensions. This is a destructive operation and cannot be undone. If an empty dimensions object is provided, all rates will be hard deleted. The maximum number of rates this API will delete at a time is 10000. Returns the number of rates deleted and if that number is the maximum, the caller should call this API again to continue deleting rates.
4153
+
4154
+ </dd>
4155
+ </dl>
4156
+ </dd>
4157
+ </dl>
4158
+
4159
+ #### 🔌 Usage
4160
+
4161
+ <dl>
4162
+ <dd>
4163
+
4164
+ <dl>
4165
+ <dd>
4166
+
4167
+ ```typescript
4168
+ await client.feeSchedules.v3.hardDeleteRates({
4169
+ states: new Set(["AA"]),
4170
+ zipCodes: new Set(["zip_codes"]),
4171
+ licenseTypes: new Set(["MD"]),
4172
+ facilityTypeCodes: new Set(["01"]),
4173
+ networkTypes: new Set(["12"]),
4174
+ payerPlanGroupIds: new Set([CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]),
4175
+ modifiers: new Set(["AV"]),
4176
+ });
4177
+ ```
4178
+
4179
+ </dd>
4180
+ </dl>
4181
+ </dd>
4182
+ </dl>
4183
+
4184
+ #### ⚙️ Parameters
4185
+
4186
+ <dl>
4187
+ <dd>
4188
+
4189
+ <dl>
4190
+ <dd>
4191
+
4192
+ **request:** `CandidApi.OptionalDimensions`
4193
+
4194
+ </dd>
4195
+ </dl>
4196
+
4197
+ <dl>
4198
+ <dd>
4199
+
4200
+ **requestOptions:** `V3.RequestOptions`
4201
+
4202
+ </dd>
4203
+ </dl>
4204
+ </dd>
4205
+ </dl>
4206
+
4207
+ </dd>
4208
+ </dl>
4209
+ </details>
4210
+
4050
4211
  ## Guarantor V1
4051
4212
 
4052
4213
  <details><summary><code>client.guarantor.v1.<a href="/src/api/resources/guarantor/resources/v1/client/Client.ts">create</a>(encounterId, { ...params }) -> core.APIResponse<CandidApi.Guarantor, CandidApi.guarantor.v1.create.Error></code></summary>
@@ -6260,6 +6421,74 @@ await client.nonInsurancePayers.v1.getMulti();
6260
6421
  </dl>
6261
6422
  </details>
6262
6423
 
6424
+ <details><summary><code>client.nonInsurancePayers.v1.<a href="/src/api/resources/nonInsurancePayers/resources/v1/client/Client.ts">getCategories</a>({ ...params }) -> core.APIResponse<CandidApi.NonInsurancePayerCategoriesPage, CandidApi.nonInsurancePayers.v1.getCategories.Error></code></summary>
6425
+ <dl>
6426
+ <dd>
6427
+
6428
+ #### 📝 Description
6429
+
6430
+ <dl>
6431
+ <dd>
6432
+
6433
+ <dl>
6434
+ <dd>
6435
+
6436
+ Returns a paginated list of all non-insurance payer categories.
6437
+
6438
+ Non-insurance payer categories are simply strings and are not stored as a
6439
+ separate object in Candid. They are created when added to at least one
6440
+ non-insurance payer's `category` field and are deleted when there are no
6441
+ longer any non-insurance payers that contain them.
6442
+
6443
+ </dd>
6444
+ </dl>
6445
+ </dd>
6446
+ </dl>
6447
+
6448
+ #### 🔌 Usage
6449
+
6450
+ <dl>
6451
+ <dd>
6452
+
6453
+ <dl>
6454
+ <dd>
6455
+
6456
+ ```typescript
6457
+ await client.nonInsurancePayers.v1.getCategories();
6458
+ ```
6459
+
6460
+ </dd>
6461
+ </dl>
6462
+ </dd>
6463
+ </dl>
6464
+
6465
+ #### ⚙️ Parameters
6466
+
6467
+ <dl>
6468
+ <dd>
6469
+
6470
+ <dl>
6471
+ <dd>
6472
+
6473
+ **request:** `CandidApi.nonInsurancePayers.v1.GetNonInsurancePayersCategoriesRequest`
6474
+
6475
+ </dd>
6476
+ </dl>
6477
+
6478
+ <dl>
6479
+ <dd>
6480
+
6481
+ **requestOptions:** `V1.RequestOptions`
6482
+
6483
+ </dd>
6484
+ </dl>
6485
+ </dd>
6486
+ </dl>
6487
+
6488
+ </dd>
6489
+ </dl>
6490
+ </details>
6491
+
6263
6492
  <details><summary><code>client.nonInsurancePayers.v1.<a href="/src/api/resources/nonInsurancePayers/resources/v1/client/Client.ts">get</a>(nonInsurancePayerId) -> core.APIResponse<CandidApi.NonInsurancePayer, CandidApi.nonInsurancePayers.v1.get.Error></code></summary>
6264
6493
  <dl>
6265
6494
  <dd>
@@ -9216,7 +9445,7 @@ await client.preEncounter.appointments.v1.getHistory(CandidApi.AppointmentId("id
9216
9445
  <dl>
9217
9446
  <dd>
9218
9447
 
9219
- Updates an appointment. The path must contain the most recent version to prevent race conditions. Updating historic versions is not supported.
9448
+ Updates an appointment. The path must contain the next version number to prevent race conditions. For example, if the current version of the appointment is n, you will need to send a request to this endpoint with `/{id}/n+1` to update the appointment. Updating historic versions is not supported.
9220
9449
 
9221
9450
  </dd>
9222
9451
  </dl>
@@ -9520,7 +9749,7 @@ await client.preEncounter.coverages.v1.create({
9520
9749
  <dl>
9521
9750
  <dd>
9522
9751
 
9523
- Updates a Coverage. The path must contain the most recent version to prevent race conditions. Updating historic versions is not supported.
9752
+ Updates a Coverage. The path must contain the next version number to prevent race conditions. For example, if the current version of the coverage is n, you will need to send a request to this endpoint with `/{id}/n+1` to update the coverage. Updating historic versions is not supported.
9524
9753
 
9525
9754
  </dd>
9526
9755
  </dl>
@@ -10166,7 +10395,6 @@ await client.preEncounter.coverages.v1.getEligibility(
10166
10395
  <dd>
10167
10396
 
10168
10397
  Sends real-time eligibility checks to payers through Stedi.
10169
- <Warning>Please only send one concurrent request to this endpoint. Batch requests must be made in succession, otherwise, it will cause this service to fail. A batch endpoint is in development - please reach out to the Candid team for more information.</Warning>
10170
10398
 
10171
10399
  </dd>
10172
10400
  </dl>
@@ -10323,8 +10551,6 @@ await client.preEncounter.eligibilityChecks.v1.batch([
10323
10551
  <dd>
10324
10552
 
10325
10553
  Polls the status of a batch eligibility check.
10326
- <Note>Batch eligibility checks are not yet available. Please reach out to the Candid team for more information.</Note>
10327
- path-parameters:
10328
10554
 
10329
10555
  </dd>
10330
10556
  </dl>
@@ -10542,10 +10768,7 @@ await client.preEncounter.eligibilityChecks.v1.createRecommendation({
10542
10768
  patient: {},
10543
10769
  recommendation: {
10544
10770
  type: "MEDICARE_ADVANTAGE",
10545
- payload: {
10546
- payerId: "payer_id",
10547
- payerName: "payer_name",
10548
- },
10771
+ payload: {},
10549
10772
  },
10550
10773
  });
10551
10774
  ```
@@ -12094,7 +12317,7 @@ await client.preEncounter.patients.v1.getHistory(CandidApi.PatientId("id"));
12094
12317
  <dl>
12095
12318
  <dd>
12096
12319
 
12097
- Updates a patient. The path must contain the most recent version to prevent race conditions. Updating historic versions is not supported.
12320
+ Updates a patient. The path must contain the next version number to prevent race conditions. For example, if the current version of the patient is n, you will need to send a request to this endpoint with `/{id}/n+1` to update the patient. Updating historic versions is not supported.
12098
12321
 
12099
12322
  </dd>
12100
12323
  </dl>
@@ -0,0 +1,40 @@
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 { EntityNotFoundErrorMessage } from "../../../../commons/types/EntityNotFoundErrorMessage";
8
+ import { UnauthorizedErrorMessage } from "../../../../commons/types/UnauthorizedErrorMessage";
9
+ import { RequestValidationError } from "../../../../commons/types/RequestValidationError";
10
+ import { SchemaInstanceValidationFailure } from "../../../../encounters/resources/v4/types/SchemaInstanceValidationFailure";
11
+ import { UnprocessableEntityErrorMessage } from "../../../../commons/types/UnprocessableEntityErrorMessage";
12
+ import { ChargeExternalIdConflictErrorMessage } from "../types/ChargeExternalIdConflictErrorMessage";
13
+ export declare const Error: core.serialization.Schema<serializers.chargeCapture.v1.createFromPreEncounterPatient.Error.Raw, CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error>;
14
+ export declare namespace Error {
15
+ type Raw = Error.EntityNotFoundError | Error.UnauthorizedError | Error.HttpRequestValidationsError | Error.SchemaInstanceValidationHttpFailure | Error.UnprocessableEntityError | Error.ChargeExternalIdConflictError;
16
+ interface EntityNotFoundError {
17
+ errorName: "EntityNotFoundError";
18
+ content: EntityNotFoundErrorMessage.Raw;
19
+ }
20
+ interface UnauthorizedError {
21
+ errorName: "UnauthorizedError";
22
+ content: UnauthorizedErrorMessage.Raw;
23
+ }
24
+ interface HttpRequestValidationsError {
25
+ errorName: "HttpRequestValidationsError";
26
+ content: RequestValidationError.Raw[];
27
+ }
28
+ interface SchemaInstanceValidationHttpFailure {
29
+ errorName: "SchemaInstanceValidationHttpFailure";
30
+ content: SchemaInstanceValidationFailure.Raw;
31
+ }
32
+ interface UnprocessableEntityError {
33
+ errorName: "UnprocessableEntityError";
34
+ content: UnprocessableEntityErrorMessage.Raw;
35
+ }
36
+ interface ChargeExternalIdConflictError {
37
+ errorName: "ChargeExternalIdConflictError";
38
+ content: ChargeExternalIdConflictErrorMessage.Raw;
39
+ }
40
+ }
@@ -0,0 +1,101 @@
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
+ var __rest = (this && this.__rest) || function (s, e) {
39
+ var t = {};
40
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
41
+ t[p] = s[p];
42
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
43
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
44
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
45
+ t[p[i]] = s[p[i]];
46
+ }
47
+ return t;
48
+ };
49
+ Object.defineProperty(exports, "__esModule", { value: true });
50
+ exports.Error = void 0;
51
+ const CandidApi = __importStar(require("../../../../../../api/index"));
52
+ const core = __importStar(require("../../../../../../core"));
53
+ const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
54
+ const UnauthorizedErrorMessage_1 = require("../../../../commons/types/UnauthorizedErrorMessage");
55
+ const RequestValidationError_1 = require("../../../../commons/types/RequestValidationError");
56
+ const SchemaInstanceValidationFailure_1 = require("../../../../encounters/resources/v4/types/SchemaInstanceValidationFailure");
57
+ const UnprocessableEntityErrorMessage_1 = require("../../../../commons/types/UnprocessableEntityErrorMessage");
58
+ const ChargeExternalIdConflictErrorMessage_1 = require("../types/ChargeExternalIdConflictErrorMessage");
59
+ exports.Error = core.serialization
60
+ .union("errorName", {
61
+ EntityNotFoundError: core.serialization.object({
62
+ content: EntityNotFoundErrorMessage_1.EntityNotFoundErrorMessage,
63
+ }),
64
+ UnauthorizedError: core.serialization.object({
65
+ content: UnauthorizedErrorMessage_1.UnauthorizedErrorMessage,
66
+ }),
67
+ HttpRequestValidationsError: core.serialization.object({
68
+ content: core.serialization.list(RequestValidationError_1.RequestValidationError),
69
+ }),
70
+ SchemaInstanceValidationHttpFailure: core.serialization.object({
71
+ content: SchemaInstanceValidationFailure_1.SchemaInstanceValidationFailure,
72
+ }),
73
+ UnprocessableEntityError: core.serialization.object({
74
+ content: UnprocessableEntityErrorMessage_1.UnprocessableEntityErrorMessage,
75
+ }),
76
+ ChargeExternalIdConflictError: core.serialization.object({
77
+ content: ChargeExternalIdConflictErrorMessage_1.ChargeExternalIdConflictErrorMessage,
78
+ }),
79
+ })
80
+ .transform({
81
+ transform: (value) => {
82
+ switch (value.errorName) {
83
+ case "EntityNotFoundError":
84
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.entityNotFoundError(value.content);
85
+ case "UnauthorizedError":
86
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.unauthorizedError(value.content);
87
+ case "HttpRequestValidationsError":
88
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.httpRequestValidationsError(value.content);
89
+ case "SchemaInstanceValidationHttpFailure":
90
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.schemaInstanceValidationHttpFailure(value.content);
91
+ case "UnprocessableEntityError":
92
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.unprocessableEntityError(value.content);
93
+ case "ChargeExternalIdConflictError":
94
+ return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.chargeExternalIdConflictError(value.content);
95
+ }
96
+ },
97
+ untransform: (_a) => {
98
+ var { _visit } = _a, value = __rest(_a, ["_visit"]);
99
+ return value;
100
+ },
101
+ });
@@ -1,4 +1,5 @@
1
1
  export * as create from "./create";
2
+ export * as createFromPreEncounterPatient from "./createFromPreEncounterPatient";
2
3
  export * as update from "./update";
3
4
  export * as updatePostBilledChanges from "./updatePostBilledChanges";
4
5
  export * from "./requests";
@@ -36,8 +36,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.updatePostBilledChanges = exports.update = exports.create = void 0;
39
+ exports.updatePostBilledChanges = exports.update = exports.createFromPreEncounterPatient = exports.create = void 0;
40
40
  exports.create = __importStar(require("./create"));
41
+ exports.createFromPreEncounterPatient = __importStar(require("./createFromPreEncounterPatient"));
41
42
  exports.update = __importStar(require("./update"));
42
43
  exports.updatePostBilledChanges = __importStar(require("./updatePostBilledChanges"));
43
44
  __exportStar(require("./requests"), exports);
@@ -0,0 +1,23 @@
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 { ChargeCaptureData } from "../../types/ChargeCaptureData";
8
+ import { PreEncounterPatientId } from "../../../../../commons/types/PreEncounterPatientId";
9
+ import { PreEncounterAppointmentId } from "../../../../../commons/types/PreEncounterAppointmentId";
10
+ import { ChargeCaptureStatus } from "../../types/ChargeCaptureStatus";
11
+ export declare const CreateChargeCaptureFromPreEncounterRequest: core.serialization.Schema<serializers.chargeCapture.v1.CreateChargeCaptureFromPreEncounterRequest.Raw, CandidApi.chargeCapture.v1.CreateChargeCaptureFromPreEncounterRequest>;
12
+ export declare namespace CreateChargeCaptureFromPreEncounterRequest {
13
+ interface Raw {
14
+ data: ChargeCaptureData.Raw;
15
+ charge_external_id: string;
16
+ pre_encounter_patient_id: PreEncounterPatientId.Raw;
17
+ pre_encounter_appointment_ids: PreEncounterAppointmentId.Raw[];
18
+ originating_system?: string | null;
19
+ claim_creation_category?: string | null;
20
+ ehr_source_url?: string | null;
21
+ status: ChargeCaptureStatus.Raw;
22
+ }
23
+ }
@@ -0,0 +1,54 @@
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.CreateChargeCaptureFromPreEncounterRequest = void 0;
40
+ const core = __importStar(require("../../../../../../../core"));
41
+ const ChargeCaptureData_1 = require("../../types/ChargeCaptureData");
42
+ const PreEncounterPatientId_1 = require("../../../../../commons/types/PreEncounterPatientId");
43
+ const PreEncounterAppointmentId_1 = require("../../../../../commons/types/PreEncounterAppointmentId");
44
+ const ChargeCaptureStatus_1 = require("../../types/ChargeCaptureStatus");
45
+ exports.CreateChargeCaptureFromPreEncounterRequest = core.serialization.object({
46
+ data: ChargeCaptureData_1.ChargeCaptureData,
47
+ chargeExternalId: core.serialization.property("charge_external_id", core.serialization.string()),
48
+ preEncounterPatientId: core.serialization.property("pre_encounter_patient_id", PreEncounterPatientId_1.PreEncounterPatientId),
49
+ preEncounterAppointmentIds: core.serialization.property("pre_encounter_appointment_ids", core.serialization.list(PreEncounterAppointmentId_1.PreEncounterAppointmentId)),
50
+ originatingSystem: core.serialization.property("originating_system", core.serialization.string().optional()),
51
+ claimCreationCategory: core.serialization.property("claim_creation_category", core.serialization.string().optional()),
52
+ ehrSourceUrl: core.serialization.property("ehr_source_url", core.serialization.string().optional()),
53
+ status: ChargeCaptureStatus_1.ChargeCaptureStatus,
54
+ });
@@ -1,3 +1,4 @@
1
1
  export { CreateChargeCaptureRequest } from "./CreateChargeCaptureRequest";
2
+ export { CreateChargeCaptureFromPreEncounterRequest } from "./CreateChargeCaptureFromPreEncounterRequest";
2
3
  export { ChargeCaptureUpdate } from "./ChargeCaptureUpdate";
3
4
  export { ChargeCapturePostBilledChangeUpdate } from "./ChargeCapturePostBilledChangeUpdate";
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChargeCapturePostBilledChangeUpdate = exports.ChargeCaptureUpdate = exports.CreateChargeCaptureRequest = void 0;
3
+ exports.ChargeCapturePostBilledChangeUpdate = exports.ChargeCaptureUpdate = exports.CreateChargeCaptureFromPreEncounterRequest = exports.CreateChargeCaptureRequest = void 0;
4
4
  var CreateChargeCaptureRequest_1 = require("./CreateChargeCaptureRequest");
5
5
  Object.defineProperty(exports, "CreateChargeCaptureRequest", { enumerable: true, get: function () { return CreateChargeCaptureRequest_1.CreateChargeCaptureRequest; } });
6
+ var CreateChargeCaptureFromPreEncounterRequest_1 = require("./CreateChargeCaptureFromPreEncounterRequest");
7
+ Object.defineProperty(exports, "CreateChargeCaptureFromPreEncounterRequest", { enumerable: true, get: function () { return CreateChargeCaptureFromPreEncounterRequest_1.CreateChargeCaptureFromPreEncounterRequest; } });
6
8
  var ChargeCaptureUpdate_1 = require("./ChargeCaptureUpdate");
7
9
  Object.defineProperty(exports, "ChargeCaptureUpdate", { enumerable: true, get: function () { return ChargeCaptureUpdate_1.ChargeCaptureUpdate; } });
8
10
  var ChargeCapturePostBilledChangeUpdate_1 = require("./ChargeCapturePostBilledChangeUpdate");
@@ -5,11 +5,16 @@ import * as serializers from "../../../index";
5
5
  import * as CandidApi from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  import { DiagnosisNotFoundError } from "../types/DiagnosisNotFoundError";
8
+ import { DisallowMultiplePrimaryDiagnosisError } from "../types/DisallowMultiplePrimaryDiagnosisError";
8
9
  export declare const Error: core.serialization.Schema<serializers.diagnoses.update.Error.Raw, CandidApi.diagnoses.update.Error>;
9
10
  export declare namespace Error {
10
- type Raw = Error.DiagnosisNotFoundHttpError;
11
+ type Raw = Error.DiagnosisNotFoundHttpError | Error.DisallowMultiplePrimaryDiagnosisHttpError;
11
12
  interface DiagnosisNotFoundHttpError {
12
13
  errorName: "DiagnosisNotFoundHTTPError";
13
14
  content: DiagnosisNotFoundError.Raw;
14
15
  }
16
+ interface DisallowMultiplePrimaryDiagnosisHttpError {
17
+ errorName: "DisallowMultiplePrimaryDiagnosisHTTPError";
18
+ content: DisallowMultiplePrimaryDiagnosisError.Raw;
19
+ }
15
20
  }
@@ -51,17 +51,23 @@ exports.Error = void 0;
51
51
  const CandidApi = __importStar(require("../../../../api/index"));
52
52
  const core = __importStar(require("../../../../core"));
53
53
  const DiagnosisNotFoundError_1 = require("../types/DiagnosisNotFoundError");
54
+ const DisallowMultiplePrimaryDiagnosisError_1 = require("../types/DisallowMultiplePrimaryDiagnosisError");
54
55
  exports.Error = core.serialization
55
56
  .union("errorName", {
56
57
  DiagnosisNotFoundHTTPError: core.serialization.object({
57
58
  content: DiagnosisNotFoundError_1.DiagnosisNotFoundError,
58
59
  }),
60
+ DisallowMultiplePrimaryDiagnosisHTTPError: core.serialization.object({
61
+ content: DisallowMultiplePrimaryDiagnosisError_1.DisallowMultiplePrimaryDiagnosisError,
62
+ }),
59
63
  })
60
64
  .transform({
61
65
  transform: (value) => {
62
66
  switch (value.errorName) {
63
67
  case "DiagnosisNotFoundHTTPError":
64
68
  return CandidApi.diagnoses.update.Error.diagnosisNotFoundHttpError(value.content);
69
+ case "DisallowMultiplePrimaryDiagnosisHTTPError":
70
+ return CandidApi.diagnoses.update.Error.disallowMultiplePrimaryDiagnosisHttpError(value.content);
65
71
  }
66
72
  },
67
73
  untransform: (_a) => {
@@ -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 { DiagnosisId } from "./DiagnosisId";
8
+ export declare const DisallowMultiplePrimaryDiagnosisError: core.serialization.ObjectSchema<serializers.DisallowMultiplePrimaryDiagnosisError.Raw, CandidApi.DisallowMultiplePrimaryDiagnosisError>;
9
+ export declare namespace DisallowMultiplePrimaryDiagnosisError {
10
+ interface Raw {
11
+ existing_primary_diagnosis_id: DiagnosisId.Raw;
12
+ new_primary_diagnosis_id: DiagnosisId.Raw;
13
+ message: string;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
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.DisallowMultiplePrimaryDiagnosisError = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const DiagnosisId_1 = require("./DiagnosisId");
42
+ exports.DisallowMultiplePrimaryDiagnosisError = core.serialization.object({
43
+ existingPrimaryDiagnosisId: core.serialization.property("existing_primary_diagnosis_id", DiagnosisId_1.DiagnosisId),
44
+ newPrimaryDiagnosisId: core.serialization.property("new_primary_diagnosis_id", DiagnosisId_1.DiagnosisId),
45
+ message: core.serialization.string(),
46
+ });