candidhealth 1.8.1 → 1.9.1

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 (68) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/auth/default/client.rb +0 -74
  3. data/lib/candidhealth/diagnoses/client.rb +2 -2
  4. data/lib/candidhealth/encounters/v_4/client.rb +479 -2522
  5. data/lib/candidhealth/encounters/v_4/types/encounter_submission_expectation.rb +3 -6
  6. data/lib/candidhealth/guarantor/v_1/types/guarantor.rb +4 -4
  7. data/lib/candidhealth/health_care_code_information/v_1/client.rb +2 -74
  8. data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis.rb +2 -130
  9. data/lib/candidhealth/health_care_code_information/v_1/types/condition_code.rb +100 -1
  10. data/lib/candidhealth/health_care_code_information/v_1/types/condition_information.rb +2 -130
  11. data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group.rb +2 -130
  12. data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury.rb +2 -130
  13. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information.rb +2 -134
  14. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_get_all_response.rb +34 -34
  15. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_new.rb +4 -139
  16. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_update.rb +138 -38
  17. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_code.rb +1 -0
  18. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information.rb +10 -132
  19. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_code.rb +6 -1
  20. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information.rb +2 -130
  21. data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information.rb +2 -130
  22. data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information.rb +10 -132
  23. data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit.rb +2 -130
  24. data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis.rb +2 -130
  25. data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information.rb +10 -132
  26. data/lib/candidhealth/health_care_code_information/v_1/types/rd_8_date.rb +16 -4
  27. data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information.rb +2 -130
  28. data/lib/candidhealth/health_care_code_information/v_1/types/value_information.rb +2 -130
  29. data/lib/candidhealth/individual/types/patient.rb +4 -4
  30. data/lib/candidhealth/organization_providers/v_2/types/license_type.rb +2 -0
  31. data/lib/candidhealth/organization_service_facilities/v_2/client.rb +77 -4
  32. data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility.rb +21 -2
  33. data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_create.rb +21 -2
  34. data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_update.rb +21 -2
  35. data/lib/candidhealth/payers/v_4/types/payer.rb +10 -2
  36. data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +8 -2
  37. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +13 -1
  38. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +13 -1
  39. data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +13 -1
  40. data/lib/candidhealth/pre_encounter/patients/v_1/types/patient_service_facility.rb +63 -0
  41. data/lib/candidhealth/service_lines/v_2/client.rb +2 -2
  42. data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +8 -8
  43. data/lib/candidhealth/service_lines/v_2/types/service_line_create_base.rb +8 -8
  44. data/lib/candidhealth/service_lines/v_2/types/service_line_create_base_base.rb +8 -8
  45. data/lib/requests.rb +2 -2
  46. data/lib/types_export.rb +1 -21
  47. metadata +3 -23
  48. data/lib/candidhealth/encounters_universal/types/universal_encounter_create.rb +0 -944
  49. data/lib/candidhealth/encounters_universal/types/universal_encounter_create_from_pre_encounter.rb +0 -791
  50. data/lib/candidhealth/encounters_universal/types/universal_encounter_update.rb +0 -872
  51. data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis_new.rb +0 -206
  52. data/lib/candidhealth/health_care_code_information/v_1/types/code_list_qualifier_code.rb +0 -1068
  53. data/lib/candidhealth/health_care_code_information/v_1/types/condition_information_new.rb +0 -207
  54. data/lib/candidhealth/health_care_code_information/v_1/types/date_time_period_format_qualifier.rb +0 -54
  55. data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group_new.rb +0 -206
  56. data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury_new.rb +0 -245
  57. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_create.rb +0 -225
  58. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information_new.rb +0 -219
  59. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information_new.rb +0 -222
  60. data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information_new.rb +0 -215
  61. data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information_new.rb +0 -218
  62. data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit_new.rb +0 -206
  63. data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis_new.rb +0 -215
  64. data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information_new.rb +0 -216
  65. data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information_new.rb +0 -206
  66. data/lib/candidhealth/health_care_code_information/v_1/types/value_information_new.rb +0 -215
  67. data/lib/candidhealth/service_lines/v_2/types/universal_service_line_create.rb +0 -271
  68. data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite_update.rb +0 -112
@@ -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.")
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "code_list_qualifier_code"
4
- require_relative "date_time_period_format_qualifier"
5
3
  require "ostruct"
6
4
  require "json"
7
5
 
@@ -10,50 +8,6 @@ module CandidApiClient
10
8
  module V1
11
9
  module Types
12
10
  class HealthCareCodeInformationNew
13
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
14
- attr_reader :code_list_qualifier
15
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
16
- # You do not need to set this field generally, instead it is provided as advisory
17
- # context on how this HealthCareCodeInformation's data will be available in
18
- # reporting.
19
- attr_reader :industry_code_1
20
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
21
- # You do not need to set this field generally, instead it is provided as advisory
22
- # context on how this HealthCareCodeInformation's data will be available in
23
- # reporting.
24
- attr_reader :industry_code_2
25
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
26
- # You do not need to set this field generally, instead it is provided as advisory
27
- # context on how this HealthCareCodeInformation's data will be available in
28
- # reporting.
29
- attr_reader :industry_code_3
30
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
31
- # You do not need to set this field generally, instead it is provided as advisory
32
- # context on how this HealthCareCodeInformation's data will be available in
33
- # reporting.
34
- attr_reader :industry_code_4
35
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
36
- # as part of claim process.
37
- # You do not need to set this field generally, instead it is provided as advisory
38
- # context on how this HealthCareCodeInformation's data will be available in
39
- # reporting.
40
- attr_reader :date_time_period_format_qualifier
41
- # @return [String] A string, formatted according to date_time_period_format_qualifier, which
42
- # ultimately represents the date time period in which an information object
43
- # is covering.
44
- # You do not need to set this field generally, instead it is provided as advisory
45
- # context on how this HealthCareCodeInformation's data will be available in
46
- # reporting.
47
- attr_reader :date_time_period
48
- # @return [String] A decimal used to represent ValueInformation results.
49
- # You do not need to set this field generally, instead it is provided as advisory
50
- # context on how this HealthCareCodeInformation's data will be available in
51
- # reporting.
52
- attr_reader :monetary_amount
53
- # @return [String] You do not need to set this field generally, instead it is provided as advisory
54
- # context on how this HealthCareCodeInformation's data will be available in
55
- # reporting.
56
- attr_reader :quantity
57
11
  # @return [OpenStruct] Additional properties unmapped to the current class definition
58
12
  attr_reader :additional_properties
59
13
  # @return [Object]
@@ -62,70 +16,11 @@ module CandidApiClient
62
16
 
63
17
  OMIT = Object.new
64
18
 
65
- # @param code_list_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
66
- # @param industry_code_1 [String] A code string whose interpretation depends on the code_list_qualifier being set.
67
- # You do not need to set this field generally, instead it is provided as advisory
68
- # context on how this HealthCareCodeInformation's data will be available in
69
- # reporting.
70
- # @param industry_code_2 [String] A code string whose interpretation depends on the code_list_qualifier being set.
71
- # You do not need to set this field generally, instead it is provided as advisory
72
- # context on how this HealthCareCodeInformation's data will be available in
73
- # reporting.
74
- # @param industry_code_3 [String] A code string whose interpretation depends on the code_list_qualifier being set.
75
- # You do not need to set this field generally, instead it is provided as advisory
76
- # context on how this HealthCareCodeInformation's data will be available in
77
- # reporting.
78
- # @param industry_code_4 [String] A code string whose interpretation depends on the code_list_qualifier being set.
79
- # You do not need to set this field generally, instead it is provided as advisory
80
- # context on how this HealthCareCodeInformation's data will be available in
81
- # reporting.
82
- # @param date_time_period_format_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
83
- # as part of claim process.
84
- # You do not need to set this field generally, instead it is provided as advisory
85
- # context on how this HealthCareCodeInformation's data will be available in
86
- # reporting.
87
- # @param date_time_period [String] A string, formatted according to date_time_period_format_qualifier, which
88
- # ultimately represents the date time period in which an information object
89
- # is covering.
90
- # You do not need to set this field generally, instead it is provided as advisory
91
- # context on how this HealthCareCodeInformation's data will be available in
92
- # reporting.
93
- # @param monetary_amount [String] A decimal used to represent ValueInformation results.
94
- # You do not need to set this field generally, instead it is provided as advisory
95
- # context on how this HealthCareCodeInformation's data will be available in
96
- # reporting.
97
- # @param quantity [String] You do not need to set this field generally, instead it is provided as advisory
98
- # context on how this HealthCareCodeInformation's data will be available in
99
- # reporting.
100
19
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
101
20
  # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::HealthCareCodeInformationNew]
102
- def initialize(code_list_qualifier: OMIT, industry_code_1: OMIT, industry_code_2: OMIT,
103
- industry_code_3: OMIT, industry_code_4: OMIT, date_time_period_format_qualifier: OMIT, date_time_period: OMIT, monetary_amount: OMIT, quantity: OMIT, additional_properties: nil)
104
- @code_list_qualifier = code_list_qualifier if code_list_qualifier != OMIT
105
- @industry_code_1 = industry_code_1 if industry_code_1 != OMIT
106
- @industry_code_2 = industry_code_2 if industry_code_2 != OMIT
107
- @industry_code_3 = industry_code_3 if industry_code_3 != OMIT
108
- @industry_code_4 = industry_code_4 if industry_code_4 != OMIT
109
- if date_time_period_format_qualifier != OMIT
110
- @date_time_period_format_qualifier = date_time_period_format_qualifier
111
- end
112
- @date_time_period = date_time_period if date_time_period != OMIT
113
- @monetary_amount = monetary_amount if monetary_amount != OMIT
114
- @quantity = quantity if quantity != OMIT
21
+ def initialize(additional_properties: nil)
115
22
  @additional_properties = additional_properties
116
- @_field_set = {
117
- "code_list_qualifier": code_list_qualifier,
118
- "industry_code_1": industry_code_1,
119
- "industry_code_2": industry_code_2,
120
- "industry_code_3": industry_code_3,
121
- "industry_code_4": industry_code_4,
122
- "date_time_period_format_qualifier": date_time_period_format_qualifier,
123
- "date_time_period": date_time_period,
124
- "monetary_amount": monetary_amount,
125
- "quantity": quantity
126
- }.reject do |_k, v|
127
- v == OMIT
128
- end
23
+ @_field_set = {}
129
24
  end
130
25
 
131
26
  # Deserialize a JSON object to an instance of HealthCareCodeInformationNew
@@ -134,27 +29,7 @@ module CandidApiClient
134
29
  # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::HealthCareCodeInformationNew]
135
30
  def self.from_json(json_object:)
136
31
  struct = JSON.parse(json_object, object_class: OpenStruct)
137
- code_list_qualifier = struct["code_list_qualifier"]
138
- industry_code_1 = struct["industry_code_1"]
139
- industry_code_2 = struct["industry_code_2"]
140
- industry_code_3 = struct["industry_code_3"]
141
- industry_code_4 = struct["industry_code_4"]
142
- date_time_period_format_qualifier = struct["date_time_period_format_qualifier"]
143
- date_time_period = struct["date_time_period"]
144
- monetary_amount = struct["monetary_amount"]
145
- quantity = struct["quantity"]
146
- new(
147
- code_list_qualifier: code_list_qualifier,
148
- industry_code_1: industry_code_1,
149
- industry_code_2: industry_code_2,
150
- industry_code_3: industry_code_3,
151
- industry_code_4: industry_code_4,
152
- date_time_period_format_qualifier: date_time_period_format_qualifier,
153
- date_time_period: date_time_period,
154
- monetary_amount: monetary_amount,
155
- quantity: quantity,
156
- additional_properties: struct
157
- )
32
+ new(additional_properties: struct)
158
33
  end
159
34
 
160
35
  # Serialize an instance of HealthCareCodeInformationNew to a JSON object
@@ -170,17 +45,7 @@ module CandidApiClient
170
45
  #
171
46
  # @param obj [Object]
172
47
  # @return [Void]
173
- def self.validate_raw(obj:)
174
- obj.code_list_qualifier&.is_a?(CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode) != false || raise("Passed value for field obj.code_list_qualifier is not the expected type, validation failed.")
175
- obj.industry_code_1&.is_a?(String) != false || raise("Passed value for field obj.industry_code_1 is not the expected type, validation failed.")
176
- obj.industry_code_2&.is_a?(String) != false || raise("Passed value for field obj.industry_code_2 is not the expected type, validation failed.")
177
- obj.industry_code_3&.is_a?(String) != false || raise("Passed value for field obj.industry_code_3 is not the expected type, validation failed.")
178
- obj.industry_code_4&.is_a?(String) != false || raise("Passed value for field obj.industry_code_4 is not the expected type, validation failed.")
179
- obj.date_time_period_format_qualifier&.is_a?(CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier) != false || raise("Passed value for field obj.date_time_period_format_qualifier is not the expected type, validation failed.")
180
- obj.date_time_period&.is_a?(String) != false || raise("Passed value for field obj.date_time_period is not the expected type, validation failed.")
181
- obj.monetary_amount&.is_a?(String) != false || raise("Passed value for field obj.monetary_amount is not the expected type, validation failed.")
182
- obj.quantity&.is_a?(String) != false || raise("Passed value for field obj.quantity is not the expected type, validation failed.")
183
- end
48
+ def self.validate_raw(obj:); end
184
49
  end
185
50
  end
186
51
  end