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
@@ -2,8 +2,6 @@
2
2
 
3
3
  require_relative "external_cause_of_injury_code_qualifier"
4
4
  require_relative "present_on_admission_indicator_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
 
@@ -30,50 +28,6 @@ module CandidApiClient
30
28
  # This will be set by the server in responses, but clients are not expected to set
31
29
  # it.
32
30
  attr_reader :encounter_id
33
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
34
- attr_reader :code_list_qualifier
35
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
36
- # You do not need to set this field generally, instead it is provided as advisory
37
- # context on how this HealthCareCodeInformation's data will be available in
38
- # reporting.
39
- attr_reader :industry_code_1
40
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
41
- # You do not need to set this field generally, instead it is provided as advisory
42
- # context on how this HealthCareCodeInformation's data will be available in
43
- # reporting.
44
- attr_reader :industry_code_2
45
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
46
- # You do not need to set this field generally, instead it is provided as advisory
47
- # context on how this HealthCareCodeInformation's data will be available in
48
- # reporting.
49
- attr_reader :industry_code_3
50
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
51
- # You do not need to set this field generally, instead it is provided as advisory
52
- # context on how this HealthCareCodeInformation's data will be available in
53
- # reporting.
54
- attr_reader :industry_code_4
55
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
56
- # as part of claim process.
57
- # You do not need to set this field generally, instead it is provided as advisory
58
- # context on how this HealthCareCodeInformation's data will be available in
59
- # reporting.
60
- attr_reader :date_time_period_format_qualifier
61
- # @return [String] A string, formatted according to date_time_period_format_qualifier, which
62
- # ultimately represents the date time period in which an information object
63
- # is covering.
64
- # You do not need to set this field generally, instead it is provided as advisory
65
- # context on how this HealthCareCodeInformation's data will be available in
66
- # reporting.
67
- attr_reader :date_time_period
68
- # @return [String] A decimal used to represent ValueInformation results.
69
- # You do not need to set this field generally, instead it is provided as advisory
70
- # context on how this HealthCareCodeInformation's data will be available in
71
- # reporting.
72
- attr_reader :monetary_amount
73
- # @return [String] You do not need to set this field generally, instead it is provided as advisory
74
- # context on how this HealthCareCodeInformation's data will be available in
75
- # reporting.
76
- attr_reader :quantity
77
31
  # @return [OpenStruct] Additional properties unmapped to the current class definition
78
32
  attr_reader :additional_properties
79
33
  # @return [Object]
@@ -94,77 +48,22 @@ module CandidApiClient
94
48
  # @param encounter_id [String] The encounter_id of this health care code information if it is already stored.
95
49
  # This will be set by the server in responses, but clients are not expected to set
96
50
  # it.
97
- # @param code_list_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
98
- # @param industry_code_1 [String] A code string whose interpretation depends on the code_list_qualifier being set.
99
- # You do not need to set this field generally, instead it is provided as advisory
100
- # context on how this HealthCareCodeInformation's data will be available in
101
- # reporting.
102
- # @param industry_code_2 [String] A code string whose interpretation depends on the code_list_qualifier being set.
103
- # You do not need to set this field generally, instead it is provided as advisory
104
- # context on how this HealthCareCodeInformation's data will be available in
105
- # reporting.
106
- # @param industry_code_3 [String] A code string whose interpretation depends on the code_list_qualifier being set.
107
- # You do not need to set this field generally, instead it is provided as advisory
108
- # context on how this HealthCareCodeInformation's data will be available in
109
- # reporting.
110
- # @param industry_code_4 [String] A code string whose interpretation depends on the code_list_qualifier being set.
111
- # You do not need to set this field generally, instead it is provided as advisory
112
- # context on how this HealthCareCodeInformation's data will be available in
113
- # reporting.
114
- # @param date_time_period_format_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
115
- # as part of claim process.
116
- # You do not need to set this field generally, instead it is provided as advisory
117
- # context on how this HealthCareCodeInformation's data will be available in
118
- # reporting.
119
- # @param date_time_period [String] A string, formatted according to date_time_period_format_qualifier, which
120
- # ultimately represents the date time period in which an information object
121
- # is covering.
122
- # You do not need to set this field generally, instead it is provided as advisory
123
- # context on how this HealthCareCodeInformation's data will be available in
124
- # reporting.
125
- # @param monetary_amount [String] A decimal used to represent ValueInformation results.
126
- # You do not need to set this field generally, instead it is provided as advisory
127
- # context on how this HealthCareCodeInformation's data will be available in
128
- # reporting.
129
- # @param quantity [String] You do not need to set this field generally, instead it is provided as advisory
130
- # context on how this HealthCareCodeInformation's data will be available in
131
- # reporting.
132
51
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
133
52
  # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::ExternalCauseOfInjury]
134
53
  def initialize(external_cause_of_injury_code_qualifier:, external_cause_of_injury_code:,
135
- present_on_admission_indicator: OMIT, id: OMIT, encounter_id: OMIT, code_list_qualifier: OMIT, industry_code_1: OMIT, industry_code_2: OMIT, industry_code_3: OMIT, industry_code_4: OMIT, date_time_period_format_qualifier: OMIT, date_time_period: OMIT, monetary_amount: OMIT, quantity: OMIT, additional_properties: nil)
54
+ present_on_admission_indicator: OMIT, id: OMIT, encounter_id: OMIT, additional_properties: nil)
136
55
  @external_cause_of_injury_code_qualifier = external_cause_of_injury_code_qualifier
137
56
  @external_cause_of_injury_code = external_cause_of_injury_code
138
57
  @present_on_admission_indicator = present_on_admission_indicator if present_on_admission_indicator != OMIT
139
58
  @id = id if id != OMIT
140
59
  @encounter_id = encounter_id if encounter_id != OMIT
141
- @code_list_qualifier = code_list_qualifier if code_list_qualifier != OMIT
142
- @industry_code_1 = industry_code_1 if industry_code_1 != OMIT
143
- @industry_code_2 = industry_code_2 if industry_code_2 != OMIT
144
- @industry_code_3 = industry_code_3 if industry_code_3 != OMIT
145
- @industry_code_4 = industry_code_4 if industry_code_4 != OMIT
146
- if date_time_period_format_qualifier != OMIT
147
- @date_time_period_format_qualifier = date_time_period_format_qualifier
148
- end
149
- @date_time_period = date_time_period if date_time_period != OMIT
150
- @monetary_amount = monetary_amount if monetary_amount != OMIT
151
- @quantity = quantity if quantity != OMIT
152
60
  @additional_properties = additional_properties
153
61
  @_field_set = {
154
62
  "external_cause_of_injury_code_qualifier": external_cause_of_injury_code_qualifier,
155
63
  "external_cause_of_injury_code": external_cause_of_injury_code,
156
64
  "present_on_admission_indicator": present_on_admission_indicator,
157
65
  "id": id,
158
- "encounter_id": encounter_id,
159
- "code_list_qualifier": code_list_qualifier,
160
- "industry_code_1": industry_code_1,
161
- "industry_code_2": industry_code_2,
162
- "industry_code_3": industry_code_3,
163
- "industry_code_4": industry_code_4,
164
- "date_time_period_format_qualifier": date_time_period_format_qualifier,
165
- "date_time_period": date_time_period,
166
- "monetary_amount": monetary_amount,
167
- "quantity": quantity
66
+ "encounter_id": encounter_id
168
67
  }.reject do |_k, v|
169
68
  v == OMIT
170
69
  end
@@ -181,30 +80,12 @@ module CandidApiClient
181
80
  present_on_admission_indicator = struct["present_on_admission_indicator"]
182
81
  id = struct["id"]
183
82
  encounter_id = struct["encounter_id"]
184
- code_list_qualifier = struct["code_list_qualifier"]
185
- industry_code_1 = struct["industry_code_1"]
186
- industry_code_2 = struct["industry_code_2"]
187
- industry_code_3 = struct["industry_code_3"]
188
- industry_code_4 = struct["industry_code_4"]
189
- date_time_period_format_qualifier = struct["date_time_period_format_qualifier"]
190
- date_time_period = struct["date_time_period"]
191
- monetary_amount = struct["monetary_amount"]
192
- quantity = struct["quantity"]
193
83
  new(
194
84
  external_cause_of_injury_code_qualifier: external_cause_of_injury_code_qualifier,
195
85
  external_cause_of_injury_code: external_cause_of_injury_code,
196
86
  present_on_admission_indicator: present_on_admission_indicator,
197
87
  id: id,
198
88
  encounter_id: encounter_id,
199
- code_list_qualifier: code_list_qualifier,
200
- industry_code_1: industry_code_1,
201
- industry_code_2: industry_code_2,
202
- industry_code_3: industry_code_3,
203
- industry_code_4: industry_code_4,
204
- date_time_period_format_qualifier: date_time_period_format_qualifier,
205
- date_time_period: date_time_period,
206
- monetary_amount: monetary_amount,
207
- quantity: quantity,
208
89
  additional_properties: struct
209
90
  )
210
91
  end
@@ -228,15 +109,6 @@ module CandidApiClient
228
109
  obj.present_on_admission_indicator&.is_a?(CandidApiClient::HealthCareCodeInformation::V1::Types::PresentOnAdmissionIndicatorCode) != false || raise("Passed value for field obj.present_on_admission_indicator is not the expected type, validation failed.")
229
110
  obj.id&.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
230
111
  obj.encounter_id&.is_a?(String) != false || raise("Passed value for field obj.encounter_id is not the expected type, validation failed.")
231
- obj.code_list_qualifier&.is_a?(CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode) != false || raise("Passed value for field obj.code_list_qualifier is not the expected type, validation failed.")
232
- obj.industry_code_1&.is_a?(String) != false || raise("Passed value for field obj.industry_code_1 is not the expected type, validation failed.")
233
- obj.industry_code_2&.is_a?(String) != false || raise("Passed value for field obj.industry_code_2 is not the expected type, validation failed.")
234
- obj.industry_code_3&.is_a?(String) != false || raise("Passed value for field obj.industry_code_3 is not the expected type, validation failed.")
235
- obj.industry_code_4&.is_a?(String) != false || raise("Passed value for field obj.industry_code_4 is not the expected type, validation failed.")
236
- obj.date_time_period_format_qualifier&.is_a?(CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier) != false || raise("Passed value for field obj.date_time_period_format_qualifier is not the expected type, validation failed.")
237
- obj.date_time_period&.is_a?(String) != false || raise("Passed value for field obj.date_time_period is not the expected type, validation failed.")
238
- obj.monetary_amount&.is_a?(String) != false || raise("Passed value for field obj.monetary_amount is not the expected type, validation failed.")
239
- obj.quantity&.is_a?(String) != false || raise("Passed value for field obj.quantity is not the expected type, validation failed.")
240
112
  end
241
113
  end
242
114
  end
@@ -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
 
@@ -21,50 +19,6 @@ module CandidApiClient
21
19
  # This will be set by the server in responses, but clients are not expected to set
22
20
  # it.
23
21
  attr_reader :encounter_id
24
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
25
- attr_reader :code_list_qualifier
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_1
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_2
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_3
41
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
42
- # You do not need to set this field generally, instead it is provided as advisory
43
- # context on how this HealthCareCodeInformation's data will be available in
44
- # reporting.
45
- attr_reader :industry_code_4
46
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
47
- # as part of claim process.
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 :date_time_period_format_qualifier
52
- # @return [String] A string, formatted according to date_time_period_format_qualifier, which
53
- # ultimately represents the date time period in which an information object
54
- # is covering.
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
59
- # @return [String] A decimal used to represent ValueInformation results.
60
- # 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 :monetary_amount
64
- # @return [String] You do not need to set this field generally, instead it is provided as advisory
65
- # context on how this HealthCareCodeInformation's data will be available in
66
- # reporting.
67
- attr_reader :quantity
68
22
  # @return [OpenStruct] Additional properties unmapped to the current class definition
69
23
  attr_reader :additional_properties
70
24
  # @return [Object]
@@ -82,72 +36,13 @@ module CandidApiClient
82
36
  # @param encounter_id [String] The encounter_id of this health care code information if it is already stored.
83
37
  # This will be set by the server in responses, but clients are not expected to set
84
38
  # it.
85
- # @param code_list_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
86
- # @param industry_code_1 [String] A code string whose interpretation depends on the code_list_qualifier being set.
87
- # You do not need to set this field generally, instead it is provided as advisory
88
- # context on how this HealthCareCodeInformation's data will be available in
89
- # reporting.
90
- # @param industry_code_2 [String] A code string whose interpretation depends on the code_list_qualifier being set.
91
- # You do not need to set this field generally, instead it is provided as advisory
92
- # context on how this HealthCareCodeInformation's data will be available in
93
- # reporting.
94
- # @param industry_code_3 [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_4 [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 date_time_period_format_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
103
- # as part of claim process.
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 date_time_period [String] A string, formatted according to date_time_period_format_qualifier, which
108
- # ultimately represents the date time period in which an information object
109
- # is covering.
110
- # You do not need to set this field generally, instead it is provided as advisory
111
- # context on how this HealthCareCodeInformation's data will be available in
112
- # reporting.
113
- # @param monetary_amount [String] A decimal used to represent ValueInformation results.
114
- # You do not need to set this field generally, instead it is provided as advisory
115
- # context on how this HealthCareCodeInformation's data will be available in
116
- # reporting.
117
- # @param quantity [String] You do not need to set this field generally, instead it is provided as advisory
118
- # context on how this HealthCareCodeInformation's data will be available in
119
- # reporting.
120
39
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
121
40
  # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::HealthCareCodeInformation]
122
- def initialize(id: OMIT, encounter_id: OMIT, code_list_qualifier: OMIT, industry_code_1: OMIT,
123
- 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)
41
+ def initialize(id: OMIT, encounter_id: OMIT, additional_properties: nil)
124
42
  @id = id if id != OMIT
125
43
  @encounter_id = encounter_id if encounter_id != OMIT
126
- @code_list_qualifier = code_list_qualifier if code_list_qualifier != OMIT
127
- @industry_code_1 = industry_code_1 if industry_code_1 != OMIT
128
- @industry_code_2 = industry_code_2 if industry_code_2 != OMIT
129
- @industry_code_3 = industry_code_3 if industry_code_3 != OMIT
130
- @industry_code_4 = industry_code_4 if industry_code_4 != OMIT
131
- if date_time_period_format_qualifier != OMIT
132
- @date_time_period_format_qualifier = date_time_period_format_qualifier
133
- end
134
- @date_time_period = date_time_period if date_time_period != OMIT
135
- @monetary_amount = monetary_amount if monetary_amount != OMIT
136
- @quantity = quantity if quantity != OMIT
137
44
  @additional_properties = additional_properties
138
- @_field_set = {
139
- "id": id,
140
- "encounter_id": encounter_id,
141
- "code_list_qualifier": code_list_qualifier,
142
- "industry_code_1": industry_code_1,
143
- "industry_code_2": industry_code_2,
144
- "industry_code_3": industry_code_3,
145
- "industry_code_4": industry_code_4,
146
- "date_time_period_format_qualifier": date_time_period_format_qualifier,
147
- "date_time_period": date_time_period,
148
- "monetary_amount": monetary_amount,
149
- "quantity": quantity
150
- }.reject do |_k, v|
45
+ @_field_set = { "id": id, "encounter_id": encounter_id }.reject do |_k, v|
151
46
  v == OMIT
152
47
  end
153
48
  end
@@ -160,27 +55,9 @@ module CandidApiClient
160
55
  struct = JSON.parse(json_object, object_class: OpenStruct)
161
56
  id = struct["id"]
162
57
  encounter_id = struct["encounter_id"]
163
- code_list_qualifier = struct["code_list_qualifier"]
164
- industry_code_1 = struct["industry_code_1"]
165
- industry_code_2 = struct["industry_code_2"]
166
- industry_code_3 = struct["industry_code_3"]
167
- industry_code_4 = struct["industry_code_4"]
168
- date_time_period_format_qualifier = struct["date_time_period_format_qualifier"]
169
- date_time_period = struct["date_time_period"]
170
- monetary_amount = struct["monetary_amount"]
171
- quantity = struct["quantity"]
172
58
  new(
173
59
  id: id,
174
60
  encounter_id: encounter_id,
175
- code_list_qualifier: code_list_qualifier,
176
- industry_code_1: industry_code_1,
177
- industry_code_2: industry_code_2,
178
- industry_code_3: industry_code_3,
179
- industry_code_4: industry_code_4,
180
- date_time_period_format_qualifier: date_time_period_format_qualifier,
181
- date_time_period: date_time_period,
182
- monetary_amount: monetary_amount,
183
- quantity: quantity,
184
61
  additional_properties: struct
185
62
  )
186
63
  end
@@ -201,15 +78,6 @@ module CandidApiClient
201
78
  def self.validate_raw(obj:)
202
79
  obj.id&.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
203
80
  obj.encounter_id&.is_a?(String) != false || raise("Passed value for field obj.encounter_id is not the expected type, validation failed.")
204
- 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.")
205
- obj.industry_code_1&.is_a?(String) != false || raise("Passed value for field obj.industry_code_1 is not the expected type, validation failed.")
206
- obj.industry_code_2&.is_a?(String) != false || raise("Passed value for field obj.industry_code_2 is not the expected type, validation failed.")
207
- obj.industry_code_3&.is_a?(String) != false || raise("Passed value for field obj.industry_code_3 is not the expected type, validation failed.")
208
- obj.industry_code_4&.is_a?(String) != false || raise("Passed value for field obj.industry_code_4 is not the expected type, validation failed.")
209
- 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.")
210
- obj.date_time_period&.is_a?(String) != false || raise("Passed value for field obj.date_time_period is not the expected type, validation failed.")
211
- obj.monetary_amount&.is_a?(String) != false || raise("Passed value for field obj.monetary_amount is not the expected type, validation failed.")
212
- obj.quantity&.is_a?(String) != false || raise("Passed value for field obj.quantity is not the expected type, validation failed.")
213
81
  end
214
82
  end
215
83
  end
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "principal_diagnosis"
4
+ require_relative "other_diagnosis_information"
4
5
  require_relative "admitting_diagnosis"
5
6
  require_relative "patient_reason_for_visit"
6
7
  require_relative "external_cause_of_injury"
7
8
  require_relative "diagnosis_related_group"
8
- require_relative "other_diagnosis_information"
9
9
  require_relative "principal_procedure_information"
10
10
  require_relative "other_procedure_information"
11
11
  require_relative "occurrence_span_information"
@@ -23,29 +23,29 @@ module CandidApiClient
23
23
  class HealthCareCodeInformationGetAllResponse
24
24
  # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalDiagnosis]
25
25
  attr_reader :principal_diagnosis
26
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::AdmittingDiagnosis]
26
+ # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformation>]
27
+ attr_reader :other_diagnosis_information
28
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::AdmittingDiagnosis] This object only applies to 837i institutional claim forms.
27
29
  attr_reader :admitting_diagnosis
28
- # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::PatientReasonForVisit>]
30
+ # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::PatientReasonForVisit>] This object only applies to 837i institutional claim forms.
29
31
  attr_reader :patient_reasons_for_visit
30
- # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ExternalCauseOfInjury>]
32
+ # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ExternalCauseOfInjury>] This object only applies to 837i institutional claim forms.
31
33
  attr_reader :external_causes_of_injury
32
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::DiagnosisRelatedGroup]
34
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::DiagnosisRelatedGroup] This object only applies to 837i institutional claim forms.
33
35
  attr_reader :diagnosis_related_groups
34
- # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformation>]
35
- attr_reader :other_diagnosis_information
36
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalProcedureInformation]
36
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalProcedureInformation] This object only applies to 837i institutional claim forms.
37
37
  attr_reader :principal_procedure
38
- # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherProcedureInformation>]
38
+ # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherProcedureInformation>] This object only applies to 837i institutional claim forms.
39
39
  attr_reader :other_procedure_information
40
- # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceSpanInformation>]
40
+ # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceSpanInformation>] This object only applies to 837i institutional claim forms.
41
41
  attr_reader :occurrence_span_information
42
- # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceInformation>]
42
+ # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceInformation>] This object only applies to 837i institutional claim forms.
43
43
  attr_reader :occurrence_information
44
- # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeInformation>]
44
+ # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeInformation>] This object only applies to 837i institutional claim forms.
45
45
  attr_reader :treatment_code_information
46
- # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ValueInformation>]
46
+ # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ValueInformation>] This object only applies to 837i institutional claim forms.
47
47
  attr_reader :value_information
48
- # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionInformation>]
48
+ # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionInformation>] This object only applies to 837i institutional claim forms.
49
49
  attr_reader :condition_information
50
50
  # @return [OpenStruct] Additional properties unmapped to the current class definition
51
51
  attr_reader :additional_properties
@@ -56,28 +56,28 @@ module CandidApiClient
56
56
  OMIT = Object.new
57
57
 
58
58
  # @param principal_diagnosis [CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalDiagnosis]
59
- # @param admitting_diagnosis [CandidApiClient::HealthCareCodeInformation::V1::Types::AdmittingDiagnosis]
60
- # @param patient_reasons_for_visit [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::PatientReasonForVisit>]
61
- # @param external_causes_of_injury [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ExternalCauseOfInjury>]
62
- # @param diagnosis_related_groups [CandidApiClient::HealthCareCodeInformation::V1::Types::DiagnosisRelatedGroup]
63
59
  # @param other_diagnosis_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformation>]
64
- # @param principal_procedure [CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalProcedureInformation]
65
- # @param other_procedure_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherProcedureInformation>]
66
- # @param occurrence_span_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceSpanInformation>]
67
- # @param occurrence_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceInformation>]
68
- # @param treatment_code_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeInformation>]
69
- # @param value_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ValueInformation>]
70
- # @param condition_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionInformation>]
60
+ # @param admitting_diagnosis [CandidApiClient::HealthCareCodeInformation::V1::Types::AdmittingDiagnosis] This object only applies to 837i institutional claim forms.
61
+ # @param patient_reasons_for_visit [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::PatientReasonForVisit>] This object only applies to 837i institutional claim forms.
62
+ # @param external_causes_of_injury [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ExternalCauseOfInjury>] This object only applies to 837i institutional claim forms.
63
+ # @param diagnosis_related_groups [CandidApiClient::HealthCareCodeInformation::V1::Types::DiagnosisRelatedGroup] This object only applies to 837i institutional claim forms.
64
+ # @param principal_procedure [CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalProcedureInformation] This object only applies to 837i institutional claim forms.
65
+ # @param other_procedure_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherProcedureInformation>] This object only applies to 837i institutional claim forms.
66
+ # @param occurrence_span_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceSpanInformation>] This object only applies to 837i institutional claim forms.
67
+ # @param occurrence_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceInformation>] This object only applies to 837i institutional claim forms.
68
+ # @param treatment_code_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeInformation>] This object only applies to 837i institutional claim forms.
69
+ # @param value_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ValueInformation>] This object only applies to 837i institutional claim forms.
70
+ # @param condition_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionInformation>] This object only applies to 837i institutional claim forms.
71
71
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
72
72
  # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::HealthCareCodeInformationGetAllResponse]
73
- def initialize(patient_reasons_for_visit:, external_causes_of_injury:, other_diagnosis_information:,
73
+ def initialize(other_diagnosis_information:, patient_reasons_for_visit:, external_causes_of_injury:,
74
74
  other_procedure_information:, occurrence_span_information:, occurrence_information:, treatment_code_information:, value_information:, condition_information:, principal_diagnosis: OMIT, admitting_diagnosis: OMIT, diagnosis_related_groups: OMIT, principal_procedure: OMIT, additional_properties: nil)
75
75
  @principal_diagnosis = principal_diagnosis if principal_diagnosis != OMIT
76
+ @other_diagnosis_information = other_diagnosis_information
76
77
  @admitting_diagnosis = admitting_diagnosis if admitting_diagnosis != OMIT
77
78
  @patient_reasons_for_visit = patient_reasons_for_visit
78
79
  @external_causes_of_injury = external_causes_of_injury
79
80
  @diagnosis_related_groups = diagnosis_related_groups if diagnosis_related_groups != OMIT
80
- @other_diagnosis_information = other_diagnosis_information
81
81
  @principal_procedure = principal_procedure if principal_procedure != OMIT
82
82
  @other_procedure_information = other_procedure_information
83
83
  @occurrence_span_information = occurrence_span_information
@@ -88,11 +88,11 @@ module CandidApiClient
88
88
  @additional_properties = additional_properties
89
89
  @_field_set = {
90
90
  "principal_diagnosis": principal_diagnosis,
91
+ "other_diagnosis_information": other_diagnosis_information,
91
92
  "admitting_diagnosis": admitting_diagnosis,
92
93
  "patient_reasons_for_visit": patient_reasons_for_visit,
93
94
  "external_causes_of_injury": external_causes_of_injury,
94
95
  "diagnosis_related_groups": diagnosis_related_groups,
95
- "other_diagnosis_information": other_diagnosis_information,
96
96
  "principal_procedure": principal_procedure,
97
97
  "other_procedure_information": other_procedure_information,
98
98
  "occurrence_span_information": occurrence_span_information,
@@ -119,6 +119,10 @@ module CandidApiClient
119
119
  principal_diagnosis = parsed_json["principal_diagnosis"].to_json
120
120
  principal_diagnosis = CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalDiagnosis.from_json(json_object: principal_diagnosis)
121
121
  end
122
+ other_diagnosis_information = parsed_json["other_diagnosis_information"]&.map do |item|
123
+ item = item.to_json
124
+ CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformation.from_json(json_object: item)
125
+ end
122
126
  if parsed_json["admitting_diagnosis"].nil?
123
127
  admitting_diagnosis = nil
124
128
  else
@@ -139,10 +143,6 @@ module CandidApiClient
139
143
  diagnosis_related_groups = parsed_json["diagnosis_related_groups"].to_json
140
144
  diagnosis_related_groups = CandidApiClient::HealthCareCodeInformation::V1::Types::DiagnosisRelatedGroup.from_json(json_object: diagnosis_related_groups)
141
145
  end
142
- other_diagnosis_information = parsed_json["other_diagnosis_information"]&.map do |item|
143
- item = item.to_json
144
- CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformation.from_json(json_object: item)
145
- end
146
146
  if parsed_json["principal_procedure"].nil?
147
147
  principal_procedure = nil
148
148
  else
@@ -175,11 +175,11 @@ module CandidApiClient
175
175
  end
176
176
  new(
177
177
  principal_diagnosis: principal_diagnosis,
178
+ other_diagnosis_information: other_diagnosis_information,
178
179
  admitting_diagnosis: admitting_diagnosis,
179
180
  patient_reasons_for_visit: patient_reasons_for_visit,
180
181
  external_causes_of_injury: external_causes_of_injury,
181
182
  diagnosis_related_groups: diagnosis_related_groups,
182
- other_diagnosis_information: other_diagnosis_information,
183
183
  principal_procedure: principal_procedure,
184
184
  other_procedure_information: other_procedure_information,
185
185
  occurrence_span_information: occurrence_span_information,
@@ -207,11 +207,11 @@ module CandidApiClient
207
207
  # @return [Void]
208
208
  def self.validate_raw(obj:)
209
209
  obj.principal_diagnosis.nil? || CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalDiagnosis.validate_raw(obj: obj.principal_diagnosis)
210
+ obj.other_diagnosis_information.is_a?(Array) != false || raise("Passed value for field obj.other_diagnosis_information is not the expected type, validation failed.")
210
211
  obj.admitting_diagnosis.nil? || CandidApiClient::HealthCareCodeInformation::V1::Types::AdmittingDiagnosis.validate_raw(obj: obj.admitting_diagnosis)
211
212
  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.")
212
213
  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.")
213
214
  obj.diagnosis_related_groups.nil? || CandidApiClient::HealthCareCodeInformation::V1::Types::DiagnosisRelatedGroup.validate_raw(obj: obj.diagnosis_related_groups)
214
- obj.other_diagnosis_information.is_a?(Array) != false || raise("Passed value for field obj.other_diagnosis_information is not the expected type, validation failed.")
215
215
  obj.principal_procedure.nil? || CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalProcedureInformation.validate_raw(obj: obj.principal_procedure)
216
216
  obj.other_procedure_information.is_a?(Array) != false || raise("Passed value for field obj.other_procedure_information is not the expected type, validation failed.")
217
217
  obj.occurrence_span_information.is_a?(Array) != false || raise("Passed value for field obj.occurrence_span_information is not the expected type, validation failed.")