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.
- checksums.yaml +4 -4
- data/lib/candid/client.rb +1 -6
- data/lib/candid/contracts/client.rb +5 -0
- data/lib/candid/contracts/v_2/client.rb +4 -0
- data/lib/candid/contracts/v_3/client.rb +176 -0
- data/lib/candid/contracts/v_3/types/contract.rb +18 -0
- data/lib/candid/contracts/v_3/types/contract_base.rb +28 -0
- data/lib/candid/contracts/v_3/types/contract_create.rb +15 -0
- data/lib/candid/contracts/v_3/types/contract_create_union.rb +18 -0
- data/lib/candid/contracts/v_3/types/contract_service_facility.rb +14 -0
- data/lib/candid/contracts/v_3/types/contract_service_facility_base.rb +14 -0
- data/lib/candid/contracts/v_3/types/contract_service_facility_create.rb +15 -0
- data/lib/candid/contracts/v_3/types/contract_service_facility_update.rb +16 -0
- data/lib/candid/contracts/v_3/types/contract_type.rb +16 -0
- data/lib/candid/contracts/v_3/types/contract_union.rb +18 -0
- data/lib/candid/contracts/v_3/types/contract_update.rb +28 -0
- data/lib/candid/contracts/v_3/types/contract_update_union.rb +18 -0
- data/lib/candid/contracts/v_3/types/contract_with_providers_union.rb +18 -0
- data/lib/candid/contracts/v_3/types/contracts_page.rb +15 -0
- data/lib/candid/contracts/v_3/types/get_multi_contracts_request.rb +22 -0
- data/lib/candid/contracts/v_3/types/institutional_contract.rb +15 -0
- data/lib/candid/contracts/v_3/types/institutional_contract_create.rb +15 -0
- data/lib/candid/contracts/v_3/types/institutional_contract_update.rb +13 -0
- data/lib/candid/contracts/v_3/types/professional_contract.rb +13 -0
- data/lib/candid/contracts/v_3/types/professional_contract_create.rb +13 -0
- data/lib/candid/contracts/v_3/types/professional_contract_update.rb +13 -0
- data/lib/candid/encounter_providers/v_2/types/billing_provider.rb +3 -0
- data/lib/candid/encounter_providers/v_2/types/billing_provider_update.rb +3 -0
- data/lib/candid/encounter_providers/v_2/types/billing_provider_update_with_optional_address.rb +3 -0
- data/lib/candid/encounter_providers/v_2/types/encounter_provider.rb +3 -0
- data/lib/candid/encounter_providers/v_2/types/provider_secondary_identification.rb +13 -0
- data/lib/candid/encounter_providers/v_2/types/rendering_provider.rb +3 -0
- data/lib/candid/encounter_providers/v_2/types/rendering_provider_update.rb +3 -0
- data/lib/candid/encounter_providers/v_2/types/rendering_provider_update_with_optional_address.rb +3 -0
- data/lib/candid/encounters/v_4/client.rb +15 -0
- data/lib/candid/encounters/v_4/types/encounter.rb +3 -0
- data/lib/candid/encounters_universal/types/universal_encounter_create_base.rb +3 -0
- data/lib/candid/encounters_universal/types/universal_encounter_create_from_pre_encounter_base.rb +3 -0
- data/lib/candid/encounters_universal/types/universal_encounter_update_base.rb +3 -0
- data/lib/candid/fee_schedules/v_3/client.rb +9 -1
- data/lib/candid/fee_schedules/v_3/types/payer_threshold.rb +6 -1
- data/lib/candid/related_causes_information/v_1/types/related_causes_code.rb +20 -0
- data/lib/candid/related_causes_information/v_1/types/related_causes_information.rb +19 -0
- data/lib/candid/related_causes_information/v_1/types/related_causes_information_create.rb +11 -0
- data/lib/candid/related_causes_information/v_1/types/related_causes_information_update.rb +11 -0
- data/lib/candid/version.rb +1 -1
- data/lib/candid.rb +28 -7
- data/reference.md +541 -213
- metadata +28 -7
- data/lib/candid/insurance_payments/client.rb +0 -17
- data/lib/candid/insurance_payments/v_1/client.rb +0 -68
- data/lib/candid/insurance_payments/v_1/types/get_multi_insurance_payment_request.rb +0 -22
- data/lib/candid/insurance_payments/v_1/types/insurance_payment.rb +0 -20
- data/lib/candid/insurance_payments/v_1/types/insurance_payment_sort_field.rb +0 -17
- data/lib/candid/insurance_payments/v_1/types/insurance_payments_page.rb +0 -15
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: candidhealth
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.17.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Candid
|
|
@@ -133,6 +133,28 @@ files:
|
|
|
133
133
|
- lib/candid/contracts/v_2/types/get_multi_contracts_request.rb
|
|
134
134
|
- lib/candid/contracts/v_2/types/insurance_types.rb
|
|
135
135
|
- lib/candid/contracts/v_2/types/regions_update.rb
|
|
136
|
+
- lib/candid/contracts/v_3/client.rb
|
|
137
|
+
- lib/candid/contracts/v_3/types/contract.rb
|
|
138
|
+
- lib/candid/contracts/v_3/types/contract_base.rb
|
|
139
|
+
- lib/candid/contracts/v_3/types/contract_create.rb
|
|
140
|
+
- lib/candid/contracts/v_3/types/contract_create_union.rb
|
|
141
|
+
- lib/candid/contracts/v_3/types/contract_service_facility.rb
|
|
142
|
+
- lib/candid/contracts/v_3/types/contract_service_facility_base.rb
|
|
143
|
+
- lib/candid/contracts/v_3/types/contract_service_facility_create.rb
|
|
144
|
+
- lib/candid/contracts/v_3/types/contract_service_facility_update.rb
|
|
145
|
+
- lib/candid/contracts/v_3/types/contract_type.rb
|
|
146
|
+
- lib/candid/contracts/v_3/types/contract_union.rb
|
|
147
|
+
- lib/candid/contracts/v_3/types/contract_update.rb
|
|
148
|
+
- lib/candid/contracts/v_3/types/contract_update_union.rb
|
|
149
|
+
- lib/candid/contracts/v_3/types/contract_with_providers_union.rb
|
|
150
|
+
- lib/candid/contracts/v_3/types/contracts_page.rb
|
|
151
|
+
- lib/candid/contracts/v_3/types/get_multi_contracts_request.rb
|
|
152
|
+
- lib/candid/contracts/v_3/types/institutional_contract.rb
|
|
153
|
+
- lib/candid/contracts/v_3/types/institutional_contract_create.rb
|
|
154
|
+
- lib/candid/contracts/v_3/types/institutional_contract_update.rb
|
|
155
|
+
- lib/candid/contracts/v_3/types/professional_contract.rb
|
|
156
|
+
- lib/candid/contracts/v_3/types/professional_contract_create.rb
|
|
157
|
+
- lib/candid/contracts/v_3/types/professional_contract_update.rb
|
|
136
158
|
- lib/candid/credentialing/client.rb
|
|
137
159
|
- lib/candid/credentialing/v_2/client.rb
|
|
138
160
|
- lib/candid/credentialing/v_2/types/base_credentialing_span.rb
|
|
@@ -193,6 +215,7 @@ files:
|
|
|
193
215
|
- lib/candid/encounter_providers/v_2/types/ordering_provider.rb
|
|
194
216
|
- lib/candid/encounter_providers/v_2/types/ordering_provider_optional.rb
|
|
195
217
|
- lib/candid/encounter_providers/v_2/types/ordering_provider_update.rb
|
|
218
|
+
- lib/candid/encounter_providers/v_2/types/provider_secondary_identification.rb
|
|
196
219
|
- lib/candid/encounter_providers/v_2/types/referring_provider.rb
|
|
197
220
|
- lib/candid/encounter_providers/v_2/types/referring_provider_update.rb
|
|
198
221
|
- lib/candid/encounter_providers/v_2/types/referring_provider_update_with_optional_address.rb
|
|
@@ -482,12 +505,6 @@ files:
|
|
|
482
505
|
- lib/candid/insurance_cards/v_2/types/insurance_card_base.rb
|
|
483
506
|
- lib/candid/insurance_cards/v_2/types/insurance_card_create.rb
|
|
484
507
|
- lib/candid/insurance_cards/v_2/types/insurance_card_create_optional.rb
|
|
485
|
-
- lib/candid/insurance_payments/client.rb
|
|
486
|
-
- lib/candid/insurance_payments/v_1/client.rb
|
|
487
|
-
- lib/candid/insurance_payments/v_1/types/get_multi_insurance_payment_request.rb
|
|
488
|
-
- lib/candid/insurance_payments/v_1/types/insurance_payment.rb
|
|
489
|
-
- lib/candid/insurance_payments/v_1/types/insurance_payment_sort_field.rb
|
|
490
|
-
- lib/candid/insurance_payments/v_1/types/insurance_payments_page.rb
|
|
491
508
|
- lib/candid/insurance_refunds/client.rb
|
|
492
509
|
- lib/candid/insurance_refunds/v_1/client.rb
|
|
493
510
|
- lib/candid/insurance_refunds/v_1/types/get_multi_insurance_refunds_request.rb
|
|
@@ -818,6 +835,10 @@ files:
|
|
|
818
835
|
- lib/candid/pre_encounter/tags/v_1/types/mutable_tag.rb
|
|
819
836
|
- lib/candid/pre_encounter/tags/v_1/types/tag.rb
|
|
820
837
|
- lib/candid/pre_encounter/tags/v_1/types/tag_page.rb
|
|
838
|
+
- lib/candid/related_causes_information/v_1/types/related_causes_code.rb
|
|
839
|
+
- lib/candid/related_causes_information/v_1/types/related_causes_information.rb
|
|
840
|
+
- lib/candid/related_causes_information/v_1/types/related_causes_information_create.rb
|
|
841
|
+
- lib/candid/related_causes_information/v_1/types/related_causes_information_update.rb
|
|
821
842
|
- lib/candid/service_facility/types/encounter_service_facility.rb
|
|
822
843
|
- lib/candid/service_facility/types/encounter_service_facility_base.rb
|
|
823
844
|
- lib/candid/service_facility/types/encounter_service_facility_update.rb
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Candid
|
|
4
|
-
module InsurancePayments
|
|
5
|
-
class Client
|
|
6
|
-
# @return [Candid::InsurancePayments::Client]
|
|
7
|
-
def initialize(client:)
|
|
8
|
-
@client = client
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
# @return [Candid::V1::Client]
|
|
12
|
-
def v_1
|
|
13
|
-
@v_1 ||= Candid::InsurancePayments::V1::Client.new(client: @client)
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Candid
|
|
4
|
-
module InsurancePayments
|
|
5
|
-
module V1
|
|
6
|
-
class Client
|
|
7
|
-
# @return [Candid::InsurancePayments::V1::Client]
|
|
8
|
-
def initialize(client:)
|
|
9
|
-
@client = client
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# Returns all non-ERA originated insurance payments satisfying the search criteria
|
|
13
|
-
#
|
|
14
|
-
# @return [Candid::InsurancePayments::V1::Types::InsurancePaymentsPage]
|
|
15
|
-
def get_multi(request_options: {}, **params)
|
|
16
|
-
params = Candid::Internal::Types::Utils.symbolize_keys(params)
|
|
17
|
-
_query_param_names = %i[limit payer_uuid claim_id service_line_id billing_provider_id sort sort_direction
|
|
18
|
-
page_token]
|
|
19
|
-
_query = params.slice(*_query_param_names)
|
|
20
|
-
params.except(*_query_param_names)
|
|
21
|
-
|
|
22
|
-
_request = Candid::Internal::JSON::Request.new(
|
|
23
|
-
base_url: request_options[:base_url] || Candid::Environment::PRODUCTION,
|
|
24
|
-
method: "GET",
|
|
25
|
-
path: "/api/insurance-payments/v1",
|
|
26
|
-
query: _query
|
|
27
|
-
)
|
|
28
|
-
begin
|
|
29
|
-
_response = @client.send(_request)
|
|
30
|
-
rescue Net::HTTPRequestTimeout
|
|
31
|
-
raise Candid::Errors::TimeoutError
|
|
32
|
-
end
|
|
33
|
-
code = _response.code.to_i
|
|
34
|
-
if code.between?(200, 299)
|
|
35
|
-
Candid::InsurancePayments::V1::Types::InsurancePaymentsPage.load(_response.body)
|
|
36
|
-
else
|
|
37
|
-
error_class = Candid::Errors::ResponseError.subclass_for_code(code)
|
|
38
|
-
raise error_class.new(_response.body, code: code)
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
# Retrieves a previously created insurance payment by its `insurance_payment_id`.
|
|
43
|
-
# If the payment does not exist, a `403` will be thrown.
|
|
44
|
-
#
|
|
45
|
-
# @return [Candid::InsurancePayments::V1::Types::InsurancePayment]
|
|
46
|
-
def get(request_options: {}, **params)
|
|
47
|
-
_request = Candid::Internal::JSON::Request.new(
|
|
48
|
-
base_url: request_options[:base_url] || Candid::Environment::PRODUCTION,
|
|
49
|
-
method: "GET",
|
|
50
|
-
path: "/api/insurance-payments/v1/#{params[:insurance_payment_id]}"
|
|
51
|
-
)
|
|
52
|
-
begin
|
|
53
|
-
_response = @client.send(_request)
|
|
54
|
-
rescue Net::HTTPRequestTimeout
|
|
55
|
-
raise Candid::Errors::TimeoutError
|
|
56
|
-
end
|
|
57
|
-
code = _response.code.to_i
|
|
58
|
-
if code.between?(200, 299)
|
|
59
|
-
Candid::InsurancePayments::V1::Types::InsurancePayment.load(_response.body)
|
|
60
|
-
else
|
|
61
|
-
error_class = Candid::Errors::ResponseError.subclass_for_code(code)
|
|
62
|
-
raise error_class.new(_response.body, code: code)
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
end
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Candid
|
|
4
|
-
module InsurancePayments
|
|
5
|
-
module V1
|
|
6
|
-
module Types
|
|
7
|
-
class GetMultiInsurancePaymentRequest < Internal::Types::Model
|
|
8
|
-
field :limit, -> { Integer }, optional: true, nullable: false
|
|
9
|
-
field :payer_uuid, -> { String }, optional: true, nullable: false
|
|
10
|
-
field :claim_id, -> { String }, optional: true, nullable: false
|
|
11
|
-
field :service_line_id, -> { String }, optional: true, nullable: false
|
|
12
|
-
field :billing_provider_id, -> { String }, optional: true, nullable: false
|
|
13
|
-
field :sort, lambda {
|
|
14
|
-
Candid::InsurancePayments::V1::Types::InsurancePaymentSortField
|
|
15
|
-
}, optional: true, nullable: false
|
|
16
|
-
field :sort_direction, -> { Candid::Commons::Types::SortDirection }, optional: true, nullable: false
|
|
17
|
-
field :page_token, -> { String }, optional: true, nullable: false
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Candid
|
|
4
|
-
module InsurancePayments
|
|
5
|
-
module V1
|
|
6
|
-
module Types
|
|
7
|
-
class InsurancePayment < Internal::Types::Model
|
|
8
|
-
field :insurance_payment_id, -> { String }, optional: false, nullable: false
|
|
9
|
-
field :payer, -> { Candid::Payers::V3::Types::Payer }, optional: false, nullable: false
|
|
10
|
-
field :amount_cents, -> { Integer }, optional: false, nullable: false
|
|
11
|
-
field :payment_timestamp, -> { String }, optional: true, nullable: false
|
|
12
|
-
field :payment_note, -> { String }, optional: true, nullable: false
|
|
13
|
-
field :allocations, lambda {
|
|
14
|
-
Internal::Types::Array[Candid::Financials::Types::Allocation]
|
|
15
|
-
}, optional: false, nullable: false
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Candid
|
|
4
|
-
module InsurancePayments
|
|
5
|
-
module V1
|
|
6
|
-
module Types
|
|
7
|
-
module InsurancePaymentSortField
|
|
8
|
-
extend Candid::Internal::Types::Enum
|
|
9
|
-
|
|
10
|
-
AMOUNT_CENTS = "amount_cents"
|
|
11
|
-
PAYMENT_TIMESTAMP = "payment_timestamp"
|
|
12
|
-
PAYMENT_NOTE = "payment_note"
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Candid
|
|
4
|
-
module InsurancePayments
|
|
5
|
-
module V1
|
|
6
|
-
module Types
|
|
7
|
-
class InsurancePaymentsPage < Internal::Types::Model
|
|
8
|
-
field :items, lambda {
|
|
9
|
-
Internal::Types::Array[Candid::InsurancePayments::V1::Types::InsurancePayment]
|
|
10
|
-
}, optional: false, nullable: false
|
|
11
|
-
end
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|