candidhealth 1.14.3 → 1.17.4

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 (120) 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.rb +1 -0
  58. data/lib/candid/financials/types/allocation_create.rb +1 -0
  59. data/lib/candid/financials/types/allocation_earmark_type.rb +19 -0
  60. data/lib/candid/financials/types/balance_earmark.rb +15 -0
  61. data/lib/candid/insurance_adjudications/client.rb +17 -0
  62. data/lib/candid/{expected_network_status → insurance_adjudications}/v_1/client.rb +8 -9
  63. data/lib/candid/insurance_adjudications/v_1/types/claim_adjudication.rb +23 -0
  64. data/lib/candid/insurance_adjudications/v_1/types/insurance_adjudication.rb +21 -0
  65. data/lib/candid/insurance_adjudications/v_1/types/service_line_adjudication.rb +27 -0
  66. data/lib/candid/insurance_cards/v_2/types/insurance_card_base.rb +1 -0
  67. data/lib/candid/patient_ar/v_1/client.rb +0 -4
  68. data/lib/candid/patient_payments/v_4/types/card_payment_method.rb +11 -0
  69. data/lib/candid/patient_payments/v_4/types/cash_payment_method.rb +11 -0
  70. data/lib/candid/patient_payments/v_4/types/check_payment_method.rb +13 -0
  71. data/lib/candid/patient_payments/v_4/types/patient_payment.rb +3 -0
  72. data/lib/candid/patient_payments/v_4/types/payment_method.rb +19 -0
  73. data/lib/candid/patient_payments/v_4/types/payment_method_detail.rb +18 -0
  74. data/lib/candid/pre_encounter/eligibility_checks/v_1/types/eligibility_request.rb +2 -0
  75. data/lib/candid/related_causes_information/v_1/types/related_causes_code.rb +20 -0
  76. data/lib/candid/related_causes_information/v_1/types/related_causes_information.rb +19 -0
  77. data/lib/candid/related_causes_information/v_1/types/related_causes_information_create.rb +11 -0
  78. data/lib/candid/related_causes_information/v_1/types/related_causes_information_update.rb +11 -0
  79. data/lib/candid/service_lines/v_2/types/service_line.rb +2 -0
  80. data/lib/candid/service_lines/v_2/types/service_line_create_base_base.rb +2 -0
  81. data/lib/candid/service_lines/v_2/types/service_line_create_optional.rb +2 -0
  82. data/lib/candid/service_lines/v_2/types/service_line_create_standalone.rb +2 -0
  83. data/lib/candid/service_lines/v_2/types/service_line_update_base.rb +2 -0
  84. data/lib/candid/service_lines/v_2/types/test_result_type.rb +1 -0
  85. data/lib/candid/service_lines/v_2/types/universal_service_line_create_standalone.rb +2 -0
  86. data/lib/candid/tasks/commons/types/task_type.rb +1 -0
  87. data/lib/candid/version.rb +1 -1
  88. data/lib/candid/x_12/v_1/types/carc.rb +418 -0
  89. data/lib/candid/x_12/v_1/types/claim_adjustment_reason_code.rb +15 -0
  90. data/lib/candid/x_12/v_1/types/rarc.rb +1201 -0
  91. data/lib/candid/x_12/v_1/types/remittance_advice_remark_code.rb +13 -0
  92. data/lib/candid.rb +57 -36
  93. data/reference.md +515 -363
  94. metadata +55 -34
  95. data/lib/candid/expected_network_status/client.rb +0 -22
  96. data/lib/candid/expected_network_status/v_1/types/expected_network_status.rb +0 -17
  97. data/lib/candid/expected_network_status/v_1/types/expected_network_status_request.rb +0 -24
  98. data/lib/candid/expected_network_status/v_1/types/expected_network_status_response.rb +0 -17
  99. data/lib/candid/expected_network_status/v_2/client.rb +0 -66
  100. data/lib/candid/expected_network_status/v_2/types/compute_all_in_network_providers_request.rb +0 -25
  101. data/lib/candid/expected_network_status/v_2/types/compute_all_in_network_providers_response.rb +0 -16
  102. data/lib/candid/expected_network_status/v_2/types/compute_all_in_network_rendering_providers_result.rb +0 -21
  103. data/lib/candid/expected_network_status/v_2/types/empty_object.rb +0 -11
  104. data/lib/candid/expected_network_status/v_2/types/expected_network_status_check_error_message.rb +0 -13
  105. data/lib/candid/expected_network_status/v_2/types/expected_network_status_request_v_2.rb +0 -25
  106. data/lib/candid/expected_network_status/v_2/types/expected_network_status_response_v_2.rb +0 -16
  107. data/lib/candid/expected_network_status/v_2/types/expected_network_status_subscriber_information.rb +0 -17
  108. data/lib/candid/expected_network_status/v_2/types/expected_network_status_v_2.rb +0 -19
  109. data/lib/candid/expected_network_status/v_2/types/explanation.rb +0 -22
  110. data/lib/candid/expected_network_status/v_2/types/in_network_rendering_providers_detail.rb +0 -15
  111. data/lib/candid/expected_network_status/v_2/types/in_network_status.rb +0 -14
  112. data/lib/candid/expected_network_status/v_2/types/indeterminate_network_status.rb +0 -18
  113. data/lib/candid/expected_network_status/v_2/types/insurance_type.rb +0 -18
  114. data/lib/candid/expected_network_status/v_2/types/insurance_type_codes.rb +0 -19
  115. data/lib/candid/expected_network_status/v_2/types/out_of_network_status.rb +0 -17
  116. data/lib/candid/expected_network_status/v_2/types/service_type.rb +0 -55
  117. data/lib/candid/insurance_payments/v_1/types/get_multi_insurance_payment_request.rb +0 -22
  118. data/lib/candid/insurance_payments/v_1/types/insurance_payment.rb +0 -20
  119. data/lib/candid/insurance_payments/v_1/types/insurance_payment_sort_field.rb +0 -17
  120. data/lib/candid/insurance_payments/v_1/types/insurance_payments_page.rb +0 -15
@@ -1,55 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module ExpectedNetworkStatus
5
- module V2
6
- module Types
7
- module ServiceType
8
- extend Candid::Internal::Types::Enum
9
-
10
- NEW_PATIENT_VIDEO_APPT = "new_patient_video_appt"
11
- NEW_PATIENT_PREV_VIDEO_APPT = "new_patient_prev_video_appt"
12
- NEW_PATIENT_OFFICE_APPT = "new_patient_office_appt"
13
- ESTABLISHED_PATIENT_VIDEO_APPT = "established_patient_video_appt"
14
- ESTABLISHED_PATIENT_PREV_VIDEO_APPT = "established_patient_prev_video_appt"
15
- ESTABLISHED_PATIENT_OFFICE_APPT = "established_patient_office_appt"
16
- PATIENT_PORTAL_WITH_QUALIFIED_PHYSICIAN = "patient_portal_with_qualified_physician"
17
- PATIENT_PORTAL_WITH_NON_QUALIFIED_PHYSICIAN = "patient_portal_with_non_qualified_physician"
18
- GROUP_THERAPY = "group_therapy"
19
- PHONE_APPT = "phone_appt"
20
- ANNUAL_WELLNESS_VISIT = "annual_wellness_visit"
21
- REMOTE_PATIENT_MONITORING = "remote_patient_monitoring"
22
- DIAGNOSTIC = "diagnostic"
23
- CARDIAC_MONITORING = "cardiac_monitoring"
24
- CARDIAC_CODES = "cardiac_codes"
25
- PSYCHOTHERAPY = "psychotherapy"
26
- PHONE_THERAPY = "phone_therapy"
27
- ALCOHOL_ABUSE = "alcohol_abuse"
28
- SMOKING_CESSATION = "smoking_cessation"
29
- SPEECH_THERAPY = "speech_therapy"
30
- HOME_VISIT = "home_visit"
31
- MEDICAL_NUTRITION_THERAPY = "medical_nutrition_therapy"
32
- NUTRITIONAL_COUNSELING = "nutritional_counseling"
33
- DIETITIAN_VISIT = "dietitian_visit"
34
- PREVENTATIVE_MEDICINE_COUNSELING = "preventative_medicine_counseling"
35
- CHRONIC_CARE = "chronic_care"
36
- ADVANCE_CARE = "advance_care"
37
- COLLABORATIVE_CARE_MANAGEMENT = "collaborative_care_management"
38
- ABORTION_CARE = "abortion_care"
39
- ABORTION_DRUGS = "abortion_drugs"
40
- REMOTE_THERAPEUTIC_MONITORING = "remote_therapeutic_monitoring"
41
- PRINCIPAL_CARE_MGMT = "principal_care_mgmt"
42
- OTHER_EM = "other_em"
43
- TELEHEALTH_OUD = "telehealth_oud"
44
- SUBSTANCE_ABUSE_TREATMENT = "substance_abuse_treatment"
45
- ACUPUNCTURE = "acupuncture"
46
- PHYSICAL_THERAPY = "physical_therapy"
47
- LACTATION_CONSULTING = "lactation_consulting"
48
- SLEEP_STUDY = "sleep_study"
49
- CMS_TELEHEALTH_CODES = "cms_telehealth_codes"
50
- CMS_TELEHEALTH_AUDIO_CODES = "cms_telehealth_audio_codes"
51
- end
52
- end
53
- end
54
- end
55
- end
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module InsurancePayments
5
- module V1
6
- module Types
7
- class GetMultiInsurancePaymentRequest < Internal::Types::Model
8
- field :limit, -> { Integer }, optional: true, nullable: false
9
- field :payer_uuid, -> { String }, optional: true, nullable: false
10
- field :claim_id, -> { String }, optional: true, nullable: false
11
- field :service_line_id, -> { String }, optional: true, nullable: false
12
- field :billing_provider_id, -> { String }, optional: true, nullable: false
13
- field :sort, lambda {
14
- Candid::InsurancePayments::V1::Types::InsurancePaymentSortField
15
- }, optional: true, nullable: false
16
- field :sort_direction, -> { Candid::Commons::Types::SortDirection }, optional: true, nullable: false
17
- field :page_token, -> { String }, optional: true, nullable: false
18
- end
19
- end
20
- end
21
- end
22
- end
@@ -1,20 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module InsurancePayments
5
- module V1
6
- module Types
7
- class InsurancePayment < Internal::Types::Model
8
- field :insurance_payment_id, -> { String }, optional: false, nullable: false
9
- field :payer, -> { Candid::Payers::V3::Types::Payer }, optional: false, nullable: false
10
- field :amount_cents, -> { Integer }, optional: false, nullable: false
11
- field :payment_timestamp, -> { String }, optional: true, nullable: false
12
- field :payment_note, -> { String }, optional: true, nullable: false
13
- field :allocations, lambda {
14
- Internal::Types::Array[Candid::Financials::Types::Allocation]
15
- }, optional: false, nullable: false
16
- end
17
- end
18
- end
19
- end
20
- end
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module InsurancePayments
5
- module V1
6
- module Types
7
- module InsurancePaymentSortField
8
- extend Candid::Internal::Types::Enum
9
-
10
- AMOUNT_CENTS = "amount_cents"
11
- PAYMENT_TIMESTAMP = "payment_timestamp"
12
- PAYMENT_NOTE = "payment_note"
13
- end
14
- end
15
- end
16
- end
17
- end
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Candid
4
- module InsurancePayments
5
- module V1
6
- module Types
7
- class InsurancePaymentsPage < Internal::Types::Model
8
- field :items, lambda {
9
- Internal::Types::Array[Candid::InsurancePayments::V1::Types::InsurancePayment]
10
- }, optional: false, nullable: false
11
- end
12
- end
13
- end
14
- end
15
- end