candidhealth 1.8.0 → 1.9.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 +0 -74
- data/lib/candidhealth/charge_capture/v_1/client.rb +71 -4
- data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +33 -2
- data/lib/candidhealth/diagnoses/client.rb +2 -2
- data/lib/candidhealth/encounters/v_4/client.rb +483 -2510
- data/lib/candidhealth/encounters/v_4/types/encounter_submission_expectation.rb +3 -6
- 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/client.rb +2 -74
- data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/condition_code.rb +100 -1
- data/lib/candidhealth/health_care_code_information/v_1/types/condition_information.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information.rb +2 -134
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_get_all_response.rb +34 -34
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_new.rb +4 -139
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_update.rb +138 -38
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_code.rb +1 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information.rb +10 -132
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_code.rb +6 -1
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information.rb +10 -132
- data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information.rb +10 -132
- data/lib/candidhealth/health_care_code_information/v_1/types/rd_8_date.rb +16 -4
- data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/value_information.rb +2 -130
- data/lib/candidhealth/individual/types/patient.rb +10 -2
- data/lib/candidhealth/individual/types/patient_create.rb +9 -1
- data/lib/candidhealth/individual/types/patient_update.rb +9 -1
- data/lib/candidhealth/individual/types/patient_update_with_optional_address.rb +9 -1
- data/lib/candidhealth/organization_providers/v_2/types/license_type.rb +2 -0
- data/lib/candidhealth/organization_service_facilities/v_2/client.rb +77 -4
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility.rb +21 -2
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_create.rb +21 -2
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_update.rb +21 -2
- data/lib/candidhealth/payers/v_4/types/clearinghouse_payer_info.rb +36 -2
- data/lib/candidhealth/payers/v_4/types/payer.rb +15 -7
- data/lib/candidhealth/payers/v_4/types/payer_ids.rb +12 -35
- data/lib/candidhealth/payers/v_4/types/primary_payer_ids.rb +84 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +8 -2
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +13 -1
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +13 -1
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +13 -1
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient_service_facility.rb +63 -0
- data/lib/candidhealth/service_lines/v_2/client.rb +2 -2
- data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +8 -8
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_base.rb +8 -8
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_base_base.rb +8 -8
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +2 -21
- metadata +4 -23
- data/lib/candidhealth/encounters_universal/types/universal_encounter_create.rb +0 -944
- data/lib/candidhealth/encounters_universal/types/universal_encounter_create_from_pre_encounter.rb +0 -791
- data/lib/candidhealth/encounters_universal/types/universal_encounter_update.rb +0 -872
- data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis_new.rb +0 -206
- data/lib/candidhealth/health_care_code_information/v_1/types/code_list_qualifier_code.rb +0 -1068
- data/lib/candidhealth/health_care_code_information/v_1/types/condition_information_new.rb +0 -207
- data/lib/candidhealth/health_care_code_information/v_1/types/date_time_period_format_qualifier.rb +0 -54
- data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group_new.rb +0 -206
- data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury_new.rb +0 -245
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_create.rb +0 -225
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information_new.rb +0 -219
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information_new.rb +0 -222
- data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information_new.rb +0 -215
- data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information_new.rb +0 -218
- data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit_new.rb +0 -206
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis_new.rb +0 -215
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information_new.rb +0 -216
- data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information_new.rb +0 -206
- data/lib/candidhealth/health_care_code_information/v_1/types/value_information_new.rb +0 -215
- data/lib/candidhealth/service_lines/v_2/types/universal_service_line_create.rb +0 -271
- data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite_update.rb +0 -112
data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_new.rb
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require_relative "code_list_qualifier_code"
|
|
4
|
-
require_relative "date_time_period_format_qualifier"
|
|
5
3
|
require "ostruct"
|
|
6
4
|
require "json"
|
|
7
5
|
|
|
@@ -10,50 +8,6 @@ module CandidApiClient
|
|
|
10
8
|
module V1
|
|
11
9
|
module Types
|
|
12
10
|
class HealthCareCodeInformationNew
|
|
13
|
-
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
|
|
14
|
-
attr_reader :code_list_qualifier
|
|
15
|
-
# @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
|
16
|
-
# You do not need to set this field generally, instead it is provided as advisory
|
|
17
|
-
# context on how this HealthCareCodeInformation's data will be available in
|
|
18
|
-
# reporting.
|
|
19
|
-
attr_reader :industry_code_1
|
|
20
|
-
# @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
|
21
|
-
# You do not need to set this field generally, instead it is provided as advisory
|
|
22
|
-
# context on how this HealthCareCodeInformation's data will be available in
|
|
23
|
-
# reporting.
|
|
24
|
-
attr_reader :industry_code_2
|
|
25
|
-
# @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
|
26
|
-
# You do not need to set this field generally, instead it is provided as advisory
|
|
27
|
-
# context on how this HealthCareCodeInformation's data will be available in
|
|
28
|
-
# reporting.
|
|
29
|
-
attr_reader :industry_code_3
|
|
30
|
-
# @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
|
31
|
-
# You do not need to set this field generally, instead it is provided as advisory
|
|
32
|
-
# context on how this HealthCareCodeInformation's data will be available in
|
|
33
|
-
# reporting.
|
|
34
|
-
attr_reader :industry_code_4
|
|
35
|
-
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
|
|
36
|
-
# as part of claim process.
|
|
37
|
-
# You do not need to set this field generally, instead it is provided as advisory
|
|
38
|
-
# context on how this HealthCareCodeInformation's data will be available in
|
|
39
|
-
# reporting.
|
|
40
|
-
attr_reader :date_time_period_format_qualifier
|
|
41
|
-
# @return [String] A string, formatted according to date_time_period_format_qualifier, which
|
|
42
|
-
# ultimately represents the date time period in which an information object
|
|
43
|
-
# is covering.
|
|
44
|
-
# You do not need to set this field generally, instead it is provided as advisory
|
|
45
|
-
# context on how this HealthCareCodeInformation's data will be available in
|
|
46
|
-
# reporting.
|
|
47
|
-
attr_reader :date_time_period
|
|
48
|
-
# @return [String] A decimal used to represent ValueInformation results.
|
|
49
|
-
# You do not need to set this field generally, instead it is provided as advisory
|
|
50
|
-
# context on how this HealthCareCodeInformation's data will be available in
|
|
51
|
-
# reporting.
|
|
52
|
-
attr_reader :monetary_amount
|
|
53
|
-
# @return [String] 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 :quantity
|
|
57
11
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
58
12
|
attr_reader :additional_properties
|
|
59
13
|
# @return [Object]
|
|
@@ -62,70 +16,11 @@ module CandidApiClient
|
|
|
62
16
|
|
|
63
17
|
OMIT = Object.new
|
|
64
18
|
|
|
65
|
-
# @param code_list_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
|
|
66
|
-
# @param industry_code_1 [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
|
67
|
-
# You do not need to set this field generally, instead it is provided as advisory
|
|
68
|
-
# context on how this HealthCareCodeInformation's data will be available in
|
|
69
|
-
# reporting.
|
|
70
|
-
# @param industry_code_2 [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
|
71
|
-
# You do not need to set this field generally, instead it is provided as advisory
|
|
72
|
-
# context on how this HealthCareCodeInformation's data will be available in
|
|
73
|
-
# reporting.
|
|
74
|
-
# @param industry_code_3 [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
|
75
|
-
# You do not need to set this field generally, instead it is provided as advisory
|
|
76
|
-
# context on how this HealthCareCodeInformation's data will be available in
|
|
77
|
-
# reporting.
|
|
78
|
-
# @param industry_code_4 [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 date_time_period_format_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
|
|
83
|
-
# as part of claim process.
|
|
84
|
-
# You do not need to set this field generally, instead it is provided as advisory
|
|
85
|
-
# context on how this HealthCareCodeInformation's data will be available in
|
|
86
|
-
# reporting.
|
|
87
|
-
# @param date_time_period [String] A string, formatted according to date_time_period_format_qualifier, which
|
|
88
|
-
# ultimately represents the date time period in which an information object
|
|
89
|
-
# is covering.
|
|
90
|
-
# You do not need to set this field generally, instead it is provided as advisory
|
|
91
|
-
# context on how this HealthCareCodeInformation's data will be available in
|
|
92
|
-
# reporting.
|
|
93
|
-
# @param monetary_amount [String] A decimal used to represent ValueInformation results.
|
|
94
|
-
# You do not need to set this field generally, instead it is provided as advisory
|
|
95
|
-
# context on how this HealthCareCodeInformation's data will be available in
|
|
96
|
-
# reporting.
|
|
97
|
-
# @param quantity [String] You do not need to set this field generally, instead it is provided as advisory
|
|
98
|
-
# context on how this HealthCareCodeInformation's data will be available in
|
|
99
|
-
# reporting.
|
|
100
19
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
101
20
|
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::HealthCareCodeInformationNew]
|
|
102
|
-
def initialize(
|
|
103
|
-
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)
|
|
104
|
-
@code_list_qualifier = code_list_qualifier if code_list_qualifier != OMIT
|
|
105
|
-
@industry_code_1 = industry_code_1 if industry_code_1 != OMIT
|
|
106
|
-
@industry_code_2 = industry_code_2 if industry_code_2 != OMIT
|
|
107
|
-
@industry_code_3 = industry_code_3 if industry_code_3 != OMIT
|
|
108
|
-
@industry_code_4 = industry_code_4 if industry_code_4 != OMIT
|
|
109
|
-
if date_time_period_format_qualifier != OMIT
|
|
110
|
-
@date_time_period_format_qualifier = date_time_period_format_qualifier
|
|
111
|
-
end
|
|
112
|
-
@date_time_period = date_time_period if date_time_period != OMIT
|
|
113
|
-
@monetary_amount = monetary_amount if monetary_amount != OMIT
|
|
114
|
-
@quantity = quantity if quantity != OMIT
|
|
21
|
+
def initialize(additional_properties: nil)
|
|
115
22
|
@additional_properties = additional_properties
|
|
116
|
-
@_field_set = {
|
|
117
|
-
"code_list_qualifier": code_list_qualifier,
|
|
118
|
-
"industry_code_1": industry_code_1,
|
|
119
|
-
"industry_code_2": industry_code_2,
|
|
120
|
-
"industry_code_3": industry_code_3,
|
|
121
|
-
"industry_code_4": industry_code_4,
|
|
122
|
-
"date_time_period_format_qualifier": date_time_period_format_qualifier,
|
|
123
|
-
"date_time_period": date_time_period,
|
|
124
|
-
"monetary_amount": monetary_amount,
|
|
125
|
-
"quantity": quantity
|
|
126
|
-
}.reject do |_k, v|
|
|
127
|
-
v == OMIT
|
|
128
|
-
end
|
|
23
|
+
@_field_set = {}
|
|
129
24
|
end
|
|
130
25
|
|
|
131
26
|
# Deserialize a JSON object to an instance of HealthCareCodeInformationNew
|
|
@@ -134,27 +29,7 @@ module CandidApiClient
|
|
|
134
29
|
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::HealthCareCodeInformationNew]
|
|
135
30
|
def self.from_json(json_object:)
|
|
136
31
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
137
|
-
|
|
138
|
-
industry_code_1 = struct["industry_code_1"]
|
|
139
|
-
industry_code_2 = struct["industry_code_2"]
|
|
140
|
-
industry_code_3 = struct["industry_code_3"]
|
|
141
|
-
industry_code_4 = struct["industry_code_4"]
|
|
142
|
-
date_time_period_format_qualifier = struct["date_time_period_format_qualifier"]
|
|
143
|
-
date_time_period = struct["date_time_period"]
|
|
144
|
-
monetary_amount = struct["monetary_amount"]
|
|
145
|
-
quantity = struct["quantity"]
|
|
146
|
-
new(
|
|
147
|
-
code_list_qualifier: code_list_qualifier,
|
|
148
|
-
industry_code_1: industry_code_1,
|
|
149
|
-
industry_code_2: industry_code_2,
|
|
150
|
-
industry_code_3: industry_code_3,
|
|
151
|
-
industry_code_4: industry_code_4,
|
|
152
|
-
date_time_period_format_qualifier: date_time_period_format_qualifier,
|
|
153
|
-
date_time_period: date_time_period,
|
|
154
|
-
monetary_amount: monetary_amount,
|
|
155
|
-
quantity: quantity,
|
|
156
|
-
additional_properties: struct
|
|
157
|
-
)
|
|
32
|
+
new(additional_properties: struct)
|
|
158
33
|
end
|
|
159
34
|
|
|
160
35
|
# Serialize an instance of HealthCareCodeInformationNew to a JSON object
|
|
@@ -170,17 +45,7 @@ module CandidApiClient
|
|
|
170
45
|
#
|
|
171
46
|
# @param obj [Object]
|
|
172
47
|
# @return [Void]
|
|
173
|
-
def self.validate_raw(obj:)
|
|
174
|
-
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.")
|
|
175
|
-
obj.industry_code_1&.is_a?(String) != false || raise("Passed value for field obj.industry_code_1 is not the expected type, validation failed.")
|
|
176
|
-
obj.industry_code_2&.is_a?(String) != false || raise("Passed value for field obj.industry_code_2 is not the expected type, validation failed.")
|
|
177
|
-
obj.industry_code_3&.is_a?(String) != false || raise("Passed value for field obj.industry_code_3 is not the expected type, validation failed.")
|
|
178
|
-
obj.industry_code_4&.is_a?(String) != false || raise("Passed value for field obj.industry_code_4 is not the expected type, validation failed.")
|
|
179
|
-
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.")
|
|
180
|
-
obj.date_time_period&.is_a?(String) != false || raise("Passed value for field obj.date_time_period is not the expected type, validation failed.")
|
|
181
|
-
obj.monetary_amount&.is_a?(String) != false || raise("Passed value for field obj.monetary_amount is not the expected type, validation failed.")
|
|
182
|
-
obj.quantity&.is_a?(String) != false || raise("Passed value for field obj.quantity is not the expected type, validation failed.")
|
|
183
|
-
end
|
|
48
|
+
def self.validate_raw(obj:); end
|
|
184
49
|
end
|
|
185
50
|
end
|
|
186
51
|
end
|
data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_update.rb
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require_relative "set_or_clear_principal_diagnosis"
|
|
4
|
+
require_relative "other_diagnosis_information"
|
|
4
5
|
require_relative "set_or_clear_admitting_diagnosis"
|
|
5
6
|
require_relative "patient_reason_for_visit"
|
|
6
7
|
require_relative "external_cause_of_injury"
|
|
7
8
|
require_relative "set_or_clear_diagnosis_related_group"
|
|
8
|
-
require_relative "other_diagnosis_information"
|
|
9
9
|
require_relative "set_or_clear_principal_procedure_information"
|
|
10
10
|
require_relative "other_procedure_information"
|
|
11
11
|
require_relative "occurrence_span_information"
|
|
@@ -21,31 +21,81 @@ module CandidApiClient
|
|
|
21
21
|
module V1
|
|
22
22
|
module Types
|
|
23
23
|
class HealthCareCodeInformationUpdate
|
|
24
|
-
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearPrincipalDiagnosis]
|
|
24
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearPrincipalDiagnosis] Set & Replace semantics. If the id matches the existing principal_diagnosis,
|
|
25
|
+
# that diagnosis is updated in place. If the entry has no id, it is created
|
|
26
|
+
# newly, its id will be in the response, and any existing principal_diagnosis is
|
|
27
|
+
# deleted and removed from any service line pointers.
|
|
25
28
|
attr_reader :principal_diagnosis
|
|
26
|
-
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::
|
|
29
|
+
# @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformation>] Set & Replace semantics. For each entry that has an id, any previous
|
|
30
|
+
# other_diagnosis_information by that id is updated in place. For each entry
|
|
31
|
+
# without an id, it is created newly and its id will be in the response. For each
|
|
32
|
+
# existing entry that was not referred to by id, it is deleted, including having
|
|
33
|
+
# it removed from any service line pointers.
|
|
34
|
+
attr_reader :other_diagnosis_information
|
|
35
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearAdmittingDiagnosis] Set & Replace semantics. If the id matches the existing admitting_diagnosis,
|
|
36
|
+
# that diagnosis is updated in place. If the entry has no id, it is created
|
|
37
|
+
# newly, its id will be in the response, and any existing principal_diagnosis is
|
|
38
|
+
# deleted. This object only applies to 837i institutional claim forms.
|
|
27
39
|
attr_reader :admitting_diagnosis
|
|
28
|
-
# @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::PatientReasonForVisit>]
|
|
40
|
+
# @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::PatientReasonForVisit>] Set & Replace semantics. For each entry that has an id, any previous
|
|
41
|
+
# patient_reasons_for_visit by that id is updated in place. For each entry
|
|
42
|
+
# without an id, it is created newly and its id will be in the response. For each
|
|
43
|
+
# existing entry that was not referred to by id, it is deleted. This object only
|
|
44
|
+
# applies to 837i institutional claim forms.
|
|
29
45
|
attr_reader :patient_reasons_for_visit
|
|
30
|
-
# @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ExternalCauseOfInjury>]
|
|
46
|
+
# @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ExternalCauseOfInjury>] Set & Replace semantics. For each entry that has an id, any previous
|
|
47
|
+
# external_causes_of_injury by that id is updated in place. For each entry
|
|
48
|
+
# without an id, it is created newly and its id will be in the response. For each
|
|
49
|
+
# existing entry that was not referred to by id, it is deleted. This object only
|
|
50
|
+
# applies to 837i institutional claim forms.
|
|
31
51
|
attr_reader :external_causes_of_injury
|
|
32
|
-
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearDiagnosisRelatedGroup]
|
|
52
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearDiagnosisRelatedGroup] Set & Replace semantics. If the id matches the existing
|
|
53
|
+
# diagnosis_related_groups, that diagnosis_related_group is updated in place. If
|
|
54
|
+
# the entry has no id, it is created newly, its id will be in the response, and
|
|
55
|
+
# any existing diagnosis_related_groups is deleted. This object only applies to
|
|
56
|
+
# 837i institutional claim forms.
|
|
33
57
|
attr_reader :diagnosis_related_groups
|
|
34
|
-
# @return [
|
|
35
|
-
|
|
36
|
-
#
|
|
58
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearPrincipalProcedureInformation] Set & Replace semantics. If the id matches the existing principal_procedure,
|
|
59
|
+
# that principal_procedure is updated in place. If the entry has no id, it is
|
|
60
|
+
# created newly, its id will be in the response, and any existing
|
|
61
|
+
# principal_procedure is deleted. This object only applies to 837i institutional
|
|
62
|
+
# claim forms.
|
|
37
63
|
attr_reader :principal_procedure
|
|
38
|
-
# @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherProcedureInformation>]
|
|
64
|
+
# @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherProcedureInformation>] Set & Replace semantics. For each entry that has an id, any previous
|
|
65
|
+
# other_procedure_information by that id is updated in place. For each entry
|
|
66
|
+
# without an id, it is created newly and its id will be in the response. For each
|
|
67
|
+
# existing entry that was not referred to by id, it is deleted. This object only
|
|
68
|
+
# applies to 837i institutional claim forms.
|
|
39
69
|
attr_reader :other_procedure_information
|
|
40
|
-
# @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceSpanInformation>]
|
|
70
|
+
# @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceSpanInformation>] Set & Replace semantics. For each entry that has an id, any previous
|
|
71
|
+
# occurrence_span_information by that id is updated in place. For each entry
|
|
72
|
+
# without an id, it is created newly and its id will be in the response. For each
|
|
73
|
+
# existing entry that was not referred to by id, it is deleted. This object only
|
|
74
|
+
# applies to 837i institutional claim forms.
|
|
41
75
|
attr_reader :occurrence_span_information
|
|
42
|
-
# @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceInformation>]
|
|
76
|
+
# @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceInformation>] Set & Replace semantics. For each entry that has an id, any previous
|
|
77
|
+
# occurrence_information by that id is updated in place. For each entry without
|
|
78
|
+
# an id, it is created newly and its id will be in the response. For each
|
|
79
|
+
# existing entry that was not referred to by id, it is deleted. This object only
|
|
80
|
+
# applies to 837i institutional claim forms.
|
|
43
81
|
attr_reader :occurrence_information
|
|
44
|
-
# @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeInformation>]
|
|
82
|
+
# @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeInformation>] Set & Replace semantics. For each entry that has an id, any previous
|
|
83
|
+
# treatment_code_information by that id is updated in place. For each entry
|
|
84
|
+
# without an id, it is created newly and its id will be in the response. For each
|
|
85
|
+
# existing entry that was not referred to by id, it is deleted. This object only
|
|
86
|
+
# applies to 837i institutional claim forms.
|
|
45
87
|
attr_reader :treatment_code_information
|
|
46
|
-
# @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ValueInformation>]
|
|
88
|
+
# @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ValueInformation>] Set & Replace semantics. For each entry that has an id, any previous
|
|
89
|
+
# value_information by that id is updated in place. For each entry without an id,
|
|
90
|
+
# it is created newly and its id will be in the response. For each existing entry
|
|
91
|
+
# that was not referred to by id, it is deleted. This object only applies to 837i
|
|
92
|
+
# institutional claim forms.
|
|
47
93
|
attr_reader :value_information
|
|
48
|
-
# @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionInformation>]
|
|
94
|
+
# @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionInformation>] Set & Replace semantics. For each entry that has an id, any previous
|
|
95
|
+
# condition_information by that id is updated in place. For each entry without an
|
|
96
|
+
# id, it is created newly and its id will be in the response. For each existing
|
|
97
|
+
# entry that was not referred to by id, it is deleted. This object only applies to
|
|
98
|
+
# 837i institutional claim forms.
|
|
49
99
|
attr_reader :condition_information
|
|
50
100
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
51
101
|
attr_reader :additional_properties
|
|
@@ -55,29 +105,79 @@ module CandidApiClient
|
|
|
55
105
|
|
|
56
106
|
OMIT = Object.new
|
|
57
107
|
|
|
58
|
-
# @param principal_diagnosis [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearPrincipalDiagnosis]
|
|
59
|
-
#
|
|
60
|
-
#
|
|
61
|
-
#
|
|
62
|
-
# @param
|
|
63
|
-
#
|
|
64
|
-
#
|
|
65
|
-
#
|
|
66
|
-
#
|
|
67
|
-
# @param
|
|
68
|
-
#
|
|
69
|
-
#
|
|
70
|
-
#
|
|
108
|
+
# @param principal_diagnosis [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearPrincipalDiagnosis] Set & Replace semantics. If the id matches the existing principal_diagnosis,
|
|
109
|
+
# that diagnosis is updated in place. If the entry has no id, it is created
|
|
110
|
+
# newly, its id will be in the response, and any existing principal_diagnosis is
|
|
111
|
+
# deleted and removed from any service line pointers.
|
|
112
|
+
# @param other_diagnosis_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformation>] Set & Replace semantics. For each entry that has an id, any previous
|
|
113
|
+
# other_diagnosis_information by that id is updated in place. For each entry
|
|
114
|
+
# without an id, it is created newly and its id will be in the response. For each
|
|
115
|
+
# existing entry that was not referred to by id, it is deleted, including having
|
|
116
|
+
# it removed from any service line pointers.
|
|
117
|
+
# @param admitting_diagnosis [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearAdmittingDiagnosis] Set & Replace semantics. If the id matches the existing admitting_diagnosis,
|
|
118
|
+
# that diagnosis is updated in place. If the entry has no id, it is created
|
|
119
|
+
# newly, its id will be in the response, and any existing principal_diagnosis is
|
|
120
|
+
# deleted. This object only applies to 837i institutional claim forms.
|
|
121
|
+
# @param patient_reasons_for_visit [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::PatientReasonForVisit>] Set & Replace semantics. For each entry that has an id, any previous
|
|
122
|
+
# patient_reasons_for_visit by that id is updated in place. For each entry
|
|
123
|
+
# without an id, it is created newly and its id will be in the response. For each
|
|
124
|
+
# existing entry that was not referred to by id, it is deleted. This object only
|
|
125
|
+
# applies to 837i institutional claim forms.
|
|
126
|
+
# @param external_causes_of_injury [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ExternalCauseOfInjury>] Set & Replace semantics. For each entry that has an id, any previous
|
|
127
|
+
# external_causes_of_injury by that id is updated in place. For each entry
|
|
128
|
+
# without an id, it is created newly and its id will be in the response. For each
|
|
129
|
+
# existing entry that was not referred to by id, it is deleted. This object only
|
|
130
|
+
# applies to 837i institutional claim forms.
|
|
131
|
+
# @param diagnosis_related_groups [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearDiagnosisRelatedGroup] Set & Replace semantics. If the id matches the existing
|
|
132
|
+
# diagnosis_related_groups, that diagnosis_related_group is updated in place. If
|
|
133
|
+
# the entry has no id, it is created newly, its id will be in the response, and
|
|
134
|
+
# any existing diagnosis_related_groups is deleted. This object only applies to
|
|
135
|
+
# 837i institutional claim forms.
|
|
136
|
+
# @param principal_procedure [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearPrincipalProcedureInformation] Set & Replace semantics. If the id matches the existing principal_procedure,
|
|
137
|
+
# that principal_procedure is updated in place. If the entry has no id, it is
|
|
138
|
+
# created newly, its id will be in the response, and any existing
|
|
139
|
+
# principal_procedure is deleted. This object only applies to 837i institutional
|
|
140
|
+
# claim forms.
|
|
141
|
+
# @param other_procedure_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherProcedureInformation>] Set & Replace semantics. For each entry that has an id, any previous
|
|
142
|
+
# other_procedure_information by that id is updated in place. For each entry
|
|
143
|
+
# without an id, it is created newly and its id will be in the response. For each
|
|
144
|
+
# existing entry that was not referred to by id, it is deleted. This object only
|
|
145
|
+
# applies to 837i institutional claim forms.
|
|
146
|
+
# @param occurrence_span_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceSpanInformation>] Set & Replace semantics. For each entry that has an id, any previous
|
|
147
|
+
# occurrence_span_information by that id is updated in place. For each entry
|
|
148
|
+
# without an id, it is created newly and its id will be in the response. For each
|
|
149
|
+
# existing entry that was not referred to by id, it is deleted. This object only
|
|
150
|
+
# applies to 837i institutional claim forms.
|
|
151
|
+
# @param occurrence_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceInformation>] Set & Replace semantics. For each entry that has an id, any previous
|
|
152
|
+
# occurrence_information by that id is updated in place. For each entry without
|
|
153
|
+
# an id, it is created newly and its id will be in the response. For each
|
|
154
|
+
# existing entry that was not referred to by id, it is deleted. This object only
|
|
155
|
+
# applies to 837i institutional claim forms.
|
|
156
|
+
# @param treatment_code_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeInformation>] Set & Replace semantics. For each entry that has an id, any previous
|
|
157
|
+
# treatment_code_information by that id is updated in place. For each entry
|
|
158
|
+
# without an id, it is created newly and its id will be in the response. For each
|
|
159
|
+
# existing entry that was not referred to by id, it is deleted. This object only
|
|
160
|
+
# applies to 837i institutional claim forms.
|
|
161
|
+
# @param value_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ValueInformation>] Set & Replace semantics. For each entry that has an id, any previous
|
|
162
|
+
# value_information by that id is updated in place. For each entry without an id,
|
|
163
|
+
# it is created newly and its id will be in the response. For each existing entry
|
|
164
|
+
# that was not referred to by id, it is deleted. This object only applies to 837i
|
|
165
|
+
# institutional claim forms.
|
|
166
|
+
# @param condition_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionInformation>] Set & Replace semantics. For each entry that has an id, any previous
|
|
167
|
+
# condition_information by that id is updated in place. For each entry without an
|
|
168
|
+
# id, it is created newly and its id will be in the response. For each existing
|
|
169
|
+
# entry that was not referred to by id, it is deleted. This object only applies to
|
|
170
|
+
# 837i institutional claim forms.
|
|
71
171
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
72
172
|
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::HealthCareCodeInformationUpdate]
|
|
73
|
-
def initialize(principal_diagnosis: OMIT,
|
|
74
|
-
|
|
173
|
+
def initialize(principal_diagnosis: OMIT, other_diagnosis_information: OMIT, admitting_diagnosis: OMIT,
|
|
174
|
+
patient_reasons_for_visit: OMIT, external_causes_of_injury: OMIT, diagnosis_related_groups: OMIT, principal_procedure: OMIT, other_procedure_information: OMIT, occurrence_span_information: OMIT, occurrence_information: OMIT, treatment_code_information: OMIT, value_information: OMIT, condition_information: OMIT, additional_properties: nil)
|
|
75
175
|
@principal_diagnosis = principal_diagnosis if principal_diagnosis != OMIT
|
|
176
|
+
@other_diagnosis_information = other_diagnosis_information if other_diagnosis_information != OMIT
|
|
76
177
|
@admitting_diagnosis = admitting_diagnosis if admitting_diagnosis != OMIT
|
|
77
178
|
@patient_reasons_for_visit = patient_reasons_for_visit if patient_reasons_for_visit != OMIT
|
|
78
179
|
@external_causes_of_injury = external_causes_of_injury if external_causes_of_injury != OMIT
|
|
79
180
|
@diagnosis_related_groups = diagnosis_related_groups if diagnosis_related_groups != OMIT
|
|
80
|
-
@other_diagnosis_information = other_diagnosis_information if other_diagnosis_information != OMIT
|
|
81
181
|
@principal_procedure = principal_procedure if principal_procedure != OMIT
|
|
82
182
|
@other_procedure_information = other_procedure_information if other_procedure_information != OMIT
|
|
83
183
|
@occurrence_span_information = occurrence_span_information if occurrence_span_information != OMIT
|
|
@@ -88,11 +188,11 @@ module CandidApiClient
|
|
|
88
188
|
@additional_properties = additional_properties
|
|
89
189
|
@_field_set = {
|
|
90
190
|
"principal_diagnosis": principal_diagnosis,
|
|
191
|
+
"other_diagnosis_information": other_diagnosis_information,
|
|
91
192
|
"admitting_diagnosis": admitting_diagnosis,
|
|
92
193
|
"patient_reasons_for_visit": patient_reasons_for_visit,
|
|
93
194
|
"external_causes_of_injury": external_causes_of_injury,
|
|
94
195
|
"diagnosis_related_groups": diagnosis_related_groups,
|
|
95
|
-
"other_diagnosis_information": other_diagnosis_information,
|
|
96
196
|
"principal_procedure": principal_procedure,
|
|
97
197
|
"other_procedure_information": other_procedure_information,
|
|
98
198
|
"occurrence_span_information": occurrence_span_information,
|
|
@@ -118,6 +218,10 @@ module CandidApiClient
|
|
|
118
218
|
principal_diagnosis = parsed_json["principal_diagnosis"].to_json
|
|
119
219
|
principal_diagnosis = CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearPrincipalDiagnosis.from_json(json_object: principal_diagnosis)
|
|
120
220
|
end
|
|
221
|
+
other_diagnosis_information = parsed_json["other_diagnosis_information"]&.map do |item|
|
|
222
|
+
item = item.to_json
|
|
223
|
+
CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformation.from_json(json_object: item)
|
|
224
|
+
end
|
|
121
225
|
if parsed_json["admitting_diagnosis"].nil?
|
|
122
226
|
admitting_diagnosis = nil
|
|
123
227
|
else
|
|
@@ -138,10 +242,6 @@ module CandidApiClient
|
|
|
138
242
|
diagnosis_related_groups = parsed_json["diagnosis_related_groups"].to_json
|
|
139
243
|
diagnosis_related_groups = CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearDiagnosisRelatedGroup.from_json(json_object: diagnosis_related_groups)
|
|
140
244
|
end
|
|
141
|
-
other_diagnosis_information = parsed_json["other_diagnosis_information"]&.map do |item|
|
|
142
|
-
item = item.to_json
|
|
143
|
-
CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformation.from_json(json_object: item)
|
|
144
|
-
end
|
|
145
245
|
if parsed_json["principal_procedure"].nil?
|
|
146
246
|
principal_procedure = nil
|
|
147
247
|
else
|
|
@@ -174,11 +274,11 @@ module CandidApiClient
|
|
|
174
274
|
end
|
|
175
275
|
new(
|
|
176
276
|
principal_diagnosis: principal_diagnosis,
|
|
277
|
+
other_diagnosis_information: other_diagnosis_information,
|
|
177
278
|
admitting_diagnosis: admitting_diagnosis,
|
|
178
279
|
patient_reasons_for_visit: patient_reasons_for_visit,
|
|
179
280
|
external_causes_of_injury: external_causes_of_injury,
|
|
180
281
|
diagnosis_related_groups: diagnosis_related_groups,
|
|
181
|
-
other_diagnosis_information: other_diagnosis_information,
|
|
182
282
|
principal_procedure: principal_procedure,
|
|
183
283
|
other_procedure_information: other_procedure_information,
|
|
184
284
|
occurrence_span_information: occurrence_span_information,
|
|
@@ -205,11 +305,11 @@ module CandidApiClient
|
|
|
205
305
|
# @return [Void]
|
|
206
306
|
def self.validate_raw(obj:)
|
|
207
307
|
obj.principal_diagnosis.nil? || CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearPrincipalDiagnosis.validate_raw(obj: obj.principal_diagnosis)
|
|
308
|
+
obj.other_diagnosis_information&.is_a?(Array) != false || raise("Passed value for field obj.other_diagnosis_information is not the expected type, validation failed.")
|
|
208
309
|
obj.admitting_diagnosis.nil? || CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearAdmittingDiagnosis.validate_raw(obj: obj.admitting_diagnosis)
|
|
209
310
|
obj.patient_reasons_for_visit&.is_a?(Array) != false || raise("Passed value for field obj.patient_reasons_for_visit is not the expected type, validation failed.")
|
|
210
311
|
obj.external_causes_of_injury&.is_a?(Array) != false || raise("Passed value for field obj.external_causes_of_injury is not the expected type, validation failed.")
|
|
211
312
|
obj.diagnosis_related_groups.nil? || CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearDiagnosisRelatedGroup.validate_raw(obj: obj.diagnosis_related_groups)
|
|
212
|
-
obj.other_diagnosis_information&.is_a?(Array) != false || raise("Passed value for field obj.other_diagnosis_information is not the expected type, validation failed.")
|
|
213
313
|
obj.principal_procedure.nil? || CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearPrincipalProcedureInformation.validate_raw(obj: obj.principal_procedure)
|
|
214
314
|
obj.other_procedure_information&.is_a?(Array) != false || raise("Passed value for field obj.other_procedure_information is not the expected type, validation failed.")
|
|
215
315
|
obj.occurrence_span_information&.is_a?(Array) != false || raise("Passed value for field obj.occurrence_span_information is not the expected type, validation failed.")
|