candidhealth 1.3.1 → 1.5.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/charge_capture/v_1/client.rb +885 -235
- data/lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create.rb +4 -4
- data/lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create_optional.rb +4 -4
- data/lib/candidhealth/contracts/v_2/client.rb +4 -4
- data/lib/candidhealth/diagnoses/types/disallow_multiple_primary_diagnosis_error.rb +80 -0
- data/lib/candidhealth/diagnoses/types/service_lines_must_have_at_least_one_diagnosis_error.rb +77 -0
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +151 -2
- data/lib/candidhealth/encounters/v_4/types/encounter_submission_expectation.rb +23 -0
- data/lib/candidhealth/exports/v_3/client.rb +16 -10
- data/lib/candidhealth/fee_schedules/v_3/client.rb +82 -0
- data/lib/candidhealth/individual/types/subscriber_create.rb +6 -2
- data/lib/candidhealth/individual/types/subscriber_create_optional.rb +6 -2
- data/lib/candidhealth/non_insurance_payers/v_1/client.rb +95 -6
- data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_categories_page.rb +83 -0
- data/lib/candidhealth/organization_providers/v_3/client.rb +8 -4
- data/lib/candidhealth/organization_service_facilities/v_2/client.rb +8 -2
- data/lib/candidhealth/pre_encounter/appointments/v_1/client.rb +12 -4
- data/lib/candidhealth/pre_encounter/appointments/v_1/types/appointment.rb +11 -3
- data/lib/candidhealth/pre_encounter/appointments/v_1/types/mutable_appointment.rb +9 -1
- data/lib/candidhealth/pre_encounter/appointments/v_1/types/visit.rb +24 -2
- data/lib/candidhealth/pre_encounter/common/types/base_model.rb +2 -2
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +8 -4
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage.rb +6 -4
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/mutable_coverage.rb +4 -2
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/client.rb +205 -16
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/coordination_of_benefits_recommendation.rb +63 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_recommendation.rb +144 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_recommendation_patient_info.rb +124 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_recommendation_payload.rb +102 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/medicare_advantage_recommendation.rb +70 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/medicare_advantage_recommendation_payload.rb +96 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/payer_search_response.rb +107 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/post_eligibility_recommendation_request.rb +96 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/stedi_payer.rb +144 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/stedi_payer_item.rb +79 -0
- data/lib/candidhealth/pre_encounter/images/v_1/types/image.rb +2 -2
- data/lib/candidhealth/pre_encounter/lists/v_1/types/patient_list_item.rb +28 -1
- data/lib/candidhealth/pre_encounter/notes/v_1/types/note.rb +2 -2
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +8 -4
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +2 -2
- data/lib/candidhealth/pre_encounter/tags/v_1/client.rb +8 -0
- data/lib/candidhealth/pre_encounter/tags/v_1/types/mutable_tag.rb +22 -3
- data/lib/candidhealth/pre_encounter/tags/v_1/types/tag.rb +23 -5
- data/lib/candidhealth/service_lines/v_2/types/service_line.rb +9 -1
- data/lib/candidhealth/x_12/v_1/types/patient_discharge_status_code.rb +52 -0
- data/lib/candidhealth/x_12/v_1/types/point_of_origin_for_admission_or_visit_code.rb +23 -0
- data/lib/candidhealth/x_12/v_1/types/type_of_admission_or_visit_code.rb +18 -0
- data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite.rb +98 -0
- data/lib/candidhealth/x_12/v_1/types/type_of_bill_frequency_code.rb +39 -0
- data/lib/candidhealth/x_12/v_1/types/type_of_care_code.rb +21 -0
- data/lib/candidhealth/x_12/v_1/types/type_of_facility_code.rb +19 -0
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +21 -1
- metadata +23 -3
- data/lib/candidhealth/claim_submission/v_1/types/claim_frequency_type_code.rb +0 -15
@@ -81,6 +81,8 @@ module CandidApiClient
|
|
81
81
|
attr_reader :procedure_code
|
82
82
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
83
83
|
attr_reader :ordering_provider
|
84
|
+
# @return [String]
|
85
|
+
attr_reader :revenue_code
|
84
86
|
# @return [String] String representation of a Decimal that can be parsed by most libraries.
|
85
87
|
# A ServiceLine quantity cannot contain more than one digit of precision.
|
86
88
|
# Example: 1.1 is valid, 1.11 is not.
|
@@ -153,6 +155,7 @@ module CandidApiClient
|
|
153
155
|
# @param service_line_id [String]
|
154
156
|
# @param procedure_code [String]
|
155
157
|
# @param ordering_provider [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
158
|
+
# @param revenue_code [String]
|
156
159
|
# @param quantity [String] String representation of a Decimal that can be parsed by most libraries.
|
157
160
|
# A ServiceLine quantity cannot contain more than one digit of precision.
|
158
161
|
# Example: 1.1 is valid, 1.11 is not.
|
@@ -178,7 +181,7 @@ module CandidApiClient
|
|
178
181
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
179
182
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
|
180
183
|
def initialize(created_at:, service_line_id:, procedure_code:, quantity:, units:, claim_id:, date_of_service_range:, date_of_service:, modifiers: OMIT, charge_amount_cents: OMIT, allowed_amount_cents: OMIT,
|
181
|
-
insurance_balance_cents: OMIT, patient_balance_cents: OMIT, paid_amount_cents: OMIT, primary_paid_amount_cents: OMIT, secondary_paid_amount_cents: OMIT, tertiary_paid_amount_cents: OMIT, patient_responsibility_cents: OMIT, copay_cents: OMIT, coinsurance_cents: OMIT, deductible_cents: OMIT, diagnosis_id_zero: OMIT, diagnosis_id_one: OMIT, diagnosis_id_two: OMIT, diagnosis_id_three: OMIT, drug_identification: OMIT, service_line_era_data: OMIT, service_line_manual_adjustments: OMIT, related_invoices: OMIT, related_invoice_info: OMIT, denial_reason: OMIT, place_of_service_code: OMIT, place_of_service_code_as_submitted: OMIT, ordering_provider: OMIT, description: OMIT, end_date_of_service: OMIT, test_results: OMIT, has_epsdt_indicator: OMIT, has_family_planning_indicator: OMIT, note: OMIT, additional_properties: nil)
|
184
|
+
insurance_balance_cents: OMIT, patient_balance_cents: OMIT, paid_amount_cents: OMIT, primary_paid_amount_cents: OMIT, secondary_paid_amount_cents: OMIT, tertiary_paid_amount_cents: OMIT, patient_responsibility_cents: OMIT, copay_cents: OMIT, coinsurance_cents: OMIT, deductible_cents: OMIT, diagnosis_id_zero: OMIT, diagnosis_id_one: OMIT, diagnosis_id_two: OMIT, diagnosis_id_three: OMIT, drug_identification: OMIT, service_line_era_data: OMIT, service_line_manual_adjustments: OMIT, related_invoices: OMIT, related_invoice_info: OMIT, denial_reason: OMIT, place_of_service_code: OMIT, place_of_service_code_as_submitted: OMIT, ordering_provider: OMIT, revenue_code: OMIT, description: OMIT, end_date_of_service: OMIT, test_results: OMIT, has_epsdt_indicator: OMIT, has_family_planning_indicator: OMIT, note: OMIT, additional_properties: nil)
|
182
185
|
@created_at = created_at
|
183
186
|
@modifiers = modifiers if modifiers != OMIT
|
184
187
|
@charge_amount_cents = charge_amount_cents if charge_amount_cents != OMIT
|
@@ -212,6 +215,7 @@ module CandidApiClient
|
|
212
215
|
@service_line_id = service_line_id
|
213
216
|
@procedure_code = procedure_code
|
214
217
|
@ordering_provider = ordering_provider if ordering_provider != OMIT
|
218
|
+
@revenue_code = revenue_code if revenue_code != OMIT
|
215
219
|
@quantity = quantity
|
216
220
|
@units = units
|
217
221
|
@claim_id = claim_id
|
@@ -254,6 +258,7 @@ module CandidApiClient
|
|
254
258
|
"service_line_id": service_line_id,
|
255
259
|
"procedure_code": procedure_code,
|
256
260
|
"ordering_provider": ordering_provider,
|
261
|
+
"revenue_code": revenue_code,
|
257
262
|
"quantity": quantity,
|
258
263
|
"units": units,
|
259
264
|
"claim_id": claim_id,
|
@@ -335,6 +340,7 @@ module CandidApiClient
|
|
335
340
|
ordering_provider = parsed_json["ordering_provider"].to_json
|
336
341
|
ordering_provider = CandidApiClient::EncounterProviders::V2::Types::EncounterProvider.from_json(json_object: ordering_provider)
|
337
342
|
end
|
343
|
+
revenue_code = struct["revenue_code"]
|
338
344
|
quantity = struct["quantity"]
|
339
345
|
units = struct["units"]
|
340
346
|
claim_id = struct["claim_id"]
|
@@ -386,6 +392,7 @@ module CandidApiClient
|
|
386
392
|
service_line_id: service_line_id,
|
387
393
|
procedure_code: procedure_code,
|
388
394
|
ordering_provider: ordering_provider,
|
395
|
+
revenue_code: revenue_code,
|
389
396
|
quantity: quantity,
|
390
397
|
units: units,
|
391
398
|
claim_id: claim_id,
|
@@ -444,6 +451,7 @@ module CandidApiClient
|
|
444
451
|
obj.service_line_id.is_a?(String) != false || raise("Passed value for field obj.service_line_id is not the expected type, validation failed.")
|
445
452
|
obj.procedure_code.is_a?(String) != false || raise("Passed value for field obj.procedure_code is not the expected type, validation failed.")
|
446
453
|
obj.ordering_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::EncounterProvider.validate_raw(obj: obj.ordering_provider)
|
454
|
+
obj.revenue_code&.is_a?(String) != false || raise("Passed value for field obj.revenue_code is not the expected type, validation failed.")
|
447
455
|
obj.quantity.is_a?(String) != false || raise("Passed value for field obj.quantity is not the expected type, validation failed.")
|
448
456
|
obj.units.is_a?(CandidApiClient::Commons::Types::ServiceLineUnits) != false || raise("Passed value for field obj.units is not the expected type, validation failed.")
|
449
457
|
obj.claim_id.is_a?(String) != false || raise("Passed value for field obj.claim_id is not the expected type, validation failed.")
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CandidApiClient
|
4
|
+
module X12
|
5
|
+
module V1
|
6
|
+
module Types
|
7
|
+
class PatientDischargeStatusCode
|
8
|
+
C_01 = "01"
|
9
|
+
C_02 = "02"
|
10
|
+
C_03 = "03"
|
11
|
+
C_04 = "04"
|
12
|
+
C_05 = "05"
|
13
|
+
C_06 = "06"
|
14
|
+
C_07 = "07"
|
15
|
+
C_09 = "09"
|
16
|
+
C_20 = "20"
|
17
|
+
C_21 = "21"
|
18
|
+
C_30 = "30"
|
19
|
+
C_40 = "40"
|
20
|
+
C_41 = "41"
|
21
|
+
C_42 = "42"
|
22
|
+
C_43 = "43"
|
23
|
+
C_50 = "50"
|
24
|
+
C_51 = "51"
|
25
|
+
C_61 = "61"
|
26
|
+
C_62 = "62"
|
27
|
+
C_63 = "63"
|
28
|
+
C_64 = "64"
|
29
|
+
C_65 = "65"
|
30
|
+
C_66 = "66"
|
31
|
+
C_69 = "69"
|
32
|
+
C_70 = "70"
|
33
|
+
C_81 = "81"
|
34
|
+
C_82 = "82"
|
35
|
+
C_83 = "83"
|
36
|
+
C_84 = "84"
|
37
|
+
C_85 = "85"
|
38
|
+
C_86 = "86"
|
39
|
+
C_87 = "87"
|
40
|
+
C_88 = "88"
|
41
|
+
C_89 = "89"
|
42
|
+
C_90 = "90"
|
43
|
+
C_91 = "91"
|
44
|
+
C_92 = "92"
|
45
|
+
C_93 = "93"
|
46
|
+
C_94 = "94"
|
47
|
+
C_95 = "95"
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CandidApiClient
|
4
|
+
module X12
|
5
|
+
module V1
|
6
|
+
module Types
|
7
|
+
class PointOfOriginForAdmissionOrVisitCode
|
8
|
+
C_1 = "1"
|
9
|
+
C_2 = "2"
|
10
|
+
C_4 = "4"
|
11
|
+
C_5 = "5"
|
12
|
+
C_6 = "6"
|
13
|
+
C_8 = "8"
|
14
|
+
C_9 = "9"
|
15
|
+
CD = "D"
|
16
|
+
CE = "E"
|
17
|
+
CF = "F"
|
18
|
+
CG = "G"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,98 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "type_of_facility_code"
|
4
|
+
require_relative "type_of_care_code"
|
5
|
+
require_relative "type_of_bill_frequency_code"
|
6
|
+
require "ostruct"
|
7
|
+
require "json"
|
8
|
+
|
9
|
+
module CandidApiClient
|
10
|
+
module X12
|
11
|
+
module V1
|
12
|
+
module Types
|
13
|
+
class TypeOfBillComposite
|
14
|
+
# @return [String] The composite, 4 digit code of the composite, starting with a padding code 0.
|
15
|
+
attr_reader :code
|
16
|
+
# @return [CandidApiClient::X12::V1::Types::TypeOfFacilityCode] The FL04 Institutional type of facility code for the bill. The second digit of
|
17
|
+
# the composite code.
|
18
|
+
attr_reader :type_of_facility
|
19
|
+
# @return [CandidApiClient::X12::V1::Types::TypeOfCareCode] The FL04 Institutional type of care code for the bill. The second digit of the
|
20
|
+
# composite code.
|
21
|
+
attr_reader :type_of_care
|
22
|
+
# @return [CandidApiClient::X12::V1::Types::TypeOfBillFrequencyCode] The FL04 Institutional frequency code for the bill. The fourth digit of the
|
23
|
+
# composite code.
|
24
|
+
attr_reader :frequency_code
|
25
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
26
|
+
attr_reader :additional_properties
|
27
|
+
# @return [Object]
|
28
|
+
attr_reader :_field_set
|
29
|
+
protected :_field_set
|
30
|
+
|
31
|
+
OMIT = Object.new
|
32
|
+
|
33
|
+
# @param code [String] The composite, 4 digit code of the composite, starting with a padding code 0.
|
34
|
+
# @param type_of_facility [CandidApiClient::X12::V1::Types::TypeOfFacilityCode] The FL04 Institutional type of facility code for the bill. The second digit of
|
35
|
+
# the composite code.
|
36
|
+
# @param type_of_care [CandidApiClient::X12::V1::Types::TypeOfCareCode] The FL04 Institutional type of care code for the bill. The second digit of the
|
37
|
+
# composite code.
|
38
|
+
# @param frequency_code [CandidApiClient::X12::V1::Types::TypeOfBillFrequencyCode] The FL04 Institutional frequency code for the bill. The fourth digit of the
|
39
|
+
# composite code.
|
40
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
41
|
+
# @return [CandidApiClient::X12::V1::Types::TypeOfBillComposite]
|
42
|
+
def initialize(code:, type_of_facility:, type_of_care:, frequency_code:, additional_properties: nil)
|
43
|
+
@code = code
|
44
|
+
@type_of_facility = type_of_facility
|
45
|
+
@type_of_care = type_of_care
|
46
|
+
@frequency_code = frequency_code
|
47
|
+
@additional_properties = additional_properties
|
48
|
+
@_field_set = {
|
49
|
+
"code": code,
|
50
|
+
"type_of_facility": type_of_facility,
|
51
|
+
"type_of_care": type_of_care,
|
52
|
+
"frequency_code": frequency_code
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
# Deserialize a JSON object to an instance of TypeOfBillComposite
|
57
|
+
#
|
58
|
+
# @param json_object [String]
|
59
|
+
# @return [CandidApiClient::X12::V1::Types::TypeOfBillComposite]
|
60
|
+
def self.from_json(json_object:)
|
61
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
62
|
+
code = struct["code"]
|
63
|
+
type_of_facility = struct["type_of_facility"]
|
64
|
+
type_of_care = struct["type_of_care"]
|
65
|
+
frequency_code = struct["frequency_code"]
|
66
|
+
new(
|
67
|
+
code: code,
|
68
|
+
type_of_facility: type_of_facility,
|
69
|
+
type_of_care: type_of_care,
|
70
|
+
frequency_code: frequency_code,
|
71
|
+
additional_properties: struct
|
72
|
+
)
|
73
|
+
end
|
74
|
+
|
75
|
+
# Serialize an instance of TypeOfBillComposite to a JSON object
|
76
|
+
#
|
77
|
+
# @return [String]
|
78
|
+
def to_json(*_args)
|
79
|
+
@_field_set&.to_json
|
80
|
+
end
|
81
|
+
|
82
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
83
|
+
# hash and check each fields type against the current object's property
|
84
|
+
# definitions.
|
85
|
+
#
|
86
|
+
# @param obj [Object]
|
87
|
+
# @return [Void]
|
88
|
+
def self.validate_raw(obj:)
|
89
|
+
obj.code.is_a?(String) != false || raise("Passed value for field obj.code is not the expected type, validation failed.")
|
90
|
+
obj.type_of_facility.is_a?(CandidApiClient::X12::V1::Types::TypeOfFacilityCode) != false || raise("Passed value for field obj.type_of_facility is not the expected type, validation failed.")
|
91
|
+
obj.type_of_care.is_a?(CandidApiClient::X12::V1::Types::TypeOfCareCode) != false || raise("Passed value for field obj.type_of_care is not the expected type, validation failed.")
|
92
|
+
obj.frequency_code.is_a?(CandidApiClient::X12::V1::Types::TypeOfBillFrequencyCode) != false || raise("Passed value for field obj.frequency_code is not the expected type, validation failed.")
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CandidApiClient
|
4
|
+
module X12
|
5
|
+
module V1
|
6
|
+
module Types
|
7
|
+
class TypeOfBillFrequencyCode
|
8
|
+
C_0 = "0"
|
9
|
+
C_1 = "1"
|
10
|
+
C_2 = "2"
|
11
|
+
C_3 = "3"
|
12
|
+
C_4 = "4"
|
13
|
+
C_5 = "5"
|
14
|
+
C_7 = "7"
|
15
|
+
C_8 = "8"
|
16
|
+
C_9 = "9"
|
17
|
+
CA = "A"
|
18
|
+
CB = "B"
|
19
|
+
CC = "C"
|
20
|
+
CD = "D"
|
21
|
+
CE = "E"
|
22
|
+
CF = "F"
|
23
|
+
CG = "G"
|
24
|
+
CH = "H"
|
25
|
+
CI = "I"
|
26
|
+
CJ = "J"
|
27
|
+
CK = "K"
|
28
|
+
CM = "M"
|
29
|
+
CO_FREQ = "O"
|
30
|
+
CP = "P"
|
31
|
+
CQ = "Q"
|
32
|
+
CX = "X"
|
33
|
+
CY_FREQ = "Y"
|
34
|
+
CZ_FREQ = "Z"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CandidApiClient
|
4
|
+
module X12
|
5
|
+
module V1
|
6
|
+
module Types
|
7
|
+
class TypeOfCareCode
|
8
|
+
C_1 = "1"
|
9
|
+
C_2 = "2"
|
10
|
+
C_3 = "3"
|
11
|
+
C_4 = "4"
|
12
|
+
C_5 = "5"
|
13
|
+
C_6 = "6"
|
14
|
+
C_7 = "7"
|
15
|
+
C_8 = "8"
|
16
|
+
C_9 = "9"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CandidApiClient
|
4
|
+
module X12
|
5
|
+
module V1
|
6
|
+
module Types
|
7
|
+
class TypeOfFacilityCode
|
8
|
+
C_1 = "1"
|
9
|
+
C_2 = "2"
|
10
|
+
C_3 = "3"
|
11
|
+
C_4 = "4"
|
12
|
+
C_6 = "6"
|
13
|
+
C_7 = "7"
|
14
|
+
C_8 = "8"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/requests.rb
CHANGED
@@ -45,7 +45,7 @@ module CandidApiClient
|
|
45
45
|
|
46
46
|
# @return [Hash{String => String}]
|
47
47
|
def get_headers
|
48
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
48
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0" }
|
49
49
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
50
50
|
headers
|
51
51
|
end
|
@@ -90,7 +90,7 @@ module CandidApiClient
|
|
90
90
|
|
91
91
|
# @return [Hash{String => String}]
|
92
92
|
def get_headers
|
93
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
93
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0" }
|
94
94
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
95
95
|
headers
|
96
96
|
end
|
data/lib/types_export.rb
CHANGED
@@ -19,7 +19,6 @@ require_relative "candidhealth/charge_capture/v_1/types/charge_capture_sort_fiel
|
|
19
19
|
require_relative "candidhealth/charge_capture/v_1/types/charge_capture_status"
|
20
20
|
require_relative "candidhealth/charge_capture/v_1/types/charge_capture_post_billed_change"
|
21
21
|
require_relative "candidhealth/charge_capture/v_1/types/charge_external_id_conflict_error_message"
|
22
|
-
require_relative "candidhealth/claim_submission/v_1/types/claim_frequency_type_code"
|
23
22
|
require_relative "candidhealth/claim_submission/v_1/types/external_claim_submission_create"
|
24
23
|
require_relative "candidhealth/claim_submission/v_1/types/external_claim_submission_create_optional"
|
25
24
|
require_relative "candidhealth/claim_submission/v_1/types/claim_submission_record_create"
|
@@ -131,6 +130,7 @@ require_relative "candidhealth/encounters/v_4/types/value_does_not_match_key_typ
|
|
131
130
|
require_relative "candidhealth/encounters/v_4/types/multiple_instances_for_schema_error"
|
132
131
|
require_relative "candidhealth/encounters/v_4/types/schema_instance_validation_error"
|
133
132
|
require_relative "candidhealth/encounters/v_4/types/payer_plan_group_payer_does_not_match_insurance_card_error"
|
133
|
+
require_relative "candidhealth/encounters/v_4/types/encounter_submission_expectation"
|
134
134
|
require_relative "candidhealth/expected_network_status/v_1/types/expected_network_status"
|
135
135
|
require_relative "candidhealth/expected_network_status/v_1/types/expected_network_status_response"
|
136
136
|
require_relative "candidhealth/expected_network_status/v_2/types/line_of_business"
|
@@ -244,6 +244,7 @@ require_relative "candidhealth/non_insurance_payers/v_1/types/non_insurance_paye
|
|
244
244
|
require_relative "candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_address_update"
|
245
245
|
require_relative "candidhealth/non_insurance_payers/v_1/types/toggle_non_insurance_payer_enablement_request"
|
246
246
|
require_relative "candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_update_request"
|
247
|
+
require_relative "candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_categories_page"
|
247
248
|
require_relative "candidhealth/organization_service_facilities/v_2/types/service_facility_status"
|
248
249
|
require_relative "candidhealth/organization_service_facilities/v_2/types/service_facility_operational_status"
|
249
250
|
require_relative "candidhealth/organization_service_facilities/v_2/types/service_facility_mode"
|
@@ -333,6 +334,13 @@ require_relative "candidhealth/x_12/v_1/types/claim_adjustment_reason_code"
|
|
333
334
|
require_relative "candidhealth/x_12/v_1/types/remittance_advice_remark_code"
|
334
335
|
require_relative "candidhealth/x_12/v_1/types/carc"
|
335
336
|
require_relative "candidhealth/x_12/v_1/types/rarc"
|
337
|
+
require_relative "candidhealth/x_12/v_1/types/type_of_facility_code"
|
338
|
+
require_relative "candidhealth/x_12/v_1/types/type_of_care_code"
|
339
|
+
require_relative "candidhealth/x_12/v_1/types/type_of_bill_frequency_code"
|
340
|
+
require_relative "candidhealth/x_12/v_1/types/type_of_bill_composite"
|
341
|
+
require_relative "candidhealth/x_12/v_1/types/type_of_admission_or_visit_code"
|
342
|
+
require_relative "candidhealth/x_12/v_1/types/point_of_origin_for_admission_or_visit_code"
|
343
|
+
require_relative "candidhealth/x_12/v_1/types/patient_discharge_status_code"
|
336
344
|
require_relative "candidhealth/pre_encounter/appointments/v_1/types/appointment_work_queue"
|
337
345
|
require_relative "candidhealth/pre_encounter/appointments/v_1/types/universal_service_identifier"
|
338
346
|
require_relative "candidhealth/pre_encounter/appointments/v_1/types/appointment_status"
|
@@ -376,6 +384,13 @@ require_relative "candidhealth/pre_encounter/eligibility_checks/v_1/types/provid
|
|
376
384
|
require_relative "candidhealth/pre_encounter/eligibility_checks/v_1/types/encounter"
|
377
385
|
require_relative "candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_status"
|
378
386
|
require_relative "candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_status"
|
387
|
+
require_relative "candidhealth/pre_encounter/eligibility_checks/v_1/types/medicare_advantage_recommendation_payload"
|
388
|
+
require_relative "candidhealth/pre_encounter/eligibility_checks/v_1/types/medicare_advantage_recommendation"
|
389
|
+
require_relative "candidhealth/pre_encounter/eligibility_checks/v_1/types/coordination_of_benefits_recommendation"
|
390
|
+
require_relative "candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_recommendation_patient_info"
|
391
|
+
require_relative "candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_recommendation_payload"
|
392
|
+
require_relative "candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_recommendation"
|
393
|
+
require_relative "candidhealth/pre_encounter/eligibility_checks/v_1/types/post_eligibility_recommendation_request"
|
379
394
|
require_relative "candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_metadata"
|
380
395
|
require_relative "candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_request"
|
381
396
|
require_relative "candidhealth/pre_encounter/eligibility_checks/v_1/types/request_correction"
|
@@ -387,6 +402,9 @@ require_relative "candidhealth/pre_encounter/eligibility_checks/v_1/types/eligib
|
|
387
402
|
require_relative "candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_response"
|
388
403
|
require_relative "candidhealth/pre_encounter/eligibility_checks/v_1/types/batch_eligibility_response"
|
389
404
|
require_relative "candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_page"
|
405
|
+
require_relative "candidhealth/pre_encounter/eligibility_checks/v_1/types/stedi_payer"
|
406
|
+
require_relative "candidhealth/pre_encounter/eligibility_checks/v_1/types/stedi_payer_item"
|
407
|
+
require_relative "candidhealth/pre_encounter/eligibility_checks/v_1/types/payer_search_response"
|
390
408
|
require_relative "candidhealth/pre_encounter/images/v_1/types/image_status"
|
391
409
|
require_relative "candidhealth/pre_encounter/images/v_1/types/coverage_image_side"
|
392
410
|
require_relative "candidhealth/pre_encounter/images/v_1/types/coverage_association"
|
@@ -465,6 +483,8 @@ require_relative "candidhealth/diagnoses/types/standalone_diagnosis_create"
|
|
465
483
|
require_relative "candidhealth/diagnoses/types/diagnosis_type_code"
|
466
484
|
require_relative "candidhealth/diagnoses/types/diagnosis"
|
467
485
|
require_relative "candidhealth/diagnoses/types/diagnosis_not_found_error"
|
486
|
+
require_relative "candidhealth/diagnoses/types/service_lines_must_have_at_least_one_diagnosis_error"
|
487
|
+
require_relative "candidhealth/diagnoses/types/disallow_multiple_primary_diagnosis_error"
|
468
488
|
require_relative "candidhealth/era_commons/types/claim_status_code_create"
|
469
489
|
require_relative "candidhealth/era/types/era_base"
|
470
490
|
require_relative "candidhealth/era/types/era_not_fully_processed_error_message"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: candidhealth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|
@@ -158,7 +158,6 @@ files:
|
|
158
158
|
- lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_sort_field.rb
|
159
159
|
- lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_status.rb
|
160
160
|
- lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_summary.rb
|
161
|
-
- lib/candidhealth/claim_submission/v_1/types/claim_frequency_type_code.rb
|
162
161
|
- lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create.rb
|
163
162
|
- lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create_optional.rb
|
164
163
|
- lib/candidhealth/claim_submission/v_1/types/external_claim_submission_create.rb
|
@@ -247,6 +246,8 @@ files:
|
|
247
246
|
- lib/candidhealth/diagnoses/types/diagnosis_create_optional.rb
|
248
247
|
- lib/candidhealth/diagnoses/types/diagnosis_not_found_error.rb
|
249
248
|
- lib/candidhealth/diagnoses/types/diagnosis_type_code.rb
|
249
|
+
- lib/candidhealth/diagnoses/types/disallow_multiple_primary_diagnosis_error.rb
|
250
|
+
- lib/candidhealth/diagnoses/types/service_lines_must_have_at_least_one_diagnosis_error.rb
|
250
251
|
- lib/candidhealth/diagnoses/types/standalone_diagnosis_create.rb
|
251
252
|
- lib/candidhealth/eligibility/client.rb
|
252
253
|
- lib/candidhealth/eligibility/v_2/client.rb
|
@@ -300,6 +301,7 @@ files:
|
|
300
301
|
- lib/candidhealth/encounters/v_4/types/encounter_page.rb
|
301
302
|
- lib/candidhealth/encounters/v_4/types/encounter_patient_control_number_uniqueness_error_type.rb
|
302
303
|
- lib/candidhealth/encounters/v_4/types/encounter_sort_options.rb
|
304
|
+
- lib/candidhealth/encounters/v_4/types/encounter_submission_expectation.rb
|
303
305
|
- lib/candidhealth/encounters/v_4/types/encounter_submission_origin_type.rb
|
304
306
|
- lib/candidhealth/encounters/v_4/types/epsdt_referral.rb
|
305
307
|
- lib/candidhealth/encounters/v_4/types/epsdt_referral_optional.rb
|
@@ -518,6 +520,7 @@ files:
|
|
518
520
|
- lib/candidhealth/non_insurance_payers/v_1/types/create_non_insurance_payer_request.rb
|
519
521
|
- lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer.rb
|
520
522
|
- lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_address_update.rb
|
523
|
+
- lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_categories_page.rb
|
521
524
|
- lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_category_update.rb
|
522
525
|
- lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_description_update.rb
|
523
526
|
- lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_page.rb
|
@@ -645,6 +648,7 @@ files:
|
|
645
648
|
- lib/candidhealth/pre_encounter/eligibility_checks/client.rb
|
646
649
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/client.rb
|
647
650
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/batch_eligibility_response.rb
|
651
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/coordination_of_benefits_recommendation.rb
|
648
652
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check.rb
|
649
653
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_error.rb
|
650
654
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_error_details.rb
|
@@ -652,15 +656,24 @@ files:
|
|
652
656
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_metadata.rb
|
653
657
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_page.rb
|
654
658
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_status.rb
|
659
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_recommendation.rb
|
660
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_recommendation_patient_info.rb
|
661
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_recommendation_payload.rb
|
655
662
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_request.rb
|
656
663
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_response.rb
|
657
664
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_status.rb
|
658
665
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/encounter.rb
|
659
666
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/individual_provider.rb
|
667
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/medicare_advantage_recommendation.rb
|
668
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/medicare_advantage_recommendation_payload.rb
|
660
669
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/organization_provider.rb
|
661
670
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/parsed_response.rb
|
671
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/payer_search_response.rb
|
672
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/post_eligibility_recommendation_request.rb
|
662
673
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/provider.rb
|
663
674
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/request_correction.rb
|
675
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/stedi_payer.rb
|
676
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/stedi_payer_item.rb
|
664
677
|
- lib/candidhealth/pre_encounter/images/client.rb
|
665
678
|
- lib/candidhealth/pre_encounter/images/v_1/client.rb
|
666
679
|
- lib/candidhealth/pre_encounter/images/v_1/types/coverage_association.rb
|
@@ -766,8 +779,15 @@ files:
|
|
766
779
|
- lib/candidhealth/write_offs/v_1/types/write_offs_page.rb
|
767
780
|
- lib/candidhealth/x_12/v_1/types/carc.rb
|
768
781
|
- lib/candidhealth/x_12/v_1/types/claim_adjustment_reason_code.rb
|
782
|
+
- lib/candidhealth/x_12/v_1/types/patient_discharge_status_code.rb
|
783
|
+
- lib/candidhealth/x_12/v_1/types/point_of_origin_for_admission_or_visit_code.rb
|
769
784
|
- lib/candidhealth/x_12/v_1/types/rarc.rb
|
770
785
|
- lib/candidhealth/x_12/v_1/types/remittance_advice_remark_code.rb
|
786
|
+
- lib/candidhealth/x_12/v_1/types/type_of_admission_or_visit_code.rb
|
787
|
+
- lib/candidhealth/x_12/v_1/types/type_of_bill_composite.rb
|
788
|
+
- lib/candidhealth/x_12/v_1/types/type_of_bill_frequency_code.rb
|
789
|
+
- lib/candidhealth/x_12/v_1/types/type_of_care_code.rb
|
790
|
+
- lib/candidhealth/x_12/v_1/types/type_of_facility_code.rb
|
771
791
|
- lib/candidhealth/yes_no_indicator/types/yes_no_indicator.rb
|
772
792
|
- lib/core/file_utilities.rb
|
773
793
|
- lib/core/oauth.rb
|