vericred_client 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +201 -0
- data/README.md +9 -10
- data/docs/DrugsApi.md +7 -9
- data/docs/NetworksApi.md +4 -6
- data/docs/PlansApi.md +4 -72
- data/docs/ProvidersApi.md +7 -20
- data/docs/RequestProvidersSearch.md +1 -3
- data/docs/ZipCountiesApi.md +3 -3
- data/git_push.sh +67 -0
- data/lib/vericred_client/api/drugs_api.rb +17 -11
- data/lib/vericred_client/api/networks_api.rb +18 -12
- data/lib/vericred_client/api/plans_api.rb +15 -141
- data/lib/vericred_client/api/providers_api.rb +16 -32
- data/lib/vericred_client/api/zip_counties_api.rb +14 -4
- data/lib/vericred_client/api_client.rb +13 -3
- data/lib/vericred_client/api_error.rb +13 -3
- data/lib/vericred_client/configuration.rb +130 -0
- data/lib/vericred_client/models/applicant.rb +20 -6
- data/lib/vericred_client/models/base.rb +20 -6
- data/lib/vericred_client/models/carrier.rb +20 -6
- data/lib/vericred_client/models/carrier_subsidiary.rb +20 -6
- data/lib/vericred_client/models/county.rb +20 -6
- data/lib/vericred_client/models/county_bulk.rb +20 -6
- data/lib/vericred_client/models/drug.rb +20 -6
- data/lib/vericred_client/models/drug_coverage.rb +20 -6
- data/lib/vericred_client/models/drug_coverage_response.rb +20 -6
- data/lib/vericred_client/models/drug_package.rb +20 -6
- data/lib/vericred_client/models/drug_search_response.rb +20 -6
- data/lib/vericred_client/models/meta.rb +20 -6
- data/lib/vericred_client/models/network.rb +20 -6
- data/lib/vericred_client/models/network_search_response.rb +20 -6
- data/lib/vericred_client/models/plan.rb +20 -6
- data/lib/vericred_client/models/plan_county.rb +20 -6
- data/lib/vericred_client/models/plan_county_bulk.rb +20 -6
- data/lib/vericred_client/models/plan_search_response.rb +20 -6
- data/lib/vericred_client/models/plan_search_result.rb +20 -6
- data/lib/vericred_client/models/plan_zip_county.rb +20 -6
- data/lib/vericred_client/models/pricing.rb +20 -6
- data/lib/vericred_client/models/provider.rb +20 -6
- data/lib/vericred_client/models/provider_show_response.rb +20 -6
- data/lib/vericred_client/models/providers_search_response.rb +20 -6
- data/lib/vericred_client/models/rating_area.rb +20 -6
- data/lib/vericred_client/models/request_plan_find.rb +20 -6
- data/lib/vericred_client/models/request_plan_find_applicant.rb +20 -6
- data/lib/vericred_client/models/request_plan_find_provider.rb +20 -6
- data/lib/vericred_client/models/request_providers_search.rb +21 -9
- data/lib/vericred_client/models/state.rb +20 -6
- data/lib/vericred_client/models/zip_code.rb +20 -6
- data/lib/vericred_client/models/zip_counties_response.rb +20 -6
- data/lib/vericred_client/models/zip_county.rb +20 -6
- data/lib/vericred_client/models/zip_county_bulk.rb +20 -6
- data/lib/vericred_client/models/zip_county_response.rb +20 -6
- data/lib/vericred_client/version.rb +14 -4
- data/lib/vericred_client.rb +13 -3
- data/spec/api/drugs_api_spec.rb +17 -17
- data/spec/api/networks_api_spec.rb +16 -12
- data/spec/api/plans_api_spec.rb +16 -78
- data/spec/api/providers_api_spec.rb +17 -28
- data/spec/api/zip_counties_api_spec.rb +15 -9
- data/spec/api_client_spec.rb +403 -0
- data/spec/configuration_spec.rb +155 -0
- data/spec/models/applicant_spec.rb +196 -0
- data/spec/models/base_spec.rb +160 -0
- data/spec/models/carrier_spec.rb +172 -0
- data/spec/models/carrier_subsidiary_spec.rb +172 -0
- data/spec/models/county_bulk_spec.rb +172 -0
- data/spec/models/county_spec.rb +196 -0
- data/spec/models/drug_coverage_response_spec.rb +178 -0
- data/spec/models/drug_coverage_spec.rb +190 -0
- data/spec/models/drug_package_spec.rb +166 -0
- data/spec/models/drug_search_response_spec.rb +172 -0
- data/spec/models/drug_spec.rb +178 -0
- data/spec/models/meta_spec.rb +160 -0
- data/spec/models/network_search_response_spec.rb +166 -0
- data/spec/models/network_spec.rb +166 -0
- data/spec/models/plan_county_bulk_spec.rb +166 -0
- data/spec/models/plan_county_spec.rb +166 -0
- data/spec/models/plan_search_response_spec.rb +172 -0
- data/spec/models/plan_search_result_spec.rb +562 -0
- data/spec/models/plan_spec.rb +544 -0
- data/spec/models/plan_zip_county_spec.rb +172 -0
- data/spec/models/pricing_spec.rb +220 -0
- data/spec/models/provider_show_response_spec.rb +160 -0
- data/spec/models/provider_spec.rb +322 -0
- data/spec/models/providers_search_response_spec.rb +172 -0
- data/spec/models/rating_area_spec.rb +166 -0
- data/spec/models/request_plan_find_applicant_spec.rb +160 -0
- data/spec/models/request_plan_find_provider_spec.rb +160 -0
- data/spec/models/request_plan_find_spec.rb +226 -0
- data/spec/models/request_providers_search_spec.rb +202 -0
- data/spec/models/state_spec.rb +202 -0
- data/spec/models/zip_code_spec.rb +166 -0
- data/spec/models/zip_counties_response_spec.rb +178 -0
- data/spec/models/zip_county_bulk_spec.rb +178 -0
- data/spec/models/zip_county_response_spec.rb +178 -0
- data/spec/models/zip_county_spec.rb +172 -0
- data/spec/spec_helper.rb +229 -0
- data/vericred_client.gemspec +131 -0
- metadata +80 -2
@@ -3,9 +3,7 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**accepts_insurance** | **BOOLEAN** | Limit results to Providers who accept at least one insurance
|
7
|
-
plan. Note that the inverse of this filter is not supported and
|
8
|
-
any value will evaluate to true | [optional]
|
6
|
+
**accepts_insurance** | **BOOLEAN** | Limit results to Providers who accept at least one insurance plan. Note that the inverse of this filter is not supported and any value will evaluate to true | [optional]
|
9
7
|
**hios_ids** | **Array<String>** | List of HIOS ids | [optional]
|
10
8
|
**page** | **Integer** | Page number | [optional]
|
11
9
|
**per_page** | **Integer** | Number of records to return per page | [optional]
|
data/docs/ZipCountiesApi.md
CHANGED
@@ -18,12 +18,12 @@ Our `Plan` endpoints require a zip code and a fips (county) code. This is becau
|
|
18
18
|
```ruby
|
19
19
|
# load the gem
|
20
20
|
require 'vericred_client'
|
21
|
-
# setup authorization
|
21
|
+
# setup authorization
|
22
22
|
VericredClient.configure do |config|
|
23
23
|
# Configure API key authorization: Vericred-Api-Key
|
24
24
|
config.api_key['Vericred-Api-Key'] = 'YOUR API KEY'
|
25
|
-
# Uncomment the following line to set a prefix for the API key, e.g. '
|
26
|
-
#config.api_key_prefix['Vericred-Api-Key'] = '
|
25
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
26
|
+
#config.api_key_prefix['Vericred-Api-Key'] = 'Bearer'
|
27
27
|
end
|
28
28
|
|
29
29
|
api_instance = VericredClient::ZipCountiesApi.new
|
data/git_push.sh
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
#
|
3
|
+
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
#
|
17
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
18
|
+
#
|
19
|
+
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
20
|
+
|
21
|
+
git_user_id=$1
|
22
|
+
git_repo_id=$2
|
23
|
+
release_note=$3
|
24
|
+
|
25
|
+
if [ "$git_user_id" = "" ]; then
|
26
|
+
git_user_id="GIT_USER_ID"
|
27
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
28
|
+
fi
|
29
|
+
|
30
|
+
if [ "$git_repo_id" = "" ]; then
|
31
|
+
git_repo_id="GIT_REPO_ID"
|
32
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
33
|
+
fi
|
34
|
+
|
35
|
+
if [ "$release_note" = "" ]; then
|
36
|
+
release_note="Minor update"
|
37
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
38
|
+
fi
|
39
|
+
|
40
|
+
# Initialize the local directory as a Git repository
|
41
|
+
git init
|
42
|
+
|
43
|
+
# Adds the files in the local repository and stages them for commit.
|
44
|
+
git add .
|
45
|
+
|
46
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
47
|
+
git commit -m "$release_note"
|
48
|
+
|
49
|
+
# Sets the new remote
|
50
|
+
git_remote=`git remote`
|
51
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
52
|
+
|
53
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
54
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment."
|
55
|
+
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
56
|
+
else
|
57
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
58
|
+
fi
|
59
|
+
|
60
|
+
fi
|
61
|
+
|
62
|
+
git pull origin master
|
63
|
+
|
64
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
65
|
+
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
66
|
+
git push origin master 2>&1 | grep -v 'To https'
|
67
|
+
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
|
-
Vericred API
|
2
|
+
#Vericred API
|
3
3
|
|
4
|
-
Vericred's API allows you to search for Health Plans that a specific doctor
|
4
|
+
#Vericred's API allows you to search for Health Plans that a specific doctor
|
5
5
|
accepts.
|
6
6
|
|
7
7
|
## Getting Started
|
@@ -37,7 +37,6 @@ namely `Total`, `Per-Page`, `Link`, and `Page` as described in [RFC-5988](https:
|
|
37
37
|
|
38
38
|
For example, to display 5 results per page and view the second page of a
|
39
39
|
`GET` to `/networks`, your final request would be `GET /networks?....page=2&per_page=5`.
|
40
|
-
```
|
41
40
|
|
42
41
|
## Sideloading
|
43
42
|
|
@@ -115,6 +114,17 @@ OpenAPI spec version: 1.0.0
|
|
115
114
|
|
116
115
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
117
116
|
|
117
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
118
|
+
you may not use this file except in compliance with the License.
|
119
|
+
You may obtain a copy of the License at
|
120
|
+
|
121
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
122
|
+
|
123
|
+
Unless required by applicable law or agreed to in writing, software
|
124
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
125
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
126
|
+
See the License for the specific language governing permissions and
|
127
|
+
limitations under the License.
|
118
128
|
|
119
129
|
=end
|
120
130
|
|
@@ -129,9 +139,7 @@ module VericredClient
|
|
129
139
|
end
|
130
140
|
|
131
141
|
# Search for DrugCoverages
|
132
|
-
# Drug Coverages are the specific tier level, quantity limit, prior
|
133
|
-
authorization and step therapy for a given Drug/Plan combination. This endpoint
|
134
|
-
returns all DrugCoverages for a given Drug
|
142
|
+
# Drug Coverages are the specific tier level, quantity limit, prior authorization and step therapy for a given Drug/Plan combination. This endpoint returns all DrugCoverages for a given Drug
|
135
143
|
# @param ndc_package_code NDC package code
|
136
144
|
# @param audience Two-character state code
|
137
145
|
# @param state_code Two-character state code
|
@@ -143,9 +151,7 @@ returns all DrugCoverages for a given Drug
|
|
143
151
|
end
|
144
152
|
|
145
153
|
# Search for DrugCoverages
|
146
|
-
# Drug Coverages are the specific tier level, quantity limit, prior
|
147
|
-
authorization and step therapy for a given Drug/Plan combination. This endpoint
|
148
|
-
returns all DrugCoverages for a given Drug
|
154
|
+
# Drug Coverages are the specific tier level, quantity limit, prior authorization and step therapy for a given Drug/Plan combination. This endpoint returns all DrugCoverages for a given Drug
|
149
155
|
# @param ndc_package_code NDC package code
|
150
156
|
# @param audience Two-character state code
|
151
157
|
# @param state_code Two-character state code
|
@@ -185,7 +191,7 @@ returns all DrugCoverages for a given Drug
|
|
185
191
|
|
186
192
|
# http body (model)
|
187
193
|
post_body = nil
|
188
|
-
|
194
|
+
auth_names = ['Vericred-Api-Key']
|
189
195
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
190
196
|
:header_params => header_params,
|
191
197
|
:query_params => query_params,
|
@@ -243,7 +249,7 @@ returns all DrugCoverages for a given Drug
|
|
243
249
|
|
244
250
|
# http body (model)
|
245
251
|
post_body = nil
|
246
|
-
|
252
|
+
auth_names = ['Vericred-Api-Key']
|
247
253
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
248
254
|
:header_params => header_params,
|
249
255
|
:query_params => query_params,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
|
-
Vericred API
|
2
|
+
#Vericred API
|
3
3
|
|
4
|
-
Vericred's API allows you to search for Health Plans that a specific doctor
|
4
|
+
#Vericred's API allows you to search for Health Plans that a specific doctor
|
5
5
|
accepts.
|
6
6
|
|
7
7
|
## Getting Started
|
@@ -37,7 +37,6 @@ namely `Total`, `Per-Page`, `Link`, and `Page` as described in [RFC-5988](https:
|
|
37
37
|
|
38
38
|
For example, to display 5 results per page and view the second page of a
|
39
39
|
`GET` to `/networks`, your final request would be `GET /networks?....page=2&per_page=5`.
|
40
|
-
```
|
41
40
|
|
42
41
|
## Sideloading
|
43
42
|
|
@@ -115,6 +114,17 @@ OpenAPI spec version: 1.0.0
|
|
115
114
|
|
116
115
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
117
116
|
|
117
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
118
|
+
you may not use this file except in compliance with the License.
|
119
|
+
You may obtain a copy of the License at
|
120
|
+
|
121
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
122
|
+
|
123
|
+
Unless required by applicable law or agreed to in writing, software
|
124
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
125
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
126
|
+
See the License for the specific language governing permissions and
|
127
|
+
limitations under the License.
|
118
128
|
|
119
129
|
=end
|
120
130
|
|
@@ -129,9 +139,7 @@ module VericredClient
|
|
129
139
|
end
|
130
140
|
|
131
141
|
# Networks
|
132
|
-
# A network is a list of the doctors, other health care providers,
|
133
|
-
and hospitals that a plan has contracted with to provide medical care to
|
134
|
-
its members. This endpoint is paginated.
|
142
|
+
# 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.
|
135
143
|
# @param carrier_id Carrier HIOS Issuer ID
|
136
144
|
# @param [Hash] opts the optional parameters
|
137
145
|
# @option opts [Integer] :page Page of paginated response
|
@@ -143,9 +151,7 @@ its members. This endpoint is paginated.
|
|
143
151
|
end
|
144
152
|
|
145
153
|
# Networks
|
146
|
-
# A network is a list of the doctors, other health care providers,
|
147
|
-
and hospitals that a plan has contracted with to provide medical care to
|
148
|
-
its members. This endpoint is paginated.
|
154
|
+
# 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.
|
149
155
|
# @param carrier_id Carrier HIOS Issuer ID
|
150
156
|
# @param [Hash] opts the optional parameters
|
151
157
|
# @option opts [Integer] :page Page of paginated response
|
@@ -163,8 +169,8 @@ its members. This endpoint is paginated.
|
|
163
169
|
# query parameters
|
164
170
|
query_params = {}
|
165
171
|
query_params[:'carrier_id'] = carrier_id
|
166
|
-
query_params[:'page'] = opts[:'page'] if opts[:'page']
|
167
|
-
query_params[:'per_page'] = opts[:'per_page'] if opts[:'per_page']
|
172
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
173
|
+
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
168
174
|
|
169
175
|
# header parameters
|
170
176
|
header_params = {}
|
@@ -182,7 +188,7 @@ its members. This endpoint is paginated.
|
|
182
188
|
|
183
189
|
# http body (model)
|
184
190
|
post_body = nil
|
185
|
-
|
191
|
+
auth_names = ['Vericred-Api-Key']
|
186
192
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
187
193
|
:header_params => header_params,
|
188
194
|
:query_params => query_params,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
|
-
Vericred API
|
2
|
+
#Vericred API
|
3
3
|
|
4
|
-
Vericred's API allows you to search for Health Plans that a specific doctor
|
4
|
+
#Vericred's API allows you to search for Health Plans that a specific doctor
|
5
5
|
accepts.
|
6
6
|
|
7
7
|
## Getting Started
|
@@ -37,7 +37,6 @@ namely `Total`, `Per-Page`, `Link`, and `Page` as described in [RFC-5988](https:
|
|
37
37
|
|
38
38
|
For example, to display 5 results per page and view the second page of a
|
39
39
|
`GET` to `/networks`, your final request would be `GET /networks?....page=2&per_page=5`.
|
40
|
-
```
|
41
40
|
|
42
41
|
## Sideloading
|
43
42
|
|
@@ -115,6 +114,17 @@ OpenAPI spec version: 1.0.0
|
|
115
114
|
|
116
115
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
117
116
|
|
117
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
118
|
+
you may not use this file except in compliance with the License.
|
119
|
+
You may obtain a copy of the License at
|
120
|
+
|
121
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
122
|
+
|
123
|
+
Unless required by applicable law or agreed to in writing, software
|
124
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
125
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
126
|
+
See the License for the specific language governing permissions and
|
127
|
+
limitations under the License.
|
118
128
|
|
119
129
|
=end
|
120
130
|
|
@@ -129,75 +139,7 @@ module VericredClient
|
|
129
139
|
end
|
130
140
|
|
131
141
|
# Find Plans
|
132
|
-
# ### Location Information
|
133
|
-
|
134
|
-
Searching for a set of plans requires a `zip_code` and `fips_code`
|
135
|
-
code. These are used to determine pricing and availabity
|
136
|
-
of health plans. This endpoint is paginated.
|
137
|
-
|
138
|
-
Optionally, you may provide a list of Applicants or Providers
|
139
|
-
|
140
|
-
### Applicants
|
141
|
-
|
142
|
-
This is a list of people who will be covered by the plan. We
|
143
|
-
use this list to calculate the premium. You must include `age`
|
144
|
-
and can include `smoker`, which also factors into pricing in some
|
145
|
-
states.
|
146
|
-
|
147
|
-
Applicants *must* include an age. If smoker is omitted, its value is assumed
|
148
|
-
to be false.
|
149
|
-
|
150
|
-
#### Multiple Applicants
|
151
|
-
To get pricing for multiple applicants, just append multiple sets
|
152
|
-
of data to the URL with the age and smoking status of each applicant
|
153
|
-
next to each other.
|
154
|
-
|
155
|
-
For example, given two applicants - one age 32 and a non-smoker and one
|
156
|
-
age 29 and a smoker, you could use the following request
|
157
|
-
|
158
|
-
`GET /plans?zip_code=07451&fips_code=33025&applicants[][age]=32&applicants[][age]=29&applicants[][smoker]=true`
|
159
|
-
|
160
|
-
It would also be acceptible to include `applicants[][smoker]=false` after the
|
161
|
-
first applicant's age.
|
162
|
-
|
163
|
-
### Providers
|
164
|
-
|
165
|
-
We identify Providers (Doctors) by their National Practitioner
|
166
|
-
Index number (NPI). If you pass a list of Providers, keyed by
|
167
|
-
their NPI number, we will return a list of which Providers are
|
168
|
-
in and out of network for each plan returned.
|
169
|
-
|
170
|
-
For example, if we had two providers with the NPI numbers `12345` and `23456`
|
171
|
-
you would make the following request
|
172
|
-
|
173
|
-
`GET /plans?zip_code=07451&fips_code=33025&providers[][npi]=12345&providers[][npi]=23456`
|
174
|
-
|
175
|
-
### Enrollment Date
|
176
|
-
|
177
|
-
To calculate plan pricing and availability, we default to the current date
|
178
|
-
as the enrollment date. To specify a date in the future (or the past), pass
|
179
|
-
a string with the format `YYYY-MM-DD` in the `enrollment_date` parameter.
|
180
|
-
|
181
|
-
`GET /plans?zip_code=07451&fips_code=33025&enrollment_date=2016-01-01`
|
182
|
-
|
183
|
-
### Subsidy
|
184
|
-
|
185
|
-
On-marketplace plans are eligible for a subsidy based on the
|
186
|
-
`household_size` and `household_income` of the applicants. If you
|
187
|
-
pass those values, we will calculate the `subsidized_premium`
|
188
|
-
and return it for each plan. If no values are provided, the
|
189
|
-
`subsidized_premium` will be the same as the `premium`
|
190
|
-
|
191
|
-
`GET /plans?zip_code=07451&fips_code=33025&household_size=4&household_income=40000`
|
192
|
-
|
193
|
-
|
194
|
-
### Sorting
|
195
|
-
|
196
|
-
Plans can be sorted by the `premium`, `carrier_name`, `level`, and `plan_type` fields,
|
197
|
-
by either ascending (as `asc`) or descending (as `dsc) sort under the `sort` field.
|
198
|
-
|
199
|
-
For example, to sort plans by level, the sort parameter would be `level:asc`.
|
200
|
-
|
142
|
+
# ### Location Information Searching for a set of plans requires a `zip_code` and `fips_code` code. These are used to determine pricing and availabity of health plans. This endpoint is paginated. Optionally, you may provide a list of Applicants or Providers ### Applicants This is a list of people who will be covered by the plan. We use this list to calculate the premium. You must include `age` and can include `smoker`, which also factors into pricing in some states. Applicants *must* include an age. If smoker is omitted, its value is assumed to be false. #### Multiple Applicants To get pricing for multiple applicants, just append multiple sets of data to the URL with the age and smoking status of each applicant next to each other. For example, given two applicants - one age 32 and a non-smoker and one age 29 and a smoker, you could use the following request `GET /plans?zip_code=07451&fips_code=33025&applicants[][age]=32&applicants[][age]=29&applicants[][smoker]=true` It would also be acceptible to include `applicants[][smoker]=false` after the first applicant's age. ### Providers We identify Providers (Doctors) by their National Practitioner Index number (NPI). If you pass a list of Providers, keyed by their NPI number, we will return a list of which Providers are in and out of network for each plan returned. For example, if we had two providers with the NPI numbers `12345` and `23456` you would make the following request `GET /plans?zip_code=07451&fips_code=33025&providers[][npi]=12345&providers[][npi]=23456` ### Enrollment Date To calculate plan pricing and availability, we default to the current date as the enrollment date. To specify a date in the future (or the past), pass a string with the format `YYYY-MM-DD` in the `enrollment_date` parameter. `GET /plans?zip_code=07451&fips_code=33025&enrollment_date=2016-01-01` ### Subsidy On-marketplace plans are eligible for a subsidy based on the `household_size` and `household_income` of the applicants. If you pass those values, we will calculate the `subsidized_premium` and return it for each plan. If no values are provided, the `subsidized_premium` will be the same as the `premium` `GET /plans?zip_code=07451&fips_code=33025&household_size=4&household_income=40000` ### Sorting Plans can be sorted by the `premium`, `carrier_name`, `level`, and `plan_type` fields, by either ascending (as `asc`) or descending (as `dsc) sort under the `sort` field. For example, to sort plans by level, the sort parameter would be `level:asc`.
|
201
143
|
# @param [Hash] opts the optional parameters
|
202
144
|
# @option opts [RequestPlanFind] :body
|
203
145
|
# @return [PlanSearchResponse]
|
@@ -207,75 +149,7 @@ For example, to sort plans by level, the sort parameter would be `level:asc`.
|
|
207
149
|
end
|
208
150
|
|
209
151
|
# Find Plans
|
210
|
-
# ### Location Information
|
211
|
-
|
212
|
-
Searching for a set of plans requires a `zip_code` and `fips_code`
|
213
|
-
code. These are used to determine pricing and availabity
|
214
|
-
of health plans. This endpoint is paginated.
|
215
|
-
|
216
|
-
Optionally, you may provide a list of Applicants or Providers
|
217
|
-
|
218
|
-
### Applicants
|
219
|
-
|
220
|
-
This is a list of people who will be covered by the plan. We
|
221
|
-
use this list to calculate the premium. You must include `age`
|
222
|
-
and can include `smoker`, which also factors into pricing in some
|
223
|
-
states.
|
224
|
-
|
225
|
-
Applicants *must* include an age. If smoker is omitted, its value is assumed
|
226
|
-
to be false.
|
227
|
-
|
228
|
-
#### Multiple Applicants
|
229
|
-
To get pricing for multiple applicants, just append multiple sets
|
230
|
-
of data to the URL with the age and smoking status of each applicant
|
231
|
-
next to each other.
|
232
|
-
|
233
|
-
For example, given two applicants - one age 32 and a non-smoker and one
|
234
|
-
age 29 and a smoker, you could use the following request
|
235
|
-
|
236
|
-
`GET /plans?zip_code=07451&fips_code=33025&applicants[][age]=32&applicants[][age]=29&applicants[][smoker]=true`
|
237
|
-
|
238
|
-
It would also be acceptible to include `applicants[][smoker]=false` after the
|
239
|
-
first applicant's age.
|
240
|
-
|
241
|
-
### Providers
|
242
|
-
|
243
|
-
We identify Providers (Doctors) by their National Practitioner
|
244
|
-
Index number (NPI). If you pass a list of Providers, keyed by
|
245
|
-
their NPI number, we will return a list of which Providers are
|
246
|
-
in and out of network for each plan returned.
|
247
|
-
|
248
|
-
For example, if we had two providers with the NPI numbers `12345` and `23456`
|
249
|
-
you would make the following request
|
250
|
-
|
251
|
-
`GET /plans?zip_code=07451&fips_code=33025&providers[][npi]=12345&providers[][npi]=23456`
|
252
|
-
|
253
|
-
### Enrollment Date
|
254
|
-
|
255
|
-
To calculate plan pricing and availability, we default to the current date
|
256
|
-
as the enrollment date. To specify a date in the future (or the past), pass
|
257
|
-
a string with the format `YYYY-MM-DD` in the `enrollment_date` parameter.
|
258
|
-
|
259
|
-
`GET /plans?zip_code=07451&fips_code=33025&enrollment_date=2016-01-01`
|
260
|
-
|
261
|
-
### Subsidy
|
262
|
-
|
263
|
-
On-marketplace plans are eligible for a subsidy based on the
|
264
|
-
`household_size` and `household_income` of the applicants. If you
|
265
|
-
pass those values, we will calculate the `subsidized_premium`
|
266
|
-
and return it for each plan. If no values are provided, the
|
267
|
-
`subsidized_premium` will be the same as the `premium`
|
268
|
-
|
269
|
-
`GET /plans?zip_code=07451&fips_code=33025&household_size=4&household_income=40000`
|
270
|
-
|
271
|
-
|
272
|
-
### Sorting
|
273
|
-
|
274
|
-
Plans can be sorted by the `premium`, `carrier_name`, `level`, and `plan_type` fields,
|
275
|
-
by either ascending (as `asc`) or descending (as `dsc) sort under the `sort` field.
|
276
|
-
|
277
|
-
For example, to sort plans by level, the sort parameter would be `level:asc`.
|
278
|
-
|
152
|
+
# ### Location Information Searching for a set of plans requires a `zip_code` and `fips_code` code. These are used to determine pricing and availabity of health plans. This endpoint is paginated. Optionally, you may provide a list of Applicants or Providers ### Applicants This is a list of people who will be covered by the plan. We use this list to calculate the premium. You must include `age` and can include `smoker`, which also factors into pricing in some states. Applicants *must* include an age. If smoker is omitted, its value is assumed to be false. #### Multiple Applicants To get pricing for multiple applicants, just append multiple sets of data to the URL with the age and smoking status of each applicant next to each other. For example, given two applicants - one age 32 and a non-smoker and one age 29 and a smoker, you could use the following request `GET /plans?zip_code=07451&fips_code=33025&applicants[][age]=32&applicants[][age]=29&applicants[][smoker]=true` It would also be acceptible to include `applicants[][smoker]=false` after the first applicant's age. ### Providers We identify Providers (Doctors) by their National Practitioner Index number (NPI). If you pass a list of Providers, keyed by their NPI number, we will return a list of which Providers are in and out of network for each plan returned. For example, if we had two providers with the NPI numbers `12345` and `23456` you would make the following request `GET /plans?zip_code=07451&fips_code=33025&providers[][npi]=12345&providers[][npi]=23456` ### Enrollment Date To calculate plan pricing and availability, we default to the current date as the enrollment date. To specify a date in the future (or the past), pass a string with the format `YYYY-MM-DD` in the `enrollment_date` parameter. `GET /plans?zip_code=07451&fips_code=33025&enrollment_date=2016-01-01` ### Subsidy On-marketplace plans are eligible for a subsidy based on the `household_size` and `household_income` of the applicants. If you pass those values, we will calculate the `subsidized_premium` and return it for each plan. If no values are provided, the `subsidized_premium` will be the same as the `premium` `GET /plans?zip_code=07451&fips_code=33025&household_size=4&household_income=40000` ### Sorting Plans can be sorted by the `premium`, `carrier_name`, `level`, and `plan_type` fields, by either ascending (as `asc`) or descending (as `dsc) sort under the `sort` field. For example, to sort plans by level, the sort parameter would be `level:asc`.
|
279
153
|
# @param [Hash] opts the optional parameters
|
280
154
|
# @option opts [RequestPlanFind] :body
|
281
155
|
# @return [Array<(PlanSearchResponse, Fixnum, Hash)>] PlanSearchResponse data, response status code and response headers
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
|
-
Vericred API
|
2
|
+
#Vericred API
|
3
3
|
|
4
|
-
Vericred's API allows you to search for Health Plans that a specific doctor
|
4
|
+
#Vericred's API allows you to search for Health Plans that a specific doctor
|
5
5
|
accepts.
|
6
6
|
|
7
7
|
## Getting Started
|
@@ -37,7 +37,6 @@ namely `Total`, `Per-Page`, `Link`, and `Page` as described in [RFC-5988](https:
|
|
37
37
|
|
38
38
|
For example, to display 5 results per page and view the second page of a
|
39
39
|
`GET` to `/networks`, your final request would be `GET /networks?....page=2&per_page=5`.
|
40
|
-
```
|
41
40
|
|
42
41
|
## Sideloading
|
43
42
|
|
@@ -115,6 +114,17 @@ OpenAPI spec version: 1.0.0
|
|
115
114
|
|
116
115
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
117
116
|
|
117
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
118
|
+
you may not use this file except in compliance with the License.
|
119
|
+
You may obtain a copy of the License at
|
120
|
+
|
121
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
122
|
+
|
123
|
+
Unless required by applicable law or agreed to in writing, software
|
124
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
125
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
126
|
+
See the License for the specific language governing permissions and
|
127
|
+
limitations under the License.
|
118
128
|
|
119
129
|
=end
|
120
130
|
|
@@ -171,7 +181,7 @@ module VericredClient
|
|
171
181
|
|
172
182
|
# http body (model)
|
173
183
|
post_body = nil
|
174
|
-
|
184
|
+
auth_names = ['Vericred-Api-Key']
|
175
185
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
176
186
|
:header_params => header_params,
|
177
187
|
:query_params => query_params,
|
@@ -186,20 +196,7 @@ module VericredClient
|
|
186
196
|
end
|
187
197
|
|
188
198
|
# Find Providers
|
189
|
-
# All `Provider` searches require a `zip_code`, which we use for weighting
|
190
|
-
the search results to favor `Provider`s that are near the user. For example,
|
191
|
-
we would want "Dr. John Smith" who is 5 miles away to appear before
|
192
|
-
"Dr. John Smith" who is 100 miles away.
|
193
|
-
|
194
|
-
The weighting also allows for non-exact matches. In our prior example, we
|
195
|
-
would want "Dr. Jon Smith" who is 2 miles away to appear before the exact
|
196
|
-
match "Dr. John Smith" who is 100 miles away because it is more likely that
|
197
|
-
the user just entered an incorrect name.
|
198
|
-
|
199
|
-
The free text search also supports Specialty name search and "body part"
|
200
|
-
Specialty name search. So, searching "John Smith nose" would return
|
201
|
-
"Dr. John Smith", the ENT Specialist before "Dr. John Smith" the Internist.
|
202
|
-
|
199
|
+
# All `Provider` searches require a `zip_code`, which we use for weighting the search results to favor `Provider`s that are near the user. For example, we would want \"Dr. John Smith\" who is 5 miles away 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.
|
203
200
|
# @param [Hash] opts the optional parameters
|
204
201
|
# @option opts [RequestProvidersSearch] :body
|
205
202
|
# @return [ProvidersSearchResponse]
|
@@ -209,20 +206,7 @@ Specialty name search. So, searching "John Smith nose" would return
|
|
209
206
|
end
|
210
207
|
|
211
208
|
# Find Providers
|
212
|
-
# All `Provider` searches require a `zip_code`, which we use for weighting
|
213
|
-
the search results to favor `Provider`s that are near the user. For example,
|
214
|
-
we would want "Dr. John Smith" who is 5 miles away to appear before
|
215
|
-
"Dr. John Smith" who is 100 miles away.
|
216
|
-
|
217
|
-
The weighting also allows for non-exact matches. In our prior example, we
|
218
|
-
would want "Dr. Jon Smith" who is 2 miles away to appear before the exact
|
219
|
-
match "Dr. John Smith" who is 100 miles away because it is more likely that
|
220
|
-
the user just entered an incorrect name.
|
221
|
-
|
222
|
-
The free text search also supports Specialty name search and "body part"
|
223
|
-
Specialty name search. So, searching "John Smith nose" would return
|
224
|
-
"Dr. John Smith", the ENT Specialist before "Dr. John Smith" the Internist.
|
225
|
-
|
209
|
+
# All `Provider` searches require a `zip_code`, which we use for weighting the search results to favor `Provider`s that are near the user. For example, we would want \"Dr. John Smith\" who is 5 miles away 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.
|
226
210
|
# @param [Hash] opts the optional parameters
|
227
211
|
# @option opts [RequestProvidersSearch] :body
|
228
212
|
# @return [Array<(ProvidersSearchResponse, Fixnum, Hash)>] ProvidersSearchResponse data, response status code and response headers
|