Repository is archived
No commit activity in last 3 years
No release in over 3 years
A gem to add a database table containing the NUCC Health Care Provider Taxonomy
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 0
 Project Readme

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:

gem 'provider_taxonomy'

And then execute:

$ bundle install

Finally, run the migration and rake task:

$ rake db:migrate
$ 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

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:

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

License

The gem is available as open source under the terms of the MIT License.