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
@@ -4,6 +4,11 @@ module CandidApiClient
4
4
  module HealthCareCodeInformation
5
5
  module V1
6
6
  module Types
7
+ # FL 18-28 - Condition Codes
8
+ # Source: UB-04 Manual 2025, Pages 64-81 (FL18-28, Pages 1-18)
9
+ # Excludes codes designated as "Payer Codes" or "FOR PUBLIC HEALTH DATA
10
+ # REPORTING ONLY"
11
+ # unless usage on claims is indicated.
7
12
  class ConditionCode
8
13
  C_01 = "01"
9
14
  C_02 = "02"
@@ -26,6 +31,7 @@ module CandidApiClient
26
31
  C_24 = "24"
27
32
  C_25 = "25"
28
33
  C_26 = "26"
34
+ C_27 = "27"
29
35
  C_28 = "28"
30
36
  C_29 = "29"
31
37
  C_30 = "30"
@@ -46,24 +52,117 @@ module CandidApiClient
46
52
  C_45 = "45"
47
53
  C_46 = "46"
48
54
  C_47 = "47"
55
+ C_48 = "48"
56
+ C_49 = "49"
49
57
  C_50 = "50"
50
58
  C_51 = "51"
51
59
  C_52 = "52"
60
+ C_53 = "53"
52
61
  C_54 = "54"
53
62
  C_55 = "55"
54
63
  C_56 = "56"
64
+ C_57 = "57"
65
+ C_58 = "58"
66
+ C_59 = "59"
67
+ C_60 = "60"
55
68
  C_61 = "61"
56
- C_62 = "62"
69
+ C_66 = "66"
70
+ C_67 = "67"
71
+ C_68 = "68"
72
+ C_69 = "69"
73
+ C_70 = "70"
74
+ C_71 = "71"
75
+ C_72 = "72"
76
+ C_73 = "73"
77
+ C_74 = "74"
78
+ C_75 = "75"
79
+ C_76 = "76"
80
+ C_77 = "77"
81
+ C_78 = "78"
82
+ C_79 = "79"
83
+ C_80 = "80"
84
+ C_81 = "81"
85
+ C_82 = "82"
86
+ C_83 = "83"
87
+ C_84 = "84"
88
+ C_85 = "85"
89
+ C_86 = "86"
90
+ C_87 = "87"
91
+ C_88 = "88"
92
+ C_89 = "89"
93
+ C_90 = "90"
94
+ C_91 = "91"
95
+ C_92 = "92"
96
+ CA_0 = "A0"
57
97
  CA_1 = "A1"
58
98
  CA_2 = "A2"
59
99
  CA_3 = "A3"
60
100
  CA_4 = "A4"
101
+ CA_5 = "A5"
102
+ CA_6 = "A6"
103
+ CA_7 = "A7"
104
+ CA_9 = "A9"
105
+ CAA = "AA"
106
+ CAB = "AB"
107
+ CAC = "AC"
108
+ CAD = "AD"
109
+ CAE = "AE"
110
+ CAF = "AF"
111
+ CAG = "AG"
112
+ CAH = "AH"
113
+ CAI = "AI"
114
+ CAJ = "AJ"
115
+ CAK = "AK"
116
+ CAL = "AL"
117
+ CAM = "AM"
118
+ CAN = "AN"
119
+ CB_0 = "B0"
61
120
  CB_1 = "B1"
62
121
  CB_2 = "B2"
63
122
  CB_3 = "B3"
123
+ CB_4 = "B4"
124
+ CBP = "BP"
64
125
  CC_1 = "C1"
65
126
  CC_2 = "C2"
66
127
  CC_3 = "C3"
128
+ CC_4 = "C4"
129
+ CC_5 = "C5"
130
+ CC_6 = "C6"
131
+ CC_7 = "C7"
132
+ CD_0 = "D0"
133
+ CD_1 = "D1"
134
+ CD_2 = "D2"
135
+ CD_3 = "D3"
136
+ CD_4 = "D4"
137
+ CD_5 = "D5"
138
+ CD_6 = "D6"
139
+ CD_7 = "D7"
140
+ CD_8 = "D8"
141
+ CD_9 = "D9"
142
+ CD_RA = "DR(a)"
143
+ CE_0 = "E0"
144
+ CG_0 = "G0"
145
+ CH_0 = "H0"
146
+ CH_2 = "H2"
147
+ CH_3 = "H3"
148
+ CH_4 = "H4"
149
+ CH_5 = "H5"
150
+ CP_1 = "P1"
151
+ CP_7 = "P7"
152
+ CR_1 = "R1"
153
+ CR_2 = "R2"
154
+ CR_3 = "R3"
155
+ CR_4 = "R4"
156
+ CR_5 = "R5"
157
+ CR_6 = "R6"
158
+ CR_7 = "R7"
159
+ CR_8 = "R8"
160
+ CR_9 = "R9"
161
+ CW_0 = "W0"
162
+ CW_2 = "W2"
163
+ CW_3 = "W3"
164
+ CW_4 = "W4"
165
+ CW_5 = "W5"
67
166
  end
68
167
  end
69
168
  end
@@ -2,8 +2,6 @@
2
2
 
3
3
  require_relative "condition_information_code_qualifier"
4
4
  require_relative "condition_code"
5
- require_relative "code_list_qualifier_code"
6
- require_relative "date_time_period_format_qualifier"
7
5
  require "ostruct"
8
6
  require "json"
9
7
 
@@ -28,50 +26,6 @@ module CandidApiClient
28
26
  # This will be set by the server in responses, but clients are not expected to set
29
27
  # it.
30
28
  attr_reader :encounter_id
31
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
32
- attr_reader :code_list_qualifier
33
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
34
- # You do not need to set this field generally, instead it is provided as advisory
35
- # context on how this HealthCareCodeInformation's data will be available in
36
- # reporting.
37
- attr_reader :industry_code_1
38
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
39
- # You do not need to set this field generally, instead it is provided as advisory
40
- # context on how this HealthCareCodeInformation's data will be available in
41
- # reporting.
42
- attr_reader :industry_code_2
43
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
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 :industry_code_3
48
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
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 :industry_code_4
53
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
54
- # as part of claim process.
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 :date_time_period_format_qualifier
59
- # @return [String] A string, formatted according to date_time_period_format_qualifier, which
60
- # ultimately represents the date time period in which an information object
61
- # is covering.
62
- # You do not need to set this field generally, instead it is provided as advisory
63
- # context on how this HealthCareCodeInformation's data will be available in
64
- # reporting.
65
- attr_reader :date_time_period
66
- # @return [String] A decimal used to represent ValueInformation results.
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
- attr_reader :monetary_amount
71
- # @return [String] 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
- attr_reader :quantity
75
29
  # @return [OpenStruct] Additional properties unmapped to the current class definition
76
30
  attr_reader :additional_properties
77
31
  # @return [Object]
@@ -91,75 +45,20 @@ module CandidApiClient
91
45
  # @param encounter_id [String] The encounter_id of this health care code information if it is already stored.
92
46
  # This will be set by the server in responses, but clients are not expected to set
93
47
  # it.
94
- # @param code_list_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
95
- # @param industry_code_1 [String] A code string whose interpretation depends on the code_list_qualifier being set.
96
- # You do not need to set this field generally, instead it is provided as advisory
97
- # context on how this HealthCareCodeInformation's data will be available in
98
- # reporting.
99
- # @param industry_code_2 [String] A code string whose interpretation depends on the code_list_qualifier being set.
100
- # You do not need to set this field generally, instead it is provided as advisory
101
- # context on how this HealthCareCodeInformation's data will be available in
102
- # reporting.
103
- # @param industry_code_3 [String] A code string whose interpretation depends on the code_list_qualifier being set.
104
- # You do not need to set this field generally, instead it is provided as advisory
105
- # context on how this HealthCareCodeInformation's data will be available in
106
- # reporting.
107
- # @param industry_code_4 [String] A code string whose interpretation depends on the code_list_qualifier being set.
108
- # You do not need to set this field generally, instead it is provided as advisory
109
- # context on how this HealthCareCodeInformation's data will be available in
110
- # reporting.
111
- # @param date_time_period_format_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
112
- # as part of claim process.
113
- # You do not need to set this field generally, instead it is provided as advisory
114
- # context on how this HealthCareCodeInformation's data will be available in
115
- # reporting.
116
- # @param date_time_period [String] A string, formatted according to date_time_period_format_qualifier, which
117
- # ultimately represents the date time period in which an information object
118
- # is covering.
119
- # You do not need to set this field generally, instead it is provided as advisory
120
- # context on how this HealthCareCodeInformation's data will be available in
121
- # reporting.
122
- # @param monetary_amount [String] A decimal used to represent ValueInformation results.
123
- # You do not need to set this field generally, instead it is provided as advisory
124
- # context on how this HealthCareCodeInformation's data will be available in
125
- # reporting.
126
- # @param quantity [String] 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
48
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
130
49
  # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionInformation]
131
50
  def initialize(condition_code_qualifier:, condition_code:, id: OMIT, encounter_id: OMIT,
132
- 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)
51
+ additional_properties: nil)
133
52
  @condition_code_qualifier = condition_code_qualifier
134
53
  @condition_code = condition_code
135
54
  @id = id if id != OMIT
136
55
  @encounter_id = encounter_id if encounter_id != OMIT
137
- @code_list_qualifier = code_list_qualifier if code_list_qualifier != OMIT
138
- @industry_code_1 = industry_code_1 if industry_code_1 != OMIT
139
- @industry_code_2 = industry_code_2 if industry_code_2 != OMIT
140
- @industry_code_3 = industry_code_3 if industry_code_3 != OMIT
141
- @industry_code_4 = industry_code_4 if industry_code_4 != OMIT
142
- if date_time_period_format_qualifier != OMIT
143
- @date_time_period_format_qualifier = date_time_period_format_qualifier
144
- end
145
- @date_time_period = date_time_period if date_time_period != OMIT
146
- @monetary_amount = monetary_amount if monetary_amount != OMIT
147
- @quantity = quantity if quantity != OMIT
148
56
  @additional_properties = additional_properties
149
57
  @_field_set = {
150
58
  "condition_code_qualifier": condition_code_qualifier,
151
59
  "condition_code": condition_code,
152
60
  "id": id,
153
- "encounter_id": encounter_id,
154
- "code_list_qualifier": code_list_qualifier,
155
- "industry_code_1": industry_code_1,
156
- "industry_code_2": industry_code_2,
157
- "industry_code_3": industry_code_3,
158
- "industry_code_4": industry_code_4,
159
- "date_time_period_format_qualifier": date_time_period_format_qualifier,
160
- "date_time_period": date_time_period,
161
- "monetary_amount": monetary_amount,
162
- "quantity": quantity
61
+ "encounter_id": encounter_id
163
62
  }.reject do |_k, v|
164
63
  v == OMIT
165
64
  end
@@ -175,29 +74,11 @@ module CandidApiClient
175
74
  condition_code = struct["condition_code"]
176
75
  id = struct["id"]
177
76
  encounter_id = struct["encounter_id"]
178
- code_list_qualifier = struct["code_list_qualifier"]
179
- industry_code_1 = struct["industry_code_1"]
180
- industry_code_2 = struct["industry_code_2"]
181
- industry_code_3 = struct["industry_code_3"]
182
- industry_code_4 = struct["industry_code_4"]
183
- date_time_period_format_qualifier = struct["date_time_period_format_qualifier"]
184
- date_time_period = struct["date_time_period"]
185
- monetary_amount = struct["monetary_amount"]
186
- quantity = struct["quantity"]
187
77
  new(
188
78
  condition_code_qualifier: condition_code_qualifier,
189
79
  condition_code: condition_code,
190
80
  id: id,
191
81
  encounter_id: encounter_id,
192
- code_list_qualifier: code_list_qualifier,
193
- industry_code_1: industry_code_1,
194
- industry_code_2: industry_code_2,
195
- industry_code_3: industry_code_3,
196
- industry_code_4: industry_code_4,
197
- date_time_period_format_qualifier: date_time_period_format_qualifier,
198
- date_time_period: date_time_period,
199
- monetary_amount: monetary_amount,
200
- quantity: quantity,
201
82
  additional_properties: struct
202
83
  )
203
84
  end
@@ -220,15 +101,6 @@ module CandidApiClient
220
101
  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.")
221
102
  obj.id&.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
222
103
  obj.encounter_id&.is_a?(String) != false || raise("Passed value for field obj.encounter_id is not the expected type, validation failed.")
223
- 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.")
224
- obj.industry_code_1&.is_a?(String) != false || raise("Passed value for field obj.industry_code_1 is not the expected type, validation failed.")
225
- obj.industry_code_2&.is_a?(String) != false || raise("Passed value for field obj.industry_code_2 is not the expected type, validation failed.")
226
- obj.industry_code_3&.is_a?(String) != false || raise("Passed value for field obj.industry_code_3 is not the expected type, validation failed.")
227
- obj.industry_code_4&.is_a?(String) != false || raise("Passed value for field obj.industry_code_4 is not the expected type, validation failed.")
228
- 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.")
229
- obj.date_time_period&.is_a?(String) != false || raise("Passed value for field obj.date_time_period is not the expected type, validation failed.")
230
- obj.monetary_amount&.is_a?(String) != false || raise("Passed value for field obj.monetary_amount is not the expected type, validation failed.")
231
- obj.quantity&.is_a?(String) != false || raise("Passed value for field obj.quantity is not the expected type, validation failed.")
232
104
  end
233
105
  end
234
106
  end
@@ -1,8 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "diagnosis_related_group_code_qualifier"
4
- require_relative "code_list_qualifier_code"
5
- require_relative "date_time_period_format_qualifier"
6
4
  require "ostruct"
7
5
  require "json"
8
6
 
@@ -27,50 +25,6 @@ module CandidApiClient
27
25
  # This will be set by the server in responses, but clients are not expected to set
28
26
  # it.
29
27
  attr_reader :encounter_id
30
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
31
- attr_reader :code_list_qualifier
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_1
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_2
42
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
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 :industry_code_3
47
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
48
- # You do not need to set this field generally, instead it is provided as advisory
49
- # context on how this HealthCareCodeInformation's data will be available in
50
- # reporting.
51
- attr_reader :industry_code_4
52
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
53
- # as part of claim process.
54
- # You do not need to set this field generally, instead it is provided as advisory
55
- # context on how this HealthCareCodeInformation's data will be available in
56
- # reporting.
57
- attr_reader :date_time_period_format_qualifier
58
- # @return [String] A string, formatted according to date_time_period_format_qualifier, which
59
- # ultimately represents the date time period in which an information object
60
- # is covering.
61
- # You do not need to set this field generally, instead it is provided as advisory
62
- # context on how this HealthCareCodeInformation's data will be available in
63
- # reporting.
64
- attr_reader :date_time_period
65
- # @return [String] A decimal used to represent ValueInformation results.
66
- # You do not need to set this field generally, instead it is provided as advisory
67
- # context on how this HealthCareCodeInformation's data will be available in
68
- # reporting.
69
- attr_reader :monetary_amount
70
- # @return [String] You do not need to set this field generally, instead it is provided as advisory
71
- # context on how this HealthCareCodeInformation's data will be available in
72
- # reporting.
73
- attr_reader :quantity
74
28
  # @return [OpenStruct] Additional properties unmapped to the current class definition
75
29
  attr_reader :additional_properties
76
30
  # @return [Object]
@@ -90,75 +44,20 @@ module CandidApiClient
90
44
  # @param encounter_id [String] The encounter_id of this health care code information if it is already stored.
91
45
  # This will be set by the server in responses, but clients are not expected to set
92
46
  # it.
93
- # @param code_list_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
94
- # @param industry_code_1 [String] A code string whose interpretation depends on the code_list_qualifier being set.
95
- # You do not need to set this field generally, instead it is provided as advisory
96
- # context on how this HealthCareCodeInformation's data will be available in
97
- # reporting.
98
- # @param industry_code_2 [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_3 [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_4 [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 date_time_period_format_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
111
- # as part of claim process.
112
- # You do not need to set this field generally, instead it is provided as advisory
113
- # context on how this HealthCareCodeInformation's data will be available in
114
- # reporting.
115
- # @param date_time_period [String] A string, formatted according to date_time_period_format_qualifier, which
116
- # ultimately represents the date time period in which an information object
117
- # is covering.
118
- # You do not need to set this field generally, instead it is provided as advisory
119
- # context on how this HealthCareCodeInformation's data will be available in
120
- # reporting.
121
- # @param monetary_amount [String] A decimal used to represent ValueInformation results.
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 quantity [String] You do not need to set this field generally, instead it is provided as advisory
126
- # context on how this HealthCareCodeInformation's data will be available in
127
- # reporting.
128
47
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
129
48
  # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::DiagnosisRelatedGroup]
130
49
  def initialize(diagnosis_related_group_code_qualifier:, diagnosis_related_group_code:, id: OMIT,
131
- 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)
50
+ encounter_id: OMIT, additional_properties: nil)
132
51
  @diagnosis_related_group_code_qualifier = diagnosis_related_group_code_qualifier
133
52
  @diagnosis_related_group_code = diagnosis_related_group_code
134
53
  @id = id if id != OMIT
135
54
  @encounter_id = encounter_id if encounter_id != OMIT
136
- @code_list_qualifier = code_list_qualifier if code_list_qualifier != OMIT
137
- @industry_code_1 = industry_code_1 if industry_code_1 != OMIT
138
- @industry_code_2 = industry_code_2 if industry_code_2 != OMIT
139
- @industry_code_3 = industry_code_3 if industry_code_3 != OMIT
140
- @industry_code_4 = industry_code_4 if industry_code_4 != OMIT
141
- if date_time_period_format_qualifier != OMIT
142
- @date_time_period_format_qualifier = date_time_period_format_qualifier
143
- end
144
- @date_time_period = date_time_period if date_time_period != OMIT
145
- @monetary_amount = monetary_amount if monetary_amount != OMIT
146
- @quantity = quantity if quantity != OMIT
147
55
  @additional_properties = additional_properties
148
56
  @_field_set = {
149
57
  "diagnosis_related_group_code_qualifier": diagnosis_related_group_code_qualifier,
150
58
  "diagnosis_related_group_code": diagnosis_related_group_code,
151
59
  "id": id,
152
- "encounter_id": encounter_id,
153
- "code_list_qualifier": code_list_qualifier,
154
- "industry_code_1": industry_code_1,
155
- "industry_code_2": industry_code_2,
156
- "industry_code_3": industry_code_3,
157
- "industry_code_4": industry_code_4,
158
- "date_time_period_format_qualifier": date_time_period_format_qualifier,
159
- "date_time_period": date_time_period,
160
- "monetary_amount": monetary_amount,
161
- "quantity": quantity
60
+ "encounter_id": encounter_id
162
61
  }.reject do |_k, v|
163
62
  v == OMIT
164
63
  end
@@ -174,29 +73,11 @@ module CandidApiClient
174
73
  diagnosis_related_group_code = struct["diagnosis_related_group_code"]
175
74
  id = struct["id"]
176
75
  encounter_id = struct["encounter_id"]
177
- code_list_qualifier = struct["code_list_qualifier"]
178
- industry_code_1 = struct["industry_code_1"]
179
- industry_code_2 = struct["industry_code_2"]
180
- industry_code_3 = struct["industry_code_3"]
181
- industry_code_4 = struct["industry_code_4"]
182
- date_time_period_format_qualifier = struct["date_time_period_format_qualifier"]
183
- date_time_period = struct["date_time_period"]
184
- monetary_amount = struct["monetary_amount"]
185
- quantity = struct["quantity"]
186
76
  new(
187
77
  diagnosis_related_group_code_qualifier: diagnosis_related_group_code_qualifier,
188
78
  diagnosis_related_group_code: diagnosis_related_group_code,
189
79
  id: id,
190
80
  encounter_id: encounter_id,
191
- code_list_qualifier: code_list_qualifier,
192
- industry_code_1: industry_code_1,
193
- industry_code_2: industry_code_2,
194
- industry_code_3: industry_code_3,
195
- industry_code_4: industry_code_4,
196
- date_time_period_format_qualifier: date_time_period_format_qualifier,
197
- date_time_period: date_time_period,
198
- monetary_amount: monetary_amount,
199
- quantity: quantity,
200
81
  additional_properties: struct
201
82
  )
202
83
  end
@@ -219,15 +100,6 @@ module CandidApiClient
219
100
  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.")
220
101
  obj.id&.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
221
102
  obj.encounter_id&.is_a?(String) != false || raise("Passed value for field obj.encounter_id is not the expected type, validation failed.")
222
- 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.")
223
- obj.industry_code_1&.is_a?(String) != false || raise("Passed value for field obj.industry_code_1 is not the expected type, validation failed.")
224
- obj.industry_code_2&.is_a?(String) != false || raise("Passed value for field obj.industry_code_2 is not the expected type, validation failed.")
225
- obj.industry_code_3&.is_a?(String) != false || raise("Passed value for field obj.industry_code_3 is not the expected type, validation failed.")
226
- obj.industry_code_4&.is_a?(String) != false || raise("Passed value for field obj.industry_code_4 is not the expected type, validation failed.")
227
- 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.")
228
- obj.date_time_period&.is_a?(String) != false || raise("Passed value for field obj.date_time_period is not the expected type, validation failed.")
229
- obj.monetary_amount&.is_a?(String) != false || raise("Passed value for field obj.monetary_amount is not the expected type, validation failed.")
230
- obj.quantity&.is_a?(String) != false || raise("Passed value for field obj.quantity is not the expected type, validation failed.")
231
103
  end
232
104
  end
233
105
  end