class VericredClient::NetworksApi

Attributes

api_client[RW]

Public Class Methods

new(api_client = ApiClient.default) click to toggle source
# File lib/vericred_client/api/networks_api.rb, line 1018
def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Public Instance Methods

create_disruption_analysis(body, opts = {}) click to toggle source

Disruption Analysis Calculate the percentage of provider NPIs that are out-of-network for a set of networks. If you are interested in using this endpoint, please contact support@vericred.com for more details. @param body @param [Hash] opts the optional parameters @option opts [Integer] :page Page of paginated response @option opts [Integer] :per_page Responses per page @return [NetworkDisruptionAnalysisResponse]

# File lib/vericred_client/api/networks_api.rb, line 1029
def create_disruption_analysis(body, opts = {})
  data, _status_code, _headers = create_disruption_analysis_with_http_info(body, opts)
  return data
end
create_disruption_analysis_with_http_info(body, opts = {}) click to toggle source

Disruption Analysis Calculate the percentage of provider NPIs that are out-of-network for a set of networks. If you are interested in using this endpoint, please contact support@vericred.com for more details. @param body @param [Hash] opts the optional parameters @option opts [Integer] :page Page of paginated response @option opts [Integer] :per_page Responses per page @return [Array<(NetworkDisruptionAnalysisResponse, Fixnum, Hash)>] NetworkDisruptionAnalysisResponse data, response status code and response headers

# File lib/vericred_client/api/networks_api.rb, line 1041
def create_disruption_analysis_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: NetworksApi.create_disruption_analysis ..."
  end
  # verify the required parameter 'body' is set
  fail ArgumentError, "Missing the required parameter 'body' when calling NetworksApi.create_disruption_analysis" if body.nil?
  # resource path
  local_var_path = "/networks/disruption_analysis".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(body)
  auth_names = ['Vericred-Api-Key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'NetworkDisruptionAnalysisResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: NetworksApi#create_disruption_analysis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
create_network_comparisons(id, body, opts = {}) click to toggle source

Compare Multiple Networks Compare provider counts in a given area between a base network and one or more comparison networks. #### Comparing Networks Comparison of provider counts within a radius requires that you provide a `zip_code` and `radius` to use as a search area. The response returns the total number of unique `Providers` in the Base `Network` (i.e. those who are not present in the Comparison `Network`), The number of unique `Provider`s in the Comparison `Network` (i.e. those who are not present in the Base `Network`), and the count of `Provider`s who are in both `Network`s @param id Primary key of the base network @param body @param [Hash] opts the optional parameters @return [NetworkComparisonResponse]

# File lib/vericred_client/api/networks_api.rb, line 1091
def create_network_comparisons(id, body, opts = {})
  data, _status_code, _headers = create_network_comparisons_with_http_info(id, body, opts)
  return data
end
create_network_comparisons_with_http_info(id, body, opts = {}) click to toggle source

Compare Multiple Networks Compare provider counts in a given area between a base network and one or more comparison networks. #### Comparing Networks Comparison of provider counts within a radius requires that you provide a &#x60;zip_code&#x60; and &#x60;radius&#x60; to use as a search area. The response returns the total number of unique &#x60;Providers&#x60; in the Base &#x60;Network&#x60; (i.e. those who are not present in the Comparison &#x60;Network&#x60;), The number of unique &#x60;Provider&#x60;s in the Comparison &#x60;Network&#x60; (i.e. those who are not present in the Base &#x60;Network&#x60;), and the count of &#x60;Provider&#x60;s who are in both &#x60;Network&#x60;s @param id Primary key of the base network @param body @param [Hash] opts the optional parameters @return [Array<(NetworkComparisonResponse, Fixnum, Hash)>] NetworkComparisonResponse data, response status code and response headers

# File lib/vericred_client/api/networks_api.rb, line 1102
def create_network_comparisons_with_http_info(id, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: NetworksApi.create_network_comparisons ..."
  end
  # verify the required parameter 'id' is set
  fail ArgumentError, "Missing the required parameter 'id' when calling NetworksApi.create_network_comparisons" if id.nil?
  # verify the required parameter 'body' is set
  fail ArgumentError, "Missing the required parameter 'body' when calling NetworksApi.create_network_comparisons" if body.nil?
  # resource path
  local_var_path = "/networks/{id}/network_comparisons".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(body)
  auth_names = ['Vericred-Api-Key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'NetworkComparisonResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: NetworksApi#create_network_comparisons\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
list_networks(opts = {}) click to toggle source

Network Search The network search endpoint enables you to find networks by many parameters. A network encompasses a list of the doctors, other health care providers, and hospitals that a plan has contracted with to provide medical care to its Members. This endpoint is paginated. **New Verison:** In order to use this endpoint, please set your version header to `v7`. If you do not set the version header, you will be limited to the following parameters: `carrier_id`, `market`, `state`, and `effective_date` and you will see limited information in the response. For more information on how to set version headers, see [Versioning](header-versioning) of this document. @param [Hash] opts the optional parameters @option opts [String] :search_term Full or partial name of the network @option opts [String] :line_of_coverage The line of coverage of the network. Possible values are &#x60;medical&#x60;, &#x60;medicare_advantage&#x60;, &#x60;dental&#x60; @option opts [String] :carrier_id Carrier HIOS Issuer ID (e.g. 10544) or Medicare Contract Issuer ID (e.g. H2649) @option opts [String] :market Type of Plan to which this network is attached. Possible values are &#x60;individual&#x60;, &#x60;small_group&#x60;, &#x60;large_group&#x60; @option opts [String] :state_code A state code (e.g. CA) in which the network is available @option opts [String] :effective_date Use this to specify a date on which the network must be or have been active @option opts [Integer] :page Page of paginated response @option opts [Integer] :per_page Responses per page @return [NetworkSearchResponse]

# File lib/vericred_client/api/networks_api.rb, line 1158
def list_networks(opts = {})
  data, _status_code, _headers = list_networks_with_http_info(opts)
  return data
end
list_networks_with_http_info(opts = {}) click to toggle source

Network Search The network search endpoint enables you to find networks by many parameters. A network encompasses a list of the doctors, other health care providers, and hospitals that a plan has contracted with to provide medical care to its Members. This endpoint is paginated. **New Verison:** In order to use this endpoint, please set your version header to &#x60;v7&#x60;. If you do not set the version header, you will be limited to the following parameters: &#x60;carrier_id&#x60;, &#x60;market&#x60;, &#x60;state&#x60;, and &#x60;effective_date&#x60; and you will see limited information in the response. For more information on how to set version headers, see [Versioning](header-versioning) of this document. @param [Hash] opts the optional parameters @option opts [String] :search_term Full or partial name of the network @option opts [String] :line_of_coverage The line of coverage of the network. Possible values are &#x60;medical&#x60;, &#x60;medicare_advantage&#x60;, &#x60;dental&#x60; @option opts [String] :carrier_id Carrier HIOS Issuer ID (e.g. 10544) or Medicare Contract Issuer ID (e.g. H2649) @option opts [String] :market Type of Plan to which this network is attached. Possible values are &#x60;individual&#x60;, &#x60;small_group&#x60;, &#x60;large_group&#x60; @option opts [String] :state_code A state code (e.g. CA) in which the network is available @option opts [String] :effective_date Use this to specify a date on which the network must be or have been active @option opts [Integer] :page Page of paginated response @option opts [Integer] :per_page Responses per page @return [Array<(NetworkSearchResponse, Fixnum, Hash)>] NetworkSearchResponse data, response status code and response headers

# File lib/vericred_client/api/networks_api.rb, line 1175
def list_networks_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: NetworksApi.list_networks ..."
  end
  # resource path
  local_var_path = "/networks".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'search_term'] = opts[:'search_term'] if !opts[:'search_term'].nil?
  query_params[:'line_of_coverage'] = opts[:'line_of_coverage'] if !opts[:'line_of_coverage'].nil?
  query_params[:'carrier_id'] = opts[:'carrier_id'] if !opts[:'carrier_id'].nil?
  query_params[:'market'] = opts[:'market'] if !opts[:'market'].nil?
  query_params[:'state_code'] = opts[:'state_code'] if !opts[:'state_code'].nil?
  query_params[:'effective_date'] = opts[:'effective_date'] if !opts[:'effective_date'].nil?
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Vericred-Api-Key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'NetworkSearchResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: NetworksApi#list_networks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
show_network(id, opts = {}) click to toggle source

Display a Network The network details endpoint enables you to get information about a network by providing its `id`. A network encompasses a list of the doctors, other health care providers, and hospitals that a plan has contracted with to provide medical care to its Members. @param id Primary key of the network @param [Hash] opts the optional parameters @return [NetworkDetailsResponse]

# File lib/vericred_client/api/networks_api.rb, line 1228
def show_network(id, opts = {})
  data, _status_code, _headers = show_network_with_http_info(id, opts)
  return data
end
show_network_with_http_info(id, opts = {}) click to toggle source

Display a Network The network details endpoint enables you to get information about a network by providing its &#x60;id&#x60;. A network encompasses a list of the doctors, other health care providers, and hospitals that a plan has contracted with to provide medical care to its Members. @param id Primary key of the network @param [Hash] opts the optional parameters @return [Array<(NetworkDetailsResponse, Fixnum, Hash)>] NetworkDetailsResponse data, response status code and response headers

# File lib/vericred_client/api/networks_api.rb, line 1238
def show_network_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: NetworksApi.show_network ..."
  end
  # verify the required parameter 'id' is set
  fail ArgumentError, "Missing the required parameter 'id' when calling NetworksApi.show_network" if id.nil?
  # resource path
  local_var_path = "/networks/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Vericred-Api-Key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'NetworkDetailsResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: NetworksApi#show_network\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end