candidhealth 0.39.2 → 0.39.4

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.
@@ -61,6 +61,14 @@ module CandidApiClient
61
61
  # @return [Array<CandidApiClient::ServiceLines::V2::Types::TestResult>] Maps to MEA-02 on the 837-P. No more than 5 test results may be submitted per
62
62
  # service line.
63
63
  attr_reader :test_results
64
+ # @return [Boolean] Maps to SV1-11 on the 837-P and Box 24H on the CMS-1500.
65
+ # If the value is true, the box will be populated with "Y". Otherwise, the box
66
+ # will not be populated.
67
+ attr_reader :has_epsdt_indicator
68
+ # @return [Boolean] Maps to SV1-12 on the 837-P and Box 24I on the CMS-1500.
69
+ # If the value is true, the box will be populated with "Y". Otherwise, the box
70
+ # will not be populated.
71
+ attr_reader :has_family_planning_indicator
64
72
  # @return [OpenStruct] Additional properties unmapped to the current class definition
65
73
  attr_reader :additional_properties
66
74
  # @return [Object]
@@ -96,10 +104,16 @@ module CandidApiClient
96
104
  # If not required by this implementation guide, do not send.
97
105
  # @param test_results [Array<CandidApiClient::ServiceLines::V2::Types::TestResult>] Maps to MEA-02 on the 837-P. No more than 5 test results may be submitted per
98
106
  # service line.
107
+ # @param has_epsdt_indicator [Boolean] Maps to SV1-11 on the 837-P and Box 24H on the CMS-1500.
108
+ # If the value is true, the box will be populated with "Y". Otherwise, the box
109
+ # will not be populated.
110
+ # @param has_family_planning_indicator [Boolean] Maps to SV1-12 on the 837-P and Box 24I on the CMS-1500.
111
+ # If the value is true, the box will be populated with "Y". Otherwise, the box
112
+ # will not be populated.
99
113
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
100
114
  # @return [CandidApiClient::ServiceLines::V2::Types::ServiceLineCreateStandalone]
101
115
  def initialize(procedure_code:, quantity:, units:, claim_id:, modifiers: OMIT, charge_amount_cents: OMIT, diagnosis_id_zero: OMIT, diagnosis_id_one: OMIT,
102
- diagnosis_id_two: OMIT, diagnosis_id_three: OMIT, denial_reason: OMIT, place_of_service_code: OMIT, description: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, drug_identification: OMIT, ordering_provider: OMIT, test_results: OMIT, additional_properties: nil)
116
+ diagnosis_id_two: OMIT, diagnosis_id_three: OMIT, denial_reason: OMIT, place_of_service_code: OMIT, description: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, drug_identification: OMIT, ordering_provider: OMIT, test_results: OMIT, has_epsdt_indicator: OMIT, has_family_planning_indicator: OMIT, additional_properties: nil)
103
117
  @modifiers = modifiers if modifiers != OMIT
104
118
  @charge_amount_cents = charge_amount_cents if charge_amount_cents != OMIT
105
119
  @diagnosis_id_zero = diagnosis_id_zero if diagnosis_id_zero != OMIT
@@ -118,6 +132,8 @@ module CandidApiClient
118
132
  @drug_identification = drug_identification if drug_identification != OMIT
119
133
  @ordering_provider = ordering_provider if ordering_provider != OMIT
120
134
  @test_results = test_results if test_results != OMIT
135
+ @has_epsdt_indicator = has_epsdt_indicator if has_epsdt_indicator != OMIT
136
+ @has_family_planning_indicator = has_family_planning_indicator if has_family_planning_indicator != OMIT
121
137
  @additional_properties = additional_properties
122
138
  @_field_set = {
123
139
  "modifiers": modifiers,
@@ -137,7 +153,9 @@ module CandidApiClient
137
153
  "end_date_of_service": end_date_of_service,
138
154
  "drug_identification": drug_identification,
139
155
  "ordering_provider": ordering_provider,
140
- "test_results": test_results
156
+ "test_results": test_results,
157
+ "has_epsdt_indicator": has_epsdt_indicator,
158
+ "has_family_planning_indicator": has_family_planning_indicator
141
159
  }.reject do |_k, v|
142
160
  v == OMIT
143
161
  end
@@ -188,6 +206,8 @@ module CandidApiClient
188
206
  item = item.to_json
189
207
  CandidApiClient::ServiceLines::V2::Types::TestResult.from_json(json_object: item)
190
208
  end
209
+ has_epsdt_indicator = struct["has_epsdt_indicator"]
210
+ has_family_planning_indicator = struct["has_family_planning_indicator"]
191
211
  new(
192
212
  modifiers: modifiers,
193
213
  charge_amount_cents: charge_amount_cents,
@@ -207,6 +227,8 @@ module CandidApiClient
207
227
  drug_identification: drug_identification,
208
228
  ordering_provider: ordering_provider,
209
229
  test_results: test_results,
230
+ has_epsdt_indicator: has_epsdt_indicator,
231
+ has_family_planning_indicator: has_family_planning_indicator,
210
232
  additional_properties: struct
211
233
  )
212
234
  end
@@ -243,6 +265,8 @@ module CandidApiClient
243
265
  obj.drug_identification.nil? || CandidApiClient::ServiceLines::V2::Types::DrugIdentification.validate_raw(obj: obj.drug_identification)
244
266
  obj.ordering_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::OrderingProvider.validate_raw(obj: obj.ordering_provider)
245
267
  obj.test_results&.is_a?(Array) != false || raise("Passed value for field obj.test_results is not the expected type, validation failed.")
268
+ obj.has_epsdt_indicator&.is_a?(Boolean) != false || raise("Passed value for field obj.has_epsdt_indicator is not the expected type, validation failed.")
269
+ obj.has_family_planning_indicator&.is_a?(Boolean) != false || raise("Passed value for field obj.has_family_planning_indicator is not the expected type, validation failed.")
246
270
  end
247
271
  end
248
272
  end
@@ -59,6 +59,14 @@ module CandidApiClient
59
59
  # provided. No more than 5 test
60
60
  # results may be submitted per service line.
61
61
  attr_reader :test_results
62
+ # @return [Boolean] Maps to SV1-11 on the 837-P and Box 24H on the CMS-1500.
63
+ # If the value is true, the box will be populated with "Y". Otherwise, the box
64
+ # will not be populated.
65
+ attr_reader :has_epsdt_indicator
66
+ # @return [Boolean] Maps to SV1-12 on the 837-P and Box 24I on the CMS-1500.
67
+ # If the value is true, the box will be populated with "Y". Otherwise, the box
68
+ # will not be populated.
69
+ attr_reader :has_family_planning_indicator
62
70
  # @return [OpenStruct] Additional properties unmapped to the current class definition
63
71
  attr_reader :additional_properties
64
72
  # @return [Object]
@@ -94,10 +102,16 @@ module CandidApiClient
94
102
  # so the test results on the service line will be set to whatever inputs are
95
103
  # provided. No more than 5 test
96
104
  # results may be submitted per service line.
105
+ # @param has_epsdt_indicator [Boolean] Maps to SV1-11 on the 837-P and Box 24H on the CMS-1500.
106
+ # If the value is true, the box will be populated with "Y". Otherwise, the box
107
+ # will not be populated.
108
+ # @param has_family_planning_indicator [Boolean] Maps to SV1-12 on the 837-P and Box 24I on the CMS-1500.
109
+ # If the value is true, the box will be populated with "Y". Otherwise, the box
110
+ # will not be populated.
97
111
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
98
112
  # @return [CandidApiClient::ServiceLines::V2::Types::ServiceLineUpdate]
99
113
  def initialize(edit_reason: OMIT, modifiers: OMIT, charge_amount_cents: OMIT, diagnosis_id_zero: OMIT,
100
- diagnosis_id_one: OMIT, diagnosis_id_two: OMIT, diagnosis_id_three: OMIT, drug_identification: OMIT, denial_reason: OMIT, place_of_service_code: OMIT, units: OMIT, procedure_code: OMIT, quantity: OMIT, description: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, test_results: OMIT, additional_properties: nil)
114
+ diagnosis_id_one: OMIT, diagnosis_id_two: OMIT, diagnosis_id_three: OMIT, drug_identification: OMIT, denial_reason: OMIT, place_of_service_code: OMIT, units: OMIT, procedure_code: OMIT, quantity: OMIT, description: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, test_results: OMIT, has_epsdt_indicator: OMIT, has_family_planning_indicator: OMIT, additional_properties: nil)
101
115
  @edit_reason = edit_reason if edit_reason != OMIT
102
116
  @modifiers = modifiers if modifiers != OMIT
103
117
  @charge_amount_cents = charge_amount_cents if charge_amount_cents != OMIT
@@ -115,6 +129,8 @@ module CandidApiClient
115
129
  @date_of_service = date_of_service if date_of_service != OMIT
116
130
  @end_date_of_service = end_date_of_service if end_date_of_service != OMIT
117
131
  @test_results = test_results if test_results != OMIT
132
+ @has_epsdt_indicator = has_epsdt_indicator if has_epsdt_indicator != OMIT
133
+ @has_family_planning_indicator = has_family_planning_indicator if has_family_planning_indicator != OMIT
118
134
  @additional_properties = additional_properties
119
135
  @_field_set = {
120
136
  "edit_reason": edit_reason,
@@ -133,7 +149,9 @@ module CandidApiClient
133
149
  "description": description,
134
150
  "date_of_service": date_of_service,
135
151
  "end_date_of_service": end_date_of_service,
136
- "test_results": test_results
152
+ "test_results": test_results,
153
+ "has_epsdt_indicator": has_epsdt_indicator,
154
+ "has_family_planning_indicator": has_family_planning_indicator
137
155
  }.reject do |_k, v|
138
156
  v == OMIT
139
157
  end
@@ -178,6 +196,8 @@ module CandidApiClient
178
196
  item = item.to_json
179
197
  CandidApiClient::ServiceLines::V2::Types::TestResult.from_json(json_object: item)
180
198
  end
199
+ has_epsdt_indicator = struct["has_epsdt_indicator"]
200
+ has_family_planning_indicator = struct["has_family_planning_indicator"]
181
201
  new(
182
202
  edit_reason: edit_reason,
183
203
  modifiers: modifiers,
@@ -196,6 +216,8 @@ module CandidApiClient
196
216
  date_of_service: date_of_service,
197
217
  end_date_of_service: end_date_of_service,
198
218
  test_results: test_results,
219
+ has_epsdt_indicator: has_epsdt_indicator,
220
+ has_family_planning_indicator: has_family_planning_indicator,
199
221
  additional_properties: struct
200
222
  )
201
223
  end
@@ -231,6 +253,8 @@ module CandidApiClient
231
253
  obj.date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.date_of_service is not the expected type, validation failed.")
232
254
  obj.end_date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.end_date_of_service is not the expected type, validation failed.")
233
255
  obj.test_results&.is_a?(Array) != false || raise("Passed value for field obj.test_results is not the expected type, validation failed.")
256
+ obj.has_epsdt_indicator&.is_a?(Boolean) != false || raise("Passed value for field obj.has_epsdt_indicator is not the expected type, validation failed.")
257
+ obj.has_family_planning_indicator&.is_a?(Boolean) != false || raise("Passed value for field obj.has_family_planning_indicator is not the expected type, validation failed.")
234
258
  end
235
259
  end
236
260
  end
data/lib/requests.rb CHANGED
@@ -43,7 +43,7 @@ module CandidApiClient
43
43
 
44
44
  # @return [Hash{String => String}]
45
45
  def get_headers
46
- headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.2" }
46
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.4" }
47
47
  headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
48
48
  headers
49
49
  end
@@ -87,7 +87,7 @@ module CandidApiClient
87
87
 
88
88
  # @return [Hash{String => String}]
89
89
  def get_headers
90
- headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.2" }
90
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.4" }
91
91
  headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
92
92
  headers
93
93
  end
data/lib/types_export.rb CHANGED
@@ -52,6 +52,7 @@ require_relative "candidhealth/encounter_providers/v_2/types/ordering_provider_u
52
52
  require_relative "candidhealth/encounter_providers/v_2/types/billing_provider"
53
53
  require_relative "candidhealth/encounter_providers/v_2/types/billing_provider_update"
54
54
  require_relative "candidhealth/encounter_providers/v_2/types/encounter_provider"
55
+ require_relative "candidhealth/encounters/v_4/types/encounter_create_from_pre_encounter"
55
56
  require_relative "candidhealth/encounters/v_4/types/encounter_base"
56
57
  require_relative "candidhealth/encounters/v_4/types/encounter_optional"
57
58
  require_relative "candidhealth/encounters/v_4/types/encounter"
@@ -78,6 +79,7 @@ require_relative "candidhealth/encounters/v_4/types/encounter_owner_of_next_acti
78
79
  require_relative "candidhealth/encounters/v_4/types/encounter_submission_origin_type"
79
80
  require_relative "candidhealth/encounters/v_4/types/synchronicity_type"
80
81
  require_relative "candidhealth/encounters/v_4/types/coding_attribution_type"
82
+ require_relative "candidhealth/encounters/v_4/types/epsdt_referral"
81
83
  require_relative "candidhealth/encounters/v_4/types/encounter_page"
82
84
  require_relative "candidhealth/encounters/v_4/types/encounter_external_id_uniqueness_error_type"
83
85
  require_relative "candidhealth/encounters/v_4/types/encounter_patient_control_number_uniqueness_error_type"
@@ -373,6 +375,7 @@ require_relative "candidhealth/commons/types/phone_number_type"
373
375
  require_relative "candidhealth/commons/types/delay_reason_code"
374
376
  require_relative "candidhealth/commons/types/intended_submission_medium"
375
377
  require_relative "candidhealth/commons/types/billing_provider_commercial_license_type"
378
+ require_relative "candidhealth/commons/types/epsdt_referral_condition_indicator_code"
376
379
  require_relative "candidhealth/diagnoses/types/diagnosis_create"
377
380
  require_relative "candidhealth/diagnoses/types/standalone_diagnosis_create"
378
381
  require_relative "candidhealth/diagnoses/types/diagnosis_type_code"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: candidhealth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.39.2
4
+ version: 0.39.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-01-27 00:00:00.000000000 Z
11
+ date: 2025-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http-faraday
@@ -130,6 +130,7 @@ files:
130
130
  - lib/candidhealth/commons/types/emr_payer_crosswalk.rb
131
131
  - lib/candidhealth/commons/types/entity_conflict_error_message.rb
132
132
  - lib/candidhealth/commons/types/entity_not_found_error_message.rb
133
+ - lib/candidhealth/commons/types/epsdt_referral_condition_indicator_code.rb
133
134
  - lib/candidhealth/commons/types/facility_type_code.rb
134
135
  - lib/candidhealth/commons/types/http_service_unavailable_error_message.rb
135
136
  - lib/candidhealth/commons/types/insurance_type_code.rb
@@ -222,6 +223,7 @@ files:
222
223
  - lib/candidhealth/encounters/v_4/types/coding_attribution_type.rb
223
224
  - lib/candidhealth/encounters/v_4/types/encounter.rb
224
225
  - lib/candidhealth/encounters/v_4/types/encounter_base.rb
226
+ - lib/candidhealth/encounters/v_4/types/encounter_create_from_pre_encounter.rb
225
227
  - lib/candidhealth/encounters/v_4/types/encounter_external_id_uniqueness_error_type.rb
226
228
  - lib/candidhealth/encounters/v_4/types/encounter_guarantor_missing_contact_info_error_type.rb
227
229
  - lib/candidhealth/encounters/v_4/types/encounter_optional.rb
@@ -230,6 +232,7 @@ files:
230
232
  - lib/candidhealth/encounters/v_4/types/encounter_patient_control_number_uniqueness_error_type.rb
231
233
  - lib/candidhealth/encounters/v_4/types/encounter_sort_options.rb
232
234
  - lib/candidhealth/encounters/v_4/types/encounter_submission_origin_type.rb
235
+ - lib/candidhealth/encounters/v_4/types/epsdt_referral.rb
233
236
  - lib/candidhealth/encounters/v_4/types/intake_follow_up.rb
234
237
  - lib/candidhealth/encounters/v_4/types/intake_question.rb
235
238
  - lib/candidhealth/encounters/v_4/types/intake_response_and_follow_ups.rb