Module: NPPESApi
- Defined in:
- lib/nppes_api_v2.rb
Constant Summary collapse
- ENUMERATION_TYPES =
[ NPI_1 = 'NPI-1'.freeze, NPI_2 = 'NPI-2'.freeze ].freeze
- ADDRESS_PURPOSES =
[ LOCATION = 'LOCATION'.freeze, MAILING = 'MAILING'.freeze ].freeze
Class Method Summary collapse
-
.search(options = {}) ⇒ Object
This is the main entry point for searches.
Class Method Details
.search(options = {}) ⇒ Object
This is the main entry point for searches. Provide params as described below to parameterize the search. Search results can consist of at most 1200 results, and each search can return at most 200 of them. Use the limit and skip parameters as described below to perform pagination of the data. https://npiregistry.cms.hhs.gov/registry/help-api
40 41 42 |
# File 'lib/nppes_api_v2.rb', line 40 def self.search( = {}) SearchResults.new(RestClient.get('https://npiregistry.cms.hhs.gov/api/?version=2.1', params: ).body) end |