npiregistry 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +51 -4
- data/lib/npiregistry/request.rb +1 -2
- data/lib/npiregistry/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b10cc5248d9fe6652e244b0a7a2de2ae87ece676
|
|
4
|
+
data.tar.gz: '08a50bdacfeac8024f8e96bfa4b378fc72df2b49'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 89121df3816d8381cc490c9a892dbb414b9ab46139432f648add325d1c2547f36a04d3c5fa9095b67914f9fb503b5f857d640c11ee27ce66b06d46bab3c60e5b
|
|
7
|
+
data.tar.gz: 54fe0a84e3bf2c18d609cc62880c27a0bb1284941d266fb1d470fc7eed965b1a49b9c91dcecc7cec45f341f95f49033cf2b4921a677e3508b15342e19947be09
|
data/README.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# Npiregistry
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
|
3
|
+
A Ruby interface to the NPI registry API | Read Only (https://npiregistry.cms.hhs.gov)
|
|
6
4
|
|
|
7
5
|
## Installation
|
|
8
6
|
|
|
@@ -22,7 +20,56 @@ Or install it yourself as:
|
|
|
22
20
|
|
|
23
21
|
## Usage
|
|
24
22
|
|
|
25
|
-
|
|
23
|
+
Get details using valid NPI number
|
|
24
|
+
|
|
25
|
+
```ruby
|
|
26
|
+
Npiregistry.get({number: 1245319599})
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Get details using first name and wildcard search
|
|
30
|
+
|
|
31
|
+
```ruby
|
|
32
|
+
Npiregistry.get({first_name: 'LAURA'})
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
or
|
|
36
|
+
|
|
37
|
+
```ruby
|
|
38
|
+
Npiregistry.get({first_name: '*URA'})
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Get details using last name and wildcard search
|
|
42
|
+
```ruby
|
|
43
|
+
Npiregistry.get({last_name: 'SAMPLE'})
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
or
|
|
47
|
+
|
|
48
|
+
```ruby
|
|
49
|
+
Npiregistry.get({last_name: 'SAM*'})
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Use the following fields to generating valid response.
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
| Fields | Description |
|
|
56
|
+
| :------------- |:-------------|
|
|
57
|
+
| number | Exactly 10 digits
|
|
58
|
+
| enumeration_type | NPI-1 or NPI-2 (Other criteria required)
|
|
59
|
+
| taxonomy_description | Exact Description or Exact Specialty or wildcard * after 2 characters
|
|
60
|
+
| first_name | Exact name, or wildcard * after 2 characters Use for type 1
|
|
61
|
+
| last_name | Exact name, or wildcard * after 2 characters Use for type 1
|
|
62
|
+
| organization_name | Exact name, or wildcard * after 2 characters Use for type 2
|
|
63
|
+
| address_purpose | LOCATION or MAILING (Other criteria required)
|
|
64
|
+
| city | Exact Name
|
|
65
|
+
| state | 2 Characters (Other criteria required)
|
|
66
|
+
| postal_code | At least 2 characters, wildcard is implied
|
|
67
|
+
| country_code | Exactly 2 characters (if "US", other criteria required)
|
|
68
|
+
| limit | Limit results, default = 10, max = 200
|
|
69
|
+
| skip | Skip first N results, max = 1000
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
26
73
|
|
|
27
74
|
## Development
|
|
28
75
|
|
data/lib/npiregistry/request.rb
CHANGED
|
@@ -15,7 +15,6 @@ module Npiregistry
|
|
|
15
15
|
|
|
16
16
|
def initialize args
|
|
17
17
|
@options = (args[:options] || {}).dup
|
|
18
|
-
@os_options = OpenStruct.new(@options)
|
|
19
18
|
@url = URL
|
|
20
19
|
end
|
|
21
20
|
|
|
@@ -25,7 +24,7 @@ module Npiregistry
|
|
|
25
24
|
end
|
|
26
25
|
|
|
27
26
|
def process_parameters
|
|
28
|
-
options = @
|
|
27
|
+
options = OpenStruct.new(@options)
|
|
29
28
|
{
|
|
30
29
|
number: options.number,
|
|
31
30
|
enumeration_type: options.enumeration_type,
|
data/lib/npiregistry/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: npiregistry
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dharmdip Rathod
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-02-
|
|
11
|
+
date: 2017-02-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|