Sha256: 8ba0f15695a3ab3d80bc9b24562e064ae1df067f8df4c9305f89de8d8cd8b18a

Contents?: true

Size: 1.03 KB

Versions: 3

Compression:

Stored size: 1.03 KB

Contents

# Provider Taxonomy
A gem to add a database table containing the NUCC Health Care Provider Taxonomy.

## Installation
Add this line to your application's Gemfile:

```ruby
gem 'provider_taxonomy'
```

And then execute:
```bash
$ bundle install
```

Finally, run the migration and rake task:
```bash
$ rake db:migrate
```
```bash
$ rake provider_taxonomy:import
```

## Usage
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.

If you would like to extend the model with your own, you can do the following

```ruby
class Specialty < TaxonomyItem
  self.table_name = "taxonomy_items"
  belongs_to :parent, foreign_key: :parent_id, class_name: Specialty, required: false
  # Your code goes here
end
```

You may also wish to add the following to `db/seeds.rb`:

```ruby
Rake::Task['provider_taxonomy:import'].invoke
```

## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
provider_taxonomy-0.1.7 README.md
provider_taxonomy-0.1.6 README.md
provider_taxonomy-0.1.5 README.md