candidhealth 0.0.0 → 0.17.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 (703) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/auth/client.rb +9 -11
  3. data/lib/candidhealth/auth/v_2/client.rb +90 -0
  4. data/lib/candidhealth/auth/v_2/types/auth_get_token_request.rb +54 -0
  5. data/lib/candidhealth/auth/v_2/types/auth_get_token_response.rb +59 -0
  6. data/lib/candidhealth/auth/v_2/types/too_many_requests_error_type.rb +49 -0
  7. data/lib/candidhealth/billing_notes/client.rb +6 -8
  8. data/lib/candidhealth/billing_notes/v_2/client.rb +21 -133
  9. data/lib/candidhealth/billing_notes/v_2/types/billing_note.rb +72 -95
  10. data/lib/candidhealth/billing_notes/v_2/types/billing_note_base.rb +33 -44
  11. data/lib/candidhealth/billing_notes/v_2/types/billing_note_id.rb +9 -0
  12. data/lib/candidhealth/claim_submission/v_1/types/claim_frequency_type_code.rb +5 -6
  13. data/lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create.rb +49 -81
  14. data/lib/candidhealth/claim_submission/v_1/types/external_claim_submission_create.rb +56 -78
  15. data/lib/candidhealth/claims/types/claim.rb +80 -114
  16. data/lib/candidhealth/claims/types/claim_status.rb +17 -19
  17. data/lib/candidhealth/commons/types/claim_adjustment_group_codes.rb +11 -14
  18. data/lib/candidhealth/commons/types/claim_id.rb +7 -0
  19. data/lib/candidhealth/commons/types/claim_submission_payer_responsibility_type.rb +4 -6
  20. data/lib/candidhealth/commons/types/date.rb +7 -0
  21. data/lib/candidhealth/commons/types/date_range_optional_end.rb +40 -57
  22. data/lib/candidhealth/commons/types/decimal.rb +7 -0
  23. data/lib/candidhealth/commons/types/delay_reason_code.rb +17 -19
  24. data/lib/candidhealth/commons/types/email.rb +7 -0
  25. data/lib/candidhealth/commons/types/emr_payer_crosswalk.rb +4 -6
  26. data/lib/candidhealth/commons/types/encounter_external_id.rb +7 -0
  27. data/lib/candidhealth/commons/types/encounter_id.rb +7 -0
  28. data/lib/candidhealth/commons/types/entity_not_found_error_message.rb +34 -45
  29. data/lib/candidhealth/commons/types/error_message.rb +7 -0
  30. data/lib/candidhealth/commons/types/facility_type_code.rb +55 -58
  31. data/lib/candidhealth/commons/types/http_service_unavailable_error_message.rb +34 -47
  32. data/lib/candidhealth/commons/types/insurance_type_code.rb +73 -76
  33. data/lib/candidhealth/commons/types/invoice_id.rb +7 -0
  34. data/lib/candidhealth/commons/types/link_url.rb +7 -0
  35. data/lib/candidhealth/commons/types/npi.rb +7 -0
  36. data/lib/candidhealth/commons/types/organization_id.rb +7 -0
  37. data/lib/candidhealth/commons/types/organization_not_authorized_error_message.rb +34 -46
  38. data/lib/candidhealth/commons/types/page_token.rb +7 -0
  39. data/lib/candidhealth/commons/types/patient_external_id.rb +7 -0
  40. data/lib/candidhealth/commons/types/patient_relationship_to_insured_code_all.rb +26 -28
  41. data/lib/candidhealth/commons/types/phone_number.rb +39 -55
  42. data/lib/candidhealth/commons/types/phone_number_type.rb +5 -7
  43. data/lib/candidhealth/commons/types/procedure_modifier.rb +389 -403
  44. data/lib/candidhealth/commons/types/provider_id.rb +7 -0
  45. data/lib/candidhealth/commons/types/region_national.rb +29 -39
  46. data/lib/candidhealth/commons/types/region_states.rb +34 -45
  47. data/lib/candidhealth/commons/types/regions.rb +72 -78
  48. data/lib/candidhealth/commons/types/removable_date_range_optional_end.rb +71 -77
  49. data/lib/candidhealth/commons/types/request_validation_error.rb +39 -57
  50. data/lib/candidhealth/commons/types/resource_page.rb +40 -57
  51. data/lib/candidhealth/commons/types/service_line_id.rb +7 -0
  52. data/lib/candidhealth/commons/types/service_line_units.rb +4 -6
  53. data/lib/candidhealth/commons/types/sort_direction.rb +4 -6
  54. data/lib/candidhealth/commons/types/source_of_payment_code.rb +25 -28
  55. data/lib/candidhealth/commons/types/state.rb +64 -66
  56. data/lib/candidhealth/commons/types/street_address_base.rb +61 -84
  57. data/lib/candidhealth/commons/types/street_address_long_zip.rb +68 -93
  58. data/lib/candidhealth/commons/types/street_address_short_zip.rb +68 -93
  59. data/lib/candidhealth/commons/types/task_assignment_id.rb +7 -0
  60. data/lib/candidhealth/commons/types/task_id.rb +7 -0
  61. data/lib/candidhealth/commons/types/task_note_id.rb +7 -0
  62. data/lib/candidhealth/commons/types/tax_id.rb +7 -0
  63. data/lib/candidhealth/commons/types/unauthorized_error_message.rb +34 -47
  64. data/lib/candidhealth/commons/types/unprocessable_entity_error_message.rb +34 -47
  65. data/lib/candidhealth/commons/types/updates_disabled_due_to_external_system_integration_error_message.rb +34 -49
  66. data/lib/candidhealth/commons/types/user_id.rb +7 -0
  67. data/lib/candidhealth/commons/types/work_queue_id.rb +7 -0
  68. data/lib/candidhealth/contracts/client.rb +6 -8
  69. data/lib/candidhealth/contracts/v_2/client.rb +131 -239
  70. data/lib/candidhealth/contracts/v_2/types/authorized_signatory.rb +67 -92
  71. data/lib/candidhealth/contracts/v_2/types/authorized_signatory_update.rb +70 -76
  72. data/lib/candidhealth/contracts/v_2/types/contract.rb +141 -178
  73. data/lib/candidhealth/contracts/v_2/types/contract_base.rb +106 -134
  74. data/lib/candidhealth/contracts/v_2/types/contract_id.rb +9 -0
  75. data/lib/candidhealth/contracts/v_2/types/contract_is_linked_to_fee_schedule_error.rb +33 -44
  76. data/lib/candidhealth/contracts/v_2/types/contract_status.rb +4 -6
  77. data/lib/candidhealth/contracts/v_2/types/contract_with_providers.rb +152 -191
  78. data/lib/candidhealth/contracts/v_2/types/contracting_provider_id.rb +9 -0
  79. data/lib/candidhealth/contracts/v_2/types/contracts_page.rb +47 -70
  80. data/lib/candidhealth/contracts/v_2/types/date_update.rb +71 -76
  81. data/lib/candidhealth/contracts/v_2/types/insurance_types.rb +80 -86
  82. data/lib/candidhealth/contracts/v_2/types/regions_update.rb +70 -76
  83. data/lib/candidhealth/contracts/v_2/types/rendering_providerid.rb +9 -0
  84. data/lib/candidhealth/diagnoses/types/diagnosis.rb +91 -145
  85. data/lib/candidhealth/diagnoses/types/diagnosis_create.rb +58 -111
  86. data/lib/candidhealth/diagnoses/types/diagnosis_id.rb +7 -0
  87. data/lib/candidhealth/diagnoses/types/diagnosis_type_code.rb +12 -14
  88. data/lib/candidhealth/diagnoses/types/standalone_diagnosis_create.rb +64 -120
  89. data/lib/candidhealth/eligibility/client.rb +6 -8
  90. data/lib/candidhealth/eligibility/v_2/client.rb +70 -272
  91. data/lib/candidhealth/encounter_providers/v_2/types/billing_provider.rb +86 -139
  92. data/lib/candidhealth/encounter_providers/v_2/types/encounter_provider.rb +85 -141
  93. data/lib/candidhealth/encounter_providers/v_2/types/encounter_provider_base.rb +44 -73
  94. data/lib/candidhealth/encounter_providers/v_2/types/provider_id.rb +9 -0
  95. data/lib/candidhealth/encounter_providers/v_2/types/referring_provider.rb +73 -105
  96. data/lib/candidhealth/encounter_providers/v_2/types/rendering_provider.rb +73 -105
  97. data/lib/candidhealth/encounters/client.rb +6 -8
  98. data/lib/candidhealth/encounters/v_4/client.rb +502 -1828
  99. data/lib/candidhealth/encounters/v_4/types/billable_status_type.rb +3 -5
  100. data/lib/candidhealth/encounters/v_4/types/cash_pay_payer_error_message.rb +33 -44
  101. data/lib/candidhealth/encounters/v_4/types/clinical_note.rb +50 -76
  102. data/lib/candidhealth/encounters/v_4/types/clinical_note_category.rb +45 -70
  103. data/lib/candidhealth/encounters/v_4/types/clinical_note_category_create.rb +40 -57
  104. data/lib/candidhealth/encounters/v_4/types/coding_attribution_type.rb +5 -7
  105. data/lib/candidhealth/encounters/v_4/types/encounter.rb +472 -849
  106. data/lib/candidhealth/encounters/v_4/types/encounter_base.rb +248 -334
  107. data/lib/candidhealth/encounters/v_4/types/encounter_external_id_uniqueness_error_type.rb +34 -47
  108. data/lib/candidhealth/encounters/v_4/types/encounter_guarantor_missing_contact_info_error_type.rb +33 -46
  109. data/lib/candidhealth/encounters/v_4/types/encounter_owner_of_next_action_type.rb +5 -7
  110. data/lib/candidhealth/encounters/v_4/types/encounter_page.rb +47 -70
  111. data/lib/candidhealth/encounters/v_4/types/encounter_patient_control_number_uniqueness_error_type.rb +33 -46
  112. data/lib/candidhealth/encounters/v_4/types/encounter_sort_options.rb +5 -7
  113. data/lib/candidhealth/encounters/v_4/types/encounter_submission_origin_type.rb +3 -5
  114. data/lib/candidhealth/encounters/v_4/types/intake_follow_up.rb +44 -63
  115. data/lib/candidhealth/encounters/v_4/types/intake_follow_up_id.rb +9 -0
  116. data/lib/candidhealth/encounters/v_4/types/intake_question.rb +46 -66
  117. data/lib/candidhealth/encounters/v_4/types/intake_question_id.rb +9 -0
  118. data/lib/candidhealth/encounters/v_4/types/intake_response_and_follow_ups.rb +40 -59
  119. data/lib/candidhealth/encounters/v_4/types/intervention.rb +66 -92
  120. data/lib/candidhealth/encounters/v_4/types/intervention_category.rb +5 -7
  121. data/lib/candidhealth/encounters/v_4/types/lab.rb +43 -63
  122. data/lib/candidhealth/encounters/v_4/types/lab_code_type.rb +3 -5
  123. data/lib/candidhealth/encounters/v_4/types/medication.rb +68 -92
  124. data/lib/candidhealth/encounters/v_4/types/note_category.rb +15 -17
  125. data/lib/candidhealth/encounters/v_4/types/patient_history_category.rb +40 -57
  126. data/lib/candidhealth/encounters/v_4/types/patient_history_category_enum.rb +5 -7
  127. data/lib/candidhealth/encounters/v_4/types/prior_authorization_number.rb +9 -0
  128. data/lib/candidhealth/encounters/v_4/types/responsible_party_type.rb +4 -6
  129. data/lib/candidhealth/encounters/v_4/types/rx_cui.rb +9 -0
  130. data/lib/candidhealth/encounters/v_4/types/service_authorization_exception_code.rb +10 -14
  131. data/lib/candidhealth/encounters/v_4/types/synchronicity_type.rb +3 -5
  132. data/lib/candidhealth/encounters/v_4/types/vitals.rb +62 -100
  133. data/lib/candidhealth/era/types/era.rb +46 -62
  134. data/lib/candidhealth/era/types/era_base.rb +40 -55
  135. data/lib/candidhealth/era/types/era_id.rb +7 -0
  136. data/lib/candidhealth/era/types/era_not_fully_processed_error_message.rb +40 -55
  137. data/lib/candidhealth/era_commons/types/claim_status_code_create.rb +12 -14
  138. data/lib/candidhealth/expected_network_status/client.rb +10 -16
  139. data/lib/candidhealth/expected_network_status/v_1/client.rb +29 -70
  140. data/lib/candidhealth/expected_network_status/v_1/types/expected_network_status.rb +4 -6
  141. data/lib/candidhealth/expected_network_status/v_1/types/expected_network_status_response.rb +49 -69
  142. data/lib/candidhealth/expected_network_status/v_2/client.rb +69 -108
  143. data/lib/candidhealth/expected_network_status/v_2/types/compute_all_in_network_providers_request.rb +96 -129
  144. data/lib/candidhealth/expected_network_status/v_2/types/compute_all_in_network_providers_response.rb +47 -62
  145. data/lib/candidhealth/expected_network_status/v_2/types/compute_all_in_network_rendering_providers_result.rb +82 -89
  146. data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_check_error_message.rb +33 -45
  147. data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_request_v_2.rb +96 -129
  148. data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_response_v_2.rb +44 -59
  149. data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_subscriber_information.rb +49 -68
  150. data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_v_2.rb +82 -88
  151. data/lib/candidhealth/expected_network_status/v_2/types/explanation.rb +9 -11
  152. data/lib/candidhealth/expected_network_status/v_2/types/in_network_rendering_providers_detail.rb +51 -66
  153. data/lib/candidhealth/expected_network_status/v_2/types/in_network_status.rb +41 -57
  154. data/lib/candidhealth/expected_network_status/v_2/types/indeterminate_network_status.rb +57 -76
  155. data/lib/candidhealth/expected_network_status/v_2/types/insurance_type.rb +43 -59
  156. data/lib/candidhealth/expected_network_status/v_2/types/insurance_type_codes.rb +80 -89
  157. data/lib/candidhealth/expected_network_status/v_2/types/line_of_business.rb +4 -6
  158. data/lib/candidhealth/expected_network_status/v_2/types/network_status_check_id.rb +9 -0
  159. data/lib/candidhealth/expected_network_status/v_2/types/out_of_network_status.rb +50 -65
  160. data/lib/candidhealth/expected_network_status/v_2/types/service_type.rb +42 -44
  161. data/lib/candidhealth/exports/client.rb +6 -8
  162. data/lib/candidhealth/exports/v_3/client.rb +48 -98
  163. data/lib/candidhealth/exports/v_3/types/get_exports_response.rb +58 -79
  164. data/lib/candidhealth/financials/types/account_type.rb +4 -7
  165. data/lib/candidhealth/financials/types/allocation.rb +43 -60
  166. data/lib/candidhealth/financials/types/allocation_create.rb +45 -63
  167. data/lib/candidhealth/financials/types/allocation_target.rb +95 -115
  168. data/lib/candidhealth/financials/types/allocation_target_create.rb +98 -127
  169. data/lib/candidhealth/financials/types/billing_provider_allocation_target.rb +35 -45
  170. data/lib/candidhealth/financials/types/claim_allocation_target.rb +41 -55
  171. data/lib/candidhealth/financials/types/invoice_update.rb +72 -77
  172. data/lib/candidhealth/financials/types/note_update.rb +71 -77
  173. data/lib/candidhealth/financials/types/patient_transaction_source.rb +9 -11
  174. data/lib/candidhealth/financials/types/refund_reason.rb +3 -5
  175. data/lib/candidhealth/financials/types/refund_reason_update.rb +71 -77
  176. data/lib/candidhealth/financials/types/service_line_allocation_target.rb +48 -62
  177. data/lib/candidhealth/guarantor/client.rb +6 -8
  178. data/lib/candidhealth/guarantor/v_1/client.rb +116 -139
  179. data/lib/candidhealth/guarantor/v_1/types/encounter_has_existing_guarantor_error_type.rb +33 -45
  180. data/lib/candidhealth/guarantor/v_1/types/guarantor.rb +100 -131
  181. data/lib/candidhealth/guarantor/v_1/types/guarantor_base.rb +65 -89
  182. data/lib/candidhealth/guarantor/v_1/types/guarantor_create.rb +93 -123
  183. data/lib/candidhealth/guarantor/v_1/types/guarantor_id.rb +9 -0
  184. data/lib/candidhealth/identifiers/types/identifier.rb +64 -85
  185. data/lib/candidhealth/identifiers/types/identifier_base.rb +53 -77
  186. data/lib/candidhealth/identifiers/types/identifier_code.rb +4 -6
  187. data/lib/candidhealth/identifiers/types/identifier_create.rb +53 -77
  188. data/lib/candidhealth/identifiers/types/identifier_id.rb +7 -0
  189. data/lib/candidhealth/identifiers/types/identifier_update.rb +65 -86
  190. data/lib/candidhealth/identifiers/types/identifier_value.rb +72 -78
  191. data/lib/candidhealth/identifiers/types/medicaid_provider_identifier.rb +39 -55
  192. data/lib/candidhealth/identifiers/types/medicare_provider_identifier.rb +39 -55
  193. data/lib/candidhealth/identifiers/types/updatable_identifier.rb +84 -89
  194. data/lib/candidhealth/individual/types/gender.rb +7 -9
  195. data/lib/candidhealth/individual/types/individual_base.rb +44 -62
  196. data/lib/candidhealth/individual/types/individual_id.rb +7 -0
  197. data/lib/candidhealth/individual/types/patient.rb +108 -169
  198. data/lib/candidhealth/individual/types/patient_base.rb +73 -101
  199. data/lib/candidhealth/individual/types/patient_create.rb +101 -157
  200. data/lib/candidhealth/individual/types/subscriber.rb +91 -119
  201. data/lib/candidhealth/individual/types/subscriber_base.rb +74 -99
  202. data/lib/candidhealth/individual/types/subscriber_create.rb +84 -111
  203. data/lib/candidhealth/insurance_adjudications/client.rb +6 -8
  204. data/lib/candidhealth/insurance_adjudications/v_1/client.rb +47 -110
  205. data/lib/candidhealth/insurance_adjudications/v_1/types/claim_adjudication.rb +81 -106
  206. data/lib/candidhealth/insurance_adjudications/v_1/types/claim_adjudication_create.rb +74 -98
  207. data/lib/candidhealth/insurance_adjudications/v_1/types/insurance_adjudication.rb +80 -104
  208. data/lib/candidhealth/insurance_adjudications/v_1/types/insurance_adjudication_create.rb +87 -129
  209. data/lib/candidhealth/insurance_adjudications/v_1/types/insurance_adjudication_id.rb +9 -0
  210. data/lib/candidhealth/insurance_adjudications/v_1/types/service_line_adjudication.rb +91 -121
  211. data/lib/candidhealth/insurance_adjudications/v_1/types/service_line_adjudication_create.rb +84 -113
  212. data/lib/candidhealth/insurance_adjudications/v_1/types/service_line_adjudication_id.rb +9 -0
  213. data/lib/candidhealth/insurance_cards/v_2/types/insurance_card.rb +105 -148
  214. data/lib/candidhealth/insurance_cards/v_2/types/insurance_card_base.rb +55 -84
  215. data/lib/candidhealth/insurance_cards/v_2/types/insurance_card_create.rb +104 -148
  216. data/lib/candidhealth/insurance_cards/v_2/types/insurance_card_id.rb +9 -0
  217. data/lib/candidhealth/insurance_payments/client.rb +6 -8
  218. data/lib/candidhealth/insurance_payments/v_1/client.rb +175 -78
  219. data/lib/candidhealth/insurance_payments/v_1/types/insurance_payment.rb +77 -101
  220. data/lib/candidhealth/insurance_payments/v_1/types/insurance_payment_create.rb +91 -0
  221. data/lib/candidhealth/insurance_payments/v_1/types/insurance_payment_id.rb +9 -0
  222. data/lib/candidhealth/insurance_payments/v_1/types/insurance_payment_sort_field.rb +4 -6
  223. data/lib/candidhealth/insurance_payments/v_1/types/insurance_payments_page.rb +47 -70
  224. data/lib/candidhealth/insurance_refunds/client.rb +6 -8
  225. data/lib/candidhealth/insurance_refunds/v_1/client.rb +108 -200
  226. data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refund.rb +83 -109
  227. data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refund_create.rb +76 -101
  228. data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refund_id.rb +9 -0
  229. data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refund_sort_field.rb +5 -7
  230. data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refunds_page.rb +47 -70
  231. data/lib/candidhealth/invoices/types/invoice.rb +117 -152
  232. data/lib/candidhealth/invoices/types/invoice_item.rb +40 -55
  233. data/lib/candidhealth/invoices/types/invoice_status.rb +7 -10
  234. data/lib/candidhealth/organization_providers/client.rb +6 -8
  235. data/lib/candidhealth/organization_providers/v_2/types/address_type.rb +2 -4
  236. data/lib/candidhealth/organization_providers/v_2/types/employment_status.rb +3 -5
  237. data/lib/candidhealth/organization_providers/v_2/types/license_type.rb +69 -102
  238. data/lib/candidhealth/organization_providers/v_2/types/organization_provider.rb +138 -189
  239. data/lib/candidhealth/organization_providers/v_2/types/organization_provider_address.rb +42 -59
  240. data/lib/candidhealth/organization_providers/v_2/types/organization_provider_base.rb +112 -157
  241. data/lib/candidhealth/organization_providers/v_2/types/organization_provider_id.rb +9 -0
  242. data/lib/candidhealth/organization_providers/v_2/types/organization_provider_sort_options.rb +5 -7
  243. data/lib/candidhealth/organization_providers/v_2/types/provider_type.rb +3 -5
  244. data/lib/candidhealth/organization_providers/v_3/client.rb +80 -166
  245. data/lib/candidhealth/organization_providers/v_3/types/organization_provider_create_v_2.rb +124 -171
  246. data/lib/candidhealth/organization_providers/v_3/types/organization_provider_page_v_2.rb +47 -70
  247. data/lib/candidhealth/organization_providers/v_3/types/organization_provider_update_v_2.rb +121 -169
  248. data/lib/candidhealth/organization_providers/v_3/types/organization_provider_v_2.rb +131 -179
  249. data/lib/candidhealth/organization_service_facilities/client.rb +6 -8
  250. data/lib/candidhealth/organization_service_facilities/v_2/client.rb +90 -186
  251. data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility.rb +111 -149
  252. data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_create.rb +104 -141
  253. data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_id.rb +9 -0
  254. data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_page.rb +47 -70
  255. data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_update.rb +104 -141
  256. data/lib/candidhealth/organization_service_facilities/v_2/types/service_facility_mode.rb +3 -5
  257. data/lib/candidhealth/organization_service_facilities/v_2/types/service_facility_operational_status.rb +7 -9
  258. data/lib/candidhealth/organization_service_facilities/v_2/types/service_facility_physical_type.rb +15 -17
  259. data/lib/candidhealth/organization_service_facilities/v_2/types/service_facility_status.rb +4 -6
  260. data/lib/candidhealth/organization_service_facilities/v_2/types/service_facility_type.rb +124 -126
  261. data/lib/candidhealth/patient_payments/client.rb +6 -8
  262. data/lib/candidhealth/patient_payments/v_3/types/patient_payment.rb +111 -143
  263. data/lib/candidhealth/patient_payments/v_3/types/patient_payment_id.rb +9 -0
  264. data/lib/candidhealth/patient_payments/v_3/types/patient_payment_source.rb +10 -12
  265. data/lib/candidhealth/patient_payments/v_3/types/patient_payment_status.rb +12 -14
  266. data/lib/candidhealth/patient_payments/v_4/client.rb +103 -200
  267. data/lib/candidhealth/patient_payments/v_4/types/patient_payment.rb +100 -129
  268. data/lib/candidhealth/patient_payments/v_4/types/patient_payment_id.rb +9 -0
  269. data/lib/candidhealth/patient_payments/v_4/types/patient_payment_sort_field.rb +5 -7
  270. data/lib/candidhealth/patient_payments/v_4/types/patient_payments_page.rb +47 -70
  271. data/lib/candidhealth/patient_refunds/client.rb +6 -8
  272. data/lib/candidhealth/patient_refunds/v_1/client.rb +107 -204
  273. data/lib/candidhealth/patient_refunds/v_1/types/patient_refund.rb +106 -137
  274. data/lib/candidhealth/patient_refunds/v_1/types/patient_refund_id.rb +9 -0
  275. data/lib/candidhealth/patient_refunds/v_1/types/patient_refund_sort_field.rb +6 -8
  276. data/lib/candidhealth/patient_refunds/v_1/types/patient_refunds_page.rb +47 -70
  277. data/lib/candidhealth/payers/client.rb +6 -8
  278. data/lib/candidhealth/payers/v_3/client.rb +32 -73
  279. data/lib/candidhealth/payers/v_3/types/payer.rb +44 -115
  280. data/lib/candidhealth/payers/v_3/types/payer_id.rb +9 -0
  281. data/lib/candidhealth/payers/v_3/types/payer_identifier.rb +72 -77
  282. data/lib/candidhealth/payers/v_3/types/payer_info.rb +40 -54
  283. data/lib/candidhealth/payers/v_3/types/payer_name.rb +9 -0
  284. data/lib/candidhealth/payers/v_3/types/payer_page.rb +47 -70
  285. data/lib/candidhealth/payers/v_3/types/payer_uuid.rb +9 -0
  286. data/lib/candidhealth/remits/v_1/types/payee.rb +42 -59
  287. data/lib/candidhealth/remits/v_1/types/payee_identifier.rb +80 -84
  288. data/lib/candidhealth/service_facility/client.rb +52 -61
  289. data/lib/candidhealth/service_facility/types/encounter_service_facility.rb +62 -104
  290. data/lib/candidhealth/service_facility/types/encounter_service_facility_base.rb +57 -108
  291. data/lib/candidhealth/service_facility/types/service_facility_id.rb +7 -0
  292. data/lib/candidhealth/service_lines/v_2/types/denial_reason_content.rb +31 -35
  293. data/lib/candidhealth/service_lines/v_2/types/drug_identification.rb +68 -108
  294. data/lib/candidhealth/service_lines/v_2/types/measurement_unit_code.rb +6 -8
  295. data/lib/candidhealth/service_lines/v_2/types/service_id_qualifier.rb +8 -10
  296. data/lib/candidhealth/service_lines/v_2/types/service_line.rb +199 -437
  297. data/lib/candidhealth/service_lines/v_2/types/service_line_adjustment.rb +62 -85
  298. data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +99 -226
  299. data/lib/candidhealth/service_lines/v_2/types/service_line_denial_reason.rb +35 -49
  300. data/lib/candidhealth/service_lines/v_2/types/service_line_era_data.rb +44 -60
  301. data/lib/candidhealth/tags/types/tag.rb +51 -69
  302. data/lib/candidhealth/tags/types/tag_color_enum.rb +12 -14
  303. data/lib/candidhealth/tags/types/tag_create.rb +45 -62
  304. data/lib/candidhealth/tags/types/tag_id.rb +7 -0
  305. data/lib/candidhealth/tasks/client.rb +6 -8
  306. data/lib/candidhealth/tasks/commons/types/task_category.rb +42 -46
  307. data/lib/candidhealth/tasks/commons/types/task_status.rb +9 -11
  308. data/lib/candidhealth/tasks/commons/types/task_type.rb +14 -16
  309. data/lib/candidhealth/tasks/v_3/client.rb +96 -180
  310. data/lib/candidhealth/tasks/v_3/types/task.rb +146 -201
  311. data/lib/candidhealth/tasks/v_3/types/task_action.rb +47 -66
  312. data/lib/candidhealth/tasks/v_3/types/task_action_execution_method.rb +59 -65
  313. data/lib/candidhealth/tasks/v_3/types/task_action_type.rb +3 -5
  314. data/lib/candidhealth/tasks/v_3/types/task_actions.rb +35 -47
  315. data/lib/candidhealth/tasks/v_3/types/task_assignment.rb +40 -59
  316. data/lib/candidhealth/tasks/v_3/types/task_create_v_3.rb +77 -100
  317. data/lib/candidhealth/tasks/v_3/types/task_note.rb +62 -83
  318. data/lib/candidhealth/tasks/v_3/types/task_page.rb +47 -70
  319. data/lib/candidhealth/tasks/v_3/types/task_sort_options.rb +23 -25
  320. data/lib/candidhealth/tasks/v_3/types/task_update_v_3.rb +49 -68
  321. data/lib/candidhealth/tasks/v_3/types/task_updated_to_deprecated_status_error_type.rb +33 -47
  322. data/lib/candidhealth/write_offs/client.rb +6 -8
  323. data/lib/candidhealth/write_offs/v_1/client.rb +83 -244
  324. data/lib/candidhealth/write_offs/v_1/types/create_write_offs_response.rb +35 -47
  325. data/lib/candidhealth/write_offs/v_1/types/insurance_write_off.rb +97 -127
  326. data/lib/candidhealth/write_offs/v_1/types/insurance_write_off_create.rb +78 -103
  327. data/lib/candidhealth/write_offs/v_1/types/insurance_write_off_reason.rb +16 -20
  328. data/lib/candidhealth/write_offs/v_1/types/insurance_write_off_target.rb +81 -84
  329. data/lib/candidhealth/write_offs/v_1/types/patient_write_off.rb +84 -127
  330. data/lib/candidhealth/write_offs/v_1/types/patient_write_off_create.rb +65 -87
  331. data/lib/candidhealth/write_offs/v_1/types/patient_write_off_reason.rb +10 -15
  332. data/lib/candidhealth/write_offs/v_1/types/write_off.rb +71 -90
  333. data/lib/candidhealth/write_offs/v_1/types/write_off_create.rb +71 -90
  334. data/lib/candidhealth/write_offs/v_1/types/write_off_id.rb +9 -0
  335. data/lib/candidhealth/write_offs/v_1/types/write_off_sort_field.rb +4 -6
  336. data/lib/candidhealth/write_offs/v_1/types/write_offs_page.rb +47 -70
  337. data/lib/candidhealth/x_12/v_1/types/carc.rb +403 -406
  338. data/lib/candidhealth/x_12/v_1/types/claim_adjustment_reason_code.rb +44 -61
  339. data/lib/candidhealth/x_12/v_1/types/rarc.rb +1061 -1190
  340. data/lib/candidhealth/x_12/v_1/types/remittance_advice_remark_code.rb +33 -44
  341. data/lib/candidhealth.rb +87 -287
  342. data/lib/environment.rb +2 -12
  343. data/lib/requests.rb +48 -101
  344. data/lib/types_export.rb +56 -305
  345. metadata +62 -397
  346. data/lib/candidhealth/auth/default/client.rb +0 -169
  347. data/lib/candidhealth/auth/default/types/auth_get_token_response.rb +0 -77
  348. data/lib/candidhealth/auth/default/types/invalid_content_type_error_type.rb +0 -60
  349. data/lib/candidhealth/auth/default/types/too_many_requests_error_type.rb +0 -60
  350. data/lib/candidhealth/billing_notes/v_2/types/billing_note_base_optional.rb +0 -62
  351. data/lib/candidhealth/charge_capture/client.rb +0 -30
  352. data/lib/candidhealth/charge_capture/v_1/client.rb +0 -1601
  353. data/lib/candidhealth/charge_capture/v_1/types/charge_capture.rb +0 -175
  354. data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +0 -780
  355. data/lib/candidhealth/charge_capture/v_1/types/charge_capture_error.rb +0 -138
  356. data/lib/candidhealth/charge_capture/v_1/types/charge_capture_page.rb +0 -96
  357. data/lib/candidhealth/charge_capture/v_1/types/charge_capture_post_billed_change.rb +0 -80
  358. data/lib/candidhealth/charge_capture/v_1/types/charge_capture_sort_field.rb +0 -14
  359. data/lib/candidhealth/charge_capture/v_1/types/charge_capture_status.rb +0 -17
  360. data/lib/candidhealth/charge_capture/v_1/types/charge_external_id_conflict_error_message.rb +0 -62
  361. data/lib/candidhealth/charge_capture_bundles/client.rb +0 -30
  362. data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +0 -356
  363. data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation.rb +0 -132
  364. data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_page.rb +0 -88
  365. data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_sort_field.rb +0 -13
  366. data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_status.rb +0 -18
  367. data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_summary.rb +0 -100
  368. data/lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create_optional.rb +0 -100
  369. data/lib/candidhealth/claim_submission/v_1/types/external_claim_submission_create_optional.rb +0 -101
  370. data/lib/candidhealth/clinical_trials/v_1/types/clinical_trial.rb +0 -109
  371. data/lib/candidhealth/clinical_trials/v_1/types/clinical_trial_phase.rb +0 -15
  372. data/lib/candidhealth/clinical_trials/v_1/types/mutable_clinical_trial.rb +0 -84
  373. data/lib/candidhealth/commons/types/billing_provider_commercial_license_type.rb +0 -20
  374. data/lib/candidhealth/commons/types/entity_conflict_error_message.rb +0 -58
  375. data/lib/candidhealth/commons/types/epsdt_referral_condition_indicator_code.rb +0 -14
  376. data/lib/candidhealth/commons/types/intended_submission_medium.rb +0 -15
  377. data/lib/candidhealth/commons/types/network_type.rb +0 -31
  378. data/lib/candidhealth/commons/types/next_responsible_party.rb +0 -16
  379. data/lib/candidhealth/commons/types/phone_number_optional.rb +0 -71
  380. data/lib/candidhealth/commons/types/primitive.rb +0 -17
  381. data/lib/candidhealth/commons/types/qualifier_code.rb +0 -14
  382. data/lib/candidhealth/commons/types/street_address_long_zip_optional.rb +0 -107
  383. data/lib/candidhealth/commons/types/street_address_optional_base.rb +0 -99
  384. data/lib/candidhealth/commons/types/street_address_short_zip_optional.rb +0 -107
  385. data/lib/candidhealth/contracts/v_2/types/contract_invalid_expiration_date_error.rb +0 -60
  386. data/lib/candidhealth/contracts/v_2/types/contract_sort_field.rb +0 -18
  387. data/lib/candidhealth/credentialing/client.rb +0 -30
  388. data/lib/candidhealth/credentialing/v_2/client.rb +0 -384
  389. data/lib/candidhealth/credentialing/v_2/types/credentialing_span_status.rb +0 -17
  390. data/lib/candidhealth/credentialing/v_2/types/provider_credentialing_span.rb +0 -196
  391. data/lib/candidhealth/credentialing/v_2/types/provider_credentialing_span_page.rb +0 -88
  392. data/lib/candidhealth/custom_schemas/client.rb +0 -30
  393. data/lib/candidhealth/custom_schemas/v_1/client.rb +0 -291
  394. data/lib/candidhealth/custom_schemas/v_1/types/key_with_name_already_exists_error.rb +0 -71
  395. data/lib/candidhealth/custom_schemas/v_1/types/schema.rb +0 -91
  396. data/lib/candidhealth/custom_schemas/v_1/types/schema_field.rb +0 -71
  397. data/lib/candidhealth/custom_schemas/v_1/types/schema_get_multi_response.rb +0 -65
  398. data/lib/candidhealth/custom_schemas/v_1/types/schema_instance.rb +0 -76
  399. data/lib/candidhealth/custom_schemas/v_1/types/schema_instance_optional.rb +0 -78
  400. data/lib/candidhealth/custom_schemas/v_1/types/schema_validation_error.rb +0 -100
  401. data/lib/candidhealth/custom_schemas/v_1/types/schema_validation_failure.rb +0 -65
  402. data/lib/candidhealth/custom_schemas/v_1/types/schema_with_name_already_exists_error.rb +0 -70
  403. data/lib/candidhealth/diagnoses/client.rb +0 -243
  404. data/lib/candidhealth/diagnoses/types/diagnosis_create_optional.rb +0 -126
  405. data/lib/candidhealth/diagnoses/types/diagnosis_not_found_error.rb +0 -70
  406. data/lib/candidhealth/encounter_attachments/client.rb +0 -30
  407. data/lib/candidhealth/encounter_attachments/v_1/client.rb +0 -193
  408. data/lib/candidhealth/encounter_attachments/v_1/types/base_attachment.rb +0 -98
  409. data/lib/candidhealth/encounter_attachments/v_1/types/encounter_attachment.rb +0 -115
  410. data/lib/candidhealth/encounter_attachments/v_1/types/encounter_attachment_type.rb +0 -15
  411. data/lib/candidhealth/encounter_providers/client.rb +0 -30
  412. data/lib/candidhealth/encounter_providers/v_2/client.rb +0 -789
  413. data/lib/candidhealth/encounter_providers/v_2/types/billing_provider_update.rb +0 -157
  414. data/lib/candidhealth/encounter_providers/v_2/types/billing_provider_update_with_optional_address.rb +0 -160
  415. data/lib/candidhealth/encounter_providers/v_2/types/initial_referring_provider.rb +0 -132
  416. data/lib/candidhealth/encounter_providers/v_2/types/initial_referring_provider_update.rb +0 -132
  417. data/lib/candidhealth/encounter_providers/v_2/types/initial_referring_provider_update_with_optional_address.rb +0 -134
  418. data/lib/candidhealth/encounter_providers/v_2/types/ordering_provider.rb +0 -123
  419. data/lib/candidhealth/encounter_providers/v_2/types/ordering_provider_optional.rb +0 -123
  420. data/lib/candidhealth/encounter_providers/v_2/types/ordering_provider_update.rb +0 -123
  421. data/lib/candidhealth/encounter_providers/v_2/types/referring_provider_update.rb +0 -123
  422. data/lib/candidhealth/encounter_providers/v_2/types/referring_provider_update_with_optional_address.rb +0 -125
  423. data/lib/candidhealth/encounter_providers/v_2/types/rendering_provider_update.rb +0 -123
  424. data/lib/candidhealth/encounter_providers/v_2/types/rendering_provider_update_with_optional_address.rb +0 -125
  425. data/lib/candidhealth/encounter_providers/v_2/types/supervising_provider.rb +0 -123
  426. data/lib/candidhealth/encounter_providers/v_2/types/supervising_provider_update.rb +0 -123
  427. data/lib/candidhealth/encounter_providers/v_2/types/supervising_provider_update_with_optional_address.rb +0 -125
  428. data/lib/candidhealth/encounters/v_4/types/claim_supplemental_information.rb +0 -86
  429. data/lib/candidhealth/encounters/v_4/types/claim_supplemental_information_optional.rb +0 -86
  430. data/lib/candidhealth/encounters/v_4/types/clinical_note_category_create_optional.rb +0 -78
  431. data/lib/candidhealth/encounters/v_4/types/clinical_note_optional.rb +0 -93
  432. data/lib/candidhealth/encounters/v_4/types/encounter_create_from_pre_encounter.rb +0 -629
  433. data/lib/candidhealth/encounters/v_4/types/encounter_deep_optional.rb +0 -780
  434. data/lib/candidhealth/encounters/v_4/types/encounter_optional.rb +0 -380
  435. data/lib/candidhealth/encounters/v_4/types/epsdt_referral.rb +0 -85
  436. data/lib/candidhealth/encounters/v_4/types/epsdt_referral_optional.rb +0 -85
  437. data/lib/candidhealth/encounters/v_4/types/intake_question_optional.rb +0 -84
  438. data/lib/candidhealth/encounters/v_4/types/intervention_optional.rb +0 -114
  439. data/lib/candidhealth/encounters/v_4/types/invalid_tag_names_error_type.rb +0 -60
  440. data/lib/candidhealth/encounters/v_4/types/key_does_not_exist_error.rb +0 -70
  441. data/lib/candidhealth/encounters/v_4/types/lab_optional.rb +0 -80
  442. data/lib/candidhealth/encounters/v_4/types/medication_optional.rb +0 -108
  443. data/lib/candidhealth/encounters/v_4/types/multiple_instances_for_schema_error.rb +0 -60
  444. data/lib/candidhealth/encounters/v_4/types/patient_history_category_optional.rb +0 -78
  445. data/lib/candidhealth/encounters/v_4/types/payer_plan_group_payer_does_not_match_insurance_card_error.rb +0 -77
  446. data/lib/candidhealth/encounters/v_4/types/report_transmission_code.rb +0 -14
  447. data/lib/candidhealth/encounters/v_4/types/report_type_code.rb +0 -73
  448. data/lib/candidhealth/encounters/v_4/types/schema_does_not_exist_error.rb +0 -60
  449. data/lib/candidhealth/encounters/v_4/types/schema_instance_validation_error.rb +0 -139
  450. data/lib/candidhealth/encounters/v_4/types/schema_instance_validation_failure.rb +0 -65
  451. data/lib/candidhealth/encounters/v_4/types/schema_unauthorized_access_error.rb +0 -60
  452. data/lib/candidhealth/encounters/v_4/types/value_does_not_match_key_type_error.rb +0 -90
  453. data/lib/candidhealth/encounters/v_4/types/vitals_update.rb +0 -116
  454. data/lib/candidhealth/expected_network_status/v_2/types/empty_object.rb +0 -53
  455. data/lib/candidhealth/external_payment_account_config/client.rb +0 -30
  456. data/lib/candidhealth/external_payment_account_config/v_1/client.rb +0 -89
  457. data/lib/candidhealth/external_payment_account_config/v_1/types/external_payment_account_config.rb +0 -70
  458. data/lib/candidhealth/external_payment_account_config/v_1/types/external_payment_account_config_page.rb +0 -88
  459. data/lib/candidhealth/fee_schedules/client.rb +0 -30
  460. data/lib/candidhealth/fee_schedules/v_3/client.rb +0 -703
  461. data/lib/candidhealth/fee_schedules/v_3/types/dimension_match.rb +0 -200
  462. data/lib/candidhealth/fee_schedules/v_3/types/dimension_name.rb +0 -16
  463. data/lib/candidhealth/fee_schedules/v_3/types/dimensions.rb +0 -179
  464. data/lib/candidhealth/fee_schedules/v_3/types/dimensions_page.rb +0 -88
  465. data/lib/candidhealth/fee_schedules/v_3/types/match_cpt_code.rb +0 -78
  466. data/lib/candidhealth/fee_schedules/v_3/types/match_date.rb +0 -82
  467. data/lib/candidhealth/fee_schedules/v_3/types/match_facility_type_code.rb +0 -81
  468. data/lib/candidhealth/fee_schedules/v_3/types/match_geo.rb +0 -93
  469. data/lib/candidhealth/fee_schedules/v_3/types/match_license_type.rb +0 -81
  470. data/lib/candidhealth/fee_schedules/v_3/types/match_modifiers.rb +0 -85
  471. data/lib/candidhealth/fee_schedules/v_3/types/match_network_types.rb +0 -85
  472. data/lib/candidhealth/fee_schedules/v_3/types/match_payer.rb +0 -78
  473. data/lib/candidhealth/fee_schedules/v_3/types/match_payer_plan_groups.rb +0 -85
  474. data/lib/candidhealth/fee_schedules/v_3/types/match_provider.rb +0 -80
  475. data/lib/candidhealth/fee_schedules/v_3/types/match_result.rb +0 -77
  476. data/lib/candidhealth/fee_schedules/v_3/types/match_test_result.rb +0 -83
  477. data/lib/candidhealth/fee_schedules/v_3/types/new_rate.rb +0 -81
  478. data/lib/candidhealth/fee_schedules/v_3/types/new_rate_version.rb +0 -88
  479. data/lib/candidhealth/fee_schedules/v_3/types/optional_dimensions.rb +0 -180
  480. data/lib/candidhealth/fee_schedules/v_3/types/overlapping_rate_entries_error.rb +0 -90
  481. data/lib/candidhealth/fee_schedules/v_3/types/payer_plan_group_does_not_match_rate_payer_error.rb +0 -75
  482. data/lib/candidhealth/fee_schedules/v_3/types/payer_threshold.rb +0 -93
  483. data/lib/candidhealth/fee_schedules/v_3/types/payer_thresholds_page.rb +0 -87
  484. data/lib/candidhealth/fee_schedules/v_3/types/rate.rb +0 -121
  485. data/lib/candidhealth/fee_schedules/v_3/types/rate_entry.rb +0 -96
  486. data/lib/candidhealth/fee_schedules/v_3/types/rate_upload.rb +0 -100
  487. data/lib/candidhealth/fee_schedules/v_3/types/rate_upload_with_possible_errors.rb +0 -100
  488. data/lib/candidhealth/fee_schedules/v_3/types/rates_page.rb +0 -88
  489. data/lib/candidhealth/fee_schedules/v_3/types/threshold_match.rb +0 -97
  490. data/lib/candidhealth/fee_schedules/v_3/types/validation_error.rb +0 -160
  491. data/lib/candidhealth/financials/types/appointment_allocation_target.rb +0 -68
  492. data/lib/candidhealth/financials/types/appointment_by_id_and_patient_external_id.rb +0 -68
  493. data/lib/candidhealth/guarantor/v_1/types/guarantor_optional.rb +0 -144
  494. data/lib/candidhealth/guarantor/v_1/types/guarantor_update.rb +0 -144
  495. data/lib/candidhealth/import_invoice/client.rb +0 -30
  496. data/lib/candidhealth/import_invoice/v_1/client.rb +0 -320
  497. data/lib/candidhealth/import_invoice/v_1/types/create_import_invoice_request.rb +0 -143
  498. data/lib/candidhealth/import_invoice/v_1/types/import_invoice.rb +0 -165
  499. data/lib/candidhealth/import_invoice/v_1/types/import_invoice_update_request.rb +0 -109
  500. data/lib/candidhealth/import_invoice/v_1/types/import_invoices_page.rb +0 -88
  501. data/lib/candidhealth/import_invoice/v_1/types/invoice_item_info_update.rb +0 -80
  502. data/lib/candidhealth/import_invoice/v_1/types/invoice_item_update_type.rb +0 -14
  503. data/lib/candidhealth/individual/types/individual_base_optional.rb +0 -78
  504. data/lib/candidhealth/individual/types/patient_clinical_trial_info.rb +0 -80
  505. data/lib/candidhealth/individual/types/patient_clinical_trial_info_create.rb +0 -73
  506. data/lib/candidhealth/individual/types/patient_non_insurance_payer_info.rb +0 -92
  507. data/lib/candidhealth/individual/types/patient_non_insurance_payer_info_create.rb +0 -86
  508. data/lib/candidhealth/individual/types/patient_non_insurance_payer_info_create_optional.rb +0 -89
  509. data/lib/candidhealth/individual/types/patient_update.rb +0 -179
  510. data/lib/candidhealth/individual/types/patient_update_with_optional_address.rb +0 -179
  511. data/lib/candidhealth/individual/types/subscriber_base_optional.rb +0 -118
  512. data/lib/candidhealth/individual/types/subscriber_create_optional.rb +0 -132
  513. data/lib/candidhealth/insurance_cards/v_2/types/insurance_card_create_optional.rb +0 -167
  514. data/lib/candidhealth/invoices/v_2/types/claim_invoice_item.rb +0 -70
  515. data/lib/candidhealth/invoices/v_2/types/claim_invoice_item_info.rb +0 -85
  516. data/lib/candidhealth/invoices/v_2/types/invoice.rb +0 -173
  517. data/lib/candidhealth/invoices/v_2/types/invoice_destination.rb +0 -17
  518. data/lib/candidhealth/invoices/v_2/types/invoice_destination_metadata.rb +0 -95
  519. data/lib/candidhealth/invoices/v_2/types/invoice_info.rb +0 -85
  520. data/lib/candidhealth/invoices/v_2/types/invoice_item_attribution_create.rb +0 -110
  521. data/lib/candidhealth/invoices/v_2/types/invoice_item_create.rb +0 -77
  522. data/lib/candidhealth/invoices/v_2/types/invoice_item_info.rb +0 -78
  523. data/lib/candidhealth/invoices/v_2/types/invoice_sort_field.rb +0 -18
  524. data/lib/candidhealth/invoices/v_2/types/invoice_status.rb +0 -18
  525. data/lib/candidhealth/invoices/v_2/types/service_line_invoice_item.rb +0 -70
  526. data/lib/candidhealth/invoices/v_2/types/unattributed_invoice_item.rb +0 -60
  527. data/lib/candidhealth/medication_dispense/client.rb +0 -30
  528. data/lib/candidhealth/medication_dispense/v_1/client.rb +0 -114
  529. data/lib/candidhealth/medication_dispense/v_1/types/medication_dispense_create.rb +0 -142
  530. data/lib/candidhealth/non_insurance_payer_payments/client.rb +0 -30
  531. data/lib/candidhealth/non_insurance_payer_payments/v_1/client.rb +0 -344
  532. data/lib/candidhealth/non_insurance_payer_payments/v_1/types/non_insurance_payer_payment.rb +0 -138
  533. data/lib/candidhealth/non_insurance_payer_payments/v_1/types/non_insurance_payer_payment_create.rb +0 -124
  534. data/lib/candidhealth/non_insurance_payer_payments/v_1/types/non_insurance_payer_payment_sort_field.rb +0 -14
  535. data/lib/candidhealth/non_insurance_payer_payments/v_1/types/non_insurance_payer_payments_page.rb +0 -88
  536. data/lib/candidhealth/non_insurance_payer_refunds/client.rb +0 -30
  537. data/lib/candidhealth/non_insurance_payer_refunds/v_1/client.rb +0 -371
  538. data/lib/candidhealth/non_insurance_payer_refunds/v_1/types/non_insurance_payer_refund.rb +0 -147
  539. data/lib/candidhealth/non_insurance_payer_refunds/v_1/types/non_insurance_payer_refund_create.rb +0 -133
  540. data/lib/candidhealth/non_insurance_payer_refunds/v_1/types/non_insurance_payer_refund_sort_field.rb +0 -14
  541. data/lib/candidhealth/non_insurance_payer_refunds/v_1/types/non_insurance_payer_refunds_page.rb +0 -88
  542. data/lib/candidhealth/non_insurance_payers/client.rb +0 -30
  543. data/lib/candidhealth/non_insurance_payers/v_1/client.rb +0 -377
  544. data/lib/candidhealth/non_insurance_payers/v_1/types/create_non_insurance_payer_request.rb +0 -111
  545. data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer.rb +0 -127
  546. data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_address_update.rb +0 -98
  547. data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_category_update.rb +0 -97
  548. data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_description_update.rb +0 -97
  549. data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_page.rb +0 -88
  550. data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_sort_field.rb +0 -16
  551. data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_update_request.rb +0 -110
  552. data/lib/candidhealth/non_insurance_payers/v_1/types/toggle_non_insurance_payer_enablement_request.rb +0 -62
  553. data/lib/candidhealth/payer_plan_groups/client.rb +0 -30
  554. data/lib/candidhealth/payer_plan_groups/v_1/client.rb +0 -356
  555. data/lib/candidhealth/payer_plan_groups/v_1/types/mutable_payer_plan_group.rb +0 -78
  556. data/lib/candidhealth/payer_plan_groups/v_1/types/payer_plan_group.rb +0 -114
  557. data/lib/candidhealth/payer_plan_groups/v_1/types/payer_plan_group_already_exists_error.rb +0 -70
  558. data/lib/candidhealth/payer_plan_groups/v_1/types/payer_plan_group_page.rb +0 -88
  559. data/lib/candidhealth/payer_plan_groups/v_1/types/payer_plan_group_sort_field.rb +0 -15
  560. data/lib/candidhealth/pre_encounter/appointments/client.rb +0 -32
  561. data/lib/candidhealth/pre_encounter/appointments/v_1/client.rb +0 -580
  562. data/lib/candidhealth/pre_encounter/appointments/v_1/types/appointment.rb +0 -283
  563. data/lib/candidhealth/pre_encounter/appointments/v_1/types/appointment_status.rb +0 -18
  564. data/lib/candidhealth/pre_encounter/appointments/v_1/types/appointment_work_queue.rb +0 -18
  565. data/lib/candidhealth/pre_encounter/appointments/v_1/types/mutable_appointment.rb +0 -231
  566. data/lib/candidhealth/pre_encounter/appointments/v_1/types/service.rb +0 -82
  567. data/lib/candidhealth/pre_encounter/appointments/v_1/types/universal_service_identifier.rb +0 -18
  568. data/lib/candidhealth/pre_encounter/appointments/v_1/types/visit.rb +0 -96
  569. data/lib/candidhealth/pre_encounter/appointments/v_1/types/visits_page.rb +0 -98
  570. data/lib/candidhealth/pre_encounter/client.rb +0 -30
  571. data/lib/candidhealth/pre_encounter/common/types/additional_payer_information.rb +0 -92
  572. data/lib/candidhealth/pre_encounter/common/types/address.rb +0 -123
  573. data/lib/candidhealth/pre_encounter/common/types/address_use.rb +0 -17
  574. data/lib/candidhealth/pre_encounter/common/types/base_model.rb +0 -104
  575. data/lib/candidhealth/pre_encounter/common/types/canonical_clinical_trial_association.rb +0 -86
  576. data/lib/candidhealth/pre_encounter/common/types/canonical_non_insurance_payer_association.rb +0 -103
  577. data/lib/candidhealth/pre_encounter/common/types/contact_point.rb +0 -87
  578. data/lib/candidhealth/pre_encounter/common/types/contact_point_use.rb +0 -17
  579. data/lib/candidhealth/pre_encounter/common/types/disability_status.rb +0 -14
  580. data/lib/candidhealth/pre_encounter/common/types/error_base_4_xx.rb +0 -72
  581. data/lib/candidhealth/pre_encounter/common/types/ethnicity.rb +0 -16
  582. data/lib/candidhealth/pre_encounter/common/types/external_identifier.rb +0 -87
  583. data/lib/candidhealth/pre_encounter/common/types/external_provider.rb +0 -146
  584. data/lib/candidhealth/pre_encounter/common/types/external_provider_type.rb +0 -15
  585. data/lib/candidhealth/pre_encounter/common/types/gender.rb +0 -21
  586. data/lib/candidhealth/pre_encounter/common/types/human_name.rb +0 -107
  587. data/lib/candidhealth/pre_encounter/common/types/name_use.rb +0 -19
  588. data/lib/candidhealth/pre_encounter/common/types/period.rb +0 -74
  589. data/lib/candidhealth/pre_encounter/common/types/race.rb +0 -21
  590. data/lib/candidhealth/pre_encounter/common/types/relationship.rb +0 -17
  591. data/lib/candidhealth/pre_encounter/common/types/resource_page.rb +0 -83
  592. data/lib/candidhealth/pre_encounter/common/types/sex.rb +0 -16
  593. data/lib/candidhealth/pre_encounter/common/types/sexual_orientation.rb +0 -19
  594. data/lib/candidhealth/pre_encounter/common/types/sort_direction.rb +0 -14
  595. data/lib/candidhealth/pre_encounter/common/types/version_conflict_error_body.rb +0 -79
  596. data/lib/candidhealth/pre_encounter/coverages/client.rb +0 -32
  597. data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +0 -1206
  598. data/lib/candidhealth/pre_encounter/coverages/v_1/types/address.rb +0 -118
  599. data/lib/candidhealth/pre_encounter/coverages/v_1/types/benefit_type.rb +0 -24
  600. data/lib/candidhealth/pre_encounter/coverages/v_1/types/benefits_related_entity.rb +0 -108
  601. data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage.rb +0 -225
  602. data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_benefits.rb +0 -109
  603. data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_details.rb +0 -104
  604. data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_eligibility_check_response.rb +0 -87
  605. data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_level.rb +0 -19
  606. data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_status.rb +0 -20
  607. data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_value.rb +0 -94
  608. data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_value_unit.rb +0 -17
  609. data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverages_page.rb +0 -98
  610. data/lib/candidhealth/pre_encounter/coverages/v_1/types/expanded_member_info.rb +0 -133
  611. data/lib/candidhealth/pre_encounter/coverages/v_1/types/insurance_plan.rb +0 -165
  612. data/lib/candidhealth/pre_encounter/coverages/v_1/types/insurance_type_code.rb +0 -86
  613. data/lib/candidhealth/pre_encounter/coverages/v_1/types/latest_eligibility_check.rb +0 -83
  614. data/lib/candidhealth/pre_encounter/coverages/v_1/types/member_info.rb +0 -111
  615. data/lib/candidhealth/pre_encounter/coverages/v_1/types/mutable_coverage.rb +0 -171
  616. data/lib/candidhealth/pre_encounter/coverages/v_1/types/network_type.rb +0 -38
  617. data/lib/candidhealth/pre_encounter/coverages/v_1/types/payer_plan_group_fields.rb +0 -92
  618. data/lib/candidhealth/pre_encounter/coverages/v_1/types/plan_coverage.rb +0 -113
  619. data/lib/candidhealth/pre_encounter/coverages/v_1/types/plan_coverage_details.rb +0 -176
  620. data/lib/candidhealth/pre_encounter/coverages/v_1/types/plan_date.rb +0 -87
  621. data/lib/candidhealth/pre_encounter/coverages/v_1/types/plan_metadata.rb +0 -167
  622. data/lib/candidhealth/pre_encounter/coverages/v_1/types/related_entity_contact.rb +0 -74
  623. data/lib/candidhealth/pre_encounter/coverages/v_1/types/service_coverage.rb +0 -122
  624. data/lib/candidhealth/pre_encounter/coverages/v_1/types/service_coverage_details.rb +0 -124
  625. data/lib/candidhealth/pre_encounter/coverages/v_1/types/service_type_code.rb +0 -203
  626. data/lib/candidhealth/pre_encounter/coverages/v_1/types/subscriber.rb +0 -108
  627. data/lib/candidhealth/pre_encounter/eligibility_checks/client.rb +0 -32
  628. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/client.rb +0 -264
  629. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/batch_eligibility_response.rb +0 -75
  630. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check.rb +0 -131
  631. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_error.rb +0 -80
  632. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_error_details.rb +0 -112
  633. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_error_source.rb +0 -17
  634. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_metadata.rb +0 -103
  635. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_page.rb +0 -98
  636. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_status.rb +0 -18
  637. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_request.rb +0 -151
  638. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_response.rb +0 -15
  639. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_status.rb +0 -18
  640. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/encounter.rb +0 -83
  641. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/individual_provider.rb +0 -81
  642. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/organization_provider.rb +0 -74
  643. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/parsed_response.rb +0 -99
  644. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/provider.rb +0 -66
  645. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/request_correction.rb +0 -79
  646. data/lib/candidhealth/pre_encounter/images/client.rb +0 -32
  647. data/lib/candidhealth/pre_encounter/images/v_1/client.rb +0 -359
  648. data/lib/candidhealth/pre_encounter/images/v_1/types/coverage_association.rb +0 -74
  649. data/lib/candidhealth/pre_encounter/images/v_1/types/coverage_image_side.rb +0 -16
  650. data/lib/candidhealth/pre_encounter/images/v_1/types/image.rb +0 -188
  651. data/lib/candidhealth/pre_encounter/images/v_1/types/image_status.rb +0 -17
  652. data/lib/candidhealth/pre_encounter/images/v_1/types/mutable_image.rb +0 -125
  653. data/lib/candidhealth/pre_encounter/images/v_1/types/patient_association.rb +0 -75
  654. data/lib/candidhealth/pre_encounter/lists/client.rb +0 -32
  655. data/lib/candidhealth/pre_encounter/lists/v_1/client.rb +0 -187
  656. data/lib/candidhealth/pre_encounter/lists/v_1/types/appointment_list_item.rb +0 -114
  657. data/lib/candidhealth/pre_encounter/lists/v_1/types/appointment_list_page.rb +0 -98
  658. data/lib/candidhealth/pre_encounter/lists/v_1/types/patient_list_item.rb +0 -104
  659. data/lib/candidhealth/pre_encounter/lists/v_1/types/patient_list_page.rb +0 -98
  660. data/lib/candidhealth/pre_encounter/notes/client.rb +0 -32
  661. data/lib/candidhealth/pre_encounter/notes/v_1/client.rb +0 -257
  662. data/lib/candidhealth/pre_encounter/notes/v_1/types/mutable_note.rb +0 -86
  663. data/lib/candidhealth/pre_encounter/notes/v_1/types/note.rb +0 -149
  664. data/lib/candidhealth/pre_encounter/patients/client.rb +0 -32
  665. data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +0 -1240
  666. data/lib/candidhealth/pre_encounter/patients/v_1/types/authorization.rb +0 -170
  667. data/lib/candidhealth/pre_encounter/patients/v_1/types/authorization_unit.rb +0 -16
  668. data/lib/candidhealth/pre_encounter/patients/v_1/types/contact.rb +0 -132
  669. data/lib/candidhealth/pre_encounter/patients/v_1/types/do_not_invoice_reason.rb +0 -18
  670. data/lib/candidhealth/pre_encounter/patients/v_1/types/external_provenance.rb +0 -73
  671. data/lib/candidhealth/pre_encounter/patients/v_1/types/filing_order.rb +0 -63
  672. data/lib/candidhealth/pre_encounter/patients/v_1/types/guarantor.rb +0 -121
  673. data/lib/candidhealth/pre_encounter/patients/v_1/types/marital_status.rb +0 -26
  674. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +0 -450
  675. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +0 -457
  676. data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +0 -516
  677. data/lib/candidhealth/pre_encounter/patients/v_1/types/patient_page.rb +0 -98
  678. data/lib/candidhealth/pre_encounter/patients/v_1/types/referral.rb +0 -106
  679. data/lib/candidhealth/pre_encounter/tags/client.rb +0 -32
  680. data/lib/candidhealth/pre_encounter/tags/v_1/client.rb +0 -311
  681. data/lib/candidhealth/pre_encounter/tags/v_1/types/mutable_tag.rb +0 -63
  682. data/lib/candidhealth/pre_encounter/tags/v_1/types/tag.rb +0 -123
  683. data/lib/candidhealth/pre_encounter/tags/v_1/types/tag_page.rb +0 -98
  684. data/lib/candidhealth/service_facility/types/encounter_service_facility_update.rb +0 -111
  685. data/lib/candidhealth/service_facility/types/encounter_service_facility_update_with_optional_address.rb +0 -113
  686. data/lib/candidhealth/service_lines/client.rb +0 -30
  687. data/lib/candidhealth/service_lines/v_2/client.rb +0 -313
  688. data/lib/candidhealth/service_lines/v_2/types/drug_identification_optional.rb +0 -126
  689. data/lib/candidhealth/service_lines/v_2/types/service_line_create_optional.rb +0 -247
  690. data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb +0 -293
  691. data/lib/candidhealth/service_lines/v_2/types/service_line_update.rb +0 -285
  692. data/lib/candidhealth/service_lines/v_2/types/test_result.rb +0 -71
  693. data/lib/candidhealth/service_lines/v_2/types/test_result_optional.rb +0 -73
  694. data/lib/candidhealth/service_lines/v_2/types/test_result_type.rb +0 -15
  695. data/lib/candidhealth/superbills/client.rb +0 -30
  696. data/lib/candidhealth/superbills/v_1/client.rb +0 -123
  697. data/lib/candidhealth/superbills/v_1/types/superbill.rb +0 -108
  698. data/lib/candidhealth/superbills/v_1/types/superbill_response.rb +0 -65
  699. data/lib/candidhealth/write_offs/v_1/types/non_insurance_payer_write_off.rb +0 -143
  700. data/lib/candidhealth/write_offs/v_1/types/non_insurance_payer_write_off_create.rb +0 -113
  701. data/lib/candidhealth/yes_no_indicator/types/yes_no_indicator.rb +0 -14
  702. data/lib/core/file_utilities.rb +0 -26
  703. data/lib/core/oauth.rb +0 -62
@@ -1,1601 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../../../requests"
4
- require_relative "types/charge_capture_data"
5
- require_relative "types/charge_capture_status"
6
- require_relative "types/charge_capture"
7
- require_relative "types/charge_capture_sort_field"
8
- require_relative "../../commons/types/sort_direction"
9
- require "date"
10
- require_relative "../../encounters/v_4/types/billable_status_type"
11
- require_relative "../../encounters/v_4/types/responsible_party_type"
12
- require_relative "types/charge_capture_page"
13
- require_relative "types/charge_capture_post_billed_change"
14
- require "json"
15
- require "async"
16
-
17
- module CandidApiClient
18
- module ChargeCapture
19
- module V1
20
- class V1Client
21
- # @return [CandidApiClient::RequestClient]
22
- attr_reader :request_client
23
-
24
- # @param request_client [CandidApiClient::RequestClient]
25
- # @return [CandidApiClient::ChargeCapture::V1::V1Client]
26
- def initialize(request_client:)
27
- @request_client = request_client
28
- end
29
-
30
- # @param data [Hash] Charge Capture data contains all the fields needed to create an encounter, but
31
- # listed as optional. Candid will use this data when attempting to bundle multiple
32
- # Charge Captures into a single encounter.Request of type CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData, as a Hash
33
- # * :diagnoses (Array<CandidApiClient::Diagnoses::Types::DiagnosisCreateOptional>)
34
- # * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreateOptional>)
35
- # * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional>)
36
- # * :epsdt_referral (Hash)
37
- # * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
38
- # * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
39
- # * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
40
- # * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::MedicationOptional>)
41
- # * :guarantor (Hash)
42
- # * :first_name (String)
43
- # * :last_name (String)
44
- # * :external_id (String)
45
- # * :date_of_birth (Date)
46
- # * :address (Hash)
47
- # * :zip_plus_four_code (String)
48
- # * :address_1 (String)
49
- # * :address_2 (String)
50
- # * :city (String)
51
- # * :state (CandidApiClient::Commons::Types::State)
52
- # * :zip_code (String)
53
- # * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumberOptional>)
54
- # * :phone_consent (Boolean)
55
- # * :email (String)
56
- # * :email_consent (Boolean)
57
- # * :subscriber_primary (Hash)
58
- # * :insurance_card (Hash)
59
- # * :member_id (String)
60
- # * :payer_name (String)
61
- # * :payer_id (String)
62
- # * :rx_bin (String)
63
- # * :rx_pcn (String)
64
- # * :image_url_front (String)
65
- # * :image_url_back (String)
66
- # * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
67
- # * :group_number (String)
68
- # * :plan_name (String)
69
- # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
70
- # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
71
- # * :payer_plan_group_id (String)
72
- # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
73
- # * :date_of_birth (Date)
74
- # * :address (Hash)
75
- # * :zip_plus_four_code (String)
76
- # * :address_1 (String)
77
- # * :address_2 (String)
78
- # * :city (String)
79
- # * :state (CandidApiClient::Commons::Types::State)
80
- # * :zip_code (String)
81
- # * :first_name (String)
82
- # * :last_name (String)
83
- # * :gender (CandidApiClient::Individual::Types::Gender)
84
- # * :subscriber_secondary (Hash)
85
- # * :insurance_card (Hash)
86
- # * :member_id (String)
87
- # * :payer_name (String)
88
- # * :payer_id (String)
89
- # * :rx_bin (String)
90
- # * :rx_pcn (String)
91
- # * :image_url_front (String)
92
- # * :image_url_back (String)
93
- # * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
94
- # * :group_number (String)
95
- # * :plan_name (String)
96
- # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
97
- # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
98
- # * :payer_plan_group_id (String)
99
- # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
100
- # * :date_of_birth (Date)
101
- # * :address (Hash)
102
- # * :zip_plus_four_code (String)
103
- # * :address_1 (String)
104
- # * :address_2 (String)
105
- # * :city (String)
106
- # * :state (CandidApiClient::Commons::Types::State)
107
- # * :zip_code (String)
108
- # * :first_name (String)
109
- # * :last_name (String)
110
- # * :gender (CandidApiClient::Individual::Types::Gender)
111
- # * :subscriber_tertiary (Hash)
112
- # * :insurance_card (Hash)
113
- # * :member_id (String)
114
- # * :payer_name (String)
115
- # * :payer_id (String)
116
- # * :rx_bin (String)
117
- # * :rx_pcn (String)
118
- # * :image_url_front (String)
119
- # * :image_url_back (String)
120
- # * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
121
- # * :group_number (String)
122
- # * :plan_name (String)
123
- # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
124
- # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
125
- # * :payer_plan_group_id (String)
126
- # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
127
- # * :date_of_birth (Date)
128
- # * :address (Hash)
129
- # * :zip_plus_four_code (String)
130
- # * :address_1 (String)
131
- # * :address_2 (String)
132
- # * :city (String)
133
- # * :state (CandidApiClient::Commons::Types::State)
134
- # * :zip_code (String)
135
- # * :first_name (String)
136
- # * :last_name (String)
137
- # * :gender (CandidApiClient::Individual::Types::Gender)
138
- # * :interventions (Array<CandidApiClient::Encounters::V4::Types::InterventionOptional>)
139
- # * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstanceOptional>)
140
- # * :external_claim_submission (Hash)
141
- # * :claim_created_at (DateTime)
142
- # * :patient_control_number (String)
143
- # * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreateOptional>)
144
- # * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreateOptional>)
145
- # * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategoryOptional>)
146
- # * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBaseOptional>)
147
- # * :patient (Hash)
148
- # * :first_name (String)
149
- # * :last_name (String)
150
- # * :gender (CandidApiClient::Individual::Types::Gender)
151
- # * :external_id (String)
152
- # * :date_of_birth (Date)
153
- # * :address (Hash)
154
- # * :zip_plus_four_code (String)
155
- # * :address_1 (String)
156
- # * :address_2 (String)
157
- # * :city (String)
158
- # * :state (CandidApiClient::Commons::Types::State)
159
- # * :zip_code (String)
160
- # * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumberOptional>)
161
- # * :phone_consent (Boolean)
162
- # * :email (String)
163
- # * :email_consent (Boolean)
164
- # * :non_insurance_payers (Array<String>)
165
- # * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreateOptional>)
166
- # * :service_facility (Hash)
167
- # * :organization_name (String)
168
- # * :npi (String)
169
- # * :address (Hash)
170
- # * :zip_plus_four_code (String)
171
- # * :address_1 (String)
172
- # * :address_2 (String)
173
- # * :city (String)
174
- # * :state (CandidApiClient::Commons::Types::State)
175
- # * :zip_code (String)
176
- # * :secondary_identification (String)
177
- # * :rendering_provider (Hash)
178
- # * :npi (String)
179
- # * :taxonomy_code (String)
180
- # * :address (Hash)
181
- # * :zip_plus_four_code (String)
182
- # * :address_1 (String)
183
- # * :address_2 (String)
184
- # * :city (String)
185
- # * :state (CandidApiClient::Commons::Types::State)
186
- # * :zip_code (String)
187
- # * :first_name (String)
188
- # * :last_name (String)
189
- # * :organization_name (String)
190
- # * :initial_referring_provider (Hash)
191
- # * :npi (String)
192
- # * :taxonomy_code (String)
193
- # * :address (Hash)
194
- # * :zip_plus_four_code (String)
195
- # * :address_1 (String)
196
- # * :address_2 (String)
197
- # * :city (String)
198
- # * :state (CandidApiClient::Commons::Types::State)
199
- # * :zip_code (String)
200
- # * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
201
- # * :first_name (String)
202
- # * :last_name (String)
203
- # * :organization_name (String)
204
- # * :referring_provider (Hash)
205
- # * :npi (String)
206
- # * :taxonomy_code (String)
207
- # * :address (Hash)
208
- # * :zip_plus_four_code (String)
209
- # * :address_1 (String)
210
- # * :address_2 (String)
211
- # * :city (String)
212
- # * :state (CandidApiClient::Commons::Types::State)
213
- # * :zip_code (String)
214
- # * :first_name (String)
215
- # * :last_name (String)
216
- # * :organization_name (String)
217
- # * :supervising_provider (Hash)
218
- # * :npi (String)
219
- # * :taxonomy_code (String)
220
- # * :address (Hash)
221
- # * :zip_plus_four_code (String)
222
- # * :address_1 (String)
223
- # * :address_2 (String)
224
- # * :city (String)
225
- # * :state (CandidApiClient::Commons::Types::State)
226
- # * :zip_code (String)
227
- # * :first_name (String)
228
- # * :last_name (String)
229
- # * :organization_name (String)
230
- # * :billing_provider (Hash)
231
- # * :address (Hash)
232
- # * :zip_plus_four_code (String)
233
- # * :address_1 (String)
234
- # * :address_2 (String)
235
- # * :city (String)
236
- # * :state (CandidApiClient::Commons::Types::State)
237
- # * :zip_code (String)
238
- # * :tax_id (String)
239
- # * :npi (String)
240
- # * :taxonomy_code (String)
241
- # * :provider_commercial_license_type (CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType)
242
- # * :first_name (String)
243
- # * :last_name (String)
244
- # * :organization_name (String)
245
- # * :pay_to_address (Hash)
246
- # * :zip_plus_four_code (String)
247
- # * :address_1 (String)
248
- # * :address_2 (String)
249
- # * :city (String)
250
- # * :state (CandidApiClient::Commons::Types::State)
251
- # * :zip_code (String)
252
- # * :benefits_assigned_to_provider (Boolean)
253
- # * :prior_authorization_number (String)
254
- # * :external_id (String)
255
- # * :date_of_service (Date)
256
- # * :tag_ids (Array<String>)
257
- # * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
258
- # * :responsible_party (CandidApiClient::Encounters::V4::Types::ResponsiblePartyType)
259
- # * :provider_accepts_assignment (Boolean)
260
- # * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
261
- # * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
262
- # * :appointment_type (String)
263
- # * :end_date_of_service (Date)
264
- # * :additional_information (String)
265
- # * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
266
- # * :admission_date (Date)
267
- # * :discharge_date (Date)
268
- # * :onset_of_current_illness_or_symptom_date (Date)
269
- # * :last_menstrual_period_date (Date)
270
- # * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
271
- # * :patient_authorized_release (Boolean)
272
- # * :vitals (Hash)
273
- # * :height_in (Integer)
274
- # * :weight_lbs (Integer)
275
- # * :blood_pressure_systolic_mmhg (Integer)
276
- # * :blood_pressure_diastolic_mmhg (Integer)
277
- # * :body_temperature_f (Float)
278
- # * :hemoglobin_gdl (Float)
279
- # * :hematocrit_pct (Float)
280
- # * :referral_number (String)
281
- # * :secondary_payer_carrier_code (String)
282
- # @param charge_external_id [String] A client-specified unique ID to associate with this encounter; for example, your
283
- # internal encounter ID or a Dr. Chrono encounter ID. This field should not
284
- # contain PHI.
285
- # @param originating_system [String] An optional string field denoting the originating system of the charge.
286
- # @param claim_creation_category [String] An optional string field denoting the user defined category of the claim
287
- # creation.
288
- # @param ehr_source_url [String] External URL reference that links to Charge Capture details within the external
289
- # system (e.g. the EHR visit page). Send full URL format for the external link
290
- # (e.g. https://emr_charge_capture_url.com/123).
291
- # @param patient_external_id [String] The patient ID from the external EMR platform for the patient
292
- # @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge capture
293
- # @param request_options [CandidApiClient::RequestOptions]
294
- # @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapture]
295
- # @example
296
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
297
- # api.charge_capture.v_1.create(
298
- # data: { },
299
- # charge_external_id: "charge_external_id",
300
- # patient_external_id: "patient_external_id",
301
- # status: PLANNED
302
- # )
303
- def create(data:, charge_external_id:, patient_external_id:, status:, originating_system: nil, claim_creation_category: nil,
304
- ehr_source_url: nil, request_options: nil)
305
- response = @request_client.conn.post do |req|
306
- req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
307
- req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
308
- req.headers = {
309
- **(req.headers || {}),
310
- **@request_client.get_headers,
311
- **(request_options&.additional_headers || {})
312
- }.compact
313
- req.body = {
314
- **(request_options&.additional_body_parameters || {}),
315
- data: data,
316
- charge_external_id: charge_external_id,
317
- originating_system: originating_system,
318
- claim_creation_category: claim_creation_category,
319
- ehr_source_url: ehr_source_url,
320
- patient_external_id: patient_external_id,
321
- status: status
322
- }.compact
323
- req.url "#{@request_client.get_url(environment: CandidApi,
324
- request_options: request_options)}/api/charge_captures/v1"
325
- end
326
- CandidApiClient::ChargeCapture::V1::Types::ChargeCapture.from_json(json_object: response.body)
327
- end
328
-
329
- # @param charge_capture_id [String]
330
- # @param data [Hash] Request of type CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData, as a Hash
331
- # * :diagnoses (Array<CandidApiClient::Diagnoses::Types::DiagnosisCreateOptional>)
332
- # * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreateOptional>)
333
- # * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional>)
334
- # * :epsdt_referral (Hash)
335
- # * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
336
- # * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
337
- # * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
338
- # * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::MedicationOptional>)
339
- # * :guarantor (Hash)
340
- # * :first_name (String)
341
- # * :last_name (String)
342
- # * :external_id (String)
343
- # * :date_of_birth (Date)
344
- # * :address (Hash)
345
- # * :zip_plus_four_code (String)
346
- # * :address_1 (String)
347
- # * :address_2 (String)
348
- # * :city (String)
349
- # * :state (CandidApiClient::Commons::Types::State)
350
- # * :zip_code (String)
351
- # * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumberOptional>)
352
- # * :phone_consent (Boolean)
353
- # * :email (String)
354
- # * :email_consent (Boolean)
355
- # * :subscriber_primary (Hash)
356
- # * :insurance_card (Hash)
357
- # * :member_id (String)
358
- # * :payer_name (String)
359
- # * :payer_id (String)
360
- # * :rx_bin (String)
361
- # * :rx_pcn (String)
362
- # * :image_url_front (String)
363
- # * :image_url_back (String)
364
- # * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
365
- # * :group_number (String)
366
- # * :plan_name (String)
367
- # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
368
- # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
369
- # * :payer_plan_group_id (String)
370
- # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
371
- # * :date_of_birth (Date)
372
- # * :address (Hash)
373
- # * :zip_plus_four_code (String)
374
- # * :address_1 (String)
375
- # * :address_2 (String)
376
- # * :city (String)
377
- # * :state (CandidApiClient::Commons::Types::State)
378
- # * :zip_code (String)
379
- # * :first_name (String)
380
- # * :last_name (String)
381
- # * :gender (CandidApiClient::Individual::Types::Gender)
382
- # * :subscriber_secondary (Hash)
383
- # * :insurance_card (Hash)
384
- # * :member_id (String)
385
- # * :payer_name (String)
386
- # * :payer_id (String)
387
- # * :rx_bin (String)
388
- # * :rx_pcn (String)
389
- # * :image_url_front (String)
390
- # * :image_url_back (String)
391
- # * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
392
- # * :group_number (String)
393
- # * :plan_name (String)
394
- # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
395
- # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
396
- # * :payer_plan_group_id (String)
397
- # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
398
- # * :date_of_birth (Date)
399
- # * :address (Hash)
400
- # * :zip_plus_four_code (String)
401
- # * :address_1 (String)
402
- # * :address_2 (String)
403
- # * :city (String)
404
- # * :state (CandidApiClient::Commons::Types::State)
405
- # * :zip_code (String)
406
- # * :first_name (String)
407
- # * :last_name (String)
408
- # * :gender (CandidApiClient::Individual::Types::Gender)
409
- # * :subscriber_tertiary (Hash)
410
- # * :insurance_card (Hash)
411
- # * :member_id (String)
412
- # * :payer_name (String)
413
- # * :payer_id (String)
414
- # * :rx_bin (String)
415
- # * :rx_pcn (String)
416
- # * :image_url_front (String)
417
- # * :image_url_back (String)
418
- # * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
419
- # * :group_number (String)
420
- # * :plan_name (String)
421
- # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
422
- # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
423
- # * :payer_plan_group_id (String)
424
- # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
425
- # * :date_of_birth (Date)
426
- # * :address (Hash)
427
- # * :zip_plus_four_code (String)
428
- # * :address_1 (String)
429
- # * :address_2 (String)
430
- # * :city (String)
431
- # * :state (CandidApiClient::Commons::Types::State)
432
- # * :zip_code (String)
433
- # * :first_name (String)
434
- # * :last_name (String)
435
- # * :gender (CandidApiClient::Individual::Types::Gender)
436
- # * :interventions (Array<CandidApiClient::Encounters::V4::Types::InterventionOptional>)
437
- # * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstanceOptional>)
438
- # * :external_claim_submission (Hash)
439
- # * :claim_created_at (DateTime)
440
- # * :patient_control_number (String)
441
- # * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreateOptional>)
442
- # * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreateOptional>)
443
- # * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategoryOptional>)
444
- # * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBaseOptional>)
445
- # * :patient (Hash)
446
- # * :first_name (String)
447
- # * :last_name (String)
448
- # * :gender (CandidApiClient::Individual::Types::Gender)
449
- # * :external_id (String)
450
- # * :date_of_birth (Date)
451
- # * :address (Hash)
452
- # * :zip_plus_four_code (String)
453
- # * :address_1 (String)
454
- # * :address_2 (String)
455
- # * :city (String)
456
- # * :state (CandidApiClient::Commons::Types::State)
457
- # * :zip_code (String)
458
- # * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumberOptional>)
459
- # * :phone_consent (Boolean)
460
- # * :email (String)
461
- # * :email_consent (Boolean)
462
- # * :non_insurance_payers (Array<String>)
463
- # * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreateOptional>)
464
- # * :service_facility (Hash)
465
- # * :organization_name (String)
466
- # * :npi (String)
467
- # * :address (Hash)
468
- # * :zip_plus_four_code (String)
469
- # * :address_1 (String)
470
- # * :address_2 (String)
471
- # * :city (String)
472
- # * :state (CandidApiClient::Commons::Types::State)
473
- # * :zip_code (String)
474
- # * :secondary_identification (String)
475
- # * :rendering_provider (Hash)
476
- # * :npi (String)
477
- # * :taxonomy_code (String)
478
- # * :address (Hash)
479
- # * :zip_plus_four_code (String)
480
- # * :address_1 (String)
481
- # * :address_2 (String)
482
- # * :city (String)
483
- # * :state (CandidApiClient::Commons::Types::State)
484
- # * :zip_code (String)
485
- # * :first_name (String)
486
- # * :last_name (String)
487
- # * :organization_name (String)
488
- # * :initial_referring_provider (Hash)
489
- # * :npi (String)
490
- # * :taxonomy_code (String)
491
- # * :address (Hash)
492
- # * :zip_plus_four_code (String)
493
- # * :address_1 (String)
494
- # * :address_2 (String)
495
- # * :city (String)
496
- # * :state (CandidApiClient::Commons::Types::State)
497
- # * :zip_code (String)
498
- # * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
499
- # * :first_name (String)
500
- # * :last_name (String)
501
- # * :organization_name (String)
502
- # * :referring_provider (Hash)
503
- # * :npi (String)
504
- # * :taxonomy_code (String)
505
- # * :address (Hash)
506
- # * :zip_plus_four_code (String)
507
- # * :address_1 (String)
508
- # * :address_2 (String)
509
- # * :city (String)
510
- # * :state (CandidApiClient::Commons::Types::State)
511
- # * :zip_code (String)
512
- # * :first_name (String)
513
- # * :last_name (String)
514
- # * :organization_name (String)
515
- # * :supervising_provider (Hash)
516
- # * :npi (String)
517
- # * :taxonomy_code (String)
518
- # * :address (Hash)
519
- # * :zip_plus_four_code (String)
520
- # * :address_1 (String)
521
- # * :address_2 (String)
522
- # * :city (String)
523
- # * :state (CandidApiClient::Commons::Types::State)
524
- # * :zip_code (String)
525
- # * :first_name (String)
526
- # * :last_name (String)
527
- # * :organization_name (String)
528
- # * :billing_provider (Hash)
529
- # * :address (Hash)
530
- # * :zip_plus_four_code (String)
531
- # * :address_1 (String)
532
- # * :address_2 (String)
533
- # * :city (String)
534
- # * :state (CandidApiClient::Commons::Types::State)
535
- # * :zip_code (String)
536
- # * :tax_id (String)
537
- # * :npi (String)
538
- # * :taxonomy_code (String)
539
- # * :provider_commercial_license_type (CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType)
540
- # * :first_name (String)
541
- # * :last_name (String)
542
- # * :organization_name (String)
543
- # * :pay_to_address (Hash)
544
- # * :zip_plus_four_code (String)
545
- # * :address_1 (String)
546
- # * :address_2 (String)
547
- # * :city (String)
548
- # * :state (CandidApiClient::Commons::Types::State)
549
- # * :zip_code (String)
550
- # * :benefits_assigned_to_provider (Boolean)
551
- # * :prior_authorization_number (String)
552
- # * :external_id (String)
553
- # * :date_of_service (Date)
554
- # * :tag_ids (Array<String>)
555
- # * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
556
- # * :responsible_party (CandidApiClient::Encounters::V4::Types::ResponsiblePartyType)
557
- # * :provider_accepts_assignment (Boolean)
558
- # * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
559
- # * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
560
- # * :appointment_type (String)
561
- # * :end_date_of_service (Date)
562
- # * :additional_information (String)
563
- # * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
564
- # * :admission_date (Date)
565
- # * :discharge_date (Date)
566
- # * :onset_of_current_illness_or_symptom_date (Date)
567
- # * :last_menstrual_period_date (Date)
568
- # * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
569
- # * :patient_authorized_release (Boolean)
570
- # * :vitals (Hash)
571
- # * :height_in (Integer)
572
- # * :weight_lbs (Integer)
573
- # * :blood_pressure_systolic_mmhg (Integer)
574
- # * :blood_pressure_diastolic_mmhg (Integer)
575
- # * :body_temperature_f (Float)
576
- # * :hemoglobin_gdl (Float)
577
- # * :hematocrit_pct (Float)
578
- # * :referral_number (String)
579
- # * :secondary_payer_carrier_code (String)
580
- # @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
581
- # for example, your internal encounter ID or a Dr. Chrono encounter ID.
582
- # This field should not contain PHI.
583
- # @param ehr_source_url [String] External URL reference that links to Charge Capture details within the external
584
- # system (e.g. the EHR visit page).
585
- # Send full URL format for the external link (e.g.
586
- # https://emr_charge_capture_url.com/123).
587
- # @param originating_system [String] An optional string field denoting the originating system of the charge.
588
- # @param claim_creation_category [String] An optional string field denoting the user defined category of the claim
589
- # creation.
590
- # @param patient_external_id [String] The patient ID from the external EMR platform for the patient
591
- # @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge capture
592
- # @param request_options [CandidApiClient::RequestOptions]
593
- # @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapture]
594
- # @example
595
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
596
- # api.charge_capture.v_1.update(charge_capture_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
597
- def update(charge_capture_id:, data: nil, charge_external_id: nil, ehr_source_url: nil,
598
- originating_system: nil, claim_creation_category: nil, patient_external_id: nil, status: nil, request_options: nil)
599
- response = @request_client.conn.patch do |req|
600
- req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
601
- req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
602
- req.headers = {
603
- **(req.headers || {}),
604
- **@request_client.get_headers,
605
- **(request_options&.additional_headers || {})
606
- }.compact
607
- req.body = {
608
- **(request_options&.additional_body_parameters || {}),
609
- data: data,
610
- charge_external_id: charge_external_id,
611
- ehr_source_url: ehr_source_url,
612
- originating_system: originating_system,
613
- claim_creation_category: claim_creation_category,
614
- patient_external_id: patient_external_id,
615
- status: status
616
- }.compact
617
- req.url "#{@request_client.get_url(environment: CandidApi,
618
- request_options: request_options)}/api/charge_captures/v1/#{charge_capture_id}"
619
- end
620
- CandidApiClient::ChargeCapture::V1::Types::ChargeCapture.from_json(json_object: response.body)
621
- end
622
-
623
- # @param charge_capture_id [String]
624
- # @param request_options [CandidApiClient::RequestOptions]
625
- # @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapture]
626
- # @example
627
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
628
- # api.charge_capture.v_1.get(charge_capture_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
629
- def get(charge_capture_id:, request_options: nil)
630
- response = @request_client.conn.get do |req|
631
- req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
632
- req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
633
- req.headers = {
634
- **(req.headers || {}),
635
- **@request_client.get_headers,
636
- **(request_options&.additional_headers || {})
637
- }.compact
638
- req.url "#{@request_client.get_url(environment: CandidApi,
639
- request_options: request_options)}/api/charge_captures/v1/#{charge_capture_id}"
640
- end
641
- CandidApiClient::ChargeCapture::V1::Types::ChargeCapture.from_json(json_object: response.body)
642
- end
643
-
644
- # @param limit [Integer] Maximum number of entities per page, defaults to 100.
645
- # @param sort [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureSortField] Defaults to created_at
646
- # @param sort_direction [CandidApiClient::Commons::Types::SortDirection] Sort direction. Defaults to descending order if not provided.
647
- # @param page_token [String]
648
- # @param patient_external_id [String] The patient ID from the external EMR platform for the patient
649
- # @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge captures
650
- # @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
651
- # for example, your internal encounter ID or a Dr. Chrono encounter ID.
652
- # This field should not contain PHI.
653
- # @param date_of_service_min [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
654
- # This date must be the local date in the timezone where the service occurred.
655
- # @param date_of_service_max [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
656
- # This date must be the local date in the timezone where the service occurred.
657
- # @param claim_ids [String] A list of claim IDs to filter by. This will return all charge captures that have
658
- # a resulting claim with one of the IDs in this list.
659
- # @param claim_creation_ids [String] A list of Claim Creation IDs to filter by.
660
- # @param billing_provider_npis [String] A list of billing provider NPIs to filter by. This will return all charge
661
- # captures with one of the NPIs in this list.
662
- # @param service_facility_name [String] A string to filter by. This will return all charge captures with this service
663
- # facility name.
664
- # @param primary_payer_ids [String] A list of primary payer IDs to filter by. This will return all charge captures
665
- # with one of the primary payer IDs in this list.
666
- # @param rendering_provider_npis [String] A list of rendering provider NPIs to filter by. This will return all charge
667
- # captures with one of the NPIs in this list.
668
- # @param rendering_provider_names [String] A list of rendering provider names to filter by. This will return all charge
669
- # captures with one of the names in this list.
670
- # @param supervising_provider_npis [String] A list of supervising provider NPIs to filter by. This will return all charge
671
- # captures with one of the NPIs in this list.
672
- # @param supervising_provider_names [String] A list of supervising provider names to filter by. This will return all charge
673
- # captures with one of the names in this list.
674
- # @param exclude_charges_linked_to_claims [Boolean] Whether to exclude charge captures which are part of a claim creation.
675
- # @param patient_external_id_ranked_sort [String] The patient ID from the external EMR platform for the patient
676
- # @param status_ranked_sort [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] The charge capture status to show first
677
- # @param charge_external_id_ranked_sort [String] A client-specified unique ID to associate with this encounter;
678
- # for example, your internal encounter ID or a Dr. Chrono encounter ID.
679
- # This field should not contain PHI.
680
- # @param date_of_service_min_ranked_sort [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
681
- # This date must be the local date in the timezone where the service occurred.
682
- # @param date_of_service_max_ranked_sort [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
683
- # This date must be the local date in the timezone where the service occurred.
684
- # @param search_term [String] Filter by any of the following fields: charge_id, claim_id, patient external_id,
685
- # patient date of birth, patient first name, patient last name,
686
- # or charge external id.
687
- # @param billable_status [CandidApiClient::Encounters::V4::Types::BillableStatusType] Defines if the Encounter is to be billed by Candid to the responsible_party.
688
- # Examples for when this should be set to NOT_BILLABLE include if the Encounter
689
- # has not occurred yet or if there is no intention of ever billing the
690
- # responsible_party.
691
- # @param responsible_party [CandidApiClient::Encounters::V4::Types::ResponsiblePartyType] Defines the party to be billed with the initial balance owed on the claim. Use
692
- # SELF_PAY if you intend to bill self pay/cash pay.
693
- # @param claim_ids_ranked_sort [String] A list of claim IDs to show first. This will return all charge captures that
694
- # have a resulting claim with one of the IDs in this list.
695
- # @param claim_creation_ids_ranked_sort [String] A list of Claim Creation IDs to show first.
696
- # @param billing_provider_npis_ranked_sort [String] A list of billing provider NPIs to show first. This will return all charge
697
- # captures with one of the NPIs in this list.
698
- # @param service_facility_name_ranked_sort [String] A string to show first. This will return all charge captures with this service
699
- # facility name.
700
- # @param primary_payer_ids_ranked_sort [String] A list of primary payer IDs to show first. This will return all charge captures
701
- # with one of the primary payer IDs in this list.
702
- # @param rendering_provider_npis_ranked_sort [String] A list of rendering provider NPIs to show first. This will return all charge
703
- # captures with one of the NPIs in this list.
704
- # @param rendering_provider_names_ranked_sort [String] A list of rendering provider names to show first. This will return all charge
705
- # captures with one of the names in this list.
706
- # @param supervising_provider_npis_ranked_sort [String] A list of supervising provider NPIs to show first. This will return all charge
707
- # captures with one of the NPIs in this list.
708
- # @param supervising_provider_names_ranked_sort [String] A list of supervising provider names to show first. This will return all charge
709
- # captures with one of the names in this list.
710
- # @param request_options [CandidApiClient::RequestOptions]
711
- # @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage]
712
- # @example
713
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
714
- # api.charge_capture.v_1.get_all
715
- def get_all(limit: nil, sort: nil, sort_direction: nil, page_token: nil, patient_external_id: nil, status: nil,
716
- charge_external_id: nil, date_of_service_min: nil, date_of_service_max: nil, claim_ids: nil, claim_creation_ids: nil, billing_provider_npis: nil, service_facility_name: nil, primary_payer_ids: nil, rendering_provider_npis: nil, rendering_provider_names: nil, supervising_provider_npis: nil, supervising_provider_names: nil, exclude_charges_linked_to_claims: nil, patient_external_id_ranked_sort: nil, status_ranked_sort: nil, charge_external_id_ranked_sort: nil, date_of_service_min_ranked_sort: nil, date_of_service_max_ranked_sort: nil, search_term: nil, billable_status: nil, responsible_party: nil, claim_ids_ranked_sort: nil, claim_creation_ids_ranked_sort: nil, billing_provider_npis_ranked_sort: nil, service_facility_name_ranked_sort: nil, primary_payer_ids_ranked_sort: nil, rendering_provider_npis_ranked_sort: nil, rendering_provider_names_ranked_sort: nil, supervising_provider_npis_ranked_sort: nil, supervising_provider_names_ranked_sort: nil, request_options: nil)
717
- response = @request_client.conn.get do |req|
718
- req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
719
- req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
720
- req.headers = {
721
- **(req.headers || {}),
722
- **@request_client.get_headers,
723
- **(request_options&.additional_headers || {})
724
- }.compact
725
- req.params = {
726
- **(request_options&.additional_query_parameters || {}),
727
- "limit": limit,
728
- "sort": sort,
729
- "sort_direction": sort_direction,
730
- "page_token": page_token,
731
- "patient_external_id": patient_external_id,
732
- "status": status,
733
- "charge_external_id": charge_external_id,
734
- "date_of_service_min": date_of_service_min,
735
- "date_of_service_max": date_of_service_max,
736
- "claim_ids": claim_ids,
737
- "claim_creation_ids": claim_creation_ids,
738
- "billing_provider_npis": billing_provider_npis,
739
- "service_facility_name": service_facility_name,
740
- "primary_payer_ids": primary_payer_ids,
741
- "rendering_provider_npis": rendering_provider_npis,
742
- "rendering_provider_names": rendering_provider_names,
743
- "supervising_provider_npis": supervising_provider_npis,
744
- "supervising_provider_names": supervising_provider_names,
745
- "exclude_charges_linked_to_claims": exclude_charges_linked_to_claims,
746
- "patient_external_id_ranked_sort": patient_external_id_ranked_sort,
747
- "status_ranked_sort": status_ranked_sort,
748
- "charge_external_id_ranked_sort": charge_external_id_ranked_sort,
749
- "date_of_service_min_ranked_sort": date_of_service_min_ranked_sort,
750
- "date_of_service_max_ranked_sort": date_of_service_max_ranked_sort,
751
- "search_term": search_term,
752
- "billable_status": billable_status,
753
- "responsible_party": responsible_party,
754
- "claim_ids_ranked_sort": claim_ids_ranked_sort,
755
- "claim_creation_ids_ranked_sort": claim_creation_ids_ranked_sort,
756
- "billing_provider_npis_ranked_sort": billing_provider_npis_ranked_sort,
757
- "service_facility_name_ranked_sort": service_facility_name_ranked_sort,
758
- "primary_payer_ids_ranked_sort": primary_payer_ids_ranked_sort,
759
- "rendering_provider_npis_ranked_sort": rendering_provider_npis_ranked_sort,
760
- "rendering_provider_names_ranked_sort": rendering_provider_names_ranked_sort,
761
- "supervising_provider_npis_ranked_sort": supervising_provider_npis_ranked_sort,
762
- "supervising_provider_names_ranked_sort": supervising_provider_names_ranked_sort
763
- }.compact
764
- req.url "#{@request_client.get_url(environment: CandidApi,
765
- request_options: request_options)}/api/charge_captures/v1"
766
- end
767
- CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage.from_json(json_object: response.body)
768
- end
769
-
770
- # @param charge_capture_change_ids [Array<String>] A list of UUIDs corresponding to ChargeCapturePostBilledChanges.
771
- # All of the charges sent will be marked as resolved
772
- # @param resolved [Boolean] Whether the change has been resolved. If true, the change will be marked as
773
- # resolved.
774
- # If false, the change will be marked as unresolved.
775
- # @param request_options [CandidApiClient::RequestOptions]
776
- # @return [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange>]
777
- # @example
778
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
779
- # api.charge_capture.v_1.update_post_billed_changes(charge_capture_change_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], resolved: true)
780
- def update_post_billed_changes(charge_capture_change_ids:, resolved:, request_options: nil)
781
- response = @request_client.conn.patch do |req|
782
- req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
783
- req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
784
- req.headers = {
785
- **(req.headers || {}),
786
- **@request_client.get_headers,
787
- **(request_options&.additional_headers || {})
788
- }.compact
789
- req.body = {
790
- **(request_options&.additional_body_parameters || {}),
791
- charge_capture_change_ids: charge_capture_change_ids,
792
- resolved: resolved
793
- }.compact
794
- req.url "#{@request_client.get_url(environment: CandidApi,
795
- request_options: request_options)}/api/charge_captures/v1/changes"
796
- end
797
- parsed_json = JSON.parse(response.body)
798
- parsed_json&.map do |item|
799
- item = item.to_json
800
- CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange.from_json(json_object: item)
801
- end
802
- end
803
- end
804
-
805
- class AsyncV1Client
806
- # @return [CandidApiClient::AsyncRequestClient]
807
- attr_reader :request_client
808
-
809
- # @param request_client [CandidApiClient::AsyncRequestClient]
810
- # @return [CandidApiClient::ChargeCapture::V1::AsyncV1Client]
811
- def initialize(request_client:)
812
- @request_client = request_client
813
- end
814
-
815
- # @param data [Hash] Charge Capture data contains all the fields needed to create an encounter, but
816
- # listed as optional. Candid will use this data when attempting to bundle multiple
817
- # Charge Captures into a single encounter.Request of type CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData, as a Hash
818
- # * :diagnoses (Array<CandidApiClient::Diagnoses::Types::DiagnosisCreateOptional>)
819
- # * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreateOptional>)
820
- # * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional>)
821
- # * :epsdt_referral (Hash)
822
- # * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
823
- # * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
824
- # * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
825
- # * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::MedicationOptional>)
826
- # * :guarantor (Hash)
827
- # * :first_name (String)
828
- # * :last_name (String)
829
- # * :external_id (String)
830
- # * :date_of_birth (Date)
831
- # * :address (Hash)
832
- # * :zip_plus_four_code (String)
833
- # * :address_1 (String)
834
- # * :address_2 (String)
835
- # * :city (String)
836
- # * :state (CandidApiClient::Commons::Types::State)
837
- # * :zip_code (String)
838
- # * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumberOptional>)
839
- # * :phone_consent (Boolean)
840
- # * :email (String)
841
- # * :email_consent (Boolean)
842
- # * :subscriber_primary (Hash)
843
- # * :insurance_card (Hash)
844
- # * :member_id (String)
845
- # * :payer_name (String)
846
- # * :payer_id (String)
847
- # * :rx_bin (String)
848
- # * :rx_pcn (String)
849
- # * :image_url_front (String)
850
- # * :image_url_back (String)
851
- # * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
852
- # * :group_number (String)
853
- # * :plan_name (String)
854
- # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
855
- # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
856
- # * :payer_plan_group_id (String)
857
- # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
858
- # * :date_of_birth (Date)
859
- # * :address (Hash)
860
- # * :zip_plus_four_code (String)
861
- # * :address_1 (String)
862
- # * :address_2 (String)
863
- # * :city (String)
864
- # * :state (CandidApiClient::Commons::Types::State)
865
- # * :zip_code (String)
866
- # * :first_name (String)
867
- # * :last_name (String)
868
- # * :gender (CandidApiClient::Individual::Types::Gender)
869
- # * :subscriber_secondary (Hash)
870
- # * :insurance_card (Hash)
871
- # * :member_id (String)
872
- # * :payer_name (String)
873
- # * :payer_id (String)
874
- # * :rx_bin (String)
875
- # * :rx_pcn (String)
876
- # * :image_url_front (String)
877
- # * :image_url_back (String)
878
- # * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
879
- # * :group_number (String)
880
- # * :plan_name (String)
881
- # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
882
- # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
883
- # * :payer_plan_group_id (String)
884
- # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
885
- # * :date_of_birth (Date)
886
- # * :address (Hash)
887
- # * :zip_plus_four_code (String)
888
- # * :address_1 (String)
889
- # * :address_2 (String)
890
- # * :city (String)
891
- # * :state (CandidApiClient::Commons::Types::State)
892
- # * :zip_code (String)
893
- # * :first_name (String)
894
- # * :last_name (String)
895
- # * :gender (CandidApiClient::Individual::Types::Gender)
896
- # * :subscriber_tertiary (Hash)
897
- # * :insurance_card (Hash)
898
- # * :member_id (String)
899
- # * :payer_name (String)
900
- # * :payer_id (String)
901
- # * :rx_bin (String)
902
- # * :rx_pcn (String)
903
- # * :image_url_front (String)
904
- # * :image_url_back (String)
905
- # * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
906
- # * :group_number (String)
907
- # * :plan_name (String)
908
- # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
909
- # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
910
- # * :payer_plan_group_id (String)
911
- # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
912
- # * :date_of_birth (Date)
913
- # * :address (Hash)
914
- # * :zip_plus_four_code (String)
915
- # * :address_1 (String)
916
- # * :address_2 (String)
917
- # * :city (String)
918
- # * :state (CandidApiClient::Commons::Types::State)
919
- # * :zip_code (String)
920
- # * :first_name (String)
921
- # * :last_name (String)
922
- # * :gender (CandidApiClient::Individual::Types::Gender)
923
- # * :interventions (Array<CandidApiClient::Encounters::V4::Types::InterventionOptional>)
924
- # * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstanceOptional>)
925
- # * :external_claim_submission (Hash)
926
- # * :claim_created_at (DateTime)
927
- # * :patient_control_number (String)
928
- # * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreateOptional>)
929
- # * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreateOptional>)
930
- # * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategoryOptional>)
931
- # * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBaseOptional>)
932
- # * :patient (Hash)
933
- # * :first_name (String)
934
- # * :last_name (String)
935
- # * :gender (CandidApiClient::Individual::Types::Gender)
936
- # * :external_id (String)
937
- # * :date_of_birth (Date)
938
- # * :address (Hash)
939
- # * :zip_plus_four_code (String)
940
- # * :address_1 (String)
941
- # * :address_2 (String)
942
- # * :city (String)
943
- # * :state (CandidApiClient::Commons::Types::State)
944
- # * :zip_code (String)
945
- # * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumberOptional>)
946
- # * :phone_consent (Boolean)
947
- # * :email (String)
948
- # * :email_consent (Boolean)
949
- # * :non_insurance_payers (Array<String>)
950
- # * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreateOptional>)
951
- # * :service_facility (Hash)
952
- # * :organization_name (String)
953
- # * :npi (String)
954
- # * :address (Hash)
955
- # * :zip_plus_four_code (String)
956
- # * :address_1 (String)
957
- # * :address_2 (String)
958
- # * :city (String)
959
- # * :state (CandidApiClient::Commons::Types::State)
960
- # * :zip_code (String)
961
- # * :secondary_identification (String)
962
- # * :rendering_provider (Hash)
963
- # * :npi (String)
964
- # * :taxonomy_code (String)
965
- # * :address (Hash)
966
- # * :zip_plus_four_code (String)
967
- # * :address_1 (String)
968
- # * :address_2 (String)
969
- # * :city (String)
970
- # * :state (CandidApiClient::Commons::Types::State)
971
- # * :zip_code (String)
972
- # * :first_name (String)
973
- # * :last_name (String)
974
- # * :organization_name (String)
975
- # * :initial_referring_provider (Hash)
976
- # * :npi (String)
977
- # * :taxonomy_code (String)
978
- # * :address (Hash)
979
- # * :zip_plus_four_code (String)
980
- # * :address_1 (String)
981
- # * :address_2 (String)
982
- # * :city (String)
983
- # * :state (CandidApiClient::Commons::Types::State)
984
- # * :zip_code (String)
985
- # * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
986
- # * :first_name (String)
987
- # * :last_name (String)
988
- # * :organization_name (String)
989
- # * :referring_provider (Hash)
990
- # * :npi (String)
991
- # * :taxonomy_code (String)
992
- # * :address (Hash)
993
- # * :zip_plus_four_code (String)
994
- # * :address_1 (String)
995
- # * :address_2 (String)
996
- # * :city (String)
997
- # * :state (CandidApiClient::Commons::Types::State)
998
- # * :zip_code (String)
999
- # * :first_name (String)
1000
- # * :last_name (String)
1001
- # * :organization_name (String)
1002
- # * :supervising_provider (Hash)
1003
- # * :npi (String)
1004
- # * :taxonomy_code (String)
1005
- # * :address (Hash)
1006
- # * :zip_plus_four_code (String)
1007
- # * :address_1 (String)
1008
- # * :address_2 (String)
1009
- # * :city (String)
1010
- # * :state (CandidApiClient::Commons::Types::State)
1011
- # * :zip_code (String)
1012
- # * :first_name (String)
1013
- # * :last_name (String)
1014
- # * :organization_name (String)
1015
- # * :billing_provider (Hash)
1016
- # * :address (Hash)
1017
- # * :zip_plus_four_code (String)
1018
- # * :address_1 (String)
1019
- # * :address_2 (String)
1020
- # * :city (String)
1021
- # * :state (CandidApiClient::Commons::Types::State)
1022
- # * :zip_code (String)
1023
- # * :tax_id (String)
1024
- # * :npi (String)
1025
- # * :taxonomy_code (String)
1026
- # * :provider_commercial_license_type (CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType)
1027
- # * :first_name (String)
1028
- # * :last_name (String)
1029
- # * :organization_name (String)
1030
- # * :pay_to_address (Hash)
1031
- # * :zip_plus_four_code (String)
1032
- # * :address_1 (String)
1033
- # * :address_2 (String)
1034
- # * :city (String)
1035
- # * :state (CandidApiClient::Commons::Types::State)
1036
- # * :zip_code (String)
1037
- # * :benefits_assigned_to_provider (Boolean)
1038
- # * :prior_authorization_number (String)
1039
- # * :external_id (String)
1040
- # * :date_of_service (Date)
1041
- # * :tag_ids (Array<String>)
1042
- # * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
1043
- # * :responsible_party (CandidApiClient::Encounters::V4::Types::ResponsiblePartyType)
1044
- # * :provider_accepts_assignment (Boolean)
1045
- # * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
1046
- # * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
1047
- # * :appointment_type (String)
1048
- # * :end_date_of_service (Date)
1049
- # * :additional_information (String)
1050
- # * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
1051
- # * :admission_date (Date)
1052
- # * :discharge_date (Date)
1053
- # * :onset_of_current_illness_or_symptom_date (Date)
1054
- # * :last_menstrual_period_date (Date)
1055
- # * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
1056
- # * :patient_authorized_release (Boolean)
1057
- # * :vitals (Hash)
1058
- # * :height_in (Integer)
1059
- # * :weight_lbs (Integer)
1060
- # * :blood_pressure_systolic_mmhg (Integer)
1061
- # * :blood_pressure_diastolic_mmhg (Integer)
1062
- # * :body_temperature_f (Float)
1063
- # * :hemoglobin_gdl (Float)
1064
- # * :hematocrit_pct (Float)
1065
- # * :referral_number (String)
1066
- # * :secondary_payer_carrier_code (String)
1067
- # @param charge_external_id [String] A client-specified unique ID to associate with this encounter; for example, your
1068
- # internal encounter ID or a Dr. Chrono encounter ID. This field should not
1069
- # contain PHI.
1070
- # @param originating_system [String] An optional string field denoting the originating system of the charge.
1071
- # @param claim_creation_category [String] An optional string field denoting the user defined category of the claim
1072
- # creation.
1073
- # @param ehr_source_url [String] External URL reference that links to Charge Capture details within the external
1074
- # system (e.g. the EHR visit page). Send full URL format for the external link
1075
- # (e.g. https://emr_charge_capture_url.com/123).
1076
- # @param patient_external_id [String] The patient ID from the external EMR platform for the patient
1077
- # @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge capture
1078
- # @param request_options [CandidApiClient::RequestOptions]
1079
- # @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapture]
1080
- # @example
1081
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
1082
- # api.charge_capture.v_1.create(
1083
- # data: { },
1084
- # charge_external_id: "charge_external_id",
1085
- # patient_external_id: "patient_external_id",
1086
- # status: PLANNED
1087
- # )
1088
- def create(data:, charge_external_id:, patient_external_id:, status:, originating_system: nil, claim_creation_category: nil,
1089
- ehr_source_url: nil, request_options: nil)
1090
- Async do
1091
- response = @request_client.conn.post do |req|
1092
- req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
1093
- req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
1094
- req.headers = {
1095
- **(req.headers || {}),
1096
- **@request_client.get_headers,
1097
- **(request_options&.additional_headers || {})
1098
- }.compact
1099
- req.body = {
1100
- **(request_options&.additional_body_parameters || {}),
1101
- data: data,
1102
- charge_external_id: charge_external_id,
1103
- originating_system: originating_system,
1104
- claim_creation_category: claim_creation_category,
1105
- ehr_source_url: ehr_source_url,
1106
- patient_external_id: patient_external_id,
1107
- status: status
1108
- }.compact
1109
- req.url "#{@request_client.get_url(environment: CandidApi,
1110
- request_options: request_options)}/api/charge_captures/v1"
1111
- end
1112
- CandidApiClient::ChargeCapture::V1::Types::ChargeCapture.from_json(json_object: response.body)
1113
- end
1114
- end
1115
-
1116
- # @param charge_capture_id [String]
1117
- # @param data [Hash] Request of type CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData, as a Hash
1118
- # * :diagnoses (Array<CandidApiClient::Diagnoses::Types::DiagnosisCreateOptional>)
1119
- # * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreateOptional>)
1120
- # * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional>)
1121
- # * :epsdt_referral (Hash)
1122
- # * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
1123
- # * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
1124
- # * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
1125
- # * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::MedicationOptional>)
1126
- # * :guarantor (Hash)
1127
- # * :first_name (String)
1128
- # * :last_name (String)
1129
- # * :external_id (String)
1130
- # * :date_of_birth (Date)
1131
- # * :address (Hash)
1132
- # * :zip_plus_four_code (String)
1133
- # * :address_1 (String)
1134
- # * :address_2 (String)
1135
- # * :city (String)
1136
- # * :state (CandidApiClient::Commons::Types::State)
1137
- # * :zip_code (String)
1138
- # * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumberOptional>)
1139
- # * :phone_consent (Boolean)
1140
- # * :email (String)
1141
- # * :email_consent (Boolean)
1142
- # * :subscriber_primary (Hash)
1143
- # * :insurance_card (Hash)
1144
- # * :member_id (String)
1145
- # * :payer_name (String)
1146
- # * :payer_id (String)
1147
- # * :rx_bin (String)
1148
- # * :rx_pcn (String)
1149
- # * :image_url_front (String)
1150
- # * :image_url_back (String)
1151
- # * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
1152
- # * :group_number (String)
1153
- # * :plan_name (String)
1154
- # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
1155
- # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
1156
- # * :payer_plan_group_id (String)
1157
- # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
1158
- # * :date_of_birth (Date)
1159
- # * :address (Hash)
1160
- # * :zip_plus_four_code (String)
1161
- # * :address_1 (String)
1162
- # * :address_2 (String)
1163
- # * :city (String)
1164
- # * :state (CandidApiClient::Commons::Types::State)
1165
- # * :zip_code (String)
1166
- # * :first_name (String)
1167
- # * :last_name (String)
1168
- # * :gender (CandidApiClient::Individual::Types::Gender)
1169
- # * :subscriber_secondary (Hash)
1170
- # * :insurance_card (Hash)
1171
- # * :member_id (String)
1172
- # * :payer_name (String)
1173
- # * :payer_id (String)
1174
- # * :rx_bin (String)
1175
- # * :rx_pcn (String)
1176
- # * :image_url_front (String)
1177
- # * :image_url_back (String)
1178
- # * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
1179
- # * :group_number (String)
1180
- # * :plan_name (String)
1181
- # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
1182
- # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
1183
- # * :payer_plan_group_id (String)
1184
- # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
1185
- # * :date_of_birth (Date)
1186
- # * :address (Hash)
1187
- # * :zip_plus_four_code (String)
1188
- # * :address_1 (String)
1189
- # * :address_2 (String)
1190
- # * :city (String)
1191
- # * :state (CandidApiClient::Commons::Types::State)
1192
- # * :zip_code (String)
1193
- # * :first_name (String)
1194
- # * :last_name (String)
1195
- # * :gender (CandidApiClient::Individual::Types::Gender)
1196
- # * :subscriber_tertiary (Hash)
1197
- # * :insurance_card (Hash)
1198
- # * :member_id (String)
1199
- # * :payer_name (String)
1200
- # * :payer_id (String)
1201
- # * :rx_bin (String)
1202
- # * :rx_pcn (String)
1203
- # * :image_url_front (String)
1204
- # * :image_url_back (String)
1205
- # * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
1206
- # * :group_number (String)
1207
- # * :plan_name (String)
1208
- # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
1209
- # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
1210
- # * :payer_plan_group_id (String)
1211
- # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
1212
- # * :date_of_birth (Date)
1213
- # * :address (Hash)
1214
- # * :zip_plus_four_code (String)
1215
- # * :address_1 (String)
1216
- # * :address_2 (String)
1217
- # * :city (String)
1218
- # * :state (CandidApiClient::Commons::Types::State)
1219
- # * :zip_code (String)
1220
- # * :first_name (String)
1221
- # * :last_name (String)
1222
- # * :gender (CandidApiClient::Individual::Types::Gender)
1223
- # * :interventions (Array<CandidApiClient::Encounters::V4::Types::InterventionOptional>)
1224
- # * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstanceOptional>)
1225
- # * :external_claim_submission (Hash)
1226
- # * :claim_created_at (DateTime)
1227
- # * :patient_control_number (String)
1228
- # * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreateOptional>)
1229
- # * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreateOptional>)
1230
- # * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategoryOptional>)
1231
- # * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBaseOptional>)
1232
- # * :patient (Hash)
1233
- # * :first_name (String)
1234
- # * :last_name (String)
1235
- # * :gender (CandidApiClient::Individual::Types::Gender)
1236
- # * :external_id (String)
1237
- # * :date_of_birth (Date)
1238
- # * :address (Hash)
1239
- # * :zip_plus_four_code (String)
1240
- # * :address_1 (String)
1241
- # * :address_2 (String)
1242
- # * :city (String)
1243
- # * :state (CandidApiClient::Commons::Types::State)
1244
- # * :zip_code (String)
1245
- # * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumberOptional>)
1246
- # * :phone_consent (Boolean)
1247
- # * :email (String)
1248
- # * :email_consent (Boolean)
1249
- # * :non_insurance_payers (Array<String>)
1250
- # * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreateOptional>)
1251
- # * :service_facility (Hash)
1252
- # * :organization_name (String)
1253
- # * :npi (String)
1254
- # * :address (Hash)
1255
- # * :zip_plus_four_code (String)
1256
- # * :address_1 (String)
1257
- # * :address_2 (String)
1258
- # * :city (String)
1259
- # * :state (CandidApiClient::Commons::Types::State)
1260
- # * :zip_code (String)
1261
- # * :secondary_identification (String)
1262
- # * :rendering_provider (Hash)
1263
- # * :npi (String)
1264
- # * :taxonomy_code (String)
1265
- # * :address (Hash)
1266
- # * :zip_plus_four_code (String)
1267
- # * :address_1 (String)
1268
- # * :address_2 (String)
1269
- # * :city (String)
1270
- # * :state (CandidApiClient::Commons::Types::State)
1271
- # * :zip_code (String)
1272
- # * :first_name (String)
1273
- # * :last_name (String)
1274
- # * :organization_name (String)
1275
- # * :initial_referring_provider (Hash)
1276
- # * :npi (String)
1277
- # * :taxonomy_code (String)
1278
- # * :address (Hash)
1279
- # * :zip_plus_four_code (String)
1280
- # * :address_1 (String)
1281
- # * :address_2 (String)
1282
- # * :city (String)
1283
- # * :state (CandidApiClient::Commons::Types::State)
1284
- # * :zip_code (String)
1285
- # * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
1286
- # * :first_name (String)
1287
- # * :last_name (String)
1288
- # * :organization_name (String)
1289
- # * :referring_provider (Hash)
1290
- # * :npi (String)
1291
- # * :taxonomy_code (String)
1292
- # * :address (Hash)
1293
- # * :zip_plus_four_code (String)
1294
- # * :address_1 (String)
1295
- # * :address_2 (String)
1296
- # * :city (String)
1297
- # * :state (CandidApiClient::Commons::Types::State)
1298
- # * :zip_code (String)
1299
- # * :first_name (String)
1300
- # * :last_name (String)
1301
- # * :organization_name (String)
1302
- # * :supervising_provider (Hash)
1303
- # * :npi (String)
1304
- # * :taxonomy_code (String)
1305
- # * :address (Hash)
1306
- # * :zip_plus_four_code (String)
1307
- # * :address_1 (String)
1308
- # * :address_2 (String)
1309
- # * :city (String)
1310
- # * :state (CandidApiClient::Commons::Types::State)
1311
- # * :zip_code (String)
1312
- # * :first_name (String)
1313
- # * :last_name (String)
1314
- # * :organization_name (String)
1315
- # * :billing_provider (Hash)
1316
- # * :address (Hash)
1317
- # * :zip_plus_four_code (String)
1318
- # * :address_1 (String)
1319
- # * :address_2 (String)
1320
- # * :city (String)
1321
- # * :state (CandidApiClient::Commons::Types::State)
1322
- # * :zip_code (String)
1323
- # * :tax_id (String)
1324
- # * :npi (String)
1325
- # * :taxonomy_code (String)
1326
- # * :provider_commercial_license_type (CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType)
1327
- # * :first_name (String)
1328
- # * :last_name (String)
1329
- # * :organization_name (String)
1330
- # * :pay_to_address (Hash)
1331
- # * :zip_plus_four_code (String)
1332
- # * :address_1 (String)
1333
- # * :address_2 (String)
1334
- # * :city (String)
1335
- # * :state (CandidApiClient::Commons::Types::State)
1336
- # * :zip_code (String)
1337
- # * :benefits_assigned_to_provider (Boolean)
1338
- # * :prior_authorization_number (String)
1339
- # * :external_id (String)
1340
- # * :date_of_service (Date)
1341
- # * :tag_ids (Array<String>)
1342
- # * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
1343
- # * :responsible_party (CandidApiClient::Encounters::V4::Types::ResponsiblePartyType)
1344
- # * :provider_accepts_assignment (Boolean)
1345
- # * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
1346
- # * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
1347
- # * :appointment_type (String)
1348
- # * :end_date_of_service (Date)
1349
- # * :additional_information (String)
1350
- # * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
1351
- # * :admission_date (Date)
1352
- # * :discharge_date (Date)
1353
- # * :onset_of_current_illness_or_symptom_date (Date)
1354
- # * :last_menstrual_period_date (Date)
1355
- # * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
1356
- # * :patient_authorized_release (Boolean)
1357
- # * :vitals (Hash)
1358
- # * :height_in (Integer)
1359
- # * :weight_lbs (Integer)
1360
- # * :blood_pressure_systolic_mmhg (Integer)
1361
- # * :blood_pressure_diastolic_mmhg (Integer)
1362
- # * :body_temperature_f (Float)
1363
- # * :hemoglobin_gdl (Float)
1364
- # * :hematocrit_pct (Float)
1365
- # * :referral_number (String)
1366
- # * :secondary_payer_carrier_code (String)
1367
- # @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
1368
- # for example, your internal encounter ID or a Dr. Chrono encounter ID.
1369
- # This field should not contain PHI.
1370
- # @param ehr_source_url [String] External URL reference that links to Charge Capture details within the external
1371
- # system (e.g. the EHR visit page).
1372
- # Send full URL format for the external link (e.g.
1373
- # https://emr_charge_capture_url.com/123).
1374
- # @param originating_system [String] An optional string field denoting the originating system of the charge.
1375
- # @param claim_creation_category [String] An optional string field denoting the user defined category of the claim
1376
- # creation.
1377
- # @param patient_external_id [String] The patient ID from the external EMR platform for the patient
1378
- # @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge capture
1379
- # @param request_options [CandidApiClient::RequestOptions]
1380
- # @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapture]
1381
- # @example
1382
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
1383
- # api.charge_capture.v_1.update(charge_capture_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
1384
- def update(charge_capture_id:, data: nil, charge_external_id: nil, ehr_source_url: nil,
1385
- originating_system: nil, claim_creation_category: nil, patient_external_id: nil, status: nil, request_options: nil)
1386
- Async do
1387
- response = @request_client.conn.patch do |req|
1388
- req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
1389
- req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
1390
- req.headers = {
1391
- **(req.headers || {}),
1392
- **@request_client.get_headers,
1393
- **(request_options&.additional_headers || {})
1394
- }.compact
1395
- req.body = {
1396
- **(request_options&.additional_body_parameters || {}),
1397
- data: data,
1398
- charge_external_id: charge_external_id,
1399
- ehr_source_url: ehr_source_url,
1400
- originating_system: originating_system,
1401
- claim_creation_category: claim_creation_category,
1402
- patient_external_id: patient_external_id,
1403
- status: status
1404
- }.compact
1405
- req.url "#{@request_client.get_url(environment: CandidApi,
1406
- request_options: request_options)}/api/charge_captures/v1/#{charge_capture_id}"
1407
- end
1408
- CandidApiClient::ChargeCapture::V1::Types::ChargeCapture.from_json(json_object: response.body)
1409
- end
1410
- end
1411
-
1412
- # @param charge_capture_id [String]
1413
- # @param request_options [CandidApiClient::RequestOptions]
1414
- # @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapture]
1415
- # @example
1416
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
1417
- # api.charge_capture.v_1.get(charge_capture_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
1418
- def get(charge_capture_id:, request_options: nil)
1419
- Async do
1420
- response = @request_client.conn.get do |req|
1421
- req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
1422
- req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
1423
- req.headers = {
1424
- **(req.headers || {}),
1425
- **@request_client.get_headers,
1426
- **(request_options&.additional_headers || {})
1427
- }.compact
1428
- req.url "#{@request_client.get_url(environment: CandidApi,
1429
- request_options: request_options)}/api/charge_captures/v1/#{charge_capture_id}"
1430
- end
1431
- CandidApiClient::ChargeCapture::V1::Types::ChargeCapture.from_json(json_object: response.body)
1432
- end
1433
- end
1434
-
1435
- # @param limit [Integer] Maximum number of entities per page, defaults to 100.
1436
- # @param sort [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureSortField] Defaults to created_at
1437
- # @param sort_direction [CandidApiClient::Commons::Types::SortDirection] Sort direction. Defaults to descending order if not provided.
1438
- # @param page_token [String]
1439
- # @param patient_external_id [String] The patient ID from the external EMR platform for the patient
1440
- # @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge captures
1441
- # @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
1442
- # for example, your internal encounter ID or a Dr. Chrono encounter ID.
1443
- # This field should not contain PHI.
1444
- # @param date_of_service_min [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
1445
- # This date must be the local date in the timezone where the service occurred.
1446
- # @param date_of_service_max [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
1447
- # This date must be the local date in the timezone where the service occurred.
1448
- # @param claim_ids [String] A list of claim IDs to filter by. This will return all charge captures that have
1449
- # a resulting claim with one of the IDs in this list.
1450
- # @param claim_creation_ids [String] A list of Claim Creation IDs to filter by.
1451
- # @param billing_provider_npis [String] A list of billing provider NPIs to filter by. This will return all charge
1452
- # captures with one of the NPIs in this list.
1453
- # @param service_facility_name [String] A string to filter by. This will return all charge captures with this service
1454
- # facility name.
1455
- # @param primary_payer_ids [String] A list of primary payer IDs to filter by. This will return all charge captures
1456
- # with one of the primary payer IDs in this list.
1457
- # @param rendering_provider_npis [String] A list of rendering provider NPIs to filter by. This will return all charge
1458
- # captures with one of the NPIs in this list.
1459
- # @param rendering_provider_names [String] A list of rendering provider names to filter by. This will return all charge
1460
- # captures with one of the names in this list.
1461
- # @param supervising_provider_npis [String] A list of supervising provider NPIs to filter by. This will return all charge
1462
- # captures with one of the NPIs in this list.
1463
- # @param supervising_provider_names [String] A list of supervising provider names to filter by. This will return all charge
1464
- # captures with one of the names in this list.
1465
- # @param exclude_charges_linked_to_claims [Boolean] Whether to exclude charge captures which are part of a claim creation.
1466
- # @param patient_external_id_ranked_sort [String] The patient ID from the external EMR platform for the patient
1467
- # @param status_ranked_sort [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] The charge capture status to show first
1468
- # @param charge_external_id_ranked_sort [String] A client-specified unique ID to associate with this encounter;
1469
- # for example, your internal encounter ID or a Dr. Chrono encounter ID.
1470
- # This field should not contain PHI.
1471
- # @param date_of_service_min_ranked_sort [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
1472
- # This date must be the local date in the timezone where the service occurred.
1473
- # @param date_of_service_max_ranked_sort [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
1474
- # This date must be the local date in the timezone where the service occurred.
1475
- # @param search_term [String] Filter by any of the following fields: charge_id, claim_id, patient external_id,
1476
- # patient date of birth, patient first name, patient last name,
1477
- # or charge external id.
1478
- # @param billable_status [CandidApiClient::Encounters::V4::Types::BillableStatusType] Defines if the Encounter is to be billed by Candid to the responsible_party.
1479
- # Examples for when this should be set to NOT_BILLABLE include if the Encounter
1480
- # has not occurred yet or if there is no intention of ever billing the
1481
- # responsible_party.
1482
- # @param responsible_party [CandidApiClient::Encounters::V4::Types::ResponsiblePartyType] Defines the party to be billed with the initial balance owed on the claim. Use
1483
- # SELF_PAY if you intend to bill self pay/cash pay.
1484
- # @param claim_ids_ranked_sort [String] A list of claim IDs to show first. This will return all charge captures that
1485
- # have a resulting claim with one of the IDs in this list.
1486
- # @param claim_creation_ids_ranked_sort [String] A list of Claim Creation IDs to show first.
1487
- # @param billing_provider_npis_ranked_sort [String] A list of billing provider NPIs to show first. This will return all charge
1488
- # captures with one of the NPIs in this list.
1489
- # @param service_facility_name_ranked_sort [String] A string to show first. This will return all charge captures with this service
1490
- # facility name.
1491
- # @param primary_payer_ids_ranked_sort [String] A list of primary payer IDs to show first. This will return all charge captures
1492
- # with one of the primary payer IDs in this list.
1493
- # @param rendering_provider_npis_ranked_sort [String] A list of rendering provider NPIs to show first. This will return all charge
1494
- # captures with one of the NPIs in this list.
1495
- # @param rendering_provider_names_ranked_sort [String] A list of rendering provider names to show first. This will return all charge
1496
- # captures with one of the names in this list.
1497
- # @param supervising_provider_npis_ranked_sort [String] A list of supervising provider NPIs to show first. This will return all charge
1498
- # captures with one of the NPIs in this list.
1499
- # @param supervising_provider_names_ranked_sort [String] A list of supervising provider names to show first. This will return all charge
1500
- # captures with one of the names in this list.
1501
- # @param request_options [CandidApiClient::RequestOptions]
1502
- # @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage]
1503
- # @example
1504
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
1505
- # api.charge_capture.v_1.get_all
1506
- def get_all(limit: nil, sort: nil, sort_direction: nil, page_token: nil, patient_external_id: nil, status: nil,
1507
- charge_external_id: nil, date_of_service_min: nil, date_of_service_max: nil, claim_ids: nil, claim_creation_ids: nil, billing_provider_npis: nil, service_facility_name: nil, primary_payer_ids: nil, rendering_provider_npis: nil, rendering_provider_names: nil, supervising_provider_npis: nil, supervising_provider_names: nil, exclude_charges_linked_to_claims: nil, patient_external_id_ranked_sort: nil, status_ranked_sort: nil, charge_external_id_ranked_sort: nil, date_of_service_min_ranked_sort: nil, date_of_service_max_ranked_sort: nil, search_term: nil, billable_status: nil, responsible_party: nil, claim_ids_ranked_sort: nil, claim_creation_ids_ranked_sort: nil, billing_provider_npis_ranked_sort: nil, service_facility_name_ranked_sort: nil, primary_payer_ids_ranked_sort: nil, rendering_provider_npis_ranked_sort: nil, rendering_provider_names_ranked_sort: nil, supervising_provider_npis_ranked_sort: nil, supervising_provider_names_ranked_sort: nil, request_options: nil)
1508
- Async do
1509
- response = @request_client.conn.get do |req|
1510
- req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
1511
- req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
1512
- req.headers = {
1513
- **(req.headers || {}),
1514
- **@request_client.get_headers,
1515
- **(request_options&.additional_headers || {})
1516
- }.compact
1517
- req.params = {
1518
- **(request_options&.additional_query_parameters || {}),
1519
- "limit": limit,
1520
- "sort": sort,
1521
- "sort_direction": sort_direction,
1522
- "page_token": page_token,
1523
- "patient_external_id": patient_external_id,
1524
- "status": status,
1525
- "charge_external_id": charge_external_id,
1526
- "date_of_service_min": date_of_service_min,
1527
- "date_of_service_max": date_of_service_max,
1528
- "claim_ids": claim_ids,
1529
- "claim_creation_ids": claim_creation_ids,
1530
- "billing_provider_npis": billing_provider_npis,
1531
- "service_facility_name": service_facility_name,
1532
- "primary_payer_ids": primary_payer_ids,
1533
- "rendering_provider_npis": rendering_provider_npis,
1534
- "rendering_provider_names": rendering_provider_names,
1535
- "supervising_provider_npis": supervising_provider_npis,
1536
- "supervising_provider_names": supervising_provider_names,
1537
- "exclude_charges_linked_to_claims": exclude_charges_linked_to_claims,
1538
- "patient_external_id_ranked_sort": patient_external_id_ranked_sort,
1539
- "status_ranked_sort": status_ranked_sort,
1540
- "charge_external_id_ranked_sort": charge_external_id_ranked_sort,
1541
- "date_of_service_min_ranked_sort": date_of_service_min_ranked_sort,
1542
- "date_of_service_max_ranked_sort": date_of_service_max_ranked_sort,
1543
- "search_term": search_term,
1544
- "billable_status": billable_status,
1545
- "responsible_party": responsible_party,
1546
- "claim_ids_ranked_sort": claim_ids_ranked_sort,
1547
- "claim_creation_ids_ranked_sort": claim_creation_ids_ranked_sort,
1548
- "billing_provider_npis_ranked_sort": billing_provider_npis_ranked_sort,
1549
- "service_facility_name_ranked_sort": service_facility_name_ranked_sort,
1550
- "primary_payer_ids_ranked_sort": primary_payer_ids_ranked_sort,
1551
- "rendering_provider_npis_ranked_sort": rendering_provider_npis_ranked_sort,
1552
- "rendering_provider_names_ranked_sort": rendering_provider_names_ranked_sort,
1553
- "supervising_provider_npis_ranked_sort": supervising_provider_npis_ranked_sort,
1554
- "supervising_provider_names_ranked_sort": supervising_provider_names_ranked_sort
1555
- }.compact
1556
- req.url "#{@request_client.get_url(environment: CandidApi,
1557
- request_options: request_options)}/api/charge_captures/v1"
1558
- end
1559
- CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage.from_json(json_object: response.body)
1560
- end
1561
- end
1562
-
1563
- # @param charge_capture_change_ids [Array<String>] A list of UUIDs corresponding to ChargeCapturePostBilledChanges.
1564
- # All of the charges sent will be marked as resolved
1565
- # @param resolved [Boolean] Whether the change has been resolved. If true, the change will be marked as
1566
- # resolved.
1567
- # If false, the change will be marked as unresolved.
1568
- # @param request_options [CandidApiClient::RequestOptions]
1569
- # @return [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange>]
1570
- # @example
1571
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
1572
- # api.charge_capture.v_1.update_post_billed_changes(charge_capture_change_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], resolved: true)
1573
- def update_post_billed_changes(charge_capture_change_ids:, resolved:, request_options: nil)
1574
- Async do
1575
- response = @request_client.conn.patch do |req|
1576
- req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
1577
- req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
1578
- req.headers = {
1579
- **(req.headers || {}),
1580
- **@request_client.get_headers,
1581
- **(request_options&.additional_headers || {})
1582
- }.compact
1583
- req.body = {
1584
- **(request_options&.additional_body_parameters || {}),
1585
- charge_capture_change_ids: charge_capture_change_ids,
1586
- resolved: resolved
1587
- }.compact
1588
- req.url "#{@request_client.get_url(environment: CandidApi,
1589
- request_options: request_options)}/api/charge_captures/v1/changes"
1590
- end
1591
- parsed_json = JSON.parse(response.body)
1592
- parsed_json&.map do |item|
1593
- item = item.to_json
1594
- CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange.from_json(json_object: item)
1595
- end
1596
- end
1597
- end
1598
- end
1599
- end
1600
- end
1601
- end