Class: CandidApiClient::FeeSchedules::V3::Types::PayerThreshold
- Inherits:
-
Object
- Object
- CandidApiClient::FeeSchedules::V3::Types::PayerThreshold
- Defined in:
- lib/candidhealth/fee_schedules/v_3/types/payer_threshold.rb
Overview
Rate thresholds that determine fee schedule rate matching behavior. When a
service line is adjudicated by a payer Candid determines if the payer's allowed
amount "matches" the rate value. If the allowed amount doesn't equal the rate
value, Candid moves the claim to a PAID_INCORRECTLY state. These optional
thresholds allow a user to set wiggle room to avoid claims moving to
PAID_INCORRECTLY and instead have them move directly to FINALIZED_PAID when the
payer's allowed amount is greater than [rate_cents - lower_threshold_cents] and
less than [rate_cents + upper_threshold_cents].\n Additionally, a client can set
disable_paid_incorrectly to avoid the PAID_INCORRECTLY claim status entirely.
Constant Summary collapse
- OMIT =
Object.new
Instance Attribute Summary collapse
-
#additional_properties ⇒ OpenStruct
readonly
Additional properties unmapped to the current class definition.
- #disable_paid_incorrectly ⇒ Boolean readonly
- #lower_threshold_cents ⇒ Integer readonly
- #upper_threshold_cents ⇒ Integer readonly
Class Method Summary collapse
-
.from_json(json_object:) ⇒ CandidApiClient::FeeSchedules::V3::Types::PayerThreshold
Deserialize a JSON object to an instance of PayerThreshold.
-
.validate_raw(obj:) ⇒ Void
Leveraged for Union-type generation, validate_raw attempts to parse the given hash and check each fields type against the current object’s property definitions.
Instance Method Summary collapse
- #initialize(disable_paid_incorrectly:, upper_threshold_cents: OMIT, lower_threshold_cents: OMIT, additional_properties: nil) ⇒ CandidApiClient::FeeSchedules::V3::Types::PayerThreshold constructor
-
#to_json(*_args) ⇒ String
Serialize an instance of PayerThreshold to a JSON object.
Constructor Details
#initialize(disable_paid_incorrectly:, upper_threshold_cents: OMIT, lower_threshold_cents: OMIT, additional_properties: nil) ⇒ CandidApiClient::FeeSchedules::V3::Types::PayerThreshold
39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/candidhealth/fee_schedules/v_3/types/payer_threshold.rb', line 39 def initialize(disable_paid_incorrectly:, upper_threshold_cents: OMIT, lower_threshold_cents: OMIT, additional_properties: nil) @upper_threshold_cents = upper_threshold_cents if upper_threshold_cents != OMIT @lower_threshold_cents = lower_threshold_cents if lower_threshold_cents != OMIT @disable_paid_incorrectly = disable_paid_incorrectly @additional_properties = additional_properties @_field_set = { "upper_threshold_cents": upper_threshold_cents, "lower_threshold_cents": lower_threshold_cents, "disable_paid_incorrectly": disable_paid_incorrectly }.reject do |_k, v| v == OMIT end end |
Instance Attribute Details
#additional_properties ⇒ OpenStruct (readonly)
Returns Additional properties unmapped to the current class definition.
27 28 29 |
# File 'lib/candidhealth/fee_schedules/v_3/types/payer_threshold.rb', line 27 def additional_properties @additional_properties end |
#disable_paid_incorrectly ⇒ Boolean (readonly)
25 26 27 |
# File 'lib/candidhealth/fee_schedules/v_3/types/payer_threshold.rb', line 25 def disable_paid_incorrectly @disable_paid_incorrectly end |
#lower_threshold_cents ⇒ Integer (readonly)
23 24 25 |
# File 'lib/candidhealth/fee_schedules/v_3/types/payer_threshold.rb', line 23 def lower_threshold_cents @lower_threshold_cents end |
#upper_threshold_cents ⇒ Integer (readonly)
21 22 23 |
# File 'lib/candidhealth/fee_schedules/v_3/types/payer_threshold.rb', line 21 def upper_threshold_cents @upper_threshold_cents end |
Class Method Details
.from_json(json_object:) ⇒ CandidApiClient::FeeSchedules::V3::Types::PayerThreshold
Deserialize a JSON object to an instance of PayerThreshold
58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/candidhealth/fee_schedules/v_3/types/payer_threshold.rb', line 58 def self.from_json(json_object:) struct = JSON.parse(json_object, object_class: OpenStruct) upper_threshold_cents = struct["upper_threshold_cents"] lower_threshold_cents = struct["lower_threshold_cents"] disable_paid_incorrectly = struct["disable_paid_incorrectly"] new( upper_threshold_cents: upper_threshold_cents, lower_threshold_cents: lower_threshold_cents, disable_paid_incorrectly: disable_paid_incorrectly, additional_properties: struct ) end |
.validate_raw(obj:) ⇒ Void
Leveraged for Union-type generation, validate_raw attempts to parse the given
hash and check each fields type against the current object's property
definitions.
84 85 86 87 88 |
# File 'lib/candidhealth/fee_schedules/v_3/types/payer_threshold.rb', line 84 def self.validate_raw(obj:) obj.upper_threshold_cents&.is_a?(Integer) != false || raise("Passed value for field obj.upper_threshold_cents is not the expected type, validation failed.") obj.lower_threshold_cents&.is_a?(Integer) != false || raise("Passed value for field obj.lower_threshold_cents is not the expected type, validation failed.") obj.disable_paid_incorrectly.is_a?(Boolean) != false || raise("Passed value for field obj.disable_paid_incorrectly is not the expected type, validation failed.") end |
Instance Method Details
#to_json(*_args) ⇒ String
Serialize an instance of PayerThreshold to a JSON object
74 75 76 |
# File 'lib/candidhealth/fee_schedules/v_3/types/payer_threshold.rb', line 74 def to_json(*_args) @_field_set&.to_json end |