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
@@ -3,8 +3,6 @@
3
3
  require_relative "occurrence_information_code_qualifier"
4
4
  require_relative "occurrence_code"
5
5
  require "date"
6
- require_relative "code_list_qualifier_code"
7
- require_relative "date_time_period_format_qualifier"
8
6
  require "ostruct"
9
7
  require "json"
10
8
 
@@ -18,7 +16,10 @@ module CandidApiClient
18
16
  attr_reader :occurrence_code_qualifier
19
17
  # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceCode]
20
18
  attr_reader :occurrence_code
21
- # @return [DateTime]
19
+ # @return [DateTime] An [RFC 3339, section 5.6 datetime](https://ijmacd.github.io/rfc3339-iso8601/).
20
+ # For example, 2017-07-21T17:32:28Z.
21
+ # In practice, only the date portion of this is used for claim submission, so
22
+ # midnight time is fine.
22
23
  attr_reader :occurrence_date
23
24
  # @return [String] The id of this health care code information if it is already stored.
24
25
  # If this is not set, this is referring to a new health care code information to
@@ -31,50 +32,6 @@ module CandidApiClient
31
32
  # This will be set by the server in responses, but clients are not expected to set
32
33
  # it.
33
34
  attr_reader :encounter_id
34
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
35
- attr_reader :code_list_qualifier
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_1
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_2
46
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
47
- # You do not need to set this field generally, instead it is provided as advisory
48
- # context on how this HealthCareCodeInformation's data will be available in
49
- # reporting.
50
- attr_reader :industry_code_3
51
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
52
- # You do not need to set this field generally, instead it is provided as advisory
53
- # context on how this HealthCareCodeInformation's data will be available in
54
- # reporting.
55
- attr_reader :industry_code_4
56
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
57
- # as part of claim process.
58
- # You do not need to set this field generally, instead it is provided as advisory
59
- # context on how this HealthCareCodeInformation's data will be available in
60
- # reporting.
61
- attr_reader :date_time_period_format_qualifier
62
- # @return [String] A string, formatted according to date_time_period_format_qualifier, which
63
- # ultimately represents the date time period in which an information object
64
- # is covering.
65
- # You do not need to set this field generally, instead it is provided as advisory
66
- # context on how this HealthCareCodeInformation's data will be available in
67
- # reporting.
68
- attr_reader :date_time_period
69
- # @return [String] A decimal used to represent ValueInformation results.
70
- # 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 :monetary_amount
74
- # @return [String] You do not need to set this field generally, instead it is provided as advisory
75
- # context on how this HealthCareCodeInformation's data will be available in
76
- # reporting.
77
- attr_reader :quantity
78
35
  # @return [OpenStruct] Additional properties unmapped to the current class definition
79
36
  attr_reader :additional_properties
80
37
  # @return [Object]
@@ -85,7 +42,10 @@ module CandidApiClient
85
42
 
86
43
  # @param occurrence_code_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceInformationCodeQualifier]
87
44
  # @param occurrence_code [CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceCode]
88
- # @param occurrence_date [DateTime]
45
+ # @param occurrence_date [DateTime] An [RFC 3339, section 5.6 datetime](https://ijmacd.github.io/rfc3339-iso8601/).
46
+ # For example, 2017-07-21T17:32:28Z.
47
+ # In practice, only the date portion of this is used for claim submission, so
48
+ # midnight time is fine.
89
49
  # @param id [String] The id of this health care code information if it is already stored.
90
50
  # If this is not set, this is referring to a new health care code information to
91
51
  # be added
@@ -95,77 +55,22 @@ module CandidApiClient
95
55
  # @param encounter_id [String] The encounter_id of this health care code information if it is already stored.
96
56
  # This will be set by the server in responses, but clients are not expected to set
97
57
  # it.
98
- # @param code_list_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
99
- # @param industry_code_1 [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_2 [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_3 [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 industry_code_4 [String] A code string whose interpretation depends on the code_list_qualifier being set.
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_format_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
116
- # as part of claim process.
117
- # 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
- # @param date_time_period [String] A string, formatted according to date_time_period_format_qualifier, which
121
- # ultimately represents the date time period in which an information object
122
- # is covering.
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 monetary_amount [String] A decimal used to represent ValueInformation results.
127
- # You do not need to set this field generally, instead it is provided as advisory
128
- # context on how this HealthCareCodeInformation's data will be available in
129
- # reporting.
130
- # @param quantity [String] You do not need to set this field generally, instead it is provided as advisory
131
- # context on how this HealthCareCodeInformation's data will be available in
132
- # reporting.
133
58
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
134
59
  # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceInformation]
135
60
  def initialize(occurrence_code_qualifier:, occurrence_code:, occurrence_date:, id: OMIT, encounter_id: OMIT,
136
- 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)
61
+ additional_properties: nil)
137
62
  @occurrence_code_qualifier = occurrence_code_qualifier
138
63
  @occurrence_code = occurrence_code
139
64
  @occurrence_date = occurrence_date
140
65
  @id = id if id != OMIT
141
66
  @encounter_id = encounter_id if encounter_id != OMIT
142
- @code_list_qualifier = code_list_qualifier if code_list_qualifier != OMIT
143
- @industry_code_1 = industry_code_1 if industry_code_1 != OMIT
144
- @industry_code_2 = industry_code_2 if industry_code_2 != OMIT
145
- @industry_code_3 = industry_code_3 if industry_code_3 != OMIT
146
- @industry_code_4 = industry_code_4 if industry_code_4 != OMIT
147
- if date_time_period_format_qualifier != OMIT
148
- @date_time_period_format_qualifier = date_time_period_format_qualifier
149
- end
150
- @date_time_period = date_time_period if date_time_period != OMIT
151
- @monetary_amount = monetary_amount if monetary_amount != OMIT
152
- @quantity = quantity if quantity != OMIT
153
67
  @additional_properties = additional_properties
154
68
  @_field_set = {
155
69
  "occurrence_code_qualifier": occurrence_code_qualifier,
156
70
  "occurrence_code": occurrence_code,
157
71
  "occurrence_date": occurrence_date,
158
72
  "id": id,
159
- "encounter_id": encounter_id,
160
- "code_list_qualifier": code_list_qualifier,
161
- "industry_code_1": industry_code_1,
162
- "industry_code_2": industry_code_2,
163
- "industry_code_3": industry_code_3,
164
- "industry_code_4": industry_code_4,
165
- "date_time_period_format_qualifier": date_time_period_format_qualifier,
166
- "date_time_period": date_time_period,
167
- "monetary_amount": monetary_amount,
168
- "quantity": quantity
73
+ "encounter_id": encounter_id
169
74
  }.reject do |_k, v|
170
75
  v == OMIT
171
76
  end
@@ -185,30 +90,12 @@ module CandidApiClient
185
90
  end
186
91
  id = struct["id"]
187
92
  encounter_id = struct["encounter_id"]
188
- code_list_qualifier = struct["code_list_qualifier"]
189
- industry_code_1 = struct["industry_code_1"]
190
- industry_code_2 = struct["industry_code_2"]
191
- industry_code_3 = struct["industry_code_3"]
192
- industry_code_4 = struct["industry_code_4"]
193
- date_time_period_format_qualifier = struct["date_time_period_format_qualifier"]
194
- date_time_period = struct["date_time_period"]
195
- monetary_amount = struct["monetary_amount"]
196
- quantity = struct["quantity"]
197
93
  new(
198
94
  occurrence_code_qualifier: occurrence_code_qualifier,
199
95
  occurrence_code: occurrence_code,
200
96
  occurrence_date: occurrence_date,
201
97
  id: id,
202
98
  encounter_id: encounter_id,
203
- code_list_qualifier: code_list_qualifier,
204
- industry_code_1: industry_code_1,
205
- industry_code_2: industry_code_2,
206
- industry_code_3: industry_code_3,
207
- industry_code_4: industry_code_4,
208
- date_time_period_format_qualifier: date_time_period_format_qualifier,
209
- date_time_period: date_time_period,
210
- monetary_amount: monetary_amount,
211
- quantity: quantity,
212
99
  additional_properties: struct
213
100
  )
214
101
  end
@@ -232,15 +119,6 @@ module CandidApiClient
232
119
  obj.occurrence_date.is_a?(DateTime) != false || raise("Passed value for field obj.occurrence_date is not the expected type, validation failed.")
233
120
  obj.id&.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
234
121
  obj.encounter_id&.is_a?(String) != false || raise("Passed value for field obj.encounter_id is not the expected type, validation failed.")
235
- 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.")
236
- obj.industry_code_1&.is_a?(String) != false || raise("Passed value for field obj.industry_code_1 is not the expected type, validation failed.")
237
- obj.industry_code_2&.is_a?(String) != false || raise("Passed value for field obj.industry_code_2 is not the expected type, validation failed.")
238
- obj.industry_code_3&.is_a?(String) != false || raise("Passed value for field obj.industry_code_3 is not the expected type, validation failed.")
239
- obj.industry_code_4&.is_a?(String) != false || raise("Passed value for field obj.industry_code_4 is not the expected type, validation failed.")
240
- 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.")
241
- obj.date_time_period&.is_a?(String) != false || raise("Passed value for field obj.date_time_period is not the expected type, validation failed.")
242
- obj.monetary_amount&.is_a?(String) != false || raise("Passed value for field obj.monetary_amount is not the expected type, validation failed.")
243
- obj.quantity&.is_a?(String) != false || raise("Passed value for field obj.quantity is not the expected type, validation failed.")
244
122
  end
245
123
  end
246
124
  end
@@ -4,6 +4,7 @@ module CandidApiClient
4
4
  module HealthCareCodeInformation
5
5
  module V1
6
6
  module Types
7
+ # An enumeration.
7
8
  class OccurrenceSpanCode
8
9
  C_70 = "70"
9
10
  C_71 = "71"
@@ -14,10 +15,14 @@ module CandidApiClient
14
15
  C_76 = "76"
15
16
  C_77 = "77"
16
17
  C_78 = "78"
17
- C_79 = "79"
18
18
  C_80 = "80"
19
19
  C_81 = "81"
20
20
  C_82 = "82"
21
+ CM_0 = "M0"
22
+ CM_1 = "M1"
23
+ CM_2 = "M2"
24
+ CM_3 = "M3"
25
+ CM_4 = "M4"
21
26
  end
22
27
  end
23
28
  end
@@ -3,8 +3,6 @@
3
3
  require_relative "occurrence_span_code_qualifier"
4
4
  require_relative "occurrence_span_code"
5
5
  require_relative "rd_8_date"
6
- require_relative "code_list_qualifier_code"
7
- require_relative "date_time_period_format_qualifier"
8
6
  require "ostruct"
9
7
  require "json"
10
8
 
@@ -31,50 +29,6 @@ module CandidApiClient
31
29
  # This will be set by the server in responses, but clients are not expected to set
32
30
  # it.
33
31
  attr_reader :encounter_id
34
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
35
- attr_reader :code_list_qualifier
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_1
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_2
46
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
47
- # You do not need to set this field generally, instead it is provided as advisory
48
- # context on how this HealthCareCodeInformation's data will be available in
49
- # reporting.
50
- attr_reader :industry_code_3
51
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
52
- # You do not need to set this field generally, instead it is provided as advisory
53
- # context on how this HealthCareCodeInformation's data will be available in
54
- # reporting.
55
- attr_reader :industry_code_4
56
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
57
- # as part of claim process.
58
- # You do not need to set this field generally, instead it is provided as advisory
59
- # context on how this HealthCareCodeInformation's data will be available in
60
- # reporting.
61
- attr_reader :date_time_period_format_qualifier
62
- # @return [String] A string, formatted according to date_time_period_format_qualifier, which
63
- # ultimately represents the date time period in which an information object
64
- # is covering.
65
- # You do not need to set this field generally, instead it is provided as advisory
66
- # context on how this HealthCareCodeInformation's data will be available in
67
- # reporting.
68
- attr_reader :date_time_period
69
- # @return [String] A decimal used to represent ValueInformation results.
70
- # 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 :monetary_amount
74
- # @return [String] You do not need to set this field generally, instead it is provided as advisory
75
- # context on how this HealthCareCodeInformation's data will be available in
76
- # reporting.
77
- attr_reader :quantity
78
32
  # @return [OpenStruct] Additional properties unmapped to the current class definition
79
33
  attr_reader :additional_properties
80
34
  # @return [Object]
@@ -95,77 +49,22 @@ module CandidApiClient
95
49
  # @param encounter_id [String] The encounter_id of this health care code information if it is already stored.
96
50
  # This will be set by the server in responses, but clients are not expected to set
97
51
  # it.
98
- # @param code_list_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
99
- # @param industry_code_1 [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_2 [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_3 [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 industry_code_4 [String] A code string whose interpretation depends on the code_list_qualifier being set.
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_format_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
116
- # as part of claim process.
117
- # 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
- # @param date_time_period [String] A string, formatted according to date_time_period_format_qualifier, which
121
- # ultimately represents the date time period in which an information object
122
- # is covering.
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 monetary_amount [String] A decimal used to represent ValueInformation results.
127
- # You do not need to set this field generally, instead it is provided as advisory
128
- # context on how this HealthCareCodeInformation's data will be available in
129
- # reporting.
130
- # @param quantity [String] You do not need to set this field generally, instead it is provided as advisory
131
- # context on how this HealthCareCodeInformation's data will be available in
132
- # reporting.
133
52
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
134
53
  # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceSpanInformation]
135
54
  def initialize(occurrence_span_code_qualifier:, occurrence_span_code:, occurrence_span_date:, id: OMIT,
136
- 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)
55
+ encounter_id: OMIT, additional_properties: nil)
137
56
  @occurrence_span_code_qualifier = occurrence_span_code_qualifier
138
57
  @occurrence_span_code = occurrence_span_code
139
58
  @occurrence_span_date = occurrence_span_date
140
59
  @id = id if id != OMIT
141
60
  @encounter_id = encounter_id if encounter_id != OMIT
142
- @code_list_qualifier = code_list_qualifier if code_list_qualifier != OMIT
143
- @industry_code_1 = industry_code_1 if industry_code_1 != OMIT
144
- @industry_code_2 = industry_code_2 if industry_code_2 != OMIT
145
- @industry_code_3 = industry_code_3 if industry_code_3 != OMIT
146
- @industry_code_4 = industry_code_4 if industry_code_4 != OMIT
147
- if date_time_period_format_qualifier != OMIT
148
- @date_time_period_format_qualifier = date_time_period_format_qualifier
149
- end
150
- @date_time_period = date_time_period if date_time_period != OMIT
151
- @monetary_amount = monetary_amount if monetary_amount != OMIT
152
- @quantity = quantity if quantity != OMIT
153
61
  @additional_properties = additional_properties
154
62
  @_field_set = {
155
63
  "occurrence_span_code_qualifier": occurrence_span_code_qualifier,
156
64
  "occurrence_span_code": occurrence_span_code,
157
65
  "occurrence_span_date": occurrence_span_date,
158
66
  "id": id,
159
- "encounter_id": encounter_id,
160
- "code_list_qualifier": code_list_qualifier,
161
- "industry_code_1": industry_code_1,
162
- "industry_code_2": industry_code_2,
163
- "industry_code_3": industry_code_3,
164
- "industry_code_4": industry_code_4,
165
- "date_time_period_format_qualifier": date_time_period_format_qualifier,
166
- "date_time_period": date_time_period,
167
- "monetary_amount": monetary_amount,
168
- "quantity": quantity
67
+ "encounter_id": encounter_id
169
68
  }.reject do |_k, v|
170
69
  v == OMIT
171
70
  end
@@ -188,30 +87,12 @@ module CandidApiClient
188
87
  end
189
88
  id = struct["id"]
190
89
  encounter_id = struct["encounter_id"]
191
- code_list_qualifier = struct["code_list_qualifier"]
192
- industry_code_1 = struct["industry_code_1"]
193
- industry_code_2 = struct["industry_code_2"]
194
- industry_code_3 = struct["industry_code_3"]
195
- industry_code_4 = struct["industry_code_4"]
196
- date_time_period_format_qualifier = struct["date_time_period_format_qualifier"]
197
- date_time_period = struct["date_time_period"]
198
- monetary_amount = struct["monetary_amount"]
199
- quantity = struct["quantity"]
200
90
  new(
201
91
  occurrence_span_code_qualifier: occurrence_span_code_qualifier,
202
92
  occurrence_span_code: occurrence_span_code,
203
93
  occurrence_span_date: occurrence_span_date,
204
94
  id: id,
205
95
  encounter_id: encounter_id,
206
- code_list_qualifier: code_list_qualifier,
207
- industry_code_1: industry_code_1,
208
- industry_code_2: industry_code_2,
209
- industry_code_3: industry_code_3,
210
- industry_code_4: industry_code_4,
211
- date_time_period_format_qualifier: date_time_period_format_qualifier,
212
- date_time_period: date_time_period,
213
- monetary_amount: monetary_amount,
214
- quantity: quantity,
215
96
  additional_properties: struct
216
97
  )
217
98
  end
@@ -235,15 +116,6 @@ module CandidApiClient
235
116
  CandidApiClient::HealthCareCodeInformation::V1::Types::Rd8Date.validate_raw(obj: obj.occurrence_span_date)
236
117
  obj.id&.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
237
118
  obj.encounter_id&.is_a?(String) != false || raise("Passed value for field obj.encounter_id is not the expected type, validation failed.")
238
- 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.")
239
- obj.industry_code_1&.is_a?(String) != false || raise("Passed value for field obj.industry_code_1 is not the expected type, validation failed.")
240
- obj.industry_code_2&.is_a?(String) != false || raise("Passed value for field obj.industry_code_2 is not the expected type, validation failed.")
241
- obj.industry_code_3&.is_a?(String) != false || raise("Passed value for field obj.industry_code_3 is not the expected type, validation failed.")
242
- obj.industry_code_4&.is_a?(String) != false || raise("Passed value for field obj.industry_code_4 is not the expected type, validation failed.")
243
- 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.")
244
- obj.date_time_period&.is_a?(String) != false || raise("Passed value for field obj.date_time_period is not the expected type, validation failed.")
245
- obj.monetary_amount&.is_a?(String) != false || raise("Passed value for field obj.monetary_amount is not the expected type, validation failed.")
246
- obj.quantity&.is_a?(String) != false || raise("Passed value for field obj.quantity is not the expected type, validation failed.")
247
119
  end
248
120
  end
249
121
  end
@@ -2,8 +2,6 @@
2
2
 
3
3
  require_relative "other_diagnosis_information_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::OtherDiagnosisInformation]
134
53
  def initialize(other_diagnosis_code_qualifier:, other_diagnosis:, present_on_admission_indicator: OMIT,
135
- 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
+ id: OMIT, encounter_id: OMIT, additional_properties: nil)
136
55
  @other_diagnosis_code_qualifier = other_diagnosis_code_qualifier
137
56
  @other_diagnosis = other_diagnosis
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
  "other_diagnosis_code_qualifier": other_diagnosis_code_qualifier,
155
63
  "other_diagnosis": other_diagnosis,
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
  other_diagnosis_code_qualifier: other_diagnosis_code_qualifier,
195
85
  other_diagnosis: other_diagnosis,
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