vericred_client 0.0.11 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +92 -21
- data/docs/ACAPlan.md +96 -0
- data/docs/ACAPlan2018.md +97 -0
- data/docs/ACAPlan2018SearchResponse.md +10 -0
- data/docs/ACAPlan2018SearchResult.md +100 -0
- data/docs/ACAPlan2018ShowResponse.md +8 -0
- data/docs/ACAPlanPre2018.md +96 -0
- data/docs/ACAPlanPre2018SearchResponse.md +10 -0
- data/docs/{PlanSearchResult.md → ACAPlanPre2018SearchResult.md} +30 -11
- data/docs/ACAPlanPre2018ShowResponse.md +8 -0
- data/docs/BasePlanSearchResponse.md +9 -0
- data/docs/Carrier.md +0 -1
- data/docs/CarrierGroupRequest.md +10 -0
- data/docs/CarrierGroupsApi.md +119 -0
- data/docs/CarrierRequest.md +11 -0
- data/docs/CarrierSubsidiary.md +1 -0
- data/docs/CarrierVerificationPlansApi.md +63 -0
- data/docs/CarriersApi.md +119 -0
- data/docs/DentalPlan.md +20 -0
- data/docs/DentalPlanBenefits.md +30 -0
- data/docs/DentalPlanSearchApplicant.md +10 -0
- data/docs/DentalPlanSearchRequest.md +15 -0
- data/docs/DentalPlanSearchResponse.md +9 -0
- data/docs/DentalPlanShowResponse.md +8 -0
- data/docs/DentalPlanUpdate.md +16 -0
- data/docs/DentalPlanUpdateRequest.md +8 -0
- data/docs/DentalPlansApi.md +174 -0
- data/docs/DrugCoverage.md +1 -0
- data/docs/DrugCoverageResponse.md +1 -2
- data/docs/EmbargoRequest.md +13 -0
- data/docs/EmbargoesApi.md +119 -0
- data/docs/FormulariesApi.md +70 -0
- data/docs/IssuerRequest.md +19 -0
- data/docs/IssuersApi.md +119 -0
- data/docs/MedicalPlansApi.md +122 -0
- data/docs/{PlanSearchResponseMeta.md → MetaPlanSearchResponse.md} +2 -1
- data/docs/NetworkComparison.md +13 -0
- data/docs/NetworkComparisonRequest.md +10 -0
- data/docs/NetworkComparisonResponse.md +9 -0
- data/docs/NetworksApi.md +58 -0
- data/docs/NotificationSubscription.md +8 -0
- data/docs/NotificationSubscriptionResponse.md +8 -0
- data/docs/Plan.md +2 -61
- data/docs/PlanDeleted.md +7 -0
- data/docs/PlanIdentifier.md +9 -0
- data/docs/PlanMedicare.md +19 -0
- data/docs/PlanMedicareBulk.md +21 -0
- data/docs/PlanPricingMedicare.md +15 -0
- data/docs/PlanSearchResponse.md +1 -1
- data/docs/PlanShowResponse.md +1 -1
- data/docs/PlansApi.md +111 -1
- data/docs/Provider.md +1 -1
- data/docs/ProviderDetails.md +1 -1
- data/docs/ProviderNetworkEventNotification.md +13 -0
- data/docs/ProviderNotificationSubscriptionsApi.md +173 -0
- data/docs/ProvidersApi.md +68 -18
- data/docs/RateRequest.md +148 -0
- data/docs/RateSearch.md +143 -0
- data/docs/RatesApi.md +119 -0
- data/docs/RequestPlanFind.md +2 -0
- data/docs/RequestPlanFindCarrierVerification.md +23 -0
- data/docs/RequestProviderNotificationSubscription.md +10 -0
- data/docs/RequestProvidersSearch.md +1 -0
- data/docs/RequestRatesSearch.md +10 -0
- data/docs/ResponseRatesSearch.md +8 -0
- data/docs/RxCuiIdentifier.md +11 -0
- data/docs/RxCuiIdentifierSearchResponse.md +9 -0
- data/docs/VisionPlan.md +20 -0
- data/docs/VisionPlanBenefits.md +25 -0
- data/docs/VisionPlanSearchApplicant.md +10 -0
- data/docs/VisionPlanSearchRequest.md +15 -0
- data/docs/VisionPlanSearchResponse.md +9 -0
- data/docs/VisionPlanShowResponse.md +8 -0
- data/docs/VisionPlanUpdate.md +16 -0
- data/docs/VisionPlanUpdateRequest.md +8 -0
- data/docs/VisionPlansApi.md +174 -0
- data/lib/vericred_client/api/carrier_groups_api.rb +346 -0
- data/lib/vericred_client/api/carrier_verification_plans_api.rb +287 -0
- data/lib/vericred_client/api/carriers_api.rb +346 -0
- data/lib/vericred_client/api/dental_plans_api.rb +403 -0
- data/lib/vericred_client/api/drug_coverages_api.rb +5 -3
- data/lib/vericred_client/api/drug_packages_api.rb +5 -3
- data/lib/vericred_client/api/drugs_api.rb +5 -3
- data/lib/vericred_client/api/embargoes_api.rb +346 -0
- data/lib/vericred_client/api/formularies_api.rb +295 -0
- data/lib/vericred_client/api/issuers_api.rb +346 -0
- data/lib/vericred_client/api/medical_plans_api.rb +347 -0
- data/lib/vericred_client/api/network_sizes_api.rb +5 -3
- data/lib/vericred_client/api/networks_api.rb +66 -3
- data/lib/vericred_client/api/plans_api.rb +122 -3
- data/lib/vericred_client/api/provider_notification_subscriptions_api.rb +395 -0
- data/lib/vericred_client/api/providers_api.rb +82 -27
- data/lib/vericred_client/api/rates_api.rb +346 -0
- data/lib/vericred_client/api/vision_plans_api.rb +403 -0
- data/lib/vericred_client/api/zip_counties_api.rb +5 -3
- data/lib/vericred_client/api_client.rb +5 -3
- data/lib/vericred_client/api_error.rb +5 -3
- data/lib/vericred_client/configuration.rb +5 -3
- data/lib/vericred_client/models/aca_plan.rb +1284 -0
- data/lib/vericred_client/models/aca_plan2018.rb +1294 -0
- data/lib/vericred_client/models/aca_plan2018_search_response.rb +420 -0
- data/lib/vericred_client/models/aca_plan2018_search_result.rb +1324 -0
- data/lib/vericred_client/models/aca_plan2018_show_response.rb +396 -0
- data/lib/vericred_client/models/aca_plan_pre2018.rb +1284 -0
- data/lib/vericred_client/models/aca_plan_pre2018_search_response.rb +420 -0
- data/lib/vericred_client/models/{plan_search_result.rb → aca_plan_pre2018_search_result.rb} +294 -98
- data/lib/vericred_client/models/aca_plan_pre2018_show_response.rb +396 -0
- data/lib/vericred_client/models/base.rb +5 -3
- data/lib/vericred_client/models/base_plan_search_response.rb +408 -0
- data/lib/vericred_client/models/carrier.rb +9 -17
- data/lib/vericred_client/models/carrier_group_request.rb +416 -0
- data/lib/vericred_client/models/carrier_request.rb +426 -0
- data/lib/vericred_client/models/carrier_subsidiary.rb +19 -7
- data/lib/vericred_client/models/county.rb +5 -3
- data/lib/vericred_client/models/county_bulk.rb +5 -3
- data/lib/vericred_client/models/dental_plan.rb +518 -0
- data/lib/vericred_client/models/dental_plan_benefits.rb +616 -0
- data/lib/vericred_client/models/dental_plan_search_applicant.rb +416 -0
- data/lib/vericred_client/models/dental_plan_search_request.rb +468 -0
- data/lib/vericred_client/models/dental_plan_search_response.rb +408 -0
- data/lib/vericred_client/models/dental_plan_show_response.rb +396 -0
- data/lib/vericred_client/models/dental_plan_update.rb +478 -0
- data/lib/vericred_client/models/dental_plan_update_request.rb +396 -0
- data/lib/vericred_client/models/drug.rb +5 -3
- data/lib/vericred_client/models/drug_coverage.rb +18 -4
- data/lib/vericred_client/models/drug_coverage_response.rb +12 -24
- data/lib/vericred_client/models/drug_package.rb +5 -3
- data/lib/vericred_client/models/drug_search_response.rb +5 -3
- data/lib/vericred_client/models/embargo_request.rb +446 -0
- data/lib/vericred_client/models/formulary.rb +5 -3
- data/lib/vericred_client/models/formulary_drug_package_response.rb +5 -3
- data/lib/vericred_client/models/formulary_response.rb +5 -3
- data/lib/vericred_client/models/issuer_request.rb +506 -0
- data/lib/vericred_client/models/meta.rb +5 -3
- data/lib/vericred_client/models/{plan_search_response_meta.rb → meta_plan_search_response.rb} +20 -8
- data/lib/vericred_client/models/network.rb +5 -3
- data/lib/vericred_client/models/network_comparison.rb +446 -0
- data/lib/vericred_client/models/network_comparison_request.rb +418 -0
- data/lib/vericred_client/models/network_comparison_response.rb +410 -0
- data/lib/vericred_client/models/network_details.rb +5 -3
- data/lib/vericred_client/models/network_details_response.rb +5 -3
- data/lib/vericred_client/models/network_search_response.rb +5 -3
- data/lib/vericred_client/models/network_size.rb +5 -3
- data/lib/vericred_client/models/notification_subscription.rb +396 -0
- data/lib/vericred_client/models/notification_subscription_response.rb +396 -0
- data/lib/vericred_client/models/plan.rb +28 -616
- data/lib/vericred_client/models/plan_county.rb +5 -3
- data/lib/vericred_client/models/plan_county_bulk.rb +5 -3
- data/lib/vericred_client/models/plan_deleted.rb +386 -0
- data/lib/vericred_client/models/plan_identifier.rb +406 -0
- data/lib/vericred_client/models/plan_medicare.rb +510 -0
- data/lib/vericred_client/models/plan_medicare_bulk.rb +530 -0
- data/lib/vericred_client/models/plan_pricing_medicare.rb +466 -0
- data/lib/vericred_client/models/plan_search_response.rb +21 -19
- data/lib/vericred_client/models/plan_show_response.rb +6 -4
- data/lib/vericred_client/models/provider.rb +21 -17
- data/lib/vericred_client/models/provider_details.rb +18 -14
- data/lib/vericred_client/models/provider_geocode.rb +5 -3
- data/lib/vericred_client/models/provider_network_event_notification.rb +450 -0
- data/lib/vericred_client/models/provider_show_response.rb +5 -3
- data/lib/vericred_client/models/providers_geocode_response.rb +5 -3
- data/lib/vericred_client/models/providers_search_response.rb +5 -3
- data/lib/vericred_client/models/rate_request.rb +1796 -0
- data/lib/vericred_client/models/rate_search.rb +1746 -0
- data/lib/vericred_client/models/rating_area.rb +5 -3
- data/lib/vericred_client/models/request_plan_find.rb +26 -4
- data/lib/vericred_client/models/request_plan_find_applicant.rb +5 -3
- data/lib/vericred_client/models/request_plan_find_carrier_verification.rb +556 -0
- data/lib/vericred_client/models/request_plan_find_drug_package.rb +5 -3
- data/lib/vericred_client/models/request_plan_find_provider.rb +5 -3
- data/lib/vericred_client/models/request_provider_notification_subscription.rb +418 -0
- data/lib/vericred_client/models/request_providers_search.rb +18 -4
- data/lib/vericred_client/models/request_rates_search.rb +416 -0
- data/lib/vericred_client/models/response_rates_search.rb +396 -0
- data/lib/vericred_client/models/{applicant.rb → rx_cui_identifier.rb} +23 -51
- data/lib/vericred_client/models/rx_cui_identifier_search_response.rb +408 -0
- data/lib/vericred_client/models/service_area.rb +5 -3
- data/lib/vericred_client/models/service_area_zip_county.rb +5 -3
- data/lib/vericred_client/models/state.rb +5 -3
- data/lib/vericred_client/models/state_network_size_request.rb +5 -3
- data/lib/vericred_client/models/state_network_size_response.rb +5 -3
- data/lib/vericred_client/models/vision_plan.rb +518 -0
- data/lib/vericred_client/models/vision_plan_benefits.rb +566 -0
- data/lib/vericred_client/models/vision_plan_search_applicant.rb +416 -0
- data/lib/vericred_client/models/vision_plan_search_request.rb +468 -0
- data/lib/vericred_client/models/vision_plan_search_response.rb +408 -0
- data/lib/vericred_client/models/vision_plan_show_response.rb +396 -0
- data/lib/vericred_client/models/vision_plan_update.rb +478 -0
- data/lib/vericred_client/models/vision_plan_update_request.rb +396 -0
- data/lib/vericred_client/models/zip_code.rb +5 -3
- data/lib/vericred_client/models/zip_counties_response.rb +5 -3
- data/lib/vericred_client/models/zip_county.rb +5 -3
- data/lib/vericred_client/models/zip_county_bulk.rb +5 -3
- data/lib/vericred_client/models/zip_county_response.rb +5 -3
- data/lib/vericred_client/version.rb +6 -4
- data/lib/vericred_client.rb +66 -6
- data/spec/api/carrier_groups_api_spec.rb +267 -0
- data/spec/api/carrier_verification_plans_api_spec.rb +254 -0
- data/spec/api/carriers_api_spec.rb +267 -0
- data/spec/api/dental_plans_api_spec.rb +279 -0
- data/spec/api/drug_coverages_api_spec.rb +5 -3
- data/spec/api/drug_packages_api_spec.rb +5 -3
- data/spec/api/drugs_api_spec.rb +5 -3
- data/spec/api/embargoes_api_spec.rb +267 -0
- data/spec/api/formularies_api_spec.rb +257 -0
- data/spec/api/issuers_api_spec.rb +267 -0
- data/spec/api/medical_plans_api_spec.rb +267 -0
- data/spec/api/network_sizes_api_spec.rb +5 -3
- data/spec/api/networks_api_spec.rb +18 -3
- data/spec/api/plans_api_spec.rb +30 -3
- data/spec/api/provider_notification_subscriptions_api_spec.rb +278 -0
- data/spec/api/providers_api_spec.rb +23 -10
- data/spec/api/rates_api_spec.rb +267 -0
- data/spec/api/vision_plans_api_spec.rb +279 -0
- data/spec/api/zip_counties_api_spec.rb +5 -3
- data/spec/api_client_spec.rb +5 -3
- data/spec/configuration_spec.rb +5 -3
- data/spec/models/aca_plan2018_search_response_spec.rb +261 -0
- data/spec/models/aca_plan2018_search_result_spec.rb +801 -0
- data/spec/models/aca_plan2018_show_response_spec.rb +249 -0
- data/spec/models/aca_plan2018_spec.rb +783 -0
- data/spec/models/aca_plan_pre2018_search_response_spec.rb +261 -0
- data/spec/models/aca_plan_pre2018_search_result_spec.rb +795 -0
- data/spec/models/aca_plan_pre2018_show_response_spec.rb +249 -0
- data/spec/models/aca_plan_pre2018_spec.rb +777 -0
- data/spec/models/{plan_search_result_spec.rb → aca_plan_spec.rb} +149 -51
- data/spec/models/base_plan_search_response_spec.rb +255 -0
- data/spec/models/base_spec.rb +5 -3
- data/spec/models/carrier_group_request_spec.rb +261 -0
- data/spec/models/carrier_request_spec.rb +267 -0
- data/spec/models/carrier_spec.rb +5 -9
- data/spec/models/carrier_subsidiary_spec.rb +11 -3
- data/spec/models/county_bulk_spec.rb +5 -3
- data/spec/models/county_spec.rb +5 -3
- data/spec/models/dental_plan_benefits_spec.rb +381 -0
- data/spec/models/dental_plan_search_applicant_spec.rb +261 -0
- data/spec/models/dental_plan_search_request_spec.rb +291 -0
- data/spec/models/dental_plan_search_response_spec.rb +255 -0
- data/spec/models/dental_plan_show_response_spec.rb +249 -0
- data/spec/models/dental_plan_spec.rb +321 -0
- data/spec/models/dental_plan_update_request_spec.rb +249 -0
- data/spec/models/dental_plan_update_spec.rb +297 -0
- data/spec/models/drug_coverage_response_spec.rb +6 -10
- data/spec/models/drug_coverage_spec.rb +11 -3
- data/spec/models/drug_package_spec.rb +5 -3
- data/spec/models/drug_search_response_spec.rb +5 -3
- data/spec/models/drug_spec.rb +5 -3
- data/spec/models/{applicant_spec.rb → embargo_request_spec.rb} +17 -21
- data/spec/models/formulary_drug_package_response_spec.rb +5 -3
- data/spec/models/formulary_response_spec.rb +5 -3
- data/spec/models/formulary_spec.rb +5 -3
- data/spec/models/issuer_request_spec.rb +315 -0
- data/spec/models/meta_plan_search_response_spec.rb +261 -0
- data/spec/models/meta_spec.rb +5 -3
- data/spec/models/network_comparison_request_spec.rb +261 -0
- data/spec/models/network_comparison_response_spec.rb +255 -0
- data/spec/models/network_comparison_spec.rb +279 -0
- data/spec/models/network_details_response_spec.rb +5 -3
- data/spec/models/network_details_spec.rb +5 -3
- data/spec/models/network_search_response_spec.rb +5 -3
- data/spec/models/network_size_spec.rb +5 -3
- data/spec/models/network_spec.rb +5 -3
- data/spec/models/notification_subscription_response_spec.rb +249 -0
- data/spec/models/notification_subscription_spec.rb +249 -0
- data/spec/models/plan_county_bulk_spec.rb +5 -3
- data/spec/models/plan_county_spec.rb +5 -3
- data/spec/models/plan_deleted_spec.rb +243 -0
- data/spec/models/{plan_search_response_meta_spec.rb → plan_identifier_spec.rb} +13 -11
- data/spec/models/plan_medicare_bulk_spec.rb +327 -0
- data/spec/models/plan_medicare_spec.rb +315 -0
- data/spec/models/plan_pricing_medicare_spec.rb +291 -0
- data/spec/models/plan_search_response_spec.rb +7 -5
- data/spec/models/plan_show_response_spec.rb +5 -3
- data/spec/models/plan_spec.rb +8 -360
- data/spec/models/provider_details_spec.rb +11 -9
- data/spec/models/provider_geocode_spec.rb +5 -3
- data/spec/models/provider_network_event_notification_spec.rb +279 -0
- data/spec/models/provider_show_response_spec.rb +5 -3
- data/spec/models/provider_spec.rb +11 -9
- data/spec/models/providers_geocode_response_spec.rb +5 -3
- data/spec/models/providers_search_response_spec.rb +5 -3
- data/spec/models/rate_request_spec.rb +1089 -0
- data/spec/models/rate_search_spec.rb +1059 -0
- data/spec/models/rating_area_spec.rb +5 -3
- data/spec/models/request_plan_find_applicant_spec.rb +5 -3
- data/spec/models/request_plan_find_carrier_verification_spec.rb +339 -0
- data/spec/models/request_plan_find_drug_package_spec.rb +5 -3
- data/spec/models/request_plan_find_provider_spec.rb +5 -3
- data/spec/models/request_plan_find_spec.rb +17 -3
- data/spec/models/request_provider_notification_subscription_spec.rb +261 -0
- data/spec/models/request_providers_search_spec.rb +11 -3
- data/spec/models/request_rates_search_spec.rb +261 -0
- data/spec/models/response_rates_search_spec.rb +249 -0
- data/spec/models/rx_cui_identifier_search_response_spec.rb +255 -0
- data/spec/models/rx_cui_identifier_spec.rb +267 -0
- data/spec/models/service_area_spec.rb +5 -3
- data/spec/models/service_area_zip_county_spec.rb +5 -3
- data/spec/models/state_network_size_request_spec.rb +5 -3
- data/spec/models/state_network_size_response_spec.rb +5 -3
- data/spec/models/state_spec.rb +5 -3
- data/spec/models/vision_plan_benefits_spec.rb +351 -0
- data/spec/models/vision_plan_search_applicant_spec.rb +261 -0
- data/spec/models/vision_plan_search_request_spec.rb +291 -0
- data/spec/models/vision_plan_search_response_spec.rb +255 -0
- data/spec/models/vision_plan_show_response_spec.rb +249 -0
- data/spec/models/vision_plan_spec.rb +321 -0
- data/spec/models/vision_plan_update_request_spec.rb +249 -0
- data/spec/models/vision_plan_update_spec.rb +297 -0
- data/spec/models/zip_code_spec.rb +5 -3
- data/spec/models/zip_counties_response_spec.rb +5 -3
- data/spec/models/zip_county_bulk_spec.rb +5 -3
- data/spec/models/zip_county_response_spec.rb +5 -3
- data/spec/models/zip_county_spec.rb +5 -3
- data/spec/spec_helper.rb +5 -3
- data/vericred_client.gemspec +5 -3
- metadata +247 -16
- data/docs/Applicant.md +0 -14
- data/git_push.sh +0 -67
@@ -0,0 +1,396 @@
|
|
1
|
+
=begin
|
2
|
+
#Vericred API
|
3
|
+
|
4
|
+
#Vericred's API allows you to search for Health Plans that a specific doctor
|
5
|
+
accepts.
|
6
|
+
|
7
|
+
## Getting Started
|
8
|
+
|
9
|
+
Visit our [Developer Portal](https://developers.vericred.com) to
|
10
|
+
create an account.
|
11
|
+
|
12
|
+
Once you have created an account, you can create one Application for
|
13
|
+
Production and another for our Sandbox (select the appropriate Plan when
|
14
|
+
you create the Application).
|
15
|
+
|
16
|
+
## SDKs
|
17
|
+
|
18
|
+
Our API follows standard REST conventions, so you can use any HTTP client
|
19
|
+
to integrate with us. You will likely find it easier to use one of our
|
20
|
+
[autogenerated SDKs](https://github.com/vericred/?query=vericred-),
|
21
|
+
which we make available for several common programming languages.
|
22
|
+
|
23
|
+
## Authentication
|
24
|
+
|
25
|
+
To authenticate, pass the API Key you created in the Developer Portal as
|
26
|
+
a `Vericred-Api-Key` header.
|
27
|
+
|
28
|
+
`curl -H 'Vericred-Api-Key: YOUR_KEY' "https://api.vericred.com/providers?search_term=Foo&zip_code=11215"`
|
29
|
+
|
30
|
+
## Versioning
|
31
|
+
|
32
|
+
Vericred's API default to the latest version. However, if you need a specific
|
33
|
+
version, you can request it with an `Accept-Version` header.
|
34
|
+
|
35
|
+
The current version is `v3`. Previous versions are `v1` and `v2`.
|
36
|
+
|
37
|
+
`curl -H 'Vericred-Api-Key: YOUR_KEY' -H 'Accept-Version: v2' "https://api.vericred.com/providers?search_term=Foo&zip_code=11215"`
|
38
|
+
|
39
|
+
## Pagination
|
40
|
+
|
41
|
+
Endpoints that accept `page` and `per_page` parameters are paginated. They expose
|
42
|
+
four additional fields that contain data about your position in the response,
|
43
|
+
namely `Total`, `Per-Page`, `Link`, and `Page` as described in [RFC-5988](https://tools.ietf.org/html/rfc5988).
|
44
|
+
|
45
|
+
For example, to display 5 results per page and view the second page of a
|
46
|
+
`GET` to `/networks`, your final request would be `GET /networks?....page=2&per_page=5`.
|
47
|
+
|
48
|
+
## Sideloading
|
49
|
+
|
50
|
+
When we return multiple levels of an object graph (e.g. `Provider`s and their `State`s
|
51
|
+
we sideload the associated data. In this example, we would provide an Array of
|
52
|
+
`State`s and a `state_id` for each provider. This is done primarily to reduce the
|
53
|
+
payload size since many of the `Provider`s will share a `State`
|
54
|
+
|
55
|
+
```
|
56
|
+
{
|
57
|
+
providers: [{ id: 1, state_id: 1}, { id: 2, state_id: 1 }],
|
58
|
+
states: [{ id: 1, code: 'NY' }]
|
59
|
+
}
|
60
|
+
```
|
61
|
+
|
62
|
+
If you need the second level of the object graph, you can just match the
|
63
|
+
corresponding id.
|
64
|
+
|
65
|
+
## Selecting specific data
|
66
|
+
|
67
|
+
All endpoints allow you to specify which fields you would like to return.
|
68
|
+
This allows you to limit the response to contain only the data you need.
|
69
|
+
|
70
|
+
For example, let's take a request that returns the following JSON by default
|
71
|
+
|
72
|
+
```
|
73
|
+
{
|
74
|
+
provider: {
|
75
|
+
id: 1,
|
76
|
+
name: 'John',
|
77
|
+
phone: '1234567890',
|
78
|
+
field_we_dont_care_about: 'value_we_dont_care_about'
|
79
|
+
},
|
80
|
+
states: [{
|
81
|
+
id: 1,
|
82
|
+
name: 'New York',
|
83
|
+
code: 'NY',
|
84
|
+
field_we_dont_care_about: 'value_we_dont_care_about'
|
85
|
+
}]
|
86
|
+
}
|
87
|
+
```
|
88
|
+
|
89
|
+
To limit our results to only return the fields we care about, we specify the
|
90
|
+
`select` query string parameter for the corresponding fields in the JSON
|
91
|
+
document.
|
92
|
+
|
93
|
+
In this case, we want to select `name` and `phone` from the `provider` key,
|
94
|
+
so we would add the parameters `select=provider.name,provider.phone`.
|
95
|
+
We also want the `name` and `code` from the `states` key, so we would
|
96
|
+
add the parameters `select=states.name,states.code`. The id field of
|
97
|
+
each document is always returned whether or not it is requested.
|
98
|
+
|
99
|
+
Our final request would be `GET /providers/12345?select=provider.name,provider.phone,states.name,states.code`
|
100
|
+
|
101
|
+
The response would be
|
102
|
+
|
103
|
+
```
|
104
|
+
{
|
105
|
+
provider: {
|
106
|
+
id: 1,
|
107
|
+
name: 'John',
|
108
|
+
phone: '1234567890'
|
109
|
+
},
|
110
|
+
states: [{
|
111
|
+
id: 1,
|
112
|
+
name: 'New York',
|
113
|
+
code: 'NY'
|
114
|
+
}]
|
115
|
+
}
|
116
|
+
```
|
117
|
+
|
118
|
+
## Benefits summary format
|
119
|
+
Benefit cost-share strings are formatted to capture:
|
120
|
+
* Network tiers
|
121
|
+
* Compound or conditional cost-share
|
122
|
+
* Limits on the cost-share
|
123
|
+
* Benefit-specific maximum out-of-pocket costs
|
124
|
+
|
125
|
+
**Example #1**
|
126
|
+
As an example, we would represent [this Summary of Benefits & Coverage](https://s3.amazonaws.com/vericred-data/SBC/2017/33602TX0780032.pdf) as:
|
127
|
+
|
128
|
+
* **Hospital stay facility fees**:
|
129
|
+
- Network Provider: `$400 copay/admit plus 20% coinsurance`
|
130
|
+
- Out-of-Network Provider: `$1,500 copay/admit plus 50% coinsurance`
|
131
|
+
- 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`
|
132
|
+
|
133
|
+
* **Rehabilitation services:**
|
134
|
+
- Network Provider: `20% coinsurance`
|
135
|
+
- Out-of-Network Provider: `50% coinsurance`
|
136
|
+
- Limitations & Exceptions: `35 visit maximum per benefit period combined with Chiropractic care.`
|
137
|
+
- Vericred's format for this benefit: `In-Network: 20% after deductible / Out-of-Network: 50% after deductible | limit: 35 visit(s) per Benefit Period`
|
138
|
+
|
139
|
+
**Example #2**
|
140
|
+
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.
|
141
|
+
* **Specialty drugs:**
|
142
|
+
- Network Provider: `40% coinsurance up to a $500 maximum for up to a 30 day supply`
|
143
|
+
- Out-of-Network Provider `Not covered`
|
144
|
+
- Vericred's format for this benefit: `In-Network: 40% after deductible, up to $500 per script / Out-of-Network: 100%`
|
145
|
+
|
146
|
+
**BNF**
|
147
|
+
|
148
|
+
Here's a description of the benefits summary string, represented as a context-free grammar:
|
149
|
+
|
150
|
+
```
|
151
|
+
root ::= coverage
|
152
|
+
|
153
|
+
coverage ::= (simple_coverage | tiered_coverage) (space pipe space coverage_modifier)?
|
154
|
+
tiered_coverage ::= tier (space slash space tier)*
|
155
|
+
tier ::= tier_name colon space (tier_coverage | not_applicable)
|
156
|
+
tier_coverage ::= simple_coverage (space (then | or | and) space simple_coverage)* tier_limitation?
|
157
|
+
simple_coverage ::= (pre_coverage_limitation space)? coverage_amount (space post_coverage_limitation)? (comma? space coverage_condition)?
|
158
|
+
coverage_modifier ::= limit_condition colon space (((simple_coverage | simple_limitation) (semicolon space see_carrier_documentation)?) | see_carrier_documentation | waived_if_admitted | shared_across_tiers)
|
159
|
+
waived_if_admitted ::= ("copay" space)? "waived if admitted"
|
160
|
+
simple_limitation ::= pre_coverage_limitation space "copay applies"
|
161
|
+
tier_name ::= "In-Network-Tier-2" | "Out-of-Network" | "In-Network"
|
162
|
+
limit_condition ::= "limit" | "condition"
|
163
|
+
tier_limitation ::= comma space "up to" space (currency | (integer space time_unit plural?)) (space post_coverage_limitation)?
|
164
|
+
coverage_amount ::= currency | unlimited | included | unknown | percentage | (digits space (treatment_unit | time_unit) plural?)
|
165
|
+
pre_coverage_limitation ::= first space digits space time_unit plural?
|
166
|
+
post_coverage_limitation ::= (((then space currency) | "per condition") space)? "per" space (treatment_unit | (integer space time_unit) | time_unit) plural?
|
167
|
+
coverage_condition ::= ("before deductible" | "after deductible" | "penalty" | allowance | "in-state" | "out-of-state") (space allowance)?
|
168
|
+
allowance ::= upto_allowance | after_allowance
|
169
|
+
upto_allowance ::= "up to" space (currency space)? "allowance"
|
170
|
+
after_allowance ::= "after" space (currency space)? "allowance"
|
171
|
+
see_carrier_documentation ::= "see carrier documentation for more information"
|
172
|
+
shared_across_tiers ::= "shared across all tiers"
|
173
|
+
unknown ::= "unknown"
|
174
|
+
unlimited ::= /[uU]nlimited/
|
175
|
+
included ::= /[iI]ncluded in [mM]edical/
|
176
|
+
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/)
|
177
|
+
treatment_unit ::= /[pP]erson/ | /[gG]roup/ | /[cC]ondition/ | /[sS]cript/ | /[vV]isit/ | /[eE]xam/ | /[iI]tem/ | /[sS]tay/ | /[tT]reatment/ | /[aA]dmission/ | /[eE]pisode/
|
178
|
+
comma ::= ","
|
179
|
+
colon ::= ":"
|
180
|
+
semicolon ::= ";"
|
181
|
+
pipe ::= "|"
|
182
|
+
slash ::= "/"
|
183
|
+
plural ::= "(s)" | "s"
|
184
|
+
then ::= "then" | ("," space) | space
|
185
|
+
or ::= "or"
|
186
|
+
and ::= "and"
|
187
|
+
not_applicable ::= "Not Applicable" | "N/A" | "NA"
|
188
|
+
first ::= "first"
|
189
|
+
currency ::= "$" number
|
190
|
+
percentage ::= number "%"
|
191
|
+
number ::= float | integer
|
192
|
+
float ::= digits "." digits
|
193
|
+
integer ::= /[0-9]/+ (comma_int | under_int)*
|
194
|
+
comma_int ::= ("," /[0-9]/*3) !"_"
|
195
|
+
under_int ::= ("_" /[0-9]/*3) !","
|
196
|
+
digits ::= /[0-9]/+ ("_" /[0-9]/+)*
|
197
|
+
space ::= /[ \t]/+
|
198
|
+
```
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
OpenAPI spec version: 1.0.0
|
203
|
+
|
204
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
205
|
+
|
206
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
207
|
+
you may not use this file except in compliance with the License.
|
208
|
+
You may obtain a copy of the License at
|
209
|
+
|
210
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
211
|
+
|
212
|
+
Unless required by applicable law or agreed to in writing, software
|
213
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
214
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
215
|
+
See the License for the specific language governing permissions and
|
216
|
+
limitations under the License.
|
217
|
+
|
218
|
+
=end
|
219
|
+
|
220
|
+
require 'date'
|
221
|
+
|
222
|
+
module VericredClient
|
223
|
+
|
224
|
+
class DentalPlanUpdateRequest
|
225
|
+
# Dental Plan
|
226
|
+
attr_accessor :dental_plan
|
227
|
+
|
228
|
+
|
229
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
230
|
+
def self.attribute_map
|
231
|
+
{
|
232
|
+
:'dental_plan' => :'dental_plan'
|
233
|
+
}
|
234
|
+
end
|
235
|
+
|
236
|
+
# Attribute type mapping.
|
237
|
+
def self.swagger_types
|
238
|
+
{
|
239
|
+
:'dental_plan' => :'DentalPlanUpdate'
|
240
|
+
}
|
241
|
+
end
|
242
|
+
|
243
|
+
# Initializes the object
|
244
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
245
|
+
def initialize(attributes = {})
|
246
|
+
return unless attributes.is_a?(Hash)
|
247
|
+
|
248
|
+
# convert string to symbol for hash key
|
249
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
250
|
+
|
251
|
+
if attributes.has_key?(:'dental_plan')
|
252
|
+
self.dental_plan = attributes[:'dental_plan']
|
253
|
+
end
|
254
|
+
|
255
|
+
end
|
256
|
+
|
257
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
258
|
+
# @return Array for valid properies with the reasons
|
259
|
+
def list_invalid_properties
|
260
|
+
invalid_properties = Array.new
|
261
|
+
return invalid_properties
|
262
|
+
end
|
263
|
+
|
264
|
+
# Check to see if the all the properties in the model are valid
|
265
|
+
# @return true if the model is valid
|
266
|
+
def valid?
|
267
|
+
return true
|
268
|
+
end
|
269
|
+
|
270
|
+
# Checks equality by comparing each attribute.
|
271
|
+
# @param [Object] Object to be compared
|
272
|
+
def ==(o)
|
273
|
+
return true if self.equal?(o)
|
274
|
+
self.class == o.class &&
|
275
|
+
dental_plan == o.dental_plan
|
276
|
+
end
|
277
|
+
|
278
|
+
# @see the `==` method
|
279
|
+
# @param [Object] Object to be compared
|
280
|
+
def eql?(o)
|
281
|
+
self == o
|
282
|
+
end
|
283
|
+
|
284
|
+
# Calculates hash code according to all attributes.
|
285
|
+
# @return [Fixnum] Hash code
|
286
|
+
def hash
|
287
|
+
[dental_plan].hash
|
288
|
+
end
|
289
|
+
|
290
|
+
# Builds the object from hash
|
291
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
292
|
+
# @return [Object] Returns the model itself
|
293
|
+
def build_from_hash(attributes)
|
294
|
+
return nil unless attributes.is_a?(Hash)
|
295
|
+
self.class.swagger_types.each_pair do |key, type|
|
296
|
+
if type =~ /\AArray<(.*)>/i
|
297
|
+
# check to ensure the input is an array given that the the attribute
|
298
|
+
# is documented as an array but the input is not
|
299
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
300
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
301
|
+
end
|
302
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
303
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
304
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
305
|
+
end
|
306
|
+
|
307
|
+
self
|
308
|
+
end
|
309
|
+
|
310
|
+
# Deserializes the data based on type
|
311
|
+
# @param string type Data type
|
312
|
+
# @param string value Value to be deserialized
|
313
|
+
# @return [Object] Deserialized data
|
314
|
+
def _deserialize(type, value)
|
315
|
+
case type.to_sym
|
316
|
+
when :DateTime
|
317
|
+
DateTime.parse(value)
|
318
|
+
when :Date
|
319
|
+
Date.parse(value)
|
320
|
+
when :String
|
321
|
+
value.to_s
|
322
|
+
when :Integer
|
323
|
+
value.to_i
|
324
|
+
when :Float
|
325
|
+
value.to_f
|
326
|
+
when :BOOLEAN
|
327
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
328
|
+
true
|
329
|
+
else
|
330
|
+
false
|
331
|
+
end
|
332
|
+
when :Object
|
333
|
+
# generic object (usually a Hash), return directly
|
334
|
+
value
|
335
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
336
|
+
inner_type = Regexp.last_match[:inner_type]
|
337
|
+
value.map { |v| _deserialize(inner_type, v) }
|
338
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
339
|
+
k_type = Regexp.last_match[:k_type]
|
340
|
+
v_type = Regexp.last_match[:v_type]
|
341
|
+
{}.tap do |hash|
|
342
|
+
value.each do |k, v|
|
343
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
344
|
+
end
|
345
|
+
end
|
346
|
+
else # model
|
347
|
+
temp_model = VericredClient.const_get(type).new
|
348
|
+
temp_model.build_from_hash(value)
|
349
|
+
end
|
350
|
+
end
|
351
|
+
|
352
|
+
# Returns the string representation of the object
|
353
|
+
# @return [String] String presentation of the object
|
354
|
+
def to_s
|
355
|
+
to_hash.to_s
|
356
|
+
end
|
357
|
+
|
358
|
+
# to_body is an alias to to_hash (backward compatibility)
|
359
|
+
# @return [Hash] Returns the object in the form of hash
|
360
|
+
def to_body
|
361
|
+
to_hash
|
362
|
+
end
|
363
|
+
|
364
|
+
# Returns the object in the form of hash
|
365
|
+
# @return [Hash] Returns the object in the form of hash
|
366
|
+
def to_hash
|
367
|
+
hash = {}
|
368
|
+
self.class.attribute_map.each_pair do |attr, param|
|
369
|
+
value = self.send(attr)
|
370
|
+
next if value.nil?
|
371
|
+
hash[param] = _to_hash(value)
|
372
|
+
end
|
373
|
+
hash
|
374
|
+
end
|
375
|
+
|
376
|
+
# Outputs non-array value in the form of hash
|
377
|
+
# For object, use to_hash. Otherwise, just return the value
|
378
|
+
# @param [Object] value Any valid value
|
379
|
+
# @return [Hash] Returns the value in the form of hash
|
380
|
+
def _to_hash(value)
|
381
|
+
if value.is_a?(Array)
|
382
|
+
value.compact.map{ |v| _to_hash(v) }
|
383
|
+
elsif value.is_a?(Hash)
|
384
|
+
{}.tap do |hash|
|
385
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
386
|
+
end
|
387
|
+
elsif value.respond_to? :to_hash
|
388
|
+
value.to_hash
|
389
|
+
else
|
390
|
+
value
|
391
|
+
end
|
392
|
+
end
|
393
|
+
|
394
|
+
end
|
395
|
+
|
396
|
+
end
|
@@ -93,7 +93,7 @@ document.
|
|
93
93
|
In this case, we want to select `name` and `phone` from the `provider` key,
|
94
94
|
so we would add the parameters `select=provider.name,provider.phone`.
|
95
95
|
We also want the `name` and `code` from the `states` key, so we would
|
96
|
-
add the parameters `select=states.name,
|
96
|
+
add the parameters `select=states.name,states.code`. The id field of
|
97
97
|
each document is always returned whether or not it is requested.
|
98
98
|
|
99
99
|
Our final request would be `GET /providers/12345?select=provider.name,provider.phone,states.name,states.code`
|
@@ -150,15 +150,16 @@ Here's a description of the benefits summary string, represented as a context-fr
|
|
150
150
|
```
|
151
151
|
root ::= coverage
|
152
152
|
|
153
|
-
coverage ::= (simple_coverage | tiered_coverage) (space pipe space
|
153
|
+
coverage ::= (simple_coverage | tiered_coverage) (space pipe space coverage_modifier)?
|
154
154
|
tiered_coverage ::= tier (space slash space tier)*
|
155
155
|
tier ::= tier_name colon space (tier_coverage | not_applicable)
|
156
156
|
tier_coverage ::= simple_coverage (space (then | or | and) space simple_coverage)* tier_limitation?
|
157
157
|
simple_coverage ::= (pre_coverage_limitation space)? coverage_amount (space post_coverage_limitation)? (comma? space coverage_condition)?
|
158
|
-
|
158
|
+
coverage_modifier ::= limit_condition colon space (((simple_coverage | simple_limitation) (semicolon space see_carrier_documentation)?) | see_carrier_documentation | waived_if_admitted | shared_across_tiers)
|
159
159
|
waived_if_admitted ::= ("copay" space)? "waived if admitted"
|
160
160
|
simple_limitation ::= pre_coverage_limitation space "copay applies"
|
161
161
|
tier_name ::= "In-Network-Tier-2" | "Out-of-Network" | "In-Network"
|
162
|
+
limit_condition ::= "limit" | "condition"
|
162
163
|
tier_limitation ::= comma space "up to" space (currency | (integer space time_unit plural?)) (space post_coverage_limitation)?
|
163
164
|
coverage_amount ::= currency | unlimited | included | unknown | percentage | (digits space (treatment_unit | time_unit) plural?)
|
164
165
|
pre_coverage_limitation ::= first space digits space time_unit plural?
|
@@ -168,6 +169,7 @@ allowance ::= upto_allowance | after_allowance
|
|
168
169
|
upto_allowance ::= "up to" space (currency space)? "allowance"
|
169
170
|
after_allowance ::= "after" space (currency space)? "allowance"
|
170
171
|
see_carrier_documentation ::= "see carrier documentation for more information"
|
172
|
+
shared_across_tiers ::= "shared across all tiers"
|
171
173
|
unknown ::= "unknown"
|
172
174
|
unlimited ::= /[uU]nlimited/
|
173
175
|
included ::= /[iI]ncluded in [mM]edical/
|
@@ -93,7 +93,7 @@ document.
|
|
93
93
|
In this case, we want to select `name` and `phone` from the `provider` key,
|
94
94
|
so we would add the parameters `select=provider.name,provider.phone`.
|
95
95
|
We also want the `name` and `code` from the `states` key, so we would
|
96
|
-
add the parameters `select=states.name,
|
96
|
+
add the parameters `select=states.name,states.code`. The id field of
|
97
97
|
each document is always returned whether or not it is requested.
|
98
98
|
|
99
99
|
Our final request would be `GET /providers/12345?select=provider.name,provider.phone,states.name,states.code`
|
@@ -150,15 +150,16 @@ Here's a description of the benefits summary string, represented as a context-fr
|
|
150
150
|
```
|
151
151
|
root ::= coverage
|
152
152
|
|
153
|
-
coverage ::= (simple_coverage | tiered_coverage) (space pipe space
|
153
|
+
coverage ::= (simple_coverage | tiered_coverage) (space pipe space coverage_modifier)?
|
154
154
|
tiered_coverage ::= tier (space slash space tier)*
|
155
155
|
tier ::= tier_name colon space (tier_coverage | not_applicable)
|
156
156
|
tier_coverage ::= simple_coverage (space (then | or | and) space simple_coverage)* tier_limitation?
|
157
157
|
simple_coverage ::= (pre_coverage_limitation space)? coverage_amount (space post_coverage_limitation)? (comma? space coverage_condition)?
|
158
|
-
|
158
|
+
coverage_modifier ::= limit_condition colon space (((simple_coverage | simple_limitation) (semicolon space see_carrier_documentation)?) | see_carrier_documentation | waived_if_admitted | shared_across_tiers)
|
159
159
|
waived_if_admitted ::= ("copay" space)? "waived if admitted"
|
160
160
|
simple_limitation ::= pre_coverage_limitation space "copay applies"
|
161
161
|
tier_name ::= "In-Network-Tier-2" | "Out-of-Network" | "In-Network"
|
162
|
+
limit_condition ::= "limit" | "condition"
|
162
163
|
tier_limitation ::= comma space "up to" space (currency | (integer space time_unit plural?)) (space post_coverage_limitation)?
|
163
164
|
coverage_amount ::= currency | unlimited | included | unknown | percentage | (digits space (treatment_unit | time_unit) plural?)
|
164
165
|
pre_coverage_limitation ::= first space digits space time_unit plural?
|
@@ -168,6 +169,7 @@ allowance ::= upto_allowance | after_allowance
|
|
168
169
|
upto_allowance ::= "up to" space (currency space)? "allowance"
|
169
170
|
after_allowance ::= "after" space (currency space)? "allowance"
|
170
171
|
see_carrier_documentation ::= "see carrier documentation for more information"
|
172
|
+
shared_across_tiers ::= "shared across all tiers"
|
171
173
|
unknown ::= "unknown"
|
172
174
|
unlimited ::= /[uU]nlimited/
|
173
175
|
included ::= /[iI]ncluded in [mM]edical/
|
@@ -229,6 +231,9 @@ module VericredClient
|
|
229
231
|
# Med ID
|
230
232
|
attr_accessor :med_id
|
231
233
|
|
234
|
+
# Vericred-generated IDs for drugs
|
235
|
+
attr_accessor :drug_ids
|
236
|
+
|
232
237
|
# Quantity limit exists
|
233
238
|
attr_accessor :quantity_limit
|
234
239
|
|
@@ -248,6 +253,7 @@ module VericredClient
|
|
248
253
|
:'plan_id' => :'plan_id',
|
249
254
|
:'drug_package_id' => :'drug_package_id',
|
250
255
|
:'med_id' => :'med_id',
|
256
|
+
:'drug_ids' => :'drug_ids',
|
251
257
|
:'quantity_limit' => :'quantity_limit',
|
252
258
|
:'prior_authorization' => :'prior_authorization',
|
253
259
|
:'step_therapy' => :'step_therapy',
|
@@ -261,6 +267,7 @@ module VericredClient
|
|
261
267
|
:'plan_id' => :'String',
|
262
268
|
:'drug_package_id' => :'String',
|
263
269
|
:'med_id' => :'Integer',
|
270
|
+
:'drug_ids' => :'Array<String>',
|
264
271
|
:'quantity_limit' => :'BOOLEAN',
|
265
272
|
:'prior_authorization' => :'BOOLEAN',
|
266
273
|
:'step_therapy' => :'BOOLEAN',
|
@@ -288,6 +295,12 @@ module VericredClient
|
|
288
295
|
self.med_id = attributes[:'med_id']
|
289
296
|
end
|
290
297
|
|
298
|
+
if attributes.has_key?(:'drug_ids')
|
299
|
+
if (value = attributes[:'drug_ids']).is_a?(Array)
|
300
|
+
self.drug_ids = value
|
301
|
+
end
|
302
|
+
end
|
303
|
+
|
291
304
|
if attributes.has_key?(:'quantity_limit')
|
292
305
|
self.quantity_limit = attributes[:'quantity_limit']
|
293
306
|
end
|
@@ -327,6 +340,7 @@ module VericredClient
|
|
327
340
|
plan_id == o.plan_id &&
|
328
341
|
drug_package_id == o.drug_package_id &&
|
329
342
|
med_id == o.med_id &&
|
343
|
+
drug_ids == o.drug_ids &&
|
330
344
|
quantity_limit == o.quantity_limit &&
|
331
345
|
prior_authorization == o.prior_authorization &&
|
332
346
|
step_therapy == o.step_therapy &&
|
@@ -342,7 +356,7 @@ module VericredClient
|
|
342
356
|
# Calculates hash code according to all attributes.
|
343
357
|
# @return [Fixnum] Hash code
|
344
358
|
def hash
|
345
|
-
[plan_id, drug_package_id, med_id, quantity_limit, prior_authorization, step_therapy, tier].hash
|
359
|
+
[plan_id, drug_package_id, med_id, drug_ids, quantity_limit, prior_authorization, step_therapy, tier].hash
|
346
360
|
end
|
347
361
|
|
348
362
|
# Builds the object from hash
|
@@ -93,7 +93,7 @@ document.
|
|
93
93
|
In this case, we want to select `name` and `phone` from the `provider` key,
|
94
94
|
so we would add the parameters `select=provider.name,provider.phone`.
|
95
95
|
We also want the `name` and `code` from the `states` key, so we would
|
96
|
-
add the parameters `select=states.name,
|
96
|
+
add the parameters `select=states.name,states.code`. The id field of
|
97
97
|
each document is always returned whether or not it is requested.
|
98
98
|
|
99
99
|
Our final request would be `GET /providers/12345?select=provider.name,provider.phone,states.name,states.code`
|
@@ -150,15 +150,16 @@ Here's a description of the benefits summary string, represented as a context-fr
|
|
150
150
|
```
|
151
151
|
root ::= coverage
|
152
152
|
|
153
|
-
coverage ::= (simple_coverage | tiered_coverage) (space pipe space
|
153
|
+
coverage ::= (simple_coverage | tiered_coverage) (space pipe space coverage_modifier)?
|
154
154
|
tiered_coverage ::= tier (space slash space tier)*
|
155
155
|
tier ::= tier_name colon space (tier_coverage | not_applicable)
|
156
156
|
tier_coverage ::= simple_coverage (space (then | or | and) space simple_coverage)* tier_limitation?
|
157
157
|
simple_coverage ::= (pre_coverage_limitation space)? coverage_amount (space post_coverage_limitation)? (comma? space coverage_condition)?
|
158
|
-
|
158
|
+
coverage_modifier ::= limit_condition colon space (((simple_coverage | simple_limitation) (semicolon space see_carrier_documentation)?) | see_carrier_documentation | waived_if_admitted | shared_across_tiers)
|
159
159
|
waived_if_admitted ::= ("copay" space)? "waived if admitted"
|
160
160
|
simple_limitation ::= pre_coverage_limitation space "copay applies"
|
161
161
|
tier_name ::= "In-Network-Tier-2" | "Out-of-Network" | "In-Network"
|
162
|
+
limit_condition ::= "limit" | "condition"
|
162
163
|
tier_limitation ::= comma space "up to" space (currency | (integer space time_unit plural?)) (space post_coverage_limitation)?
|
163
164
|
coverage_amount ::= currency | unlimited | included | unknown | percentage | (digits space (treatment_unit | time_unit) plural?)
|
164
165
|
pre_coverage_limitation ::= first space digits space time_unit plural?
|
@@ -168,6 +169,7 @@ allowance ::= upto_allowance | after_allowance
|
|
168
169
|
upto_allowance ::= "up to" space (currency space)? "allowance"
|
169
170
|
after_allowance ::= "after" space (currency space)? "allowance"
|
170
171
|
see_carrier_documentation ::= "see carrier documentation for more information"
|
172
|
+
shared_across_tiers ::= "shared across all tiers"
|
171
173
|
unknown ::= "unknown"
|
172
174
|
unlimited ::= /[uU]nlimited/
|
173
175
|
included ::= /[iI]ncluded in [mM]edical/
|
@@ -227,10 +229,7 @@ module VericredClient
|
|
227
229
|
attr_accessor :drug_coverages
|
228
230
|
|
229
231
|
# Drug
|
230
|
-
attr_accessor :
|
231
|
-
|
232
|
-
# Drug Packages
|
233
|
-
attr_accessor :drug_packages
|
232
|
+
attr_accessor :drug
|
234
233
|
|
235
234
|
|
236
235
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -238,8 +237,7 @@ module VericredClient
|
|
238
237
|
{
|
239
238
|
:'meta' => :'meta',
|
240
239
|
:'drug_coverages' => :'drug_coverages',
|
241
|
-
:'
|
242
|
-
:'drug_packages' => :'drug_packages'
|
240
|
+
:'drug' => :'drug'
|
243
241
|
}
|
244
242
|
end
|
245
243
|
|
@@ -248,8 +246,7 @@ module VericredClient
|
|
248
246
|
{
|
249
247
|
:'meta' => :'Meta',
|
250
248
|
:'drug_coverages' => :'Array<DrugCoverage>',
|
251
|
-
:'
|
252
|
-
:'drug_packages' => :'Array<DrugPackage>'
|
249
|
+
:'drug' => :'Drug'
|
253
250
|
}
|
254
251
|
end
|
255
252
|
|
@@ -271,16 +268,8 @@ module VericredClient
|
|
271
268
|
end
|
272
269
|
end
|
273
270
|
|
274
|
-
if attributes.has_key?(:'
|
275
|
-
|
276
|
-
self.drugs = value
|
277
|
-
end
|
278
|
-
end
|
279
|
-
|
280
|
-
if attributes.has_key?(:'drug_packages')
|
281
|
-
if (value = attributes[:'drug_packages']).is_a?(Array)
|
282
|
-
self.drug_packages = value
|
283
|
-
end
|
271
|
+
if attributes.has_key?(:'drug')
|
272
|
+
self.drug = attributes[:'drug']
|
284
273
|
end
|
285
274
|
|
286
275
|
end
|
@@ -305,8 +294,7 @@ module VericredClient
|
|
305
294
|
self.class == o.class &&
|
306
295
|
meta == o.meta &&
|
307
296
|
drug_coverages == o.drug_coverages &&
|
308
|
-
|
309
|
-
drug_packages == o.drug_packages
|
297
|
+
drug == o.drug
|
310
298
|
end
|
311
299
|
|
312
300
|
# @see the `==` method
|
@@ -318,7 +306,7 @@ module VericredClient
|
|
318
306
|
# Calculates hash code according to all attributes.
|
319
307
|
# @return [Fixnum] Hash code
|
320
308
|
def hash
|
321
|
-
[meta, drug_coverages,
|
309
|
+
[meta, drug_coverages, drug].hash
|
322
310
|
end
|
323
311
|
|
324
312
|
# Builds the object from hash
|
@@ -93,7 +93,7 @@ document.
|
|
93
93
|
In this case, we want to select `name` and `phone` from the `provider` key,
|
94
94
|
so we would add the parameters `select=provider.name,provider.phone`.
|
95
95
|
We also want the `name` and `code` from the `states` key, so we would
|
96
|
-
add the parameters `select=states.name,
|
96
|
+
add the parameters `select=states.name,states.code`. The id field of
|
97
97
|
each document is always returned whether or not it is requested.
|
98
98
|
|
99
99
|
Our final request would be `GET /providers/12345?select=provider.name,provider.phone,states.name,states.code`
|
@@ -150,15 +150,16 @@ Here's a description of the benefits summary string, represented as a context-fr
|
|
150
150
|
```
|
151
151
|
root ::= coverage
|
152
152
|
|
153
|
-
coverage ::= (simple_coverage | tiered_coverage) (space pipe space
|
153
|
+
coverage ::= (simple_coverage | tiered_coverage) (space pipe space coverage_modifier)?
|
154
154
|
tiered_coverage ::= tier (space slash space tier)*
|
155
155
|
tier ::= tier_name colon space (tier_coverage | not_applicable)
|
156
156
|
tier_coverage ::= simple_coverage (space (then | or | and) space simple_coverage)* tier_limitation?
|
157
157
|
simple_coverage ::= (pre_coverage_limitation space)? coverage_amount (space post_coverage_limitation)? (comma? space coverage_condition)?
|
158
|
-
|
158
|
+
coverage_modifier ::= limit_condition colon space (((simple_coverage | simple_limitation) (semicolon space see_carrier_documentation)?) | see_carrier_documentation | waived_if_admitted | shared_across_tiers)
|
159
159
|
waived_if_admitted ::= ("copay" space)? "waived if admitted"
|
160
160
|
simple_limitation ::= pre_coverage_limitation space "copay applies"
|
161
161
|
tier_name ::= "In-Network-Tier-2" | "Out-of-Network" | "In-Network"
|
162
|
+
limit_condition ::= "limit" | "condition"
|
162
163
|
tier_limitation ::= comma space "up to" space (currency | (integer space time_unit plural?)) (space post_coverage_limitation)?
|
163
164
|
coverage_amount ::= currency | unlimited | included | unknown | percentage | (digits space (treatment_unit | time_unit) plural?)
|
164
165
|
pre_coverage_limitation ::= first space digits space time_unit plural?
|
@@ -168,6 +169,7 @@ allowance ::= upto_allowance | after_allowance
|
|
168
169
|
upto_allowance ::= "up to" space (currency space)? "allowance"
|
169
170
|
after_allowance ::= "after" space (currency space)? "allowance"
|
170
171
|
see_carrier_documentation ::= "see carrier documentation for more information"
|
172
|
+
shared_across_tiers ::= "shared across all tiers"
|
171
173
|
unknown ::= "unknown"
|
172
174
|
unlimited ::= /[uU]nlimited/
|
173
175
|
included ::= /[iI]ncluded in [mM]edical/
|