Class: VericredClient::NetworksApi

Inherits:
Object
  • Object
show all
Defined in:
lib/vericred_client/api/networks_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ NetworksApi

Returns a new instance of NetworksApi.



19
20
21
# File 'lib/vericred_client/api/networks_api.rb', line 19

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



17
18
19
# File 'lib/vericred_client/api/networks_api.rb', line 17

def api_client
  @api_client
end

Instance Method Details

#create_network_comparisons(id, body, opts = {}) ⇒ NetworkComparisonResponse

Network Comparisons 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

Parameters:

  • id

    Primary key of the base network

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



29
30
31
32
# File 'lib/vericred_client/api/networks_api.rb', line 29

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 = {}) ⇒ Array<(NetworkComparisonResponse, Fixnum, Hash)>

Network Comparisons 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

Parameters:

  • id

    Primary key of the base network

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(NetworkComparisonResponse, Fixnum, Hash)>)

    NetworkComparisonResponse data, response status code and response headers



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/vericred_client/api/networks_api.rb', line 40

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
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling NetworksApi.create_network_comparisons"
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling NetworksApi.create_network_comparisons"
  end
  # resource path
  local_var_path = "/networks/{id}/network_comparisons".sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # 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(carrier_id, opts = {}) ⇒ NetworkSearchResponse

Networks A network is 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.

Parameters:

  • carrier_id

    Carrier HIOS Issuer ID

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    Page of paginated response

  • :per_page (Integer)

    Responses per page

Returns:



91
92
93
94
# File 'lib/vericred_client/api/networks_api.rb', line 91

def list_networks(carrier_id, opts = {})
  data, _status_code, _headers = list_networks_with_http_info(carrier_id, opts)
  return data
end

#list_networks_with_http_info(carrier_id, opts = {}) ⇒ Array<(NetworkSearchResponse, Fixnum, Hash)>

Networks A network is 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.

Parameters:

  • carrier_id

    Carrier HIOS Issuer ID

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    Page of paginated response

  • :per_page (Integer)

    Responses per page

Returns:

  • (Array<(NetworkSearchResponse, Fixnum, Hash)>)

    NetworkSearchResponse data, response status code and response headers



103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# File 'lib/vericred_client/api/networks_api.rb', line 103

def list_networks_with_http_info(carrier_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: NetworksApi.list_networks ..."
  end
  # verify the required parameter 'carrier_id' is set
  if @api_client.config.client_side_validation && carrier_id.nil?
    fail ArgumentError, "Missing the required parameter 'carrier_id' when calling NetworksApi.list_networks"
  end
  # resource path
  local_var_path = "/networks"

  # query parameters
  query_params = {}
  query_params[:'carrier_id'] = carrier_id
  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)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # 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 = {}) ⇒ NetworkDetailsResponse

Network Details A network is a list of the doctors, other health care providers, and hospitals that a plan has contracted with to provide medical care to its members.

Parameters:

  • id

    Primary key of the network

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



151
152
153
154
# File 'lib/vericred_client/api/networks_api.rb', line 151

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 = {}) ⇒ Array<(NetworkDetailsResponse, Fixnum, Hash)>

Network Details A network is a list of the doctors, other health care providers, and hospitals that a plan has contracted with to provide medical care to its members.

Parameters:

  • id

    Primary key of the network

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(NetworkDetailsResponse, Fixnum, Hash)>)

    NetworkDetailsResponse data, response status code and response headers



161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
# File 'lib/vericred_client/api/networks_api.rb', line 161

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
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling NetworksApi.show_network"
  end
  # resource path
  local_var_path = "/networks/{id}".sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # 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