candidhealth 1.3.0 → 1.4.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 +28 -2
- 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/commons/types/next_responsible_party.rb +16 -0
- data/lib/candidhealth/contracts/v_2/client.rb +4 -4
- data/lib/candidhealth/diagnoses/types/service_lines_must_have_at_least_one_diagnosis_error.rb +77 -0
- data/lib/candidhealth/encounters/v_4/client.rb +2 -0
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +162 -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/organization_providers/v_2/types/license_type.rb +1 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/client.rb +205 -2
- 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 +87 -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/lists/v_1/types/patient_list_item.rb +28 -1
- 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 +21 -3
- data/lib/candidhealth/service_lines/v_2/client.rb +4 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line.rb +18 -2
- data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +10 -2
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_optional.rb +10 -2
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb +10 -2
- data/lib/candidhealth/service_lines/v_2/types/service_line_update.rb +10 -2
- 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 +20 -1
- metadata +22 -3
- data/lib/candidhealth/claim_submission/v_1/types/claim_frequency_type_code.rb +0 -15
@@ -0,0 +1,79 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "stedi_payer"
|
4
|
+
require "ostruct"
|
5
|
+
require "json"
|
6
|
+
|
7
|
+
module CandidApiClient
|
8
|
+
module PreEncounter
|
9
|
+
module EligibilityChecks
|
10
|
+
module V1
|
11
|
+
module Types
|
12
|
+
class StediPayerItem
|
13
|
+
# @return [Integer]
|
14
|
+
attr_reader :score
|
15
|
+
# @return [CandidApiClient::PreEncounter::EligibilityChecks::V1::Types::StediPayer]
|
16
|
+
attr_reader :payer
|
17
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
18
|
+
attr_reader :additional_properties
|
19
|
+
# @return [Object]
|
20
|
+
attr_reader :_field_set
|
21
|
+
protected :_field_set
|
22
|
+
|
23
|
+
OMIT = Object.new
|
24
|
+
|
25
|
+
# @param score [Integer]
|
26
|
+
# @param payer [CandidApiClient::PreEncounter::EligibilityChecks::V1::Types::StediPayer]
|
27
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
28
|
+
# @return [CandidApiClient::PreEncounter::EligibilityChecks::V1::Types::StediPayerItem]
|
29
|
+
def initialize(score:, payer:, additional_properties: nil)
|
30
|
+
@score = score
|
31
|
+
@payer = payer
|
32
|
+
@additional_properties = additional_properties
|
33
|
+
@_field_set = { "score": score, "payer": payer }
|
34
|
+
end
|
35
|
+
|
36
|
+
# Deserialize a JSON object to an instance of StediPayerItem
|
37
|
+
#
|
38
|
+
# @param json_object [String]
|
39
|
+
# @return [CandidApiClient::PreEncounter::EligibilityChecks::V1::Types::StediPayerItem]
|
40
|
+
def self.from_json(json_object:)
|
41
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
42
|
+
parsed_json = JSON.parse(json_object)
|
43
|
+
score = struct["score"]
|
44
|
+
if parsed_json["payer"].nil?
|
45
|
+
payer = nil
|
46
|
+
else
|
47
|
+
payer = parsed_json["payer"].to_json
|
48
|
+
payer = CandidApiClient::PreEncounter::EligibilityChecks::V1::Types::StediPayer.from_json(json_object: payer)
|
49
|
+
end
|
50
|
+
new(
|
51
|
+
score: score,
|
52
|
+
payer: payer,
|
53
|
+
additional_properties: struct
|
54
|
+
)
|
55
|
+
end
|
56
|
+
|
57
|
+
# Serialize an instance of StediPayerItem to a JSON object
|
58
|
+
#
|
59
|
+
# @return [String]
|
60
|
+
def to_json(*_args)
|
61
|
+
@_field_set&.to_json
|
62
|
+
end
|
63
|
+
|
64
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
65
|
+
# hash and check each fields type against the current object's property
|
66
|
+
# definitions.
|
67
|
+
#
|
68
|
+
# @param obj [Object]
|
69
|
+
# @return [Void]
|
70
|
+
def self.validate_raw(obj:)
|
71
|
+
obj.score.is_a?(Integer) != false || raise("Passed value for field obj.score is not the expected type, validation failed.")
|
72
|
+
CandidApiClient::PreEncounter::EligibilityChecks::V1::Types::StediPayer.validate_raw(obj: obj.payer)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -16,6 +16,10 @@ module CandidApiClient
|
|
16
16
|
attr_reader :patient
|
17
17
|
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::MutableCoverage]
|
18
18
|
attr_reader :primary_coverage
|
19
|
+
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::MutableCoverage]
|
20
|
+
attr_reader :secondary_coverage
|
21
|
+
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::MutableCoverage]
|
22
|
+
attr_reader :tertiary_coverage
|
19
23
|
# @return [CandidApiClient::PreEncounter::Appointments::V1::Types::MutableAppointment]
|
20
24
|
attr_reader :next_appointment
|
21
25
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
@@ -28,17 +32,24 @@ module CandidApiClient
|
|
28
32
|
|
29
33
|
# @param patient [CandidApiClient::PreEncounter::Patients::V1::Types::Patient]
|
30
34
|
# @param primary_coverage [CandidApiClient::PreEncounter::Coverages::V1::Types::MutableCoverage]
|
35
|
+
# @param secondary_coverage [CandidApiClient::PreEncounter::Coverages::V1::Types::MutableCoverage]
|
36
|
+
# @param tertiary_coverage [CandidApiClient::PreEncounter::Coverages::V1::Types::MutableCoverage]
|
31
37
|
# @param next_appointment [CandidApiClient::PreEncounter::Appointments::V1::Types::MutableAppointment]
|
32
38
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
33
39
|
# @return [CandidApiClient::PreEncounter::Lists::V1::Types::PatientListItem]
|
34
|
-
def initialize(patient:, primary_coverage: OMIT,
|
40
|
+
def initialize(patient:, primary_coverage: OMIT, secondary_coverage: OMIT, tertiary_coverage: OMIT,
|
41
|
+
next_appointment: OMIT, additional_properties: nil)
|
35
42
|
@patient = patient
|
36
43
|
@primary_coverage = primary_coverage if primary_coverage != OMIT
|
44
|
+
@secondary_coverage = secondary_coverage if secondary_coverage != OMIT
|
45
|
+
@tertiary_coverage = tertiary_coverage if tertiary_coverage != OMIT
|
37
46
|
@next_appointment = next_appointment if next_appointment != OMIT
|
38
47
|
@additional_properties = additional_properties
|
39
48
|
@_field_set = {
|
40
49
|
"patient": patient,
|
41
50
|
"primary_coverage": primary_coverage,
|
51
|
+
"secondary_coverage": secondary_coverage,
|
52
|
+
"tertiary_coverage": tertiary_coverage,
|
42
53
|
"next_appointment": next_appointment
|
43
54
|
}.reject do |_k, v|
|
44
55
|
v == OMIT
|
@@ -64,6 +75,18 @@ module CandidApiClient
|
|
64
75
|
primary_coverage = parsed_json["primary_coverage"].to_json
|
65
76
|
primary_coverage = CandidApiClient::PreEncounter::Coverages::V1::Types::MutableCoverage.from_json(json_object: primary_coverage)
|
66
77
|
end
|
78
|
+
if parsed_json["secondary_coverage"].nil?
|
79
|
+
secondary_coverage = nil
|
80
|
+
else
|
81
|
+
secondary_coverage = parsed_json["secondary_coverage"].to_json
|
82
|
+
secondary_coverage = CandidApiClient::PreEncounter::Coverages::V1::Types::MutableCoverage.from_json(json_object: secondary_coverage)
|
83
|
+
end
|
84
|
+
if parsed_json["tertiary_coverage"].nil?
|
85
|
+
tertiary_coverage = nil
|
86
|
+
else
|
87
|
+
tertiary_coverage = parsed_json["tertiary_coverage"].to_json
|
88
|
+
tertiary_coverage = CandidApiClient::PreEncounter::Coverages::V1::Types::MutableCoverage.from_json(json_object: tertiary_coverage)
|
89
|
+
end
|
67
90
|
if parsed_json["next_appointment"].nil?
|
68
91
|
next_appointment = nil
|
69
92
|
else
|
@@ -73,6 +96,8 @@ module CandidApiClient
|
|
73
96
|
new(
|
74
97
|
patient: patient,
|
75
98
|
primary_coverage: primary_coverage,
|
99
|
+
secondary_coverage: secondary_coverage,
|
100
|
+
tertiary_coverage: tertiary_coverage,
|
76
101
|
next_appointment: next_appointment,
|
77
102
|
additional_properties: struct
|
78
103
|
)
|
@@ -94,6 +119,8 @@ module CandidApiClient
|
|
94
119
|
def self.validate_raw(obj:)
|
95
120
|
CandidApiClient::PreEncounter::Patients::V1::Types::Patient.validate_raw(obj: obj.patient)
|
96
121
|
obj.primary_coverage.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::MutableCoverage.validate_raw(obj: obj.primary_coverage)
|
122
|
+
obj.secondary_coverage.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::MutableCoverage.validate_raw(obj: obj.secondary_coverage)
|
123
|
+
obj.tertiary_coverage.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::MutableCoverage.validate_raw(obj: obj.tertiary_coverage)
|
97
124
|
obj.next_appointment.nil? || CandidApiClient::PreEncounter::Appointments::V1::Types::MutableAppointment.validate_raw(obj: obj.next_appointment)
|
98
125
|
end
|
99
126
|
end
|
@@ -76,6 +76,8 @@ module CandidApiClient
|
|
76
76
|
#
|
77
77
|
# @param request [Hash] Request of type CandidApiClient::PreEncounter::Tags::V1::Types::MutableTag, as a Hash
|
78
78
|
# * :value (String)
|
79
|
+
# * :description (String)
|
80
|
+
# * :alert (Boolean)
|
79
81
|
# @param request_options [CandidApiClient::RequestOptions]
|
80
82
|
# @return [CandidApiClient::PreEncounter::Tags::V1::Types::Tag]
|
81
83
|
# @example
|
@@ -102,6 +104,8 @@ module CandidApiClient
|
|
102
104
|
# @param version [String]
|
103
105
|
# @param request [Hash] Request of type CandidApiClient::PreEncounter::Tags::V1::Types::MutableTag, as a Hash
|
104
106
|
# * :value (String)
|
107
|
+
# * :description (String)
|
108
|
+
# * :alert (Boolean)
|
105
109
|
# @param request_options [CandidApiClient::RequestOptions]
|
106
110
|
# @return [CandidApiClient::PreEncounter::Tags::V1::Types::Tag]
|
107
111
|
# @example
|
@@ -223,6 +227,8 @@ module CandidApiClient
|
|
223
227
|
#
|
224
228
|
# @param request [Hash] Request of type CandidApiClient::PreEncounter::Tags::V1::Types::MutableTag, as a Hash
|
225
229
|
# * :value (String)
|
230
|
+
# * :description (String)
|
231
|
+
# * :alert (Boolean)
|
226
232
|
# @param request_options [CandidApiClient::RequestOptions]
|
227
233
|
# @return [CandidApiClient::PreEncounter::Tags::V1::Types::Tag]
|
228
234
|
# @example
|
@@ -252,6 +258,8 @@ module CandidApiClient
|
|
252
258
|
# @param version [String]
|
253
259
|
# @param request [Hash] Request of type CandidApiClient::PreEncounter::Tags::V1::Types::MutableTag, as a Hash
|
254
260
|
# * :value (String)
|
261
|
+
# * :description (String)
|
262
|
+
# * :alert (Boolean)
|
255
263
|
# @param request_options [CandidApiClient::RequestOptions]
|
256
264
|
# @return [CandidApiClient::PreEncounter::Tags::V1::Types::Tag]
|
257
265
|
# @example
|
@@ -12,6 +12,10 @@ module CandidApiClient
|
|
12
12
|
class MutableTag
|
13
13
|
# @return [String]
|
14
14
|
attr_reader :value
|
15
|
+
# @return [String]
|
16
|
+
attr_reader :description
|
17
|
+
# @return [Boolean]
|
18
|
+
attr_reader :alert
|
15
19
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
16
20
|
attr_reader :additional_properties
|
17
21
|
# @return [Object]
|
@@ -21,12 +25,18 @@ module CandidApiClient
|
|
21
25
|
OMIT = Object.new
|
22
26
|
|
23
27
|
# @param value [String]
|
28
|
+
# @param description [String]
|
29
|
+
# @param alert [Boolean]
|
24
30
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
25
31
|
# @return [CandidApiClient::PreEncounter::Tags::V1::Types::MutableTag]
|
26
|
-
def initialize(value:, additional_properties: nil)
|
32
|
+
def initialize(value:, description: OMIT, alert: OMIT, additional_properties: nil)
|
27
33
|
@value = value
|
34
|
+
@description = description if description != OMIT
|
35
|
+
@alert = alert if alert != OMIT
|
28
36
|
@additional_properties = additional_properties
|
29
|
-
@_field_set = { "value": value }
|
37
|
+
@_field_set = { "value": value, "description": description, "alert": alert }.reject do |_k, v|
|
38
|
+
v == OMIT
|
39
|
+
end
|
30
40
|
end
|
31
41
|
|
32
42
|
# Deserialize a JSON object to an instance of MutableTag
|
@@ -36,7 +46,14 @@ module CandidApiClient
|
|
36
46
|
def self.from_json(json_object:)
|
37
47
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
38
48
|
value = struct["value"]
|
39
|
-
|
49
|
+
description = struct["description"]
|
50
|
+
alert = struct["alert"]
|
51
|
+
new(
|
52
|
+
value: value,
|
53
|
+
description: description,
|
54
|
+
alert: alert,
|
55
|
+
additional_properties: struct
|
56
|
+
)
|
40
57
|
end
|
41
58
|
|
42
59
|
# Serialize an instance of MutableTag to a JSON object
|
@@ -54,6 +71,8 @@ module CandidApiClient
|
|
54
71
|
# @return [Void]
|
55
72
|
def self.validate_raw(obj:)
|
56
73
|
obj.value.is_a?(String) != false || raise("Passed value for field obj.value is not the expected type, validation failed.")
|
74
|
+
obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
|
75
|
+
obj.alert&.is_a?(Boolean) != false || raise("Passed value for field obj.alert is not the expected type, validation failed.")
|
57
76
|
end
|
58
77
|
end
|
59
78
|
end
|
@@ -27,6 +27,10 @@ module CandidApiClient
|
|
27
27
|
attr_reader :updating_user_id
|
28
28
|
# @return [String]
|
29
29
|
attr_reader :value
|
30
|
+
# @return [String]
|
31
|
+
attr_reader :description
|
32
|
+
# @return [Boolean]
|
33
|
+
attr_reader :alert
|
30
34
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
31
35
|
attr_reader :additional_properties
|
32
36
|
# @return [Object]
|
@@ -44,10 +48,12 @@ module CandidApiClient
|
|
44
48
|
# @param updated_at [DateTime]
|
45
49
|
# @param updating_user_id [String] The user ID of the user who last updated the object.
|
46
50
|
# @param value [String]
|
51
|
+
# @param description [String]
|
52
|
+
# @param alert [Boolean]
|
47
53
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
48
54
|
# @return [CandidApiClient::PreEncounter::Tags::V1::Types::Tag]
|
49
55
|
def initialize(id:, organization_id:, deactivated:, version:, updated_at:, updating_user_id:, value:,
|
50
|
-
additional_properties: nil)
|
56
|
+
description: OMIT, alert: OMIT, additional_properties: nil)
|
51
57
|
@id = id
|
52
58
|
@organization_id = organization_id
|
53
59
|
@deactivated = deactivated
|
@@ -55,6 +61,8 @@ module CandidApiClient
|
|
55
61
|
@updated_at = updated_at
|
56
62
|
@updating_user_id = updating_user_id
|
57
63
|
@value = value
|
64
|
+
@description = description if description != OMIT
|
65
|
+
@alert = alert if alert != OMIT
|
58
66
|
@additional_properties = additional_properties
|
59
67
|
@_field_set = {
|
60
68
|
"id": id,
|
@@ -63,8 +71,12 @@ module CandidApiClient
|
|
63
71
|
"version": version,
|
64
72
|
"updated_at": updated_at,
|
65
73
|
"updating_user_id": updating_user_id,
|
66
|
-
"value": value
|
67
|
-
|
74
|
+
"value": value,
|
75
|
+
"description": description,
|
76
|
+
"alert": alert
|
77
|
+
}.reject do |_k, v|
|
78
|
+
v == OMIT
|
79
|
+
end
|
68
80
|
end
|
69
81
|
|
70
82
|
# Deserialize a JSON object to an instance of Tag
|
@@ -81,6 +93,8 @@ module CandidApiClient
|
|
81
93
|
updated_at = (DateTime.parse(parsed_json["updated_at"]) unless parsed_json["updated_at"].nil?)
|
82
94
|
updating_user_id = struct["updating_user_id"]
|
83
95
|
value = struct["value"]
|
96
|
+
description = struct["description"]
|
97
|
+
alert = struct["alert"]
|
84
98
|
new(
|
85
99
|
id: id,
|
86
100
|
organization_id: organization_id,
|
@@ -89,6 +103,8 @@ module CandidApiClient
|
|
89
103
|
updated_at: updated_at,
|
90
104
|
updating_user_id: updating_user_id,
|
91
105
|
value: value,
|
106
|
+
description: description,
|
107
|
+
alert: alert,
|
92
108
|
additional_properties: struct
|
93
109
|
)
|
94
110
|
end
|
@@ -114,6 +130,8 @@ module CandidApiClient
|
|
114
130
|
obj.updated_at.is_a?(DateTime) != false || raise("Passed value for field obj.updated_at is not the expected type, validation failed.")
|
115
131
|
obj.updating_user_id.is_a?(String) != false || raise("Passed value for field obj.updating_user_id is not the expected type, validation failed.")
|
116
132
|
obj.value.is_a?(String) != false || raise("Passed value for field obj.value is not the expected type, validation failed.")
|
133
|
+
obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
|
134
|
+
obj.alert&.is_a?(Boolean) != false || raise("Passed value for field obj.alert is not the expected type, validation failed.")
|
117
135
|
end
|
118
136
|
end
|
119
137
|
end
|
@@ -61,6 +61,7 @@ module CandidApiClient
|
|
61
61
|
# * :test_results (Array<CandidApiClient::ServiceLines::V2::Types::TestResult>)
|
62
62
|
# * :has_epsdt_indicator (Boolean)
|
63
63
|
# * :has_family_planning_indicator (Boolean)
|
64
|
+
# * :note (String)
|
64
65
|
# @param request_options [CandidApiClient::RequestOptions]
|
65
66
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
|
66
67
|
# @example
|
@@ -112,6 +113,7 @@ module CandidApiClient
|
|
112
113
|
# * :test_results (Array<CandidApiClient::ServiceLines::V2::Types::TestResult>)
|
113
114
|
# * :has_epsdt_indicator (Boolean)
|
114
115
|
# * :has_family_planning_indicator (Boolean)
|
116
|
+
# * :note (String)
|
115
117
|
# @param request_options [CandidApiClient::RequestOptions]
|
116
118
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
|
117
119
|
# @example
|
@@ -206,6 +208,7 @@ module CandidApiClient
|
|
206
208
|
# * :test_results (Array<CandidApiClient::ServiceLines::V2::Types::TestResult>)
|
207
209
|
# * :has_epsdt_indicator (Boolean)
|
208
210
|
# * :has_family_planning_indicator (Boolean)
|
211
|
+
# * :note (String)
|
209
212
|
# @param request_options [CandidApiClient::RequestOptions]
|
210
213
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
|
211
214
|
# @example
|
@@ -259,6 +262,7 @@ module CandidApiClient
|
|
259
262
|
# * :test_results (Array<CandidApiClient::ServiceLines::V2::Types::TestResult>)
|
260
263
|
# * :has_epsdt_indicator (Boolean)
|
261
264
|
# * :has_family_planning_indicator (Boolean)
|
265
|
+
# * :note (String)
|
262
266
|
# @param request_options [CandidApiClient::RequestOptions]
|
263
267
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
|
264
268
|
# @example
|
@@ -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.
|
@@ -112,6 +114,8 @@ module CandidApiClient
|
|
112
114
|
# If the value is true, the box will be populated with "Y". Otherwise, the box
|
113
115
|
# will not be populated.
|
114
116
|
attr_reader :has_family_planning_indicator
|
117
|
+
# @return [String] Maps to NTE02 loop 2400 on the EDI 837.
|
118
|
+
attr_reader :note
|
115
119
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
116
120
|
attr_reader :additional_properties
|
117
121
|
# @return [Object]
|
@@ -151,6 +155,7 @@ module CandidApiClient
|
|
151
155
|
# @param service_line_id [String]
|
152
156
|
# @param procedure_code [String]
|
153
157
|
# @param ordering_provider [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
158
|
+
# @param revenue_code [String]
|
154
159
|
# @param quantity [String] String representation of a Decimal that can be parsed by most libraries.
|
155
160
|
# A ServiceLine quantity cannot contain more than one digit of precision.
|
156
161
|
# Example: 1.1 is valid, 1.11 is not.
|
@@ -172,10 +177,11 @@ module CandidApiClient
|
|
172
177
|
# @param has_family_planning_indicator [Boolean] Maps to SV1-12 on the 837-P and Box 24I on the CMS-1500.
|
173
178
|
# If the value is true, the box will be populated with "Y". Otherwise, the box
|
174
179
|
# will not be populated.
|
180
|
+
# @param note [String] Maps to NTE02 loop 2400 on the EDI 837.
|
175
181
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
176
182
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
|
177
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,
|
178
|
-
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, 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)
|
179
185
|
@created_at = created_at
|
180
186
|
@modifiers = modifiers if modifiers != OMIT
|
181
187
|
@charge_amount_cents = charge_amount_cents if charge_amount_cents != OMIT
|
@@ -209,6 +215,7 @@ module CandidApiClient
|
|
209
215
|
@service_line_id = service_line_id
|
210
216
|
@procedure_code = procedure_code
|
211
217
|
@ordering_provider = ordering_provider if ordering_provider != OMIT
|
218
|
+
@revenue_code = revenue_code if revenue_code != OMIT
|
212
219
|
@quantity = quantity
|
213
220
|
@units = units
|
214
221
|
@claim_id = claim_id
|
@@ -219,6 +226,7 @@ module CandidApiClient
|
|
219
226
|
@test_results = test_results if test_results != OMIT
|
220
227
|
@has_epsdt_indicator = has_epsdt_indicator if has_epsdt_indicator != OMIT
|
221
228
|
@has_family_planning_indicator = has_family_planning_indicator if has_family_planning_indicator != OMIT
|
229
|
+
@note = note if note != OMIT
|
222
230
|
@additional_properties = additional_properties
|
223
231
|
@_field_set = {
|
224
232
|
"created_at": created_at,
|
@@ -250,6 +258,7 @@ module CandidApiClient
|
|
250
258
|
"service_line_id": service_line_id,
|
251
259
|
"procedure_code": procedure_code,
|
252
260
|
"ordering_provider": ordering_provider,
|
261
|
+
"revenue_code": revenue_code,
|
253
262
|
"quantity": quantity,
|
254
263
|
"units": units,
|
255
264
|
"claim_id": claim_id,
|
@@ -259,7 +268,8 @@ module CandidApiClient
|
|
259
268
|
"end_date_of_service": end_date_of_service,
|
260
269
|
"test_results": test_results,
|
261
270
|
"has_epsdt_indicator": has_epsdt_indicator,
|
262
|
-
"has_family_planning_indicator": has_family_planning_indicator
|
271
|
+
"has_family_planning_indicator": has_family_planning_indicator,
|
272
|
+
"note": note
|
263
273
|
}.reject do |_k, v|
|
264
274
|
v == OMIT
|
265
275
|
end
|
@@ -330,6 +340,7 @@ module CandidApiClient
|
|
330
340
|
ordering_provider = parsed_json["ordering_provider"].to_json
|
331
341
|
ordering_provider = CandidApiClient::EncounterProviders::V2::Types::EncounterProvider.from_json(json_object: ordering_provider)
|
332
342
|
end
|
343
|
+
revenue_code = struct["revenue_code"]
|
333
344
|
quantity = struct["quantity"]
|
334
345
|
units = struct["units"]
|
335
346
|
claim_id = struct["claim_id"]
|
@@ -350,6 +361,7 @@ module CandidApiClient
|
|
350
361
|
end
|
351
362
|
has_epsdt_indicator = struct["has_epsdt_indicator"]
|
352
363
|
has_family_planning_indicator = struct["has_family_planning_indicator"]
|
364
|
+
note = struct["note"]
|
353
365
|
new(
|
354
366
|
created_at: created_at,
|
355
367
|
modifiers: modifiers,
|
@@ -380,6 +392,7 @@ module CandidApiClient
|
|
380
392
|
service_line_id: service_line_id,
|
381
393
|
procedure_code: procedure_code,
|
382
394
|
ordering_provider: ordering_provider,
|
395
|
+
revenue_code: revenue_code,
|
383
396
|
quantity: quantity,
|
384
397
|
units: units,
|
385
398
|
claim_id: claim_id,
|
@@ -390,6 +403,7 @@ module CandidApiClient
|
|
390
403
|
test_results: test_results,
|
391
404
|
has_epsdt_indicator: has_epsdt_indicator,
|
392
405
|
has_family_planning_indicator: has_family_planning_indicator,
|
406
|
+
note: note,
|
393
407
|
additional_properties: struct
|
394
408
|
)
|
395
409
|
end
|
@@ -437,6 +451,7 @@ module CandidApiClient
|
|
437
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.")
|
438
452
|
obj.procedure_code.is_a?(String) != false || raise("Passed value for field obj.procedure_code is not the expected type, validation failed.")
|
439
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.")
|
440
455
|
obj.quantity.is_a?(String) != false || raise("Passed value for field obj.quantity is not the expected type, validation failed.")
|
441
456
|
obj.units.is_a?(CandidApiClient::Commons::Types::ServiceLineUnits) != false || raise("Passed value for field obj.units is not the expected type, validation failed.")
|
442
457
|
obj.claim_id.is_a?(String) != false || raise("Passed value for field obj.claim_id is not the expected type, validation failed.")
|
@@ -447,6 +462,7 @@ module CandidApiClient
|
|
447
462
|
obj.test_results&.is_a?(Array) != false || raise("Passed value for field obj.test_results is not the expected type, validation failed.")
|
448
463
|
obj.has_epsdt_indicator&.is_a?(Boolean) != false || raise("Passed value for field obj.has_epsdt_indicator is not the expected type, validation failed.")
|
449
464
|
obj.has_family_planning_indicator&.is_a?(Boolean) != false || raise("Passed value for field obj.has_family_planning_indicator is not the expected type, validation failed.")
|
465
|
+
obj.note&.is_a?(String) != false || raise("Passed value for field obj.note is not the expected type, validation failed.")
|
450
466
|
end
|
451
467
|
end
|
452
468
|
end
|
@@ -63,6 +63,8 @@ module CandidApiClient
|
|
63
63
|
# 837-P (ex: Hemoglobin, Hematocrit).
|
64
64
|
# No more than 5 MEA-02 test results may be submitted per service line.
|
65
65
|
attr_reader :test_results
|
66
|
+
# @return [String] Maps to NTE02 loop 2400 on the EDI 837.
|
67
|
+
attr_reader :note
|
66
68
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
67
69
|
attr_reader :additional_properties
|
68
70
|
# @return [Object]
|
@@ -104,10 +106,11 @@ module CandidApiClient
|
|
104
106
|
# @param test_results [Array<CandidApiClient::ServiceLines::V2::Types::TestResult>] Contains a list of test results. Test result types may map to MEA-02 on the
|
105
107
|
# 837-P (ex: Hemoglobin, Hematocrit).
|
106
108
|
# No more than 5 MEA-02 test results may be submitted per service line.
|
109
|
+
# @param note [String] Maps to NTE02 loop 2400 on the EDI 837.
|
107
110
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
108
111
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate]
|
109
112
|
def initialize(procedure_code:, quantity:, units:, diagnosis_pointers:, modifiers: OMIT,
|
110
|
-
has_epsdt_indicator: OMIT, has_family_planning_indicator: OMIT, charge_amount_cents: OMIT, drug_identification: OMIT, place_of_service_code: OMIT, description: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, ordering_provider: OMIT, test_results: OMIT, additional_properties: nil)
|
113
|
+
has_epsdt_indicator: OMIT, has_family_planning_indicator: OMIT, charge_amount_cents: OMIT, drug_identification: OMIT, place_of_service_code: OMIT, description: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, ordering_provider: OMIT, test_results: OMIT, note: OMIT, additional_properties: nil)
|
111
114
|
@modifiers = modifiers if modifiers != OMIT
|
112
115
|
@has_epsdt_indicator = has_epsdt_indicator if has_epsdt_indicator != OMIT
|
113
116
|
@has_family_planning_indicator = has_family_planning_indicator if has_family_planning_indicator != OMIT
|
@@ -123,6 +126,7 @@ module CandidApiClient
|
|
123
126
|
@end_date_of_service = end_date_of_service if end_date_of_service != OMIT
|
124
127
|
@ordering_provider = ordering_provider if ordering_provider != OMIT
|
125
128
|
@test_results = test_results if test_results != OMIT
|
129
|
+
@note = note if note != OMIT
|
126
130
|
@additional_properties = additional_properties
|
127
131
|
@_field_set = {
|
128
132
|
"modifiers": modifiers,
|
@@ -139,7 +143,8 @@ module CandidApiClient
|
|
139
143
|
"date_of_service": date_of_service,
|
140
144
|
"end_date_of_service": end_date_of_service,
|
141
145
|
"ordering_provider": ordering_provider,
|
142
|
-
"test_results": test_results
|
146
|
+
"test_results": test_results,
|
147
|
+
"note": note
|
143
148
|
}.reject do |_k, v|
|
144
149
|
v == OMIT
|
145
150
|
end
|
@@ -182,6 +187,7 @@ module CandidApiClient
|
|
182
187
|
item = item.to_json
|
183
188
|
CandidApiClient::ServiceLines::V2::Types::TestResult.from_json(json_object: item)
|
184
189
|
end
|
190
|
+
note = struct["note"]
|
185
191
|
new(
|
186
192
|
modifiers: modifiers,
|
187
193
|
has_epsdt_indicator: has_epsdt_indicator,
|
@@ -198,6 +204,7 @@ module CandidApiClient
|
|
198
204
|
end_date_of_service: end_date_of_service,
|
199
205
|
ordering_provider: ordering_provider,
|
200
206
|
test_results: test_results,
|
207
|
+
note: note,
|
201
208
|
additional_properties: struct
|
202
209
|
)
|
203
210
|
end
|
@@ -231,6 +238,7 @@ module CandidApiClient
|
|
231
238
|
obj.end_date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.end_date_of_service is not the expected type, validation failed.")
|
232
239
|
obj.ordering_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::OrderingProvider.validate_raw(obj: obj.ordering_provider)
|
233
240
|
obj.test_results&.is_a?(Array) != false || raise("Passed value for field obj.test_results is not the expected type, validation failed.")
|
241
|
+
obj.note&.is_a?(String) != false || raise("Passed value for field obj.note is not the expected type, validation failed.")
|
234
242
|
end
|
235
243
|
end
|
236
244
|
end
|
@@ -63,6 +63,8 @@ module CandidApiClient
|
|
63
63
|
# 837-P (ex: Hemoglobin, Hematocrit).
|
64
64
|
# No more than 5 MEA-02 test results may be submitted per service line.
|
65
65
|
attr_reader :test_results
|
66
|
+
# @return [String] Maps to NTE02 loop 2400 on the EDI 837.
|
67
|
+
attr_reader :note
|
66
68
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
67
69
|
attr_reader :additional_properties
|
68
70
|
# @return [Object]
|
@@ -104,10 +106,11 @@ module CandidApiClient
|
|
104
106
|
# @param test_results [Array<CandidApiClient::ServiceLines::V2::Types::TestResultOptional>] Contains a list of test results. Test result types may map to MEA-02 on the
|
105
107
|
# 837-P (ex: Hemoglobin, Hematocrit).
|
106
108
|
# No more than 5 MEA-02 test results may be submitted per service line.
|
109
|
+
# @param note [String] Maps to NTE02 loop 2400 on the EDI 837.
|
107
110
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
108
111
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLineCreateOptional]
|
109
112
|
def initialize(modifiers: OMIT, has_epsdt_indicator: OMIT, has_family_planning_indicator: OMIT,
|
110
|
-
procedure_code: OMIT, quantity: OMIT, units: OMIT, charge_amount_cents: OMIT, diagnosis_pointers: OMIT, drug_identification: OMIT, place_of_service_code: OMIT, description: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, ordering_provider: OMIT, test_results: OMIT, additional_properties: nil)
|
113
|
+
procedure_code: OMIT, quantity: OMIT, units: OMIT, charge_amount_cents: OMIT, diagnosis_pointers: OMIT, drug_identification: OMIT, place_of_service_code: OMIT, description: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, ordering_provider: OMIT, test_results: OMIT, note: OMIT, additional_properties: nil)
|
111
114
|
@modifiers = modifiers if modifiers != OMIT
|
112
115
|
@has_epsdt_indicator = has_epsdt_indicator if has_epsdt_indicator != OMIT
|
113
116
|
@has_family_planning_indicator = has_family_planning_indicator if has_family_planning_indicator != OMIT
|
@@ -123,6 +126,7 @@ module CandidApiClient
|
|
123
126
|
@end_date_of_service = end_date_of_service if end_date_of_service != OMIT
|
124
127
|
@ordering_provider = ordering_provider if ordering_provider != OMIT
|
125
128
|
@test_results = test_results if test_results != OMIT
|
129
|
+
@note = note if note != OMIT
|
126
130
|
@additional_properties = additional_properties
|
127
131
|
@_field_set = {
|
128
132
|
"modifiers": modifiers,
|
@@ -139,7 +143,8 @@ module CandidApiClient
|
|
139
143
|
"date_of_service": date_of_service,
|
140
144
|
"end_date_of_service": end_date_of_service,
|
141
145
|
"ordering_provider": ordering_provider,
|
142
|
-
"test_results": test_results
|
146
|
+
"test_results": test_results,
|
147
|
+
"note": note
|
143
148
|
}.reject do |_k, v|
|
144
149
|
v == OMIT
|
145
150
|
end
|
@@ -182,6 +187,7 @@ module CandidApiClient
|
|
182
187
|
item = item.to_json
|
183
188
|
CandidApiClient::ServiceLines::V2::Types::TestResultOptional.from_json(json_object: item)
|
184
189
|
end
|
190
|
+
note = struct["note"]
|
185
191
|
new(
|
186
192
|
modifiers: modifiers,
|
187
193
|
has_epsdt_indicator: has_epsdt_indicator,
|
@@ -198,6 +204,7 @@ module CandidApiClient
|
|
198
204
|
end_date_of_service: end_date_of_service,
|
199
205
|
ordering_provider: ordering_provider,
|
200
206
|
test_results: test_results,
|
207
|
+
note: note,
|
201
208
|
additional_properties: struct
|
202
209
|
)
|
203
210
|
end
|
@@ -231,6 +238,7 @@ module CandidApiClient
|
|
231
238
|
obj.end_date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.end_date_of_service is not the expected type, validation failed.")
|
232
239
|
obj.ordering_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::OrderingProviderOptional.validate_raw(obj: obj.ordering_provider)
|
233
240
|
obj.test_results&.is_a?(Array) != false || raise("Passed value for field obj.test_results is not the expected type, validation failed.")
|
241
|
+
obj.note&.is_a?(String) != false || raise("Passed value for field obj.note is not the expected type, validation failed.")
|
234
242
|
end
|
235
243
|
end
|
236
244
|
end
|