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
@@ -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,12 +114,24 @@ 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
|
|
121
131
|
require 'date'
|
122
132
|
|
123
133
|
module VericredClient
|
134
|
+
|
124
135
|
class ZipCountyBulk
|
125
136
|
# Primary key
|
126
137
|
attr_accessor :id
|
@@ -134,6 +145,7 @@ module VericredClient
|
|
134
145
|
# Foreign key for zip code (zip code)
|
135
146
|
attr_accessor :zip_code_id
|
136
147
|
|
148
|
+
|
137
149
|
# Attribute mapping from ruby-style variable name to JSON key.
|
138
150
|
def self.attribute_map
|
139
151
|
{
|
@@ -190,10 +202,11 @@ module VericredClient
|
|
190
202
|
# Check to see if the all the properties in the model are valid
|
191
203
|
# @return true if the model is valid
|
192
204
|
def valid?
|
205
|
+
return true
|
193
206
|
end
|
194
207
|
|
195
208
|
# Checks equality by comparing each attribute.
|
196
|
-
# @param [Object] Object to be compared
|
209
|
+
# @param [Object] Object to be compared
|
197
210
|
def ==(o)
|
198
211
|
return true if self.equal?(o)
|
199
212
|
self.class == o.class &&
|
@@ -204,7 +217,7 @@ module VericredClient
|
|
204
217
|
end
|
205
218
|
|
206
219
|
# @see the `==` method
|
207
|
-
# @param [Object] Object to be compared
|
220
|
+
# @param [Object] Object to be compared
|
208
221
|
def eql?(o)
|
209
222
|
self == o
|
210
223
|
end
|
@@ -303,7 +316,7 @@ module VericredClient
|
|
303
316
|
|
304
317
|
# Outputs non-array value in the form of hash
|
305
318
|
# For object, use to_hash. Otherwise, just return the value
|
306
|
-
# @param [Object] value Any valid value
|
319
|
+
# @param [Object] value Any valid value
|
307
320
|
# @return [Hash] Returns the value in the form of hash
|
308
321
|
def _to_hash(value)
|
309
322
|
if value.is_a?(Array)
|
@@ -320,4 +333,5 @@ module VericredClient
|
|
320
333
|
end
|
321
334
|
|
322
335
|
end
|
336
|
+
|
323
337
|
end
|
@@ -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,12 +114,24 @@ 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
|
|
121
131
|
require 'date'
|
122
132
|
|
123
133
|
module VericredClient
|
134
|
+
|
124
135
|
class ZipCountyResponse
|
125
136
|
# Counties that exist in the provided zip prefix.
|
126
137
|
attr_accessor :counties
|
@@ -134,6 +145,7 @@ module VericredClient
|
|
134
145
|
# ZipCounty data
|
135
146
|
attr_accessor :zip_county
|
136
147
|
|
148
|
+
|
137
149
|
# Attribute mapping from ruby-style variable name to JSON key.
|
138
150
|
def self.attribute_map
|
139
151
|
{
|
@@ -196,10 +208,11 @@ module VericredClient
|
|
196
208
|
# Check to see if the all the properties in the model are valid
|
197
209
|
# @return true if the model is valid
|
198
210
|
def valid?
|
211
|
+
return true
|
199
212
|
end
|
200
213
|
|
201
214
|
# Checks equality by comparing each attribute.
|
202
|
-
# @param [Object] Object to be compared
|
215
|
+
# @param [Object] Object to be compared
|
203
216
|
def ==(o)
|
204
217
|
return true if self.equal?(o)
|
205
218
|
self.class == o.class &&
|
@@ -210,7 +223,7 @@ module VericredClient
|
|
210
223
|
end
|
211
224
|
|
212
225
|
# @see the `==` method
|
213
|
-
# @param [Object] Object to be compared
|
226
|
+
# @param [Object] Object to be compared
|
214
227
|
def eql?(o)
|
215
228
|
self == o
|
216
229
|
end
|
@@ -309,7 +322,7 @@ module VericredClient
|
|
309
322
|
|
310
323
|
# Outputs non-array value in the form of hash
|
311
324
|
# For object, use to_hash. Otherwise, just return the value
|
312
|
-
# @param [Object] value Any valid value
|
325
|
+
# @param [Object] value Any valid value
|
313
326
|
# @return [Hash] Returns the value in the form of hash
|
314
327
|
def _to_hash(value)
|
315
328
|
if value.is_a?(Array)
|
@@ -326,4 +339,5 @@ module VericredClient
|
|
326
339
|
end
|
327
340
|
|
328
341
|
end
|
342
|
+
|
329
343
|
end
|
@@ -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,9 +114,20 @@ 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
|
|
121
131
|
module VericredClient
|
122
|
-
VERSION = "0.0.
|
132
|
+
VERSION = "0.0.8"
|
123
133
|
end
|
data/lib/vericred_client.rb
CHANGED
@@ -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
|
|
data/spec/api/drugs_api_spec.rb
CHANGED
@@ -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
|
|
@@ -136,15 +146,13 @@ describe 'DrugsApi' do
|
|
136
146
|
|
137
147
|
describe 'test an instance of DrugsApi' do
|
138
148
|
it 'should create an instact of DrugsApi' do
|
139
|
-
@instance.
|
149
|
+
expect(@instance).to be_instance_of(VericredClient::DrugsApi)
|
140
150
|
end
|
141
151
|
end
|
142
152
|
|
143
153
|
# unit tests for get_drug_coverages
|
144
154
|
# Search for DrugCoverages
|
145
|
-
# Drug Coverages are the specific tier level, quantity limit, prior
|
146
|
-
authorization and step therapy for a given Drug/Plan combination. This endpoint
|
147
|
-
returns all DrugCoverages for a given Drug
|
155
|
+
# 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
|
148
156
|
# @param ndc_package_code NDC package code
|
149
157
|
# @param audience Two-character state code
|
150
158
|
# @param state_code Two-character state code
|
@@ -152,11 +160,7 @@ returns all DrugCoverages for a given Drug
|
|
152
160
|
# @return [DrugCoverageResponse]
|
153
161
|
describe 'get_drug_coverages test' do
|
154
162
|
it "should work" do
|
155
|
-
# assertion here
|
156
|
-
# should be_a()
|
157
|
-
# should be_nil
|
158
|
-
# should ==
|
159
|
-
# should_not ==
|
163
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
160
164
|
end
|
161
165
|
end
|
162
166
|
|
@@ -168,11 +172,7 @@ returns all DrugCoverages for a given Drug
|
|
168
172
|
# @return [DrugSearchResponse]
|
169
173
|
describe 'list_drugs test' do
|
170
174
|
it "should work" do
|
171
|
-
# assertion here
|
172
|
-
# should be_a()
|
173
|
-
# should be_nil
|
174
|
-
# should ==
|
175
|
-
# should_not ==
|
175
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
176
176
|
end
|
177
177
|
end
|
178
178
|
|
@@ -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
|
|
@@ -136,15 +146,13 @@ describe 'NetworksApi' do
|
|
136
146
|
|
137
147
|
describe 'test an instance of NetworksApi' do
|
138
148
|
it 'should create an instact of NetworksApi' do
|
139
|
-
@instance.
|
149
|
+
expect(@instance).to be_instance_of(VericredClient::NetworksApi)
|
140
150
|
end
|
141
151
|
end
|
142
152
|
|
143
153
|
# unit tests for list_networks
|
144
154
|
# Networks
|
145
|
-
# A network is a list of the doctors, other health care providers,
|
146
|
-
and hospitals that a plan has contracted with to provide medical care to
|
147
|
-
its members. This endpoint is paginated.
|
155
|
+
# 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.
|
148
156
|
# @param carrier_id Carrier HIOS Issuer ID
|
149
157
|
# @param [Hash] opts the optional parameters
|
150
158
|
# @option opts [Integer] :page Page of paginated response
|
@@ -152,11 +160,7 @@ its members. This endpoint is paginated.
|
|
152
160
|
# @return [NetworkSearchResponse]
|
153
161
|
describe 'list_networks test' do
|
154
162
|
it "should work" do
|
155
|
-
# assertion here
|
156
|
-
# should be_a()
|
157
|
-
# should be_nil
|
158
|
-
# should ==
|
159
|
-
# should_not ==
|
163
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
160
164
|
end
|
161
165
|
end
|
162
166
|
|
data/spec/api/plans_api_spec.rb
CHANGED
@@ -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
|
|
@@ -136,91 +146,19 @@ describe 'PlansApi' do
|
|
136
146
|
|
137
147
|
describe 'test an instance of PlansApi' do
|
138
148
|
it 'should create an instact of PlansApi' do
|
139
|
-
@instance.
|
149
|
+
expect(@instance).to be_instance_of(VericredClient::PlansApi)
|
140
150
|
end
|
141
151
|
end
|
142
152
|
|
143
153
|
# unit tests for find_plans
|
144
154
|
# Find Plans
|
145
|
-
# ### Location Information
|
146
|
-
|
147
|
-
Searching for a set of plans requires a `zip_code` and `fips_code`
|
148
|
-
code. These are used to determine pricing and availabity
|
149
|
-
of health plans. This endpoint is paginated.
|
150
|
-
|
151
|
-
Optionally, you may provide a list of Applicants or Providers
|
152
|
-
|
153
|
-
### Applicants
|
154
|
-
|
155
|
-
This is a list of people who will be covered by the plan. We
|
156
|
-
use this list to calculate the premium. You must include `age`
|
157
|
-
and can include `smoker`, which also factors into pricing in some
|
158
|
-
states.
|
159
|
-
|
160
|
-
Applicants *must* include an age. If smoker is omitted, its value is assumed
|
161
|
-
to be false.
|
162
|
-
|
163
|
-
#### Multiple Applicants
|
164
|
-
To get pricing for multiple applicants, just append multiple sets
|
165
|
-
of data to the URL with the age and smoking status of each applicant
|
166
|
-
next to each other.
|
167
|
-
|
168
|
-
For example, given two applicants - one age 32 and a non-smoker and one
|
169
|
-
age 29 and a smoker, you could use the following request
|
170
|
-
|
171
|
-
`GET /plans?zip_code=07451&fips_code=33025&applicants[][age]=32&applicants[][age]=29&applicants[][smoker]=true`
|
172
|
-
|
173
|
-
It would also be acceptible to include `applicants[][smoker]=false` after the
|
174
|
-
first applicant's age.
|
175
|
-
|
176
|
-
### Providers
|
177
|
-
|
178
|
-
We identify Providers (Doctors) by their National Practitioner
|
179
|
-
Index number (NPI). If you pass a list of Providers, keyed by
|
180
|
-
their NPI number, we will return a list of which Providers are
|
181
|
-
in and out of network for each plan returned.
|
182
|
-
|
183
|
-
For example, if we had two providers with the NPI numbers `12345` and `23456`
|
184
|
-
you would make the following request
|
185
|
-
|
186
|
-
`GET /plans?zip_code=07451&fips_code=33025&providers[][npi]=12345&providers[][npi]=23456`
|
187
|
-
|
188
|
-
### Enrollment Date
|
189
|
-
|
190
|
-
To calculate plan pricing and availability, we default to the current date
|
191
|
-
as the enrollment date. To specify a date in the future (or the past), pass
|
192
|
-
a string with the format `YYYY-MM-DD` in the `enrollment_date` parameter.
|
193
|
-
|
194
|
-
`GET /plans?zip_code=07451&fips_code=33025&enrollment_date=2016-01-01`
|
195
|
-
|
196
|
-
### Subsidy
|
197
|
-
|
198
|
-
On-marketplace plans are eligible for a subsidy based on the
|
199
|
-
`household_size` and `household_income` of the applicants. If you
|
200
|
-
pass those values, we will calculate the `subsidized_premium`
|
201
|
-
and return it for each plan. If no values are provided, the
|
202
|
-
`subsidized_premium` will be the same as the `premium`
|
203
|
-
|
204
|
-
`GET /plans?zip_code=07451&fips_code=33025&household_size=4&household_income=40000`
|
205
|
-
|
206
|
-
|
207
|
-
### Sorting
|
208
|
-
|
209
|
-
Plans can be sorted by the `premium`, `carrier_name`, `level`, and `plan_type` fields,
|
210
|
-
by either ascending (as `asc`) or descending (as `dsc) sort under the `sort` field.
|
211
|
-
|
212
|
-
For example, to sort plans by level, the sort parameter would be `level:asc`.
|
213
|
-
|
155
|
+
# ### 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`.
|
214
156
|
# @param [Hash] opts the optional parameters
|
215
157
|
# @option opts [RequestPlanFind] :body
|
216
158
|
# @return [PlanSearchResponse]
|
217
159
|
describe 'find_plans test' do
|
218
160
|
it "should work" do
|
219
|
-
# assertion here
|
220
|
-
# should be_a()
|
221
|
-
# should be_nil
|
222
|
-
# should ==
|
223
|
-
# should_not ==
|
161
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
224
162
|
end
|
225
163
|
end
|
226
164
|
|