candidhealth 1.14.3 → 1.17.3

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 (118) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candid/claims/types/claim.rb +1 -1
  3. data/lib/candid/client.rb +7 -7
  4. data/lib/candid/commons/types/{http_service_unavailable_error_message.rb → bad_request_error_message.rb} +1 -1
  5. data/lib/candid/commons/types/claim_adjustment_group_codes.rb +22 -0
  6. data/lib/candid/commons/types/internal_error_message.rb +11 -0
  7. data/lib/candid/commons/types/procedure_modifier.rb +1 -0
  8. data/lib/candid/contracts/client.rb +5 -0
  9. data/lib/candid/contracts/v_2/client.rb +4 -0
  10. data/lib/candid/contracts/v_3/client.rb +176 -0
  11. data/lib/candid/contracts/v_3/types/contract.rb +18 -0
  12. data/lib/candid/contracts/v_3/types/contract_base.rb +28 -0
  13. data/lib/candid/contracts/v_3/types/contract_create.rb +15 -0
  14. data/lib/candid/contracts/v_3/types/contract_create_union.rb +18 -0
  15. data/lib/candid/contracts/v_3/types/contract_service_facility.rb +14 -0
  16. data/lib/candid/contracts/v_3/types/contract_service_facility_base.rb +14 -0
  17. data/lib/candid/contracts/v_3/types/contract_service_facility_create.rb +15 -0
  18. data/lib/candid/contracts/v_3/types/contract_service_facility_update.rb +16 -0
  19. data/lib/candid/contracts/v_3/types/contract_type.rb +16 -0
  20. data/lib/candid/contracts/v_3/types/contract_union.rb +18 -0
  21. data/lib/candid/contracts/v_3/types/contract_update.rb +28 -0
  22. data/lib/candid/contracts/v_3/types/contract_update_union.rb +18 -0
  23. data/lib/candid/contracts/v_3/types/contract_with_providers_union.rb +18 -0
  24. data/lib/candid/contracts/v_3/types/contracts_page.rb +15 -0
  25. data/lib/candid/contracts/v_3/types/get_multi_contracts_request.rb +22 -0
  26. data/lib/candid/contracts/v_3/types/institutional_contract.rb +15 -0
  27. data/lib/candid/contracts/v_3/types/institutional_contract_create.rb +15 -0
  28. data/lib/candid/contracts/v_3/types/institutional_contract_update.rb +13 -0
  29. data/lib/candid/contracts/v_3/types/professional_contract.rb +13 -0
  30. data/lib/candid/contracts/v_3/types/professional_contract_create.rb +13 -0
  31. data/lib/candid/contracts/v_3/types/professional_contract_update.rb +13 -0
  32. data/lib/candid/eligibility/v_2/client.rb +0 -38
  33. data/lib/candid/encounter_providers/v_2/types/billing_provider.rb +3 -0
  34. data/lib/candid/encounter_providers/v_2/types/billing_provider_update.rb +3 -0
  35. data/lib/candid/encounter_providers/v_2/types/billing_provider_update_with_optional_address.rb +3 -0
  36. data/lib/candid/encounter_providers/v_2/types/encounter_provider.rb +3 -0
  37. data/lib/candid/encounter_providers/v_2/types/provider_secondary_identification.rb +16 -0
  38. data/lib/candid/{expected_network_status/v_2/types/line_of_business.rb → encounter_providers/v_2/types/provider_secondary_identification_qualifier.rb} +4 -5
  39. data/lib/candid/encounter_providers/v_2/types/rendering_provider.rb +3 -0
  40. data/lib/candid/encounter_providers/v_2/types/rendering_provider_update.rb +3 -0
  41. data/lib/candid/encounter_providers/v_2/types/rendering_provider_update_with_optional_address.rb +3 -0
  42. data/lib/candid/encounters/v_4/client.rb +15 -0
  43. data/lib/candid/encounters/v_4/types/encounter.rb +3 -0
  44. data/lib/candid/encounters/v_4/types/encounter_deep_optional.rb +3 -0
  45. data/lib/candid/encounters_universal/types/universal_encounter_create_base.rb +3 -0
  46. data/lib/candid/encounters_universal/types/universal_encounter_create_from_pre_encounter_base.rb +3 -0
  47. data/lib/candid/encounters_universal/types/universal_encounter_update_base.rb +3 -0
  48. data/lib/candid/{era → eras}/types/era.rb +1 -1
  49. data/lib/candid/{era → eras}/types/era_base.rb +1 -1
  50. data/lib/candid/{insurance_payments → events}/client.rb +3 -3
  51. data/lib/candid/{insurance_payments → events}/v_1/client.rb +11 -15
  52. data/lib/candid/events/v_1/types/event.rb +18 -0
  53. data/lib/candid/events/v_1/types/event_scan_page.rb +16 -0
  54. data/lib/candid/events/v_1/types/get_event_scan_request.rb +17 -0
  55. data/lib/candid/fee_schedules/v_3/client.rb +9 -1
  56. data/lib/candid/fee_schedules/v_3/types/payer_threshold.rb +6 -1
  57. data/lib/candid/financials/types/allocation_create.rb +1 -0
  58. data/lib/candid/financials/types/allocation_earmark_type.rb +19 -0
  59. data/lib/candid/insurance_adjudications/client.rb +17 -0
  60. data/lib/candid/{expected_network_status → insurance_adjudications}/v_1/client.rb +8 -9
  61. data/lib/candid/insurance_adjudications/v_1/types/claim_adjudication.rb +23 -0
  62. data/lib/candid/insurance_adjudications/v_1/types/insurance_adjudication.rb +21 -0
  63. data/lib/candid/insurance_adjudications/v_1/types/service_line_adjudication.rb +27 -0
  64. data/lib/candid/insurance_cards/v_2/types/insurance_card_base.rb +1 -0
  65. data/lib/candid/patient_ar/v_1/client.rb +0 -4
  66. data/lib/candid/patient_payments/v_4/types/card_payment_method.rb +11 -0
  67. data/lib/candid/patient_payments/v_4/types/cash_payment_method.rb +11 -0
  68. data/lib/candid/patient_payments/v_4/types/check_payment_method.rb +13 -0
  69. data/lib/candid/patient_payments/v_4/types/patient_payment.rb +3 -0
  70. data/lib/candid/patient_payments/v_4/types/payment_method.rb +19 -0
  71. data/lib/candid/patient_payments/v_4/types/payment_method_detail.rb +18 -0
  72. data/lib/candid/pre_encounter/eligibility_checks/v_1/types/eligibility_request.rb +2 -0
  73. data/lib/candid/related_causes_information/v_1/types/related_causes_code.rb +20 -0
  74. data/lib/candid/related_causes_information/v_1/types/related_causes_information.rb +19 -0
  75. data/lib/candid/related_causes_information/v_1/types/related_causes_information_create.rb +11 -0
  76. data/lib/candid/related_causes_information/v_1/types/related_causes_information_update.rb +11 -0
  77. data/lib/candid/service_lines/v_2/types/service_line.rb +2 -0
  78. data/lib/candid/service_lines/v_2/types/service_line_create_base_base.rb +2 -0
  79. data/lib/candid/service_lines/v_2/types/service_line_create_optional.rb +2 -0
  80. data/lib/candid/service_lines/v_2/types/service_line_create_standalone.rb +2 -0
  81. data/lib/candid/service_lines/v_2/types/service_line_update_base.rb +2 -0
  82. data/lib/candid/service_lines/v_2/types/test_result_type.rb +1 -0
  83. data/lib/candid/service_lines/v_2/types/universal_service_line_create_standalone.rb +2 -0
  84. data/lib/candid/tasks/commons/types/task_type.rb +1 -0
  85. data/lib/candid/version.rb +1 -1
  86. data/lib/candid/x_12/v_1/types/carc.rb +418 -0
  87. data/lib/candid/x_12/v_1/types/claim_adjustment_reason_code.rb +15 -0
  88. data/lib/candid/x_12/v_1/types/rarc.rb +1201 -0
  89. data/lib/candid/x_12/v_1/types/remittance_advice_remark_code.rb +13 -0
  90. data/lib/candid.rb +56 -36
  91. data/reference.md +515 -363
  92. metadata +54 -34
  93. data/lib/candid/expected_network_status/client.rb +0 -22
  94. data/lib/candid/expected_network_status/v_1/types/expected_network_status.rb +0 -17
  95. data/lib/candid/expected_network_status/v_1/types/expected_network_status_request.rb +0 -24
  96. data/lib/candid/expected_network_status/v_1/types/expected_network_status_response.rb +0 -17
  97. data/lib/candid/expected_network_status/v_2/client.rb +0 -66
  98. data/lib/candid/expected_network_status/v_2/types/compute_all_in_network_providers_request.rb +0 -25
  99. data/lib/candid/expected_network_status/v_2/types/compute_all_in_network_providers_response.rb +0 -16
  100. data/lib/candid/expected_network_status/v_2/types/compute_all_in_network_rendering_providers_result.rb +0 -21
  101. data/lib/candid/expected_network_status/v_2/types/empty_object.rb +0 -11
  102. data/lib/candid/expected_network_status/v_2/types/expected_network_status_check_error_message.rb +0 -13
  103. data/lib/candid/expected_network_status/v_2/types/expected_network_status_request_v_2.rb +0 -25
  104. data/lib/candid/expected_network_status/v_2/types/expected_network_status_response_v_2.rb +0 -16
  105. data/lib/candid/expected_network_status/v_2/types/expected_network_status_subscriber_information.rb +0 -17
  106. data/lib/candid/expected_network_status/v_2/types/expected_network_status_v_2.rb +0 -19
  107. data/lib/candid/expected_network_status/v_2/types/explanation.rb +0 -22
  108. data/lib/candid/expected_network_status/v_2/types/in_network_rendering_providers_detail.rb +0 -15
  109. data/lib/candid/expected_network_status/v_2/types/in_network_status.rb +0 -14
  110. data/lib/candid/expected_network_status/v_2/types/indeterminate_network_status.rb +0 -18
  111. data/lib/candid/expected_network_status/v_2/types/insurance_type.rb +0 -18
  112. data/lib/candid/expected_network_status/v_2/types/insurance_type_codes.rb +0 -19
  113. data/lib/candid/expected_network_status/v_2/types/out_of_network_status.rb +0 -17
  114. data/lib/candid/expected_network_status/v_2/types/service_type.rb +0 -55
  115. data/lib/candid/insurance_payments/v_1/types/get_multi_insurance_payment_request.rb +0 -22
  116. data/lib/candid/insurance_payments/v_1/types/insurance_payment.rb +0 -20
  117. data/lib/candid/insurance_payments/v_1/types/insurance_payment_sort_field.rb +0 -17
  118. data/lib/candid/insurance_payments/v_1/types/insurance_payments_page.rb +0 -15
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: candidhealth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.3
4
+ version: 1.17.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Candid
@@ -68,7 +68,9 @@ files:
68
68
  - lib/candid/clinical_trials/v_1/types/clinical_trial.rb
69
69
  - lib/candid/clinical_trials/v_1/types/clinical_trial_phase.rb
70
70
  - lib/candid/clinical_trials/v_1/types/mutable_clinical_trial.rb
71
+ - lib/candid/commons/types/bad_request_error_message.rb
71
72
  - lib/candid/commons/types/billing_provider_commercial_license_type.rb
73
+ - lib/candid/commons/types/claim_adjustment_group_codes.rb
72
74
  - lib/candid/commons/types/claim_submission_payer_responsibility_type.rb
73
75
  - lib/candid/commons/types/clearinghouse.rb
74
76
  - lib/candid/commons/types/date_range_optional_end.rb
@@ -78,9 +80,9 @@ files:
78
80
  - lib/candid/commons/types/entity_not_found_error_message.rb
79
81
  - lib/candid/commons/types/epsdt_referral_condition_indicator_code.rb
80
82
  - lib/candid/commons/types/facility_type_code.rb
81
- - lib/candid/commons/types/http_service_unavailable_error_message.rb
82
83
  - lib/candid/commons/types/insurance_type_code.rb
83
84
  - lib/candid/commons/types/intended_submission_medium.rb
85
+ - lib/candid/commons/types/internal_error_message.rb
84
86
  - lib/candid/commons/types/network_type.rb
85
87
  - lib/candid/commons/types/next_responsible_party.rb
86
88
  - lib/candid/commons/types/organization_not_authorized_error_message.rb
@@ -130,6 +132,28 @@ files:
130
132
  - lib/candid/contracts/v_2/types/get_multi_contracts_request.rb
131
133
  - lib/candid/contracts/v_2/types/insurance_types.rb
132
134
  - lib/candid/contracts/v_2/types/regions_update.rb
135
+ - lib/candid/contracts/v_3/client.rb
136
+ - lib/candid/contracts/v_3/types/contract.rb
137
+ - lib/candid/contracts/v_3/types/contract_base.rb
138
+ - lib/candid/contracts/v_3/types/contract_create.rb
139
+ - lib/candid/contracts/v_3/types/contract_create_union.rb
140
+ - lib/candid/contracts/v_3/types/contract_service_facility.rb
141
+ - lib/candid/contracts/v_3/types/contract_service_facility_base.rb
142
+ - lib/candid/contracts/v_3/types/contract_service_facility_create.rb
143
+ - lib/candid/contracts/v_3/types/contract_service_facility_update.rb
144
+ - lib/candid/contracts/v_3/types/contract_type.rb
145
+ - lib/candid/contracts/v_3/types/contract_union.rb
146
+ - lib/candid/contracts/v_3/types/contract_update.rb
147
+ - lib/candid/contracts/v_3/types/contract_update_union.rb
148
+ - lib/candid/contracts/v_3/types/contract_with_providers_union.rb
149
+ - lib/candid/contracts/v_3/types/contracts_page.rb
150
+ - lib/candid/contracts/v_3/types/get_multi_contracts_request.rb
151
+ - lib/candid/contracts/v_3/types/institutional_contract.rb
152
+ - lib/candid/contracts/v_3/types/institutional_contract_create.rb
153
+ - lib/candid/contracts/v_3/types/institutional_contract_update.rb
154
+ - lib/candid/contracts/v_3/types/professional_contract.rb
155
+ - lib/candid/contracts/v_3/types/professional_contract_create.rb
156
+ - lib/candid/contracts/v_3/types/professional_contract_update.rb
133
157
  - lib/candid/credentialing/client.rb
134
158
  - lib/candid/credentialing/v_2/client.rb
135
159
  - lib/candid/credentialing/v_2/types/base_credentialing_span.rb
@@ -190,6 +214,8 @@ files:
190
214
  - lib/candid/encounter_providers/v_2/types/ordering_provider.rb
191
215
  - lib/candid/encounter_providers/v_2/types/ordering_provider_optional.rb
192
216
  - lib/candid/encounter_providers/v_2/types/ordering_provider_update.rb
217
+ - lib/candid/encounter_providers/v_2/types/provider_secondary_identification.rb
218
+ - lib/candid/encounter_providers/v_2/types/provider_secondary_identification_qualifier.rb
193
219
  - lib/candid/encounter_providers/v_2/types/referring_provider.rb
194
220
  - lib/candid/encounter_providers/v_2/types/referring_provider_update.rb
195
221
  - lib/candid/encounter_providers/v_2/types/referring_provider_update_with_optional_address.rb
@@ -272,38 +298,19 @@ files:
272
298
  - lib/candid/encounters_universal/types/universal_encounter_create_from_pre_encounter_base.rb
273
299
  - lib/candid/encounters_universal/types/universal_encounter_update.rb
274
300
  - lib/candid/encounters_universal/types/universal_encounter_update_base.rb
275
- - lib/candid/era/types/era.rb
276
- - lib/candid/era/types/era_base.rb
301
+ - lib/candid/eras/types/era.rb
302
+ - lib/candid/eras/types/era_base.rb
277
303
  - lib/candid/errors/api_error.rb
278
304
  - lib/candid/errors/client_error.rb
279
305
  - lib/candid/errors/redirect_error.rb
280
306
  - lib/candid/errors/response_error.rb
281
307
  - lib/candid/errors/server_error.rb
282
308
  - lib/candid/errors/timeout_error.rb
283
- - lib/candid/expected_network_status/client.rb
284
- - lib/candid/expected_network_status/v_1/client.rb
285
- - lib/candid/expected_network_status/v_1/types/expected_network_status.rb
286
- - lib/candid/expected_network_status/v_1/types/expected_network_status_request.rb
287
- - lib/candid/expected_network_status/v_1/types/expected_network_status_response.rb
288
- - lib/candid/expected_network_status/v_2/client.rb
289
- - lib/candid/expected_network_status/v_2/types/compute_all_in_network_providers_request.rb
290
- - lib/candid/expected_network_status/v_2/types/compute_all_in_network_providers_response.rb
291
- - lib/candid/expected_network_status/v_2/types/compute_all_in_network_rendering_providers_result.rb
292
- - lib/candid/expected_network_status/v_2/types/empty_object.rb
293
- - lib/candid/expected_network_status/v_2/types/expected_network_status_check_error_message.rb
294
- - lib/candid/expected_network_status/v_2/types/expected_network_status_request_v_2.rb
295
- - lib/candid/expected_network_status/v_2/types/expected_network_status_response_v_2.rb
296
- - lib/candid/expected_network_status/v_2/types/expected_network_status_subscriber_information.rb
297
- - lib/candid/expected_network_status/v_2/types/expected_network_status_v_2.rb
298
- - lib/candid/expected_network_status/v_2/types/explanation.rb
299
- - lib/candid/expected_network_status/v_2/types/in_network_rendering_providers_detail.rb
300
- - lib/candid/expected_network_status/v_2/types/in_network_status.rb
301
- - lib/candid/expected_network_status/v_2/types/indeterminate_network_status.rb
302
- - lib/candid/expected_network_status/v_2/types/insurance_type.rb
303
- - lib/candid/expected_network_status/v_2/types/insurance_type_codes.rb
304
- - lib/candid/expected_network_status/v_2/types/line_of_business.rb
305
- - lib/candid/expected_network_status/v_2/types/out_of_network_status.rb
306
- - lib/candid/expected_network_status/v_2/types/service_type.rb
309
+ - lib/candid/events/client.rb
310
+ - lib/candid/events/v_1/client.rb
311
+ - lib/candid/events/v_1/types/event.rb
312
+ - lib/candid/events/v_1/types/event_scan_page.rb
313
+ - lib/candid/events/v_1/types/get_event_scan_request.rb
307
314
  - lib/candid/exports/client.rb
308
315
  - lib/candid/exports/v_3/client.rb
309
316
  - lib/candid/exports/v_3/types/get_exports_request.rb
@@ -353,6 +360,7 @@ files:
353
360
  - lib/candid/financials/types/account_type.rb
354
361
  - lib/candid/financials/types/allocation.rb
355
362
  - lib/candid/financials/types/allocation_create.rb
363
+ - lib/candid/financials/types/allocation_earmark_type.rb
356
364
  - lib/candid/financials/types/allocation_target.rb
357
365
  - lib/candid/financials/types/allocation_target_create.rb
358
366
  - lib/candid/financials/types/appointment_allocation_target.rb
@@ -465,16 +473,15 @@ files:
465
473
  - lib/candid/individual/types/subscriber_base_optional.rb
466
474
  - lib/candid/individual/types/subscriber_create.rb
467
475
  - lib/candid/individual/types/subscriber_create_optional.rb
476
+ - lib/candid/insurance_adjudications/client.rb
477
+ - lib/candid/insurance_adjudications/v_1/client.rb
478
+ - lib/candid/insurance_adjudications/v_1/types/claim_adjudication.rb
479
+ - lib/candid/insurance_adjudications/v_1/types/insurance_adjudication.rb
480
+ - lib/candid/insurance_adjudications/v_1/types/service_line_adjudication.rb
468
481
  - lib/candid/insurance_cards/v_2/types/insurance_card.rb
469
482
  - lib/candid/insurance_cards/v_2/types/insurance_card_base.rb
470
483
  - lib/candid/insurance_cards/v_2/types/insurance_card_create.rb
471
484
  - lib/candid/insurance_cards/v_2/types/insurance_card_create_optional.rb
472
- - lib/candid/insurance_payments/client.rb
473
- - lib/candid/insurance_payments/v_1/client.rb
474
- - lib/candid/insurance_payments/v_1/types/get_multi_insurance_payment_request.rb
475
- - lib/candid/insurance_payments/v_1/types/insurance_payment.rb
476
- - lib/candid/insurance_payments/v_1/types/insurance_payment_sort_field.rb
477
- - lib/candid/insurance_payments/v_1/types/insurance_payments_page.rb
478
485
  - lib/candid/insurance_refunds/client.rb
479
486
  - lib/candid/insurance_refunds/v_1/client.rb
480
487
  - lib/candid/insurance_refunds/v_1/types/get_multi_insurance_refunds_request.rb
@@ -605,12 +612,17 @@ files:
605
612
  - lib/candid/patient_payments/v_3/types/patient_payment_source.rb
606
613
  - lib/candid/patient_payments/v_3/types/patient_payment_status.rb
607
614
  - lib/candid/patient_payments/v_4/client.rb
615
+ - lib/candid/patient_payments/v_4/types/card_payment_method.rb
616
+ - lib/candid/patient_payments/v_4/types/cash_payment_method.rb
617
+ - lib/candid/patient_payments/v_4/types/check_payment_method.rb
608
618
  - lib/candid/patient_payments/v_4/types/get_multi_patient_payments_request.rb
609
619
  - lib/candid/patient_payments/v_4/types/patient_payment.rb
610
620
  - lib/candid/patient_payments/v_4/types/patient_payment_create.rb
611
621
  - lib/candid/patient_payments/v_4/types/patient_payment_sort_field.rb
612
622
  - lib/candid/patient_payments/v_4/types/patient_payment_update.rb
613
623
  - lib/candid/patient_payments/v_4/types/patient_payments_page.rb
624
+ - lib/candid/patient_payments/v_4/types/payment_method.rb
625
+ - lib/candid/patient_payments/v_4/types/payment_method_detail.rb
614
626
  - lib/candid/patient_refunds/client.rb
615
627
  - lib/candid/patient_refunds/v_1/client.rb
616
628
  - lib/candid/patient_refunds/v_1/types/get_multi_patient_refunds_request.rb
@@ -800,6 +812,10 @@ files:
800
812
  - lib/candid/pre_encounter/tags/v_1/types/mutable_tag.rb
801
813
  - lib/candid/pre_encounter/tags/v_1/types/tag.rb
802
814
  - lib/candid/pre_encounter/tags/v_1/types/tag_page.rb
815
+ - lib/candid/related_causes_information/v_1/types/related_causes_code.rb
816
+ - lib/candid/related_causes_information/v_1/types/related_causes_information.rb
817
+ - lib/candid/related_causes_information/v_1/types/related_causes_information_create.rb
818
+ - lib/candid/related_causes_information/v_1/types/related_causes_information_update.rb
803
819
  - lib/candid/service_facility/types/encounter_service_facility.rb
804
820
  - lib/candid/service_facility/types/encounter_service_facility_base.rb
805
821
  - lib/candid/service_facility/types/encounter_service_facility_update.rb
@@ -883,8 +899,12 @@ files:
883
899
  - lib/candid/write_offs/v_1/types/write_off_create.rb
884
900
  - lib/candid/write_offs/v_1/types/write_off_sort_field.rb
885
901
  - lib/candid/write_offs/v_1/types/write_offs_page.rb
902
+ - lib/candid/x_12/v_1/types/carc.rb
903
+ - lib/candid/x_12/v_1/types/claim_adjustment_reason_code.rb
886
904
  - lib/candid/x_12/v_1/types/patient_discharge_status_code.rb
887
905
  - lib/candid/x_12/v_1/types/point_of_origin_for_admission_or_visit_code.rb
906
+ - lib/candid/x_12/v_1/types/rarc.rb
907
+ - lib/candid/x_12/v_1/types/remittance_advice_remark_code.rb
888
908
  - lib/candid/x_12/v_1/types/type_of_admission_or_visit_code.rb
889
909
  - lib/candid/x_12/v_1/types/type_of_bill_composite.rb
890
910
  - lib/candid/x_12/v_1/types/type_of_bill_composite_base.rb
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module ExpectedNetworkStatus
5
- class Client
6
- # @return [Candid::ExpectedNetworkStatus::Client]
7
- def initialize(client:)
8
- @client = client
9
- end
10
-
11
- # @return [Candid::V1::Client]
12
- def v_1
13
- @v_1 ||= Candid::ExpectedNetworkStatus::V1::Client.new(client: @client)
14
- end
15
-
16
- # @return [Candid::V2::Client]
17
- def v_2
18
- @v_2 ||= Candid::ExpectedNetworkStatus::V2::Client.new(client: @client)
19
- end
20
- end
21
- end
22
- end
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module ExpectedNetworkStatus
5
- module V1
6
- module Types
7
- module ExpectedNetworkStatus
8
- extend Candid::Internal::Types::Enum
9
-
10
- IN_NETWORK = "in_network"
11
- OUT_OF_NETWORK = "out_of_network"
12
- UNKNOWN = "unknown"
13
- end
14
- end
15
- end
16
- end
17
- end
@@ -1,24 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module ExpectedNetworkStatus
5
- module V1
6
- module Types
7
- class ExpectedNetworkStatusRequest < Internal::Types::Model
8
- field :external_patient_id, -> { String }, optional: true, nullable: false
9
- field :subscriber_payer_id, -> { String }, optional: false, nullable: false
10
- field :subscriber_payer_name, -> { String }, optional: false, nullable: false
11
- field :subscriber_insurance_type, lambda {
12
- Candid::Commons::Types::InsuranceTypeCode
13
- }, optional: true, nullable: false
14
- field :subscriber_plan_name, -> { String }, optional: true, nullable: false
15
- field :billing_provider_npi, -> { String }, optional: false, nullable: false
16
- field :billing_provider_tin, -> { String }, optional: false, nullable: false
17
- field :rendering_provider_npi, -> { String }, optional: false, nullable: false
18
- field :contracted_state, -> { Candid::Commons::Types::State }, optional: false, nullable: false
19
- field :date_of_service, -> { String }, optional: false, nullable: false
20
- end
21
- end
22
- end
23
- end
24
- end
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module ExpectedNetworkStatus
5
- module V1
6
- module Types
7
- class ExpectedNetworkStatusResponse < Internal::Types::Model
8
- field :expected_network_status, lambda {
9
- Candid::ExpectedNetworkStatus::V1::Types::ExpectedNetworkStatus
10
- }, optional: false, nullable: false
11
- field :explanation, -> { String }, optional: false, nullable: false
12
- field :contract_id, -> { String }, optional: true, nullable: false
13
- end
14
- end
15
- end
16
- end
17
- end
@@ -1,66 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module ExpectedNetworkStatus
5
- module V2
6
- class Client
7
- # @return [Candid::ExpectedNetworkStatus::V2::Client]
8
- def initialize(client:)
9
- @client = client
10
- end
11
-
12
- # Computes the expected network status for a given rendering provider.
13
- # This endpoint is not available to all customers. Reach out to the Candid sales team
14
- # to discuss enabling this endpoint if it is not available for your organization.
15
- #
16
- # @return [Candid::ExpectedNetworkStatus::V2::Types::ExpectedNetworkStatusResponseV2]
17
- def compute_for_rendering_provider(request_options: {}, **params)
18
- _request = Candid::Internal::JSON::Request.new(
19
- base_url: request_options[:base_url] || Candid::Environment::PRODUCTION,
20
- method: "POST",
21
- path: "/api/expected-network-status/v2/compute/#{params[:rendering_provider_id]}",
22
- body: Candid::ExpectedNetworkStatus::V2::Types::ExpectedNetworkStatusRequestV2.new(params).to_h
23
- )
24
- begin
25
- _response = @client.send(_request)
26
- rescue Net::HTTPRequestTimeout
27
- raise Candid::Errors::TimeoutError
28
- end
29
- code = _response.code.to_i
30
- if code.between?(200, 299)
31
- Candid::ExpectedNetworkStatus::V2::Types::ExpectedNetworkStatusResponseV2.load(_response.body)
32
- else
33
- error_class = Candid::Errors::ResponseError.subclass_for_code(code)
34
- raise error_class.new(_response.body, code: code)
35
- end
36
- end
37
-
38
- # Computes all the in network providers for a given set of inputs.
39
- # This endpoint is not available to all customers. Reach out to the Candid sales team
40
- # to discuss enabling this endpoint if it is not available for your organization.
41
- #
42
- # @return [Candid::ExpectedNetworkStatus::V2::Types::ComputeAllInNetworkProvidersResponse]
43
- def compute_all_in_network_providers(request_options: {}, **params)
44
- _request = Candid::Internal::JSON::Request.new(
45
- base_url: request_options[:base_url] || Candid::Environment::PRODUCTION,
46
- method: "POST",
47
- path: "/api/expected-network-status/v2/compute",
48
- body: Candid::ExpectedNetworkStatus::V2::Types::ComputeAllInNetworkProvidersRequest.new(params).to_h
49
- )
50
- begin
51
- _response = @client.send(_request)
52
- rescue Net::HTTPRequestTimeout
53
- raise Candid::Errors::TimeoutError
54
- end
55
- code = _response.code.to_i
56
- if code.between?(200, 299)
57
- Candid::ExpectedNetworkStatus::V2::Types::ComputeAllInNetworkProvidersResponse.load(_response.body)
58
- else
59
- error_class = Candid::Errors::ResponseError.subclass_for_code(code)
60
- raise error_class.new(_response.body, code: code)
61
- end
62
- end
63
- end
64
- end
65
- end
66
- end
@@ -1,25 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module ExpectedNetworkStatus
5
- module V2
6
- module Types
7
- class ComputeAllInNetworkProvidersRequest < Internal::Types::Model
8
- field :service_type, lambda {
9
- Candid::ExpectedNetworkStatus::V2::Types::ServiceType
10
- }, optional: false, nullable: false
11
- field :place_of_service_code, lambda {
12
- Candid::Commons::Types::FacilityTypeCode
13
- }, optional: false, nullable: false
14
- field :subscriber_information, lambda {
15
- Candid::ExpectedNetworkStatus::V2::Types::ExpectedNetworkStatusSubscriberInformation
16
- }, optional: false, nullable: false
17
- field :patient_address, -> { Candid::Commons::Types::StreetAddressShortZip }, optional: false, nullable: false
18
- field :billing_provider_id, -> { String }, optional: false, nullable: false
19
- field :organization_service_facility_id, -> { String }, optional: false, nullable: false
20
- field :date_of_service, -> { String }, optional: false, nullable: false
21
- end
22
- end
23
- end
24
- end
25
- end
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module ExpectedNetworkStatus
5
- module V2
6
- module Types
7
- class ComputeAllInNetworkProvidersResponse < Internal::Types::Model
8
- field :computed_network_status, lambda {
9
- Candid::ExpectedNetworkStatus::V2::Types::ComputeAllInNetworkRenderingProvidersResult
10
- }, optional: false, nullable: false
11
- field :network_status_check_id, -> { String }, optional: false, nullable: false
12
- end
13
- end
14
- end
15
- end
16
- end
@@ -1,21 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module ExpectedNetworkStatus
5
- module V2
6
- module Types
7
- class ComputeAllInNetworkRenderingProvidersResult < Internal::Types::Model
8
- extend Candid::Internal::Types::Union
9
-
10
- discriminant :type
11
-
12
- member lambda {
13
- Candid::ExpectedNetworkStatus::V2::Types::InNetworkRenderingProvidersDetail
14
- }, key: "RENDERING_PROVIDERS"
15
- member -> { Candid::ExpectedNetworkStatus::V2::Types::IndeterminateNetworkStatus }, key: "INDETERMINATE"
16
- member -> { Candid::ExpectedNetworkStatus::V2::Types::OutOfNetworkStatus }, key: "OUT_OF_NETWORK"
17
- end
18
- end
19
- end
20
- end
21
- end
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module ExpectedNetworkStatus
5
- module V2
6
- module Types
7
- class EmptyObject < Internal::Types::Model; end
8
- end
9
- end
10
- end
11
- end
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module ExpectedNetworkStatus
5
- module V2
6
- module Types
7
- class ExpectedNetworkStatusCheckErrorMessage < Internal::Types::Model
8
- field :message, -> { String }, optional: false, nullable: false
9
- end
10
- end
11
- end
12
- end
13
- end
@@ -1,25 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module ExpectedNetworkStatus
5
- module V2
6
- module Types
7
- class ExpectedNetworkStatusRequestV2 < Internal::Types::Model
8
- field :service_type, lambda {
9
- Candid::ExpectedNetworkStatus::V2::Types::ServiceType
10
- }, optional: false, nullable: false
11
- field :place_of_service_code, lambda {
12
- Candid::Commons::Types::FacilityTypeCode
13
- }, optional: false, nullable: false
14
- field :subscriber_information, lambda {
15
- Candid::ExpectedNetworkStatus::V2::Types::ExpectedNetworkStatusSubscriberInformation
16
- }, optional: false, nullable: false
17
- field :patient_address, -> { Candid::Commons::Types::StreetAddressShortZip }, optional: false, nullable: false
18
- field :billing_provider_id, -> { String }, optional: false, nullable: false
19
- field :organization_service_facility_id, -> { String }, optional: false, nullable: false
20
- field :date_of_service, -> { String }, optional: false, nullable: false
21
- end
22
- end
23
- end
24
- end
25
- end
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module ExpectedNetworkStatus
5
- module V2
6
- module Types
7
- class ExpectedNetworkStatusResponseV2 < Internal::Types::Model
8
- field :network_status_check_id, -> { String }, optional: false, nullable: false
9
- field :network_status, lambda {
10
- Candid::ExpectedNetworkStatus::V2::Types::ExpectedNetworkStatusV2
11
- }, optional: false, nullable: false
12
- end
13
- end
14
- end
15
- end
16
- end
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module ExpectedNetworkStatus
5
- module V2
6
- module Types
7
- class ExpectedNetworkStatusSubscriberInformation < Internal::Types::Model
8
- field :payer_uuid, -> { String }, optional: false, nullable: false
9
- field :member_id, -> { String }, optional: false, nullable: false
10
- field :insurance_type, lambda {
11
- Candid::ExpectedNetworkStatus::V2::Types::InsuranceType
12
- }, optional: false, nullable: false
13
- end
14
- end
15
- end
16
- end
17
- end
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module ExpectedNetworkStatus
5
- module V2
6
- module Types
7
- class ExpectedNetworkStatusV2 < Internal::Types::Model
8
- extend Candid::Internal::Types::Union
9
-
10
- discriminant :type
11
-
12
- member -> { Candid::ExpectedNetworkStatus::V2::Types::InNetworkStatus }, key: "IN_NETWORK"
13
- member -> { Candid::ExpectedNetworkStatus::V2::Types::OutOfNetworkStatus }, key: "OUT_OF_NETWORK"
14
- member -> { Candid::ExpectedNetworkStatus::V2::Types::IndeterminateNetworkStatus }, key: "INDETERMINATE"
15
- end
16
- end
17
- end
18
- end
19
- end
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module ExpectedNetworkStatus
5
- module V2
6
- module Types
7
- module Explanation
8
- extend Candid::Internal::Types::Enum
9
-
10
- ROUTING_FAILED = "Payer Routing and/or Billing Provider Routing Failed"
11
- PAYER_MATCH_FAILED = "No Effective Contract with Payer"
12
- BILLING_PROVIDER_MATCH_FAILED = "No Effective Contract with Billing Provider"
13
- COVERED_GEOGRAPHY_MATCH_FAILED = "No Effective Contract with Covered Geography"
14
- LINE_OF_BUSINESS_MATCH_FAILED = "No Effective Contract with Line of Business"
15
- INSURANCE_TYPE_MATCH_FAILED = "No Effective Contract with Insurance Type"
16
- RENDERING_PROVIDER_MATCH_FAILED = "No Effective Contract with Rendering Provider"
17
- RENDERING_PROVIDER_CREDENTIALING_CHECK_FAILED = "Rendering Provider Not Credentialed"
18
- end
19
- end
20
- end
21
- end
22
- end
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module ExpectedNetworkStatus
5
- module V2
6
- module Types
7
- class InNetworkRenderingProvidersDetail < Internal::Types::Model
8
- field :rendering_providers, -> { Internal::Types::Array[String] }, optional: false, nullable: false
9
- field :routed_payer_uuid, -> { String }, optional: false, nullable: false
10
- field :routed_billing_provider_id, -> { String }, optional: false, nullable: false
11
- end
12
- end
13
- end
14
- end
15
- end
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module ExpectedNetworkStatus
5
- module V2
6
- module Types
7
- class InNetworkStatus < Internal::Types::Model
8
- field :routed_payer_uuid, -> { String }, optional: false, nullable: false
9
- field :routed_billing_provider_id, -> { String }, optional: false, nullable: false
10
- end
11
- end
12
- end
13
- end
14
- end
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module ExpectedNetworkStatus
5
- module V2
6
- module Types
7
- class IndeterminateNetworkStatus < Internal::Types::Model
8
- field :error, -> { String }, optional: false, nullable: false
9
- field :explanation, lambda {
10
- Candid::ExpectedNetworkStatus::V2::Types::Explanation
11
- }, optional: false, nullable: false
12
- field :routed_payer_uuid, -> { String }, optional: true, nullable: false
13
- field :routed_billing_provider_id, -> { String }, optional: true, nullable: false
14
- end
15
- end
16
- end
17
- end
18
- end
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module ExpectedNetworkStatus
5
- module V2
6
- module Types
7
- class InsuranceType < Internal::Types::Model
8
- field :line_of_business, lambda {
9
- Candid::ExpectedNetworkStatus::V2::Types::LineOfBusiness
10
- }, optional: false, nullable: false
11
- field :insurance_type_codes, lambda {
12
- Candid::ExpectedNetworkStatus::V2::Types::InsuranceTypeCodes
13
- }, optional: false, nullable: false
14
- end
15
- end
16
- end
17
- end
18
- end
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module ExpectedNetworkStatus
5
- module V2
6
- module Types
7
- class InsuranceTypeCodes < Internal::Types::Model
8
- extend Candid::Internal::Types::Union
9
-
10
- discriminant :type
11
-
12
- member -> { Candid::Commons::Types::InsuranceTypeCode }, key: "INSURANCE_TYPE_CODE"
13
- member -> { Candid::ExpectedNetworkStatus::V2::Types::EmptyObject }, key: "UNKNOWN_INSURANCE_TYPE_CODE"
14
- member -> { Candid::ExpectedNetworkStatus::V2::Types::EmptyObject }, key: "NOT_APPLICABLE"
15
- end
16
- end
17
- end
18
- end
19
- end
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module ExpectedNetworkStatus
5
- module V2
6
- module Types
7
- class OutOfNetworkStatus < Internal::Types::Model
8
- field :explanation, lambda {
9
- Candid::ExpectedNetworkStatus::V2::Types::Explanation
10
- }, optional: false, nullable: false
11
- field :routed_payer_uuid, -> { String }, optional: false, nullable: false
12
- field :routed_billing_provider_id, -> { String }, optional: false, nullable: false
13
- end
14
- end
15
- end
16
- end
17
- end