candidhealth 0.39.8 → 0.39.10

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19663b3533c583e080c31d3afa214f52ba5d8760f2e9fd45e96df11e2744afad
4
- data.tar.gz: 3e80796b9240328a1b5791394fa95a6c51043c00b06de2ef0522d1c305c05ccf
3
+ metadata.gz: 41be4e7c4e978c3c9069b6a189a6479f56b0ffd482a62cd5e16809888e2e406c
4
+ data.tar.gz: 52b97def08c04beb4a9a7cfcf611bb0995847e7e41b8e4b49f07bcad2c235fa7
5
5
  SHA512:
6
- metadata.gz: 15b5ac00b2e897c5c63ed7dc5c3bab21afa8aeb74bc4456ff9b2f40683004a0ef89426679b158ac487ab8283d05c7cb172270b859e77dd8148d21a96b4176d95
7
- data.tar.gz: 3b374a2a476f74d78e9e8e8ad81a3fd298370911471478976532a40f0b311aac1105069f17cbb97d899e71139a80869b2bfd27ad03dbb83bfd42185211b53953
6
+ metadata.gz: 87be14cc1f2c37da6fd8851e53c4359956835748e3e8db4db3b00a1da4cfe929709c3fce70d65ef6f44ef8ac6b1a7b3b86daaa6eea922e0163c19bb5404cfd69
7
+ data.tar.gz: d25ee643e54c2d674ce64dd2ac32be51f2a7414e861c3e8f82e5496c0843c5d30480f226e8aa6d8a17cde00f5e028210726a99b287c701cb6ab905abddb9e7e2
@@ -19,7 +19,7 @@ module CandidApiClient
19
19
 
20
20
  # <Tip>Candid is deprecating support for this endpoint. It is instead recommended
21
21
  # to use [Candid's Stedi passthrough
22
- # t](https://docs.joincandidhealth.com/api-reference/eligibility-checks/v-1/post).
22
+ # s.joincandidhealth.com/api-reference/pre-encounter/eligibility-checks/v-1/post).
23
23
  # For assistance with the transition, please reference the [Transitioning to
24
24
  # Candid's New Eligibility
25
25
  # Endpoint](https://support.joincandidhealth.com/hc/en-us/articles/34918552872980)
@@ -73,7 +73,7 @@ module CandidApiClient
73
73
 
74
74
  # <Tip>Candid is deprecating support for this endpoint. It is instead recommended
75
75
  # to use [Candid's Stedi passthrough
76
- # t](https://docs.joincandidhealth.com/api-reference/eligibility-checks/v-1/post).
76
+ # s.joincandidhealth.com/api-reference/pre-encounter/eligibility-checks/v-1/post).
77
77
  # For assistance with the transition, please reference the [Transitioning to
78
78
  # Candid's New Eligibility
79
79
  # Endpoint](https://support.joincandidhealth.com/hc/en-us/articles/34918552872980)
@@ -123,7 +123,7 @@ module CandidApiClient
123
123
 
124
124
  # <Tip>Candid is deprecating support for this endpoint. It is instead recommended
125
125
  # to use [Candid's Stedi passthrough
126
- # t](https://docs.joincandidhealth.com/api-reference/eligibility-checks/v-1/post).
126
+ # s.joincandidhealth.com/api-reference/pre-encounter/eligibility-checks/v-1/post).
127
127
  # For assistance with the transition, please reference the [Transitioning to
128
128
  # Candid's New Eligibility
129
129
  # Endpoint](https://support.joincandidhealth.com/hc/en-us/articles/34918552872980)
@@ -178,7 +178,7 @@ module CandidApiClient
178
178
 
179
179
  # <Tip>Candid is deprecating support for this endpoint. It is instead recommended
180
180
  # to use [Candid's Stedi passthrough
181
- # t](https://docs.joincandidhealth.com/api-reference/eligibility-checks/v-1/post).
181
+ # s.joincandidhealth.com/api-reference/pre-encounter/eligibility-checks/v-1/post).
182
182
  # For assistance with the transition, please reference the [Transitioning to
183
183
  # Candid's New Eligibility
184
184
  # Endpoint](https://support.joincandidhealth.com/hc/en-us/articles/34918552872980)
@@ -235,7 +235,7 @@ module CandidApiClient
235
235
 
236
236
  # <Tip>Candid is deprecating support for this endpoint. It is instead recommended
237
237
  # to use [Candid's Stedi passthrough
238
- # t](https://docs.joincandidhealth.com/api-reference/eligibility-checks/v-1/post).
238
+ # s.joincandidhealth.com/api-reference/pre-encounter/eligibility-checks/v-1/post).
239
239
  # For assistance with the transition, please reference the [Transitioning to
240
240
  # Candid's New Eligibility
241
241
  # Endpoint](https://support.joincandidhealth.com/hc/en-us/articles/34918552872980)
@@ -288,7 +288,7 @@ module CandidApiClient
288
288
 
289
289
  # <Tip>Candid is deprecating support for this endpoint. It is instead recommended
290
290
  # to use [Candid's Stedi passthrough
291
- # t](https://docs.joincandidhealth.com/api-reference/eligibility-checks/v-1/post).
291
+ # s.joincandidhealth.com/api-reference/pre-encounter/eligibility-checks/v-1/post).
292
292
  # For assistance with the transition, please reference the [Transitioning to
293
293
  # Candid's New Eligibility
294
294
  # Endpoint](https://support.joincandidhealth.com/hc/en-us/articles/34918552872980)
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative "../../../commons/types/street_address_long_zip"
3
4
  require "ostruct"
4
5
  require "json"
5
6
 
@@ -22,6 +23,8 @@ module CandidApiClient
22
23
  attr_reader :availity_eligibility_id
23
24
  # @return [String] The remittance ID of the payer as it appears in Availity.
24
25
  attr_reader :availity_remittance_payer_id
26
+ # @return [CandidApiClient::Commons::Types::StreetAddressLongZip]
27
+ attr_reader :street_address
25
28
  # @return [OpenStruct] Additional properties unmapped to the current class definition
26
29
  attr_reader :additional_properties
27
30
  # @return [Object]
@@ -37,10 +40,11 @@ module CandidApiClient
37
40
  # @param availity_claims_payer_id [String] The ID of the payer as it appears in Availity.
38
41
  # @param availity_eligibility_id [String] The eligibility ID of the payer as it appears in Availity.
39
42
  # @param availity_remittance_payer_id [String] The remittance ID of the payer as it appears in Availity.
43
+ # @param street_address [CandidApiClient::Commons::Types::StreetAddressLongZip]
40
44
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
41
45
  # @return [CandidApiClient::Payers::V3::Types::Payer]
42
46
  def initialize(payer_uuid:, payer_id:, payer_name:, availity_payer_name: OMIT,
43
- availity_claims_payer_id: OMIT, availity_eligibility_id: OMIT, availity_remittance_payer_id: OMIT, additional_properties: nil)
47
+ availity_claims_payer_id: OMIT, availity_eligibility_id: OMIT, availity_remittance_payer_id: OMIT, street_address: OMIT, additional_properties: nil)
44
48
  @payer_uuid = payer_uuid
45
49
  @payer_id = payer_id
46
50
  @payer_name = payer_name
@@ -48,6 +52,7 @@ module CandidApiClient
48
52
  @availity_claims_payer_id = availity_claims_payer_id if availity_claims_payer_id != OMIT
49
53
  @availity_eligibility_id = availity_eligibility_id if availity_eligibility_id != OMIT
50
54
  @availity_remittance_payer_id = availity_remittance_payer_id if availity_remittance_payer_id != OMIT
55
+ @street_address = street_address if street_address != OMIT
51
56
  @additional_properties = additional_properties
52
57
  @_field_set = {
53
58
  "payer_uuid": payer_uuid,
@@ -56,7 +61,8 @@ module CandidApiClient
56
61
  "availity_payer_name": availity_payer_name,
57
62
  "availity_claims_payer_id": availity_claims_payer_id,
58
63
  "availity_eligibility_id": availity_eligibility_id,
59
- "availity_remittance_payer_id": availity_remittance_payer_id
64
+ "availity_remittance_payer_id": availity_remittance_payer_id,
65
+ "street_address": street_address
60
66
  }.reject do |_k, v|
61
67
  v == OMIT
62
68
  end
@@ -68,6 +74,7 @@ module CandidApiClient
68
74
  # @return [CandidApiClient::Payers::V3::Types::Payer]
69
75
  def self.from_json(json_object:)
70
76
  struct = JSON.parse(json_object, object_class: OpenStruct)
77
+ parsed_json = JSON.parse(json_object)
71
78
  payer_uuid = struct["payer_uuid"]
72
79
  payer_id = struct["payer_id"]
73
80
  payer_name = struct["payer_name"]
@@ -75,6 +82,12 @@ module CandidApiClient
75
82
  availity_claims_payer_id = struct["availity_claims_payer_id"]
76
83
  availity_eligibility_id = struct["availity_eligibility_id"]
77
84
  availity_remittance_payer_id = struct["availity_remittance_payer_id"]
85
+ if parsed_json["street_address"].nil?
86
+ street_address = nil
87
+ else
88
+ street_address = parsed_json["street_address"].to_json
89
+ street_address = CandidApiClient::Commons::Types::StreetAddressLongZip.from_json(json_object: street_address)
90
+ end
78
91
  new(
79
92
  payer_uuid: payer_uuid,
80
93
  payer_id: payer_id,
@@ -83,6 +96,7 @@ module CandidApiClient
83
96
  availity_claims_payer_id: availity_claims_payer_id,
84
97
  availity_eligibility_id: availity_eligibility_id,
85
98
  availity_remittance_payer_id: availity_remittance_payer_id,
99
+ street_address: street_address,
86
100
  additional_properties: struct
87
101
  )
88
102
  end
@@ -108,6 +122,7 @@ module CandidApiClient
108
122
  obj.availity_claims_payer_id&.is_a?(String) != false || raise("Passed value for field obj.availity_claims_payer_id is not the expected type, validation failed.")
109
123
  obj.availity_eligibility_id&.is_a?(String) != false || raise("Passed value for field obj.availity_eligibility_id is not the expected type, validation failed.")
110
124
  obj.availity_remittance_payer_id&.is_a?(String) != false || raise("Passed value for field obj.availity_remittance_payer_id is not the expected type, validation failed.")
125
+ obj.street_address.nil? || CandidApiClient::Commons::Types::StreetAddressLongZip.validate_raw(obj: obj.street_address)
111
126
  end
112
127
  end
113
128
  end
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "date"
3
4
  require_relative "../../../commons/types/procedure_modifier"
4
5
  require_relative "drug_identification"
5
6
  require_relative "service_line_era_data"
@@ -11,7 +12,6 @@ require_relative "../../../commons/types/facility_type_code"
11
12
  require_relative "../../../encounter_providers/v_2/types/encounter_provider"
12
13
  require_relative "../../../commons/types/service_line_units"
13
14
  require_relative "../../../commons/types/date_range_optional_end"
14
- require "date"
15
15
  require_relative "test_result"
16
16
  require "ostruct"
17
17
  require "json"
@@ -21,6 +21,8 @@ module CandidApiClient
21
21
  module V2
22
22
  module Types
23
23
  class ServiceLine
24
+ # @return [DateTime]
25
+ attr_reader :created_at
24
26
  # @return [Array<CandidApiClient::Commons::Types::ProcedureModifier>]
25
27
  attr_reader :modifiers
26
28
  # @return [Integer]
@@ -41,6 +43,12 @@ module CandidApiClient
41
43
  attr_reader :tertiary_paid_amount_cents
42
44
  # @return [Integer]
43
45
  attr_reader :patient_responsibility_cents
46
+ # @return [Integer]
47
+ attr_reader :copay_cents
48
+ # @return [Integer]
49
+ attr_reader :coinsurance_cents
50
+ # @return [Integer]
51
+ attr_reader :deductible_cents
44
52
  # @return [String]
45
53
  attr_reader :diagnosis_id_zero
46
54
  # @return [String]
@@ -111,6 +119,7 @@ module CandidApiClient
111
119
 
112
120
  OMIT = Object.new
113
121
 
122
+ # @param created_at [DateTime]
114
123
  # @param modifiers [Array<CandidApiClient::Commons::Types::ProcedureModifier>]
115
124
  # @param charge_amount_cents [Integer]
116
125
  # @param allowed_amount_cents [Integer]
@@ -121,6 +130,9 @@ module CandidApiClient
121
130
  # @param secondary_paid_amount_cents [Integer]
122
131
  # @param tertiary_paid_amount_cents [Integer]
123
132
  # @param patient_responsibility_cents [Integer]
133
+ # @param copay_cents [Integer]
134
+ # @param coinsurance_cents [Integer]
135
+ # @param deductible_cents [Integer]
124
136
  # @param diagnosis_id_zero [String]
125
137
  # @param diagnosis_id_one [String]
126
138
  # @param diagnosis_id_two [String]
@@ -160,8 +172,9 @@ module CandidApiClient
160
172
  # will not be populated.
161
173
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
162
174
  # @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
163
- def initialize(service_line_id:, procedure_code:, quantity:, units:, claim_id:, date_of_service_range:, date_of_service:, modifiers: OMIT, charge_amount_cents: OMIT, allowed_amount_cents: OMIT,
164
- insurance_balance_cents: OMIT, patient_balance_cents: OMIT, paid_amount_cents: OMIT, primary_paid_amount_cents: OMIT, secondary_paid_amount_cents: OMIT, tertiary_paid_amount_cents: OMIT, patient_responsibility_cents: OMIT, diagnosis_id_zero: OMIT, diagnosis_id_one: OMIT, diagnosis_id_two: OMIT, diagnosis_id_three: OMIT, drug_identification: OMIT, service_line_era_data: OMIT, service_line_manual_adjustments: OMIT, related_invoices: OMIT, related_invoice_info: OMIT, denial_reason: OMIT, place_of_service_code: OMIT, place_of_service_code_as_submitted: OMIT, ordering_provider: OMIT, description: OMIT, end_date_of_service: OMIT, test_results: OMIT, has_epsdt_indicator: OMIT, has_family_planning_indicator: OMIT, additional_properties: nil)
175
+ def initialize(created_at:, service_line_id:, procedure_code:, quantity:, units:, claim_id:, date_of_service_range:, date_of_service:, modifiers: OMIT, charge_amount_cents: OMIT, allowed_amount_cents: OMIT,
176
+ insurance_balance_cents: OMIT, patient_balance_cents: OMIT, paid_amount_cents: OMIT, primary_paid_amount_cents: OMIT, secondary_paid_amount_cents: OMIT, tertiary_paid_amount_cents: OMIT, patient_responsibility_cents: OMIT, copay_cents: OMIT, coinsurance_cents: OMIT, deductible_cents: OMIT, diagnosis_id_zero: OMIT, diagnosis_id_one: OMIT, diagnosis_id_two: OMIT, diagnosis_id_three: OMIT, drug_identification: OMIT, service_line_era_data: OMIT, service_line_manual_adjustments: OMIT, related_invoices: OMIT, related_invoice_info: OMIT, denial_reason: OMIT, place_of_service_code: OMIT, place_of_service_code_as_submitted: OMIT, ordering_provider: OMIT, description: OMIT, end_date_of_service: OMIT, test_results: OMIT, has_epsdt_indicator: OMIT, has_family_planning_indicator: OMIT, additional_properties: nil)
177
+ @created_at = created_at
165
178
  @modifiers = modifiers if modifiers != OMIT
166
179
  @charge_amount_cents = charge_amount_cents if charge_amount_cents != OMIT
167
180
  @allowed_amount_cents = allowed_amount_cents if allowed_amount_cents != OMIT
@@ -172,6 +185,9 @@ module CandidApiClient
172
185
  @secondary_paid_amount_cents = secondary_paid_amount_cents if secondary_paid_amount_cents != OMIT
173
186
  @tertiary_paid_amount_cents = tertiary_paid_amount_cents if tertiary_paid_amount_cents != OMIT
174
187
  @patient_responsibility_cents = patient_responsibility_cents if patient_responsibility_cents != OMIT
188
+ @copay_cents = copay_cents if copay_cents != OMIT
189
+ @coinsurance_cents = coinsurance_cents if coinsurance_cents != OMIT
190
+ @deductible_cents = deductible_cents if deductible_cents != OMIT
175
191
  @diagnosis_id_zero = diagnosis_id_zero if diagnosis_id_zero != OMIT
176
192
  @diagnosis_id_one = diagnosis_id_one if diagnosis_id_one != OMIT
177
193
  @diagnosis_id_two = diagnosis_id_two if diagnosis_id_two != OMIT
@@ -203,6 +219,7 @@ module CandidApiClient
203
219
  @has_family_planning_indicator = has_family_planning_indicator if has_family_planning_indicator != OMIT
204
220
  @additional_properties = additional_properties
205
221
  @_field_set = {
222
+ "created_at": created_at,
206
223
  "modifiers": modifiers,
207
224
  "charge_amount_cents": charge_amount_cents,
208
225
  "allowed_amount_cents": allowed_amount_cents,
@@ -213,6 +230,9 @@ module CandidApiClient
213
230
  "secondary_paid_amount_cents": secondary_paid_amount_cents,
214
231
  "tertiary_paid_amount_cents": tertiary_paid_amount_cents,
215
232
  "patient_responsibility_cents": patient_responsibility_cents,
233
+ "copay_cents": copay_cents,
234
+ "coinsurance_cents": coinsurance_cents,
235
+ "deductible_cents": deductible_cents,
216
236
  "diagnosis_id_zero": diagnosis_id_zero,
217
237
  "diagnosis_id_one": diagnosis_id_one,
218
238
  "diagnosis_id_two": diagnosis_id_two,
@@ -250,6 +270,7 @@ module CandidApiClient
250
270
  def self.from_json(json_object:)
251
271
  struct = JSON.parse(json_object, object_class: OpenStruct)
252
272
  parsed_json = JSON.parse(json_object)
273
+ created_at = (DateTime.parse(parsed_json["created_at"]) unless parsed_json["created_at"].nil?)
253
274
  modifiers = struct["modifiers"]
254
275
  charge_amount_cents = struct["charge_amount_cents"]
255
276
  allowed_amount_cents = struct["allowed_amount_cents"]
@@ -260,6 +281,9 @@ module CandidApiClient
260
281
  secondary_paid_amount_cents = struct["secondary_paid_amount_cents"]
261
282
  tertiary_paid_amount_cents = struct["tertiary_paid_amount_cents"]
262
283
  patient_responsibility_cents = struct["patient_responsibility_cents"]
284
+ copay_cents = struct["copay_cents"]
285
+ coinsurance_cents = struct["coinsurance_cents"]
286
+ deductible_cents = struct["deductible_cents"]
263
287
  diagnosis_id_zero = struct["diagnosis_id_zero"]
264
288
  diagnosis_id_one = struct["diagnosis_id_one"]
265
289
  diagnosis_id_two = struct["diagnosis_id_two"]
@@ -325,6 +349,7 @@ module CandidApiClient
325
349
  has_epsdt_indicator = struct["has_epsdt_indicator"]
326
350
  has_family_planning_indicator = struct["has_family_planning_indicator"]
327
351
  new(
352
+ created_at: created_at,
328
353
  modifiers: modifiers,
329
354
  charge_amount_cents: charge_amount_cents,
330
355
  allowed_amount_cents: allowed_amount_cents,
@@ -335,6 +360,9 @@ module CandidApiClient
335
360
  secondary_paid_amount_cents: secondary_paid_amount_cents,
336
361
  tertiary_paid_amount_cents: tertiary_paid_amount_cents,
337
362
  patient_responsibility_cents: patient_responsibility_cents,
363
+ copay_cents: copay_cents,
364
+ coinsurance_cents: coinsurance_cents,
365
+ deductible_cents: deductible_cents,
338
366
  diagnosis_id_zero: diagnosis_id_zero,
339
367
  diagnosis_id_one: diagnosis_id_one,
340
368
  diagnosis_id_two: diagnosis_id_two,
@@ -378,6 +406,7 @@ module CandidApiClient
378
406
  # @param obj [Object]
379
407
  # @return [Void]
380
408
  def self.validate_raw(obj:)
409
+ obj.created_at.is_a?(DateTime) != false || raise("Passed value for field obj.created_at is not the expected type, validation failed.")
381
410
  obj.modifiers&.is_a?(Array) != false || raise("Passed value for field obj.modifiers is not the expected type, validation failed.")
382
411
  obj.charge_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.charge_amount_cents is not the expected type, validation failed.")
383
412
  obj.allowed_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.allowed_amount_cents is not the expected type, validation failed.")
@@ -388,6 +417,9 @@ module CandidApiClient
388
417
  obj.secondary_paid_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.secondary_paid_amount_cents is not the expected type, validation failed.")
389
418
  obj.tertiary_paid_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.tertiary_paid_amount_cents is not the expected type, validation failed.")
390
419
  obj.patient_responsibility_cents&.is_a?(Integer) != false || raise("Passed value for field obj.patient_responsibility_cents is not the expected type, validation failed.")
420
+ obj.copay_cents&.is_a?(Integer) != false || raise("Passed value for field obj.copay_cents is not the expected type, validation failed.")
421
+ obj.coinsurance_cents&.is_a?(Integer) != false || raise("Passed value for field obj.coinsurance_cents is not the expected type, validation failed.")
422
+ obj.deductible_cents&.is_a?(Integer) != false || raise("Passed value for field obj.deductible_cents is not the expected type, validation failed.")
391
423
  obj.diagnosis_id_zero&.is_a?(String) != false || raise("Passed value for field obj.diagnosis_id_zero is not the expected type, validation failed.")
392
424
  obj.diagnosis_id_one&.is_a?(String) != false || raise("Passed value for field obj.diagnosis_id_one is not the expected type, validation failed.")
393
425
  obj.diagnosis_id_two&.is_a?(String) != false || raise("Passed value for field obj.diagnosis_id_two is not the expected type, validation failed.")
@@ -35,7 +35,7 @@ module CandidApiClient
35
35
  attr_reader :units
36
36
  # @return [Integer] The total amount charged for this service line taking quantity into account. For
37
37
  # example, if a single unit
38
- # costs 100 cents and 2 units were rendered, the charge_amount_cents should be
38
+ # costs 100 cents and 2 units were rendered, the `charge_amount_cents` should be
39
39
  # 200. Should be greater than or
40
40
  # equal to 0.
41
41
  attr_reader :charge_amount_cents
@@ -84,7 +84,7 @@ module CandidApiClient
84
84
  # @param units [CandidApiClient::Commons::Types::ServiceLineUnits]
85
85
  # @param charge_amount_cents [Integer] The total amount charged for this service line taking quantity into account. For
86
86
  # example, if a single unit
87
- # costs 100 cents and 2 units were rendered, the charge_amount_cents should be
87
+ # costs 100 cents and 2 units were rendered, the `charge_amount_cents` should be
88
88
  # 200. Should be greater than or
89
89
  # equal to 0.
90
90
  # @param diagnosis_pointers [Array<Integer>] Indices (zero-indexed) of all the diagnoses this service line references
@@ -18,7 +18,11 @@ module CandidApiClient
18
18
  class ServiceLineCreateStandalone
19
19
  # @return [Array<CandidApiClient::Commons::Types::ProcedureModifier>]
20
20
  attr_reader :modifiers
21
- # @return [Integer]
21
+ # @return [Integer] The total amount charged for this service line, factoring in quantity. If left
22
+ # unfilled, the system will attempt to set it based on
23
+ # chargemasters entries and the service line's quantity. For example, if a single
24
+ # unit has an entry of 100 cents and 2 units were rendered,
25
+ # the `charge_amount_cents` will be set to 200, if this field is unfilled.
22
26
  attr_reader :charge_amount_cents
23
27
  # @return [String]
24
28
  attr_reader :diagnosis_id_zero
@@ -78,7 +82,11 @@ module CandidApiClient
78
82
  OMIT = Object.new
79
83
 
80
84
  # @param modifiers [Array<CandidApiClient::Commons::Types::ProcedureModifier>]
81
- # @param charge_amount_cents [Integer]
85
+ # @param charge_amount_cents [Integer] The total amount charged for this service line, factoring in quantity. If left
86
+ # unfilled, the system will attempt to set it based on
87
+ # chargemasters entries and the service line's quantity. For example, if a single
88
+ # unit has an entry of 100 cents and 2 units were rendered,
89
+ # the `charge_amount_cents` will be set to 200, if this field is unfilled.
82
90
  # @param diagnosis_id_zero [String]
83
91
  # @param diagnosis_id_one [String]
84
92
  # @param diagnosis_id_two [String]
@@ -19,7 +19,12 @@ module CandidApiClient
19
19
  attr_reader :edit_reason
20
20
  # @return [Array<CandidApiClient::Commons::Types::ProcedureModifier>]
21
21
  attr_reader :modifiers
22
- # @return [Integer]
22
+ # @return [Integer] The total amount charged for this service line, factoring in quantity. If
23
+ # `procedure_code` is updated and this is not, the system will attempt
24
+ # to set it based on chargemasters entries and the service line's quantity. For
25
+ # example, if a single unit has an entry of 100 cents and 2
26
+ # units were rendered, the `charge_amount_cents` will be set to 200, if this field
27
+ # is unfilled.
23
28
  attr_reader :charge_amount_cents
24
29
  # @return [String]
25
30
  attr_reader :diagnosis_id_zero
@@ -40,7 +45,8 @@ module CandidApiClient
40
45
  attr_reader :place_of_service_code
41
46
  # @return [CandidApiClient::Commons::Types::ServiceLineUnits]
42
47
  attr_reader :units
43
- # @return [String]
48
+ # @return [String] If `procedure_code` is updated, and `charge_amount_cents` is not, then
49
+ # `charge_amount_cents` will be set by the system.
44
50
  attr_reader :procedure_code
45
51
  # @return [String] String representation of a Decimal that can be parsed by most libraries.
46
52
  # A ServiceLine quantity cannot contain more than one digit of precision.
@@ -77,7 +83,12 @@ module CandidApiClient
77
83
 
78
84
  # @param edit_reason [String]
79
85
  # @param modifiers [Array<CandidApiClient::Commons::Types::ProcedureModifier>]
80
- # @param charge_amount_cents [Integer]
86
+ # @param charge_amount_cents [Integer] The total amount charged for this service line, factoring in quantity. If
87
+ # `procedure_code` is updated and this is not, the system will attempt
88
+ # to set it based on chargemasters entries and the service line's quantity. For
89
+ # example, if a single unit has an entry of 100 cents and 2
90
+ # units were rendered, the `charge_amount_cents` will be set to 200, if this field
91
+ # is unfilled.
81
92
  # @param diagnosis_id_zero [String]
82
93
  # @param diagnosis_id_one [String]
83
94
  # @param diagnosis_id_two [String]
@@ -89,7 +100,8 @@ module CandidApiClient
89
100
  # populated. 02 for telemedicine, 11 for in-person. Full list
90
101
  # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
91
102
  # @param units [CandidApiClient::Commons::Types::ServiceLineUnits]
92
- # @param procedure_code [String]
103
+ # @param procedure_code [String] If `procedure_code` is updated, and `charge_amount_cents` is not, then
104
+ # `charge_amount_cents` will be set by the system.
93
105
  # @param quantity [String] String representation of a Decimal that can be parsed by most libraries.
94
106
  # A ServiceLine quantity cannot contain more than one digit of precision.
95
107
  # Example: 1.1 is valid, 1.11 is not.
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.8" }
46
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.10" }
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.8" }
90
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.10" }
91
91
  headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
92
92
  headers
93
93
  end
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.8
4
+ version: 0.39.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-02-23 00:00:00.000000000 Z
11
+ date: 2025-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http-faraday