candidhealth 1.6.0 → 1.7.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/auth/default/client.rb +46 -0
- data/lib/candidhealth/credentialing/v_2/client.rb +342 -8
- data/lib/candidhealth/credentialing/v_2/types/base_credentialing_span.rb +143 -0
- data/lib/candidhealth/credentialing/v_2/types/facility_credentialing_span.rb +165 -0
- data/lib/candidhealth/credentialing/v_2/types/facility_credentialing_span_page.rb +88 -0
- data/lib/candidhealth/credentialing/v_2/types/provider_credentialing_span.rb +34 -34
- data/lib/candidhealth/health_care_code_information/client.rb +30 -0
- data/lib/candidhealth/health_care_code_information/v_1/client.rb +268 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis.rb +236 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis_code_qualifier.rb +14 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/code_list_qualifier_code.rb +1068 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/condition_code.rb +71 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/condition_information.rb +237 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/condition_information_code_qualifier.rb +13 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/date_time_period_format_qualifier.rb +54 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group.rb +236 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group_code_qualifier.rb +13 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury.rb +245 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury_code_qualifier.rb +14 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information.rb +218 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_get_all_response.rb +227 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_new.rb +188 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_update.rb +225 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_code.rb +71 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information.rb +249 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information_code_qualifier.rb +13 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_code.rb +25 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_code_qualifier.rb +13 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information.rb +252 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information.rb +245 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information_code_qualifier.rb +14 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information.rb +248 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information_code_qualifier.rb +14 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit.rb +236 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit_code_qualifier.rb +14 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/present_on_admission_indicator_code.rb +17 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis.rb +245 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis_code_qualifier.rb +14 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information.rb +246 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information_code_qualifier.rb +15 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/rd_8_date.rb +72 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/set_or_clear_admitting_diagnosis.rb +69 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/set_or_clear_diagnosis_related_group.rb +69 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/set_or_clear_principal_diagnosis.rb +69 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/set_or_clear_principal_procedure_information.rb +71 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information.rb +236 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_qualifier.rb +13 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/value_code.rb +119 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/value_code_qualifier.rb +13 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/value_information.rb +245 -0
- data/lib/candidhealth/patient_ar/client.rb +30 -0
- data/lib/candidhealth/patient_ar/v_1/client.rb +161 -0
- data/lib/candidhealth/patient_ar/v_1/types/insurance_adjustment_info.rb +60 -0
- data/lib/candidhealth/patient_ar/v_1/types/insurance_payment_info.rb +60 -0
- data/lib/candidhealth/patient_ar/v_1/types/invalid_filters_error_type.rb +60 -0
- data/lib/candidhealth/patient_ar/v_1/types/inventory_record.rb +101 -0
- data/lib/candidhealth/patient_ar/v_1/types/invoice_itemization_response.rb +103 -0
- data/lib/candidhealth/patient_ar/v_1/types/list_inventory_paged_response.rb +77 -0
- data/lib/candidhealth/patient_ar/v_1/types/non_insurance_adjustment_info.rb +60 -0
- data/lib/candidhealth/patient_ar/v_1/types/non_insurance_payment_info.rb +60 -0
- data/lib/candidhealth/patient_ar/v_1/types/patient_adjustment_info.rb +60 -0
- data/lib/candidhealth/patient_ar/v_1/types/patient_ar_status.rb +14 -0
- data/lib/candidhealth/patient_ar/v_1/types/patient_payment_allocation.rb +76 -0
- data/lib/candidhealth/patient_ar/v_1/types/patient_payment_info.rb +75 -0
- data/lib/candidhealth/patient_ar/v_1/types/service_line_itemization.rb +210 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +132 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +16 -2
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +16 -2
- data/lib/candidhealth/pre_encounter/patients/v_1/types/origination_detail.rb +104 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +16 -2
- data/lib/candidhealth/pre_encounter/patients/v_1/types/referral_source.rb +18 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/referral_type.rb +16 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/specialization_category.rb +42 -0
- data/lib/candidhealth.rb +21 -7
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +72 -9
- metadata +68 -2
@@ -0,0 +1,245 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "other_diagnosis_information_code_qualifier"
|
4
|
+
require_relative "present_on_admission_indicator_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 BF and ABF code qualifier values.
|
15
|
+
class OtherDiagnosisInformation
|
16
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformationCodeQualifier]
|
17
|
+
attr_reader :other_diagnosis_code_qualifier
|
18
|
+
# @return [String]
|
19
|
+
attr_reader :other_diagnosis
|
20
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::PresentOnAdmissionIndicatorCode]
|
21
|
+
attr_reader :present_on_admission_indicator
|
22
|
+
# @return [String] The id of this health care code information if it is already stored.
|
23
|
+
# If this is not set, this is referring to a new health care code information to
|
24
|
+
# be added
|
25
|
+
# to the encounter. If it is set, this refers to an update of an existing health
|
26
|
+
# care code
|
27
|
+
# information object on the encounter.
|
28
|
+
attr_reader :id
|
29
|
+
# @return [String] The encounter_id of this health care code information if it is already stored.
|
30
|
+
# This will be set by the server in responses, but clients are not expected to set
|
31
|
+
# it.
|
32
|
+
attr_reader :encounter_id
|
33
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
|
34
|
+
attr_reader :code_list_qualifier
|
35
|
+
# @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
36
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
37
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
38
|
+
# reporting.
|
39
|
+
attr_reader :industry_code_1
|
40
|
+
# @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
41
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
42
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
43
|
+
# reporting.
|
44
|
+
attr_reader :industry_code_2
|
45
|
+
# @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
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 :industry_code_3
|
50
|
+
# @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
51
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
52
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
53
|
+
# reporting.
|
54
|
+
attr_reader :industry_code_4
|
55
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
|
56
|
+
# as part of claim process.
|
57
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
58
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
59
|
+
# reporting.
|
60
|
+
attr_reader :date_time_period_format_qualifier
|
61
|
+
# @return [String] A string, formatted according to date_time_period_format_qualifier, which
|
62
|
+
# ultimately represents the date time period in which an information object
|
63
|
+
# is covering.
|
64
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
65
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
66
|
+
# reporting.
|
67
|
+
attr_reader :date_time_period
|
68
|
+
# @return [String] A decimal used to represent ValueInformation results.
|
69
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
70
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
71
|
+
# reporting.
|
72
|
+
attr_reader :monetary_amount
|
73
|
+
# @return [String] You do not need to set this field generally, instead it is provided as advisory
|
74
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
75
|
+
# reporting.
|
76
|
+
attr_reader :quantity
|
77
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
78
|
+
attr_reader :additional_properties
|
79
|
+
# @return [Object]
|
80
|
+
attr_reader :_field_set
|
81
|
+
protected :_field_set
|
82
|
+
|
83
|
+
OMIT = Object.new
|
84
|
+
|
85
|
+
# @param other_diagnosis_code_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformationCodeQualifier]
|
86
|
+
# @param other_diagnosis [String]
|
87
|
+
# @param present_on_admission_indicator [CandidApiClient::HealthCareCodeInformation::V1::Types::PresentOnAdmissionIndicatorCode]
|
88
|
+
# @param id [String] The id of this health care code information if it is already stored.
|
89
|
+
# If this is not set, this is referring to a new health care code information to
|
90
|
+
# be added
|
91
|
+
# to the encounter. If it is set, this refers to an update of an existing health
|
92
|
+
# care code
|
93
|
+
# information object on the encounter.
|
94
|
+
# @param encounter_id [String] The encounter_id of this health care code information if it is already stored.
|
95
|
+
# This will be set by the server in responses, but clients are not expected to set
|
96
|
+
# it.
|
97
|
+
# @param code_list_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
|
98
|
+
# @param industry_code_1 [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
99
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
100
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
101
|
+
# reporting.
|
102
|
+
# @param industry_code_2 [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
103
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
104
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
105
|
+
# reporting.
|
106
|
+
# @param industry_code_3 [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
107
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
108
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
109
|
+
# reporting.
|
110
|
+
# @param industry_code_4 [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
111
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
112
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
113
|
+
# reporting.
|
114
|
+
# @param date_time_period_format_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
|
115
|
+
# as part of claim process.
|
116
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
117
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
118
|
+
# reporting.
|
119
|
+
# @param date_time_period [String] A string, formatted according to date_time_period_format_qualifier, which
|
120
|
+
# ultimately represents the date time period in which an information object
|
121
|
+
# is covering.
|
122
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
123
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
124
|
+
# reporting.
|
125
|
+
# @param monetary_amount [String] A decimal used to represent ValueInformation results.
|
126
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
127
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
128
|
+
# reporting.
|
129
|
+
# @param quantity [String] You do not need to set this field generally, instead it is provided as advisory
|
130
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
131
|
+
# reporting.
|
132
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
133
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformation]
|
134
|
+
def initialize(other_diagnosis_code_qualifier:, other_diagnosis:, present_on_admission_indicator: OMIT,
|
135
|
+
id: OMIT, encounter_id: OMIT, code_list_qualifier: OMIT, 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)
|
136
|
+
@other_diagnosis_code_qualifier = other_diagnosis_code_qualifier
|
137
|
+
@other_diagnosis = other_diagnosis
|
138
|
+
@present_on_admission_indicator = present_on_admission_indicator if present_on_admission_indicator != OMIT
|
139
|
+
@id = id if id != OMIT
|
140
|
+
@encounter_id = encounter_id if encounter_id != OMIT
|
141
|
+
@code_list_qualifier = code_list_qualifier if code_list_qualifier != OMIT
|
142
|
+
@industry_code_1 = industry_code_1 if industry_code_1 != OMIT
|
143
|
+
@industry_code_2 = industry_code_2 if industry_code_2 != OMIT
|
144
|
+
@industry_code_3 = industry_code_3 if industry_code_3 != OMIT
|
145
|
+
@industry_code_4 = industry_code_4 if industry_code_4 != OMIT
|
146
|
+
if date_time_period_format_qualifier != OMIT
|
147
|
+
@date_time_period_format_qualifier = date_time_period_format_qualifier
|
148
|
+
end
|
149
|
+
@date_time_period = date_time_period if date_time_period != OMIT
|
150
|
+
@monetary_amount = monetary_amount if monetary_amount != OMIT
|
151
|
+
@quantity = quantity if quantity != OMIT
|
152
|
+
@additional_properties = additional_properties
|
153
|
+
@_field_set = {
|
154
|
+
"other_diagnosis_code_qualifier": other_diagnosis_code_qualifier,
|
155
|
+
"other_diagnosis": other_diagnosis,
|
156
|
+
"present_on_admission_indicator": present_on_admission_indicator,
|
157
|
+
"id": id,
|
158
|
+
"encounter_id": encounter_id,
|
159
|
+
"code_list_qualifier": code_list_qualifier,
|
160
|
+
"industry_code_1": industry_code_1,
|
161
|
+
"industry_code_2": industry_code_2,
|
162
|
+
"industry_code_3": industry_code_3,
|
163
|
+
"industry_code_4": industry_code_4,
|
164
|
+
"date_time_period_format_qualifier": date_time_period_format_qualifier,
|
165
|
+
"date_time_period": date_time_period,
|
166
|
+
"monetary_amount": monetary_amount,
|
167
|
+
"quantity": quantity
|
168
|
+
}.reject do |_k, v|
|
169
|
+
v == OMIT
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
# Deserialize a JSON object to an instance of OtherDiagnosisInformation
|
174
|
+
#
|
175
|
+
# @param json_object [String]
|
176
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformation]
|
177
|
+
def self.from_json(json_object:)
|
178
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
179
|
+
other_diagnosis_code_qualifier = struct["other_diagnosis_code_qualifier"]
|
180
|
+
other_diagnosis = struct["other_diagnosis"]
|
181
|
+
present_on_admission_indicator = struct["present_on_admission_indicator"]
|
182
|
+
id = struct["id"]
|
183
|
+
encounter_id = struct["encounter_id"]
|
184
|
+
code_list_qualifier = struct["code_list_qualifier"]
|
185
|
+
industry_code_1 = struct["industry_code_1"]
|
186
|
+
industry_code_2 = struct["industry_code_2"]
|
187
|
+
industry_code_3 = struct["industry_code_3"]
|
188
|
+
industry_code_4 = struct["industry_code_4"]
|
189
|
+
date_time_period_format_qualifier = struct["date_time_period_format_qualifier"]
|
190
|
+
date_time_period = struct["date_time_period"]
|
191
|
+
monetary_amount = struct["monetary_amount"]
|
192
|
+
quantity = struct["quantity"]
|
193
|
+
new(
|
194
|
+
other_diagnosis_code_qualifier: other_diagnosis_code_qualifier,
|
195
|
+
other_diagnosis: other_diagnosis,
|
196
|
+
present_on_admission_indicator: present_on_admission_indicator,
|
197
|
+
id: id,
|
198
|
+
encounter_id: encounter_id,
|
199
|
+
code_list_qualifier: code_list_qualifier,
|
200
|
+
industry_code_1: industry_code_1,
|
201
|
+
industry_code_2: industry_code_2,
|
202
|
+
industry_code_3: industry_code_3,
|
203
|
+
industry_code_4: industry_code_4,
|
204
|
+
date_time_period_format_qualifier: date_time_period_format_qualifier,
|
205
|
+
date_time_period: date_time_period,
|
206
|
+
monetary_amount: monetary_amount,
|
207
|
+
quantity: quantity,
|
208
|
+
additional_properties: struct
|
209
|
+
)
|
210
|
+
end
|
211
|
+
|
212
|
+
# Serialize an instance of OtherDiagnosisInformation to a JSON object
|
213
|
+
#
|
214
|
+
# @return [String]
|
215
|
+
def to_json(*_args)
|
216
|
+
@_field_set&.to_json
|
217
|
+
end
|
218
|
+
|
219
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
220
|
+
# hash and check each fields type against the current object's property
|
221
|
+
# definitions.
|
222
|
+
#
|
223
|
+
# @param obj [Object]
|
224
|
+
# @return [Void]
|
225
|
+
def self.validate_raw(obj:)
|
226
|
+
obj.other_diagnosis_code_qualifier.is_a?(CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformationCodeQualifier) != false || raise("Passed value for field obj.other_diagnosis_code_qualifier is not the expected type, validation failed.")
|
227
|
+
obj.other_diagnosis.is_a?(String) != false || raise("Passed value for field obj.other_diagnosis is not the expected type, validation failed.")
|
228
|
+
obj.present_on_admission_indicator&.is_a?(CandidApiClient::HealthCareCodeInformation::V1::Types::PresentOnAdmissionIndicatorCode) != false || raise("Passed value for field obj.present_on_admission_indicator is not the expected type, validation failed.")
|
229
|
+
obj.id&.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
230
|
+
obj.encounter_id&.is_a?(String) != false || raise("Passed value for field obj.encounter_id is not the expected type, validation failed.")
|
231
|
+
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.")
|
232
|
+
obj.industry_code_1&.is_a?(String) != false || raise("Passed value for field obj.industry_code_1 is not the expected type, validation failed.")
|
233
|
+
obj.industry_code_2&.is_a?(String) != false || raise("Passed value for field obj.industry_code_2 is not the expected type, validation failed.")
|
234
|
+
obj.industry_code_3&.is_a?(String) != false || raise("Passed value for field obj.industry_code_3 is not the expected type, validation failed.")
|
235
|
+
obj.industry_code_4&.is_a?(String) != false || raise("Passed value for field obj.industry_code_4 is not the expected type, validation failed.")
|
236
|
+
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.")
|
237
|
+
obj.date_time_period&.is_a?(String) != false || raise("Passed value for field obj.date_time_period is not the expected type, validation failed.")
|
238
|
+
obj.monetary_amount&.is_a?(String) != false || raise("Passed value for field obj.monetary_amount is not the expected type, validation failed.")
|
239
|
+
obj.quantity&.is_a?(String) != false || raise("Passed value for field obj.quantity is not the expected type, validation failed.")
|
240
|
+
end
|
241
|
+
end
|
242
|
+
end
|
243
|
+
end
|
244
|
+
end
|
245
|
+
end
|
@@ -0,0 +1,248 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "other_procedure_information_code_qualifier"
|
4
|
+
require "date"
|
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 BBQ or BQ code qualifier values.
|
15
|
+
class OtherProcedureInformation
|
16
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::OtherProcedureInformationCodeQualifier]
|
17
|
+
attr_reader :other_procedure_code_qualifier
|
18
|
+
# @return [String]
|
19
|
+
attr_reader :other_procedure_code
|
20
|
+
# @return [DateTime]
|
21
|
+
attr_reader :other_procedure_date
|
22
|
+
# @return [String] The id of this health care code information if it is already stored.
|
23
|
+
# If this is not set, this is referring to a new health care code information to
|
24
|
+
# be added
|
25
|
+
# to the encounter. If it is set, this refers to an update of an existing health
|
26
|
+
# care code
|
27
|
+
# information object on the encounter.
|
28
|
+
attr_reader :id
|
29
|
+
# @return [String] The encounter_id of this health care code information if it is already stored.
|
30
|
+
# This will be set by the server in responses, but clients are not expected to set
|
31
|
+
# it.
|
32
|
+
attr_reader :encounter_id
|
33
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
|
34
|
+
attr_reader :code_list_qualifier
|
35
|
+
# @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
36
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
37
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
38
|
+
# reporting.
|
39
|
+
attr_reader :industry_code_1
|
40
|
+
# @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
41
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
42
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
43
|
+
# reporting.
|
44
|
+
attr_reader :industry_code_2
|
45
|
+
# @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
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 :industry_code_3
|
50
|
+
# @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
51
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
52
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
53
|
+
# reporting.
|
54
|
+
attr_reader :industry_code_4
|
55
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
|
56
|
+
# as part of claim process.
|
57
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
58
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
59
|
+
# reporting.
|
60
|
+
attr_reader :date_time_period_format_qualifier
|
61
|
+
# @return [String] A string, formatted according to date_time_period_format_qualifier, which
|
62
|
+
# ultimately represents the date time period in which an information object
|
63
|
+
# is covering.
|
64
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
65
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
66
|
+
# reporting.
|
67
|
+
attr_reader :date_time_period
|
68
|
+
# @return [String] A decimal used to represent ValueInformation results.
|
69
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
70
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
71
|
+
# reporting.
|
72
|
+
attr_reader :monetary_amount
|
73
|
+
# @return [String] You do not need to set this field generally, instead it is provided as advisory
|
74
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
75
|
+
# reporting.
|
76
|
+
attr_reader :quantity
|
77
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
78
|
+
attr_reader :additional_properties
|
79
|
+
# @return [Object]
|
80
|
+
attr_reader :_field_set
|
81
|
+
protected :_field_set
|
82
|
+
|
83
|
+
OMIT = Object.new
|
84
|
+
|
85
|
+
# @param other_procedure_code_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::OtherProcedureInformationCodeQualifier]
|
86
|
+
# @param other_procedure_code [String]
|
87
|
+
# @param other_procedure_date [DateTime]
|
88
|
+
# @param id [String] The id of this health care code information if it is already stored.
|
89
|
+
# If this is not set, this is referring to a new health care code information to
|
90
|
+
# be added
|
91
|
+
# to the encounter. If it is set, this refers to an update of an existing health
|
92
|
+
# care code
|
93
|
+
# information object on the encounter.
|
94
|
+
# @param encounter_id [String] The encounter_id of this health care code information if it is already stored.
|
95
|
+
# This will be set by the server in responses, but clients are not expected to set
|
96
|
+
# it.
|
97
|
+
# @param code_list_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
|
98
|
+
# @param industry_code_1 [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
99
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
100
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
101
|
+
# reporting.
|
102
|
+
# @param industry_code_2 [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
103
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
104
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
105
|
+
# reporting.
|
106
|
+
# @param industry_code_3 [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
107
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
108
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
109
|
+
# reporting.
|
110
|
+
# @param industry_code_4 [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
111
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
112
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
113
|
+
# reporting.
|
114
|
+
# @param date_time_period_format_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
|
115
|
+
# as part of claim process.
|
116
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
117
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
118
|
+
# reporting.
|
119
|
+
# @param date_time_period [String] A string, formatted according to date_time_period_format_qualifier, which
|
120
|
+
# ultimately represents the date time period in which an information object
|
121
|
+
# is covering.
|
122
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
123
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
124
|
+
# reporting.
|
125
|
+
# @param monetary_amount [String] A decimal used to represent ValueInformation results.
|
126
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
127
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
128
|
+
# reporting.
|
129
|
+
# @param quantity [String] You do not need to set this field generally, instead it is provided as advisory
|
130
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
131
|
+
# reporting.
|
132
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
133
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::OtherProcedureInformation]
|
134
|
+
def initialize(other_procedure_code_qualifier:, other_procedure_code:, other_procedure_date:, id: OMIT,
|
135
|
+
encounter_id: OMIT, code_list_qualifier: OMIT, 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)
|
136
|
+
@other_procedure_code_qualifier = other_procedure_code_qualifier
|
137
|
+
@other_procedure_code = other_procedure_code
|
138
|
+
@other_procedure_date = other_procedure_date
|
139
|
+
@id = id if id != OMIT
|
140
|
+
@encounter_id = encounter_id if encounter_id != OMIT
|
141
|
+
@code_list_qualifier = code_list_qualifier if code_list_qualifier != OMIT
|
142
|
+
@industry_code_1 = industry_code_1 if industry_code_1 != OMIT
|
143
|
+
@industry_code_2 = industry_code_2 if industry_code_2 != OMIT
|
144
|
+
@industry_code_3 = industry_code_3 if industry_code_3 != OMIT
|
145
|
+
@industry_code_4 = industry_code_4 if industry_code_4 != OMIT
|
146
|
+
if date_time_period_format_qualifier != OMIT
|
147
|
+
@date_time_period_format_qualifier = date_time_period_format_qualifier
|
148
|
+
end
|
149
|
+
@date_time_period = date_time_period if date_time_period != OMIT
|
150
|
+
@monetary_amount = monetary_amount if monetary_amount != OMIT
|
151
|
+
@quantity = quantity if quantity != OMIT
|
152
|
+
@additional_properties = additional_properties
|
153
|
+
@_field_set = {
|
154
|
+
"other_procedure_code_qualifier": other_procedure_code_qualifier,
|
155
|
+
"other_procedure_code": other_procedure_code,
|
156
|
+
"other_procedure_date": other_procedure_date,
|
157
|
+
"id": id,
|
158
|
+
"encounter_id": encounter_id,
|
159
|
+
"code_list_qualifier": code_list_qualifier,
|
160
|
+
"industry_code_1": industry_code_1,
|
161
|
+
"industry_code_2": industry_code_2,
|
162
|
+
"industry_code_3": industry_code_3,
|
163
|
+
"industry_code_4": industry_code_4,
|
164
|
+
"date_time_period_format_qualifier": date_time_period_format_qualifier,
|
165
|
+
"date_time_period": date_time_period,
|
166
|
+
"monetary_amount": monetary_amount,
|
167
|
+
"quantity": quantity
|
168
|
+
}.reject do |_k, v|
|
169
|
+
v == OMIT
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
# Deserialize a JSON object to an instance of OtherProcedureInformation
|
174
|
+
#
|
175
|
+
# @param json_object [String]
|
176
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::OtherProcedureInformation]
|
177
|
+
def self.from_json(json_object:)
|
178
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
179
|
+
parsed_json = JSON.parse(json_object)
|
180
|
+
other_procedure_code_qualifier = struct["other_procedure_code_qualifier"]
|
181
|
+
other_procedure_code = struct["other_procedure_code"]
|
182
|
+
other_procedure_date = unless parsed_json["other_procedure_date"].nil?
|
183
|
+
DateTime.parse(parsed_json["other_procedure_date"])
|
184
|
+
end
|
185
|
+
id = struct["id"]
|
186
|
+
encounter_id = struct["encounter_id"]
|
187
|
+
code_list_qualifier = struct["code_list_qualifier"]
|
188
|
+
industry_code_1 = struct["industry_code_1"]
|
189
|
+
industry_code_2 = struct["industry_code_2"]
|
190
|
+
industry_code_3 = struct["industry_code_3"]
|
191
|
+
industry_code_4 = struct["industry_code_4"]
|
192
|
+
date_time_period_format_qualifier = struct["date_time_period_format_qualifier"]
|
193
|
+
date_time_period = struct["date_time_period"]
|
194
|
+
monetary_amount = struct["monetary_amount"]
|
195
|
+
quantity = struct["quantity"]
|
196
|
+
new(
|
197
|
+
other_procedure_code_qualifier: other_procedure_code_qualifier,
|
198
|
+
other_procedure_code: other_procedure_code,
|
199
|
+
other_procedure_date: other_procedure_date,
|
200
|
+
id: id,
|
201
|
+
encounter_id: encounter_id,
|
202
|
+
code_list_qualifier: code_list_qualifier,
|
203
|
+
industry_code_1: industry_code_1,
|
204
|
+
industry_code_2: industry_code_2,
|
205
|
+
industry_code_3: industry_code_3,
|
206
|
+
industry_code_4: industry_code_4,
|
207
|
+
date_time_period_format_qualifier: date_time_period_format_qualifier,
|
208
|
+
date_time_period: date_time_period,
|
209
|
+
monetary_amount: monetary_amount,
|
210
|
+
quantity: quantity,
|
211
|
+
additional_properties: struct
|
212
|
+
)
|
213
|
+
end
|
214
|
+
|
215
|
+
# Serialize an instance of OtherProcedureInformation to a JSON object
|
216
|
+
#
|
217
|
+
# @return [String]
|
218
|
+
def to_json(*_args)
|
219
|
+
@_field_set&.to_json
|
220
|
+
end
|
221
|
+
|
222
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
223
|
+
# hash and check each fields type against the current object's property
|
224
|
+
# definitions.
|
225
|
+
#
|
226
|
+
# @param obj [Object]
|
227
|
+
# @return [Void]
|
228
|
+
def self.validate_raw(obj:)
|
229
|
+
obj.other_procedure_code_qualifier.is_a?(CandidApiClient::HealthCareCodeInformation::V1::Types::OtherProcedureInformationCodeQualifier) != false || raise("Passed value for field obj.other_procedure_code_qualifier is not the expected type, validation failed.")
|
230
|
+
obj.other_procedure_code.is_a?(String) != false || raise("Passed value for field obj.other_procedure_code is not the expected type, validation failed.")
|
231
|
+
obj.other_procedure_date.is_a?(DateTime) != false || raise("Passed value for field obj.other_procedure_date is not the expected type, validation failed.")
|
232
|
+
obj.id&.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
233
|
+
obj.encounter_id&.is_a?(String) != false || raise("Passed value for field obj.encounter_id is not the expected type, validation failed.")
|
234
|
+
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.")
|
235
|
+
obj.industry_code_1&.is_a?(String) != false || raise("Passed value for field obj.industry_code_1 is not the expected type, validation failed.")
|
236
|
+
obj.industry_code_2&.is_a?(String) != false || raise("Passed value for field obj.industry_code_2 is not the expected type, validation failed.")
|
237
|
+
obj.industry_code_3&.is_a?(String) != false || raise("Passed value for field obj.industry_code_3 is not the expected type, validation failed.")
|
238
|
+
obj.industry_code_4&.is_a?(String) != false || raise("Passed value for field obj.industry_code_4 is not the expected type, validation failed.")
|
239
|
+
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.")
|
240
|
+
obj.date_time_period&.is_a?(String) != false || raise("Passed value for field obj.date_time_period is not the expected type, validation failed.")
|
241
|
+
obj.monetary_amount&.is_a?(String) != false || raise("Passed value for field obj.monetary_amount is not the expected type, validation failed.")
|
242
|
+
obj.quantity&.is_a?(String) != false || raise("Passed value for field obj.quantity is not the expected type, validation failed.")
|
243
|
+
end
|
244
|
+
end
|
245
|
+
end
|
246
|
+
end
|
247
|
+
end
|
248
|
+
end
|