Class: BloomApi::Identifier

Inherits:
Object
  • Object
show all
Defined in:
lib/bloom_api/identifier.rb

Overview

An alternate unique identifier for a provider

Instance Method Summary collapse

Constructor Details

#initialize(raw_identifier) ⇒ Identifier

Creates a new Identifier

Parameters:

  • raw_identifier (Hash)

7
8
9
# File 'lib/bloom_api/identifier.rb', line 7

def initialize raw_identifier
  @raw_identifier = raw_identifier
end

Instance Method Details

#identifierString

Returns the unique identifier.

Returns:

  • (String)

    the unique identifier


12
13
14
# File 'lib/bloom_api/identifier.rb', line 12

def identifier
  @raw_identifier['identifier']
end

#issuerString

Returns The issuing party for the identifier.

Returns:

  • (String)

    The issuing party for the identifier


17
18
19
# File 'lib/bloom_api/identifier.rb', line 17

def issuer
  @raw_identifier['issuer']
end

#stateString

Returns The U.S. state in which the identifier applies.

Returns:

  • (String)

    The U.S. state in which the identifier applies


22
23
24
# File 'lib/bloom_api/identifier.rb', line 22

def state
  @raw_identifier['state']
end

#typeString

Returns The type of identifier. Possible values are:

  • other

  • medicare upin

  • medicare id-type unspecified

  • medicaid

  • medicare oscar/certification

  • medicare nsc

  • medicare pin.

Returns:

  • (String)

    The type of identifier. Possible values are:

    • other

    • medicare upin

    • medicare id-type unspecified

    • medicaid

    • medicare oscar/certification

    • medicare nsc

    • medicare pin


36
37
38
# File 'lib/bloom_api/identifier.rb', line 36

def type
  @raw_identifier['type']
end