provider_taxonomy 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -4
- data/app/models/taxonomy_item.rb +1 -1
- data/db/migrate/20160909180325_create_taxonomy_items.rb +1 -1
- data/lib/provider_taxonomy/version.rb +1 -1
- metadata +3 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b0a7541767818581d2b1c1713ea142c209b5760
|
4
|
+
data.tar.gz: b0a3311519d30bf8ffe9a2c1bc32f0844f2c0252
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b5c6e7a8527d09b661c760e26d60d50ed3fe6e81dc7b219a0b6afc81c1fb74109e439cd9c83443ca81128a56663e0fd320f42428fb3646c2c2fcab2ac0b8baf
|
7
|
+
data.tar.gz: b7c6bfdfa2204a627d555f2745eb5d47d824ff7a40d0922fb7500b5b613b25312d0f992531d21b6d00b096f721c49108fcc6bd0f08e017a67ff1aff11abe53b6
|
data/README.md
CHANGED
@@ -1,9 +1,6 @@
|
|
1
|
-
#
|
1
|
+
# Provider Taxonomy
|
2
2
|
A gem to add a database table containing the NUCC Health Care Provider Taxonomy.
|
3
3
|
|
4
|
-
## Usage
|
5
|
-
Once installed, your Rails app will have a TaxonomyItem database table, from which you can access all healthcare provider specialties.
|
6
|
-
|
7
4
|
## Installation
|
8
5
|
Add this line to your application's Gemfile:
|
9
6
|
|
@@ -24,5 +21,18 @@ $ rake db:migrate
|
|
24
21
|
$ rake provider_taxonomy:import
|
25
22
|
```
|
26
23
|
|
24
|
+
## Usage
|
25
|
+
Once installed, your Rails app will have a `taxonomy_items` database table and a `TaxonomyItem` model from which you can access all healthcare provider specialties.
|
26
|
+
|
27
|
+
If you would like to extend the model with your own, you can do the following
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
class Specialty < ActiveRecord::Base
|
31
|
+
self.table_name = "taxonomy_items"
|
32
|
+
belongs_to :parent, foreign_key: :parent_id, class_name: Specialty, required: false
|
33
|
+
# Your code goes here
|
34
|
+
end
|
35
|
+
```
|
36
|
+
|
27
37
|
## License
|
28
38
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/app/models/taxonomy_item.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: provider_taxonomy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ClydeDroid
|
@@ -14,22 +14,16 @@ dependencies:
|
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 5.0.0
|
20
17
|
- - ">="
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
19
|
+
version: '0'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 5.0.0
|
30
24
|
- - ">="
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
26
|
+
version: '0'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: pg
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|