candidhealth 1.7.0 → 1.8.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/candidhealth/auth/default/client.rb +34 -6
- data/lib/candidhealth/charge_capture/v_1/client.rb +119 -52
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +70 -56
- data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +33 -2
- data/lib/candidhealth/commons/types/clearinghouse.rb +18 -0
- data/lib/candidhealth/commons/types/procedure_modifier.rb +11 -0
- data/lib/candidhealth/encounter_providers/v_2/types/billing_provider.rb +1 -1
- data/lib/candidhealth/encounter_providers/v_2/types/billing_provider_update.rb +1 -1
- data/lib/candidhealth/encounter_providers/v_2/types/billing_provider_update_with_optional_address.rb +1 -1
- data/lib/candidhealth/encounters/v_4/client.rb +3269 -2040
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +111 -86
- data/lib/candidhealth/encounters/v_4/types/encounter_base.rb +39 -33
- data/lib/candidhealth/encounters/v_4/types/encounter_create.rb +796 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_create_from_pre_encounter.rb +131 -117
- data/lib/candidhealth/encounters/v_4/types/encounter_deep_optional.rb +70 -56
- data/lib/candidhealth/encounters/v_4/types/encounter_optional.rb +29 -39
- data/lib/candidhealth/encounters/v_4/types/encounter_rendering_or_attending_provider_required_error.rb +55 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_update.rb +736 -0
- data/lib/candidhealth/encounters_universal/types/universal_encounter_create.rb +944 -0
- data/lib/candidhealth/encounters_universal/types/universal_encounter_create_base.rb +691 -0
- data/lib/candidhealth/encounters_universal/types/universal_encounter_create_from_pre_encounter.rb +791 -0
- data/lib/candidhealth/encounters_universal/types/universal_encounter_create_from_pre_encounter_base.rb +572 -0
- data/lib/candidhealth/encounters_universal/types/universal_encounter_update.rb +872 -0
- data/lib/candidhealth/encounters_universal/types/universal_encounter_update_base.rb +700 -0
- data/lib/candidhealth/fee_schedules/v_3/client.rb +57 -0
- data/lib/candidhealth/fee_schedules/v_3/types/validation_error.rb +12 -0
- data/lib/candidhealth/financials/types/patient_transaction_source.rb +1 -0
- data/lib/candidhealth/guarantor/v_1/client.rb +4 -0
- data/lib/candidhealth/guarantor/v_1/types/guarantor.rb +10 -2
- data/lib/candidhealth/guarantor/v_1/types/guarantor_create.rb +10 -2
- data/lib/candidhealth/guarantor/v_1/types/guarantor_optional.rb +10 -2
- data/lib/candidhealth/guarantor/v_1/types/guarantor_update.rb +10 -2
- data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis_new.rb +206 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/condition_information_new.rb +207 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group_new.rb +206 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury_new.rb +245 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_create.rb +225 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information_new.rb +219 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information_new.rb +222 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information_new.rb +215 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information_new.rb +218 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit_new.rb +206 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis_new.rb +215 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information_new.rb +216 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information_new.rb +206 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/value_information_new.rb +215 -0
- data/lib/candidhealth/individual/types/patient.rb +16 -8
- data/lib/candidhealth/individual/types/patient_base.rb +6 -6
- data/lib/candidhealth/individual/types/patient_create.rb +15 -7
- data/lib/candidhealth/individual/types/patient_update.rb +15 -7
- data/lib/candidhealth/individual/types/patient_update_with_optional_address.rb +15 -7
- data/lib/candidhealth/organization_providers/v_2/types/license_type.rb +2 -0
- data/lib/candidhealth/payers/client.rb +7 -0
- data/lib/candidhealth/payers/v_4/client.rb +137 -0
- data/lib/candidhealth/payers/v_4/types/clearinghouse_payer_info.rb +127 -0
- data/lib/candidhealth/payers/v_4/types/payer.rb +116 -0
- data/lib/candidhealth/payers/v_4/types/payer_ids.rb +84 -0
- data/lib/candidhealth/payers/v_4/types/payer_page.rb +88 -0
- data/lib/candidhealth/payers/v_4/types/primary_payer_ids.rb +84 -0
- data/lib/candidhealth/payers/v_4/types/support_state.rb +15 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +4 -4
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/subscriber.rb +3 -3
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +72 -6
- data/lib/candidhealth/pre_encounter/patients/v_1/types/guarantor.rb +3 -3
- data/lib/candidhealth/pre_encounter/patients/v_1/types/inferred_patient_metadata.rb +80 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +19 -5
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +19 -5
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +18 -4
- data/lib/candidhealth/pre_encounter/patients/v_1/types/referral_type.rb +1 -0
- data/lib/candidhealth/service_lines/v_2/client.rb +252 -10
- data/lib/candidhealth/service_lines/v_2/types/service_line.rb +28 -10
- data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +52 -40
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_base.rb +251 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_base_base.rb +243 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_optional.rb +48 -24
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb +58 -46
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone_base.rb +273 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone_base_base.rb +265 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_update.rb +64 -54
- data/lib/candidhealth/service_lines/v_2/types/service_line_update_base.rb +263 -0
- data/lib/candidhealth/service_lines/v_2/types/universal_service_line_create.rb +271 -0
- data/lib/candidhealth/service_lines/v_2/types/universal_service_line_create_standalone.rb +317 -0
- data/lib/candidhealth/service_lines/v_2/types/universal_service_line_update.rb +307 -0
- data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite.rb +2 -2
- data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite_base.rb +90 -0
- data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite_update.rb +112 -0
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +45 -4
- metadata +44 -2
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "value_code_qualifier"
|
|
4
|
+
require_relative "value_code"
|
|
5
|
+
require_relative "code_list_qualifier_code"
|
|
6
|
+
require_relative "date_time_period_format_qualifier"
|
|
7
|
+
require "ostruct"
|
|
8
|
+
require "json"
|
|
9
|
+
|
|
10
|
+
module CandidApiClient
|
|
11
|
+
module HealthCareCodeInformation
|
|
12
|
+
module V1
|
|
13
|
+
module Types
|
|
14
|
+
# This corresponds to the BE code qualifier value.
|
|
15
|
+
class ValueInformationNew
|
|
16
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::ValueCodeQualifier]
|
|
17
|
+
attr_reader :value_code_qualifier
|
|
18
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::ValueCode]
|
|
19
|
+
attr_reader :value_code
|
|
20
|
+
# @return [String]
|
|
21
|
+
attr_reader :value_code_amount
|
|
22
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
|
|
23
|
+
attr_reader :code_list_qualifier
|
|
24
|
+
# @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
|
25
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
|
26
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
|
27
|
+
# reporting.
|
|
28
|
+
attr_reader :industry_code_1
|
|
29
|
+
# @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
|
30
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
|
31
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
|
32
|
+
# reporting.
|
|
33
|
+
attr_reader :industry_code_2
|
|
34
|
+
# @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
|
35
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
|
36
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
|
37
|
+
# reporting.
|
|
38
|
+
attr_reader :industry_code_3
|
|
39
|
+
# @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
|
40
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
|
41
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
|
42
|
+
# reporting.
|
|
43
|
+
attr_reader :industry_code_4
|
|
44
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
|
|
45
|
+
# as part of claim process.
|
|
46
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
|
47
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
|
48
|
+
# reporting.
|
|
49
|
+
attr_reader :date_time_period_format_qualifier
|
|
50
|
+
# @return [String] A string, formatted according to date_time_period_format_qualifier, which
|
|
51
|
+
# ultimately represents the date time period in which an information object
|
|
52
|
+
# is covering.
|
|
53
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
|
54
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
|
55
|
+
# reporting.
|
|
56
|
+
attr_reader :date_time_period
|
|
57
|
+
# @return [String] A decimal used to represent ValueInformation results.
|
|
58
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
|
59
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
|
60
|
+
# reporting.
|
|
61
|
+
attr_reader :monetary_amount
|
|
62
|
+
# @return [String] You do not need to set this field generally, instead it is provided as advisory
|
|
63
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
|
64
|
+
# reporting.
|
|
65
|
+
attr_reader :quantity
|
|
66
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
67
|
+
attr_reader :additional_properties
|
|
68
|
+
# @return [Object]
|
|
69
|
+
attr_reader :_field_set
|
|
70
|
+
protected :_field_set
|
|
71
|
+
|
|
72
|
+
OMIT = Object.new
|
|
73
|
+
|
|
74
|
+
# @param value_code_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::ValueCodeQualifier]
|
|
75
|
+
# @param value_code [CandidApiClient::HealthCareCodeInformation::V1::Types::ValueCode]
|
|
76
|
+
# @param value_code_amount [String]
|
|
77
|
+
# @param code_list_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
|
|
78
|
+
# @param industry_code_1 [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
|
79
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
|
80
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
|
81
|
+
# reporting.
|
|
82
|
+
# @param industry_code_2 [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
|
83
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
|
84
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
|
85
|
+
# reporting.
|
|
86
|
+
# @param industry_code_3 [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
|
87
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
|
88
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
|
89
|
+
# reporting.
|
|
90
|
+
# @param industry_code_4 [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
|
91
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
|
92
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
|
93
|
+
# reporting.
|
|
94
|
+
# @param date_time_period_format_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
|
|
95
|
+
# as part of claim process.
|
|
96
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
|
97
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
|
98
|
+
# reporting.
|
|
99
|
+
# @param date_time_period [String] A string, formatted according to date_time_period_format_qualifier, which
|
|
100
|
+
# ultimately represents the date time period in which an information object
|
|
101
|
+
# is covering.
|
|
102
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
|
103
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
|
104
|
+
# reporting.
|
|
105
|
+
# @param monetary_amount [String] A decimal used to represent ValueInformation results.
|
|
106
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
|
107
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
|
108
|
+
# reporting.
|
|
109
|
+
# @param quantity [String] You do not need to set this field generally, instead it is provided as advisory
|
|
110
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
|
111
|
+
# reporting.
|
|
112
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
113
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::ValueInformationNew]
|
|
114
|
+
def initialize(value_code_qualifier:, value_code:, value_code_amount:, code_list_qualifier: OMIT,
|
|
115
|
+
industry_code_1: OMIT, industry_code_2: OMIT, industry_code_3: OMIT, industry_code_4: OMIT, date_time_period_format_qualifier: OMIT, date_time_period: OMIT, monetary_amount: OMIT, quantity: OMIT, additional_properties: nil)
|
|
116
|
+
@value_code_qualifier = value_code_qualifier
|
|
117
|
+
@value_code = value_code
|
|
118
|
+
@value_code_amount = value_code_amount
|
|
119
|
+
@code_list_qualifier = code_list_qualifier if code_list_qualifier != OMIT
|
|
120
|
+
@industry_code_1 = industry_code_1 if industry_code_1 != OMIT
|
|
121
|
+
@industry_code_2 = industry_code_2 if industry_code_2 != OMIT
|
|
122
|
+
@industry_code_3 = industry_code_3 if industry_code_3 != OMIT
|
|
123
|
+
@industry_code_4 = industry_code_4 if industry_code_4 != OMIT
|
|
124
|
+
if date_time_period_format_qualifier != OMIT
|
|
125
|
+
@date_time_period_format_qualifier = date_time_period_format_qualifier
|
|
126
|
+
end
|
|
127
|
+
@date_time_period = date_time_period if date_time_period != OMIT
|
|
128
|
+
@monetary_amount = monetary_amount if monetary_amount != OMIT
|
|
129
|
+
@quantity = quantity if quantity != OMIT
|
|
130
|
+
@additional_properties = additional_properties
|
|
131
|
+
@_field_set = {
|
|
132
|
+
"value_code_qualifier": value_code_qualifier,
|
|
133
|
+
"value_code": value_code,
|
|
134
|
+
"value_code_amount": value_code_amount,
|
|
135
|
+
"code_list_qualifier": code_list_qualifier,
|
|
136
|
+
"industry_code_1": industry_code_1,
|
|
137
|
+
"industry_code_2": industry_code_2,
|
|
138
|
+
"industry_code_3": industry_code_3,
|
|
139
|
+
"industry_code_4": industry_code_4,
|
|
140
|
+
"date_time_period_format_qualifier": date_time_period_format_qualifier,
|
|
141
|
+
"date_time_period": date_time_period,
|
|
142
|
+
"monetary_amount": monetary_amount,
|
|
143
|
+
"quantity": quantity
|
|
144
|
+
}.reject do |_k, v|
|
|
145
|
+
v == OMIT
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Deserialize a JSON object to an instance of ValueInformationNew
|
|
150
|
+
#
|
|
151
|
+
# @param json_object [String]
|
|
152
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::ValueInformationNew]
|
|
153
|
+
def self.from_json(json_object:)
|
|
154
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
155
|
+
value_code_qualifier = struct["value_code_qualifier"]
|
|
156
|
+
value_code = struct["value_code"]
|
|
157
|
+
value_code_amount = struct["value_code_amount"]
|
|
158
|
+
code_list_qualifier = struct["code_list_qualifier"]
|
|
159
|
+
industry_code_1 = struct["industry_code_1"]
|
|
160
|
+
industry_code_2 = struct["industry_code_2"]
|
|
161
|
+
industry_code_3 = struct["industry_code_3"]
|
|
162
|
+
industry_code_4 = struct["industry_code_4"]
|
|
163
|
+
date_time_period_format_qualifier = struct["date_time_period_format_qualifier"]
|
|
164
|
+
date_time_period = struct["date_time_period"]
|
|
165
|
+
monetary_amount = struct["monetary_amount"]
|
|
166
|
+
quantity = struct["quantity"]
|
|
167
|
+
new(
|
|
168
|
+
value_code_qualifier: value_code_qualifier,
|
|
169
|
+
value_code: value_code,
|
|
170
|
+
value_code_amount: value_code_amount,
|
|
171
|
+
code_list_qualifier: code_list_qualifier,
|
|
172
|
+
industry_code_1: industry_code_1,
|
|
173
|
+
industry_code_2: industry_code_2,
|
|
174
|
+
industry_code_3: industry_code_3,
|
|
175
|
+
industry_code_4: industry_code_4,
|
|
176
|
+
date_time_period_format_qualifier: date_time_period_format_qualifier,
|
|
177
|
+
date_time_period: date_time_period,
|
|
178
|
+
monetary_amount: monetary_amount,
|
|
179
|
+
quantity: quantity,
|
|
180
|
+
additional_properties: struct
|
|
181
|
+
)
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# Serialize an instance of ValueInformationNew to a JSON object
|
|
185
|
+
#
|
|
186
|
+
# @return [String]
|
|
187
|
+
def to_json(*_args)
|
|
188
|
+
@_field_set&.to_json
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
|
192
|
+
# hash and check each fields type against the current object's property
|
|
193
|
+
# definitions.
|
|
194
|
+
#
|
|
195
|
+
# @param obj [Object]
|
|
196
|
+
# @return [Void]
|
|
197
|
+
def self.validate_raw(obj:)
|
|
198
|
+
obj.value_code_qualifier.is_a?(CandidApiClient::HealthCareCodeInformation::V1::Types::ValueCodeQualifier) != false || raise("Passed value for field obj.value_code_qualifier is not the expected type, validation failed.")
|
|
199
|
+
obj.value_code.is_a?(CandidApiClient::HealthCareCodeInformation::V1::Types::ValueCode) != false || raise("Passed value for field obj.value_code is not the expected type, validation failed.")
|
|
200
|
+
obj.value_code_amount.is_a?(String) != false || raise("Passed value for field obj.value_code_amount is not the expected type, validation failed.")
|
|
201
|
+
obj.code_list_qualifier&.is_a?(CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode) != false || raise("Passed value for field obj.code_list_qualifier is not the expected type, validation failed.")
|
|
202
|
+
obj.industry_code_1&.is_a?(String) != false || raise("Passed value for field obj.industry_code_1 is not the expected type, validation failed.")
|
|
203
|
+
obj.industry_code_2&.is_a?(String) != false || raise("Passed value for field obj.industry_code_2 is not the expected type, validation failed.")
|
|
204
|
+
obj.industry_code_3&.is_a?(String) != false || raise("Passed value for field obj.industry_code_3 is not the expected type, validation failed.")
|
|
205
|
+
obj.industry_code_4&.is_a?(String) != false || raise("Passed value for field obj.industry_code_4 is not the expected type, validation failed.")
|
|
206
|
+
obj.date_time_period_format_qualifier&.is_a?(CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier) != false || raise("Passed value for field obj.date_time_period_format_qualifier is not the expected type, validation failed.")
|
|
207
|
+
obj.date_time_period&.is_a?(String) != false || raise("Passed value for field obj.date_time_period is not the expected type, validation failed.")
|
|
208
|
+
obj.monetary_amount&.is_a?(String) != false || raise("Passed value for field obj.monetary_amount is not the expected type, validation failed.")
|
|
209
|
+
obj.quantity&.is_a?(String) != false || raise("Passed value for field obj.quantity is not the expected type, validation failed.")
|
|
210
|
+
end
|
|
211
|
+
end
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
end
|
|
215
|
+
end
|
|
@@ -23,6 +23,8 @@ module CandidApiClient
|
|
|
23
23
|
attr_reader :email
|
|
24
24
|
# @return [Boolean]
|
|
25
25
|
attr_reader :email_consent
|
|
26
|
+
# @return [Boolean]
|
|
27
|
+
attr_reader :auto_charge_consent
|
|
26
28
|
# @return [Array<CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer>]
|
|
27
29
|
attr_reader :non_insurance_payers
|
|
28
30
|
# @return [Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfo>]
|
|
@@ -30,10 +32,10 @@ module CandidApiClient
|
|
|
30
32
|
# @return [String] The ID used to identify this individual in your system. For example, your
|
|
31
33
|
# internal patient ID or an EHR patient ID.
|
|
32
34
|
attr_reader :external_id
|
|
33
|
-
# @return [Date] Box 3 on the CMS-1500 claim form
|
|
34
|
-
# formatted YYYY-MM-DD (i.e. 2012-02-01)
|
|
35
|
+
# @return [Date] Box 3 on the CMS-1500 claim form or Form Locator 10 on a UB-04 claim form. The
|
|
36
|
+
# date format should be in ISO 8601 date; formatted YYYY-MM-DD (i.e. 2012-02-01)
|
|
35
37
|
attr_reader :date_of_birth
|
|
36
|
-
# @return [CandidApiClient::Commons::Types::StreetAddressShortZip] Box 5 on the CMS-1500 claim form.
|
|
38
|
+
# @return [CandidApiClient::Commons::Types::StreetAddressShortZip] Box 5 on the CMS-1500 claim form or Form Locator 9 on a UB-04 claim form.
|
|
37
39
|
attr_reader :address
|
|
38
40
|
# @return [String]
|
|
39
41
|
attr_reader :first_name
|
|
@@ -54,25 +56,27 @@ module CandidApiClient
|
|
|
54
56
|
# @param phone_consent [Boolean]
|
|
55
57
|
# @param email [String]
|
|
56
58
|
# @param email_consent [Boolean]
|
|
59
|
+
# @param auto_charge_consent [Boolean]
|
|
57
60
|
# @param non_insurance_payers [Array<CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer>]
|
|
58
61
|
# @param non_insurance_payers_info [Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfo>]
|
|
59
62
|
# @param external_id [String] The ID used to identify this individual in your system. For example, your
|
|
60
63
|
# internal patient ID or an EHR patient ID.
|
|
61
|
-
# @param date_of_birth [Date] Box 3 on the CMS-1500 claim form
|
|
62
|
-
# formatted YYYY-MM-DD (i.e. 2012-02-01)
|
|
63
|
-
# @param address [CandidApiClient::Commons::Types::StreetAddressShortZip] Box 5 on the CMS-1500 claim form.
|
|
64
|
+
# @param date_of_birth [Date] Box 3 on the CMS-1500 claim form or Form Locator 10 on a UB-04 claim form. The
|
|
65
|
+
# date format should be in ISO 8601 date; formatted YYYY-MM-DD (i.e. 2012-02-01)
|
|
66
|
+
# @param address [CandidApiClient::Commons::Types::StreetAddressShortZip] Box 5 on the CMS-1500 claim form or Form Locator 9 on a UB-04 claim form.
|
|
64
67
|
# @param first_name [String]
|
|
65
68
|
# @param last_name [String]
|
|
66
69
|
# @param gender [CandidApiClient::Individual::Types::Gender]
|
|
67
70
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
68
71
|
# @return [CandidApiClient::Individual::Types::Patient]
|
|
69
|
-
def initialize(individual_id:, phone_numbers:, phone_consent:, email_consent:, non_insurance_payers:,
|
|
70
|
-
|
|
72
|
+
def initialize(individual_id:, phone_numbers:, phone_consent:, email_consent:, non_insurance_payers:, non_insurance_payers_info:, external_id:, date_of_birth:, address:, first_name:, last_name:, gender:, email: OMIT,
|
|
73
|
+
auto_charge_consent: OMIT, additional_properties: nil)
|
|
71
74
|
@individual_id = individual_id
|
|
72
75
|
@phone_numbers = phone_numbers
|
|
73
76
|
@phone_consent = phone_consent
|
|
74
77
|
@email = email if email != OMIT
|
|
75
78
|
@email_consent = email_consent
|
|
79
|
+
@auto_charge_consent = auto_charge_consent if auto_charge_consent != OMIT
|
|
76
80
|
@non_insurance_payers = non_insurance_payers
|
|
77
81
|
@non_insurance_payers_info = non_insurance_payers_info
|
|
78
82
|
@external_id = external_id
|
|
@@ -88,6 +92,7 @@ module CandidApiClient
|
|
|
88
92
|
"phone_consent": phone_consent,
|
|
89
93
|
"email": email,
|
|
90
94
|
"email_consent": email_consent,
|
|
95
|
+
"auto_charge_consent": auto_charge_consent,
|
|
91
96
|
"non_insurance_payers": non_insurance_payers,
|
|
92
97
|
"non_insurance_payers_info": non_insurance_payers_info,
|
|
93
98
|
"external_id": external_id,
|
|
@@ -116,6 +121,7 @@ module CandidApiClient
|
|
|
116
121
|
phone_consent = struct["phone_consent"]
|
|
117
122
|
email = struct["email"]
|
|
118
123
|
email_consent = struct["email_consent"]
|
|
124
|
+
auto_charge_consent = struct["auto_charge_consent"]
|
|
119
125
|
non_insurance_payers = parsed_json["non_insurance_payers"]&.map do |item|
|
|
120
126
|
item = item.to_json
|
|
121
127
|
CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer.from_json(json_object: item)
|
|
@@ -141,6 +147,7 @@ module CandidApiClient
|
|
|
141
147
|
phone_consent: phone_consent,
|
|
142
148
|
email: email,
|
|
143
149
|
email_consent: email_consent,
|
|
150
|
+
auto_charge_consent: auto_charge_consent,
|
|
144
151
|
non_insurance_payers: non_insurance_payers,
|
|
145
152
|
non_insurance_payers_info: non_insurance_payers_info,
|
|
146
153
|
external_id: external_id,
|
|
@@ -172,6 +179,7 @@ module CandidApiClient
|
|
|
172
179
|
obj.phone_consent.is_a?(Boolean) != false || raise("Passed value for field obj.phone_consent is not the expected type, validation failed.")
|
|
173
180
|
obj.email&.is_a?(String) != false || raise("Passed value for field obj.email is not the expected type, validation failed.")
|
|
174
181
|
obj.email_consent.is_a?(Boolean) != false || raise("Passed value for field obj.email_consent is not the expected type, validation failed.")
|
|
182
|
+
obj.auto_charge_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.auto_charge_consent is not the expected type, validation failed.")
|
|
175
183
|
obj.non_insurance_payers.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers is not the expected type, validation failed.")
|
|
176
184
|
obj.non_insurance_payers_info.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers_info is not the expected type, validation failed.")
|
|
177
185
|
obj.external_id.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
|
|
@@ -13,10 +13,10 @@ module CandidApiClient
|
|
|
13
13
|
# @return [String] The ID used to identify this individual in your system. For example, your
|
|
14
14
|
# internal patient ID or an EHR patient ID.
|
|
15
15
|
attr_reader :external_id
|
|
16
|
-
# @return [Date] Box 3 on the CMS-1500 claim form
|
|
17
|
-
# formatted YYYY-MM-DD (i.e. 2012-02-01)
|
|
16
|
+
# @return [Date] Box 3 on the CMS-1500 claim form or Form Locator 10 on a UB-04 claim form. The
|
|
17
|
+
# date format should be in ISO 8601 date; formatted YYYY-MM-DD (i.e. 2012-02-01)
|
|
18
18
|
attr_reader :date_of_birth
|
|
19
|
-
# @return [CandidApiClient::Commons::Types::StreetAddressShortZip] Box 5 on the CMS-1500 claim form.
|
|
19
|
+
# @return [CandidApiClient::Commons::Types::StreetAddressShortZip] Box 5 on the CMS-1500 claim form or Form Locator 9 on a UB-04 claim form.
|
|
20
20
|
attr_reader :address
|
|
21
21
|
# @return [String]
|
|
22
22
|
attr_reader :first_name
|
|
@@ -34,9 +34,9 @@ module CandidApiClient
|
|
|
34
34
|
|
|
35
35
|
# @param external_id [String] The ID used to identify this individual in your system. For example, your
|
|
36
36
|
# internal patient ID or an EHR patient ID.
|
|
37
|
-
# @param date_of_birth [Date] Box 3 on the CMS-1500 claim form
|
|
38
|
-
# formatted YYYY-MM-DD (i.e. 2012-02-01)
|
|
39
|
-
# @param address [CandidApiClient::Commons::Types::StreetAddressShortZip] Box 5 on the CMS-1500 claim form.
|
|
37
|
+
# @param date_of_birth [Date] Box 3 on the CMS-1500 claim form or Form Locator 10 on a UB-04 claim form. The
|
|
38
|
+
# date format should be in ISO 8601 date; formatted YYYY-MM-DD (i.e. 2012-02-01)
|
|
39
|
+
# @param address [CandidApiClient::Commons::Types::StreetAddressShortZip] Box 5 on the CMS-1500 claim form or Form Locator 9 on a UB-04 claim form.
|
|
40
40
|
# @param first_name [String]
|
|
41
41
|
# @param last_name [String]
|
|
42
42
|
# @param gender [CandidApiClient::Individual::Types::Gender]
|
|
@@ -24,13 +24,15 @@ module CandidApiClient
|
|
|
24
24
|
attr_reader :non_insurance_payers_info
|
|
25
25
|
# @return [Boolean] Defaults to false
|
|
26
26
|
attr_reader :email_consent
|
|
27
|
+
# @return [Boolean] Defaults to false
|
|
28
|
+
attr_reader :auto_charge_consent
|
|
27
29
|
# @return [String] The ID used to identify this individual in your system. For example, your
|
|
28
30
|
# internal patient ID or an EHR patient ID.
|
|
29
31
|
attr_reader :external_id
|
|
30
|
-
# @return [Date] Box 3 on the CMS-1500 claim form
|
|
31
|
-
# formatted YYYY-MM-DD (i.e. 2012-02-01)
|
|
32
|
+
# @return [Date] Box 3 on the CMS-1500 claim form or Form Locator 10 on a UB-04 claim form. The
|
|
33
|
+
# date format should be in ISO 8601 date; formatted YYYY-MM-DD (i.e. 2012-02-01)
|
|
32
34
|
attr_reader :date_of_birth
|
|
33
|
-
# @return [CandidApiClient::Commons::Types::StreetAddressShortZip] Box 5 on the CMS-1500 claim form.
|
|
35
|
+
# @return [CandidApiClient::Commons::Types::StreetAddressShortZip] Box 5 on the CMS-1500 claim form or Form Locator 9 on a UB-04 claim form.
|
|
34
36
|
attr_reader :address
|
|
35
37
|
# @return [String]
|
|
36
38
|
attr_reader :first_name
|
|
@@ -52,24 +54,26 @@ module CandidApiClient
|
|
|
52
54
|
# @param non_insurance_payers [Array<String>]
|
|
53
55
|
# @param non_insurance_payers_info [Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>]
|
|
54
56
|
# @param email_consent [Boolean] Defaults to false
|
|
57
|
+
# @param auto_charge_consent [Boolean] Defaults to false
|
|
55
58
|
# @param external_id [String] The ID used to identify this individual in your system. For example, your
|
|
56
59
|
# internal patient ID or an EHR patient ID.
|
|
57
|
-
# @param date_of_birth [Date] Box 3 on the CMS-1500 claim form
|
|
58
|
-
# formatted YYYY-MM-DD (i.e. 2012-02-01)
|
|
59
|
-
# @param address [CandidApiClient::Commons::Types::StreetAddressShortZip] Box 5 on the CMS-1500 claim form.
|
|
60
|
+
# @param date_of_birth [Date] Box 3 on the CMS-1500 claim form or Form Locator 10 on a UB-04 claim form. The
|
|
61
|
+
# date format should be in ISO 8601 date; formatted YYYY-MM-DD (i.e. 2012-02-01)
|
|
62
|
+
# @param address [CandidApiClient::Commons::Types::StreetAddressShortZip] Box 5 on the CMS-1500 claim form or Form Locator 9 on a UB-04 claim form.
|
|
60
63
|
# @param first_name [String]
|
|
61
64
|
# @param last_name [String]
|
|
62
65
|
# @param gender [CandidApiClient::Individual::Types::Gender]
|
|
63
66
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
64
67
|
# @return [CandidApiClient::Individual::Types::PatientCreate]
|
|
65
68
|
def initialize(external_id:, date_of_birth:, address:, first_name:, last_name:, gender:, phone_numbers: OMIT, phone_consent: OMIT, email: OMIT, non_insurance_payers: OMIT,
|
|
66
|
-
non_insurance_payers_info: OMIT, email_consent: OMIT, additional_properties: nil)
|
|
69
|
+
non_insurance_payers_info: OMIT, email_consent: OMIT, auto_charge_consent: OMIT, additional_properties: nil)
|
|
67
70
|
@phone_numbers = phone_numbers if phone_numbers != OMIT
|
|
68
71
|
@phone_consent = phone_consent if phone_consent != OMIT
|
|
69
72
|
@email = email if email != OMIT
|
|
70
73
|
@non_insurance_payers = non_insurance_payers if non_insurance_payers != OMIT
|
|
71
74
|
@non_insurance_payers_info = non_insurance_payers_info if non_insurance_payers_info != OMIT
|
|
72
75
|
@email_consent = email_consent if email_consent != OMIT
|
|
76
|
+
@auto_charge_consent = auto_charge_consent if auto_charge_consent != OMIT
|
|
73
77
|
@external_id = external_id
|
|
74
78
|
@date_of_birth = date_of_birth
|
|
75
79
|
@address = address
|
|
@@ -84,6 +88,7 @@ module CandidApiClient
|
|
|
84
88
|
"non_insurance_payers": non_insurance_payers,
|
|
85
89
|
"non_insurance_payers_info": non_insurance_payers_info,
|
|
86
90
|
"email_consent": email_consent,
|
|
91
|
+
"auto_charge_consent": auto_charge_consent,
|
|
87
92
|
"external_id": external_id,
|
|
88
93
|
"date_of_birth": date_of_birth,
|
|
89
94
|
"address": address,
|
|
@@ -114,6 +119,7 @@ module CandidApiClient
|
|
|
114
119
|
CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate.from_json(json_object: item)
|
|
115
120
|
end
|
|
116
121
|
email_consent = struct["email_consent"]
|
|
122
|
+
auto_charge_consent = struct["auto_charge_consent"]
|
|
117
123
|
external_id = struct["external_id"]
|
|
118
124
|
date_of_birth = (Date.parse(parsed_json["date_of_birth"]) unless parsed_json["date_of_birth"].nil?)
|
|
119
125
|
if parsed_json["address"].nil?
|
|
@@ -132,6 +138,7 @@ module CandidApiClient
|
|
|
132
138
|
non_insurance_payers: non_insurance_payers,
|
|
133
139
|
non_insurance_payers_info: non_insurance_payers_info,
|
|
134
140
|
email_consent: email_consent,
|
|
141
|
+
auto_charge_consent: auto_charge_consent,
|
|
135
142
|
external_id: external_id,
|
|
136
143
|
date_of_birth: date_of_birth,
|
|
137
144
|
address: address,
|
|
@@ -162,6 +169,7 @@ module CandidApiClient
|
|
|
162
169
|
obj.non_insurance_payers&.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers is not the expected type, validation failed.")
|
|
163
170
|
obj.non_insurance_payers_info&.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers_info is not the expected type, validation failed.")
|
|
164
171
|
obj.email_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.email_consent is not the expected type, validation failed.")
|
|
172
|
+
obj.auto_charge_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.auto_charge_consent is not the expected type, validation failed.")
|
|
165
173
|
obj.external_id.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
|
|
166
174
|
obj.date_of_birth.is_a?(Date) != false || raise("Passed value for field obj.date_of_birth is not the expected type, validation failed.")
|
|
167
175
|
CandidApiClient::Commons::Types::StreetAddressShortZip.validate_raw(obj: obj.address)
|
|
@@ -21,10 +21,10 @@ module CandidApiClient
|
|
|
21
21
|
# @return [String] The ID used to identify this individual in your system. For example, your
|
|
22
22
|
# internal patient ID or an EHR patient ID.
|
|
23
23
|
attr_reader :external_id
|
|
24
|
-
# @return [Date] Box 3 on the CMS-1500 claim form
|
|
25
|
-
# formatted YYYY-MM-DD (i.e. 2012-02-01)
|
|
24
|
+
# @return [Date] Box 3 on the CMS-1500 claim form or Form Locator 10 on a UB-04 claim form. The
|
|
25
|
+
# date format should be in ISO 8601 date; formatted YYYY-MM-DD (i.e. 2012-02-01)
|
|
26
26
|
attr_reader :date_of_birth
|
|
27
|
-
# @return [CandidApiClient::Commons::Types::StreetAddressShortZip] Box 5 on the CMS-1500 claim form.
|
|
27
|
+
# @return [CandidApiClient::Commons::Types::StreetAddressShortZip] Box 5 on the CMS-1500 claim form or Form Locator 9 on a UB-04 claim form.
|
|
28
28
|
attr_reader :address
|
|
29
29
|
# @return [Array<CandidApiClient::Commons::Types::PhoneNumber>]
|
|
30
30
|
attr_reader :phone_numbers
|
|
@@ -34,6 +34,8 @@ module CandidApiClient
|
|
|
34
34
|
attr_reader :email
|
|
35
35
|
# @return [Boolean]
|
|
36
36
|
attr_reader :email_consent
|
|
37
|
+
# @return [Boolean]
|
|
38
|
+
attr_reader :auto_charge_consent
|
|
37
39
|
# @return [Array<String>] On update, we will replace the existing list of non-insurance payers with the
|
|
38
40
|
# new list if populated.
|
|
39
41
|
attr_reader :non_insurance_payers
|
|
@@ -53,13 +55,14 @@ module CandidApiClient
|
|
|
53
55
|
# @param gender [CandidApiClient::Individual::Types::Gender]
|
|
54
56
|
# @param external_id [String] The ID used to identify this individual in your system. For example, your
|
|
55
57
|
# internal patient ID or an EHR patient ID.
|
|
56
|
-
# @param date_of_birth [Date] Box 3 on the CMS-1500 claim form
|
|
57
|
-
# formatted YYYY-MM-DD (i.e. 2012-02-01)
|
|
58
|
-
# @param address [CandidApiClient::Commons::Types::StreetAddressShortZip] Box 5 on the CMS-1500 claim form.
|
|
58
|
+
# @param date_of_birth [Date] Box 3 on the CMS-1500 claim form or Form Locator 10 on a UB-04 claim form. The
|
|
59
|
+
# date format should be in ISO 8601 date; formatted YYYY-MM-DD (i.e. 2012-02-01)
|
|
60
|
+
# @param address [CandidApiClient::Commons::Types::StreetAddressShortZip] Box 5 on the CMS-1500 claim form or Form Locator 9 on a UB-04 claim form.
|
|
59
61
|
# @param phone_numbers [Array<CandidApiClient::Commons::Types::PhoneNumber>]
|
|
60
62
|
# @param phone_consent [Boolean]
|
|
61
63
|
# @param email [String]
|
|
62
64
|
# @param email_consent [Boolean]
|
|
65
|
+
# @param auto_charge_consent [Boolean]
|
|
63
66
|
# @param non_insurance_payers [Array<String>] On update, we will replace the existing list of non-insurance payers with the
|
|
64
67
|
# new list if populated.
|
|
65
68
|
# @param non_insurance_payers_info [Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>] On update, we will replace the existing list of non-insurance payers with the
|
|
@@ -67,7 +70,7 @@ module CandidApiClient
|
|
|
67
70
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
68
71
|
# @return [CandidApiClient::Individual::Types::PatientUpdate]
|
|
69
72
|
def initialize(first_name: OMIT, last_name: OMIT, gender: OMIT, external_id: OMIT, date_of_birth: OMIT,
|
|
70
|
-
address: OMIT, phone_numbers: OMIT, phone_consent: OMIT, email: OMIT, email_consent: OMIT, non_insurance_payers: OMIT, non_insurance_payers_info: OMIT, additional_properties: nil)
|
|
73
|
+
address: OMIT, phone_numbers: OMIT, phone_consent: OMIT, email: OMIT, email_consent: OMIT, auto_charge_consent: OMIT, non_insurance_payers: OMIT, non_insurance_payers_info: OMIT, additional_properties: nil)
|
|
71
74
|
@first_name = first_name if first_name != OMIT
|
|
72
75
|
@last_name = last_name if last_name != OMIT
|
|
73
76
|
@gender = gender if gender != OMIT
|
|
@@ -78,6 +81,7 @@ module CandidApiClient
|
|
|
78
81
|
@phone_consent = phone_consent if phone_consent != OMIT
|
|
79
82
|
@email = email if email != OMIT
|
|
80
83
|
@email_consent = email_consent if email_consent != OMIT
|
|
84
|
+
@auto_charge_consent = auto_charge_consent if auto_charge_consent != OMIT
|
|
81
85
|
@non_insurance_payers = non_insurance_payers if non_insurance_payers != OMIT
|
|
82
86
|
@non_insurance_payers_info = non_insurance_payers_info if non_insurance_payers_info != OMIT
|
|
83
87
|
@additional_properties = additional_properties
|
|
@@ -92,6 +96,7 @@ module CandidApiClient
|
|
|
92
96
|
"phone_consent": phone_consent,
|
|
93
97
|
"email": email,
|
|
94
98
|
"email_consent": email_consent,
|
|
99
|
+
"auto_charge_consent": auto_charge_consent,
|
|
95
100
|
"non_insurance_payers": non_insurance_payers,
|
|
96
101
|
"non_insurance_payers_info": non_insurance_payers_info
|
|
97
102
|
}.reject do |_k, v|
|
|
@@ -124,6 +129,7 @@ module CandidApiClient
|
|
|
124
129
|
phone_consent = struct["phone_consent"]
|
|
125
130
|
email = struct["email"]
|
|
126
131
|
email_consent = struct["email_consent"]
|
|
132
|
+
auto_charge_consent = struct["auto_charge_consent"]
|
|
127
133
|
non_insurance_payers = struct["non_insurance_payers"]
|
|
128
134
|
non_insurance_payers_info = parsed_json["non_insurance_payers_info"]&.map do |item|
|
|
129
135
|
item = item.to_json
|
|
@@ -140,6 +146,7 @@ module CandidApiClient
|
|
|
140
146
|
phone_consent: phone_consent,
|
|
141
147
|
email: email,
|
|
142
148
|
email_consent: email_consent,
|
|
149
|
+
auto_charge_consent: auto_charge_consent,
|
|
143
150
|
non_insurance_payers: non_insurance_payers,
|
|
144
151
|
non_insurance_payers_info: non_insurance_payers_info,
|
|
145
152
|
additional_properties: struct
|
|
@@ -170,6 +177,7 @@ module CandidApiClient
|
|
|
170
177
|
obj.phone_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.phone_consent is not the expected type, validation failed.")
|
|
171
178
|
obj.email&.is_a?(String) != false || raise("Passed value for field obj.email is not the expected type, validation failed.")
|
|
172
179
|
obj.email_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.email_consent is not the expected type, validation failed.")
|
|
180
|
+
obj.auto_charge_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.auto_charge_consent is not the expected type, validation failed.")
|
|
173
181
|
obj.non_insurance_payers&.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers is not the expected type, validation failed.")
|
|
174
182
|
obj.non_insurance_payers_info&.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers_info is not the expected type, validation failed.")
|
|
175
183
|
end
|
|
@@ -21,10 +21,10 @@ module CandidApiClient
|
|
|
21
21
|
# @return [String] The ID used to identify this individual in your system. For example, your
|
|
22
22
|
# internal patient ID or an EHR patient ID.
|
|
23
23
|
attr_reader :external_id
|
|
24
|
-
# @return [Date] Box 3 on the CMS-1500 claim form
|
|
25
|
-
# formatted YYYY-MM-DD (i.e. 2012-02-01)
|
|
24
|
+
# @return [Date] Box 3 on the CMS-1500 claim form or Form Locator 10 on a UB-04 claim form. The
|
|
25
|
+
# date format should be in ISO 8601 date; formatted YYYY-MM-DD (i.e. 2012-02-01)
|
|
26
26
|
attr_reader :date_of_birth
|
|
27
|
-
# @return [CandidApiClient::Commons::Types::StreetAddressShortZipOptional] Box 5 on the CMS-1500 claim form.
|
|
27
|
+
# @return [CandidApiClient::Commons::Types::StreetAddressShortZipOptional] Box 5 on the CMS-1500 claim form or Form Locator 9 on a UB-04 claim form.
|
|
28
28
|
attr_reader :address
|
|
29
29
|
# @return [Array<CandidApiClient::Commons::Types::PhoneNumberOptional>]
|
|
30
30
|
attr_reader :phone_numbers
|
|
@@ -34,6 +34,8 @@ module CandidApiClient
|
|
|
34
34
|
attr_reader :email
|
|
35
35
|
# @return [Boolean]
|
|
36
36
|
attr_reader :email_consent
|
|
37
|
+
# @return [Boolean]
|
|
38
|
+
attr_reader :auto_charge_consent
|
|
37
39
|
# @return [Array<String>] On update, we will replace the existing list of non-insurance payers with the
|
|
38
40
|
# new list if populated.
|
|
39
41
|
attr_reader :non_insurance_payers
|
|
@@ -53,13 +55,14 @@ module CandidApiClient
|
|
|
53
55
|
# @param gender [CandidApiClient::Individual::Types::Gender]
|
|
54
56
|
# @param external_id [String] The ID used to identify this individual in your system. For example, your
|
|
55
57
|
# internal patient ID or an EHR patient ID.
|
|
56
|
-
# @param date_of_birth [Date] Box 3 on the CMS-1500 claim form
|
|
57
|
-
# formatted YYYY-MM-DD (i.e. 2012-02-01)
|
|
58
|
-
# @param address [CandidApiClient::Commons::Types::StreetAddressShortZipOptional] Box 5 on the CMS-1500 claim form.
|
|
58
|
+
# @param date_of_birth [Date] Box 3 on the CMS-1500 claim form or Form Locator 10 on a UB-04 claim form. The
|
|
59
|
+
# date format should be in ISO 8601 date; formatted YYYY-MM-DD (i.e. 2012-02-01)
|
|
60
|
+
# @param address [CandidApiClient::Commons::Types::StreetAddressShortZipOptional] Box 5 on the CMS-1500 claim form or Form Locator 9 on a UB-04 claim form.
|
|
59
61
|
# @param phone_numbers [Array<CandidApiClient::Commons::Types::PhoneNumberOptional>]
|
|
60
62
|
# @param phone_consent [Boolean]
|
|
61
63
|
# @param email [String]
|
|
62
64
|
# @param email_consent [Boolean]
|
|
65
|
+
# @param auto_charge_consent [Boolean]
|
|
63
66
|
# @param non_insurance_payers [Array<String>] On update, we will replace the existing list of non-insurance payers with the
|
|
64
67
|
# new list if populated.
|
|
65
68
|
# @param non_insurance_payers_info [Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreateOptional>] On update, we will replace the existing list of non-insurance payers with the
|
|
@@ -67,7 +70,7 @@ module CandidApiClient
|
|
|
67
70
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
68
71
|
# @return [CandidApiClient::Individual::Types::PatientUpdateWithOptionalAddress]
|
|
69
72
|
def initialize(first_name: OMIT, last_name: OMIT, gender: OMIT, external_id: OMIT, date_of_birth: OMIT,
|
|
70
|
-
address: OMIT, phone_numbers: OMIT, phone_consent: OMIT, email: OMIT, email_consent: OMIT, non_insurance_payers: OMIT, non_insurance_payers_info: OMIT, additional_properties: nil)
|
|
73
|
+
address: OMIT, phone_numbers: OMIT, phone_consent: OMIT, email: OMIT, email_consent: OMIT, auto_charge_consent: OMIT, non_insurance_payers: OMIT, non_insurance_payers_info: OMIT, additional_properties: nil)
|
|
71
74
|
@first_name = first_name if first_name != OMIT
|
|
72
75
|
@last_name = last_name if last_name != OMIT
|
|
73
76
|
@gender = gender if gender != OMIT
|
|
@@ -78,6 +81,7 @@ module CandidApiClient
|
|
|
78
81
|
@phone_consent = phone_consent if phone_consent != OMIT
|
|
79
82
|
@email = email if email != OMIT
|
|
80
83
|
@email_consent = email_consent if email_consent != OMIT
|
|
84
|
+
@auto_charge_consent = auto_charge_consent if auto_charge_consent != OMIT
|
|
81
85
|
@non_insurance_payers = non_insurance_payers if non_insurance_payers != OMIT
|
|
82
86
|
@non_insurance_payers_info = non_insurance_payers_info if non_insurance_payers_info != OMIT
|
|
83
87
|
@additional_properties = additional_properties
|
|
@@ -92,6 +96,7 @@ module CandidApiClient
|
|
|
92
96
|
"phone_consent": phone_consent,
|
|
93
97
|
"email": email,
|
|
94
98
|
"email_consent": email_consent,
|
|
99
|
+
"auto_charge_consent": auto_charge_consent,
|
|
95
100
|
"non_insurance_payers": non_insurance_payers,
|
|
96
101
|
"non_insurance_payers_info": non_insurance_payers_info
|
|
97
102
|
}.reject do |_k, v|
|
|
@@ -124,6 +129,7 @@ module CandidApiClient
|
|
|
124
129
|
phone_consent = struct["phone_consent"]
|
|
125
130
|
email = struct["email"]
|
|
126
131
|
email_consent = struct["email_consent"]
|
|
132
|
+
auto_charge_consent = struct["auto_charge_consent"]
|
|
127
133
|
non_insurance_payers = struct["non_insurance_payers"]
|
|
128
134
|
non_insurance_payers_info = parsed_json["non_insurance_payers_info"]&.map do |item|
|
|
129
135
|
item = item.to_json
|
|
@@ -140,6 +146,7 @@ module CandidApiClient
|
|
|
140
146
|
phone_consent: phone_consent,
|
|
141
147
|
email: email,
|
|
142
148
|
email_consent: email_consent,
|
|
149
|
+
auto_charge_consent: auto_charge_consent,
|
|
143
150
|
non_insurance_payers: non_insurance_payers,
|
|
144
151
|
non_insurance_payers_info: non_insurance_payers_info,
|
|
145
152
|
additional_properties: struct
|
|
@@ -170,6 +177,7 @@ module CandidApiClient
|
|
|
170
177
|
obj.phone_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.phone_consent is not the expected type, validation failed.")
|
|
171
178
|
obj.email&.is_a?(String) != false || raise("Passed value for field obj.email is not the expected type, validation failed.")
|
|
172
179
|
obj.email_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.email_consent is not the expected type, validation failed.")
|
|
180
|
+
obj.auto_charge_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.auto_charge_consent is not the expected type, validation failed.")
|
|
173
181
|
obj.non_insurance_payers&.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers is not the expected type, validation failed.")
|
|
174
182
|
obj.non_insurance_payers_info&.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers_info is not the expected type, validation failed.")
|
|
175
183
|
end
|
|
@@ -2,28 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
require_relative "../../requests"
|
|
4
4
|
require_relative "v_3/client"
|
|
5
|
+
require_relative "v_4/client"
|
|
5
6
|
|
|
6
7
|
module CandidApiClient
|
|
7
8
|
module Payers
|
|
8
9
|
class Client
|
|
9
10
|
# @return [CandidApiClient::Payers::V3::V3Client]
|
|
10
11
|
attr_reader :v_3
|
|
12
|
+
# @return [CandidApiClient::Payers::V4::V4Client]
|
|
13
|
+
attr_reader :v_4
|
|
11
14
|
|
|
12
15
|
# @param request_client [CandidApiClient::RequestClient]
|
|
13
16
|
# @return [CandidApiClient::Payers::Client]
|
|
14
17
|
def initialize(request_client:)
|
|
15
18
|
@v_3 = CandidApiClient::Payers::V3::V3Client.new(request_client: request_client)
|
|
19
|
+
@v_4 = CandidApiClient::Payers::V4::V4Client.new(request_client: request_client)
|
|
16
20
|
end
|
|
17
21
|
end
|
|
18
22
|
|
|
19
23
|
class AsyncClient
|
|
20
24
|
# @return [CandidApiClient::Payers::V3::AsyncV3Client]
|
|
21
25
|
attr_reader :v_3
|
|
26
|
+
# @return [CandidApiClient::Payers::V4::AsyncV4Client]
|
|
27
|
+
attr_reader :v_4
|
|
22
28
|
|
|
23
29
|
# @param request_client [CandidApiClient::AsyncRequestClient]
|
|
24
30
|
# @return [CandidApiClient::Payers::AsyncClient]
|
|
25
31
|
def initialize(request_client:)
|
|
26
32
|
@v_3 = CandidApiClient::Payers::V3::AsyncV3Client.new(request_client: request_client)
|
|
33
|
+
@v_4 = CandidApiClient::Payers::V4::AsyncV4Client.new(request_client: request_client)
|
|
27
34
|
end
|
|
28
35
|
end
|
|
29
36
|
end
|