module Vhcs
  class VwmbMember < VhcsRecord

    self.table_name = 'VWMBMember'

    alias_attribute :mb_member_key, :MBMemberKey
    alias_attribute :pb_entity_key, :PBEntityKey
    alias_attribute :pl_plan_key, :PLPlanKey
    alias_attribute :mbr_class, :MbrClass
    alias_attribute :mbr_type, :MbrType
    alias_attribute :mbr_ap_vendor_key, :MbrAPVendorKey
    alias_attribute :alt_ap_vendor_key, :AltAPVendorKey
    alias_attribute :use_alt_payee, :UseAltPayee
    alias_attribute :send_eob_primary, :SendEOBPrimary
    alias_attribute :send_eob_dependent, :SendEOBDependent
    alias_attribute :send_eob_third_party, :SendEOBThirdParty
    alias_attribute :student_flag, :StudentFlag
    alias_attribute :disabled_dependent_flag, :DisabledDependentFlag
    alias_attribute :is_restricted, :IsRestricted
    alias_attribute :third_party_pb_entity_key, :ThirdPartyPBEntityKey
    alias_attribute :user_def_1, :UserDef1
    alias_attribute :user_def_2, :UserDef2
    alias_attribute :family_id, :FamilyID
    alias_attribute :sequence_number, :SequenceNumber
    alias_attribute :enrollee_type_key, :EnrolleeTypeKey
    alias_attribute :enrollee_type, :EnrolleeType
    alias_attribute :enrollee_type_value_id, :EnrolleeTypeValueID
    alias_attribute :sex_key, :SexKey
    alias_attribute :use_primary_address, :UsePrimaryAddress
    alias_attribute :birth_date, :BirthDate
    alias_attribute :birth_sequence_number, :BirthSequenceNumber
    alias_attribute :death_date, :DeathDate
    alias_attribute :date_of_birth, :DateOfBirth
    alias_attribute :date_of_death, :DateOfDeath
    alias_attribute :social_security_number, :SocialSecurityNumber
    alias_attribute :hipaaid, :HIPAAID
    alias_attribute :company_pb_entity_key, :CompanyPBEntityKey
    alias_attribute :entity_type_id, :EntityTypeID
    alias_attribute :prefix_id, :PrefixID
    alias_attribute :first_name, :FirstName
    alias_attribute :middle_name, :MiddleName
    alias_attribute :last_name, :LastName
    alias_attribute :suffix_id, :SuffixID
    alias_attribute :title, :Title
    alias_attribute :letter_tag_bit_flags, :LetterTagBitFlags
    alias_attribute :full_name_last_name_first, :FullNameLastNameFirst
    alias_attribute :policy_number, :PolicyNumber
    alias_attribute :send_eob_alt_payee, :SendEOBAltPayee
    alias_attribute :send_eob_alt_payee_only, :SendEOBAltPayeeOnly

    def attributes
      rails_like = {
          mb_member_key: self.mb_member_key,
          pb_entity_key: self.pb_entity_key,
          pl_plan_key: self.pl_plan_key,
          mbr_class: self.mbr_class,
          mbr_type: self.mbr_type,
          mbr_ap_vendor_key: self.mbr_ap_vendor_key,
          alt_ap_vendor_key: self.alt_ap_vendor_key,
          use_alt_payee: self.use_alt_payee,
          send_eob_primary: self.send_eob_primary,
          send_eob_dependent: self.send_eob_dependent,
          send_eob_third_party: self.send_eob_third_party,
          student_flag: self.student_flag,
          disabled_dependent_flag: self.disabled_dependent_flag,
          is_restricted: self.is_restricted,
          third_party_pb_entity_key: self.third_party_pb_entity_key,
          user_def_1: self.user_def_1,
          user_def_2: self.user_def_2,
          family_id: self.family_id,
          sequence_number: self.sequence_number,
          enrollee_type_key: self.enrollee_type_key,
          enrollee_type: self.enrollee_type,
          enrollee_type_value_id: self.enrollee_type_value_id,
          sex_key: self.sex_key,
          use_primary_address: self.use_primary_address,
          birth_date: self.birth_date,
          birth_sequence_number: self.birth_sequence_number,
          death_date: self.death_date,
          date_of_birth: self.date_of_birth,
          date_of_death: self.date_of_death,
          social_security_number: self.social_security_number,
          hipaaid: self.hipaaid,
          company_pb_entity_key: self.company_pb_entity_key,
          entity_type_id: self.entity_type_id,
          prefix_id: self.prefix_id,
          first_name: self.first_name,
          middle_name: self.middle_name,
          last_name: self.last_name,
          suffix_id: self.suffix_id,
          title: self.title,
          letter_tag_bit_flags: self.letter_tag_bit_flags,
          full_name_last_name_first: self.full_name_last_name_first,
          policy_number: self.policy_number,
          send_eob_alt_payee: self.send_eob_alt_payee,
          send_eob_alt_payee_only: self.send_eob_alt_payee_only,
      }
      super.merge(rails_like)
    end


  end
end