class VericredClient::MedicalPlanBenefits

Attributes

ambulance[RW]

Ambulance benefits string

child_dental[RW]

Child Dental benefits string

child_eye_exam[RW]

Child Eye Exam benefits string

child_eyewear[RW]

Child Eyewear benefits string

chiropractic_services[RW]

Chiropractic Services benefits string

diagnostic_test[RW]

Diagnostic Test benefits string

durable_medical_equipment[RW]

Durable Medical Equipment benefits string

emergency_room[RW]

Emergency Room benefits string

family_drug_deductible[RW]

Family Drug Deductible benefits string

family_drug_moop[RW]

Family Drug Moop benefits string

family_medical_deductible[RW]

Family Medical Deductible benefits string

family_medical_moop[RW]

Family Medical Moop benefits string

generic_drugs[RW]

Generic Drugs benefits string

habilitation_services[RW]

Habilitation Services benefits string

home_health_care[RW]

Home Health Care benefits string

hospice_service[RW]

Hospice Service benefits string

imaging_center[RW]

Imaging Center benefits string

imaging_physician[RW]

Imaging PHysician benefits string

individual_drug_deductible[RW]

Individual Drug Deductible benefits string

individual_drug_moop[RW]

Individual Drug Moop benefits string

individual_medical_deductible[RW]

Individual Medical Deductible benefits string

individual_medical_moop[RW]

Individual Medical Moop benefits string

inpatient_birth[RW]

Inpatient Birth benefits string

inpatient_birth_physician[RW]

Inpatient Birth Physician benefits string

inpatient_facility[RW]

Inpatient Facility benefits string

inpatient_mental_health[RW]

Inpatient Mental Health benefits string

inpatient_physician[RW]

Inpatient Physician benefits string

inpatient_substance[RW]

Inpatient Substance benefits string

lab_test[RW]

Lab Test benefits string

non_preferred_brand_drugs[RW]

Non Preferred Brand_drugs benefits string

nonpreferred_generic_drug_share[RW]

Non Preferred Generic_drug_share benefits string

nonpreferred_specialty_drug_share[RW]

Non Preferred Specialty Drug Share benefits string

outpatient_ambulatory_care_center[RW]

Outpatient Ambulatory Care Center benefits string

outpatient_facility[RW]

Outpatient Hospital benefits string

outpatient_mental_health[RW]

Outpatient Mental Health benefits string

outpatient_physician[RW]

outpatient Physician benefits string

outpatient_substance[RW]

Outpatient Substance benefits string

plan_coinsurance[RW]

Plan Coinsurance benefits string

postnatal_care[RW]

Postnatal Care benefits string

preferred_brand_drugs[RW]

Preferred Brand Drugs benefits string

prenatal_care[RW]

Prenatal Care benefits string

preventative_care[RW]

Preventative Care benefits string

primary_care_physician[RW]

Primary Care Physician benefits string

rehabilitation_services[RW]

Rehabilitation Services benefits string

skilled_nursing[RW]

Skilled Nursing benefits string

specialist[RW]

Specialist benefits string

specialty_drugs[RW]

Specialty Drugs benefits string

urgent_care[RW]

Urgent Care benefits string

Public Class Methods

attribute_map() click to toggle source

Attribute mapping from ruby-style variable name to JSON key.

# File lib/vericred_client/models/medical_plan_benefits.rb, line 1163
def self.attribute_map
  {
    :'ambulance' => :'ambulance',
    :'child_dental' => :'child_dental',
    :'child_eye_exam' => :'child_eye_exam',
    :'child_eyewear' => :'child_eyewear',
    :'chiropractic_services' => :'chiropractic_services',
    :'diagnostic_test' => :'diagnostic_test',
    :'durable_medical_equipment' => :'durable_medical_equipment',
    :'emergency_room' => :'emergency_room',
    :'family_drug_deductible' => :'family_drug_deductible',
    :'family_drug_moop' => :'family_drug_moop',
    :'family_medical_deductible' => :'family_medical_deductible',
    :'family_medical_moop' => :'family_medical_moop',
    :'generic_drugs' => :'generic_drugs',
    :'habilitation_services' => :'habilitation_services',
    :'home_health_care' => :'home_health_care',
    :'hospice_service' => :'hospice_service',
    :'imaging_center' => :'imaging_center',
    :'imaging_physician' => :'imaging_physician',
    :'individual_drug_deductible' => :'individual_drug_deductible',
    :'individual_drug_moop' => :'individual_drug_moop',
    :'individual_medical_deductible' => :'individual_medical_deductible',
    :'individual_medical_moop' => :'individual_medical_moop',
    :'inpatient_birth' => :'inpatient_birth',
    :'inpatient_birth_physician' => :'inpatient_birth_physician',
    :'inpatient_facility' => :'inpatient_facility',
    :'inpatient_mental_health' => :'inpatient_mental_health',
    :'inpatient_physician' => :'inpatient_physician',
    :'inpatient_substance' => :'inpatient_substance',
    :'lab_test' => :'lab_test',
    :'non_preferred_brand_drugs' => :'non_preferred_brand_drugs',
    :'nonpreferred_generic_drug_share' => :'nonpreferred_generic_drug_share',
    :'nonpreferred_specialty_drug_share' => :'nonpreferred_specialty_drug_share',
    :'outpatient_ambulatory_care_center' => :'outpatient_ambulatory_care_center',
    :'outpatient_facility' => :'outpatient_facility',
    :'outpatient_mental_health' => :'outpatient_mental_health',
    :'outpatient_physician' => :'outpatient_physician',
    :'outpatient_substance' => :'outpatient_substance',
    :'plan_coinsurance' => :'plan_coinsurance',
    :'postnatal_care' => :'postnatal_care',
    :'preferred_brand_drugs' => :'preferred_brand_drugs',
    :'prenatal_care' => :'prenatal_care',
    :'preventative_care' => :'preventative_care',
    :'primary_care_physician' => :'primary_care_physician',
    :'rehabilitation_services' => :'rehabilitation_services',
    :'skilled_nursing' => :'skilled_nursing',
    :'specialist' => :'specialist',
    :'specialty_drugs' => :'specialty_drugs',
    :'urgent_care' => :'urgent_care'
  }
end
new(attributes = {}) click to toggle source

Initializes the object @param [Hash] attributes Model attributes in the form of hash

# File lib/vericred_client/models/medical_plan_benefits.rb, line 1272
def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}

  if attributes.has_key?(:'ambulance')
    self.ambulance = attributes[:'ambulance']
  end

  if attributes.has_key?(:'child_dental')
    self.child_dental = attributes[:'child_dental']
  end

  if attributes.has_key?(:'child_eye_exam')
    self.child_eye_exam = attributes[:'child_eye_exam']
  end

  if attributes.has_key?(:'child_eyewear')
    self.child_eyewear = attributes[:'child_eyewear']
  end

  if attributes.has_key?(:'chiropractic_services')
    self.chiropractic_services = attributes[:'chiropractic_services']
  end

  if attributes.has_key?(:'diagnostic_test')
    self.diagnostic_test = attributes[:'diagnostic_test']
  end

  if attributes.has_key?(:'durable_medical_equipment')
    self.durable_medical_equipment = attributes[:'durable_medical_equipment']
  end

  if attributes.has_key?(:'emergency_room')
    self.emergency_room = attributes[:'emergency_room']
  end

  if attributes.has_key?(:'family_drug_deductible')
    self.family_drug_deductible = attributes[:'family_drug_deductible']
  end

  if attributes.has_key?(:'family_drug_moop')
    self.family_drug_moop = attributes[:'family_drug_moop']
  end

  if attributes.has_key?(:'family_medical_deductible')
    self.family_medical_deductible = attributes[:'family_medical_deductible']
  end

  if attributes.has_key?(:'family_medical_moop')
    self.family_medical_moop = attributes[:'family_medical_moop']
  end

  if attributes.has_key?(:'generic_drugs')
    self.generic_drugs = attributes[:'generic_drugs']
  end

  if attributes.has_key?(:'habilitation_services')
    self.habilitation_services = attributes[:'habilitation_services']
  end

  if attributes.has_key?(:'home_health_care')
    self.home_health_care = attributes[:'home_health_care']
  end

  if attributes.has_key?(:'hospice_service')
    self.hospice_service = attributes[:'hospice_service']
  end

  if attributes.has_key?(:'imaging_center')
    self.imaging_center = attributes[:'imaging_center']
  end

  if attributes.has_key?(:'imaging_physician')
    self.imaging_physician = attributes[:'imaging_physician']
  end

  if attributes.has_key?(:'individual_drug_deductible')
    self.individual_drug_deductible = attributes[:'individual_drug_deductible']
  end

  if attributes.has_key?(:'individual_drug_moop')
    self.individual_drug_moop = attributes[:'individual_drug_moop']
  end

  if attributes.has_key?(:'individual_medical_deductible')
    self.individual_medical_deductible = attributes[:'individual_medical_deductible']
  end

  if attributes.has_key?(:'individual_medical_moop')
    self.individual_medical_moop = attributes[:'individual_medical_moop']
  end

  if attributes.has_key?(:'inpatient_birth')
    self.inpatient_birth = attributes[:'inpatient_birth']
  end

  if attributes.has_key?(:'inpatient_birth_physician')
    self.inpatient_birth_physician = attributes[:'inpatient_birth_physician']
  end

  if attributes.has_key?(:'inpatient_facility')
    self.inpatient_facility = attributes[:'inpatient_facility']
  end

  if attributes.has_key?(:'inpatient_mental_health')
    self.inpatient_mental_health = attributes[:'inpatient_mental_health']
  end

  if attributes.has_key?(:'inpatient_physician')
    self.inpatient_physician = attributes[:'inpatient_physician']
  end

  if attributes.has_key?(:'inpatient_substance')
    self.inpatient_substance = attributes[:'inpatient_substance']
  end

  if attributes.has_key?(:'lab_test')
    self.lab_test = attributes[:'lab_test']
  end

  if attributes.has_key?(:'non_preferred_brand_drugs')
    self.non_preferred_brand_drugs = attributes[:'non_preferred_brand_drugs']
  end

  if attributes.has_key?(:'nonpreferred_generic_drug_share')
    self.nonpreferred_generic_drug_share = attributes[:'nonpreferred_generic_drug_share']
  end

  if attributes.has_key?(:'nonpreferred_specialty_drug_share')
    self.nonpreferred_specialty_drug_share = attributes[:'nonpreferred_specialty_drug_share']
  end

  if attributes.has_key?(:'outpatient_ambulatory_care_center')
    self.outpatient_ambulatory_care_center = attributes[:'outpatient_ambulatory_care_center']
  end

  if attributes.has_key?(:'outpatient_facility')
    self.outpatient_facility = attributes[:'outpatient_facility']
  end

  if attributes.has_key?(:'outpatient_mental_health')
    self.outpatient_mental_health = attributes[:'outpatient_mental_health']
  end

  if attributes.has_key?(:'outpatient_physician')
    self.outpatient_physician = attributes[:'outpatient_physician']
  end

  if attributes.has_key?(:'outpatient_substance')
    self.outpatient_substance = attributes[:'outpatient_substance']
  end

  if attributes.has_key?(:'plan_coinsurance')
    self.plan_coinsurance = attributes[:'plan_coinsurance']
  end

  if attributes.has_key?(:'postnatal_care')
    self.postnatal_care = attributes[:'postnatal_care']
  end

  if attributes.has_key?(:'preferred_brand_drugs')
    self.preferred_brand_drugs = attributes[:'preferred_brand_drugs']
  end

  if attributes.has_key?(:'prenatal_care')
    self.prenatal_care = attributes[:'prenatal_care']
  end

  if attributes.has_key?(:'preventative_care')
    self.preventative_care = attributes[:'preventative_care']
  end

  if attributes.has_key?(:'primary_care_physician')
    self.primary_care_physician = attributes[:'primary_care_physician']
  end

  if attributes.has_key?(:'rehabilitation_services')
    self.rehabilitation_services = attributes[:'rehabilitation_services']
  end

  if attributes.has_key?(:'skilled_nursing')
    self.skilled_nursing = attributes[:'skilled_nursing']
  end

  if attributes.has_key?(:'specialist')
    self.specialist = attributes[:'specialist']
  end

  if attributes.has_key?(:'specialty_drugs')
    self.specialty_drugs = attributes[:'specialty_drugs']
  end

  if attributes.has_key?(:'urgent_care')
    self.urgent_care = attributes[:'urgent_care']
  end

end
swagger_types() click to toggle source

Attribute type mapping.

# File lib/vericred_client/models/medical_plan_benefits.rb, line 1217
def self.swagger_types
  {
    :'ambulance' => :'String',
    :'child_dental' => :'String',
    :'child_eye_exam' => :'String',
    :'child_eyewear' => :'String',
    :'chiropractic_services' => :'String',
    :'diagnostic_test' => :'String',
    :'durable_medical_equipment' => :'String',
    :'emergency_room' => :'String',
    :'family_drug_deductible' => :'String',
    :'family_drug_moop' => :'String',
    :'family_medical_deductible' => :'String',
    :'family_medical_moop' => :'String',
    :'generic_drugs' => :'String',
    :'habilitation_services' => :'String',
    :'home_health_care' => :'String',
    :'hospice_service' => :'String',
    :'imaging_center' => :'String',
    :'imaging_physician' => :'String',
    :'individual_drug_deductible' => :'String',
    :'individual_drug_moop' => :'String',
    :'individual_medical_deductible' => :'String',
    :'individual_medical_moop' => :'String',
    :'inpatient_birth' => :'String',
    :'inpatient_birth_physician' => :'String',
    :'inpatient_facility' => :'String',
    :'inpatient_mental_health' => :'String',
    :'inpatient_physician' => :'String',
    :'inpatient_substance' => :'String',
    :'lab_test' => :'String',
    :'non_preferred_brand_drugs' => :'String',
    :'nonpreferred_generic_drug_share' => :'String',
    :'nonpreferred_specialty_drug_share' => :'String',
    :'outpatient_ambulatory_care_center' => :'String',
    :'outpatient_facility' => :'String',
    :'outpatient_mental_health' => :'String',
    :'outpatient_physician' => :'String',
    :'outpatient_substance' => :'String',
    :'plan_coinsurance' => :'String',
    :'postnatal_care' => :'String',
    :'preferred_brand_drugs' => :'String',
    :'prenatal_care' => :'String',
    :'preventative_care' => :'String',
    :'primary_care_physician' => :'String',
    :'rehabilitation_services' => :'String',
    :'skilled_nursing' => :'String',
    :'specialist' => :'String',
    :'specialty_drugs' => :'String',
    :'urgent_care' => :'String'
  }
end

Public Instance Methods

==(o) click to toggle source

Checks equality by comparing each attribute. @param [Object] Object to be compared

# File lib/vericred_client/models/medical_plan_benefits.rb, line 1487
def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      ambulance == o.ambulance &&
      child_dental == o.child_dental &&
      child_eye_exam == o.child_eye_exam &&
      child_eyewear == o.child_eyewear &&
      chiropractic_services == o.chiropractic_services &&
      diagnostic_test == o.diagnostic_test &&
      durable_medical_equipment == o.durable_medical_equipment &&
      emergency_room == o.emergency_room &&
      family_drug_deductible == o.family_drug_deductible &&
      family_drug_moop == o.family_drug_moop &&
      family_medical_deductible == o.family_medical_deductible &&
      family_medical_moop == o.family_medical_moop &&
      generic_drugs == o.generic_drugs &&
      habilitation_services == o.habilitation_services &&
      home_health_care == o.home_health_care &&
      hospice_service == o.hospice_service &&
      imaging_center == o.imaging_center &&
      imaging_physician == o.imaging_physician &&
      individual_drug_deductible == o.individual_drug_deductible &&
      individual_drug_moop == o.individual_drug_moop &&
      individual_medical_deductible == o.individual_medical_deductible &&
      individual_medical_moop == o.individual_medical_moop &&
      inpatient_birth == o.inpatient_birth &&
      inpatient_birth_physician == o.inpatient_birth_physician &&
      inpatient_facility == o.inpatient_facility &&
      inpatient_mental_health == o.inpatient_mental_health &&
      inpatient_physician == o.inpatient_physician &&
      inpatient_substance == o.inpatient_substance &&
      lab_test == o.lab_test &&
      non_preferred_brand_drugs == o.non_preferred_brand_drugs &&
      nonpreferred_generic_drug_share == o.nonpreferred_generic_drug_share &&
      nonpreferred_specialty_drug_share == o.nonpreferred_specialty_drug_share &&
      outpatient_ambulatory_care_center == o.outpatient_ambulatory_care_center &&
      outpatient_facility == o.outpatient_facility &&
      outpatient_mental_health == o.outpatient_mental_health &&
      outpatient_physician == o.outpatient_physician &&
      outpatient_substance == o.outpatient_substance &&
      plan_coinsurance == o.plan_coinsurance &&
      postnatal_care == o.postnatal_care &&
      preferred_brand_drugs == o.preferred_brand_drugs &&
      prenatal_care == o.prenatal_care &&
      preventative_care == o.preventative_care &&
      primary_care_physician == o.primary_care_physician &&
      rehabilitation_services == o.rehabilitation_services &&
      skilled_nursing == o.skilled_nursing &&
      specialist == o.specialist &&
      specialty_drugs == o.specialty_drugs &&
      urgent_care == o.urgent_care
end
_deserialize(type, value) click to toggle source

Deserializes the data based on type @param string type Data type @param string value Value to be deserialized @return [Object] Deserialized data

# File lib/vericred_client/models/medical_plan_benefits.rb, line 1576
def _deserialize(type, value)
  case type.to_sym
  when :DateTime
    DateTime.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :BOOLEAN
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    temp_model = VericredClient.const_get(type).new
    temp_model.build_from_hash(value)
  end
end
_to_hash(value) click to toggle source

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value @param [Object] value Any valid value @return [Hash] Returns the value in the form of hash

# File lib/vericred_client/models/medical_plan_benefits.rb, line 1642
def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map{ |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end
build_from_hash(attributes) click to toggle source

Builds the object from hash @param [Hash] attributes Model attributes in the form of hash @return [Object] Returns the model itself

# File lib/vericred_client/models/medical_plan_benefits.rb, line 1555
def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.swagger_types.each_pair do |key, type|
    if type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    end # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end
eql?(o) click to toggle source

@see the `==` method @param [Object] Object to be compared

# File lib/vericred_client/models/medical_plan_benefits.rb, line 1542
def eql?(o)
  self == o
end
hash() click to toggle source

Calculates hash code according to all attributes. @return [Fixnum] Hash code

# File lib/vericred_client/models/medical_plan_benefits.rb, line 1548
def hash
  [ambulance, child_dental, child_eye_exam, child_eyewear, chiropractic_services, diagnostic_test, durable_medical_equipment, emergency_room, family_drug_deductible, family_drug_moop, family_medical_deductible, family_medical_moop, generic_drugs, habilitation_services, home_health_care, hospice_service, imaging_center, imaging_physician, individual_drug_deductible, individual_drug_moop, individual_medical_deductible, individual_medical_moop, inpatient_birth, inpatient_birth_physician, inpatient_facility, inpatient_mental_health, inpatient_physician, inpatient_substance, lab_test, non_preferred_brand_drugs, nonpreferred_generic_drug_share, nonpreferred_specialty_drug_share, outpatient_ambulatory_care_center, outpatient_facility, outpatient_mental_health, outpatient_physician, outpatient_substance, plan_coinsurance, postnatal_care, preferred_brand_drugs, prenatal_care, preventative_care, primary_care_physician, rehabilitation_services, skilled_nursing, specialist, specialty_drugs, urgent_care].hash
end
list_invalid_properties() click to toggle source

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properies with the reasons

# File lib/vericred_client/models/medical_plan_benefits.rb, line 1474
def list_invalid_properties
  invalid_properties = Array.new
  return invalid_properties
end
to_body() click to toggle source

to_body is an alias to to_hash (backward compatibility) @return [Hash] Returns the object in the form of hash

# File lib/vericred_client/models/medical_plan_benefits.rb, line 1622
def to_body
  to_hash
end
to_hash() click to toggle source

Returns the object in the form of hash @return [Hash] Returns the object in the form of hash

# File lib/vericred_client/models/medical_plan_benefits.rb, line 1628
def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    next if value.nil?
    hash[param] = _to_hash(value)
  end
  hash
end
to_s() click to toggle source

Returns the string representation of the object @return [String] String presentation of the object

# File lib/vericred_client/models/medical_plan_benefits.rb, line 1616
def to_s
  to_hash.to_s
end
valid?() click to toggle source

Check to see if the all the properties in the model are valid @return true if the model is valid

# File lib/vericred_client/models/medical_plan_benefits.rb, line 1481
def valid?
  return true
end