candidhealth 1.17.4 → 1.18.1

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 (302) hide show
  1. package/Client.js +2 -2
  2. package/api/resources/commons/types/EmrPayerCrosswalk.d.ts +1 -0
  3. package/api/resources/commons/types/EmrPayerCrosswalk.js +1 -0
  4. package/api/resources/encounters/resources/v4/client/Client.js +25 -2
  5. package/api/resources/encounters/resources/v4/client/getAll.d.ts +19 -1
  6. package/api/resources/encounters/resources/v4/client/getAll.js +33 -0
  7. package/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +2 -0
  8. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +4 -0
  9. package/api/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +4 -0
  10. package/api/resources/encountersUniversal/types/UniversalEncounterCreateBase.d.ts +4 -0
  11. package/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.d.ts +4 -0
  12. package/api/resources/encountersUniversal/types/UniversalEncounterUpdateBase.d.ts +4 -0
  13. package/api/resources/financials/types/BalanceEarmark.d.ts +4 -0
  14. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceCode.d.ts +0 -1
  15. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceCode.js +0 -1
  16. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.d.ts +0 -1
  17. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.js +0 -1
  18. package/api/resources/payers/resources/v4/types/Payer.d.ts +1 -0
  19. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +11 -0
  20. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +11 -0
  21. package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +4 -0
  22. package/api/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -0
  23. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +4 -2
  24. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +28 -6
  25. package/api/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +7 -1
  26. package/api/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.js +11 -0
  27. package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoveragesGetHistoryRequest.d.ts +15 -0
  28. package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoveragesGetHistoryRequest.js +3 -0
  29. package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/index.d.ts +1 -0
  30. package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
  31. package/api/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +3 -1
  32. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +16 -0
  33. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +81 -0
  34. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +1 -0
  35. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +2 -1
  36. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/voteRecommendation.d.ts +31 -0
  37. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/voteRecommendation.js +77 -0
  38. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CopayEstimationRecommendation.d.ts +7 -0
  39. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CopayEstimationRecommendation.js +3 -0
  40. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CopayEstimationRecommendationPayload.d.ts +9 -0
  41. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CopayEstimationRecommendationPayload.js +3 -0
  42. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.d.ts +3 -0
  43. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.d.ts +7 -1
  44. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/UserConfiguredPromptsRecommendation.d.ts +7 -0
  45. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/UserConfiguredPromptsRecommendation.js +3 -0
  46. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/UserConfiguredPromptsRecommendationPayload.d.ts +8 -0
  47. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/UserConfiguredPromptsRecommendationPayload.js +3 -0
  48. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/UserConfiguredPromptsResult.d.ts +13 -0
  49. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/UserConfiguredPromptsResult.js +3 -0
  50. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/Vote.d.ts +12 -0
  51. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/Vote.js +3 -0
  52. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/VoteValue.d.ts +7 -0
  53. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/VoteValue.js +10 -0
  54. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +7 -0
  55. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +7 -0
  56. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +11 -2
  57. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +4 -0
  58. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +2 -0
  59. package/api/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +1 -0
  60. package/api/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
  61. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +12 -0
  62. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +76 -0
  63. package/api/resources/preEncounter/resources/patients/resources/v1/client/getCoverageSnapshot.d.ts +25 -0
  64. package/api/resources/preEncounter/resources/patients/resources/v1/client/getCoverageSnapshot.js +66 -0
  65. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  66. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  67. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/GetCoverageSnapshotRequest.d.ts +7 -0
  68. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/GetCoverageSnapshotRequest.js +3 -0
  69. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/index.d.ts +1 -0
  70. package/api/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +2 -0
  71. package/api/resources/preEncounter/resources/patients/resources/v1/types/CoveragesForRelatedCauses.d.ts +7 -0
  72. package/api/resources/preEncounter/resources/patients/resources/v1/types/CoveragesForRelatedCauses.js +3 -0
  73. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -1
  74. package/api/resources/preEncounter/resources/patients/resources/v1/types/PatientCoverageSnapshot.d.ts +8 -0
  75. package/api/resources/preEncounter/resources/patients/resources/v1/types/PatientCoverageSnapshot.js +3 -0
  76. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +2 -0
  77. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +2 -0
  78. package/api/resources/serviceLines/resources/v2/types/ServiceLineEraData.d.ts +6 -0
  79. package/dist/Client.js +2 -2
  80. package/dist/api/resources/commons/types/EmrPayerCrosswalk.d.ts +1 -0
  81. package/dist/api/resources/commons/types/EmrPayerCrosswalk.js +1 -0
  82. package/dist/api/resources/encounters/resources/v4/client/Client.js +25 -2
  83. package/dist/api/resources/encounters/resources/v4/client/getAll.d.ts +19 -1
  84. package/dist/api/resources/encounters/resources/v4/client/getAll.js +33 -0
  85. package/dist/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +2 -0
  86. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +4 -0
  87. package/dist/api/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +4 -0
  88. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateBase.d.ts +4 -0
  89. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.d.ts +4 -0
  90. package/dist/api/resources/encountersUniversal/types/UniversalEncounterUpdateBase.d.ts +4 -0
  91. package/dist/api/resources/financials/types/BalanceEarmark.d.ts +4 -0
  92. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceCode.d.ts +0 -1
  93. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceCode.js +0 -1
  94. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.d.ts +0 -1
  95. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.js +0 -1
  96. package/dist/api/resources/payers/resources/v4/types/Payer.d.ts +1 -0
  97. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +11 -0
  98. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +11 -0
  99. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +4 -0
  100. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -0
  101. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +4 -2
  102. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +28 -6
  103. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +7 -1
  104. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.js +11 -0
  105. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoveragesGetHistoryRequest.d.ts +15 -0
  106. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoveragesGetHistoryRequest.js +3 -0
  107. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/index.d.ts +1 -0
  108. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
  109. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +3 -1
  110. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +16 -0
  111. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +81 -0
  112. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +1 -0
  113. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +2 -1
  114. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/voteRecommendation.d.ts +31 -0
  115. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/voteRecommendation.js +77 -0
  116. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CopayEstimationRecommendation.d.ts +7 -0
  117. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CopayEstimationRecommendation.js +3 -0
  118. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CopayEstimationRecommendationPayload.d.ts +9 -0
  119. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CopayEstimationRecommendationPayload.js +3 -0
  120. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.d.ts +3 -0
  121. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.d.ts +7 -1
  122. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/UserConfiguredPromptsRecommendation.d.ts +7 -0
  123. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/UserConfiguredPromptsRecommendation.js +3 -0
  124. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/UserConfiguredPromptsRecommendationPayload.d.ts +8 -0
  125. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/UserConfiguredPromptsRecommendationPayload.js +3 -0
  126. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/UserConfiguredPromptsResult.d.ts +13 -0
  127. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/UserConfiguredPromptsResult.js +3 -0
  128. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/Vote.d.ts +12 -0
  129. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/Vote.js +3 -0
  130. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/VoteValue.d.ts +7 -0
  131. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/VoteValue.js +10 -0
  132. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +7 -0
  133. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +7 -0
  134. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +11 -2
  135. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +4 -0
  136. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +2 -0
  137. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +1 -0
  138. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
  139. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +12 -0
  140. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +76 -0
  141. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/getCoverageSnapshot.d.ts +25 -0
  142. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/getCoverageSnapshot.js +66 -0
  143. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  144. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  145. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/GetCoverageSnapshotRequest.d.ts +7 -0
  146. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/GetCoverageSnapshotRequest.js +3 -0
  147. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/index.d.ts +1 -0
  148. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +2 -0
  149. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/CoveragesForRelatedCauses.d.ts +7 -0
  150. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/CoveragesForRelatedCauses.js +3 -0
  151. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -1
  152. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PatientCoverageSnapshot.d.ts +8 -0
  153. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PatientCoverageSnapshot.js +3 -0
  154. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +2 -0
  155. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +2 -0
  156. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineEraData.d.ts +6 -0
  157. package/dist/serialization/resources/commons/types/EmrPayerCrosswalk.d.ts +1 -1
  158. package/dist/serialization/resources/commons/types/EmrPayerCrosswalk.js +1 -1
  159. package/dist/serialization/resources/encounters/resources/v4/client/getAll.d.ts +22 -0
  160. package/dist/serialization/resources/encounters/resources/v4/client/getAll.js +81 -0
  161. package/dist/serialization/resources/encounters/resources/v4/client/index.d.ts +1 -0
  162. package/dist/serialization/resources/encounters/resources/v4/client/index.js +2 -1
  163. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  164. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
  165. package/dist/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +2 -0
  166. package/dist/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.js +2 -0
  167. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateBase.d.ts +2 -0
  168. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateBase.js +2 -0
  169. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.d.ts +2 -0
  170. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.js +2 -0
  171. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterUpdateBase.d.ts +2 -0
  172. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterUpdateBase.js +2 -0
  173. package/dist/serialization/resources/financials/types/BalanceEarmark.d.ts +2 -0
  174. package/dist/serialization/resources/financials/types/BalanceEarmark.js +2 -0
  175. package/dist/serialization/resources/payers/resources/v4/types/Payer.d.ts +1 -0
  176. package/dist/serialization/resources/payers/resources/v4/types/Payer.js +1 -0
  177. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -0
  178. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.js +1 -0
  179. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +5 -1
  180. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.js +5 -0
  181. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
  182. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.js +1 -0
  183. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +1 -0
  184. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.js +1 -0
  185. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +1 -0
  186. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +2 -1
  187. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/voteRecommendation.d.ts +17 -0
  188. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/voteRecommendation.js +75 -0
  189. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CopayEstimationRecommendation.d.ts +10 -0
  190. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CopayEstimationRecommendation.js +42 -0
  191. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CopayEstimationRecommendationPayload.d.ts +10 -0
  192. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CopayEstimationRecommendationPayload.js +42 -0
  193. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.d.ts +3 -0
  194. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.js +3 -0
  195. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.d.ts +9 -1
  196. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.js +4 -0
  197. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/UserConfiguredPromptsRecommendation.d.ts +10 -0
  198. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/UserConfiguredPromptsRecommendation.js +42 -0
  199. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/UserConfiguredPromptsRecommendationPayload.d.ts +10 -0
  200. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/UserConfiguredPromptsRecommendationPayload.js +42 -0
  201. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/UserConfiguredPromptsResult.d.ts +12 -0
  202. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/UserConfiguredPromptsResult.js +44 -0
  203. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/Vote.d.ts +13 -0
  204. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/Vote.js +45 -0
  205. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/VoteValue.d.ts +7 -0
  206. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/VoteValue.js +39 -0
  207. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +7 -0
  208. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +7 -0
  209. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +1 -0
  210. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.js +1 -0
  211. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
  212. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.js +2 -0
  213. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/getCoverageSnapshot.d.ts +12 -0
  214. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/getCoverageSnapshot.js +69 -0
  215. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  216. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  217. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +1 -0
  218. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.js +1 -0
  219. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/CoveragesForRelatedCauses.d.ts +10 -0
  220. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/CoveragesForRelatedCauses.js +42 -0
  221. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  222. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +2 -0
  223. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientCoverageSnapshot.d.ts +15 -0
  224. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientCoverageSnapshot.js +47 -0
  225. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +2 -0
  226. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +2 -0
  227. package/dist/version.d.ts +1 -1
  228. package/dist/version.js +1 -1
  229. package/package.json +1 -1
  230. package/reference.md +175 -2
  231. package/serialization/resources/commons/types/EmrPayerCrosswalk.d.ts +1 -1
  232. package/serialization/resources/commons/types/EmrPayerCrosswalk.js +1 -1
  233. package/serialization/resources/encounters/resources/v4/client/getAll.d.ts +22 -0
  234. package/serialization/resources/encounters/resources/v4/client/getAll.js +81 -0
  235. package/serialization/resources/encounters/resources/v4/client/index.d.ts +1 -0
  236. package/serialization/resources/encounters/resources/v4/client/index.js +2 -1
  237. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  238. package/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
  239. package/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +2 -0
  240. package/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.js +2 -0
  241. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateBase.d.ts +2 -0
  242. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateBase.js +2 -0
  243. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.d.ts +2 -0
  244. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.js +2 -0
  245. package/serialization/resources/encountersUniversal/types/UniversalEncounterUpdateBase.d.ts +2 -0
  246. package/serialization/resources/encountersUniversal/types/UniversalEncounterUpdateBase.js +2 -0
  247. package/serialization/resources/financials/types/BalanceEarmark.d.ts +2 -0
  248. package/serialization/resources/financials/types/BalanceEarmark.js +2 -0
  249. package/serialization/resources/payers/resources/v4/types/Payer.d.ts +1 -0
  250. package/serialization/resources/payers/resources/v4/types/Payer.js +1 -0
  251. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -0
  252. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.js +1 -0
  253. package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +5 -1
  254. package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.js +5 -0
  255. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
  256. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.js +1 -0
  257. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +1 -0
  258. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.js +1 -0
  259. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +1 -0
  260. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +2 -1
  261. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/voteRecommendation.d.ts +17 -0
  262. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/voteRecommendation.js +75 -0
  263. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CopayEstimationRecommendation.d.ts +10 -0
  264. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CopayEstimationRecommendation.js +42 -0
  265. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CopayEstimationRecommendationPayload.d.ts +10 -0
  266. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CopayEstimationRecommendationPayload.js +42 -0
  267. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.d.ts +3 -0
  268. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.js +3 -0
  269. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.d.ts +9 -1
  270. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.js +4 -0
  271. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/UserConfiguredPromptsRecommendation.d.ts +10 -0
  272. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/UserConfiguredPromptsRecommendation.js +42 -0
  273. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/UserConfiguredPromptsRecommendationPayload.d.ts +10 -0
  274. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/UserConfiguredPromptsRecommendationPayload.js +42 -0
  275. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/UserConfiguredPromptsResult.d.ts +12 -0
  276. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/UserConfiguredPromptsResult.js +44 -0
  277. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/Vote.d.ts +13 -0
  278. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/Vote.js +45 -0
  279. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/VoteValue.d.ts +7 -0
  280. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/VoteValue.js +39 -0
  281. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +7 -0
  282. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +7 -0
  283. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +1 -0
  284. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.js +1 -0
  285. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
  286. package/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.js +2 -0
  287. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/getCoverageSnapshot.d.ts +12 -0
  288. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/getCoverageSnapshot.js +69 -0
  289. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  290. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  291. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +1 -0
  292. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.js +1 -0
  293. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/CoveragesForRelatedCauses.d.ts +10 -0
  294. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/CoveragesForRelatedCauses.js +42 -0
  295. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  296. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +2 -0
  297. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientCoverageSnapshot.d.ts +15 -0
  298. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientCoverageSnapshot.js +47 -0
  299. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +2 -0
  300. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +2 -0
  301. package/version.d.ts +1 -1
  302. package/version.js +1 -1
@@ -1,5 +1,6 @@
1
1
  export type { CreatePatientRequest } from "./CreatePatientRequest";
2
2
  export type { CreatePatientWithMrnRequest } from "./CreatePatientWithMrnRequest";
3
+ export type { GetCoverageSnapshotRequest } from "./GetCoverageSnapshotRequest";
3
4
  export type { PatientGetMultiRequest } from "./PatientGetMultiRequest";
4
5
  export type { PatientScanRequest } from "./PatientScanRequest";
5
6
  export type { PatientsSearchRequestPaginated } from "./PatientsSearchRequestPaginated";
@@ -13,4 +13,6 @@ export interface Authorization {
13
13
  quantity?: number;
14
14
  period?: CandidApi.preEncounter.Period;
15
15
  notes?: string;
16
+ /** The NPI of the billing provider for which this authorization applies. */
17
+ billingProviderNpi?: string;
16
18
  }
@@ -0,0 +1,7 @@
1
+ import type * as CandidApi from "../../../../../../../index";
2
+ /**
3
+ * Additional coverages for the patient applicable to related causes such as Auto or Workers Comp
4
+ */
5
+ export interface CoveragesForRelatedCauses {
6
+ coverages: CandidApi.preEncounter.CoverageId[];
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -43,6 +43,7 @@ export interface MutablePatient {
43
43
  contacts: CandidApi.preEncounter.patients.v1.Contact[];
44
44
  generalPractitioners: CandidApi.preEncounter.ExternalProvider[];
45
45
  filingOrder: CandidApi.preEncounter.patients.v1.FilingOrder;
46
+ coveragesForRelatedCauses?: CandidApi.preEncounter.patients.v1.CoveragesForRelatedCauses;
46
47
  nonInsurancePayers?: CandidApi.preEncounter.CanonicalNonInsurancePayerId[];
47
48
  nonInsurancePayerAssociations?: CandidApi.preEncounter.CanonicalNonInsurancePayerAssociation[];
48
49
  guarantor?: CandidApi.preEncounter.patients.v1.Guarantor;
@@ -60,6 +61,6 @@ export interface MutablePatient {
60
61
  originationDetail?: CandidApi.preEncounter.patients.v1.OriginationDetail;
61
62
  /** Metadata for the patient used for patient inference from encounters. */
62
63
  inferredPatientMetadata?: CandidApi.preEncounter.patients.v1.InferredPatientMetadata;
63
- /** ORCON (Originator Controlled) - When set to true, the Candid system will hide this patient from downstream integrations. Defaults to false. */
64
+ /** ORCON (Originator Controlled) - When set to true, the Candid system will hide this patient from downstream integrations. Updates made in the Candid UI will unset this flag. Defaults to false. */
64
65
  orcon?: boolean;
65
66
  }
@@ -0,0 +1,8 @@
1
+ import type * as CandidApi from "../../../../../../../index";
2
+ export interface PatientCoverageSnapshot {
3
+ patient: CandidApi.preEncounter.patients.v1.Patient;
4
+ primaryCoverage?: CandidApi.preEncounter.coverages.v1.Coverage;
5
+ secondaryCoverage?: CandidApi.preEncounter.coverages.v1.Coverage;
6
+ tertiaryCoverage?: CandidApi.preEncounter.coverages.v1.Coverage;
7
+ coveragesForRelatedCauses: CandidApi.preEncounter.coverages.v1.Coverage[];
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,7 @@
1
1
  export * from "./Authorization";
2
2
  export * from "./AuthorizationUnit";
3
3
  export * from "./Contact";
4
+ export * from "./CoveragesForRelatedCauses";
4
5
  export * from "./DoNotInvoiceReason";
5
6
  export * from "./ExternalProvenance";
6
7
  export * from "./FilingOrder";
@@ -11,6 +12,7 @@ export * from "./MutablePatient";
11
12
  export * from "./MutablePatientWithMrn";
12
13
  export * from "./OriginationDetail";
13
14
  export * from "./Patient";
15
+ export * from "./PatientCoverageSnapshot";
14
16
  export * from "./PatientPage";
15
17
  export * from "./PatientSortField";
16
18
  export * from "./Referral";
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Authorization"), exports);
18
18
  __exportStar(require("./AuthorizationUnit"), exports);
19
19
  __exportStar(require("./Contact"), exports);
20
+ __exportStar(require("./CoveragesForRelatedCauses"), exports);
20
21
  __exportStar(require("./DoNotInvoiceReason"), exports);
21
22
  __exportStar(require("./ExternalProvenance"), exports);
22
23
  __exportStar(require("./FilingOrder"), exports);
@@ -27,6 +28,7 @@ __exportStar(require("./MutablePatient"), exports);
27
28
  __exportStar(require("./MutablePatientWithMrn"), exports);
28
29
  __exportStar(require("./OriginationDetail"), exports);
29
30
  __exportStar(require("./Patient"), exports);
31
+ __exportStar(require("./PatientCoverageSnapshot"), exports);
30
32
  __exportStar(require("./PatientPage"), exports);
31
33
  __exportStar(require("./PatientSortField"), exports);
32
34
  __exportStar(require("./Referral"), exports);
@@ -1,5 +1,11 @@
1
1
  import type * as CandidApi from "../../../../../index";
2
2
  export interface ServiceLineEraData {
3
+ /**
4
+ * Deprecated. This field aggregates all CARCs across a service line's history
5
+ * without granular context
6
+ * (e.g., which CARCs relate to denials vs. payments vs. reversals), making it
7
+ * unsuitable for denial analysis or operational workflows.
8
+ */
3
9
  serviceLineAdjustments: CandidApi.serviceLines.v2.ServiceLineAdjustment[];
4
10
  remittanceAdviceRemarkCodes: string[];
5
11
  }
package/dist/Client.js CHANGED
@@ -90,8 +90,8 @@ class CandidApiClient {
90
90
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_1.mergeHeaders)({
91
91
  "X-Fern-Language": "JavaScript",
92
92
  "X-Fern-SDK-Name": "candidhealth",
93
- "X-Fern-SDK-Version": "1.17.4",
94
- "User-Agent": "candidhealth/1.17.4",
93
+ "X-Fern-SDK-Version": "1.18.1",
94
+ "User-Agent": "candidhealth/1.18.1",
95
95
  "X-Fern-Runtime": core.RUNTIME.type,
96
96
  "X-Fern-Runtime-Version": core.RUNTIME.version,
97
97
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -1,5 +1,6 @@
1
1
  export declare const EmrPayerCrosswalk: {
2
2
  readonly Healthie: "HEALTHIE";
3
3
  readonly Canvas: "CANVAS";
4
+ readonly Waystar: "WAYSTAR";
4
5
  };
5
6
  export type EmrPayerCrosswalk = (typeof EmrPayerCrosswalk)[keyof typeof EmrPayerCrosswalk];
@@ -5,4 +5,5 @@ exports.EmrPayerCrosswalk = void 0;
5
5
  exports.EmrPayerCrosswalk = {
6
6
  Healthie: "HEALTHIE",
7
7
  Canvas: "CANVAS",
8
+ Waystar: "WAYSTAR",
8
9
  };
@@ -76,8 +76,8 @@ class V4 {
76
76
  }
77
77
  __getAll() {
78
78
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
79
- var _a, _b, _c, _d, _e, _f, _g, _h;
80
- const { limit, claimStatus, sort, pageToken, dateOfServiceMin, dateOfServiceMax, primaryPayerNames, searchTerm, externalId, diagnosesUpdatedSince, tagIds, workQueueId, billableStatus, responsibleParty, ownerOfNextAction, patientExternalId, } = request;
79
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
80
+ const { limit, claimStatus, sort, pageToken, dateOfServiceMin, dateOfServiceMax, primaryPayerNames, searchTerm, externalId, diagnosesUpdatedSince, tagIds, workQueueId, billableStatus, responsibleParty, ownerOfNextAction, patientExternalId, includeMergedPatientData, } = request;
81
81
  const _queryParams = {};
82
82
  if (limit != null) {
83
83
  _queryParams.limit = limit.toString();
@@ -138,6 +138,9 @@ class V4 {
138
138
  if (patientExternalId != null) {
139
139
  _queryParams.patient_external_id = patientExternalId;
140
140
  }
141
+ if (includeMergedPatientData != null) {
142
+ _queryParams.include_merged_patient_data = includeMergedPatientData.toString();
143
+ }
141
144
  const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
142
145
  const _response = yield core.fetcher({
143
146
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).candidApi, "/api/encounters/v4"),
@@ -164,6 +167,26 @@ class V4 {
164
167
  rawResponse: _response.rawResponse,
165
168
  };
166
169
  }
170
+ if (_response.error.reason === "status-code") {
171
+ switch ((_j = _response.error.body) === null || _j === void 0 ? void 0 : _j.errorName) {
172
+ case "UnprocessableEntityError":
173
+ case "HttpRequestValidationsError":
174
+ case "InternalError":
175
+ return {
176
+ data: {
177
+ ok: false,
178
+ error: serializers.encounters.v4.getAll.Error.parseOrThrow(_response.error.body, {
179
+ unrecognizedObjectKeys: "passthrough",
180
+ allowUnrecognizedUnionMembers: true,
181
+ allowUnrecognizedEnumValues: true,
182
+ breadcrumbsPrefix: ["response"],
183
+ }),
184
+ rawResponse: _response.rawResponse,
185
+ },
186
+ rawResponse: _response.rawResponse,
187
+ };
188
+ }
189
+ }
167
190
  return {
168
191
  data: {
169
192
  ok: false,
@@ -1,7 +1,19 @@
1
1
  import type * as core from "../../../../../../core";
2
2
  import * as CandidApi from "../../../../../index";
3
- export type Error = CandidApi.encounters.v4.getAll.Error._Unknown;
3
+ export type Error = CandidApi.encounters.v4.getAll.Error.UnprocessableEntityError | CandidApi.encounters.v4.getAll.Error.HttpRequestValidationsError | CandidApi.encounters.v4.getAll.Error.InternalError | CandidApi.encounters.v4.getAll.Error._Unknown;
4
4
  export declare namespace Error {
5
+ interface UnprocessableEntityError extends _Utils {
6
+ errorName: "UnprocessableEntityError";
7
+ content: CandidApi.UnprocessableEntityErrorMessage;
8
+ }
9
+ interface HttpRequestValidationsError extends _Utils {
10
+ errorName: "HttpRequestValidationsError";
11
+ content: CandidApi.RequestValidationError[];
12
+ }
13
+ interface InternalError extends _Utils {
14
+ errorName: "InternalError";
15
+ content: CandidApi.InternalErrorMessage;
16
+ }
5
17
  interface _Unknown extends _Utils {
6
18
  errorName: void;
7
19
  content: core.Fetcher.Error;
@@ -10,10 +22,16 @@ export declare namespace Error {
10
22
  _visit: <_Result>(visitor: CandidApi.encounters.v4.getAll.Error._Visitor<_Result>) => _Result;
11
23
  }
12
24
  interface _Visitor<_Result> {
25
+ unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
26
+ httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
27
+ internalError: (value: CandidApi.InternalErrorMessage) => _Result;
13
28
  _other: (value: core.Fetcher.Error) => _Result;
14
29
  }
15
30
  }
16
31
  export declare const Error: {
32
+ readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.encounters.v4.getAll.Error.UnprocessableEntityError;
33
+ readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.encounters.v4.getAll.Error.HttpRequestValidationsError;
34
+ readonly internalError: (value: CandidApi.InternalErrorMessage) => CandidApi.encounters.v4.getAll.Error.InternalError;
17
35
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounters.v4.getAll.Error._Unknown;
18
36
  readonly _visit: <_Result>(value: CandidApi.encounters.v4.getAll.Error, visitor: CandidApi.encounters.v4.getAll.Error._Visitor<_Result>) => _Result;
19
37
  };
@@ -37,6 +37,33 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.Error = void 0;
38
38
  const CandidApi = __importStar(require("../../../../../index"));
39
39
  exports.Error = {
40
+ unprocessableEntityError: (value) => {
41
+ return {
42
+ content: value,
43
+ errorName: "UnprocessableEntityError",
44
+ _visit: function (visitor) {
45
+ return CandidApi.encounters.v4.getAll.Error._visit(this, visitor);
46
+ },
47
+ };
48
+ },
49
+ httpRequestValidationsError: (value) => {
50
+ return {
51
+ content: value,
52
+ errorName: "HttpRequestValidationsError",
53
+ _visit: function (visitor) {
54
+ return CandidApi.encounters.v4.getAll.Error._visit(this, visitor);
55
+ },
56
+ };
57
+ },
58
+ internalError: (value) => {
59
+ return {
60
+ content: value,
61
+ errorName: "InternalError",
62
+ _visit: function (visitor) {
63
+ return CandidApi.encounters.v4.getAll.Error._visit(this, visitor);
64
+ },
65
+ };
66
+ },
40
67
  _unknown: (fetcherError) => {
41
68
  return {
42
69
  errorName: undefined,
@@ -48,6 +75,12 @@ exports.Error = {
48
75
  },
49
76
  _visit: (value, visitor) => {
50
77
  switch (value.errorName) {
78
+ case "UnprocessableEntityError":
79
+ return visitor.unprocessableEntityError(value.content);
80
+ case "HttpRequestValidationsError":
81
+ return visitor.httpRequestValidationsError(value.content);
82
+ case "InternalError":
83
+ return visitor.internalError(value.content);
51
84
  default:
52
85
  return visitor._other(value);
53
86
  }
@@ -49,4 +49,6 @@ export interface GetAllEncountersRequest {
49
49
  ownerOfNextAction?: CandidApi.encounters.v4.EncounterOwnerOfNextActionType;
50
50
  /** The patient ID from the external EMR platform for the patient */
51
51
  patientExternalId?: string;
52
+ /** If true and patient_external_id is set, then also include the encounters of all alternative patients. */
53
+ includeMergedPatientData?: boolean;
52
54
  }
@@ -470,6 +470,10 @@ export interface Encounter extends CandidApi.encounters.v4.EncounterBase {
470
470
  /** 837i NM1 2500 variant for Loop ID-2310. Used to indicate the individual whom has secondary responsibility for surgical procedures in institutional claims processing. Only used when operating_provider is also set. */
471
471
  otherOperatingProvider?: CandidApi.encounterProviders.v2.EncounterProvider;
472
472
  relatedCausesInformation?: CandidApi.relatedCausesInformation.v1.RelatedCausesInformation;
473
+ /** 837p Loop2010 REF02, CMS1500 Box 11b */
474
+ propertyCasualtyClaimNumber?: string;
475
+ /** 837p Loop2300 DTP*439, CMS1500 Box 15 */
476
+ accidentDate?: string;
473
477
  /** Describes the currently expected target form for this encounter. This effects what validations and queues the form is processed under. When this value is not set, it should be assumed to be TARGET_PROFESSIONAL. */
474
478
  submissionExpectation?: CandidApi.encounters.v4.EncounterSubmissionExpectation;
475
479
  /** Four digit code used in institutional forms to indicate the type of bill (e.g., hospital inpatient, hospital outpatient). First digit is a leading 0, followed by the type_of_facility, type_of_care, then frequency_code. Professional forms are not required to submit this attribute. You may send the 4 digit code via raw_code, or each individual digit separately via composite_codes. */
@@ -81,4 +81,8 @@ export interface EncounterDeepOptional extends CandidApi.encounters.v4.Encounter
81
81
  payToAddress?: CandidApi.StreetAddressShortZipOptional;
82
82
  /** Corresponds to box 10a on the CMS-1500 (Loop 2300 on 837) */
83
83
  relatedCausesInformation?: CandidApi.relatedCausesInformation.v1.RelatedCausesInformationCreate;
84
+ /** 837p Loop2010 REF02, CMS1500 Box 11b */
85
+ propertyCasualtyClaimNumber?: string;
86
+ /** 837p Loop2300 DTP*439, CMS1500 Box 15 */
87
+ accidentDate?: string;
84
88
  }
@@ -65,4 +65,8 @@ export interface UniversalEncounterCreateBase extends CandidApi.encounters.v4.En
65
65
  secondaryPayerCarrierCode?: string;
66
66
  /** Corresponds to box 10a on the CMS-1500 (Loop 2300 on 837) */
67
67
  relatedCausesInformation?: CandidApi.relatedCausesInformation.v1.RelatedCausesInformationCreate;
68
+ /** 837p Loop2010 REF02, CMS1500 Box 11b */
69
+ propertyCasualtyClaimNumber?: string;
70
+ /** 837p Loop2300 DTP*439, CMS1500 Box 15 */
71
+ accidentDate?: string;
68
72
  }
@@ -36,4 +36,8 @@ export interface UniversalEncounterCreateFromPreEncounterBase extends CandidApi.
36
36
  schemaInstances?: CandidApi.customSchemas.v1.SchemaInstance[];
37
37
  /** Corresponds to box 10a on the CMS-1500 (Loop 2300 on 837) */
38
38
  relatedCausesInformation?: CandidApi.relatedCausesInformation.v1.RelatedCausesInformationCreate;
39
+ /** 837p Loop2010 REF02, CMS1500 Box 11b */
40
+ propertyCasualtyClaimNumber?: string;
41
+ /** 837p Loop2300 DTP*439, CMS1500 Box 15 */
42
+ accidentDate?: string;
39
43
  }
@@ -57,4 +57,8 @@ export interface UniversalEncounterUpdateBase extends CandidApi.encounters.v4.En
57
57
  placeOfServiceCodeAsSubmitted?: CandidApi.FacilityTypeCode;
58
58
  /** Corresponds to box 10a on the CMS-1500 (Loop 2300 on 837) */
59
59
  relatedCausesInformation?: CandidApi.relatedCausesInformation.v1.RelatedCausesInformationUpdate;
60
+ /** 837p Loop2010 REF02, CMS1500 Box 11b */
61
+ propertyCasualtyClaimNumber?: string;
62
+ /** 837p Loop2300 DTP*439, CMS1500 Box 15 */
63
+ accidentDate?: string;
60
64
  }
@@ -8,4 +8,8 @@ export interface BalanceEarmark {
8
8
  id: string;
9
9
  /** The target for this earmark (date of service or external encounter ID) */
10
10
  target: CandidApi.AllocationEarmarkType;
11
+ /** The amount earmarked in cents for future allocation */
12
+ amountEarmarkedCents?: number;
13
+ /** The ID of the allocation that created this earmark */
14
+ createdByAllocationId?: string;
11
15
  }
@@ -1,4 +1,3 @@
1
- /** An enumeration. */
2
1
  export declare const OccurrenceCode: {
3
2
  /**
4
3
  * Accident/Medical Coverage Code indicating accident-related injury for which there is medical payment coverage. Provide the date of accident/injury. */
@@ -2,7 +2,6 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.OccurrenceCode = void 0;
5
- /** An enumeration. */
6
5
  exports.OccurrenceCode = {
7
6
  /**
8
7
  * Accident/Medical Coverage Code indicating accident-related injury for which there is medical payment coverage. Provide the date of accident/injury. */
@@ -1,4 +1,3 @@
1
- /** An enumeration. */
2
1
  export declare const OccurrenceSpanCode: {
3
2
  /**
4
3
  * QUALIFYING STAY DATES FOR SNF USE ONLY */
@@ -2,7 +2,6 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.OccurrenceSpanCode = void 0;
5
- /** An enumeration. */
6
5
  exports.OccurrenceSpanCode = {
7
6
  /**
8
7
  * QUALIFYING STAY DATES FOR SNF USE ONLY */
@@ -10,4 +10,5 @@ export interface Payer {
10
10
  alternatePayerNames: string[];
11
11
  clearinghousePayerInfo: Record<CandidApi.Clearinghouse, CandidApi.payers.v4.ClearinghousePayerInfo | undefined>;
12
12
  streetAddress?: CandidApi.StreetAddressLongZip;
13
+ alternatePayerAddresses: CandidApi.StreetAddressLongZip[];
13
14
  }
@@ -30,6 +30,17 @@ export declare class V1 {
30
30
  /**
31
31
  * Gets all Visits within a given time range. The return list is ordered by start_time ascending.
32
32
  *
33
+ * **IMPORTANT:** This endpoint requires a date filter on `appointment.startTimestamp` to ensure acceptable query performance.
34
+ * Without date filtering, the query can take 50+ seconds on large datasets due to grouping and aggregation operations.
35
+ *
36
+ * Example filters:
37
+ * - `appointment.startTimestamp|gt|2024-01-01` - appointments after January 1, 2024
38
+ * - `appointment.startTimestamp|eq|2024-12-08` - appointments on December 8, 2024
39
+ * - `appointment.startTimestamp|lt|2024-12-31` - appointments before December 31, 2024
40
+ *
41
+ * You can combine the date filter with other filters using commas:
42
+ * - `appointment.startTimestamp|gt|2024-01-01,appointment.status|eq|PENDING`
43
+ *
33
44
  * @param {CandidApi.preEncounter.appointments.v1.VisitsRequest} request
34
45
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
35
46
  *
@@ -136,6 +136,17 @@ class V1 {
136
136
  /**
137
137
  * Gets all Visits within a given time range. The return list is ordered by start_time ascending.
138
138
  *
139
+ * **IMPORTANT:** This endpoint requires a date filter on `appointment.startTimestamp` to ensure acceptable query performance.
140
+ * Without date filtering, the query can take 50+ seconds on large datasets due to grouping and aggregation operations.
141
+ *
142
+ * Example filters:
143
+ * - `appointment.startTimestamp|gt|2024-01-01` - appointments after January 1, 2024
144
+ * - `appointment.startTimestamp|eq|2024-12-08` - appointments on December 8, 2024
145
+ * - `appointment.startTimestamp|lt|2024-12-31` - appointments before December 31, 2024
146
+ *
147
+ * You can combine the date filter with other filters using commas:
148
+ * - `appointment.startTimestamp|gt|2024-01-01,appointment.status|eq|PENDING`
149
+ *
139
150
  * @param {CandidApi.preEncounter.appointments.v1.VisitsRequest} request
140
151
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
141
152
  *
@@ -10,5 +10,9 @@ export interface VisitsRequest {
10
10
  sortField?: CandidApi.preEncounter.lists.v1.SortFieldString;
11
11
  /** Defaults to ascending. */
12
12
  sortDirection?: CandidApi.preEncounter.SortDirection;
13
+ /**
14
+ * **Required:** Must include a date filter on appointment.startTimestamp (using gt, lt, or eq operators).
15
+ * Example: appointment.startTimestamp|gt|2024-01-01
16
+ */
13
17
  filters?: CandidApi.preEncounter.FilterQueryString;
14
18
  }
@@ -8,4 +8,5 @@ export interface Visit {
8
8
  startTime: Date;
9
9
  status: CandidApi.preEncounter.appointments.v1.AppointmentStatus;
10
10
  primaryCoverageStatus?: CandidApi.preEncounter.coverages.v1.CoverageStatus;
11
+ secondaryCoverageStatus?: CandidApi.preEncounter.coverages.v1.CoverageStatus;
11
12
  }
@@ -94,15 +94,17 @@ export declare class V1 {
94
94
  get(id: CandidApi.preEncounter.CoverageId, requestOptions?: V1.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.preEncounter.coverages.v1.Coverage, CandidApi.preEncounter.coverages.v1.get.Error>>;
95
95
  private __get;
96
96
  /**
97
- * Gets a coverage along with it's full history. The return list is ordered by version ascending.
97
+ * Gets a coverage's history. Full history is returned if no filters are
98
+ * defined. The return list is ordered by version, defaulting to ascending.
98
99
  *
99
100
  * @param {CandidApi.preEncounter.CoverageId} id
101
+ * @param {CandidApi.preEncounter.coverages.v1.CoveragesGetHistoryRequest} request
100
102
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
101
103
  *
102
104
  * @example
103
105
  * await client.preEncounter.coverages.v1.getHistory(CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
104
106
  */
105
- getHistory(id: CandidApi.preEncounter.CoverageId, requestOptions?: V1.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.preEncounter.coverages.v1.Coverage[], CandidApi.preEncounter.coverages.v1.getHistory.Error>>;
107
+ getHistory(id: CandidApi.preEncounter.CoverageId, request?: CandidApi.preEncounter.coverages.v1.CoveragesGetHistoryRequest, requestOptions?: V1.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.preEncounter.coverages.v1.Coverage[], CandidApi.preEncounter.coverages.v1.getHistory.Error>>;
106
108
  private __getHistory;
107
109
  /**
108
110
  * Returns a list of Coverages based on the search criteria.
@@ -358,26 +358,47 @@ class V1 {
358
358
  });
359
359
  }
360
360
  /**
361
- * Gets a coverage along with it's full history. The return list is ordered by version ascending.
361
+ * Gets a coverage's history. Full history is returned if no filters are
362
+ * defined. The return list is ordered by version, defaulting to ascending.
362
363
  *
363
364
  * @param {CandidApi.preEncounter.CoverageId} id
365
+ * @param {CandidApi.preEncounter.coverages.v1.CoveragesGetHistoryRequest} request
364
366
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
365
367
  *
366
368
  * @example
367
369
  * await client.preEncounter.coverages.v1.getHistory(CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
368
370
  */
369
- getHistory(id, requestOptions) {
370
- return core.HttpResponsePromise.fromPromise(this.__getHistory(id, requestOptions));
371
+ getHistory(id, request = {}, requestOptions) {
372
+ return core.HttpResponsePromise.fromPromise(this.__getHistory(id, request, requestOptions));
371
373
  }
372
- __getHistory(id, requestOptions) {
373
- return __awaiter(this, void 0, void 0, function* () {
374
+ __getHistory(id_1) {
375
+ return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
374
376
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
377
+ const { start, end, nonAutoUpdatedCoveragesOnly, sortDirection, limit } = request;
378
+ const _queryParams = {};
379
+ if (start != null) {
380
+ _queryParams.start = start;
381
+ }
382
+ if (end != null) {
383
+ _queryParams.end = end;
384
+ }
385
+ if (nonAutoUpdatedCoveragesOnly != null) {
386
+ _queryParams.non_auto_updated_coverages_only = nonAutoUpdatedCoveragesOnly.toString();
387
+ }
388
+ if (sortDirection != null) {
389
+ _queryParams.sort_direction = serializers.preEncounter.SortDirection.jsonOrThrow(sortDirection, {
390
+ unrecognizedObjectKeys: "strip",
391
+ });
392
+ }
393
+ if (limit != null) {
394
+ _queryParams.limit = limit.toString();
395
+ }
375
396
  const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
376
397
  const _response = yield core.fetcher({
377
398
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${core.url.encodePathParam(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/history`),
378
399
  method: "GET",
379
400
  headers: _headers,
380
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
401
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
381
402
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
382
403
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
383
404
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -400,6 +421,7 @@ class V1 {
400
421
  }
401
422
  if (_response.error.reason === "status-code") {
402
423
  switch ((_j = _response.error.body) === null || _j === void 0 ? void 0 : _j.errorName) {
424
+ case "BadRequestError":
403
425
  case "NotFoundError":
404
426
  return {
405
427
  data: {
@@ -1,7 +1,11 @@
1
1
  import type * as core from "../../../../../../../../core";
2
2
  import * as CandidApi from "../../../../../../../index";
3
- export type Error = CandidApi.preEncounter.coverages.v1.getHistory.Error.NotFoundError | CandidApi.preEncounter.coverages.v1.getHistory.Error._Unknown;
3
+ export type Error = CandidApi.preEncounter.coverages.v1.getHistory.Error.BadRequestError | CandidApi.preEncounter.coverages.v1.getHistory.Error.NotFoundError | CandidApi.preEncounter.coverages.v1.getHistory.Error._Unknown;
4
4
  export declare namespace Error {
5
+ interface BadRequestError extends _Utils {
6
+ errorName: "BadRequestError";
7
+ content: CandidApi.preEncounter.ErrorBase4Xx;
8
+ }
5
9
  interface NotFoundError extends _Utils {
6
10
  errorName: "NotFoundError";
7
11
  content: CandidApi.preEncounter.ErrorBase4Xx;
@@ -14,11 +18,13 @@ export declare namespace Error {
14
18
  _visit: <_Result>(visitor: CandidApi.preEncounter.coverages.v1.getHistory.Error._Visitor<_Result>) => _Result;
15
19
  }
16
20
  interface _Visitor<_Result> {
21
+ badRequestError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
17
22
  notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
18
23
  _other: (value: core.Fetcher.Error) => _Result;
19
24
  }
20
25
  }
21
26
  export declare const Error: {
27
+ readonly badRequestError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.coverages.v1.getHistory.Error.BadRequestError;
22
28
  readonly notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.coverages.v1.getHistory.Error.NotFoundError;
23
29
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.coverages.v1.getHistory.Error._Unknown;
24
30
  readonly _visit: <_Result>(value: CandidApi.preEncounter.coverages.v1.getHistory.Error, visitor: CandidApi.preEncounter.coverages.v1.getHistory.Error._Visitor<_Result>) => _Result;
@@ -37,6 +37,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.Error = void 0;
38
38
  const CandidApi = __importStar(require("../../../../../../../index"));
39
39
  exports.Error = {
40
+ badRequestError: (value) => {
41
+ return {
42
+ content: value,
43
+ errorName: "BadRequestError",
44
+ _visit: function (visitor) {
45
+ return CandidApi.preEncounter.coverages.v1.getHistory.Error._visit(this, visitor);
46
+ },
47
+ };
48
+ },
40
49
  notFoundError: (value) => {
41
50
  return {
42
51
  content: value,
@@ -57,6 +66,8 @@ exports.Error = {
57
66
  },
58
67
  _visit: (value, visitor) => {
59
68
  switch (value.errorName) {
69
+ case "BadRequestError":
70
+ return visitor.badRequestError(value.content);
60
71
  case "NotFoundError":
61
72
  return visitor.notFoundError(value.content);
62
73
  default:
@@ -0,0 +1,15 @@
1
+ import type * as CandidApi from "../../../../../../../../index";
2
+ /**
3
+ * @example
4
+ * {}
5
+ */
6
+ export interface CoveragesGetHistoryRequest {
7
+ start?: string;
8
+ end?: string;
9
+ /** If true, only returns coverages that have NOT been auto-updated by the system. */
10
+ nonAutoUpdatedCoveragesOnly?: boolean;
11
+ /** Defaults to ascending. Sorts by version. */
12
+ sortDirection?: CandidApi.preEncounter.SortDirection;
13
+ /** Must be between 0 and 1000. No default. */
14
+ limit?: number;
15
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,3 +2,4 @@ export type { CheckEligibilityRequest } from "./CheckEligibilityRequest";
2
2
  export type { CoverageGetMultiPaginatedRequest } from "./CoverageGetMultiPaginatedRequest";
3
3
  export type { CoverageGetMultiRequest } from "./CoverageGetMultiRequest";
4
4
  export type { CoverageScanRequest } from "./CoverageScanRequest";
5
+ export type { CoveragesGetHistoryRequest } from "./CoveragesGetHistoryRequest";
@@ -4,4 +4,5 @@ export interface CoverageBenefits {
4
4
  serviceSpecificCoverage?: CandidApi.preEncounter.coverages.v1.ServiceCoverage[];
5
5
  benefitsRelatedEntities?: CandidApi.preEncounter.coverages.v1.BenefitsRelatedEntity[];
6
6
  notes?: string;
7
+ autoUpdatedEligibilityCheckId?: string;
7
8
  }
@@ -17,6 +17,8 @@ export interface MutableCoverage {
17
17
  latestEligibilityCheck?: CandidApi.preEncounter.coverages.v1.LatestEligibilityCheck;
18
18
  /** The eligibility of the patient for the coverage, manually verified by users. */
19
19
  benefits?: CandidApi.preEncounter.coverages.v1.CoverageBenefits;
20
- /** ORCON (Originator Controlled) - When set to true, the Candid system will hide this coverage from downstream integrations. Defaults to false. */
20
+ /** ORCON (Originator Controlled) - When set to true, the Candid system will hide this coverage from downstream integrations. Updates made in the Candid UI will unset this flag. Defaults to false. */
21
21
  orcon?: boolean;
22
+ /** Default to true. When set to true, the Candid system will automatically update this coverage with the latest eligibility check benefits information. Auto update behavior is also set at the eligibilityConfig org level configuration. */
23
+ autoUpdateEnabled?: boolean;
22
24
  }