candidhealth 1.16.0 → 1.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 (55) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candid/client.rb +1 -6
  3. data/lib/candid/contracts/client.rb +5 -0
  4. data/lib/candid/contracts/v_2/client.rb +4 -0
  5. data/lib/candid/contracts/v_3/client.rb +176 -0
  6. data/lib/candid/contracts/v_3/types/contract.rb +18 -0
  7. data/lib/candid/contracts/v_3/types/contract_base.rb +28 -0
  8. data/lib/candid/contracts/v_3/types/contract_create.rb +15 -0
  9. data/lib/candid/contracts/v_3/types/contract_create_union.rb +18 -0
  10. data/lib/candid/contracts/v_3/types/contract_service_facility.rb +14 -0
  11. data/lib/candid/contracts/v_3/types/contract_service_facility_base.rb +14 -0
  12. data/lib/candid/contracts/v_3/types/contract_service_facility_create.rb +15 -0
  13. data/lib/candid/contracts/v_3/types/contract_service_facility_update.rb +16 -0
  14. data/lib/candid/contracts/v_3/types/contract_type.rb +16 -0
  15. data/lib/candid/contracts/v_3/types/contract_union.rb +18 -0
  16. data/lib/candid/contracts/v_3/types/contract_update.rb +28 -0
  17. data/lib/candid/contracts/v_3/types/contract_update_union.rb +18 -0
  18. data/lib/candid/contracts/v_3/types/contract_with_providers_union.rb +18 -0
  19. data/lib/candid/contracts/v_3/types/contracts_page.rb +15 -0
  20. data/lib/candid/contracts/v_3/types/get_multi_contracts_request.rb +22 -0
  21. data/lib/candid/contracts/v_3/types/institutional_contract.rb +15 -0
  22. data/lib/candid/contracts/v_3/types/institutional_contract_create.rb +15 -0
  23. data/lib/candid/contracts/v_3/types/institutional_contract_update.rb +13 -0
  24. data/lib/candid/contracts/v_3/types/professional_contract.rb +13 -0
  25. data/lib/candid/contracts/v_3/types/professional_contract_create.rb +13 -0
  26. data/lib/candid/contracts/v_3/types/professional_contract_update.rb +13 -0
  27. data/lib/candid/encounter_providers/v_2/types/billing_provider.rb +3 -0
  28. data/lib/candid/encounter_providers/v_2/types/billing_provider_update.rb +3 -0
  29. data/lib/candid/encounter_providers/v_2/types/billing_provider_update_with_optional_address.rb +3 -0
  30. data/lib/candid/encounter_providers/v_2/types/encounter_provider.rb +3 -0
  31. data/lib/candid/encounter_providers/v_2/types/provider_secondary_identification.rb +13 -0
  32. data/lib/candid/encounter_providers/v_2/types/rendering_provider.rb +3 -0
  33. data/lib/candid/encounter_providers/v_2/types/rendering_provider_update.rb +3 -0
  34. data/lib/candid/encounter_providers/v_2/types/rendering_provider_update_with_optional_address.rb +3 -0
  35. data/lib/candid/encounters/v_4/client.rb +15 -0
  36. data/lib/candid/encounters/v_4/types/encounter.rb +3 -0
  37. data/lib/candid/encounters_universal/types/universal_encounter_create_base.rb +3 -0
  38. data/lib/candid/encounters_universal/types/universal_encounter_create_from_pre_encounter_base.rb +3 -0
  39. data/lib/candid/encounters_universal/types/universal_encounter_update_base.rb +3 -0
  40. data/lib/candid/fee_schedules/v_3/client.rb +9 -1
  41. data/lib/candid/fee_schedules/v_3/types/payer_threshold.rb +6 -1
  42. data/lib/candid/related_causes_information/v_1/types/related_causes_code.rb +20 -0
  43. data/lib/candid/related_causes_information/v_1/types/related_causes_information.rb +19 -0
  44. data/lib/candid/related_causes_information/v_1/types/related_causes_information_create.rb +11 -0
  45. data/lib/candid/related_causes_information/v_1/types/related_causes_information_update.rb +11 -0
  46. data/lib/candid/version.rb +1 -1
  47. data/lib/candid.rb +28 -7
  48. data/reference.md +541 -213
  49. metadata +28 -7
  50. data/lib/candid/insurance_payments/client.rb +0 -17
  51. data/lib/candid/insurance_payments/v_1/client.rb +0 -68
  52. data/lib/candid/insurance_payments/v_1/types/get_multi_insurance_payment_request.rb +0 -22
  53. data/lib/candid/insurance_payments/v_1/types/insurance_payment.rb +0 -20
  54. data/lib/candid/insurance_payments/v_1/types/insurance_payment_sort_field.rb +0 -17
  55. data/lib/candid/insurance_payments/v_1/types/insurance_payments_page.rb +0 -15
@@ -14,6 +14,9 @@ module Candid
14
14
  field :provider_commercial_license_type, lambda {
15
15
  Candid::Commons::Types::BillingProviderCommercialLicenseType
16
16
  }, optional: true, nullable: false
17
+ field :secondary_identification, lambda {
18
+ Candid::EncounterProviders::V2::Types::ProviderSecondaryIdentification
19
+ }, optional: true, nullable: false
17
20
  end
18
21
  end
19
22
  end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Candid
4
+ module EncounterProviders
5
+ module V2
6
+ module Types
7
+ class ProviderSecondaryIdentification < Internal::Types::Model
8
+ field :reference_identification, -> { String }, optional: false, nullable: false
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -8,6 +8,9 @@ module Candid
8
8
  field :npi, -> { String }, optional: false, nullable: false
9
9
  field :taxonomy_code, -> { String }, optional: true, nullable: false
10
10
  field :address, -> { Candid::Commons::Types::StreetAddressLongZip }, optional: true, nullable: false
11
+ field :secondary_identification, lambda {
12
+ Candid::EncounterProviders::V2::Types::ProviderSecondaryIdentification
13
+ }, optional: true, nullable: false
11
14
  end
12
15
  end
13
16
  end
@@ -8,6 +8,9 @@ module Candid
8
8
  field :npi, -> { String }, optional: true, nullable: false
9
9
  field :taxonomy_code, -> { String }, optional: true, nullable: false
10
10
  field :address, -> { Candid::Commons::Types::StreetAddressLongZip }, optional: true, nullable: false
11
+ field :secondary_identification, lambda {
12
+ Candid::EncounterProviders::V2::Types::ProviderSecondaryIdentification
13
+ }, optional: true, nullable: false
11
14
  end
12
15
  end
13
16
  end
@@ -8,6 +8,9 @@ module Candid
8
8
  field :npi, -> { String }, optional: true, nullable: false
9
9
  field :taxonomy_code, -> { String }, optional: true, nullable: false
10
10
  field :address, -> { Candid::Commons::Types::StreetAddressShortZipOptional }, optional: true, nullable: false
11
+ field :secondary_identification, lambda {
12
+ Candid::EncounterProviders::V2::Types::ProviderSecondaryIdentification
13
+ }, optional: true, nullable: false
11
14
  end
12
15
  end
13
16
  end
@@ -58,6 +58,11 @@ module Candid
58
58
  end
59
59
  end
60
60
 
61
+ # Notice: The UB-04 Data File, 2025, is copyrighted by American Hospital Association (AHA), Chicago, Illinois.
62
+ # No portion of the THE UB-04 Data File, may be reproduced, stored in a retrieval system, or transmitted,
63
+ # in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without prior
64
+ # express, written consent of AHA.
65
+ #
61
66
  # @return [Candid::Encounters::V4::Types::Encounter]
62
67
  def create_universal(request_options: {}, **params)
63
68
  _request = Candid::Internal::JSON::Request.new(
@@ -119,6 +124,11 @@ module Candid
119
124
  # Utilizing this endpoint opts you into automatic updating of the encounter when the patient or appointment is updated, assuming the
120
125
  # encounter has not already been submitted or adjudicated.
121
126
  #
127
+ # Notice: The UB-04 Data File, 2025, is copyrighted by American Hospital Association (AHA), Chicago, Illinois.
128
+ # No portion of the THE UB-04 Data File, may be reproduced, stored in a retrieval system, or transmitted,
129
+ # in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without prior
130
+ # express, written consent of AHA.
131
+ #
122
132
  # @return [Candid::Encounters::V4::Types::Encounter]
123
133
  def create_from_pre_encounter_patient_universal(request_options: {}, **params)
124
134
  _request = Candid::Internal::JSON::Request.new(
@@ -180,6 +190,11 @@ module Candid
180
190
  end
181
191
  end
182
192
 
193
+ # Notice: The UB-04 Data File, 2025, is copyrighted by American Hospital Association (AHA), Chicago, Illinois.
194
+ # No portion of the THE UB-04 Data File, may be reproduced, stored in a retrieval system, or transmitted,
195
+ # in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without prior
196
+ # express, written consent of AHA.
197
+ #
183
198
  # @return [Candid::Encounters::V4::Types::Encounter]
184
199
  def update_universal(request_options: {}, **params)
185
200
  _request = Candid::Internal::JSON::Request.new(
@@ -38,6 +38,9 @@ module Candid
38
38
  field :other_operating_provider, lambda {
39
39
  Candid::EncounterProviders::V2::Types::EncounterProvider
40
40
  }, optional: true, nullable: false
41
+ field :related_causes_information, lambda {
42
+ Candid::RelatedCausesInformation::V1::Types::RelatedCausesInformation
43
+ }, optional: true, nullable: false
41
44
  field :submission_expectation, lambda {
42
45
  Candid::Encounters::V4::Types::EncounterSubmissionExpectation
43
46
  }, optional: true, nullable: false
@@ -47,6 +47,9 @@ module Candid
47
47
  Internal::Types::Array[Candid::Encounters::V4::Types::ClaimSupplementalInformation]
48
48
  }, optional: true, nullable: false
49
49
  field :secondary_payer_carrier_code, -> { String }, optional: true, nullable: false
50
+ field :related_causes_information, lambda {
51
+ Candid::RelatedCausesInformation::V1::Types::RelatedCausesInformationCreate
52
+ }, optional: true, nullable: false
50
53
  end
51
54
  end
52
55
  end
@@ -34,6 +34,9 @@ module Candid
34
34
  field :schema_instances, lambda {
35
35
  Internal::Types::Array[Candid::CustomSchemas::V1::Types::SchemaInstance]
36
36
  }, optional: true, nullable: false
37
+ field :related_causes_information, lambda {
38
+ Candid::RelatedCausesInformation::V1::Types::RelatedCausesInformationCreate
39
+ }, optional: true, nullable: false
37
40
  end
38
41
  end
39
42
  end
@@ -44,6 +44,9 @@ module Candid
44
44
  field :place_of_service_code_as_submitted, lambda {
45
45
  Candid::Commons::Types::FacilityTypeCode
46
46
  }, optional: true, nullable: false
47
+ field :related_causes_information, lambda {
48
+ Candid::RelatedCausesInformation::V1::Types::RelatedCausesInformationUpdate
49
+ }, optional: true, nullable: false
47
50
  end
48
51
  end
49
52
  end
@@ -134,7 +134,15 @@ module Candid
134
134
  raise error_class.new(_response.body, code: code)
135
135
  end
136
136
 
137
- # Uploads a new fee schedule.\n Each rate may either be totally new as qualified by it's dimensions or a new version for an existing rate.\n If adding a new version to an existing rate, the rate must be posted with the next version number (previous version + 1) or a EntityConflictError will be returned.\n Use the dry run flag to discover already existing rates and to run validations. If validations for any rate fail, no rates will be saved to the system.
137
+ # Uploads a new fee schedule.
138
+ #
139
+ # Each rate may either be totally new as qualified by it's dimensions or a new version for an existing rate.
140
+ #
141
+ # If adding a new version to an existing rate, the rate must be posted with the next version number (previous version + 1) or a EntityConflictError will
142
+ # be returned.
143
+ #
144
+ # Use the dry run flag to discover already existing rates and to run validations. If validations for any rate fail, no rates will
145
+ # be saved to the system.
138
146
  #
139
147
  # @return [Array[Candid::FeeSchedules::V3::Types::Rate]]
140
148
  def upload_fee_schedule(request_options: {}, **params)
@@ -4,7 +4,12 @@ module Candid
4
4
  module FeeSchedules
5
5
  module V3
6
6
  module Types
7
- # Rate thresholds that determine fee schedule rate matching behavior. When a service line is adjudicated by a payer Candid determines if the payer's allowed amount "matches" the rate value. If the allowed amount doesn't equal the rate value, Candid moves the claim to a PAID_INCORRECTLY state. These optional thresholds allow a user to set wiggle room to avoid claims moving to PAID_INCORRECTLY and instead have them move directly to FINALIZED_PAID when the payer's allowed amount is greater than [rate_cents - lower_threshold_cents] and less than [rate_cents + upper_threshold_cents].\n Additionally, a client can set disable_paid_incorrectly to avoid the PAID_INCORRECTLY claim status entirely.
7
+ # Rate thresholds that determine fee schedule rate matching behavior. When a service line is adjudicated by a payer Candid determines if the payer's
8
+ # allowed amount "matches" the rate value. If the allowed amount doesn't equal the rate value, Candid moves the claim to a PAID_INCORRECTLY state. These
9
+ # optional thresholds allow a user to set wiggle room to avoid claims moving to PAID_INCORRECTLY and instead have them move directly to FINALIZED_PAID
10
+ # when the payer's allowed amount is greater than [rate_cents - lower_threshold_cents] and less than [rate_cents + upper_threshold_cents].
11
+ #
12
+ # Additionally, a client can set disable_paid_incorrectly to avoid the PAID_INCORRECTLY claim status entirely.
8
13
  class PayerThreshold < Internal::Types::Model
9
14
  field :upper_threshold_cents, -> { Integer }, optional: true, nullable: false
10
15
  field :lower_threshold_cents, -> { Integer }, optional: true, nullable: false
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Candid
4
+ module RelatedCausesInformation
5
+ module V1
6
+ module Types
7
+ module RelatedCausesCode
8
+ extend Candid::Internal::Types::Enum
9
+
10
+ CAA = "AA"
11
+ CAB = "AB"
12
+ CAP = "AP"
13
+ CEM = "EM"
14
+ COA = "OA"
15
+ CZZ = "ZZ"
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Candid
4
+ module RelatedCausesInformation
5
+ module V1
6
+ module Types
7
+ class RelatedCausesInformation < Internal::Types::Model
8
+ field :related_causes_code_1, lambda {
9
+ Candid::RelatedCausesInformation::V1::Types::RelatedCausesCode
10
+ }, optional: false, nullable: false
11
+ field :related_causes_code_2, lambda {
12
+ Candid::RelatedCausesInformation::V1::Types::RelatedCausesCode
13
+ }, optional: true, nullable: false
14
+ field :state_or_province_code, -> { String }, optional: true, nullable: false
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Candid
4
+ module RelatedCausesInformation
5
+ module V1
6
+ module Types
7
+ class RelatedCausesInformationCreate < Internal::Types::Model; end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Candid
4
+ module RelatedCausesInformation
5
+ module V1
6
+ module Types
7
+ class RelatedCausesInformationUpdate < Internal::Types::Model; end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Candid
4
- VERSION = "1.16.0"
4
+ VERSION = "1.17.1"
5
5
  end
data/lib/candid.rb CHANGED
@@ -53,6 +53,7 @@ require_relative "candid/commons/types/state"
53
53
  require_relative "candid/commons/types/street_address_optional_base"
54
54
  require_relative "candid/commons/types/street_address_long_zip_optional"
55
55
  require_relative "candid/encounter_providers/v_2/types/ordering_provider_optional"
56
+ require_relative "candid/encounter_providers/v_2/types/provider_secondary_identification"
56
57
  require_relative "candid/commons/types/street_address_short_zip_optional"
57
58
  require_relative "candid/commons/types/billing_provider_commercial_license_type"
58
59
  require_relative "candid/encounter_providers/v_2/types/billing_provider_update_with_optional_address"
@@ -160,6 +161,24 @@ require_relative "candid/contracts/v_2/types/contract"
160
161
  require_relative "candid/contracts/v_2/types/contract_with_providers"
161
162
  require_relative "candid/contracts/v_2/types/contracts_page"
162
163
  require_relative "candid/contracts/v_2/types/contract_sort_field"
164
+ require_relative "candid/contracts/v_3/types/contract_type"
165
+ require_relative "candid/contracts/v_3/types/contract_service_facility_base"
166
+ require_relative "candid/contracts/v_3/types/contract_service_facility"
167
+ require_relative "candid/contracts/v_3/types/contract_base"
168
+ require_relative "candid/contracts/v_3/types/contract"
169
+ require_relative "candid/contracts/v_3/types/professional_contract"
170
+ require_relative "candid/contracts/v_3/types/institutional_contract"
171
+ require_relative "candid/contracts/v_3/types/contract_union"
172
+ require_relative "candid/contracts/v_3/types/contract_with_providers_union"
173
+ require_relative "candid/contracts/v_3/types/contract_create"
174
+ require_relative "candid/contracts/v_3/types/professional_contract_create"
175
+ require_relative "candid/contracts/v_3/types/institutional_contract_create"
176
+ require_relative "candid/contracts/v_3/types/contract_create_union"
177
+ require_relative "candid/contracts/v_3/types/contract_update"
178
+ require_relative "candid/contracts/v_3/types/professional_contract_update"
179
+ require_relative "candid/contracts/v_3/types/institutional_contract_update"
180
+ require_relative "candid/contracts/v_3/types/contract_update_union"
181
+ require_relative "candid/contracts/v_3/types/contracts_page"
163
182
  require_relative "candid/credentialing/v_2/types/credentialing_span_status"
164
183
  require_relative "candid/commons/types/date_range_optional_end"
165
184
  require_relative "candid/identifiers/types/identifier_code"
@@ -233,6 +252,9 @@ require_relative "candid/guarantor/v_1/types/guarantor_base"
233
252
  require_relative "candid/commons/types/phone_number"
234
253
  require_relative "candid/guarantor/v_1/types/guarantor_create"
235
254
  require_relative "candid/insurance_cards/v_2/types/insurance_card_create"
255
+ require_relative "candid/related_causes_information/v_1/types/related_causes_code"
256
+ require_relative "candid/related_causes_information/v_1/types/related_causes_information"
257
+ require_relative "candid/related_causes_information/v_1/types/related_causes_information_create"
236
258
  require_relative "candid/individual/types/individual_base"
237
259
  require_relative "candid/individual/types/subscriber_base"
238
260
  require_relative "candid/individual/types/subscriber_create"
@@ -289,6 +311,7 @@ require_relative "candid/x_12/v_1/types/point_of_origin_for_admission_or_visit_c
289
311
  require_relative "candid/x_12/v_1/types/patient_discharge_status_code"
290
312
  require_relative "candid/encounters_universal/types/universal_encounter_create"
291
313
  require_relative "candid/guarantor/v_1/types/guarantor_update"
314
+ require_relative "candid/related_causes_information/v_1/types/related_causes_information_update"
292
315
  require_relative "candid/individual/types/patient_update"
293
316
  require_relative "candid/service_facility/types/encounter_service_facility_update"
294
317
  require_relative "candid/encounters_universal/types/universal_encounter_update_base"
@@ -457,16 +480,13 @@ require_relative "candid/x_12/v_1/types/remittance_advice_remark_code"
457
480
  require_relative "candid/insurance_adjudications/v_1/types/service_line_adjudication"
458
481
  require_relative "candid/insurance_adjudications/v_1/types/claim_adjudication"
459
482
  require_relative "candid/insurance_adjudications/v_1/types/insurance_adjudication"
483
+ require_relative "candid/financials/types/refund_reason"
460
484
  require_relative "candid/financials/types/service_line_allocation_target"
461
485
  require_relative "candid/financials/types/claim_allocation_target"
462
486
  require_relative "candid/financials/types/billing_provider_allocation_target"
463
487
  require_relative "candid/financials/types/appointment_allocation_target"
464
488
  require_relative "candid/financials/types/allocation_target"
465
489
  require_relative "candid/financials/types/allocation"
466
- require_relative "candid/insurance_payments/v_1/types/insurance_payment"
467
- require_relative "candid/insurance_payments/v_1/types/insurance_payments_page"
468
- require_relative "candid/insurance_payments/v_1/types/insurance_payment_sort_field"
469
- require_relative "candid/financials/types/refund_reason"
470
490
  require_relative "candid/insurance_refunds/v_1/types/insurance_refund"
471
491
  require_relative "candid/payers/v_3/types/payer_info"
472
492
  require_relative "candid/payers/v_3/types/payer_identifier"
@@ -744,6 +764,10 @@ require_relative "candid/contracts/v_2/client"
744
764
  require_relative "candid/contracts/v_2/types/get_multi_contracts_request"
745
765
  require_relative "candid/contracts/v_2/types/contract_create"
746
766
  require_relative "candid/contracts/v_2/types/contract_update"
767
+ require_relative "candid/contracts/v_3/client"
768
+ require_relative "candid/contracts/v_3/types/get_multi_contracts_request"
769
+ require_relative "candid/contracts/v_3/types/contract_service_facility_create"
770
+ require_relative "candid/contracts/v_3/types/contract_service_facility_update"
747
771
  require_relative "candid/credentialing/client"
748
772
  require_relative "candid/credentialing/v_2/client"
749
773
  require_relative "candid/credentialing/v_2/types/facility_credentialing_span_create"
@@ -799,9 +823,6 @@ require_relative "candid/import_invoice/v_1/client"
799
823
  require_relative "candid/import_invoice/v_1/types/search_imported_invoices_request"
800
824
  require_relative "candid/insurance_adjudications/client"
801
825
  require_relative "candid/insurance_adjudications/v_1/client"
802
- require_relative "candid/insurance_payments/client"
803
- require_relative "candid/insurance_payments/v_1/client"
804
- require_relative "candid/insurance_payments/v_1/types/get_multi_insurance_payment_request"
805
826
  require_relative "candid/insurance_refunds/client"
806
827
  require_relative "candid/insurance_refunds/v_1/client"
807
828
  require_relative "candid/insurance_refunds/v_1/types/get_multi_insurance_refunds_request"