candidhealth 1.17.0 → 1.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.
- checksums.yaml +4 -4
- data/lib/candid/claims/types/claim.rb +1 -1
- data/lib/candid/client.rb +1 -11
- data/lib/candid/eligibility/v_2/client.rb +0 -38
- 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/v_4/types/encounter_deep_optional.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/{era → eras}/types/era.rb +1 -1
- data/lib/candid/{era → eras}/types/era_base.rb +1 -1
- 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/financials/types/allocation_create.rb +1 -0
- data/lib/candid/financials/types/allocation_earmark_type.rb +19 -0
- 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/service_lines/v_2/types/service_line.rb +1 -0
- data/lib/candid/service_lines/v_2/types/service_line_create_base_base.rb +1 -0
- data/lib/candid/service_lines/v_2/types/service_line_create_optional.rb +1 -0
- data/lib/candid/service_lines/v_2/types/service_line_create_standalone.rb +1 -0
- data/lib/candid/service_lines/v_2/types/service_line_update_base.rb +1 -0
- data/lib/candid/service_lines/v_2/types/test_result_type.rb +1 -0
- data/lib/candid/service_lines/v_2/types/universal_service_line_create_standalone.rb +1 -0
- data/lib/candid/version.rb +1 -1
- data/lib/candid.rb +9 -34
- data/reference.md +62 -522
- metadata +9 -34
- data/lib/candid/commons/types/http_service_unavailable_error_message.rb +0 -11
- data/lib/candid/expected_network_status/client.rb +0 -22
- data/lib/candid/expected_network_status/v_1/client.rb +0 -38
- data/lib/candid/expected_network_status/v_1/types/expected_network_status.rb +0 -17
- data/lib/candid/expected_network_status/v_1/types/expected_network_status_request.rb +0 -24
- data/lib/candid/expected_network_status/v_1/types/expected_network_status_response.rb +0 -17
- data/lib/candid/expected_network_status/v_2/client.rb +0 -66
- data/lib/candid/expected_network_status/v_2/types/compute_all_in_network_providers_request.rb +0 -25
- data/lib/candid/expected_network_status/v_2/types/compute_all_in_network_providers_response.rb +0 -16
- data/lib/candid/expected_network_status/v_2/types/compute_all_in_network_rendering_providers_result.rb +0 -21
- data/lib/candid/expected_network_status/v_2/types/empty_object.rb +0 -11
- data/lib/candid/expected_network_status/v_2/types/expected_network_status_check_error_message.rb +0 -13
- data/lib/candid/expected_network_status/v_2/types/expected_network_status_request_v_2.rb +0 -25
- data/lib/candid/expected_network_status/v_2/types/expected_network_status_response_v_2.rb +0 -16
- data/lib/candid/expected_network_status/v_2/types/expected_network_status_subscriber_information.rb +0 -17
- data/lib/candid/expected_network_status/v_2/types/expected_network_status_v_2.rb +0 -19
- data/lib/candid/expected_network_status/v_2/types/explanation.rb +0 -22
- data/lib/candid/expected_network_status/v_2/types/in_network_rendering_providers_detail.rb +0 -15
- data/lib/candid/expected_network_status/v_2/types/in_network_status.rb +0 -14
- data/lib/candid/expected_network_status/v_2/types/indeterminate_network_status.rb +0 -18
- data/lib/candid/expected_network_status/v_2/types/insurance_type.rb +0 -18
- data/lib/candid/expected_network_status/v_2/types/insurance_type_codes.rb +0 -19
- data/lib/candid/expected_network_status/v_2/types/line_of_business.rb +0 -17
- data/lib/candid/expected_network_status/v_2/types/out_of_network_status.rb +0 -17
- data/lib/candid/expected_network_status/v_2/types/service_type.rb +0 -55
- 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
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Candid
|
|
4
|
-
module ExpectedNetworkStatus
|
|
5
|
-
module V2
|
|
6
|
-
module Types
|
|
7
|
-
module ServiceType
|
|
8
|
-
extend Candid::Internal::Types::Enum
|
|
9
|
-
|
|
10
|
-
NEW_PATIENT_VIDEO_APPT = "new_patient_video_appt"
|
|
11
|
-
NEW_PATIENT_PREV_VIDEO_APPT = "new_patient_prev_video_appt"
|
|
12
|
-
NEW_PATIENT_OFFICE_APPT = "new_patient_office_appt"
|
|
13
|
-
ESTABLISHED_PATIENT_VIDEO_APPT = "established_patient_video_appt"
|
|
14
|
-
ESTABLISHED_PATIENT_PREV_VIDEO_APPT = "established_patient_prev_video_appt"
|
|
15
|
-
ESTABLISHED_PATIENT_OFFICE_APPT = "established_patient_office_appt"
|
|
16
|
-
PATIENT_PORTAL_WITH_QUALIFIED_PHYSICIAN = "patient_portal_with_qualified_physician"
|
|
17
|
-
PATIENT_PORTAL_WITH_NON_QUALIFIED_PHYSICIAN = "patient_portal_with_non_qualified_physician"
|
|
18
|
-
GROUP_THERAPY = "group_therapy"
|
|
19
|
-
PHONE_APPT = "phone_appt"
|
|
20
|
-
ANNUAL_WELLNESS_VISIT = "annual_wellness_visit"
|
|
21
|
-
REMOTE_PATIENT_MONITORING = "remote_patient_monitoring"
|
|
22
|
-
DIAGNOSTIC = "diagnostic"
|
|
23
|
-
CARDIAC_MONITORING = "cardiac_monitoring"
|
|
24
|
-
CARDIAC_CODES = "cardiac_codes"
|
|
25
|
-
PSYCHOTHERAPY = "psychotherapy"
|
|
26
|
-
PHONE_THERAPY = "phone_therapy"
|
|
27
|
-
ALCOHOL_ABUSE = "alcohol_abuse"
|
|
28
|
-
SMOKING_CESSATION = "smoking_cessation"
|
|
29
|
-
SPEECH_THERAPY = "speech_therapy"
|
|
30
|
-
HOME_VISIT = "home_visit"
|
|
31
|
-
MEDICAL_NUTRITION_THERAPY = "medical_nutrition_therapy"
|
|
32
|
-
NUTRITIONAL_COUNSELING = "nutritional_counseling"
|
|
33
|
-
DIETITIAN_VISIT = "dietitian_visit"
|
|
34
|
-
PREVENTATIVE_MEDICINE_COUNSELING = "preventative_medicine_counseling"
|
|
35
|
-
CHRONIC_CARE = "chronic_care"
|
|
36
|
-
ADVANCE_CARE = "advance_care"
|
|
37
|
-
COLLABORATIVE_CARE_MANAGEMENT = "collaborative_care_management"
|
|
38
|
-
ABORTION_CARE = "abortion_care"
|
|
39
|
-
ABORTION_DRUGS = "abortion_drugs"
|
|
40
|
-
REMOTE_THERAPEUTIC_MONITORING = "remote_therapeutic_monitoring"
|
|
41
|
-
PRINCIPAL_CARE_MGMT = "principal_care_mgmt"
|
|
42
|
-
OTHER_EM = "other_em"
|
|
43
|
-
TELEHEALTH_OUD = "telehealth_oud"
|
|
44
|
-
SUBSTANCE_ABUSE_TREATMENT = "substance_abuse_treatment"
|
|
45
|
-
ACUPUNCTURE = "acupuncture"
|
|
46
|
-
PHYSICAL_THERAPY = "physical_therapy"
|
|
47
|
-
LACTATION_CONSULTING = "lactation_consulting"
|
|
48
|
-
SLEEP_STUDY = "sleep_study"
|
|
49
|
-
CMS_TELEHEALTH_CODES = "cms_telehealth_codes"
|
|
50
|
-
CMS_TELEHEALTH_AUDIO_CODES = "cms_telehealth_audio_codes"
|
|
51
|
-
end
|
|
52
|
-
end
|
|
53
|
-
end
|
|
54
|
-
end
|
|
55
|
-
end
|
|
@@ -1,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
|