candidhealth 0.43.1 → 0.46.0
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.
- checksums.yaml +4 -4
- data/lib/candidhealth/billing_notes/v_2/client.rb +2 -2
- data/lib/candidhealth/charge_capture/v_1/client.rb +479 -559
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +200 -190
- data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +2 -44
- data/lib/candidhealth/commons/types/street_address_optional_base.rb +99 -0
- data/lib/candidhealth/commons/types/street_address_short_zip_optional.rb +107 -0
- data/lib/candidhealth/contracts/v_2/client.rb +18 -34
- data/lib/candidhealth/contracts/v_2/types/contract_sort_field.rb +18 -0
- data/lib/candidhealth/credentialing/v_2/client.rb +6 -44
- data/lib/candidhealth/diagnoses/client.rb +4 -14
- data/lib/candidhealth/eligibility/v_2/client.rb +4 -4
- data/lib/candidhealth/encounter_attachments/v_1/client.rb +0 -6
- data/lib/candidhealth/encounter_providers/v_2/client.rb +16 -16
- data/lib/candidhealth/encounter_providers/v_2/types/billing_provider_update_with_optional_address.rb +160 -0
- data/lib/candidhealth/encounter_providers/v_2/types/initial_referring_provider_update_with_optional_address.rb +134 -0
- data/lib/candidhealth/encounter_providers/v_2/types/referring_provider_update_with_optional_address.rb +125 -0
- data/lib/candidhealth/encounter_providers/v_2/types/rendering_provider_update_with_optional_address.rb +125 -0
- data/lib/candidhealth/encounter_providers/v_2/types/supervising_provider_update_with_optional_address.rb +125 -0
- data/lib/candidhealth/encounters/v_4/client.rb +259 -293
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +23 -13
- data/lib/candidhealth/encounters/v_4/types/encounter_base.rb +10 -10
- data/lib/candidhealth/encounters/v_4/types/encounter_create_from_pre_encounter.rb +10 -10
- data/lib/candidhealth/encounters/v_4/types/encounter_optional.rb +26 -184
- data/lib/candidhealth/expected_network_status/v_1/client.rb +12 -18
- data/lib/candidhealth/expected_network_status/v_2/client.rb +4 -4
- data/lib/candidhealth/expected_network_status/v_2/types/empty_object.rb +53 -0
- data/lib/candidhealth/expected_network_status/v_2/types/insurance_type_codes.rb +13 -10
- data/lib/candidhealth/external_payment_account_config/v_1/client.rb +2 -2
- data/lib/candidhealth/fee_schedules/v_3/client.rb +12 -68
- data/lib/candidhealth/fee_schedules/v_3/types/payer_threshold.rb +3 -3
- data/lib/candidhealth/fee_schedules/v_3/types/rate_entry.rb +2 -2
- data/lib/candidhealth/guarantor/v_1/client.rb +4 -4
- data/lib/candidhealth/import_invoice/v_1/client.rb +6 -28
- data/lib/candidhealth/individual/types/patient_update_with_optional_address.rb +179 -0
- data/lib/candidhealth/insurance_adjudications/v_1/client.rb +2 -2
- data/lib/candidhealth/insurance_payments/v_1/client.rb +2 -20
- data/lib/candidhealth/insurance_refunds/v_1/client.rb +6 -24
- data/lib/candidhealth/medication_dispense/v_1/client.rb +2 -2
- data/lib/candidhealth/non_insurance_payer_payments/v_1/client.rb +6 -22
- data/lib/candidhealth/non_insurance_payer_refunds/v_1/client.rb +6 -22
- data/lib/candidhealth/non_insurance_payers/v_1/client.rb +6 -22
- data/lib/candidhealth/organization_providers/v_3/client.rb +4 -4
- data/lib/candidhealth/organization_service_facilities/v_2/client.rb +2 -2
- data/lib/candidhealth/patient_payments/v_4/client.rb +8 -38
- data/lib/candidhealth/patient_refunds/v_1/client.rb +8 -40
- data/lib/candidhealth/payer_plan_groups/v_1/client.rb +6 -30
- data/lib/candidhealth/pre_encounter/appointments/v_1/client.rb +32 -44
- data/lib/candidhealth/pre_encounter/appointments/v_1/types/appointment.rb +4 -4
- data/lib/candidhealth/pre_encounter/common/types/base_model.rb +4 -4
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +24 -34
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage.rb +4 -4
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/client.rb +2 -2
- data/lib/candidhealth/pre_encounter/images/v_1/client.rb +20 -20
- data/lib/candidhealth/pre_encounter/images/v_1/types/image.rb +6 -6
- data/lib/candidhealth/pre_encounter/lists/v_1/client.rb +4 -28
- data/lib/candidhealth/pre_encounter/notes/v_1/client.rb +14 -14
- data/lib/candidhealth/pre_encounter/notes/v_1/types/note.rb +4 -4
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +56 -68
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +8 -8
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +8 -8
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +16 -16
- data/lib/candidhealth/pre_encounter/tags/v_1/client.rb +16 -16
- data/lib/candidhealth/pre_encounter/tags/v_1/types/tag.rb +4 -4
- data/lib/candidhealth/service_facility/client.rb +2 -2
- data/lib/candidhealth/service_facility/types/encounter_service_facility_update_with_optional_address.rb +113 -0
- data/lib/candidhealth/service_lines/v_2/client.rb +4 -4
- data/lib/candidhealth/superbills/v_1/client.rb +4 -6
- data/lib/candidhealth/tasks/v_3/client.rb +6 -34
- data/lib/candidhealth/write_offs/v_1/client.rb +2 -24
- data/lib/environment.rb +4 -0
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +11 -1
- metadata +13 -3
- data/lib/candidhealth/billing_notes/v_2/types/billing_note_optional.rb +0 -112
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "json"
|
4
|
+
require_relative "empty_object"
|
4
5
|
require_relative "../../../commons/types/insurance_type_code"
|
5
6
|
|
6
7
|
module CandidApiClient
|
@@ -34,9 +35,9 @@ module CandidApiClient
|
|
34
35
|
when "insurance_type_code"
|
35
36
|
json_object.value
|
36
37
|
when "unknown_insurance_type_code"
|
37
|
-
|
38
|
+
CandidApiClient::ExpectedNetworkStatus::V2::Types::EmptyObject.from_json(json_object: json_object)
|
38
39
|
when "not_applicable"
|
39
|
-
|
40
|
+
CandidApiClient::ExpectedNetworkStatus::V2::Types::EmptyObject.from_json(json_object: json_object)
|
40
41
|
else
|
41
42
|
json_object
|
42
43
|
end
|
@@ -51,9 +52,9 @@ module CandidApiClient
|
|
51
52
|
when "insurance_type_code"
|
52
53
|
{ "type": @discriminant, "value": @member }.to_json
|
53
54
|
when "unknown_insurance_type_code"
|
54
|
-
{ type: @discriminant }.to_json
|
55
|
+
{ **@member.to_json, type: @discriminant }.to_json
|
55
56
|
when "not_applicable"
|
56
|
-
{ type: @discriminant }.to_json
|
57
|
+
{ **@member.to_json, type: @discriminant }.to_json
|
57
58
|
else
|
58
59
|
{ "type": @discriminant, value: @member }.to_json
|
59
60
|
end
|
@@ -71,9 +72,9 @@ module CandidApiClient
|
|
71
72
|
when "insurance_type_code"
|
72
73
|
obj.is_a?(CandidApiClient::Commons::Types::InsuranceTypeCode) != false || raise("Passed value for field obj is not the expected type, validation failed.")
|
73
74
|
when "unknown_insurance_type_code"
|
74
|
-
|
75
|
+
CandidApiClient::ExpectedNetworkStatus::V2::Types::EmptyObject.validate_raw(obj: obj)
|
75
76
|
when "not_applicable"
|
76
|
-
|
77
|
+
CandidApiClient::ExpectedNetworkStatus::V2::Types::EmptyObject.validate_raw(obj: obj)
|
77
78
|
else
|
78
79
|
raise("Passed value matched no type within the union, validation failed.")
|
79
80
|
end
|
@@ -93,14 +94,16 @@ module CandidApiClient
|
|
93
94
|
new(member: member, discriminant: "insurance_type_code")
|
94
95
|
end
|
95
96
|
|
97
|
+
# @param member [CandidApiClient::ExpectedNetworkStatus::V2::Types::EmptyObject]
|
96
98
|
# @return [CandidApiClient::ExpectedNetworkStatus::V2::Types::InsuranceTypeCodes]
|
97
|
-
def self.unknown_insurance_type_code
|
98
|
-
new(member:
|
99
|
+
def self.unknown_insurance_type_code(member:)
|
100
|
+
new(member: member, discriminant: "unknown_insurance_type_code")
|
99
101
|
end
|
100
102
|
|
103
|
+
# @param member [CandidApiClient::ExpectedNetworkStatus::V2::Types::EmptyObject]
|
101
104
|
# @return [CandidApiClient::ExpectedNetworkStatus::V2::Types::InsuranceTypeCodes]
|
102
|
-
def self.not_applicable
|
103
|
-
new(member:
|
105
|
+
def self.not_applicable(member:)
|
106
|
+
new(member: member, discriminant: "not_applicable")
|
104
107
|
end
|
105
108
|
end
|
106
109
|
end
|
@@ -23,7 +23,7 @@ module CandidApiClient
|
|
23
23
|
# @return [CandidApiClient::ExternalPaymentAccountConfig::V1::Types::ExternalPaymentAccountConfigPage]
|
24
24
|
# @example
|
25
25
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
26
|
-
# api.external_payment_account_config.v_1.get_multi
|
26
|
+
# api.external_payment_account_config.v_1.get_multi
|
27
27
|
def get_multi(limit: nil, page_token: nil, request_options: nil)
|
28
28
|
response = @request_client.conn.get do |req|
|
29
29
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -61,7 +61,7 @@ module CandidApiClient
|
|
61
61
|
# @return [CandidApiClient::ExternalPaymentAccountConfig::V1::Types::ExternalPaymentAccountConfigPage]
|
62
62
|
# @example
|
63
63
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
64
|
-
# api.external_payment_account_config.v_1.get_multi
|
64
|
+
# api.external_payment_account_config.v_1.get_multi
|
65
65
|
def get_multi(limit: nil, page_token: nil, request_options: nil)
|
66
66
|
Async do
|
67
67
|
response = @request_client.conn.get do |req|
|
@@ -32,7 +32,7 @@ module CandidApiClient
|
|
32
32
|
@request_client = request_client
|
33
33
|
end
|
34
34
|
|
35
|
-
# Gets the rate that matches a service line.
|
35
|
+
# Gets the rate that matches a service line. No result means no rate exists
|
36
36
|
# matching the service line's dimensions.
|
37
37
|
#
|
38
38
|
# @param service_line_id [String]
|
@@ -100,21 +100,7 @@ module CandidApiClient
|
|
100
100
|
# @return [CandidApiClient::FeeSchedules::V3::Types::RatesPage]
|
101
101
|
# @example
|
102
102
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
103
|
-
# api.fee_schedules.v_3.get_multi
|
104
|
-
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
|
105
|
-
# limit: 1,
|
106
|
-
# active_date: DateTime.parse(2023-01-15),
|
107
|
-
# payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
108
|
-
# organization_billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
109
|
-
# states: AA,
|
110
|
-
# zip_codes: "string",
|
111
|
-
# license_types: MD,
|
112
|
-
# facility_type_codes: PHARMACY,
|
113
|
-
# network_types: PPO,
|
114
|
-
# payer_plan_group_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
115
|
-
# cpt_code: "string",
|
116
|
-
# modifiers: AV
|
117
|
-
# )
|
103
|
+
# api.fee_schedules.v_3.get_multi
|
118
104
|
def get_multi(page_token: nil, limit: nil, active_date: nil, payer_uuid: nil,
|
119
105
|
organization_billing_provider_id: nil, states: nil, zip_codes: nil, license_types: nil, facility_type_codes: nil, network_types: nil, payer_plan_group_ids: nil, cpt_code: nil, modifiers: nil, request_options: nil)
|
120
106
|
response = @request_client.conn.get do |req|
|
@@ -168,21 +154,7 @@ module CandidApiClient
|
|
168
154
|
# @return [CandidApiClient::FeeSchedules::V3::Types::DimensionsPage]
|
169
155
|
# @example
|
170
156
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
171
|
-
# api.fee_schedules.v_3.get_unique_values_for_dimension(
|
172
|
-
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
|
173
|
-
# limit: 1,
|
174
|
-
# pivot_dimension: PAYER_UUID,
|
175
|
-
# payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
176
|
-
# organization_billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
177
|
-
# states: AA,
|
178
|
-
# zip_codes: "string",
|
179
|
-
# license_types: MD,
|
180
|
-
# facility_type_codes: PHARMACY,
|
181
|
-
# network_types: PPO,
|
182
|
-
# payer_plan_group_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
183
|
-
# cpt_code: "string",
|
184
|
-
# modifiers: AV
|
185
|
-
# )
|
157
|
+
# api.fee_schedules.v_3.get_unique_values_for_dimension(pivot_dimension: PAYER_UUID)
|
186
158
|
def get_unique_values_for_dimension(pivot_dimension:, page_token: nil, limit: nil, payer_uuid: nil,
|
187
159
|
organization_billing_provider_id: nil, states: nil, zip_codes: nil, license_types: nil, facility_type_codes: nil, network_types: nil, payer_plan_group_ids: nil, cpt_code: nil, modifiers: nil, request_options: nil)
|
188
160
|
response = @request_client.conn.get do |req|
|
@@ -246,7 +218,7 @@ module CandidApiClient
|
|
246
218
|
# by it's dimensions or a new version for an existing rate.\n If adding a new
|
247
219
|
# version to an existing rate, the rate must be posted with the next version
|
248
220
|
# number (previous version + 1) or a EntityConflictError will be returned.\n Use
|
249
|
-
# the dry run flag to discover already existing rates and to run validations.
|
221
|
+
# the dry run flag to discover already existing rates and to run validations. If
|
250
222
|
# validations for any rate fail, no rates will be saved to the system.
|
251
223
|
#
|
252
224
|
# @param dry_run [Boolean]
|
@@ -276,7 +248,7 @@ module CandidApiClient
|
|
276
248
|
end
|
277
249
|
end
|
278
250
|
|
279
|
-
# Soft deletes a rate from the system.
|
251
|
+
# Soft deletes a rate from the system. Only the most recent version of a rate can
|
280
252
|
# be deleted.
|
281
253
|
#
|
282
254
|
# @param rate_id [String]
|
@@ -357,7 +329,7 @@ module CandidApiClient
|
|
357
329
|
# @return [CandidApiClient::FeeSchedules::V3::Types::PayerThreshold]
|
358
330
|
# @example
|
359
331
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
360
|
-
# api.fee_schedules.v_3.set_payer_threshold(payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
332
|
+
# api.fee_schedules.v_3.set_payer_threshold(payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { disable_paid_incorrectly: true })
|
361
333
|
def set_payer_threshold(payer_uuid:, request:, request_options: nil)
|
362
334
|
response = @request_client.conn.put do |req|
|
363
335
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -385,7 +357,7 @@ module CandidApiClient
|
|
385
357
|
@request_client = request_client
|
386
358
|
end
|
387
359
|
|
388
|
-
# Gets the rate that matches a service line.
|
360
|
+
# Gets the rate that matches a service line. No result means no rate exists
|
389
361
|
# matching the service line's dimensions.
|
390
362
|
#
|
391
363
|
# @param service_line_id [String]
|
@@ -457,21 +429,7 @@ module CandidApiClient
|
|
457
429
|
# @return [CandidApiClient::FeeSchedules::V3::Types::RatesPage]
|
458
430
|
# @example
|
459
431
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
460
|
-
# api.fee_schedules.v_3.get_multi
|
461
|
-
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
|
462
|
-
# limit: 1,
|
463
|
-
# active_date: DateTime.parse(2023-01-15),
|
464
|
-
# payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
465
|
-
# organization_billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
466
|
-
# states: AA,
|
467
|
-
# zip_codes: "string",
|
468
|
-
# license_types: MD,
|
469
|
-
# facility_type_codes: PHARMACY,
|
470
|
-
# network_types: PPO,
|
471
|
-
# payer_plan_group_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
472
|
-
# cpt_code: "string",
|
473
|
-
# modifiers: AV
|
474
|
-
# )
|
432
|
+
# api.fee_schedules.v_3.get_multi
|
475
433
|
def get_multi(page_token: nil, limit: nil, active_date: nil, payer_uuid: nil,
|
476
434
|
organization_billing_provider_id: nil, states: nil, zip_codes: nil, license_types: nil, facility_type_codes: nil, network_types: nil, payer_plan_group_ids: nil, cpt_code: nil, modifiers: nil, request_options: nil)
|
477
435
|
Async do
|
@@ -527,21 +485,7 @@ module CandidApiClient
|
|
527
485
|
# @return [CandidApiClient::FeeSchedules::V3::Types::DimensionsPage]
|
528
486
|
# @example
|
529
487
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
530
|
-
# api.fee_schedules.v_3.get_unique_values_for_dimension(
|
531
|
-
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
|
532
|
-
# limit: 1,
|
533
|
-
# pivot_dimension: PAYER_UUID,
|
534
|
-
# payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
535
|
-
# organization_billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
536
|
-
# states: AA,
|
537
|
-
# zip_codes: "string",
|
538
|
-
# license_types: MD,
|
539
|
-
# facility_type_codes: PHARMACY,
|
540
|
-
# network_types: PPO,
|
541
|
-
# payer_plan_group_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
542
|
-
# cpt_code: "string",
|
543
|
-
# modifiers: AV
|
544
|
-
# )
|
488
|
+
# api.fee_schedules.v_3.get_unique_values_for_dimension(pivot_dimension: PAYER_UUID)
|
545
489
|
def get_unique_values_for_dimension(pivot_dimension:, page_token: nil, limit: nil, payer_uuid: nil,
|
546
490
|
organization_billing_provider_id: nil, states: nil, zip_codes: nil, license_types: nil, facility_type_codes: nil, network_types: nil, payer_plan_group_ids: nil, cpt_code: nil, modifiers: nil, request_options: nil)
|
547
491
|
Async do
|
@@ -609,7 +553,7 @@ module CandidApiClient
|
|
609
553
|
# by it's dimensions or a new version for an existing rate.\n If adding a new
|
610
554
|
# version to an existing rate, the rate must be posted with the next version
|
611
555
|
# number (previous version + 1) or a EntityConflictError will be returned.\n Use
|
612
|
-
# the dry run flag to discover already existing rates and to run validations.
|
556
|
+
# the dry run flag to discover already existing rates and to run validations. If
|
613
557
|
# validations for any rate fail, no rates will be saved to the system.
|
614
558
|
#
|
615
559
|
# @param dry_run [Boolean]
|
@@ -645,7 +589,7 @@ module CandidApiClient
|
|
645
589
|
end
|
646
590
|
end
|
647
591
|
|
648
|
-
# Soft deletes a rate from the system.
|
592
|
+
# Soft deletes a rate from the system. Only the most recent version of a rate can
|
649
593
|
# be deleted.
|
650
594
|
#
|
651
595
|
# @param rate_id [String]
|
@@ -735,7 +679,7 @@ module CandidApiClient
|
|
735
679
|
# @return [CandidApiClient::FeeSchedules::V3::Types::PayerThreshold]
|
736
680
|
# @example
|
737
681
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
738
|
-
# api.fee_schedules.v_3.set_payer_threshold(payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
682
|
+
# api.fee_schedules.v_3.set_payer_threshold(payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { disable_paid_incorrectly: true })
|
739
683
|
def set_payer_threshold(payer_uuid:, request:, request_options: nil)
|
740
684
|
Async do
|
741
685
|
response = @request_client.conn.put do |req|
|
@@ -7,10 +7,10 @@ module CandidApiClient
|
|
7
7
|
module FeeSchedules
|
8
8
|
module V3
|
9
9
|
module Types
|
10
|
-
# Rate thresholds that determine fee schedule rate matching behavior.
|
10
|
+
# Rate thresholds that determine fee schedule rate matching behavior. When a
|
11
11
|
# service line is adjudicated by a payer Candid determines if the payer's allowed
|
12
|
-
# amount "matches" the rate value.
|
13
|
-
# value, Candid moves the claim to a PAID_INCORRECTLY state.
|
12
|
+
# amount "matches" the rate value. If the allowed amount doesn't equal the rate
|
13
|
+
# value, Candid moves the claim to a PAID_INCORRECTLY state. These optional
|
14
14
|
# thresholds allow a user to set wiggle room to avoid claims moving to
|
15
15
|
# PAID_INCORRECTLY and instead have them move directly to FINALIZED_PAID when the
|
16
16
|
# payer's allowed amount is greater than [rate_cents - lower_threshold_cents] and
|
@@ -8,8 +8,8 @@ module CandidApiClient
|
|
8
8
|
module FeeSchedules
|
9
9
|
module V3
|
10
10
|
module Types
|
11
|
-
# A rate value in cents for a specific time range.
|
12
|
-
# deactivated, which is set by using the deelte_rate endpoint.
|
11
|
+
# A rate value in cents for a specific time range. Rate entries can be
|
12
|
+
# deactivated, which is set by using the deelte_rate endpoint. Deactivated rate
|
13
13
|
# entries are not considered when matching against service lines.
|
14
14
|
class RateEntry
|
15
15
|
# @return [Date]
|
@@ -42,7 +42,7 @@ module CandidApiClient
|
|
42
42
|
# @return [CandidApiClient::Guarantor::V1::Types::Guarantor]
|
43
43
|
# @example
|
44
44
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
45
|
-
# api.guarantor.v_1.create(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
45
|
+
# api.guarantor.v_1.create(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { first_name: "first_name", last_name: "last_name", external_id: "external_id", address: { address_1: "address1", city: "city", state: AA, zip_code: "zip_code" } })
|
46
46
|
def create(encounter_id:, request:, request_options: nil)
|
47
47
|
response = @request_client.conn.post do |req|
|
48
48
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -105,7 +105,7 @@ module CandidApiClient
|
|
105
105
|
# @return [CandidApiClient::Guarantor::V1::Types::Guarantor]
|
106
106
|
# @example
|
107
107
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
108
|
-
# api.guarantor.v_1.update(guarantor_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
108
|
+
# api.guarantor.v_1.update(guarantor_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
109
109
|
def update(guarantor_id:, request:, request_options: nil)
|
110
110
|
response = @request_client.conn.patch do |req|
|
111
111
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -156,7 +156,7 @@ module CandidApiClient
|
|
156
156
|
# @return [CandidApiClient::Guarantor::V1::Types::Guarantor]
|
157
157
|
# @example
|
158
158
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
159
|
-
# api.guarantor.v_1.create(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
159
|
+
# api.guarantor.v_1.create(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { first_name: "first_name", last_name: "last_name", external_id: "external_id", address: { address_1: "address1", city: "city", state: AA, zip_code: "zip_code" } })
|
160
160
|
def create(encounter_id:, request:, request_options: nil)
|
161
161
|
Async do
|
162
162
|
response = @request_client.conn.post do |req|
|
@@ -223,7 +223,7 @@ module CandidApiClient
|
|
223
223
|
# @return [CandidApiClient::Guarantor::V1::Types::Guarantor]
|
224
224
|
# @example
|
225
225
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
226
|
-
# api.guarantor.v_1.update(guarantor_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
226
|
+
# api.guarantor.v_1.update(guarantor_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
227
227
|
def update(guarantor_id:, request:, request_options: nil)
|
228
228
|
Async do
|
229
229
|
response = @request_client.conn.patch do |req|
|
@@ -41,7 +41,7 @@ module CandidApiClient
|
|
41
41
|
# @return [CandidApiClient::ImportInvoice::V1::Types::ImportInvoice]
|
42
42
|
# @example
|
43
43
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
44
|
-
# api.import_invoice.v_1.import_invoice(request: { external_payment_account_config_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", patient_external_id: "
|
44
|
+
# api.import_invoice.v_1.import_invoice(request: { external_payment_account_config_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", patient_external_id: "patient_external_id", external_customer_identifier: "external_customer_identifier", items: [{ amount_cents: 1 }, { amount_cents: 1 }], status: DRAFT, external_identifier: "external_identifier" })
|
45
45
|
def import_invoice(request:, request_options: nil)
|
46
46
|
response = @request_client.conn.post do |req|
|
47
47
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -75,18 +75,7 @@ module CandidApiClient
|
|
75
75
|
# @return [CandidApiClient::ImportInvoice::V1::Types::ImportInvoicesPage]
|
76
76
|
# @example
|
77
77
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
78
|
-
# api.import_invoice.v_1.get_multi
|
79
|
-
# patient_external_id: "string",
|
80
|
-
# encounter_external_id: "string",
|
81
|
-
# note: "string",
|
82
|
-
# due_date_before: DateTime.parse(2023-01-15),
|
83
|
-
# due_date_after: DateTime.parse(2023-01-15),
|
84
|
-
# status: DRAFT,
|
85
|
-
# limit: 1,
|
86
|
-
# sort: CREATED_AT,
|
87
|
-
# sort_direction: ASC,
|
88
|
-
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"
|
89
|
-
# )
|
78
|
+
# api.import_invoice.v_1.get_multi
|
90
79
|
def get_multi(patient_external_id: nil, encounter_external_id: nil, note: nil, due_date_before: nil,
|
91
80
|
due_date_after: nil, status: nil, limit: nil, sort: nil, sort_direction: nil, page_token: nil, request_options: nil)
|
92
81
|
response = @request_client.conn.get do |req|
|
@@ -154,7 +143,7 @@ module CandidApiClient
|
|
154
143
|
# @return [CandidApiClient::ImportInvoice::V1::Types::ImportInvoice]
|
155
144
|
# @example
|
156
145
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
157
|
-
# api.import_invoice.v_1.update(invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
146
|
+
# api.import_invoice.v_1.update(invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
158
147
|
def update(invoice_id:, request:, request_options: nil)
|
159
148
|
response = @request_client.conn.patch do |req|
|
160
149
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -199,7 +188,7 @@ module CandidApiClient
|
|
199
188
|
# @return [CandidApiClient::ImportInvoice::V1::Types::ImportInvoice]
|
200
189
|
# @example
|
201
190
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
202
|
-
# api.import_invoice.v_1.import_invoice(request: { external_payment_account_config_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", patient_external_id: "
|
191
|
+
# api.import_invoice.v_1.import_invoice(request: { external_payment_account_config_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", patient_external_id: "patient_external_id", external_customer_identifier: "external_customer_identifier", items: [{ amount_cents: 1 }, { amount_cents: 1 }], status: DRAFT, external_identifier: "external_identifier" })
|
203
192
|
def import_invoice(request:, request_options: nil)
|
204
193
|
Async do
|
205
194
|
response = @request_client.conn.post do |req|
|
@@ -235,18 +224,7 @@ module CandidApiClient
|
|
235
224
|
# @return [CandidApiClient::ImportInvoice::V1::Types::ImportInvoicesPage]
|
236
225
|
# @example
|
237
226
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
238
|
-
# api.import_invoice.v_1.get_multi
|
239
|
-
# patient_external_id: "string",
|
240
|
-
# encounter_external_id: "string",
|
241
|
-
# note: "string",
|
242
|
-
# due_date_before: DateTime.parse(2023-01-15),
|
243
|
-
# due_date_after: DateTime.parse(2023-01-15),
|
244
|
-
# status: DRAFT,
|
245
|
-
# limit: 1,
|
246
|
-
# sort: CREATED_AT,
|
247
|
-
# sort_direction: ASC,
|
248
|
-
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"
|
249
|
-
# )
|
227
|
+
# api.import_invoice.v_1.get_multi
|
250
228
|
def get_multi(patient_external_id: nil, encounter_external_id: nil, note: nil, due_date_before: nil,
|
251
229
|
due_date_after: nil, status: nil, limit: nil, sort: nil, sort_direction: nil, page_token: nil, request_options: nil)
|
252
230
|
Async do
|
@@ -318,7 +296,7 @@ module CandidApiClient
|
|
318
296
|
# @return [CandidApiClient::ImportInvoice::V1::Types::ImportInvoice]
|
319
297
|
# @example
|
320
298
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
321
|
-
# api.import_invoice.v_1.update(invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
299
|
+
# api.import_invoice.v_1.update(invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
322
300
|
def update(invoice_id:, request:, request_options: nil)
|
323
301
|
Async do
|
324
302
|
response = @request_client.conn.patch do |req|
|
@@ -0,0 +1,179 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "gender"
|
4
|
+
require "date"
|
5
|
+
require_relative "../../commons/types/street_address_short_zip_optional"
|
6
|
+
require_relative "../../commons/types/phone_number"
|
7
|
+
require_relative "patient_non_insurance_payer_info_create"
|
8
|
+
require "ostruct"
|
9
|
+
require "json"
|
10
|
+
|
11
|
+
module CandidApiClient
|
12
|
+
module Individual
|
13
|
+
module Types
|
14
|
+
class PatientUpdateWithOptionalAddress
|
15
|
+
# @return [String]
|
16
|
+
attr_reader :first_name
|
17
|
+
# @return [String]
|
18
|
+
attr_reader :last_name
|
19
|
+
# @return [CandidApiClient::Individual::Types::Gender]
|
20
|
+
attr_reader :gender
|
21
|
+
# @return [String] The ID used to identify this individual in your system. For example, your
|
22
|
+
# internal patient ID or an EHR patient ID.
|
23
|
+
attr_reader :external_id
|
24
|
+
# @return [Date] Box 3 on the CMS-1500 claim form. The date format should be in ISO 8601 date;
|
25
|
+
# formatted YYYY-MM-DD (i.e. 2012-02-01)
|
26
|
+
attr_reader :date_of_birth
|
27
|
+
# @return [CandidApiClient::Commons::Types::StreetAddressShortZipOptional] Box 5 on the CMS-1500 claim form.
|
28
|
+
attr_reader :address
|
29
|
+
# @return [Array<CandidApiClient::Commons::Types::PhoneNumber>]
|
30
|
+
attr_reader :phone_numbers
|
31
|
+
# @return [Boolean]
|
32
|
+
attr_reader :phone_consent
|
33
|
+
# @return [String]
|
34
|
+
attr_reader :email
|
35
|
+
# @return [Boolean]
|
36
|
+
attr_reader :email_consent
|
37
|
+
# @return [Array<String>] On update, we will replace the existing list of non-insurance payers with the
|
38
|
+
# new list if populated.
|
39
|
+
attr_reader :non_insurance_payers
|
40
|
+
# @return [Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>] On update, we will replace the existing list of non-insurance payers with the
|
41
|
+
# new list if populated.
|
42
|
+
attr_reader :non_insurance_payers_info
|
43
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
44
|
+
attr_reader :additional_properties
|
45
|
+
# @return [Object]
|
46
|
+
attr_reader :_field_set
|
47
|
+
protected :_field_set
|
48
|
+
|
49
|
+
OMIT = Object.new
|
50
|
+
|
51
|
+
# @param first_name [String]
|
52
|
+
# @param last_name [String]
|
53
|
+
# @param gender [CandidApiClient::Individual::Types::Gender]
|
54
|
+
# @param external_id [String] The ID used to identify this individual in your system. For example, your
|
55
|
+
# internal patient ID or an EHR patient ID.
|
56
|
+
# @param date_of_birth [Date] Box 3 on the CMS-1500 claim form. The date format should be in ISO 8601 date;
|
57
|
+
# formatted YYYY-MM-DD (i.e. 2012-02-01)
|
58
|
+
# @param address [CandidApiClient::Commons::Types::StreetAddressShortZipOptional] Box 5 on the CMS-1500 claim form.
|
59
|
+
# @param phone_numbers [Array<CandidApiClient::Commons::Types::PhoneNumber>]
|
60
|
+
# @param phone_consent [Boolean]
|
61
|
+
# @param email [String]
|
62
|
+
# @param email_consent [Boolean]
|
63
|
+
# @param non_insurance_payers [Array<String>] On update, we will replace the existing list of non-insurance payers with the
|
64
|
+
# new list if populated.
|
65
|
+
# @param non_insurance_payers_info [Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>] On update, we will replace the existing list of non-insurance payers with the
|
66
|
+
# new list if populated.
|
67
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
68
|
+
# @return [CandidApiClient::Individual::Types::PatientUpdateWithOptionalAddress]
|
69
|
+
def initialize(first_name: OMIT, last_name: OMIT, gender: OMIT, external_id: OMIT, date_of_birth: OMIT,
|
70
|
+
address: OMIT, phone_numbers: OMIT, phone_consent: OMIT, email: OMIT, email_consent: OMIT, non_insurance_payers: OMIT, non_insurance_payers_info: OMIT, additional_properties: nil)
|
71
|
+
@first_name = first_name if first_name != OMIT
|
72
|
+
@last_name = last_name if last_name != OMIT
|
73
|
+
@gender = gender if gender != OMIT
|
74
|
+
@external_id = external_id if external_id != OMIT
|
75
|
+
@date_of_birth = date_of_birth if date_of_birth != OMIT
|
76
|
+
@address = address if address != OMIT
|
77
|
+
@phone_numbers = phone_numbers if phone_numbers != OMIT
|
78
|
+
@phone_consent = phone_consent if phone_consent != OMIT
|
79
|
+
@email = email if email != OMIT
|
80
|
+
@email_consent = email_consent if email_consent != OMIT
|
81
|
+
@non_insurance_payers = non_insurance_payers if non_insurance_payers != OMIT
|
82
|
+
@non_insurance_payers_info = non_insurance_payers_info if non_insurance_payers_info != OMIT
|
83
|
+
@additional_properties = additional_properties
|
84
|
+
@_field_set = {
|
85
|
+
"first_name": first_name,
|
86
|
+
"last_name": last_name,
|
87
|
+
"gender": gender,
|
88
|
+
"external_id": external_id,
|
89
|
+
"date_of_birth": date_of_birth,
|
90
|
+
"address": address,
|
91
|
+
"phone_numbers": phone_numbers,
|
92
|
+
"phone_consent": phone_consent,
|
93
|
+
"email": email,
|
94
|
+
"email_consent": email_consent,
|
95
|
+
"non_insurance_payers": non_insurance_payers,
|
96
|
+
"non_insurance_payers_info": non_insurance_payers_info
|
97
|
+
}.reject do |_k, v|
|
98
|
+
v == OMIT
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
# Deserialize a JSON object to an instance of PatientUpdateWithOptionalAddress
|
103
|
+
#
|
104
|
+
# @param json_object [String]
|
105
|
+
# @return [CandidApiClient::Individual::Types::PatientUpdateWithOptionalAddress]
|
106
|
+
def self.from_json(json_object:)
|
107
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
108
|
+
parsed_json = JSON.parse(json_object)
|
109
|
+
first_name = struct["first_name"]
|
110
|
+
last_name = struct["last_name"]
|
111
|
+
gender = struct["gender"]
|
112
|
+
external_id = struct["external_id"]
|
113
|
+
date_of_birth = (Date.parse(parsed_json["date_of_birth"]) unless parsed_json["date_of_birth"].nil?)
|
114
|
+
if parsed_json["address"].nil?
|
115
|
+
address = nil
|
116
|
+
else
|
117
|
+
address = parsed_json["address"].to_json
|
118
|
+
address = CandidApiClient::Commons::Types::StreetAddressShortZipOptional.from_json(json_object: address)
|
119
|
+
end
|
120
|
+
phone_numbers = parsed_json["phone_numbers"]&.map do |item|
|
121
|
+
item = item.to_json
|
122
|
+
CandidApiClient::Commons::Types::PhoneNumber.from_json(json_object: item)
|
123
|
+
end
|
124
|
+
phone_consent = struct["phone_consent"]
|
125
|
+
email = struct["email"]
|
126
|
+
email_consent = struct["email_consent"]
|
127
|
+
non_insurance_payers = struct["non_insurance_payers"]
|
128
|
+
non_insurance_payers_info = parsed_json["non_insurance_payers_info"]&.map do |item|
|
129
|
+
item = item.to_json
|
130
|
+
CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate.from_json(json_object: item)
|
131
|
+
end
|
132
|
+
new(
|
133
|
+
first_name: first_name,
|
134
|
+
last_name: last_name,
|
135
|
+
gender: gender,
|
136
|
+
external_id: external_id,
|
137
|
+
date_of_birth: date_of_birth,
|
138
|
+
address: address,
|
139
|
+
phone_numbers: phone_numbers,
|
140
|
+
phone_consent: phone_consent,
|
141
|
+
email: email,
|
142
|
+
email_consent: email_consent,
|
143
|
+
non_insurance_payers: non_insurance_payers,
|
144
|
+
non_insurance_payers_info: non_insurance_payers_info,
|
145
|
+
additional_properties: struct
|
146
|
+
)
|
147
|
+
end
|
148
|
+
|
149
|
+
# Serialize an instance of PatientUpdateWithOptionalAddress to a JSON object
|
150
|
+
#
|
151
|
+
# @return [String]
|
152
|
+
def to_json(*_args)
|
153
|
+
@_field_set&.to_json
|
154
|
+
end
|
155
|
+
|
156
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
157
|
+
# hash and check each fields type against the current object's property
|
158
|
+
# definitions.
|
159
|
+
#
|
160
|
+
# @param obj [Object]
|
161
|
+
# @return [Void]
|
162
|
+
def self.validate_raw(obj:)
|
163
|
+
obj.first_name&.is_a?(String) != false || raise("Passed value for field obj.first_name is not the expected type, validation failed.")
|
164
|
+
obj.last_name&.is_a?(String) != false || raise("Passed value for field obj.last_name is not the expected type, validation failed.")
|
165
|
+
obj.gender&.is_a?(CandidApiClient::Individual::Types::Gender) != false || raise("Passed value for field obj.gender is not the expected type, validation failed.")
|
166
|
+
obj.external_id&.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
|
167
|
+
obj.date_of_birth&.is_a?(Date) != false || raise("Passed value for field obj.date_of_birth is not the expected type, validation failed.")
|
168
|
+
obj.address.nil? || CandidApiClient::Commons::Types::StreetAddressShortZipOptional.validate_raw(obj: obj.address)
|
169
|
+
obj.phone_numbers&.is_a?(Array) != false || raise("Passed value for field obj.phone_numbers is not the expected type, validation failed.")
|
170
|
+
obj.phone_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.phone_consent is not the expected type, validation failed.")
|
171
|
+
obj.email&.is_a?(String) != false || raise("Passed value for field obj.email is not the expected type, validation failed.")
|
172
|
+
obj.email_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.email_consent is not the expected type, validation failed.")
|
173
|
+
obj.non_insurance_payers&.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers is not the expected type, validation failed.")
|
174
|
+
obj.non_insurance_payers_info&.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers_info is not the expected type, validation failed.")
|
175
|
+
end
|
176
|
+
end
|
177
|
+
end
|
178
|
+
end
|
179
|
+
end
|
@@ -60,7 +60,7 @@ module CandidApiClient
|
|
60
60
|
# @return [CandidApiClient::InsuranceAdjudications::V1::Types::InsuranceAdjudication]
|
61
61
|
# @example
|
62
62
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
63
|
-
# api.insurance_adjudications.v_1.create(request: { payee: { payee_name: "
|
63
|
+
# api.insurance_adjudications.v_1.create(request: { payee: { payee_name: "payee_name" }, check_date: DateTime.parse(2023-01-15), claims: { "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{ claim_status_code: PROCESSED_AS_PRIMARY, service_lines: { "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{ carcs: [{ group_code: CO, reason_code: CARC_1, amount_cents: 1 }, { group_code: CO, reason_code: CARC_1, amount_cents: 1 }], rarcs: [{ reason_code: M_1 }, { reason_code: M_1 }] }, { carcs: [{ group_code: CO, reason_code: CARC_1, amount_cents: 1 }, { group_code: CO, reason_code: CARC_1, amount_cents: 1 }], rarcs: [{ reason_code: M_1 }, { reason_code: M_1 }] }] }, carcs: [{ group_code: CO, reason_code: CARC_1, amount_cents: 1 }, { group_code: CO, reason_code: CARC_1, amount_cents: 1 }] }, { claim_status_code: PROCESSED_AS_PRIMARY, service_lines: { "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{ carcs: [{ group_code: CO, reason_code: CARC_1, amount_cents: 1 }, { group_code: CO, reason_code: CARC_1, amount_cents: 1 }], rarcs: [{ reason_code: M_1 }, { reason_code: M_1 }] }, { carcs: [{ group_code: CO, reason_code: CARC_1, amount_cents: 1 }, { group_code: CO, reason_code: CARC_1, amount_cents: 1 }], rarcs: [{ reason_code: M_1 }, { reason_code: M_1 }] }] }, carcs: [{ group_code: CO, reason_code: CARC_1, amount_cents: 1 }, { group_code: CO, reason_code: CARC_1, amount_cents: 1 }] }] } })
|
64
64
|
def create(request:, request_options: nil)
|
65
65
|
response = @request_client.conn.post do |req|
|
66
66
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -155,7 +155,7 @@ module CandidApiClient
|
|
155
155
|
# @return [CandidApiClient::InsuranceAdjudications::V1::Types::InsuranceAdjudication]
|
156
156
|
# @example
|
157
157
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
158
|
-
# api.insurance_adjudications.v_1.create(request: { payee: { payee_name: "
|
158
|
+
# api.insurance_adjudications.v_1.create(request: { payee: { payee_name: "payee_name" }, check_date: DateTime.parse(2023-01-15), claims: { "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{ claim_status_code: PROCESSED_AS_PRIMARY, service_lines: { "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{ carcs: [{ group_code: CO, reason_code: CARC_1, amount_cents: 1 }, { group_code: CO, reason_code: CARC_1, amount_cents: 1 }], rarcs: [{ reason_code: M_1 }, { reason_code: M_1 }] }, { carcs: [{ group_code: CO, reason_code: CARC_1, amount_cents: 1 }, { group_code: CO, reason_code: CARC_1, amount_cents: 1 }], rarcs: [{ reason_code: M_1 }, { reason_code: M_1 }] }] }, carcs: [{ group_code: CO, reason_code: CARC_1, amount_cents: 1 }, { group_code: CO, reason_code: CARC_1, amount_cents: 1 }] }, { claim_status_code: PROCESSED_AS_PRIMARY, service_lines: { "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{ carcs: [{ group_code: CO, reason_code: CARC_1, amount_cents: 1 }, { group_code: CO, reason_code: CARC_1, amount_cents: 1 }], rarcs: [{ reason_code: M_1 }, { reason_code: M_1 }] }, { carcs: [{ group_code: CO, reason_code: CARC_1, amount_cents: 1 }, { group_code: CO, reason_code: CARC_1, amount_cents: 1 }], rarcs: [{ reason_code: M_1 }, { reason_code: M_1 }] }] }, carcs: [{ group_code: CO, reason_code: CARC_1, amount_cents: 1 }, { group_code: CO, reason_code: CARC_1, amount_cents: 1 }] }] } })
|
159
159
|
def create(request:, request_options: nil)
|
160
160
|
Async do
|
161
161
|
response = @request_client.conn.post do |req|
|
@@ -34,16 +34,7 @@ module CandidApiClient
|
|
34
34
|
# @return [CandidApiClient::InsurancePayments::V1::Types::InsurancePaymentsPage]
|
35
35
|
# @example
|
36
36
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
37
|
-
# api.insurance_payments.v_1.get_multi
|
38
|
-
# limit: 1,
|
39
|
-
# payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
40
|
-
# claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
41
|
-
# service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
42
|
-
# billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
43
|
-
# sort: AMOUNT_CENTS,
|
44
|
-
# sort_direction: ASC,
|
45
|
-
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"
|
46
|
-
# )
|
37
|
+
# api.insurance_payments.v_1.get_multi
|
47
38
|
def get_multi(limit: nil, payer_uuid: nil, claim_id: nil, service_line_id: nil, billing_provider_id: nil,
|
48
39
|
sort: nil, sort_direction: nil, page_token: nil, request_options: nil)
|
49
40
|
response = @request_client.conn.get do |req|
|
@@ -120,16 +111,7 @@ module CandidApiClient
|
|
120
111
|
# @return [CandidApiClient::InsurancePayments::V1::Types::InsurancePaymentsPage]
|
121
112
|
# @example
|
122
113
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
123
|
-
# api.insurance_payments.v_1.get_multi
|
124
|
-
# limit: 1,
|
125
|
-
# payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
126
|
-
# claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
127
|
-
# service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
128
|
-
# billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
129
|
-
# sort: AMOUNT_CENTS,
|
130
|
-
# sort_direction: ASC,
|
131
|
-
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"
|
132
|
-
# )
|
114
|
+
# api.insurance_payments.v_1.get_multi
|
133
115
|
def get_multi(limit: nil, payer_uuid: nil, claim_id: nil, service_line_id: nil, billing_provider_id: nil,
|
134
116
|
sort: nil, sort_direction: nil, page_token: nil, request_options: nil)
|
135
117
|
Async do
|