class BloomApi::Specialty

An class representing a provider specialty

Public Class Methods

new(raw_detail) click to toggle source

Creates a new specialty @param raw_detail [Hash]

A hash representation of a json specialty object
from the Bloom Api
# File lib/bloom_api/specialty.rb, line 9
def initialize raw_detail
  @raw_detail = raw_detail
end

Public Instance Methods

license_number() click to toggle source

@return [String]

the license number associated with the specialty
# File lib/bloom_api/specialty.rb, line 15
def license_number
  @raw_detail['license_number']
end
license_number_state() click to toggle source

@return [String]

the U.S. state in which the specialty applies
# File lib/bloom_api/specialty.rb, line 21
def license_number_state
  @raw_detail['license_number_state']
end
primary_specialty?() click to toggle source

@return [boolean] true if this is the provider’s primary specialty @return [boolean] false if this is not the provider’s primary specialty

# File lib/bloom_api/specialty.rb, line 27
def primary_specialty?
  case @raw_detail['taxonomy_switch']
  when 'yes'
    true
  when 'no'
    false
  else
    nil
  end
end
specialty_code() click to toggle source

@return [String] the specialty’s code

# File lib/bloom_api/specialty.rb, line 39
def specialty_code
  @raw_detail['healthcare_taxonomy_code']
end