Class: BloomApi::Identifier
- Inherits:
-
Object
- Object
- BloomApi::Identifier
- Defined in:
- lib/bloom_api/identifier.rb
Overview
An alternate unique identifier for a provider
Instance Method Summary collapse
-
#identifier ⇒ String
The unique identifier.
-
#initialize(raw_identifier) ⇒ Identifier
constructor
Creates a new Identifier.
-
#issuer ⇒ String
The issuing party for the identifier.
-
#state ⇒ String
The U.S.
-
#type ⇒ String
The type of identifier.
Constructor Details
#initialize(raw_identifier) ⇒ Identifier
Creates a new Identifier
7 8 9 |
# File 'lib/bloom_api/identifier.rb', line 7 def initialize raw_identifier @raw_identifier = raw_identifier end |
Instance Method Details
#identifier ⇒ String
Returns the unique identifier.
12 13 14 |
# File 'lib/bloom_api/identifier.rb', line 12 def identifier @raw_identifier['identifier'] end |
#issuer ⇒ String
Returns The issuing party for the identifier.
17 18 19 |
# File 'lib/bloom_api/identifier.rb', line 17 def issuer @raw_identifier['issuer'] end |
#state ⇒ String
Returns 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 |
#type ⇒ String
Returns 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 |