Class: Nppes::NpIdentifier

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/nppes/models/np_identifier.rb

Instance Method Summary collapse

Instance Method Details

#decoded_deactivation_reasonObject


20
21
22
# File 'lib/nppes/models/np_identifier.rb', line 20

def decoded_deactivation_reason
  Nppes.decode_value(:npi_deactivation_reason_code, npi_deactivation_reason_code)
end

#decoded_entity_typeObject


16
17
18
# File 'lib/nppes/models/np_identifier.rb', line 16

def decoded_entity_type
  Nppes.decode_value(:entity_type_code, entity_type_code)
end

#decoded_genderObject


12
13
14
# File 'lib/nppes/models/np_identifier.rb', line 12

def decoded_gender
  Nppes.decode_value(:gender_code, gender_code)
end

#to_sObject


6
7
8
# File 'lib/nppes/models/np_identifier.rb', line 6

def to_s
  "#{prefix} #{first_name} #{middle_name} #{last_name} #{suffix}"
end