Skip to content

Latest commit

 

History

History
179 lines (121 loc) · 10.6 KB

File metadata and controls

179 lines (121 loc) · 10.6 KB

VericredClient::ProvidersApi

All URIs are relative to https://api.vericred.com/

Method HTTP request Description
get_provider GET /providers/{npi} Find a Provider
get_providers POST /providers/search Find Providers
get_providers_0 POST /providers/search/geocode Find Providers

get_provider

ProviderShowResponse get_provider(npi, opts)

Find a Provider

To retrieve a specific provider, just perform a GET using his NPI number

Example

# load the gem
require 'vericred_client'
# setup authorization
VericredClient.configure do |config|
  # Configure API key authorization: Vericred-Api-Key
  config.api_key['Vericred-Api-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['Vericred-Api-Key'] = 'Bearer'
end

api_instance = VericredClient::ProvidersApi.new

npi = "1234567890" # String | NPI number

opts = { 
  year: "2016", # String | Only show plan ids for the given year
  state: "NY" # String | Only show plan ids for the given state
}

begin
  #Find a Provider
  result = api_instance.get_provider(npi, opts)
  p result
rescue VericredClient::ApiError => e
  puts "Exception when calling ProvidersApi->get_provider: #{e}"
end

Parameters

Name Type Description Notes
npi String NPI number
year String Only show plan ids for the given year [optional]
state String Only show plan ids for the given state [optional]

Return type

ProviderShowResponse

Authorization

Vericred-Api-Key

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

get_providers

ProvidersSearchResponse get_providers(body)

Find Providers

Provider Details All searches can take a search_term, which is used as a component in the score (and thus the ranking/order) of the results. This is combined with the proximity to the location in ranking results. For example, we would want "Dr. John Smith" who is 5 miles away from a given Zip Code to appear before "Dr. John Smith" who is 100 miles away. The weighting also allows for non-exact matches. In our prior example, we would want "Dr. Jon Smith" who is 2 miles away to appear before the exact match "Dr. John Smith" who is 100 miles away because it is more likely that the user just entered an incorrect name. The free text search also supports Specialty name search and "body part" Specialty name search. So, searching "John Smith nose" would return "Dr. John Smith", the ENT Specialist before "Dr. John Smith" the Internist. In addition, we can filter Providers by whether or not they accept any insurance. Our data set includes over 4 million Providers, some of whom do not accept any insurance at all. This filter makes it more likely that the user will find his or her practitioner in some cases. We can also use min_score to omit less relevant results. This makes sense in the case where your application wants to display all of the results returned regardless of how many there are. Otherwise, using our default min_score and pagination should be sufficient. ### Location Information All Provider searches that do not specify plan_ids or network_idsrequire some type of location information. We use this information either to weight results or to filter results, depending on the type. #### Zip Code When providing the zip_code parameter, we order the Providers returned based on their score, which incorporates their proximity to the given Zip Code and the closeness of match to the search text. If a radius is also provided, we filter out Providers who are outside of that radius from the center of the Zip Code provided #### Polygon When providing the polygon parameter, we filter providers who are outside the bounds of the shape provided. This is mutually exclusive with zip_code and radius. ### Plan/Network Information We can also filter based on Plan and Network participation. These filters are mutually exclusive and return the union of the resulting sets for each Plan or Network. I.e. if you provider Plan A and Plan B, you will receive Providers who accept either Plan. The same is true for Networks. ### Examples Find Dr. Foo near Brooklyn { \"search_term\": \"Foo\", \"zip_code\": \"11215\" } Find all Providers within 5 miles of Brooklyn who accept a Plan { \"zip_code\": \"11215\", \"radius\": 5, \"hios_ids\": [\"88582NY0230001\"] } Find all providers on a map of Brooklyn ordered by a combination of proximity to the center point of the map and relevance to the search term "ENT" { \"polygon\": [ {\"lon\":-74.0126609802,\"lat\":40.6275684851 }, {\"lon\":-74.0126609802,\"lat\":40.7097269508 }, {\"lon\":-73.9367866516,\"lat\":40.7097269508 }, {\"lon\":-73.9367866516,\"lat\":40.6275684851 } ], \"search_term\" : \"ENT\" }

Example

# load the gem
require 'vericred_client'
# setup authorization
VericredClient.configure do |config|
  # Configure API key authorization: Vericred-Api-Key
  config.api_key['Vericred-Api-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['Vericred-Api-Key'] = 'Bearer'
end

api_instance = VericredClient::ProvidersApi.new

body = VericredClient::RequestProvidersSearch.new # RequestProvidersSearch | 


begin
  #Find Providers
  result = api_instance.get_providers(body)
  p result
rescue VericredClient::ApiError => e
  puts "Exception when calling ProvidersApi->get_providers: #{e}"
end

Parameters

Name Type Description Notes
body RequestProvidersSearch

Return type

ProvidersSearchResponse

Authorization

Vericred-Api-Key

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

get_providers_0

ProvidersGeocodeResponse get_providers_0(body)

Find Providers

Provider Details All searches can take a search_term, which is used as a component in the score (and thus the ranking/order) of the results. This is combined with the proximity to the location in ranking results. For example, we would want "Dr. John Smith" who is 5 miles away from a given Zip Code to appear before "Dr. John Smith" who is 100 miles away. The weighting also allows for non-exact matches. In our prior example, we would want "Dr. Jon Smith" who is 2 miles away to appear before the exact match "Dr. John Smith" who is 100 miles away because it is more likely that the user just entered an incorrect name. The free text search also supports Specialty name search and "body part" Specialty name search. So, searching "John Smith nose" would return "Dr. John Smith", the ENT Specialist before "Dr. John Smith" the Internist. In addition, we can filter Providers by whether or not they accept any insurance. Our data set includes over 4 million Providers, some of whom do not accept any insurance at all. This filter makes it more likely that the user will find his or her practitioner in some cases. We can also use min_score to omit less relevant results. This makes sense in the case where your application wants to display all of the results returned regardless of how many there are. Otherwise, using our default min_score and pagination should be sufficient. ### Location Information All Provider searches that do not specify plan_ids or network_idsrequire some type of location information. We use this information either to weight results or to filter results, depending on the type. #### Zip Code When providing the zip_code parameter, we order the Providers returned based on their score, which incorporates their proximity to the given Zip Code and the closeness of match to the search text. If a radius is also provided, we filter out Providers who are outside of that radius from the center of the Zip Code provided #### Polygon When providing the polygon parameter, we filter providers who are outside the bounds of the shape provided. This is mutually exclusive with zip_code and radius. ### Plan/Network Information We can also filter based on Plan and Network participation. These filters are mutually exclusive and return the union of the resulting sets for each Plan or Network. I.e. if you provider Plan A and Plan B, you will receive Providers who accept either Plan. The same is true for Networks. ### Examples Find Dr. Foo near Brooklyn { \"search_term\": \"Foo\", \"zip_code\": \"11215\" } Find all Providers within 5 miles of Brooklyn who accept a Plan { \"zip_code\": \"11215\", \"radius\": 5, \"hios_ids\": [\"88582NY0230001\"] } Find all providers on a map of Brooklyn ordered by a combination of proximity to the center point of the map and relevance to the search term "ENT" { \"polygon\": [ {\"lon\":-74.0126609802,\"lat\":40.6275684851 }, {\"lon\":-74.0126609802,\"lat\":40.7097269508 }, {\"lon\":-73.9367866516,\"lat\":40.7097269508 }, {\"lon\":-73.9367866516,\"lat\":40.6275684851 } ], \"search_term\" : \"ENT\" }

Example

# load the gem
require 'vericred_client'
# setup authorization
VericredClient.configure do |config|
  # Configure API key authorization: Vericred-Api-Key
  config.api_key['Vericred-Api-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['Vericred-Api-Key'] = 'Bearer'
end

api_instance = VericredClient::ProvidersApi.new

body = VericredClient::RequestProvidersSearch.new # RequestProvidersSearch | 


begin
  #Find Providers
  result = api_instance.get_providers_0(body)
  p result
rescue VericredClient::ApiError => e
  puts "Exception when calling ProvidersApi->get_providers_0: #{e}"
end

Parameters

Name Type Description Notes
body RequestProvidersSearch

Return type

ProvidersGeocodeResponse

Authorization

Vericred-Api-Key

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined