candidhealth 0.17.1 → 0.17.2

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 (100) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/billing_notes/v_2/types/billing_note.rb +2 -2
  3. data/lib/candidhealth/billing_notes/v_2/types/billing_note_id.rb +1 -1
  4. data/lib/candidhealth/claims/types/claim.rb +1 -1
  5. data/lib/candidhealth/commons/types/claim_id.rb +1 -1
  6. data/lib/candidhealth/commons/types/encounter_id.rb +1 -1
  7. data/lib/candidhealth/commons/types/invoice_id.rb +1 -1
  8. data/lib/candidhealth/commons/types/organization_id.rb +1 -1
  9. data/lib/candidhealth/commons/types/provider_id.rb +1 -1
  10. data/lib/candidhealth/commons/types/service_line_id.rb +1 -1
  11. data/lib/candidhealth/commons/types/task_assignment_id.rb +1 -1
  12. data/lib/candidhealth/commons/types/task_id.rb +1 -1
  13. data/lib/candidhealth/commons/types/task_note_id.rb +1 -1
  14. data/lib/candidhealth/commons/types/user_id.rb +1 -1
  15. data/lib/candidhealth/contracts/v_2/client.rb +4 -4
  16. data/lib/candidhealth/contracts/v_2/types/contract.rb +1 -1
  17. data/lib/candidhealth/contracts/v_2/types/contract_id.rb +1 -1
  18. data/lib/candidhealth/contracts/v_2/types/contract_with_providers.rb +3 -3
  19. data/lib/candidhealth/contracts/v_2/types/contracting_provider_id.rb +1 -1
  20. data/lib/candidhealth/contracts/v_2/types/rendering_providerid.rb +1 -1
  21. data/lib/candidhealth/diagnoses/types/diagnosis.rb +2 -2
  22. data/lib/candidhealth/diagnoses/types/diagnosis_id.rb +1 -1
  23. data/lib/candidhealth/diagnoses/types/standalone_diagnosis_create.rb +1 -1
  24. data/lib/candidhealth/encounter_providers/v_2/types/encounter_provider.rb +1 -1
  25. data/lib/candidhealth/encounter_providers/v_2/types/provider_id.rb +1 -1
  26. data/lib/candidhealth/encounters/v_4/types/encounter.rb +1 -1
  27. data/lib/candidhealth/era/types/era.rb +1 -1
  28. data/lib/candidhealth/era/types/era_id.rb +1 -1
  29. data/lib/candidhealth/era/types/era_not_fully_processed_error_message.rb +1 -1
  30. data/lib/candidhealth/expected_network_status/v_1/types/expected_network_status_response.rb +1 -1
  31. data/lib/candidhealth/expected_network_status/v_2/client.rb +4 -4
  32. data/lib/candidhealth/expected_network_status/v_2/types/compute_all_in_network_providers_request.rb +2 -2
  33. data/lib/candidhealth/expected_network_status/v_2/types/compute_all_in_network_providers_response.rb +1 -1
  34. data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_request_v_2.rb +2 -2
  35. data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_response_v_2.rb +1 -1
  36. data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_subscriber_information.rb +3 -3
  37. data/lib/candidhealth/expected_network_status/v_2/types/in_network_rendering_providers_detail.rb +4 -4
  38. data/lib/candidhealth/expected_network_status/v_2/types/in_network_status.rb +4 -4
  39. data/lib/candidhealth/expected_network_status/v_2/types/indeterminate_network_status.rb +4 -4
  40. data/lib/candidhealth/expected_network_status/v_2/types/network_status_check_id.rb +1 -1
  41. data/lib/candidhealth/expected_network_status/v_2/types/out_of_network_status.rb +4 -4
  42. data/lib/candidhealth/financials/types/allocation_target_create.rb +3 -3
  43. data/lib/candidhealth/financials/types/billing_provider_allocation_target.rb +1 -1
  44. data/lib/candidhealth/financials/types/claim_allocation_target.rb +2 -2
  45. data/lib/candidhealth/financials/types/invoice_update.rb +1 -1
  46. data/lib/candidhealth/financials/types/service_line_allocation_target.rb +3 -3
  47. data/lib/candidhealth/guarantor/v_1/types/guarantor.rb +1 -1
  48. data/lib/candidhealth/guarantor/v_1/types/guarantor_id.rb +1 -1
  49. data/lib/candidhealth/identifiers/types/identifier.rb +1 -1
  50. data/lib/candidhealth/identifiers/types/identifier_id.rb +1 -1
  51. data/lib/candidhealth/identifiers/types/identifier_update.rb +1 -1
  52. data/lib/candidhealth/identifiers/types/updatable_identifier.rb +1 -1
  53. data/lib/candidhealth/individual/types/individual_id.rb +1 -1
  54. data/lib/candidhealth/individual/types/patient.rb +1 -1
  55. data/lib/candidhealth/individual/types/subscriber.rb +1 -1
  56. data/lib/candidhealth/insurance_adjudications/v_1/types/claim_adjudication.rb +1 -1
  57. data/lib/candidhealth/insurance_adjudications/v_1/types/insurance_adjudication.rb +4 -4
  58. data/lib/candidhealth/insurance_adjudications/v_1/types/insurance_adjudication_id.rb +1 -1
  59. data/lib/candidhealth/insurance_adjudications/v_1/types/service_line_adjudication.rb +1 -1
  60. data/lib/candidhealth/insurance_adjudications/v_1/types/service_line_adjudication_id.rb +1 -1
  61. data/lib/candidhealth/insurance_cards/v_2/types/insurance_card.rb +1 -1
  62. data/lib/candidhealth/insurance_cards/v_2/types/insurance_card_id.rb +1 -1
  63. data/lib/candidhealth/insurance_payments/v_1/client.rb +2 -2
  64. data/lib/candidhealth/insurance_payments/v_1/types/insurance_payment.rb +1 -1
  65. data/lib/candidhealth/insurance_payments/v_1/types/insurance_payment_id.rb +1 -1
  66. data/lib/candidhealth/insurance_refunds/v_1/client.rb +2 -2
  67. data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refund.rb +1 -1
  68. data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refund_id.rb +1 -1
  69. data/lib/candidhealth/invoices/types/invoice.rb +2 -2
  70. data/lib/candidhealth/invoices/types/invoice_item.rb +1 -1
  71. data/lib/candidhealth/organization_providers/v_2/types/organization_provider.rb +1 -1
  72. data/lib/candidhealth/organization_providers/v_2/types/organization_provider_id.rb +1 -1
  73. data/lib/candidhealth/organization_providers/v_3/types/organization_provider_v_2.rb +1 -1
  74. data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility.rb +1 -1
  75. data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_id.rb +1 -1
  76. data/lib/candidhealth/patient_payments/v_3/types/patient_payment.rb +2 -2
  77. data/lib/candidhealth/patient_payments/v_4/types/patient_payment.rb +3 -3
  78. data/lib/candidhealth/patient_payments/v_4/types/patient_payment_id.rb +1 -1
  79. data/lib/candidhealth/patient_refunds/v_1/types/patient_refund.rb +3 -3
  80. data/lib/candidhealth/patient_refunds/v_1/types/patient_refund_id.rb +1 -1
  81. data/lib/candidhealth/payers/v_3/client.rb +2 -2
  82. data/lib/candidhealth/payers/v_3/types/payer.rb +3 -3
  83. data/lib/candidhealth/payers/v_3/types/payer_identifier.rb +2 -2
  84. data/lib/candidhealth/payers/v_3/types/payer_uuid.rb +1 -1
  85. data/lib/candidhealth/service_facility/types/encounter_service_facility.rb +1 -1
  86. data/lib/candidhealth/service_facility/types/service_facility_id.rb +1 -1
  87. data/lib/candidhealth/service_lines/v_2/types/service_line.rb +6 -6
  88. data/lib/candidhealth/tasks/v_3/types/task.rb +2 -2
  89. data/lib/candidhealth/tasks/v_3/types/task_assignment.rb +2 -2
  90. data/lib/candidhealth/tasks/v_3/types/task_create_v_3.rb +2 -2
  91. data/lib/candidhealth/tasks/v_3/types/task_note.rb +1 -1
  92. data/lib/candidhealth/tasks/v_3/types/task_update_v_3.rb +1 -1
  93. data/lib/candidhealth/write_offs/v_1/client.rb +2 -2
  94. data/lib/candidhealth/write_offs/v_1/types/insurance_write_off.rb +3 -3
  95. data/lib/candidhealth/write_offs/v_1/types/insurance_write_off_target.rb +3 -3
  96. data/lib/candidhealth/write_offs/v_1/types/patient_write_off.rb +4 -4
  97. data/lib/candidhealth/write_offs/v_1/types/patient_write_off_create.rb +1 -1
  98. data/lib/candidhealth/write_offs/v_1/types/write_off_id.rb +1 -1
  99. data/lib/requests.rb +2 -2
  100. metadata +1 -1
@@ -59,7 +59,7 @@ module CandidApiClient
59
59
  def self.validate_raw(obj:)
60
60
  case obj.type
61
61
  when "set"
62
- obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.")
62
+ obj.is_a?(UUID) != false || raise("Passed value for field obj is not the expected type, validation failed.")
63
63
  when "remove"
64
64
  # noop
65
65
  else
@@ -52,9 +52,9 @@ module CandidApiClient
52
52
  # @param obj [Object]
53
53
  # @return [Void]
54
54
  def self.validate_raw(obj:)
55
- obj.service_line_id.is_a?(String) != false || raise("Passed value for field obj.service_line_id is not the expected type, validation failed.")
56
- obj.claim_id.is_a?(String) != false || raise("Passed value for field obj.claim_id is not the expected type, validation failed.")
57
- obj.encounter_id.is_a?(String) != false || raise("Passed value for field obj.encounter_id is not the expected type, validation failed.")
55
+ obj.service_line_id.is_a?(UUID) != false || raise("Passed value for field obj.service_line_id is not the expected type, validation failed.")
56
+ obj.claim_id.is_a?(UUID) != false || raise("Passed value for field obj.claim_id is not the expected type, validation failed.")
57
+ obj.encounter_id.is_a?(UUID) != false || raise("Passed value for field obj.encounter_id is not the expected type, validation failed.")
58
58
  end
59
59
  end
60
60
  end
@@ -104,7 +104,7 @@ module CandidApiClient
104
104
  # @param obj [Object]
105
105
  # @return [Void]
106
106
  def self.validate_raw(obj:)
107
- obj.guarantor_id.is_a?(String) != false || raise("Passed value for field obj.guarantor_id is not the expected type, validation failed.")
107
+ obj.guarantor_id.is_a?(UUID) != false || raise("Passed value for field obj.guarantor_id is not the expected type, validation failed.")
108
108
  obj.phone_numbers.is_a?(Array) != false || raise("Passed value for field obj.phone_numbers is not the expected type, validation failed.")
109
109
  obj.phone_consent.is_a?(Boolean) != false || raise("Passed value for field obj.phone_consent is not the expected type, validation failed.")
110
110
  obj.email&.is_a?(String) != false || raise("Passed value for field obj.email is not the expected type, validation failed.")
@@ -3,7 +3,7 @@
3
3
  module CandidApiClient
4
4
  module Guarantor
5
5
  module V1
6
- GUARANTOR_ID = String
6
+ GUARANTOR_ID = UUID
7
7
  end
8
8
  end
9
9
  end
@@ -72,7 +72,7 @@ module CandidApiClient
72
72
  # @param obj [Object]
73
73
  # @return [Void]
74
74
  def self.validate_raw(obj:)
75
- obj.identifier_id.is_a?(String) != false || raise("Passed value for field obj.identifier_id is not the expected type, validation failed.")
75
+ obj.identifier_id.is_a?(UUID) != false || raise("Passed value for field obj.identifier_id is not the expected type, validation failed.")
76
76
  obj.period.nil? || Commons::DateRangeOptionalEnd.validate_raw(obj: obj.period)
77
77
  obj.identifier_code.is_a?(Identifiers::IdentifierCode) != false || raise("Passed value for field obj.identifier_code is not the expected type, validation failed.")
78
78
  Identifiers::IdentifierValue.validate_raw(obj: obj.identifier_value)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module CandidApiClient
4
4
  class Identifiers
5
- IDENTIFIER_ID = String
5
+ IDENTIFIER_ID = UUID
6
6
  end
7
7
  end
@@ -73,7 +73,7 @@ module CandidApiClient
73
73
  # @param obj [Object]
74
74
  # @return [Void]
75
75
  def self.validate_raw(obj:)
76
- obj.identifier_id.is_a?(String) != false || raise("Passed value for field obj.identifier_id is not the expected type, validation failed.")
76
+ obj.identifier_id.is_a?(UUID) != false || raise("Passed value for field obj.identifier_id is not the expected type, validation failed.")
77
77
  obj.identifier_code&.is_a?(Identifiers::IdentifierCode) != false || raise("Passed value for field obj.identifier_code is not the expected type, validation failed.")
78
78
  obj.identifier_value.nil? || Identifiers::IdentifierValue.validate_raw(obj: obj.identifier_value)
79
79
  obj.period.nil? || Commons::RemovableDateRangeOptionalEnd.validate_raw(obj: obj.period)
@@ -69,7 +69,7 @@ module CandidApiClient
69
69
  when "update"
70
70
  Identifiers::IdentifierUpdate.validate_raw(obj: obj)
71
71
  when "remove"
72
- obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.")
72
+ obj.is_a?(UUID) != false || raise("Passed value for field obj is not the expected type, validation failed.")
73
73
  else
74
74
  raise("Passed value matched no type within the union, validation failed.")
75
75
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module CandidApiClient
4
4
  class Individual
5
- INDIVIDUAL_ID = String
5
+ INDIVIDUAL_ID = UUID
6
6
  end
7
7
  end
@@ -109,7 +109,7 @@ module CandidApiClient
109
109
  # @param obj [Object]
110
110
  # @return [Void]
111
111
  def self.validate_raw(obj:)
112
- obj.individual_id.is_a?(String) != false || raise("Passed value for field obj.individual_id is not the expected type, validation failed.")
112
+ obj.individual_id.is_a?(UUID) != false || raise("Passed value for field obj.individual_id is not the expected type, validation failed.")
113
113
  obj.phone_numbers.is_a?(Array) != false || raise("Passed value for field obj.phone_numbers is not the expected type, validation failed.")
114
114
  obj.phone_consent.is_a?(Boolean) != false || raise("Passed value for field obj.phone_consent is not the expected type, validation failed.")
115
115
  obj.email&.is_a?(String) != false || raise("Passed value for field obj.email is not the expected type, validation failed.")
@@ -96,7 +96,7 @@ module CandidApiClient
96
96
  # @param obj [Object]
97
97
  # @return [Void]
98
98
  def self.validate_raw(obj:)
99
- obj.individual_id.is_a?(String) != false || raise("Passed value for field obj.individual_id is not the expected type, validation failed.")
99
+ obj.individual_id.is_a?(UUID) != false || raise("Passed value for field obj.individual_id is not the expected type, validation failed.")
100
100
  InsuranceCards::V2::InsuranceCard.validate_raw(obj: obj.insurance_card)
101
101
  obj.patient_relationship_to_subscriber_code.is_a?(Commons::PatientRelationshipToInsuredCodeAll) != false || raise("Passed value for field obj.patient_relationship_to_subscriber_code is not the expected type, validation failed.")
102
102
  obj.date_of_birth&.is_a?(String) != false || raise("Passed value for field obj.date_of_birth is not the expected type, validation failed.")
@@ -87,7 +87,7 @@ module CandidApiClient
87
87
  # @param obj [Object]
88
88
  # @return [Void]
89
89
  def self.validate_raw(obj:)
90
- obj.claim_id.is_a?(String) != false || raise("Passed value for field obj.claim_id is not the expected type, validation failed.")
90
+ obj.claim_id.is_a?(UUID) != false || raise("Passed value for field obj.claim_id is not the expected type, validation failed.")
91
91
  obj.insurance_allowed_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.insurance_allowed_amount_cents is not the expected type, validation failed.")
92
92
  obj.insurance_paid_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.insurance_paid_amount_cents is not the expected type, validation failed.")
93
93
  obj.charge_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.charge_amount_cents is not the expected type, validation failed.")
@@ -13,7 +13,7 @@ module CandidApiClient
13
13
  :additional_properties
14
14
 
15
15
  # @param insurance_adjudication_id [InsuranceAdjudications::V1::INSURANCE_ADJUDICATION_ID]
16
- # @param payer_uuid [Payers::V3::PAYER_String]
16
+ # @param payer_uuid [Payers::V3::PAYER_UUID]
17
17
  # @param post_date [Date]
18
18
  # @param check_number [String]
19
19
  # @param check_date [Date]
@@ -25,7 +25,7 @@ module CandidApiClient
25
25
  note: nil, additional_properties: nil)
26
26
  # @type [InsuranceAdjudications::V1::INSURANCE_ADJUDICATION_ID]
27
27
  @insurance_adjudication_id = insurance_adjudication_id
28
- # @type [Payers::V3::PAYER_String]
28
+ # @type [Payers::V3::PAYER_UUID]
29
29
  @payer_uuid = payer_uuid
30
30
  # @type [Date]
31
31
  @post_date = post_date
@@ -85,8 +85,8 @@ module CandidApiClient
85
85
  # @param obj [Object]
86
86
  # @return [Void]
87
87
  def self.validate_raw(obj:)
88
- obj.insurance_adjudication_id.is_a?(String) != false || raise("Passed value for field obj.insurance_adjudication_id is not the expected type, validation failed.")
89
- obj.payer_uuid.is_a?(String) != false || raise("Passed value for field obj.payer_uuid is not the expected type, validation failed.")
88
+ obj.insurance_adjudication_id.is_a?(UUID) != false || raise("Passed value for field obj.insurance_adjudication_id is not the expected type, validation failed.")
89
+ obj.payer_uuid.is_a?(UUID) != false || raise("Passed value for field obj.payer_uuid is not the expected type, validation failed.")
90
90
  obj.post_date&.is_a?(Date) != false || raise("Passed value for field obj.post_date is not the expected type, validation failed.")
91
91
  obj.check_number&.is_a?(String) != false || raise("Passed value for field obj.check_number is not the expected type, validation failed.")
92
92
  obj.check_date.is_a?(Date) != false || raise("Passed value for field obj.check_date is not the expected type, validation failed.")
@@ -3,7 +3,7 @@
3
3
  module CandidApiClient
4
4
  module InsuranceAdjudications
5
5
  module V1
6
- INSURANCE_ADJUDICATION_ID = String
6
+ INSURANCE_ADJUDICATION_ID = UUID
7
7
  end
8
8
  end
9
9
  end
@@ -96,7 +96,7 @@ module CandidApiClient
96
96
  # @param obj [Object]
97
97
  # @return [Void]
98
98
  def self.validate_raw(obj:)
99
- obj.service_line_adjudication_id.is_a?(String) != false || raise("Passed value for field obj.service_line_adjudication_id is not the expected type, validation failed.")
99
+ obj.service_line_adjudication_id.is_a?(UUID) != false || raise("Passed value for field obj.service_line_adjudication_id is not the expected type, validation failed.")
100
100
  obj.denial_reason&.is_a?(ServiceLines::V2::DenialReasonContent) != false || raise("Passed value for field obj.denial_reason is not the expected type, validation failed.")
101
101
  obj.insurance_allowed_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.insurance_allowed_amount_cents is not the expected type, validation failed.")
102
102
  obj.insurance_paid_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.insurance_paid_amount_cents is not the expected type, validation failed.")
@@ -3,7 +3,7 @@
3
3
  module CandidApiClient
4
4
  module InsuranceAdjudications
5
5
  module V1
6
- SERVICE_LINE_ADJUDICATION_ID = String
6
+ SERVICE_LINE_ADJUDICATION_ID = UUID
7
7
  end
8
8
  end
9
9
  end
@@ -104,7 +104,7 @@ module CandidApiClient
104
104
  # @param obj [Object]
105
105
  # @return [Void]
106
106
  def self.validate_raw(obj:)
107
- obj.insurance_card_id.is_a?(String) != false || raise("Passed value for field obj.insurance_card_id is not the expected type, validation failed.")
107
+ obj.insurance_card_id.is_a?(UUID) != false || raise("Passed value for field obj.insurance_card_id is not the expected type, validation failed.")
108
108
  obj.member_id.is_a?(String) != false || raise("Passed value for field obj.member_id is not the expected type, validation failed.")
109
109
  obj.payer_name.is_a?(String) != false || raise("Passed value for field obj.payer_name is not the expected type, validation failed.")
110
110
  obj.payer_id.is_a?(String) != false || raise("Passed value for field obj.payer_id is not the expected type, validation failed.")
@@ -3,7 +3,7 @@
3
3
  module CandidApiClient
4
4
  module InsuranceCards
5
5
  module V2
6
- INSURANCE_CARD_ID = String
6
+ INSURANCE_CARD_ID = UUID
7
7
  end
8
8
  end
9
9
  end
@@ -32,7 +32,7 @@ module CandidApiClient
32
32
  # Returns all non-ERA originated insurance payments satisfying the search criteria
33
33
  #
34
34
  # @param limit [Integer] Defaults to 100. The value must be greater than 0 and less than 1000.
35
- # @param payer_uuid [Payers::V3::PAYER_String]
35
+ # @param payer_uuid [Payers::V3::PAYER_UUID]
36
36
  # @param claim_id [Commons::CLAIM_ID]
37
37
  # @param service_line_id [Commons::SERVICE_LINE_ID]
38
38
  # @param billing_provider_id [Commons::PROVIDER_ID]
@@ -150,7 +150,7 @@ module CandidApiClient
150
150
  # Returns all non-ERA originated insurance payments satisfying the search criteria
151
151
  #
152
152
  # @param limit [Integer] Defaults to 100. The value must be greater than 0 and less than 1000.
153
- # @param payer_uuid [Payers::V3::PAYER_String]
153
+ # @param payer_uuid [Payers::V3::PAYER_UUID]
154
154
  # @param claim_id [Commons::CLAIM_ID]
155
155
  # @param service_line_id [Commons::SERVICE_LINE_ID]
156
156
  # @param billing_provider_id [Commons::PROVIDER_ID]
@@ -85,7 +85,7 @@ module CandidApiClient
85
85
  # @param obj [Object]
86
86
  # @return [Void]
87
87
  def self.validate_raw(obj:)
88
- obj.insurance_payment_id.is_a?(String) != false || raise("Passed value for field obj.insurance_payment_id is not the expected type, validation failed.")
88
+ obj.insurance_payment_id.is_a?(UUID) != false || raise("Passed value for field obj.insurance_payment_id is not the expected type, validation failed.")
89
89
  Payers::V3::Payer.validate_raw(obj: obj.payer)
90
90
  obj.amount_cents.is_a?(Integer) != false || raise("Passed value for field obj.amount_cents is not the expected type, validation failed.")
91
91
  obj.payment_timestamp&.is_a?(DateTime) != false || raise("Passed value for field obj.payment_timestamp is not the expected type, validation failed.")
@@ -3,7 +3,7 @@
3
3
  module CandidApiClient
4
4
  module InsurancePayments
5
5
  module V1
6
- INSURANCE_PAYMENT_ID = String
6
+ INSURANCE_PAYMENT_ID = UUID
7
7
  end
8
8
  end
9
9
  end
@@ -34,7 +34,7 @@ module CandidApiClient
34
34
  # the current organization_id of the authenticated user.
35
35
  #
36
36
  # @param limit [Integer] Defaults to 100. The value must be greater than 0 and less than 1000.
37
- # @param payer_uuid [Payers::V3::PAYER_String]
37
+ # @param payer_uuid [Payers::V3::PAYER_UUID]
38
38
  # @param claim_id [Commons::CLAIM_ID]
39
39
  # @param service_line_id [Commons::SERVICE_LINE_ID]
40
40
  # @param billing_provider_id [Commons::PROVIDER_ID]
@@ -157,7 +157,7 @@ module CandidApiClient
157
157
  # the current organization_id of the authenticated user.
158
158
  #
159
159
  # @param limit [Integer] Defaults to 100. The value must be greater than 0 and less than 1000.
160
- # @param payer_uuid [Payers::V3::PAYER_String]
160
+ # @param payer_uuid [Payers::V3::PAYER_UUID]
161
161
  # @param claim_id [Commons::CLAIM_ID]
162
162
  # @param service_line_id [Commons::SERVICE_LINE_ID]
163
163
  # @param billing_provider_id [Commons::PROVIDER_ID]
@@ -91,7 +91,7 @@ module CandidApiClient
91
91
  # @param obj [Object]
92
92
  # @return [Void]
93
93
  def self.validate_raw(obj:)
94
- obj.insurance_refund_id.is_a?(String) != false || raise("Passed value for field obj.insurance_refund_id is not the expected type, validation failed.")
94
+ obj.insurance_refund_id.is_a?(UUID) != false || raise("Passed value for field obj.insurance_refund_id is not the expected type, validation failed.")
95
95
  Payers::V3::Payer.validate_raw(obj: obj.payer)
96
96
  obj.amount_cents.is_a?(Integer) != false || raise("Passed value for field obj.amount_cents is not the expected type, validation failed.")
97
97
  obj.refund_timestamp&.is_a?(DateTime) != false || raise("Passed value for field obj.refund_timestamp is not the expected type, validation failed.")
@@ -3,7 +3,7 @@
3
3
  module CandidApiClient
4
4
  module InsuranceRefunds
5
5
  module V1
6
- INSURANCE_REFUND_ID = String
6
+ INSURANCE_REFUND_ID = UUID
7
7
  end
8
8
  end
9
9
  end
@@ -115,10 +115,10 @@ module CandidApiClient
115
115
  # @param obj [Object]
116
116
  # @return [Void]
117
117
  def self.validate_raw(obj:)
118
- obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
118
+ obj.id.is_a?(UUID) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
119
119
  obj.created_at.is_a?(DateTime) != false || raise("Passed value for field obj.created_at is not the expected type, validation failed.")
120
120
  obj.updated_at.is_a?(DateTime) != false || raise("Passed value for field obj.updated_at is not the expected type, validation failed.")
121
- obj.organzation_id.is_a?(String) != false || raise("Passed value for field obj.organzation_id is not the expected type, validation failed.")
121
+ obj.organzation_id.is_a?(UUID) != false || raise("Passed value for field obj.organzation_id is not the expected type, validation failed.")
122
122
  obj.source_id.is_a?(String) != false || raise("Passed value for field obj.source_id is not the expected type, validation failed.")
123
123
  obj.source_customer_id.is_a?(String) != false || raise("Passed value for field obj.source_customer_id is not the expected type, validation failed.")
124
124
  obj.patient_external_id.is_a?(String) != false || raise("Passed value for field obj.patient_external_id is not the expected type, validation failed.")
@@ -45,7 +45,7 @@ module CandidApiClient
45
45
  # @param obj [Object]
46
46
  # @return [Void]
47
47
  def self.validate_raw(obj:)
48
- obj.service_line_id.is_a?(String) != false || raise("Passed value for field obj.service_line_id is not the expected type, validation failed.")
48
+ obj.service_line_id.is_a?(UUID) != false || raise("Passed value for field obj.service_line_id is not the expected type, validation failed.")
49
49
  obj.amount_cents.is_a?(Integer) != false || raise("Passed value for field obj.amount_cents is not the expected type, validation failed.")
50
50
  end
51
51
  end
@@ -135,7 +135,7 @@ module CandidApiClient
135
135
  # @param obj [Object]
136
136
  # @return [Void]
137
137
  def self.validate_raw(obj:)
138
- obj.organization_provider_id.is_a?(String) != false || raise("Passed value for field obj.organization_provider_id is not the expected type, validation failed.")
138
+ obj.organization_provider_id.is_a?(UUID) != false || raise("Passed value for field obj.organization_provider_id is not the expected type, validation failed.")
139
139
  obj.employment_status.is_a?(OrganizationProviders::V2::EmploymentStatus) != false || raise("Passed value for field obj.employment_status is not the expected type, validation failed.")
140
140
  obj.employment_start_date&.is_a?(String) != false || raise("Passed value for field obj.employment_start_date is not the expected type, validation failed.")
141
141
  obj.employment_termination_date&.is_a?(String) != false || raise("Passed value for field obj.employment_termination_date is not the expected type, validation failed.")
@@ -3,7 +3,7 @@
3
3
  module CandidApiClient
4
4
  module OrganizationProviders
5
5
  module V2
6
- ORGANIZATION_PROVIDER_ID = String
6
+ ORGANIZATION_PROVIDER_ID = UUID
7
7
  end
8
8
  end
9
9
  end
@@ -145,7 +145,7 @@ module CandidApiClient
145
145
  obj.addresses&.is_a?(Array) != false || raise("Passed value for field obj.addresses is not the expected type, validation failed.")
146
146
  obj.employment_start_date&.is_a?(Date) != false || raise("Passed value for field obj.employment_start_date is not the expected type, validation failed.")
147
147
  obj.employment_termination_date&.is_a?(Date) != false || raise("Passed value for field obj.employment_termination_date is not the expected type, validation failed.")
148
- obj.organization_provider_id.is_a?(String) != false || raise("Passed value for field obj.organization_provider_id is not the expected type, validation failed.")
148
+ obj.organization_provider_id.is_a?(UUID) != false || raise("Passed value for field obj.organization_provider_id is not the expected type, validation failed.")
149
149
  obj.qualifications.is_a?(Array) != false || raise("Passed value for field obj.qualifications is not the expected type, validation failed.")
150
150
  end
151
151
  end
@@ -115,7 +115,7 @@ module CandidApiClient
115
115
  # @param obj [Object]
116
116
  # @return [Void]
117
117
  def self.validate_raw(obj:)
118
- obj.organization_service_facility_id.is_a?(String) != false || raise("Passed value for field obj.organization_service_facility_id is not the expected type, validation failed.")
118
+ obj.organization_service_facility_id.is_a?(UUID) != false || raise("Passed value for field obj.organization_service_facility_id is not the expected type, validation failed.")
119
119
  obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
120
120
  obj.aliases.is_a?(Array) != false || raise("Passed value for field obj.aliases is not the expected type, validation failed.")
121
121
  obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
@@ -3,7 +3,7 @@
3
3
  module CandidApiClient
4
4
  module OrganizationServiceFacilities
5
5
  module V2
6
- ORGANIZATION_SERVICE_FACILITY_ID = String
6
+ ORGANIZATION_SERVICE_FACILITY_ID = UUID
7
7
  end
8
8
  end
9
9
  end
@@ -112,7 +112,7 @@ module CandidApiClient
112
112
  # @return [Void]
113
113
  def self.validate_raw(obj:)
114
114
  obj.patient_payment_id.is_a?(String) != false || raise("Passed value for field obj.patient_payment_id is not the expected type, validation failed.")
115
- obj.organization_id.is_a?(String) != false || raise("Passed value for field obj.organization_id is not the expected type, validation failed.")
115
+ obj.organization_id.is_a?(UUID) != false || raise("Passed value for field obj.organization_id is not the expected type, validation failed.")
116
116
  obj.source_internal_id.is_a?(String) != false || raise("Passed value for field obj.source_internal_id is not the expected type, validation failed.")
117
117
  obj.source.is_a?(PatientPayments::V3::PatientPaymentSource) != false || raise("Passed value for field obj.source is not the expected type, validation failed.")
118
118
  obj.amount_cents.is_a?(Integer) != false || raise("Passed value for field obj.amount_cents is not the expected type, validation failed.")
@@ -122,7 +122,7 @@ module CandidApiClient
122
122
  obj.payment_note&.is_a?(String) != false || raise("Passed value for field obj.payment_note is not the expected type, validation failed.")
123
123
  obj.patient_external_id&.is_a?(String) != false || raise("Passed value for field obj.patient_external_id is not the expected type, validation failed.")
124
124
  obj.encounter_external_id&.is_a?(String) != false || raise("Passed value for field obj.encounter_external_id is not the expected type, validation failed.")
125
- obj.service_line_id&.is_a?(String) != false || raise("Passed value for field obj.service_line_id is not the expected type, validation failed.")
125
+ obj.service_line_id&.is_a?(UUID) != false || raise("Passed value for field obj.service_line_id is not the expected type, validation failed.")
126
126
  end
127
127
  end
128
128
  end
@@ -103,8 +103,8 @@ module CandidApiClient
103
103
  # @param obj [Object]
104
104
  # @return [Void]
105
105
  def self.validate_raw(obj:)
106
- obj.patient_payment_id.is_a?(String) != false || raise("Passed value for field obj.patient_payment_id is not the expected type, validation failed.")
107
- obj.organization_id.is_a?(String) != false || raise("Passed value for field obj.organization_id is not the expected type, validation failed.")
106
+ obj.patient_payment_id.is_a?(UUID) != false || raise("Passed value for field obj.patient_payment_id is not the expected type, validation failed.")
107
+ obj.organization_id.is_a?(UUID) != false || raise("Passed value for field obj.organization_id is not the expected type, validation failed.")
108
108
  obj.source_internal_id&.is_a?(String) != false || raise("Passed value for field obj.source_internal_id is not the expected type, validation failed.")
109
109
  obj.payment_source.is_a?(Financials::PatientTransactionSource) != false || raise("Passed value for field obj.payment_source is not the expected type, validation failed.")
110
110
  obj.amount_cents.is_a?(Integer) != false || raise("Passed value for field obj.amount_cents is not the expected type, validation failed.")
@@ -112,7 +112,7 @@ module CandidApiClient
112
112
  obj.payment_timestamp&.is_a?(DateTime) != false || raise("Passed value for field obj.payment_timestamp is not the expected type, validation failed.")
113
113
  obj.payment_note&.is_a?(String) != false || raise("Passed value for field obj.payment_note is not the expected type, validation failed.")
114
114
  obj.allocations.is_a?(Array) != false || raise("Passed value for field obj.allocations is not the expected type, validation failed.")
115
- obj.invoice&.is_a?(String) != false || raise("Passed value for field obj.invoice is not the expected type, validation failed.")
115
+ obj.invoice&.is_a?(UUID) != false || raise("Passed value for field obj.invoice is not the expected type, validation failed.")
116
116
  end
117
117
  end
118
118
  end
@@ -3,7 +3,7 @@
3
3
  module CandidApiClient
4
4
  module PatientPayments
5
5
  module V4
6
- PATIENT_PAYMENT_ID = String
6
+ PATIENT_PAYMENT_ID = UUID
7
7
  end
8
8
  end
9
9
  end
@@ -109,8 +109,8 @@ module CandidApiClient
109
109
  # @param obj [Object]
110
110
  # @return [Void]
111
111
  def self.validate_raw(obj:)
112
- obj.patient_refund_id.is_a?(String) != false || raise("Passed value for field obj.patient_refund_id is not the expected type, validation failed.")
113
- obj.organization_id.is_a?(String) != false || raise("Passed value for field obj.organization_id is not the expected type, validation failed.")
112
+ obj.patient_refund_id.is_a?(UUID) != false || raise("Passed value for field obj.patient_refund_id is not the expected type, validation failed.")
113
+ obj.organization_id.is_a?(UUID) != false || raise("Passed value for field obj.organization_id is not the expected type, validation failed.")
114
114
  obj.source_internal_id&.is_a?(String) != false || raise("Passed value for field obj.source_internal_id is not the expected type, validation failed.")
115
115
  obj.refund_source.is_a?(Financials::PatientTransactionSource) != false || raise("Passed value for field obj.refund_source is not the expected type, validation failed.")
116
116
  obj.amount_cents.is_a?(Integer) != false || raise("Passed value for field obj.amount_cents is not the expected type, validation failed.")
@@ -118,7 +118,7 @@ module CandidApiClient
118
118
  obj.refund_timestamp&.is_a?(DateTime) != false || raise("Passed value for field obj.refund_timestamp is not the expected type, validation failed.")
119
119
  obj.refund_note&.is_a?(String) != false || raise("Passed value for field obj.refund_note is not the expected type, validation failed.")
120
120
  obj.allocations.is_a?(Array) != false || raise("Passed value for field obj.allocations is not the expected type, validation failed.")
121
- obj.invoice&.is_a?(String) != false || raise("Passed value for field obj.invoice is not the expected type, validation failed.")
121
+ obj.invoice&.is_a?(UUID) != false || raise("Passed value for field obj.invoice is not the expected type, validation failed.")
122
122
  obj.refund_reason&.is_a?(Financials::RefundReason) != false || raise("Passed value for field obj.refund_reason is not the expected type, validation failed.")
123
123
  end
124
124
  end
@@ -3,7 +3,7 @@
3
3
  module CandidApiClient
4
4
  module PatientRefunds
5
5
  module V1
6
- PATIENT_REFUND_ID = String
6
+ PATIENT_REFUND_ID = UUID
7
7
  end
8
8
  end
9
9
  end
@@ -20,7 +20,7 @@ module CandidApiClient
20
20
  @request_client = request_client
21
21
  end
22
22
 
23
- # @param payer_uuid [Payers::V3::PAYER_String]
23
+ # @param payer_uuid [Payers::V3::PAYER_UUID]
24
24
  # @param request_options [RequestOptions]
25
25
  # @return [Payers::V3::Payer]
26
26
  def get(payer_uuid:, request_options: nil)
@@ -63,7 +63,7 @@ module CandidApiClient
63
63
  @request_client = request_client
64
64
  end
65
65
 
66
- # @param payer_uuid [Payers::V3::PAYER_String]
66
+ # @param payer_uuid [Payers::V3::PAYER_UUID]
67
67
  # @param request_options [RequestOptions]
68
68
  # @return [Payers::V3::Payer]
69
69
  def get(payer_uuid:, request_options: nil)
@@ -9,13 +9,13 @@ module CandidApiClient
9
9
  class Payer
10
10
  attr_reader :payer_uuid, :payer_id, :payer_name, :additional_properties
11
11
 
12
- # @param payer_uuid [Payers::V3::PAYER_String] Auto-generated ID set on creation.
12
+ # @param payer_uuid [Payers::V3::PAYER_UUID] Auto-generated ID set on creation.
13
13
  # @param payer_id [String] The primary national payer ID of the payer.
14
14
  # @param payer_name [String] The primary display name of the payer.
15
15
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
16
16
  # @return [Payers::V3::Payer]
17
17
  def initialize(payer_uuid:, payer_id:, payer_name:, additional_properties: nil)
18
- # @type [Payers::V3::PAYER_String] Auto-generated ID set on creation.
18
+ # @type [Payers::V3::PAYER_UUID] Auto-generated ID set on creation.
19
19
  @payer_uuid = payer_uuid
20
20
  # @type [String] The primary national payer ID of the payer.
21
21
  @payer_id = payer_id
@@ -50,7 +50,7 @@ module CandidApiClient
50
50
  # @param obj [Object]
51
51
  # @return [Void]
52
52
  def self.validate_raw(obj:)
53
- obj.payer_uuid.is_a?(String) != false || raise("Passed value for field obj.payer_uuid is not the expected type, validation failed.")
53
+ obj.payer_uuid.is_a?(UUID) != false || raise("Passed value for field obj.payer_uuid is not the expected type, validation failed.")
54
54
  obj.payer_id.is_a?(String) != false || raise("Passed value for field obj.payer_id is not the expected type, validation failed.")
55
55
  obj.payer_name.is_a?(String) != false || raise("Passed value for field obj.payer_name is not the expected type, validation failed.")
56
56
  end
@@ -63,7 +63,7 @@ module CandidApiClient
63
63
  when "payer_info"
64
64
  Payers::V3::PayerInfo.validate_raw(obj: obj)
65
65
  when "payer_uuid"
66
- obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.")
66
+ obj.is_a?(UUID) != false || raise("Passed value for field obj is not the expected type, validation failed.")
67
67
  else
68
68
  raise("Passed value matched no type within the union, validation failed.")
69
69
  end
@@ -83,7 +83,7 @@ module CandidApiClient
83
83
  new(member: member, discriminant: "payer_info")
84
84
  end
85
85
 
86
- # @param member [Payers::V3::PAYER_String]
86
+ # @param member [Payers::V3::PAYER_UUID]
87
87
  # @return [Payers::V3::PayerIdentifier]
88
88
  def self.payer_uuid(member:)
89
89
  new(member: member, discriminant: "payer_uuid")
@@ -3,7 +3,7 @@
3
3
  module CandidApiClient
4
4
  module Payers
5
5
  module V3
6
- PAYER_String = String
6
+ PAYER_UUID = UUID
7
7
  end
8
8
  end
9
9
  end
@@ -67,7 +67,7 @@ module CandidApiClient
67
67
  # @param obj [Object]
68
68
  # @return [Void]
69
69
  def self.validate_raw(obj:)
70
- obj.service_facility_id.is_a?(String) != false || raise("Passed value for field obj.service_facility_id is not the expected type, validation failed.")
70
+ obj.service_facility_id.is_a?(UUID) != false || raise("Passed value for field obj.service_facility_id is not the expected type, validation failed.")
71
71
  obj.organization_name.is_a?(String) != false || raise("Passed value for field obj.organization_name is not the expected type, validation failed.")
72
72
  obj.npi&.is_a?(String) != false || raise("Passed value for field obj.npi is not the expected type, validation failed.")
73
73
  Commons::StreetAddressLongZip.validate_raw(obj: obj.address)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module CandidApiClient
4
4
  class ServiceFacility
5
- SERVICE_FACILITY_ID = String
5
+ SERVICE_FACILITY_ID = UUID
6
6
  end
7
7
  end
@@ -202,20 +202,20 @@ module CandidApiClient
202
202
  obj.patient_balance_cents&.is_a?(Integer) != false || raise("Passed value for field obj.patient_balance_cents is not the expected type, validation failed.")
203
203
  obj.paid_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.paid_amount_cents is not the expected type, validation failed.")
204
204
  obj.patient_responsibility_cents&.is_a?(Integer) != false || raise("Passed value for field obj.patient_responsibility_cents is not the expected type, validation failed.")
205
- obj.diagnosis_id_zero&.is_a?(String) != false || raise("Passed value for field obj.diagnosis_id_zero is not the expected type, validation failed.")
206
- obj.diagnosis_id_one&.is_a?(String) != false || raise("Passed value for field obj.diagnosis_id_one is not the expected type, validation failed.")
207
- obj.diagnosis_id_two&.is_a?(String) != false || raise("Passed value for field obj.diagnosis_id_two is not the expected type, validation failed.")
208
- obj.diagnosis_id_three&.is_a?(String) != false || raise("Passed value for field obj.diagnosis_id_three is not the expected type, validation failed.")
205
+ obj.diagnosis_id_zero&.is_a?(UUID) != false || raise("Passed value for field obj.diagnosis_id_zero is not the expected type, validation failed.")
206
+ obj.diagnosis_id_one&.is_a?(UUID) != false || raise("Passed value for field obj.diagnosis_id_one is not the expected type, validation failed.")
207
+ obj.diagnosis_id_two&.is_a?(UUID) != false || raise("Passed value for field obj.diagnosis_id_two is not the expected type, validation failed.")
208
+ obj.diagnosis_id_three&.is_a?(UUID) != false || raise("Passed value for field obj.diagnosis_id_three is not the expected type, validation failed.")
209
209
  obj.service_line_era_data.nil? || ServiceLines::V2::ServiceLineEraData.validate_raw(obj: obj.service_line_era_data)
210
210
  obj.service_line_manual_adjustments&.is_a?(Array) != false || raise("Passed value for field obj.service_line_manual_adjustments is not the expected type, validation failed.")
211
211
  obj.related_invoices&.is_a?(Array) != false || raise("Passed value for field obj.related_invoices is not the expected type, validation failed.")
212
212
  obj.denial_reason.nil? || ServiceLines::V2::ServiceLineDenialReason.validate_raw(obj: obj.denial_reason)
213
213
  obj.place_of_service_code&.is_a?(Commons::FacilityTypeCode) != false || raise("Passed value for field obj.place_of_service_code is not the expected type, validation failed.")
214
- obj.service_line_id.is_a?(String) != false || raise("Passed value for field obj.service_line_id is not the expected type, validation failed.")
214
+ obj.service_line_id.is_a?(UUID) != false || raise("Passed value for field obj.service_line_id is not the expected type, validation failed.")
215
215
  obj.procedure_code.is_a?(String) != false || raise("Passed value for field obj.procedure_code is not the expected type, validation failed.")
216
216
  obj.quantity.is_a?(String) != false || raise("Passed value for field obj.quantity is not the expected type, validation failed.")
217
217
  obj.units.is_a?(Commons::ServiceLineUnits) != false || raise("Passed value for field obj.units is not the expected type, validation failed.")
218
- obj.claim_id.is_a?(String) != false || raise("Passed value for field obj.claim_id is not the expected type, validation failed.")
218
+ obj.claim_id.is_a?(UUID) != false || raise("Passed value for field obj.claim_id is not the expected type, validation failed.")
219
219
  Commons::DateRangeOptionalEnd.validate_raw(obj: obj.date_of_service_range)
220
220
  obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
221
221
  end
@@ -145,8 +145,8 @@ module CandidApiClient
145
145
  # @param obj [Object]
146
146
  # @return [Void]
147
147
  def self.validate_raw(obj:)
148
- obj.task_id.is_a?(String) != false || raise("Passed value for field obj.task_id is not the expected type, validation failed.")
149
- obj.encounter_id.is_a?(String) != false || raise("Passed value for field obj.encounter_id is not the expected type, validation failed.")
148
+ obj.task_id.is_a?(UUID) != false || raise("Passed value for field obj.task_id is not the expected type, validation failed.")
149
+ obj.encounter_id.is_a?(UUID) != false || raise("Passed value for field obj.encounter_id is not the expected type, validation failed.")
150
150
  obj.task_type.is_a?(Tasks::Commons::TaskType) != false || raise("Passed value for field obj.task_type is not the expected type, validation failed.")
151
151
  obj.description.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
152
152
  obj.blocks_claim_submission.is_a?(Boolean) != false || raise("Passed value for field obj.blocks_claim_submission is not the expected type, validation failed.")
@@ -47,8 +47,8 @@ module CandidApiClient
47
47
  # @param obj [Object]
48
48
  # @return [Void]
49
49
  def self.validate_raw(obj:)
50
- obj.task_assignment_id.is_a?(String) != false || raise("Passed value for field obj.task_assignment_id is not the expected type, validation failed.")
51
- obj.assignee_user_id&.is_a?(String) != false || raise("Passed value for field obj.assignee_user_id is not the expected type, validation failed.")
50
+ obj.task_assignment_id.is_a?(UUID) != false || raise("Passed value for field obj.task_assignment_id is not the expected type, validation failed.")
51
+ obj.assignee_user_id&.is_a?(UUID) != false || raise("Passed value for field obj.assignee_user_id is not the expected type, validation failed.")
52
52
  end
53
53
  end
54
54
  end