vericred_client 0.0.21 → 0.0.23
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 +204 -8
- data/docs/CarrierGroupsApi.md +3 -3
- data/docs/CarrierVerificationPlansApi.md +1 -1
- data/docs/CarriersApi.md +3 -3
- data/docs/DentalPlansApi.md +4 -4
- data/docs/DrugCoveragesApi.md +4 -4
- data/docs/DrugPackagesApi.md +2 -2
- data/docs/DrugsApi.md +2 -2
- data/docs/EmbargoesApi.md +3 -3
- data/docs/FormulariesApi.md +3 -3
- data/docs/IssuersApi.md +3 -3
- data/docs/MedicalPlansApi.md +3 -3
- data/docs/NetworkSizesApi.md +2 -2
- data/docs/NetworksApi.md +1 -1
- data/docs/PlansApi.md +3 -3
- data/docs/ProviderNotificationSubscriptionsApi.md +2 -2
- data/docs/ProvidersApi.md +1 -1
- data/docs/RatesApi.md +3 -3
- data/docs/VisionPlansApi.md +4 -4
- data/docs/ZipCountiesApi.md +2 -2
- data/lib/vericred_client/api/carrier_groups_api.rb +226 -17
- data/lib/vericred_client/api/carrier_verification_plans_api.rb +217 -8
- data/lib/vericred_client/api/carriers_api.rb +226 -17
- data/lib/vericred_client/api/dental_plans_api.rb +234 -23
- data/lib/vericred_client/api/drug_coverages_api.rb +221 -12
- data/lib/vericred_client/api/drug_packages_api.rb +218 -11
- data/lib/vericred_client/api/drugs_api.rb +217 -8
- data/lib/vericred_client/api/embargoes_api.rb +226 -17
- data/lib/vericred_client/api/formularies_api.rb +216 -5
- data/lib/vericred_client/api/issuers_api.rb +226 -17
- data/lib/vericred_client/api/medical_plans_api.rb +236 -21
- data/lib/vericred_client/api/network_sizes_api.rb +225 -14
- data/lib/vericred_client/api/networks_api.rb +234 -23
- data/lib/vericred_client/api/plans_api.rb +244 -27
- data/lib/vericred_client/api/provider_notification_subscriptions_api.rb +233 -12
- data/lib/vericred_client/api/providers_api.rb +246 -25
- data/lib/vericred_client/api/rates_api.rb +226 -17
- data/lib/vericred_client/api/vision_plans_api.rb +234 -23
- data/lib/vericred_client/api/zip_counties_api.rb +229 -10
- data/lib/vericred_client/api_client.rb +257 -69
- data/lib/vericred_client/api_error.rb +214 -9
- data/lib/vericred_client/configuration.rb +209 -8
- data/lib/vericred_client/models/aca_plan.rb +211 -4
- data/lib/vericred_client/models/aca_plan2018.rb +211 -4
- data/lib/vericred_client/models/aca_plan2018_search_response.rb +211 -4
- data/lib/vericred_client/models/aca_plan2018_search_result.rb +211 -4
- data/lib/vericred_client/models/aca_plan2018_show_response.rb +211 -4
- data/lib/vericred_client/models/aca_plan_pre2018.rb +211 -4
- data/lib/vericred_client/models/aca_plan_pre2018_search_response.rb +211 -4
- data/lib/vericred_client/models/aca_plan_pre2018_search_result.rb +211 -4
- data/lib/vericred_client/models/aca_plan_pre2018_show_response.rb +211 -4
- data/lib/vericred_client/models/base.rb +211 -4
- data/lib/vericred_client/models/base_plan_search_response.rb +211 -4
- data/lib/vericred_client/models/carrier.rb +211 -4
- data/lib/vericred_client/models/carrier_group_request.rb +211 -4
- data/lib/vericred_client/models/carrier_request.rb +211 -4
- data/lib/vericred_client/models/carrier_subsidiary.rb +211 -4
- data/lib/vericred_client/models/county.rb +211 -4
- data/lib/vericred_client/models/county_bulk.rb +211 -4
- data/lib/vericred_client/models/dental_plan.rb +211 -4
- data/lib/vericred_client/models/dental_plan_benefits.rb +211 -4
- data/lib/vericred_client/models/dental_plan_search_applicant.rb +211 -4
- data/lib/vericred_client/models/dental_plan_search_request.rb +211 -4
- data/lib/vericred_client/models/dental_plan_search_response.rb +211 -4
- data/lib/vericred_client/models/dental_plan_show_response.rb +211 -4
- data/lib/vericred_client/models/dental_plan_update.rb +211 -4
- data/lib/vericred_client/models/dental_plan_update_request.rb +211 -4
- data/lib/vericred_client/models/drug.rb +211 -4
- data/lib/vericred_client/models/drug_coverage.rb +211 -4
- data/lib/vericred_client/models/drug_coverage_response.rb +211 -4
- data/lib/vericred_client/models/drug_package.rb +211 -4
- data/lib/vericred_client/models/drug_search_response.rb +211 -4
- data/lib/vericred_client/models/embargo_request.rb +211 -4
- data/lib/vericred_client/models/formulary.rb +211 -4
- data/lib/vericred_client/models/formulary_drug_package_response.rb +211 -4
- data/lib/vericred_client/models/formulary_response.rb +211 -4
- data/lib/vericred_client/models/issuer_request.rb +211 -4
- data/lib/vericred_client/models/medical_plan_benefits.rb +211 -4
- data/lib/vericred_client/models/medical_plan_update.rb +211 -4
- data/lib/vericred_client/models/medical_plan_update_request.rb +211 -4
- data/lib/vericred_client/models/meta.rb +211 -4
- data/lib/vericred_client/models/meta_plan_search_response.rb +211 -4
- data/lib/vericred_client/models/network.rb +211 -4
- data/lib/vericred_client/models/network_comparison.rb +211 -4
- data/lib/vericred_client/models/network_comparison_request.rb +211 -4
- data/lib/vericred_client/models/network_comparison_response.rb +211 -4
- data/lib/vericred_client/models/network_details.rb +211 -4
- data/lib/vericred_client/models/network_details_response.rb +211 -4
- data/lib/vericred_client/models/network_search_response.rb +211 -4
- data/lib/vericred_client/models/network_size.rb +211 -4
- data/lib/vericred_client/models/notification_subscription.rb +211 -4
- data/lib/vericred_client/models/notification_subscription_response.rb +211 -4
- data/lib/vericred_client/models/plan.rb +211 -4
- data/lib/vericred_client/models/plan_county.rb +211 -4
- data/lib/vericred_client/models/plan_county_bulk.rb +211 -4
- data/lib/vericred_client/models/plan_deleted.rb +211 -4
- data/lib/vericred_client/models/plan_identifier.rb +211 -4
- data/lib/vericred_client/models/plan_medicare.rb +211 -4
- data/lib/vericred_client/models/plan_medicare_bulk.rb +211 -4
- data/lib/vericred_client/models/plan_pricing_medicare.rb +211 -4
- data/lib/vericred_client/models/plan_search_response.rb +211 -4
- data/lib/vericred_client/models/plan_show_response.rb +211 -4
- data/lib/vericred_client/models/provider.rb +211 -4
- data/lib/vericred_client/models/provider_details.rb +211 -4
- data/lib/vericred_client/models/provider_geocode.rb +211 -4
- data/lib/vericred_client/models/provider_network_event_notification.rb +211 -4
- data/lib/vericred_client/models/provider_show_response.rb +211 -4
- data/lib/vericred_client/models/providers_geocode_response.rb +211 -4
- data/lib/vericred_client/models/providers_search_response.rb +211 -4
- data/lib/vericred_client/models/rate_request.rb +211 -4
- data/lib/vericred_client/models/rate_search.rb +211 -4
- data/lib/vericred_client/models/rating_area.rb +211 -4
- data/lib/vericred_client/models/request_plan_find.rb +211 -4
- data/lib/vericred_client/models/request_plan_find_applicant.rb +211 -4
- data/lib/vericred_client/models/request_plan_find_carrier_verification.rb +211 -4
- data/lib/vericred_client/models/request_plan_find_drug_package.rb +211 -4
- data/lib/vericred_client/models/request_plan_find_provider.rb +211 -4
- data/lib/vericred_client/models/request_provider_notification_subscription.rb +211 -4
- data/lib/vericred_client/models/request_providers_search.rb +211 -4
- data/lib/vericred_client/models/request_rates_search.rb +211 -4
- data/lib/vericred_client/models/response_rates_search.rb +211 -4
- data/lib/vericred_client/models/rx_cui_identifier.rb +211 -4
- data/lib/vericred_client/models/rx_cui_identifier_search_response.rb +211 -4
- data/lib/vericred_client/models/service_area.rb +211 -4
- data/lib/vericred_client/models/service_area_zip_county.rb +211 -4
- data/lib/vericred_client/models/state.rb +211 -4
- data/lib/vericred_client/models/state_network_size_request.rb +211 -4
- data/lib/vericred_client/models/state_network_size_response.rb +211 -4
- data/lib/vericred_client/models/vision_plan.rb +211 -4
- data/lib/vericred_client/models/vision_plan_benefits.rb +211 -4
- data/lib/vericred_client/models/vision_plan_search_applicant.rb +211 -4
- data/lib/vericred_client/models/vision_plan_search_request.rb +211 -4
- data/lib/vericred_client/models/vision_plan_search_response.rb +211 -4
- data/lib/vericred_client/models/vision_plan_show_response.rb +211 -4
- data/lib/vericred_client/models/vision_plan_update.rb +211 -4
- data/lib/vericred_client/models/vision_plan_update_request.rb +211 -4
- data/lib/vericred_client/models/zip_code.rb +211 -4
- data/lib/vericred_client/models/zip_counties_response.rb +211 -4
- data/lib/vericred_client/models/zip_county.rb +211 -4
- data/lib/vericred_client/models/zip_county_bulk.rb +211 -4
- data/lib/vericred_client/models/zip_county_response.rb +211 -4
- data/lib/vericred_client/version.rb +210 -3
- data/lib/vericred_client.rb +209 -2
- data/spec/api/carrier_groups_api_spec.rb +210 -3
- data/spec/api/carrier_verification_plans_api_spec.rb +210 -3
- data/spec/api/carriers_api_spec.rb +210 -3
- data/spec/api/dental_plans_api_spec.rb +210 -3
- data/spec/api/drug_coverages_api_spec.rb +210 -3
- data/spec/api/drug_packages_api_spec.rb +210 -3
- data/spec/api/drugs_api_spec.rb +210 -3
- data/spec/api/embargoes_api_spec.rb +210 -3
- data/spec/api/formularies_api_spec.rb +210 -3
- data/spec/api/issuers_api_spec.rb +210 -3
- data/spec/api/medical_plans_api_spec.rb +210 -3
- data/spec/api/network_sizes_api_spec.rb +210 -3
- data/spec/api/networks_api_spec.rb +210 -3
- data/spec/api/plans_api_spec.rb +210 -3
- data/spec/api/provider_notification_subscriptions_api_spec.rb +210 -3
- data/spec/api/providers_api_spec.rb +210 -3
- data/spec/api/rates_api_spec.rb +210 -3
- data/spec/api/vision_plans_api_spec.rb +210 -3
- data/spec/api/zip_counties_api_spec.rb +210 -3
- data/spec/api_client_spec.rb +212 -26
- data/spec/configuration_spec.rb +212 -5
- data/spec/models/aca_plan2018_search_response_spec.rb +210 -3
- data/spec/models/aca_plan2018_search_result_spec.rb +210 -3
- data/spec/models/aca_plan2018_show_response_spec.rb +210 -3
- data/spec/models/aca_plan2018_spec.rb +210 -3
- data/spec/models/aca_plan_pre2018_search_response_spec.rb +210 -3
- data/spec/models/aca_plan_pre2018_search_result_spec.rb +210 -3
- data/spec/models/aca_plan_pre2018_show_response_spec.rb +210 -3
- data/spec/models/aca_plan_pre2018_spec.rb +210 -3
- data/spec/models/aca_plan_spec.rb +210 -3
- data/spec/models/base_plan_search_response_spec.rb +210 -3
- data/spec/models/base_spec.rb +210 -3
- data/spec/models/carrier_group_request_spec.rb +210 -3
- data/spec/models/carrier_request_spec.rb +210 -3
- data/spec/models/carrier_spec.rb +210 -3
- data/spec/models/carrier_subsidiary_spec.rb +210 -3
- data/spec/models/county_bulk_spec.rb +210 -3
- data/spec/models/county_spec.rb +210 -3
- data/spec/models/dental_plan_benefits_spec.rb +210 -3
- data/spec/models/dental_plan_search_applicant_spec.rb +210 -3
- data/spec/models/dental_plan_search_request_spec.rb +210 -3
- data/spec/models/dental_plan_search_response_spec.rb +210 -3
- data/spec/models/dental_plan_show_response_spec.rb +210 -3
- data/spec/models/dental_plan_spec.rb +210 -3
- data/spec/models/dental_plan_update_request_spec.rb +210 -3
- data/spec/models/dental_plan_update_spec.rb +210 -3
- data/spec/models/drug_coverage_response_spec.rb +210 -3
- data/spec/models/drug_coverage_spec.rb +210 -3
- data/spec/models/drug_package_spec.rb +210 -3
- data/spec/models/drug_search_response_spec.rb +210 -3
- data/spec/models/drug_spec.rb +210 -3
- data/spec/models/embargo_request_spec.rb +210 -3
- data/spec/models/formulary_drug_package_response_spec.rb +210 -3
- data/spec/models/formulary_response_spec.rb +210 -3
- data/spec/models/formulary_spec.rb +210 -3
- data/spec/models/issuer_request_spec.rb +210 -3
- data/spec/models/medical_plan_benefits_spec.rb +210 -3
- data/spec/models/medical_plan_update_request_spec.rb +210 -3
- data/spec/models/medical_plan_update_spec.rb +210 -3
- data/spec/models/meta_plan_search_response_spec.rb +210 -3
- data/spec/models/meta_spec.rb +210 -3
- data/spec/models/network_comparison_request_spec.rb +210 -3
- data/spec/models/network_comparison_response_spec.rb +210 -3
- data/spec/models/network_comparison_spec.rb +210 -3
- data/spec/models/network_details_response_spec.rb +210 -3
- data/spec/models/network_details_spec.rb +210 -3
- data/spec/models/network_search_response_spec.rb +210 -3
- data/spec/models/network_size_spec.rb +210 -3
- data/spec/models/network_spec.rb +210 -3
- data/spec/models/notification_subscription_response_spec.rb +210 -3
- data/spec/models/notification_subscription_spec.rb +210 -3
- data/spec/models/plan_county_bulk_spec.rb +210 -3
- data/spec/models/plan_county_spec.rb +210 -3
- data/spec/models/plan_deleted_spec.rb +210 -3
- data/spec/models/plan_identifier_spec.rb +210 -3
- data/spec/models/plan_medicare_bulk_spec.rb +210 -3
- data/spec/models/plan_medicare_spec.rb +210 -3
- data/spec/models/plan_pricing_medicare_spec.rb +210 -3
- data/spec/models/plan_search_response_spec.rb +210 -3
- data/spec/models/plan_show_response_spec.rb +210 -3
- data/spec/models/plan_spec.rb +210 -3
- data/spec/models/provider_details_spec.rb +210 -3
- data/spec/models/provider_geocode_spec.rb +210 -3
- data/spec/models/provider_network_event_notification_spec.rb +210 -3
- data/spec/models/provider_show_response_spec.rb +210 -3
- data/spec/models/provider_spec.rb +210 -3
- data/spec/models/providers_geocode_response_spec.rb +210 -3
- data/spec/models/providers_search_response_spec.rb +210 -3
- data/spec/models/rate_request_spec.rb +210 -3
- data/spec/models/rate_search_spec.rb +210 -3
- data/spec/models/rating_area_spec.rb +210 -3
- data/spec/models/request_plan_find_applicant_spec.rb +210 -3
- data/spec/models/request_plan_find_carrier_verification_spec.rb +210 -3
- data/spec/models/request_plan_find_drug_package_spec.rb +210 -3
- data/spec/models/request_plan_find_provider_spec.rb +210 -3
- data/spec/models/request_plan_find_spec.rb +210 -3
- data/spec/models/request_provider_notification_subscription_spec.rb +210 -3
- data/spec/models/request_providers_search_spec.rb +210 -3
- data/spec/models/request_rates_search_spec.rb +210 -3
- data/spec/models/response_rates_search_spec.rb +210 -3
- data/spec/models/rx_cui_identifier_search_response_spec.rb +210 -3
- data/spec/models/rx_cui_identifier_spec.rb +210 -3
- data/spec/models/service_area_spec.rb +210 -3
- data/spec/models/service_area_zip_county_spec.rb +210 -3
- data/spec/models/state_network_size_request_spec.rb +210 -3
- data/spec/models/state_network_size_response_spec.rb +210 -3
- data/spec/models/state_spec.rb +210 -3
- data/spec/models/vision_plan_benefits_spec.rb +210 -3
- data/spec/models/vision_plan_search_applicant_spec.rb +210 -3
- data/spec/models/vision_plan_search_request_spec.rb +210 -3
- data/spec/models/vision_plan_search_response_spec.rb +210 -3
- data/spec/models/vision_plan_show_response_spec.rb +210 -3
- data/spec/models/vision_plan_spec.rb +210 -3
- data/spec/models/vision_plan_update_request_spec.rb +210 -3
- data/spec/models/vision_plan_update_spec.rb +210 -3
- data/spec/models/zip_code_spec.rb +210 -3
- data/spec/models/zip_counties_response_spec.rb +210 -3
- data/spec/models/zip_county_bulk_spec.rb +210 -3
- data/spec/models/zip_county_response_spec.rb +210 -3
- data/spec/models/zip_county_spec.rb +210 -3
- data/spec/spec_helper.rb +209 -2
- data/vericred_client.gemspec +213 -6
- metadata +16 -23
- data/Gemfile +0 -7
- data/Rakefile +0 -8
data/vericred_client.gemspec
CHANGED
@@ -3,12 +3,219 @@
|
|
3
3
|
=begin
|
4
4
|
#Vericred API
|
5
5
|
|
6
|
-
#Vericred's API allows you to search for Health Plans that a specific doctor
|
6
|
+
#Vericred's API allows you to search for Health Plans that a specific doctor
|
7
|
+
accepts.
|
8
|
+
|
9
|
+
## Getting Started
|
10
|
+
|
11
|
+
Visit our [Developer Portal](https://developers.vericred.com) to
|
12
|
+
create an account.
|
13
|
+
|
14
|
+
Once you have created an account, you can create one Application for
|
15
|
+
Production and another for our Sandbox (select the appropriate Plan when
|
16
|
+
you create the Application).
|
17
|
+
|
18
|
+
## SDKs
|
19
|
+
|
20
|
+
Our API follows standard REST conventions, so you can use any HTTP client
|
21
|
+
to integrate with us. You will likely find it easier to use one of our
|
22
|
+
[autogenerated SDKs](https://github.com/vericred/?query=vericred-),
|
23
|
+
which we make available for several common programming languages.
|
24
|
+
|
25
|
+
## Authentication
|
26
|
+
|
27
|
+
To authenticate, pass the API Key you created in the Developer Portal as
|
28
|
+
a `Vericred-Api-Key` header.
|
29
|
+
|
30
|
+
`curl -H 'Vericred-Api-Key: YOUR_KEY' "https://api.vericred.com/providers?search_term=Foo&zip_code=11215"`
|
31
|
+
|
32
|
+
## Versioning
|
33
|
+
|
34
|
+
Vericred's API default to the latest version. However, if you need a specific
|
35
|
+
version, you can request it with an `Accept-Version` header.
|
36
|
+
|
37
|
+
The current version is `v3`. Previous versions are `v1` and `v2`.
|
38
|
+
|
39
|
+
`curl -H 'Vericred-Api-Key: YOUR_KEY' -H 'Accept-Version: v2' "https://api.vericred.com/providers?search_term=Foo&zip_code=11215"`
|
40
|
+
|
41
|
+
## Pagination
|
42
|
+
|
43
|
+
Endpoints that accept `page` and `per_page` parameters are paginated. They expose
|
44
|
+
four additional fields that contain data about your position in the response,
|
45
|
+
namely `Total`, `Per-Page`, `Link`, and `Page` as described in [RFC-5988](https://tools.ietf.org/html/rfc5988).
|
46
|
+
|
47
|
+
For example, to display 5 results per page and view the second page of a
|
48
|
+
`GET` to `/networks`, your final request would be `GET /networks?....page=2&per_page=5`.
|
49
|
+
|
50
|
+
## Sideloading
|
51
|
+
|
52
|
+
When we return multiple levels of an object graph (e.g. `Provider`s and their `State`s
|
53
|
+
we sideload the associated data. In this example, we would provide an Array of
|
54
|
+
`State`s and a `state_id` for each provider. This is done primarily to reduce the
|
55
|
+
payload size since many of the `Provider`s will share a `State`
|
56
|
+
|
57
|
+
```
|
58
|
+
{
|
59
|
+
providers: [{ id: 1, state_id: 1}, { id: 2, state_id: 1 }],
|
60
|
+
states: [{ id: 1, code: 'NY' }]
|
61
|
+
}
|
62
|
+
```
|
63
|
+
|
64
|
+
If you need the second level of the object graph, you can just match the
|
65
|
+
corresponding id.
|
66
|
+
|
67
|
+
## Selecting specific data
|
68
|
+
|
69
|
+
All endpoints allow you to specify which fields you would like to return.
|
70
|
+
This allows you to limit the response to contain only the data you need.
|
71
|
+
|
72
|
+
For example, let's take a request that returns the following JSON by default
|
73
|
+
|
74
|
+
```
|
75
|
+
{
|
76
|
+
provider: {
|
77
|
+
id: 1,
|
78
|
+
name: 'John',
|
79
|
+
phone: '1234567890',
|
80
|
+
field_we_dont_care_about: 'value_we_dont_care_about'
|
81
|
+
},
|
82
|
+
states: [{
|
83
|
+
id: 1,
|
84
|
+
name: 'New York',
|
85
|
+
code: 'NY',
|
86
|
+
field_we_dont_care_about: 'value_we_dont_care_about'
|
87
|
+
}]
|
88
|
+
}
|
89
|
+
```
|
90
|
+
|
91
|
+
To limit our results to only return the fields we care about, we specify the
|
92
|
+
`select` query string parameter for the corresponding fields in the JSON
|
93
|
+
document.
|
94
|
+
|
95
|
+
In this case, we want to select `name` and `phone` from the `provider` key,
|
96
|
+
so we would add the parameters `select=provider.name,provider.phone`.
|
97
|
+
We also want the `name` and `code` from the `states` key, so we would
|
98
|
+
add the parameters `select=states.name,states.code`. The id field of
|
99
|
+
each document is always returned whether or not it is requested.
|
100
|
+
|
101
|
+
Our final request would be `GET /providers/12345?select=provider.name,provider.phone,states.name,states.code`
|
102
|
+
|
103
|
+
The response would be
|
104
|
+
|
105
|
+
```
|
106
|
+
{
|
107
|
+
provider: {
|
108
|
+
id: 1,
|
109
|
+
name: 'John',
|
110
|
+
phone: '1234567890'
|
111
|
+
},
|
112
|
+
states: [{
|
113
|
+
id: 1,
|
114
|
+
name: 'New York',
|
115
|
+
code: 'NY'
|
116
|
+
}]
|
117
|
+
}
|
118
|
+
```
|
119
|
+
|
120
|
+
## Benefits summary format
|
121
|
+
Benefit cost-share strings are formatted to capture:
|
122
|
+
* Network tiers
|
123
|
+
* Compound or conditional cost-share
|
124
|
+
* Limits on the cost-share
|
125
|
+
* Benefit-specific maximum out-of-pocket costs
|
126
|
+
|
127
|
+
**Example #1**
|
128
|
+
As an example, we would represent [this Summary of Benefits & Coverage](https://s3.amazonaws.com/vericred-data/SBC/2017/33602TX0780032.pdf) as:
|
129
|
+
|
130
|
+
* **Hospital stay facility fees**:
|
131
|
+
- Network Provider: `$400 copay/admit plus 20% coinsurance`
|
132
|
+
- Out-of-Network Provider: `$1,500 copay/admit plus 50% coinsurance`
|
133
|
+
- Vericred's format for this benefit: `In-Network: $400 before deductible then 20% after deductible / Out-of-Network: $1,500 before deductible then 50% after deductible`
|
134
|
+
|
135
|
+
* **Rehabilitation services:**
|
136
|
+
- Network Provider: `20% coinsurance`
|
137
|
+
- Out-of-Network Provider: `50% coinsurance`
|
138
|
+
- Limitations & Exceptions: `35 visit maximum per benefit period combined with Chiropractic care.`
|
139
|
+
- Vericred's format for this benefit: `In-Network: 20% after deductible / Out-of-Network: 50% after deductible | limit: 35 visit(s) per Benefit Period`
|
140
|
+
|
141
|
+
**Example #2**
|
142
|
+
In [this other Summary of Benefits & Coverage](https://s3.amazonaws.com/vericred-data/SBC/2017/40733CA0110568.pdf), the **specialty_drugs** cost-share has a maximum out-of-pocket for in-network pharmacies.
|
143
|
+
* **Specialty drugs:**
|
144
|
+
- Network Provider: `40% coinsurance up to a $500 maximum for up to a 30 day supply`
|
145
|
+
- Out-of-Network Provider `Not covered`
|
146
|
+
- Vericred's format for this benefit: `In-Network: 40% after deductible, up to $500 per script / Out-of-Network: 100%`
|
147
|
+
|
148
|
+
**BNF**
|
149
|
+
|
150
|
+
Here's a description of the benefits summary string, represented as a context-free grammar:
|
151
|
+
|
152
|
+
```
|
153
|
+
root ::= coverage
|
154
|
+
|
155
|
+
coverage ::= (simple_coverage | tiered_coverage) (space pipe space coverage_modifier)?
|
156
|
+
tiered_coverage ::= tier (space slash space tier)*
|
157
|
+
tier ::= tier_name colon space (tier_coverage | not_applicable)
|
158
|
+
tier_coverage ::= simple_coverage (space (then | or | and) space simple_coverage)* tier_limitation?
|
159
|
+
simple_coverage ::= (pre_coverage_limitation space)? coverage_amount (space post_coverage_limitation)? (comma? space coverage_condition)?
|
160
|
+
coverage_modifier ::= limit_condition colon space (((simple_coverage | simple_limitation) (semicolon space see_carrier_documentation)?) | see_carrier_documentation | waived_if_admitted | shared_across_tiers)
|
161
|
+
waived_if_admitted ::= ("copay" space)? "waived if admitted"
|
162
|
+
simple_limitation ::= pre_coverage_limitation space "copay applies"
|
163
|
+
tier_name ::= "In-Network-Tier-2" | "Out-of-Network" | "In-Network"
|
164
|
+
limit_condition ::= "limit" | "condition"
|
165
|
+
tier_limitation ::= comma space "up to" space (currency | (integer space time_unit plural?)) (space post_coverage_limitation)?
|
166
|
+
coverage_amount ::= currency | unlimited | included | unknown | percentage | (digits space (treatment_unit | time_unit) plural?)
|
167
|
+
pre_coverage_limitation ::= first space digits space time_unit plural?
|
168
|
+
post_coverage_limitation ::= (((then space currency) | "per condition") space)? "per" space (treatment_unit | (integer space time_unit) | time_unit) plural?
|
169
|
+
coverage_condition ::= ("before deductible" | "after deductible" | "penalty" | allowance | "in-state" | "out-of-state") (space allowance)?
|
170
|
+
allowance ::= upto_allowance | after_allowance
|
171
|
+
upto_allowance ::= "up to" space (currency space)? "allowance"
|
172
|
+
after_allowance ::= "after" space (currency space)? "allowance"
|
173
|
+
see_carrier_documentation ::= "see carrier documentation for more information"
|
174
|
+
shared_across_tiers ::= "shared across all tiers"
|
175
|
+
unknown ::= "unknown"
|
176
|
+
unlimited ::= /[uU]nlimited/
|
177
|
+
included ::= /[iI]ncluded in [mM]edical/
|
178
|
+
time_unit ::= /[hH]our/ | (((/[cC]alendar/ | /[cC]ontract/) space)? /[yY]ear/) | /[mM]onth/ | /[dD]ay/ | /[wW]eek/ | /[vV]isit/ | /[lL]ifetime/ | ((((/[bB]enefit/ plural?) | /[eE]ligibility/) space)? /[pP]eriod/)
|
179
|
+
treatment_unit ::= /[pP]erson/ | /[gG]roup/ | /[cC]ondition/ | /[sS]cript/ | /[vV]isit/ | /[eE]xam/ | /[iI]tem/ | /[sS]tay/ | /[tT]reatment/ | /[aA]dmission/ | /[eE]pisode/
|
180
|
+
comma ::= ","
|
181
|
+
colon ::= ":"
|
182
|
+
semicolon ::= ";"
|
183
|
+
pipe ::= "|"
|
184
|
+
slash ::= "/"
|
185
|
+
plural ::= "(s)" | "s"
|
186
|
+
then ::= "then" | ("," space) | space
|
187
|
+
or ::= "or"
|
188
|
+
and ::= "and"
|
189
|
+
not_applicable ::= "Not Applicable" | "N/A" | "NA"
|
190
|
+
first ::= "first"
|
191
|
+
currency ::= "$" number
|
192
|
+
percentage ::= number "%"
|
193
|
+
number ::= float | integer
|
194
|
+
float ::= digits "." digits
|
195
|
+
integer ::= /[0-9]/+ (comma_int | under_int)*
|
196
|
+
comma_int ::= ("," /[0-9]/*3) !"_"
|
197
|
+
under_int ::= ("_" /[0-9]/*3) !","
|
198
|
+
digits ::= /[0-9]/+ ("_" /[0-9]/+)*
|
199
|
+
space ::= /[ \t]/+
|
200
|
+
```
|
201
|
+
|
202
|
+
|
7
203
|
|
8
204
|
OpenAPI spec version: 1.0.0
|
9
205
|
|
10
206
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
-
|
207
|
+
|
208
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
209
|
+
you may not use this file except in compliance with the License.
|
210
|
+
You may obtain a copy of the License at
|
211
|
+
|
212
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
213
|
+
|
214
|
+
Unless required by applicable law or agreed to in writing, software
|
215
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
216
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
217
|
+
See the License for the specific language governing permissions and
|
218
|
+
limitations under the License.
|
12
219
|
|
13
220
|
=end
|
14
221
|
|
@@ -27,16 +234,16 @@ Gem::Specification.new do |s|
|
|
27
234
|
s.license = "MIT"
|
28
235
|
s.required_ruby_version = ">= 1.9"
|
29
236
|
|
30
|
-
s.add_runtime_dependency '
|
31
|
-
s.add_runtime_dependency 'json', '~>
|
237
|
+
s.add_runtime_dependency 'httpclient', '~> 2.0'
|
238
|
+
s.add_runtime_dependency 'json', '~> 1.8', '>= 1.8.3'
|
32
239
|
|
33
|
-
s.add_development_dependency 'rspec', '~> 3.
|
240
|
+
s.add_development_dependency 'rspec', '~> 3.4', '>= 3.4.0'
|
34
241
|
s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
|
35
242
|
s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
|
36
243
|
s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
|
37
244
|
s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
|
38
245
|
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
|
39
|
-
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.
|
246
|
+
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.11'
|
40
247
|
|
41
248
|
s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
|
42
249
|
s.test_files = `find spec/*`.split("\n")
|
metadata
CHANGED
@@ -1,75 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vericred_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vericred Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: httpclient
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 1.0.1
|
19
|
+
version: '2.0'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
24
|
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 1.0.1
|
26
|
+
version: '2.0'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: json
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
31
|
- - "~>"
|
38
32
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
33
|
+
version: '1.8'
|
40
34
|
- - ">="
|
41
35
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
36
|
+
version: 1.8.3
|
43
37
|
type: :runtime
|
44
38
|
prerelease: false
|
45
39
|
version_requirements: !ruby/object:Gem::Requirement
|
46
40
|
requirements:
|
47
41
|
- - "~>"
|
48
42
|
- !ruby/object:Gem::Version
|
49
|
-
version: '
|
43
|
+
version: '1.8'
|
50
44
|
- - ">="
|
51
45
|
- !ruby/object:Gem::Version
|
52
|
-
version:
|
46
|
+
version: 1.8.3
|
53
47
|
- !ruby/object:Gem::Dependency
|
54
48
|
name: rspec
|
55
49
|
requirement: !ruby/object:Gem::Requirement
|
56
50
|
requirements:
|
57
51
|
- - "~>"
|
58
52
|
- !ruby/object:Gem::Version
|
59
|
-
version: '3.
|
53
|
+
version: '3.4'
|
60
54
|
- - ">="
|
61
55
|
- !ruby/object:Gem::Version
|
62
|
-
version: 3.
|
56
|
+
version: 3.4.0
|
63
57
|
type: :development
|
64
58
|
prerelease: false
|
65
59
|
version_requirements: !ruby/object:Gem::Requirement
|
66
60
|
requirements:
|
67
61
|
- - "~>"
|
68
62
|
- !ruby/object:Gem::Version
|
69
|
-
version: '3.
|
63
|
+
version: '3.4'
|
70
64
|
- - ">="
|
71
65
|
- !ruby/object:Gem::Version
|
72
|
-
version: 3.
|
66
|
+
version: 3.4.0
|
73
67
|
- !ruby/object:Gem::Dependency
|
74
68
|
name: vcr
|
75
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -179,7 +173,7 @@ dependencies:
|
|
179
173
|
version: '0.2'
|
180
174
|
- - ">="
|
181
175
|
- !ruby/object:Gem::Version
|
182
|
-
version: 0.2.
|
176
|
+
version: 0.2.11
|
183
177
|
type: :development
|
184
178
|
prerelease: false
|
185
179
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -189,7 +183,7 @@ dependencies:
|
|
189
183
|
version: '0.2'
|
190
184
|
- - ">="
|
191
185
|
- !ruby/object:Gem::Version
|
192
|
-
version: 0.2.
|
186
|
+
version: 0.2.11
|
193
187
|
description: Autogenerated Ruby client for the Vericred API
|
194
188
|
email:
|
195
189
|
- developers@vericred.com
|
@@ -197,9 +191,8 @@ executables: []
|
|
197
191
|
extensions: []
|
198
192
|
extra_rdoc_files: []
|
199
193
|
files:
|
200
|
-
-
|
194
|
+
- LICENSE
|
201
195
|
- README.md
|
202
|
-
- Rakefile
|
203
196
|
- docs/ACAPlan.md
|
204
197
|
- docs/ACAPlan2018.md
|
205
198
|
- docs/ACAPlan2018SearchResponse.md
|
data/Gemfile
DELETED