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.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/auth/default/client.rb +0 -74
  3. data/lib/candidhealth/charge_capture/v_1/client.rb +71 -4
  4. data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +33 -2
  5. data/lib/candidhealth/diagnoses/client.rb +2 -2
  6. data/lib/candidhealth/encounters/v_4/client.rb +483 -2510
  7. data/lib/candidhealth/encounters/v_4/types/encounter_submission_expectation.rb +3 -6
  8. data/lib/candidhealth/guarantor/v_1/client.rb +4 -0
  9. data/lib/candidhealth/guarantor/v_1/types/guarantor.rb +10 -2
  10. data/lib/candidhealth/guarantor/v_1/types/guarantor_create.rb +10 -2
  11. data/lib/candidhealth/guarantor/v_1/types/guarantor_optional.rb +10 -2
  12. data/lib/candidhealth/guarantor/v_1/types/guarantor_update.rb +10 -2
  13. data/lib/candidhealth/health_care_code_information/v_1/client.rb +2 -74
  14. data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis.rb +2 -130
  15. data/lib/candidhealth/health_care_code_information/v_1/types/condition_code.rb +100 -1
  16. data/lib/candidhealth/health_care_code_information/v_1/types/condition_information.rb +2 -130
  17. data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group.rb +2 -130
  18. data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury.rb +2 -130
  19. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information.rb +2 -134
  20. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_get_all_response.rb +34 -34
  21. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_new.rb +4 -139
  22. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_update.rb +138 -38
  23. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_code.rb +1 -0
  24. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information.rb +10 -132
  25. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_code.rb +6 -1
  26. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information.rb +2 -130
  27. data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information.rb +2 -130
  28. data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information.rb +10 -132
  29. data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit.rb +2 -130
  30. data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis.rb +2 -130
  31. data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information.rb +10 -132
  32. data/lib/candidhealth/health_care_code_information/v_1/types/rd_8_date.rb +16 -4
  33. data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information.rb +2 -130
  34. data/lib/candidhealth/health_care_code_information/v_1/types/value_information.rb +2 -130
  35. data/lib/candidhealth/individual/types/patient.rb +10 -2
  36. data/lib/candidhealth/individual/types/patient_create.rb +9 -1
  37. data/lib/candidhealth/individual/types/patient_update.rb +9 -1
  38. data/lib/candidhealth/individual/types/patient_update_with_optional_address.rb +9 -1
  39. data/lib/candidhealth/organization_providers/v_2/types/license_type.rb +2 -0
  40. data/lib/candidhealth/organization_service_facilities/v_2/client.rb +77 -4
  41. data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility.rb +21 -2
  42. data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_create.rb +21 -2
  43. data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_update.rb +21 -2
  44. data/lib/candidhealth/payers/v_4/types/clearinghouse_payer_info.rb +36 -2
  45. data/lib/candidhealth/payers/v_4/types/payer.rb +15 -7
  46. data/lib/candidhealth/payers/v_4/types/payer_ids.rb +12 -35
  47. data/lib/candidhealth/payers/v_4/types/primary_payer_ids.rb +84 -0
  48. data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +8 -2
  49. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +13 -1
  50. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +13 -1
  51. data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +13 -1
  52. data/lib/candidhealth/pre_encounter/patients/v_1/types/patient_service_facility.rb +63 -0
  53. data/lib/candidhealth/service_lines/v_2/client.rb +2 -2
  54. data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +8 -8
  55. data/lib/candidhealth/service_lines/v_2/types/service_line_create_base.rb +8 -8
  56. data/lib/candidhealth/service_lines/v_2/types/service_line_create_base_base.rb +8 -8
  57. data/lib/requests.rb +2 -2
  58. data/lib/types_export.rb +2 -21
  59. metadata +4 -23
  60. data/lib/candidhealth/encounters_universal/types/universal_encounter_create.rb +0 -944
  61. data/lib/candidhealth/encounters_universal/types/universal_encounter_create_from_pre_encounter.rb +0 -791
  62. data/lib/candidhealth/encounters_universal/types/universal_encounter_update.rb +0 -872
  63. data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis_new.rb +0 -206
  64. data/lib/candidhealth/health_care_code_information/v_1/types/code_list_qualifier_code.rb +0 -1068
  65. data/lib/candidhealth/health_care_code_information/v_1/types/condition_information_new.rb +0 -207
  66. data/lib/candidhealth/health_care_code_information/v_1/types/date_time_period_format_qualifier.rb +0 -54
  67. data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group_new.rb +0 -206
  68. data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury_new.rb +0 -245
  69. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_create.rb +0 -225
  70. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information_new.rb +0 -219
  71. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information_new.rb +0 -222
  72. data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information_new.rb +0 -215
  73. data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information_new.rb +0 -218
  74. data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit_new.rb +0 -206
  75. data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis_new.rb +0 -215
  76. data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information_new.rb +0 -216
  77. data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information_new.rb +0 -206
  78. data/lib/candidhealth/health_care_code_information/v_1/types/value_information_new.rb +0 -215
  79. data/lib/candidhealth/service_lines/v_2/types/universal_service_line_create.rb +0 -271
  80. data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite_update.rb +0 -112
@@ -1,207 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "condition_information_code_qualifier"
4
- require_relative "condition_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 BG code qualifier value.
15
- class ConditionInformationNew
16
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionInformationCodeQualifier]
17
- attr_reader :condition_code_qualifier
18
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionCode]
19
- attr_reader :condition_code
20
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
21
- attr_reader :code_list_qualifier
22
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
23
- # You do not need to set this field generally, instead it is provided as advisory
24
- # context on how this HealthCareCodeInformation's data will be available in
25
- # reporting.
26
- attr_reader :industry_code_1
27
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
28
- # You do not need to set this field generally, instead it is provided as advisory
29
- # context on how this HealthCareCodeInformation's data will be available in
30
- # reporting.
31
- attr_reader :industry_code_2
32
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
33
- # You do not need to set this field generally, instead it is provided as advisory
34
- # context on how this HealthCareCodeInformation's data will be available in
35
- # reporting.
36
- attr_reader :industry_code_3
37
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
38
- # You do not need to set this field generally, instead it is provided as advisory
39
- # context on how this HealthCareCodeInformation's data will be available in
40
- # reporting.
41
- attr_reader :industry_code_4
42
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
43
- # as part of claim process.
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_format_qualifier
48
- # @return [String] A string, formatted according to date_time_period_format_qualifier, which
49
- # ultimately represents the date time period in which an information object
50
- # is covering.
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 :date_time_period
55
- # @return [String] A decimal used to represent ValueInformation results.
56
- # You do not need to set this field generally, instead it is provided as advisory
57
- # context on how this HealthCareCodeInformation's data will be available in
58
- # reporting.
59
- attr_reader :monetary_amount
60
- # @return [String] You do not need to set this field generally, instead it is provided as advisory
61
- # context on how this HealthCareCodeInformation's data will be available in
62
- # reporting.
63
- attr_reader :quantity
64
- # @return [OpenStruct] Additional properties unmapped to the current class definition
65
- attr_reader :additional_properties
66
- # @return [Object]
67
- attr_reader :_field_set
68
- protected :_field_set
69
-
70
- OMIT = Object.new
71
-
72
- # @param condition_code_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionInformationCodeQualifier]
73
- # @param condition_code [CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionCode]
74
- # @param code_list_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
75
- # @param industry_code_1 [String] A code string whose interpretation depends on the code_list_qualifier being set.
76
- # You do not need to set this field generally, instead it is provided as advisory
77
- # context on how this HealthCareCodeInformation's data will be available in
78
- # reporting.
79
- # @param industry_code_2 [String] A code string whose interpretation depends on the code_list_qualifier being set.
80
- # You do not need to set this field generally, instead it is provided as advisory
81
- # context on how this HealthCareCodeInformation's data will be available in
82
- # reporting.
83
- # @param industry_code_3 [String] A code string whose interpretation depends on the code_list_qualifier being set.
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 industry_code_4 [String] A code string whose interpretation depends on the code_list_qualifier being set.
88
- # You do not need to set this field generally, instead it is provided as advisory
89
- # context on how this HealthCareCodeInformation's data will be available in
90
- # reporting.
91
- # @param date_time_period_format_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
92
- # as part of claim process.
93
- # You do not need to set this field generally, instead it is provided as advisory
94
- # context on how this HealthCareCodeInformation's data will be available in
95
- # reporting.
96
- # @param date_time_period [String] A string, formatted according to date_time_period_format_qualifier, which
97
- # ultimately represents the date time period in which an information object
98
- # is covering.
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 monetary_amount [String] A decimal used to represent ValueInformation results.
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 quantity [String] 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 additional_properties [OpenStruct] Additional properties unmapped to the current class definition
110
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionInformationNew]
111
- def initialize(condition_code_qualifier:, condition_code:, code_list_qualifier: OMIT, industry_code_1: OMIT,
112
- 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)
113
- @condition_code_qualifier = condition_code_qualifier
114
- @condition_code = condition_code
115
- @code_list_qualifier = code_list_qualifier if code_list_qualifier != OMIT
116
- @industry_code_1 = industry_code_1 if industry_code_1 != OMIT
117
- @industry_code_2 = industry_code_2 if industry_code_2 != OMIT
118
- @industry_code_3 = industry_code_3 if industry_code_3 != OMIT
119
- @industry_code_4 = industry_code_4 if industry_code_4 != OMIT
120
- if date_time_period_format_qualifier != OMIT
121
- @date_time_period_format_qualifier = date_time_period_format_qualifier
122
- end
123
- @date_time_period = date_time_period if date_time_period != OMIT
124
- @monetary_amount = monetary_amount if monetary_amount != OMIT
125
- @quantity = quantity if quantity != OMIT
126
- @additional_properties = additional_properties
127
- @_field_set = {
128
- "condition_code_qualifier": condition_code_qualifier,
129
- "condition_code": condition_code,
130
- "code_list_qualifier": code_list_qualifier,
131
- "industry_code_1": industry_code_1,
132
- "industry_code_2": industry_code_2,
133
- "industry_code_3": industry_code_3,
134
- "industry_code_4": industry_code_4,
135
- "date_time_period_format_qualifier": date_time_period_format_qualifier,
136
- "date_time_period": date_time_period,
137
- "monetary_amount": monetary_amount,
138
- "quantity": quantity
139
- }.reject do |_k, v|
140
- v == OMIT
141
- end
142
- end
143
-
144
- # Deserialize a JSON object to an instance of ConditionInformationNew
145
- #
146
- # @param json_object [String]
147
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionInformationNew]
148
- def self.from_json(json_object:)
149
- struct = JSON.parse(json_object, object_class: OpenStruct)
150
- condition_code_qualifier = struct["condition_code_qualifier"]
151
- condition_code = struct["condition_code"]
152
- code_list_qualifier = struct["code_list_qualifier"]
153
- industry_code_1 = struct["industry_code_1"]
154
- industry_code_2 = struct["industry_code_2"]
155
- industry_code_3 = struct["industry_code_3"]
156
- industry_code_4 = struct["industry_code_4"]
157
- date_time_period_format_qualifier = struct["date_time_period_format_qualifier"]
158
- date_time_period = struct["date_time_period"]
159
- monetary_amount = struct["monetary_amount"]
160
- quantity = struct["quantity"]
161
- new(
162
- condition_code_qualifier: condition_code_qualifier,
163
- condition_code: condition_code,
164
- code_list_qualifier: code_list_qualifier,
165
- industry_code_1: industry_code_1,
166
- industry_code_2: industry_code_2,
167
- industry_code_3: industry_code_3,
168
- industry_code_4: industry_code_4,
169
- date_time_period_format_qualifier: date_time_period_format_qualifier,
170
- date_time_period: date_time_period,
171
- monetary_amount: monetary_amount,
172
- quantity: quantity,
173
- additional_properties: struct
174
- )
175
- end
176
-
177
- # Serialize an instance of ConditionInformationNew to a JSON object
178
- #
179
- # @return [String]
180
- def to_json(*_args)
181
- @_field_set&.to_json
182
- end
183
-
184
- # Leveraged for Union-type generation, validate_raw attempts to parse the given
185
- # hash and check each fields type against the current object's property
186
- # definitions.
187
- #
188
- # @param obj [Object]
189
- # @return [Void]
190
- def self.validate_raw(obj:)
191
- obj.condition_code_qualifier.is_a?(CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionInformationCodeQualifier) != false || raise("Passed value for field obj.condition_code_qualifier is not the expected type, validation failed.")
192
- obj.condition_code.is_a?(CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionCode) != false || raise("Passed value for field obj.condition_code is not the expected type, validation failed.")
193
- 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.")
194
- obj.industry_code_1&.is_a?(String) != false || raise("Passed value for field obj.industry_code_1 is not the expected type, validation failed.")
195
- obj.industry_code_2&.is_a?(String) != false || raise("Passed value for field obj.industry_code_2 is not the expected type, validation failed.")
196
- obj.industry_code_3&.is_a?(String) != false || raise("Passed value for field obj.industry_code_3 is not the expected type, validation failed.")
197
- obj.industry_code_4&.is_a?(String) != false || raise("Passed value for field obj.industry_code_4 is not the expected type, validation failed.")
198
- 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.")
199
- obj.date_time_period&.is_a?(String) != false || raise("Passed value for field obj.date_time_period is not the expected type, validation failed.")
200
- obj.monetary_amount&.is_a?(String) != false || raise("Passed value for field obj.monetary_amount is not the expected type, validation failed.")
201
- obj.quantity&.is_a?(String) != false || raise("Passed value for field obj.quantity is not the expected type, validation failed.")
202
- end
203
- end
204
- end
205
- end
206
- end
207
- end
@@ -1,54 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module CandidApiClient
4
- module HealthCareCodeInformation
5
- module V1
6
- module Types
7
- class DateTimePeriodFormatQualifier
8
- CCC = "CC"
9
- CCD = "CD"
10
- CCM = "CM"
11
- CCQ = "CQ"
12
- CCY = "CY"
13
- CD_6 = "D6"
14
- CD_8 = "D8"
15
- CDA = "DA"
16
- CDB = "DB"
17
- CDD = "DD"
18
- CDT = "DT"
19
- CEH = "EH"
20
- CKA = "KA"
21
- CMD = "MD"
22
- CMM = "MM"
23
- CRD = "RD"
24
- CTC = "TC"
25
- CTM = "TM"
26
- CTQ = "TQ"
27
- CTR = "TR"
28
- CTS = "TS"
29
- CTT = "TT"
30
- CTU = "TU"
31
- CUN = "UN"
32
- CYM = "YM"
33
- CYY = "YY"
34
- CDDT = "DDT"
35
- CDTD = "DTD"
36
- CDTS = "DTS"
37
- CMCY = "MCY"
38
- CRD_2 = "RD2"
39
- CRD_4 = "RD4"
40
- CRD_5 = "RD5"
41
- CRD_6 = "RD6"
42
- CRD_8 = "RD8"
43
- CRDM = "RDM"
44
- CRDT = "RDT"
45
- CRMD = "RMD"
46
- CRMY = "RMY"
47
- CRTM = "RTM"
48
- CRTS = "RTS"
49
- CYMM = "YMM"
50
- end
51
- end
52
- end
53
- end
54
- end
@@ -1,206 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "diagnosis_related_group_code_qualifier"
4
- require_relative "code_list_qualifier_code"
5
- require_relative "date_time_period_format_qualifier"
6
- require "ostruct"
7
- require "json"
8
-
9
- module CandidApiClient
10
- module HealthCareCodeInformation
11
- module V1
12
- module Types
13
- # This corresponds to DR code qualifier values.
14
- class DiagnosisRelatedGroupNew
15
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::DiagnosisRelatedGroupCodeQualifier]
16
- attr_reader :diagnosis_related_group_code_qualifier
17
- # @return [String]
18
- attr_reader :diagnosis_related_group_code
19
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
20
- attr_reader :code_list_qualifier
21
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
22
- # You do not need to set this field generally, instead it is provided as advisory
23
- # context on how this HealthCareCodeInformation's data will be available in
24
- # reporting.
25
- attr_reader :industry_code_1
26
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
27
- # You do not need to set this field generally, instead it is provided as advisory
28
- # context on how this HealthCareCodeInformation's data will be available in
29
- # reporting.
30
- attr_reader :industry_code_2
31
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
32
- # You do not need to set this field generally, instead it is provided as advisory
33
- # context on how this HealthCareCodeInformation's data will be available in
34
- # reporting.
35
- attr_reader :industry_code_3
36
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
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 :industry_code_4
41
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
42
- # as part of claim process.
43
- # You do not need to set this field generally, instead it is provided as advisory
44
- # context on how this HealthCareCodeInformation's data will be available in
45
- # reporting.
46
- attr_reader :date_time_period_format_qualifier
47
- # @return [String] A string, formatted according to date_time_period_format_qualifier, which
48
- # ultimately represents the date time period in which an information object
49
- # is covering.
50
- # You do not need to set this field generally, instead it is provided as advisory
51
- # context on how this HealthCareCodeInformation's data will be available in
52
- # reporting.
53
- attr_reader :date_time_period
54
- # @return [String] A decimal used to represent ValueInformation results.
55
- # You do not need to set this field generally, instead it is provided as advisory
56
- # context on how this HealthCareCodeInformation's data will be available in
57
- # reporting.
58
- attr_reader :monetary_amount
59
- # @return [String] You do not need to set this field generally, instead it is provided as advisory
60
- # context on how this HealthCareCodeInformation's data will be available in
61
- # reporting.
62
- attr_reader :quantity
63
- # @return [OpenStruct] Additional properties unmapped to the current class definition
64
- attr_reader :additional_properties
65
- # @return [Object]
66
- attr_reader :_field_set
67
- protected :_field_set
68
-
69
- OMIT = Object.new
70
-
71
- # @param diagnosis_related_group_code_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::DiagnosisRelatedGroupCodeQualifier]
72
- # @param diagnosis_related_group_code [String]
73
- # @param code_list_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
74
- # @param industry_code_1 [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_2 [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_3 [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_4 [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 date_time_period_format_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
91
- # as part of claim process.
92
- # You do not need to set this field generally, instead it is provided as advisory
93
- # context on how this HealthCareCodeInformation's data will be available in
94
- # reporting.
95
- # @param date_time_period [String] A string, formatted according to date_time_period_format_qualifier, which
96
- # ultimately represents the date time period in which an information object
97
- # is covering.
98
- # You do not need to set this field generally, instead it is provided as advisory
99
- # context on how this HealthCareCodeInformation's data will be available in
100
- # reporting.
101
- # @param monetary_amount [String] A decimal used to represent ValueInformation results.
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 quantity [String] You do not need to set this field generally, instead it is provided as advisory
106
- # context on how this HealthCareCodeInformation's data will be available in
107
- # reporting.
108
- # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
109
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::DiagnosisRelatedGroupNew]
110
- def initialize(diagnosis_related_group_code_qualifier:, diagnosis_related_group_code:,
111
- 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)
112
- @diagnosis_related_group_code_qualifier = diagnosis_related_group_code_qualifier
113
- @diagnosis_related_group_code = diagnosis_related_group_code
114
- @code_list_qualifier = code_list_qualifier if code_list_qualifier != OMIT
115
- @industry_code_1 = industry_code_1 if industry_code_1 != OMIT
116
- @industry_code_2 = industry_code_2 if industry_code_2 != OMIT
117
- @industry_code_3 = industry_code_3 if industry_code_3 != OMIT
118
- @industry_code_4 = industry_code_4 if industry_code_4 != OMIT
119
- if date_time_period_format_qualifier != OMIT
120
- @date_time_period_format_qualifier = date_time_period_format_qualifier
121
- end
122
- @date_time_period = date_time_period if date_time_period != OMIT
123
- @monetary_amount = monetary_amount if monetary_amount != OMIT
124
- @quantity = quantity if quantity != OMIT
125
- @additional_properties = additional_properties
126
- @_field_set = {
127
- "diagnosis_related_group_code_qualifier": diagnosis_related_group_code_qualifier,
128
- "diagnosis_related_group_code": diagnosis_related_group_code,
129
- "code_list_qualifier": code_list_qualifier,
130
- "industry_code_1": industry_code_1,
131
- "industry_code_2": industry_code_2,
132
- "industry_code_3": industry_code_3,
133
- "industry_code_4": industry_code_4,
134
- "date_time_period_format_qualifier": date_time_period_format_qualifier,
135
- "date_time_period": date_time_period,
136
- "monetary_amount": monetary_amount,
137
- "quantity": quantity
138
- }.reject do |_k, v|
139
- v == OMIT
140
- end
141
- end
142
-
143
- # Deserialize a JSON object to an instance of DiagnosisRelatedGroupNew
144
- #
145
- # @param json_object [String]
146
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::DiagnosisRelatedGroupNew]
147
- def self.from_json(json_object:)
148
- struct = JSON.parse(json_object, object_class: OpenStruct)
149
- diagnosis_related_group_code_qualifier = struct["diagnosis_related_group_code_qualifier"]
150
- diagnosis_related_group_code = struct["diagnosis_related_group_code"]
151
- code_list_qualifier = struct["code_list_qualifier"]
152
- industry_code_1 = struct["industry_code_1"]
153
- industry_code_2 = struct["industry_code_2"]
154
- industry_code_3 = struct["industry_code_3"]
155
- industry_code_4 = struct["industry_code_4"]
156
- date_time_period_format_qualifier = struct["date_time_period_format_qualifier"]
157
- date_time_period = struct["date_time_period"]
158
- monetary_amount = struct["monetary_amount"]
159
- quantity = struct["quantity"]
160
- new(
161
- diagnosis_related_group_code_qualifier: diagnosis_related_group_code_qualifier,
162
- diagnosis_related_group_code: diagnosis_related_group_code,
163
- code_list_qualifier: code_list_qualifier,
164
- industry_code_1: industry_code_1,
165
- industry_code_2: industry_code_2,
166
- industry_code_3: industry_code_3,
167
- industry_code_4: industry_code_4,
168
- date_time_period_format_qualifier: date_time_period_format_qualifier,
169
- date_time_period: date_time_period,
170
- monetary_amount: monetary_amount,
171
- quantity: quantity,
172
- additional_properties: struct
173
- )
174
- end
175
-
176
- # Serialize an instance of DiagnosisRelatedGroupNew to a JSON object
177
- #
178
- # @return [String]
179
- def to_json(*_args)
180
- @_field_set&.to_json
181
- end
182
-
183
- # Leveraged for Union-type generation, validate_raw attempts to parse the given
184
- # hash and check each fields type against the current object's property
185
- # definitions.
186
- #
187
- # @param obj [Object]
188
- # @return [Void]
189
- def self.validate_raw(obj:)
190
- obj.diagnosis_related_group_code_qualifier.is_a?(CandidApiClient::HealthCareCodeInformation::V1::Types::DiagnosisRelatedGroupCodeQualifier) != false || raise("Passed value for field obj.diagnosis_related_group_code_qualifier is not the expected type, validation failed.")
191
- obj.diagnosis_related_group_code.is_a?(String) != false || raise("Passed value for field obj.diagnosis_related_group_code is not the expected type, validation failed.")
192
- 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.")
193
- obj.industry_code_1&.is_a?(String) != false || raise("Passed value for field obj.industry_code_1 is not the expected type, validation failed.")
194
- obj.industry_code_2&.is_a?(String) != false || raise("Passed value for field obj.industry_code_2 is not the expected type, validation failed.")
195
- obj.industry_code_3&.is_a?(String) != false || raise("Passed value for field obj.industry_code_3 is not the expected type, validation failed.")
196
- obj.industry_code_4&.is_a?(String) != false || raise("Passed value for field obj.industry_code_4 is not the expected type, validation failed.")
197
- 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.")
198
- obj.date_time_period&.is_a?(String) != false || raise("Passed value for field obj.date_time_period is not the expected type, validation failed.")
199
- obj.monetary_amount&.is_a?(String) != false || raise("Passed value for field obj.monetary_amount is not the expected type, validation failed.")
200
- obj.quantity&.is_a?(String) != false || raise("Passed value for field obj.quantity is not the expected type, validation failed.")
201
- end
202
- end
203
- end
204
- end
205
- end
206
- end