Sha256: df5b29eafdf3388d6adf17262f4ed5fcc4bfa89d6393c3cd76d7eae49056f3a8

Contents?: true

Size: 428 Bytes

Versions: 48

Compression:

Stored size: 428 Bytes

Contents

require_relative 'resource_config'

module Medivo
  class InsuranceOrder < Order
    set_element_name 'customer'
    set_collection_name 'customers'

    validates_with Medivo::ArrayValidator, :fields => [:diagnosis_code]
    validates_with PrimaryInsurance

    # when getting the insurance info from medivo labs
    def insurance
      @insurance ||= try(:insurance_information).try(:primary_insurance_info)
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
medivo-0.2.21 app/models/medivo/insurance_order.rb
medivo-0.2.20 app/models/medivo/insurance_order.rb
medivo-0.2.19 app/models/medivo/insurance_order.rb
medivo-0.2.18 app/models/medivo/insurance_order.rb
medivo-0.2.17 app/models/medivo/insurance_order.rb
medivo-0.2.16 app/models/medivo/insurance_order.rb
medivo-0.2.15 app/models/medivo/insurance_order.rb
medivo-0.2.14 app/models/medivo/insurance_order.rb
medivo-0.2.13 app/models/medivo/insurance_order.rb
medivo-0.2.12 app/models/medivo/insurance_order.rb
medivo-0.2.11 app/models/medivo/insurance_order.rb
medivo-0.2.10 app/models/medivo/insurance_order.rb
medivo-0.2.9 app/models/medivo/insurance_order.rb
medivo-0.2.8 app/models/medivo/insurance_order.rb
medivo-0.2.7 app/models/medivo/insurance_order.rb
medivo-0.2.6 app/models/medivo/insurance_order.rb
medivo-0.2.5 app/models/medivo/insurance_order.rb
medivo-0.2.3 app/models/medivo/insurance_order.rb
medivo-0.2.2 app/models/medivo/insurance_order.rb
medivo-0.2.1 app/models/medivo/insurance_order.rb