vericred_client 0.0.25 → 0.0.27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (449) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +62 -17
  3. data/docs/ACAPlan.md +1 -0
  4. data/docs/ACAPlan2018.md +1 -0
  5. data/docs/ACAPlan2018SearchResult.md +1 -0
  6. data/docs/ACAPlanPre2018.md +1 -0
  7. data/docs/ACAPlanPre2018SearchResult.md +1 -0
  8. data/docs/DentalPlan.md +6 -2
  9. data/docs/DentalPlanSearchRequest.md +2 -1
  10. data/docs/DentalPlanUpdate.md +1 -0
  11. data/docs/DentalPlansApi.md +1 -1
  12. data/docs/Drug.md +1 -1
  13. data/docs/DrugCoverage.md +1 -4
  14. data/docs/DrugCoverageBase.md +11 -0
  15. data/docs/DrugCoverageResponse.md +1 -2
  16. data/docs/DrugDetails.md +12 -0
  17. data/docs/DrugPackage.md +1 -0
  18. data/docs/DrugPackagesApi.md +1 -1
  19. data/docs/DrugSearchDrugPackage.md +12 -0
  20. data/docs/DrugSearchRequest.md +10 -0
  21. data/docs/DrugSearchResponse.md +1 -2
  22. data/docs/DrugsApi.md +71 -3
  23. data/docs/FormularyDrugCoverage.md +11 -0
  24. data/docs/MedicareAdvantagePlan.md +6 -1
  25. data/docs/MedicareAdvantagePlanSearchRequest.md +4 -2
  26. data/docs/MedicareAdvantagePlanSearchResponse.md +2 -1
  27. data/docs/MedicareAdvantagePlanUpdate.md +27 -0
  28. data/docs/MedicareAdvantagePlanUpdateRequest.md +8 -0
  29. data/docs/MedicareAdvantagePlansApi.md +179 -0
  30. data/docs/Network.md +1 -0
  31. data/docs/NetworkDetails.md +5 -1
  32. data/docs/NetworkDisruptionAnalysis.md +11 -0
  33. data/docs/NetworkDisruptionAnalysisRequest.md +9 -0
  34. data/docs/NetworkDisruptionAnalysisResponse.md +9 -0
  35. data/docs/NetworkSearch.md +14 -0
  36. data/docs/NetworkSearchResponse.md +1 -1
  37. data/docs/NetworksApi.md +77 -12
  38. data/docs/Plan.md +5 -6
  39. data/docs/PlanMedicare.md +5 -6
  40. data/docs/PlanMedicareBulk.md +5 -6
  41. data/docs/{V7Network.md → PlanNetwork.md} +1 -2
  42. data/docs/ProviderDetails.md +0 -3
  43. data/docs/ProviderNetworkSpecialty.md +10 -0
  44. data/docs/ProviderNetworks.md +3 -0
  45. data/docs/ProviderPlanResponse.md +12 -0
  46. data/docs/{V7NetworkSearchResponse.md → ProviderPlans.md} +2 -2
  47. data/docs/ProviderPlansRequest.md +13 -0
  48. data/docs/ProvidersApi.md +66 -1
  49. data/docs/RequestProvidersSearch.md +2 -1
  50. data/docs/SpecialtiesApi.md +70 -0
  51. data/docs/SpecialtySearchResponse.md +9 -0
  52. data/docs/SpecialtyShow.md +12 -0
  53. data/docs/SupplementalOptionsUpdate.md +13 -0
  54. data/docs/{V7ProviderDetails.md → V7ResponseProvidersProviderDetails.md} +1 -4
  55. data/docs/VisionPlanSearchRequest.md +1 -1
  56. data/docs/VisionPlanUpdate.md +1 -0
  57. data/docs/VisionPlansApi.md +1 -1
  58. data/lib/vericred_client/api/carrier_groups_api.rb +30 -5
  59. data/lib/vericred_client/api/carrier_verification_dental_plans_api.rb +30 -5
  60. data/lib/vericred_client/api/carrier_verification_medical_plans_api.rb +30 -5
  61. data/lib/vericred_client/api/carrier_verification_plans_api.rb +30 -5
  62. data/lib/vericred_client/api/carrier_verification_vision_plans_api.rb +30 -5
  63. data/lib/vericred_client/api/carriers_api.rb +30 -5
  64. data/lib/vericred_client/api/dental_plans_api.rb +32 -7
  65. data/lib/vericred_client/api/drug_packages_api.rb +30 -5
  66. data/lib/vericred_client/api/drugs_api.rb +110 -10
  67. data/lib/vericred_client/api/embargoes_api.rb +30 -5
  68. data/lib/vericred_client/api/formularies_api.rb +30 -5
  69. data/lib/vericred_client/api/issuers_api.rb +30 -5
  70. data/lib/vericred_client/api/major_medical_plans_api.rb +30 -5
  71. data/lib/vericred_client/api/medical_plans_api.rb +30 -5
  72. data/lib/vericred_client/api/{drug_coverages_api.rb → medicare_advantage_plans_api.rb} +168 -33
  73. data/lib/vericred_client/api/network_sizes_api.rb +30 -5
  74. data/lib/vericred_client/api/networks_api.rb +114 -20
  75. data/lib/vericred_client/api/plans_api.rb +30 -5
  76. data/lib/vericred_client/api/provider_notification_subscriptions_api.rb +30 -5
  77. data/lib/vericred_client/api/providers_api.rb +102 -7
  78. data/lib/vericred_client/api/quoting_api.rb +30 -5
  79. data/lib/vericred_client/api/rates_api.rb +30 -5
  80. data/lib/vericred_client/api/specialties_api.rb +1059 -0
  81. data/lib/vericred_client/api/vision_plans_api.rb +30 -5
  82. data/lib/vericred_client/api/zip_counties_api.rb +30 -5
  83. data/lib/vericred_client/api_client.rb +30 -5
  84. data/lib/vericred_client/api_error.rb +30 -5
  85. data/lib/vericred_client/configuration.rb +30 -5
  86. data/lib/vericred_client/models/aca_plan.rb +43 -6
  87. data/lib/vericred_client/models/aca_plan2018.rb +43 -6
  88. data/lib/vericred_client/models/aca_plan2018_search_response.rb +30 -5
  89. data/lib/vericred_client/models/aca_plan2018_search_result.rb +43 -6
  90. data/lib/vericred_client/models/aca_plan2018_show_response.rb +30 -5
  91. data/lib/vericred_client/models/aca_plan_pre2018.rb +43 -6
  92. data/lib/vericred_client/models/aca_plan_pre2018_search_response.rb +30 -5
  93. data/lib/vericred_client/models/aca_plan_pre2018_search_result.rb +43 -6
  94. data/lib/vericred_client/models/aca_plan_pre2018_show_response.rb +30 -5
  95. data/lib/vericred_client/models/address.rb +30 -5
  96. data/lib/vericred_client/models/ancillary_plan_identifier.rb +30 -5
  97. data/lib/vericred_client/models/base.rb +30 -5
  98. data/lib/vericred_client/models/base_plan_search_response.rb +30 -5
  99. data/lib/vericred_client/models/carrier.rb +30 -5
  100. data/lib/vericred_client/models/carrier_group_request.rb +30 -5
  101. data/lib/vericred_client/models/carrier_request.rb +30 -5
  102. data/lib/vericred_client/models/carrier_subsidiary.rb +30 -5
  103. data/lib/vericred_client/models/county.rb +30 -5
  104. data/lib/vericred_client/models/county_bulk.rb +30 -5
  105. data/lib/vericred_client/models/dental_plan.rb +79 -8
  106. data/lib/vericred_client/models/dental_plan_benefits.rb +30 -5
  107. data/lib/vericred_client/models/dental_plan_search_applicant.rb +30 -5
  108. data/lib/vericred_client/models/dental_plan_search_request.rb +44 -7
  109. data/lib/vericred_client/models/dental_plan_search_response.rb +30 -5
  110. data/lib/vericred_client/models/dental_plan_show_response.rb +30 -5
  111. data/lib/vericred_client/models/dental_plan_update.rb +43 -6
  112. data/lib/vericred_client/models/dental_plan_update_request.rb +30 -5
  113. data/lib/vericred_client/models/dependent_create.rb +30 -5
  114. data/lib/vericred_client/models/dependent_create_request.rb +30 -5
  115. data/lib/vericred_client/models/dependent_show.rb +30 -5
  116. data/lib/vericred_client/models/drug.rb +31 -6
  117. data/lib/vericred_client/models/drug_coverage.rb +32 -39
  118. data/lib/vericred_client/models/drug_coverage_base.rb +1190 -0
  119. data/lib/vericred_client/models/drug_coverage_response.rb +39 -24
  120. data/lib/vericred_client/models/drug_details.rb +1202 -0
  121. data/lib/vericred_client/models/drug_package.rb +44 -9
  122. data/lib/vericred_client/models/drug_search_drug_package.rb +1200 -0
  123. data/lib/vericred_client/models/drug_search_request.rb +1180 -0
  124. data/lib/vericred_client/models/drug_search_response.rb +32 -19
  125. data/lib/vericred_client/models/embargo_request.rb +30 -5
  126. data/lib/vericred_client/models/formulary.rb +30 -5
  127. data/lib/vericred_client/models/formulary_drug_coverage.rb +1190 -0
  128. data/lib/vericred_client/models/formulary_drug_package_response.rb +30 -5
  129. data/lib/vericred_client/models/formulary_response.rb +30 -5
  130. data/lib/vericred_client/models/group_create.rb +30 -5
  131. data/lib/vericred_client/models/group_create_request.rb +30 -5
  132. data/lib/vericred_client/models/group_create_response.rb +30 -5
  133. data/lib/vericred_client/models/group_show.rb +30 -5
  134. data/lib/vericred_client/models/group_show_response.rb +30 -5
  135. data/lib/vericred_client/models/group_update.rb +30 -5
  136. data/lib/vericred_client/models/group_update_request.rb +30 -5
  137. data/lib/vericred_client/models/issuer_request.rb +30 -5
  138. data/lib/vericred_client/models/location_create.rb +30 -5
  139. data/lib/vericred_client/models/location_show.rb +30 -5
  140. data/lib/vericred_client/models/location_update.rb +30 -5
  141. data/lib/vericred_client/models/medical_plan_benefits.rb +30 -5
  142. data/lib/vericred_client/models/medical_plan_update.rb +30 -5
  143. data/lib/vericred_client/models/medical_plan_update_request.rb +30 -5
  144. data/lib/vericred_client/models/medicare_advantage_plan.rb +86 -7
  145. data/lib/vericred_client/models/medicare_advantage_plan_benefits.rb +30 -5
  146. data/lib/vericred_client/models/medicare_advantage_plan_search_request.rb +57 -8
  147. data/lib/vericred_client/models/medicare_advantage_plan_search_response.rb +45 -8
  148. data/lib/vericred_client/models/medicare_advantage_plan_show_response.rb +30 -5
  149. data/lib/vericred_client/models/medicare_advantage_plan_update.rb +1354 -0
  150. data/lib/vericred_client/models/{v7_network.rb → medicare_advantage_plan_update_request.rb} +39 -34
  151. data/lib/vericred_client/models/member_create.rb +30 -5
  152. data/lib/vericred_client/models/member_rate_show.rb +30 -5
  153. data/lib/vericred_client/models/member_rate_show_request.rb +30 -5
  154. data/lib/vericred_client/models/member_rates_show_response.rb +30 -5
  155. data/lib/vericred_client/models/member_show.rb +30 -5
  156. data/lib/vericred_client/models/members_create_request.rb +30 -5
  157. data/lib/vericred_client/models/members_create_response.rb +30 -5
  158. data/lib/vericred_client/models/members_show_response.rb +30 -5
  159. data/lib/vericred_client/models/meta.rb +30 -5
  160. data/lib/vericred_client/models/meta_plan_search_response.rb +30 -5
  161. data/lib/vericred_client/models/network.rb +41 -6
  162. data/lib/vericred_client/models/network_comparison.rb +30 -5
  163. data/lib/vericred_client/models/network_comparison_request.rb +30 -5
  164. data/lib/vericred_client/models/network_comparison_response.rb +30 -5
  165. data/lib/vericred_client/models/network_details.rb +88 -17
  166. data/lib/vericred_client/models/network_details_response.rb +30 -5
  167. data/lib/vericred_client/models/network_disruption_analysis.rb +1194 -0
  168. data/lib/vericred_client/models/network_disruption_analysis_request.rb +1174 -0
  169. data/lib/vericred_client/models/network_disruption_analysis_response.rb +1172 -0
  170. data/lib/vericred_client/models/network_search.rb +1228 -0
  171. data/lib/vericred_client/models/network_search_response.rb +31 -6
  172. data/lib/vericred_client/models/network_size.rb +30 -5
  173. data/lib/vericred_client/models/notification_subscription.rb +30 -5
  174. data/lib/vericred_client/models/notification_subscription_response.rb +30 -5
  175. data/lib/vericred_client/models/plan.rb +83 -64
  176. data/lib/vericred_client/models/plan_county.rb +30 -5
  177. data/lib/vericred_client/models/plan_county_bulk.rb +30 -5
  178. data/lib/vericred_client/models/plan_deleted.rb +30 -5
  179. data/lib/vericred_client/models/plan_identifier.rb +30 -5
  180. data/lib/vericred_client/models/plan_medicare.rb +83 -64
  181. data/lib/vericred_client/models/plan_medicare_bulk.rb +83 -64
  182. data/lib/vericred_client/models/{v7_network_details.rb → plan_network.rb} +32 -29
  183. data/lib/vericred_client/models/plan_pricing_medicare.rb +30 -5
  184. data/lib/vericred_client/models/plan_search_response.rb +30 -5
  185. data/lib/vericred_client/models/plan_show_response.rb +30 -5
  186. data/lib/vericred_client/models/plans_bulk_aca2018.rb +30 -5
  187. data/lib/vericred_client/models/plans_bulk_aca_pre2018.rb +30 -5
  188. data/lib/vericred_client/models/plans_bulk_base.rb +30 -5
  189. data/lib/vericred_client/models/plans_bulk_dental.rb +30 -5
  190. data/lib/vericred_client/models/plans_bulk_vision.rb +30 -5
  191. data/lib/vericred_client/models/provider.rb +30 -5
  192. data/lib/vericred_client/models/provider_details.rb +31 -42
  193. data/lib/vericred_client/models/provider_geocode.rb +30 -5
  194. data/lib/vericred_client/models/provider_network_event_notification.rb +30 -5
  195. data/lib/vericred_client/models/{v7_provider_networks.rb → provider_network_specialty.rb} +42 -37
  196. data/lib/vericred_client/models/provider_networks.rb +68 -9
  197. data/lib/vericred_client/models/provider_plan_response.rb +1202 -0
  198. data/lib/vericred_client/models/{v7_network_search_response.rb → provider_plans.rb} +40 -15
  199. data/lib/vericred_client/models/provider_plans_request.rb +1210 -0
  200. data/lib/vericred_client/models/provider_show_response.rb +30 -5
  201. data/lib/vericred_client/models/providers_geocode_response.rb +30 -5
  202. data/lib/vericred_client/models/providers_search_response.rb +30 -5
  203. data/lib/vericred_client/models/quote_create.rb +30 -5
  204. data/lib/vericred_client/models/quote_create_request.rb +30 -5
  205. data/lib/vericred_client/models/quote_create_response.rb +30 -5
  206. data/lib/vericred_client/models/quote_show.rb +30 -5
  207. data/lib/vericred_client/models/quote_show_response.rb +30 -5
  208. data/lib/vericred_client/models/rate_request.rb +30 -5
  209. data/lib/vericred_client/models/rate_search.rb +30 -5
  210. data/lib/vericred_client/models/rate_show.rb +30 -5
  211. data/lib/vericred_client/models/rate_show_request.rb +30 -5
  212. data/lib/vericred_client/models/rates_show_response.rb +30 -5
  213. data/lib/vericred_client/models/rating_area.rb +30 -5
  214. data/lib/vericred_client/models/request_plan_find.rb +30 -5
  215. data/lib/vericred_client/models/request_plan_find_applicant.rb +30 -5
  216. data/lib/vericred_client/models/request_plan_find_carrier_verification.rb +30 -5
  217. data/lib/vericred_client/models/request_plan_find_drug_package.rb +30 -5
  218. data/lib/vericred_client/models/request_plan_find_provider.rb +30 -5
  219. data/lib/vericred_client/models/request_provider_notification_subscription.rb +30 -5
  220. data/lib/vericred_client/models/request_providers_search.rb +44 -7
  221. data/lib/vericred_client/models/request_rates_search.rb +30 -5
  222. data/lib/vericred_client/models/response_rates_search.rb +30 -5
  223. data/lib/vericred_client/models/rx_cui_identifier.rb +30 -5
  224. data/lib/vericred_client/models/rx_cui_identifier_search_response.rb +30 -5
  225. data/lib/vericred_client/models/service_area.rb +30 -5
  226. data/lib/vericred_client/models/service_area_zip_county.rb +30 -5
  227. data/lib/vericred_client/models/specialty_search_response.rb +1172 -0
  228. data/lib/vericred_client/models/specialty_show.rb +1200 -0
  229. data/lib/vericred_client/models/state.rb +30 -5
  230. data/lib/vericred_client/models/state_network_size_request.rb +30 -5
  231. data/lib/vericred_client/models/state_network_size_response.rb +30 -5
  232. data/lib/vericred_client/models/supplemental_options.rb +30 -5
  233. data/lib/vericred_client/models/supplemental_options_update.rb +1212 -0
  234. data/lib/vericred_client/models/v7_network_comparison_response.rb +30 -5
  235. data/lib/vericred_client/models/{v7_provider_details.rb → v7_response_providers_provider_details.rb} +32 -43
  236. data/lib/vericred_client/models/vision_plan.rb +30 -5
  237. data/lib/vericred_client/models/vision_plan_benefits.rb +30 -5
  238. data/lib/vericred_client/models/vision_plan_search_applicant.rb +30 -5
  239. data/lib/vericred_client/models/vision_plan_search_request.rb +31 -6
  240. data/lib/vericred_client/models/vision_plan_search_response.rb +30 -5
  241. data/lib/vericred_client/models/vision_plan_show_response.rb +30 -5
  242. data/lib/vericred_client/models/vision_plan_update.rb +43 -6
  243. data/lib/vericred_client/models/vision_plan_update_request.rb +30 -5
  244. data/lib/vericred_client/models/zip_code.rb +30 -5
  245. data/lib/vericred_client/models/zip_counties_response.rb +30 -5
  246. data/lib/vericred_client/models/zip_county.rb +30 -5
  247. data/lib/vericred_client/models/zip_county_bulk.rb +30 -5
  248. data/lib/vericred_client/models/zip_county_response.rb +30 -5
  249. data/lib/vericred_client/version.rb +31 -6
  250. data/lib/vericred_client.rb +52 -12
  251. data/spec/api/carrier_groups_api_spec.rb +30 -5
  252. data/spec/api/carrier_verification_dental_plans_api_spec.rb +30 -5
  253. data/spec/api/carrier_verification_medical_plans_api_spec.rb +30 -5
  254. data/spec/api/carrier_verification_plans_api_spec.rb +30 -5
  255. data/spec/api/carrier_verification_vision_plans_api_spec.rb +30 -5
  256. data/spec/api/carriers_api_spec.rb +30 -5
  257. data/spec/api/dental_plans_api_spec.rb +31 -6
  258. data/spec/api/drug_packages_api_spec.rb +30 -5
  259. data/spec/api/drugs_api_spec.rb +48 -7
  260. data/spec/api/embargoes_api_spec.rb +30 -5
  261. data/spec/api/formularies_api_spec.rb +30 -5
  262. data/spec/api/issuers_api_spec.rb +30 -5
  263. data/spec/api/major_medical_plans_api_spec.rb +30 -5
  264. data/spec/api/medical_plans_api_spec.rb +30 -5
  265. data/spec/api/{drug_coverages_api_spec.rb → medicare_advantage_plans_api_spec.rb} +68 -19
  266. data/spec/api/network_sizes_api_spec.rb +30 -5
  267. data/spec/api/networks_api_spec.rb +52 -11
  268. data/spec/api/plans_api_spec.rb +30 -5
  269. data/spec/api/provider_notification_subscriptions_api_spec.rb +30 -5
  270. data/spec/api/providers_api_spec.rb +46 -6
  271. data/spec/api/quoting_api_spec.rb +30 -5
  272. data/spec/api/rates_api_spec.rb +30 -5
  273. data/spec/api/specialties_api_spec.rb +1021 -0
  274. data/spec/api/vision_plans_api_spec.rb +30 -5
  275. data/spec/api/zip_counties_api_spec.rb +30 -5
  276. data/spec/api_client_spec.rb +30 -5
  277. data/spec/configuration_spec.rb +30 -5
  278. data/spec/models/aca_plan2018_search_response_spec.rb +30 -5
  279. data/spec/models/aca_plan2018_search_result_spec.rb +36 -5
  280. data/spec/models/aca_plan2018_show_response_spec.rb +30 -5
  281. data/spec/models/aca_plan2018_spec.rb +36 -5
  282. data/spec/models/aca_plan_pre2018_search_response_spec.rb +30 -5
  283. data/spec/models/aca_plan_pre2018_search_result_spec.rb +36 -5
  284. data/spec/models/aca_plan_pre2018_show_response_spec.rb +30 -5
  285. data/spec/models/aca_plan_pre2018_spec.rb +36 -5
  286. data/spec/models/aca_plan_spec.rb +36 -5
  287. data/spec/models/address_spec.rb +30 -5
  288. data/spec/models/ancillary_plan_identifier_spec.rb +30 -5
  289. data/spec/models/base_plan_search_response_spec.rb +30 -5
  290. data/spec/models/base_spec.rb +30 -5
  291. data/spec/models/carrier_group_request_spec.rb +30 -5
  292. data/spec/models/carrier_request_spec.rb +30 -5
  293. data/spec/models/carrier_spec.rb +30 -5
  294. data/spec/models/carrier_subsidiary_spec.rb +30 -5
  295. data/spec/models/county_bulk_spec.rb +30 -5
  296. data/spec/models/county_spec.rb +30 -5
  297. data/spec/models/dental_plan_benefits_spec.rb +30 -5
  298. data/spec/models/dental_plan_search_applicant_spec.rb +30 -5
  299. data/spec/models/dental_plan_search_request_spec.rb +36 -5
  300. data/spec/models/dental_plan_search_response_spec.rb +30 -5
  301. data/spec/models/dental_plan_show_response_spec.rb +30 -5
  302. data/spec/models/dental_plan_spec.rb +54 -5
  303. data/spec/models/dental_plan_update_request_spec.rb +30 -5
  304. data/spec/models/dental_plan_update_spec.rb +36 -5
  305. data/spec/models/dependent_create_request_spec.rb +30 -5
  306. data/spec/models/dependent_create_spec.rb +30 -5
  307. data/spec/models/dependent_show_spec.rb +30 -5
  308. data/spec/models/drug_coverage_base_spec.rb +1031 -0
  309. data/spec/models/drug_coverage_response_spec.rb +31 -12
  310. data/spec/models/drug_coverage_spec.rb +30 -23
  311. data/spec/models/drug_details_spec.rb +1037 -0
  312. data/spec/models/drug_package_spec.rb +36 -5
  313. data/spec/models/drug_search_drug_package_spec.rb +1037 -0
  314. data/spec/models/{v7_network_spec.rb → drug_search_request_spec.rb} +39 -14
  315. data/spec/models/drug_search_response_spec.rb +30 -11
  316. data/spec/models/drug_spec.rb +30 -5
  317. data/spec/models/embargo_request_spec.rb +30 -5
  318. data/spec/models/formulary_drug_coverage_spec.rb +1031 -0
  319. data/spec/models/formulary_drug_package_response_spec.rb +30 -5
  320. data/spec/models/formulary_response_spec.rb +30 -5
  321. data/spec/models/formulary_spec.rb +30 -5
  322. data/spec/models/group_create_request_spec.rb +30 -5
  323. data/spec/models/group_create_response_spec.rb +30 -5
  324. data/spec/models/group_create_spec.rb +30 -5
  325. data/spec/models/group_show_response_spec.rb +30 -5
  326. data/spec/models/group_show_spec.rb +30 -5
  327. data/spec/models/group_update_request_spec.rb +30 -5
  328. data/spec/models/group_update_spec.rb +30 -5
  329. data/spec/models/issuer_request_spec.rb +30 -5
  330. data/spec/models/location_create_spec.rb +30 -5
  331. data/spec/models/location_show_spec.rb +30 -5
  332. data/spec/models/location_update_spec.rb +30 -5
  333. data/spec/models/medical_plan_benefits_spec.rb +30 -5
  334. data/spec/models/medical_plan_update_request_spec.rb +30 -5
  335. data/spec/models/medical_plan_update_spec.rb +30 -5
  336. data/spec/models/medicare_advantage_plan_benefits_spec.rb +30 -5
  337. data/spec/models/medicare_advantage_plan_search_request_spec.rb +42 -5
  338. data/spec/models/medicare_advantage_plan_search_response_spec.rb +36 -5
  339. data/spec/models/medicare_advantage_plan_show_response_spec.rb +30 -5
  340. data/spec/models/medicare_advantage_plan_spec.rb +60 -5
  341. data/spec/models/medicare_advantage_plan_update_request_spec.rb +1013 -0
  342. data/spec/models/medicare_advantage_plan_update_spec.rb +1127 -0
  343. data/spec/models/member_create_spec.rb +30 -5
  344. data/spec/models/member_rate_show_request_spec.rb +30 -5
  345. data/spec/models/member_rate_show_spec.rb +30 -5
  346. data/spec/models/member_rates_show_response_spec.rb +30 -5
  347. data/spec/models/member_show_spec.rb +30 -5
  348. data/spec/models/members_create_request_spec.rb +30 -5
  349. data/spec/models/members_create_response_spec.rb +30 -5
  350. data/spec/models/members_show_response_spec.rb +30 -5
  351. data/spec/models/meta_plan_search_response_spec.rb +30 -5
  352. data/spec/models/meta_spec.rb +30 -5
  353. data/spec/models/network_comparison_request_spec.rb +30 -5
  354. data/spec/models/network_comparison_response_spec.rb +30 -5
  355. data/spec/models/network_comparison_spec.rb +30 -5
  356. data/spec/models/network_details_response_spec.rb +30 -5
  357. data/spec/models/network_details_spec.rb +55 -6
  358. data/spec/models/network_disruption_analysis_request_spec.rb +1019 -0
  359. data/spec/models/network_disruption_analysis_response_spec.rb +1019 -0
  360. data/spec/models/network_disruption_analysis_spec.rb +1031 -0
  361. data/spec/models/network_search_response_spec.rb +30 -5
  362. data/spec/models/network_search_spec.rb +1049 -0
  363. data/spec/models/network_size_spec.rb +30 -5
  364. data/spec/models/network_spec.rb +36 -5
  365. data/spec/models/notification_subscription_response_spec.rb +30 -5
  366. data/spec/models/notification_subscription_spec.rb +30 -5
  367. data/spec/models/plan_county_bulk_spec.rb +30 -5
  368. data/spec/models/plan_county_spec.rb +30 -5
  369. data/spec/models/plan_deleted_spec.rb +30 -5
  370. data/spec/models/plan_identifier_spec.rb +30 -5
  371. data/spec/models/plan_medicare_bulk_spec.rb +41 -22
  372. data/spec/models/plan_medicare_spec.rb +40 -21
  373. data/spec/models/{v7_provider_networks_spec.rb → plan_network_spec.rb} +36 -29
  374. data/spec/models/plan_pricing_medicare_spec.rb +30 -5
  375. data/spec/models/plan_search_response_spec.rb +30 -5
  376. data/spec/models/plan_show_response_spec.rb +30 -5
  377. data/spec/models/plan_spec.rb +39 -20
  378. data/spec/models/plans_bulk_aca2018_spec.rb +30 -5
  379. data/spec/models/plans_bulk_aca_pre2018_spec.rb +30 -5
  380. data/spec/models/plans_bulk_base_spec.rb +30 -5
  381. data/spec/models/plans_bulk_dental_spec.rb +30 -5
  382. data/spec/models/plans_bulk_vision_spec.rb +30 -5
  383. data/spec/models/provider_details_spec.rb +30 -23
  384. data/spec/models/provider_geocode_spec.rb +30 -5
  385. data/spec/models/provider_network_event_notification_spec.rb +30 -5
  386. data/spec/models/{v7_network_details_spec.rb → provider_network_specialty_spec.rb} +39 -20
  387. data/spec/models/provider_networks_spec.rb +48 -5
  388. data/spec/models/provider_plan_response_spec.rb +1037 -0
  389. data/spec/models/provider_plans_request_spec.rb +1043 -0
  390. data/spec/models/{v7_network_search_response_spec.rb → provider_plans_spec.rb} +37 -12
  391. data/spec/models/provider_show_response_spec.rb +30 -5
  392. data/spec/models/provider_spec.rb +30 -5
  393. data/spec/models/providers_geocode_response_spec.rb +30 -5
  394. data/spec/models/providers_search_response_spec.rb +30 -5
  395. data/spec/models/quote_create_request_spec.rb +30 -5
  396. data/spec/models/quote_create_response_spec.rb +30 -5
  397. data/spec/models/quote_create_spec.rb +30 -5
  398. data/spec/models/quote_show_response_spec.rb +30 -5
  399. data/spec/models/quote_show_spec.rb +30 -5
  400. data/spec/models/rate_request_spec.rb +30 -5
  401. data/spec/models/rate_search_spec.rb +30 -5
  402. data/spec/models/rate_show_request_spec.rb +30 -5
  403. data/spec/models/rate_show_spec.rb +30 -5
  404. data/spec/models/rates_show_response_spec.rb +30 -5
  405. data/spec/models/rating_area_spec.rb +30 -5
  406. data/spec/models/request_plan_find_applicant_spec.rb +30 -5
  407. data/spec/models/request_plan_find_carrier_verification_spec.rb +30 -5
  408. data/spec/models/request_plan_find_drug_package_spec.rb +30 -5
  409. data/spec/models/request_plan_find_provider_spec.rb +30 -5
  410. data/spec/models/request_plan_find_spec.rb +30 -5
  411. data/spec/models/request_provider_notification_subscription_spec.rb +30 -5
  412. data/spec/models/request_providers_search_spec.rb +36 -5
  413. data/spec/models/request_rates_search_spec.rb +30 -5
  414. data/spec/models/response_rates_search_spec.rb +30 -5
  415. data/spec/models/rx_cui_identifier_search_response_spec.rb +30 -5
  416. data/spec/models/rx_cui_identifier_spec.rb +30 -5
  417. data/spec/models/service_area_spec.rb +30 -5
  418. data/spec/models/service_area_zip_county_spec.rb +30 -5
  419. data/spec/models/specialty_search_response_spec.rb +1019 -0
  420. data/spec/models/specialty_show_spec.rb +1037 -0
  421. data/spec/models/state_network_size_request_spec.rb +30 -5
  422. data/spec/models/state_network_size_response_spec.rb +30 -5
  423. data/spec/models/state_spec.rb +30 -5
  424. data/spec/models/supplemental_options_spec.rb +30 -5
  425. data/spec/models/supplemental_options_update_spec.rb +1043 -0
  426. data/spec/models/v7_network_comparison_response_spec.rb +30 -5
  427. data/spec/models/{v7_provider_details_spec.rb → v7_response_providers_provider_details_spec.rb} +36 -29
  428. data/spec/models/vision_plan_benefits_spec.rb +30 -5
  429. data/spec/models/vision_plan_search_applicant_spec.rb +30 -5
  430. data/spec/models/vision_plan_search_request_spec.rb +30 -5
  431. data/spec/models/vision_plan_search_response_spec.rb +30 -5
  432. data/spec/models/vision_plan_show_response_spec.rb +30 -5
  433. data/spec/models/vision_plan_spec.rb +30 -5
  434. data/spec/models/vision_plan_update_request_spec.rb +30 -5
  435. data/spec/models/vision_plan_update_spec.rb +36 -5
  436. data/spec/models/zip_code_spec.rb +30 -5
  437. data/spec/models/zip_counties_response_spec.rb +30 -5
  438. data/spec/models/zip_county_bulk_spec.rb +30 -5
  439. data/spec/models/zip_county_response_spec.rb +30 -5
  440. data/spec/models/zip_county_spec.rb +30 -5
  441. data/spec/spec_helper.rb +30 -5
  442. data/vericred_client.gemspec +30 -5
  443. metadata +226 -166
  444. data/docs/DrugCoveragesApi.md +0 -69
  445. data/docs/V7NetworkDetails.md +0 -11
  446. data/docs/V7NetworkDetailsResponse.md +0 -8
  447. data/docs/V7ProviderNetworks.md +0 -12
  448. data/lib/vericred_client/models/v7_network_details_response.rb +0 -1135
  449. data/spec/models/v7_network_details_response_spec.rb +0 -988
@@ -23,16 +23,18 @@ which we make available for several common programming languages.
23
23
  To authenticate, pass the API Key you created in the Developer Portal as
24
24
  a `Vericred-Api-Key` header.
25
25
 
26
- `curl -H 'Vericred-Api-Key: YOUR_KEY' "https://api.vericred.com/providers?search_term=Foo&zip_code=11215"`
26
+ `curl -H 'Vericred-Api-Key: YOUR_KEY' "https://api.vericred.com/drugs?search_term=Lipitor"`
27
27
 
28
28
  ## Versioning
29
29
 
30
30
  Vericred's API default to the latest version. However, if you need a specific
31
31
  version, you can request it with an `Accept-Version` header.
32
32
 
33
- The current version is `v4`. We also support `v2` and `v3`
33
+ The current version is `v6`. We support prior versions. Our latest
34
+ stable version is `v7` and we will indicate in the documentation for an
35
+ endpoint if it's required.
34
36
 
35
- `curl -H 'Vericred-Api-Key: YOUR_KEY' -H 'Accept-Version: v3' "https://api.vericred.com/providers?search_term=Foo&zip_code=11215"`
37
+ `curl -H 'Vericred-Api-Key: YOUR_KEY' -H 'Accept-Version: v6' "https://api.vericred.com/drugs?search_term=Lipitor"`
36
38
 
37
39
  ## Pagination
38
40
 
@@ -95,14 +97,14 @@ We also want the `name` and `code` from the `states` key, so we would
95
97
  add the parameters `select=states.name,states.code`. The id field of
96
98
  each document is always returned whether or not it is requested.
97
99
 
98
- Our final request would be `GET /providers/12345?select=provider.name,provider.phone,states.name,states.code`
100
+ Our final request would be `GET /providers/1234567898?select=provider.name,provider.phone,states.name,states.code`
99
101
 
100
102
  The response would be
101
103
 
102
104
  ```
103
105
  {
104
106
  provider: {
105
- id: 1,
107
+ id: 1234567898,
106
108
  name: 'John',
107
109
  phone: '1234567890'
108
110
  },
@@ -333,6 +335,16 @@ The following are the supported Benefit Fields for Vision:
333
335
  - laser\_vision\_correction
334
336
  - additional\_pairs\_of\_eyeglasses
335
337
 
338
+ ### Medicare Advantage
339
+
340
+ Medicare Advantage endpoints support MA (Medicare Advantage plans without prescription drug benefits), MAPD (Medicare Advantage plans with prescription drug benefits), and PDP (prescription drug benefits only) plans.
341
+
342
+ Medical and hospital benefits - we support over 4000 individual plans through our API nationwide. At this time, we do not support EGHP (employer group health plans).
343
+
344
+ Prescription drug benefits - drug benefits are categorized into initial coverage phase, coverage gap phase, and catastrophic phase. Each phase is broken down by drug tiers, pharmacy tiers, and length of supply.
345
+
346
+ [Click here](#header-medicare-advantage-quotes) to learn more about quoting Medicare Advantage plans.
347
+
336
348
  ## Rates
337
349
 
338
350
  Rates are returned from the API as a part of [Quoting](#header-quoting). We calculate Rates in one of two ways.
@@ -614,6 +626,19 @@ Note that in contrast to [Major Medical Quotes](#majormedicalquotes), [Vision Qu
614
626
 
615
627
  Also note that [Subsidies](#subsidies) and [Cost Sharing Reduction](#costsharingreductionplans) are *not* relevant for [Vision Quotes](#visionquotes).
616
628
 
629
+ ### Medicare Advantage quotes
630
+
631
+ Given an enrollment date and location, you can search all plans available at this location using [/plans/medadv/search](#medicare-advantage-plans-medicare-advantage-plans-post); you can also search a specific plan using its plan ID with [/plans/medadv/{plan_id}](#medicare-advantage-plans-medicare-advantage-plans-get) if the plan ID is already known. The following example contains the required parameters:
632
+ ```
633
+ {
634
+ "zip_code": "02880",
635
+ "fips_code": "44009",
636
+ "enrollment_date": "2019-01-01"
637
+ }
638
+ ```
639
+ To view the technical documentation, [click here](#medicare-advantage-plans).
640
+
641
+
617
642
  ## Quotes for Groups
618
643
  A Group Quote finds [Plans](#header-plans) and [Rates](#header-rates) for a group of employees for a small business. Different [Plans](#header-plans) are available to small groups than are available in [Individual Quoting](#individualquotes). In addition, [Business Rules](#header-business-rules) that apply across multiple families or based upon employer attributes such as [SIC](https://en.wikipedia.org/wiki/Standard_Industrial_Classification) code factor into rates and availability.
619
644
 
@@ -1022,8 +1047,78 @@ module VericredClient
1022
1047
  return data, status_code, headers
1023
1048
  end
1024
1049
 
1050
+ # Provider Plans
1051
+ # Retrieve the plans a provider accepts. **New Verison:** In order to use this endpoint, please set your version header to `v7`. If you are using previous versions and want to get the list of `plan_ids` that a provider accepts, you can use the `hios_ids` key in the Provider Show `GET /providers/:npi` endpoint. #### External Id Types Plan `external_ids` are returned as a list, with each item containing both a `type` and a `value`. Below is a list of possible types: | Type | Description | | -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | | hios_id | The HIOS ID of the plan. This type will be returned for under-65 ACA medical plans. | | contract_id | A contract identifier for the plan. This will be returned for all Medicare Advantage plans and any other plan that contains external contract ids. | | package_code | A package code for the plan. This value will be returned if there is a package in which the plan is bundled. |
1052
+ # @param npi NPI number
1053
+ # @param line_of_coverage The line of coverage the plans are in. Options are `medical`, `medicare_advantage`, `dental`, or `vision`.
1054
+ # @param year The year the plans are effective in.
1055
+ # @param [Hash] opts the optional parameters
1056
+ # @option opts [String] :market The market the plans are for. Options are `individual`, `small_group`, `large_group`.
1057
+ # @return [ProviderPlans]
1058
+ def get_provider_plans(npi, line_of_coverage, year, opts = {})
1059
+ data, _status_code, _headers = get_provider_plans_with_http_info(npi, line_of_coverage, year, opts)
1060
+ return data
1061
+ end
1062
+
1063
+ # Provider Plans
1064
+ # Retrieve the plans a provider accepts. **New Verison:** In order to use this endpoint, please set your version header to `v7`. If you are using previous versions and want to get the list of `plan_ids` that a provider accepts, you can use the `hios_ids` key in the Provider Show `GET /providers/:npi` endpoint. #### External Id Types Plan `external_ids` are returned as a list, with each item containing both a `type` and a `value`. Below is a list of possible types: | Type | Description | | -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | | hios_id | The HIOS ID of the plan. This type will be returned for under-65 ACA medical plans. | | contract_id | A contract identifier for the plan. This will be returned for all Medicare Advantage plans and any other plan that contains external contract ids. | | package_code | A package code for the plan. This value will be returned if there is a package in which the plan is bundled. |
1065
+ # @param npi NPI number
1066
+ # @param line_of_coverage The line of coverage the plans are in. Options are `medical`, `medicare_advantage`, `dental`, or `vision`.
1067
+ # @param year The year the plans are effective in.
1068
+ # @param [Hash] opts the optional parameters
1069
+ # @option opts [String] :market The market the plans are for. Options are `individual`, `small_group`, `large_group`.
1070
+ # @return [Array<(ProviderPlans, Fixnum, Hash)>] ProviderPlans data, response status code and response headers
1071
+ def get_provider_plans_with_http_info(npi, line_of_coverage, year, opts = {})
1072
+ if @api_client.config.debugging
1073
+ @api_client.config.logger.debug "Calling API: ProvidersApi.get_provider_plans ..."
1074
+ end
1075
+ # verify the required parameter 'npi' is set
1076
+ fail ArgumentError, "Missing the required parameter 'npi' when calling ProvidersApi.get_provider_plans" if npi.nil?
1077
+ # verify the required parameter 'line_of_coverage' is set
1078
+ fail ArgumentError, "Missing the required parameter 'line_of_coverage' when calling ProvidersApi.get_provider_plans" if line_of_coverage.nil?
1079
+ # verify the required parameter 'year' is set
1080
+ fail ArgumentError, "Missing the required parameter 'year' when calling ProvidersApi.get_provider_plans" if year.nil?
1081
+ # resource path
1082
+ local_var_path = "/providers/{npi}/plans".sub('{format}','json').sub('{' + 'npi' + '}', npi.to_s)
1083
+
1084
+ # query parameters
1085
+ query_params = {}
1086
+ query_params[:'line_of_coverage'] = line_of_coverage
1087
+ query_params[:'year'] = year
1088
+ query_params[:'market'] = opts[:'market'] if !opts[:'market'].nil?
1089
+
1090
+ # header parameters
1091
+ header_params = {}
1092
+
1093
+ # HTTP header 'Accept' (if needed)
1094
+ local_header_accept = []
1095
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1096
+
1097
+ # HTTP header 'Content-Type'
1098
+ local_header_content_type = []
1099
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1100
+
1101
+ # form parameters
1102
+ form_params = {}
1103
+
1104
+ # http body (model)
1105
+ post_body = nil
1106
+ auth_names = ['Vericred-Api-Key']
1107
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1108
+ :header_params => header_params,
1109
+ :query_params => query_params,
1110
+ :form_params => form_params,
1111
+ :body => post_body,
1112
+ :auth_names => auth_names,
1113
+ :return_type => 'ProviderPlans')
1114
+ if @api_client.config.debugging
1115
+ @api_client.config.logger.debug "API called: ProvidersApi#get_provider_plans\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1116
+ end
1117
+ return data, status_code, headers
1118
+ end
1119
+
1025
1120
  # Find Providers
1026
- # ### Provider Details All searches can take a `search_term`, which is used as a component in the score (and thus the ranking/order) of the results. This is combined with the proximity to the location in ranking results. For example, we would want \"Dr. John Smith\" who is 5 miles away from a given Zip Code to appear before \"Dr. John Smith\" who is 100 miles away. The weighting also allows for non-exact matches. In our prior example, we would want \"Dr. Jon Smith\" who is 2 miles away to appear before the exact match \"Dr. John Smith\" who is 100 miles away because it is more likely that the user just entered an incorrect name. The free text search also supports Specialty name search and \"body part\" Specialty name search. So, searching \"John Smith nose\" would return \"Dr. John Smith\", the ENT Specialist before \"Dr. John Smith\" the Internist. In addition, we can filter `Providers` by whether or not they accept *any* insurance. Our data set includes over 4 million `Providers`, some of whom do not accept any insurance at all. This filter makes it more likely that the user will find his or her practitioner in some cases. ### Location Information All `Provider` searches that do *not* specify `plan_ids` or `network_ids`require some type of location information. We use this information either to weight results or to filter results, depending on the type. #### Zip Code When providing the `zip_code` parameter, we order the `Providers` returned based on their score, which incorporates their proximity to the given Zip Code and the closeness of match to the search text. If a `radius` is also provided, we filter out `Providers` who are outside of that radius from the center of the Zip Code provided. #### Polygon When providing the `polygon` parameter, we filter providers who are outside the bounds of the shape provided. This is mutually exclusive with `zip_code` and `radius`. ### Plan/Network Information We can also filter based on `Plan` and `Network` participation, using `plan_ids` and `network_ids`, respectively. These filters are mutually exclusive and return the union of the resulting sets for each `Plan` or `Network`. I.e. if you provider Plan A and Plan B, you will receive `Providers` who accept *either* `Plan`. The same is true for `Networks`. The plan identifiers filter supports both HIOS IDs and contract codes. ### Examples *Find Dr. Foo near Brooklyn* `{ \"search_term\": \"Foo\", \"zip_code\": \"11215\" }` *Find all Providers within 5 miles of Brooklyn who accept a Plan* `{ \"zip_code\": \"11215\", \"radius\": 5, \"plan_ids\": [\"88582NY0230001\"] }` *Find all providers on a map of Brooklyn ordered by a combination of proximity to the center point of the map and relevance to the search term \"ENT\"* ``` { \"polygon\": [ {\"lon\":-74.0126609802,\"lat\":40.6275684851 }, {\"lon\":-74.0126609802,\"lat\":40.7097269508 }, {\"lon\":-73.9367866516,\"lat\":40.7097269508 }, {\"lon\":-73.9367866516,\"lat\":40.6275684851 } ], \"search_term\" : \"ENT\" } ```
1121
+ # ### Provider Details All searches can take a `search_term`, which is used as a component in the score (and thus the ranking/order) of the results. This is combined with the proximity to the location in ranking results. For example, we would want \"Dr. John Smith\" who is 5 miles away from a given Zip Code to appear before \"Dr. John Smith\" who is 100 miles away. The weighting also allows for non-exact matches. In our prior example, we would want \"Dr. Jon Smith\" who is 2 miles away to appear before the exact match \"Dr. John Smith\" who is 100 miles away because it is more likely that the user just entered an incorrect name. The free text search also supports Specialty name search and \"body part\" Specialty name search. So, searching \"John Smith nose\" would return \"Dr. John Smith\", the ENT Specialist before \"Dr. John Smith\" the Internist. In addition, we can filter `Providers` by whether or not they accept *any* insurance. Our data set includes over 4 million `Providers`, some of whom do not accept any insurance at all. This filter makes it more likely that the user will find his or her practitioner in some cases. ### Location Information All `Provider` searches that do *not* specify `plan_ids` or `network_ids`require some type of location information. We use this information either to weight results or to filter results, depending on the type. #### Zip Code When providing the `zip_code` parameter, we order the `Providers` returned based on their score, which incorporates their proximity to the given Zip Code and the closeness of match to the search text. If a `radius` is also provided, we filter out `Providers` who are outside of that radius from the center of the Zip Code provided. #### Polygon When providing the `polygon` parameter, we filter providers who are outside the bounds of the shape provided. This is mutually exclusive with `zip_code` and `radius`. ### Specialty When providing the `specialty_ids` parameter, we filter providers to those who practice those specialties. To find the specialty_ids, please use the [Specialty Search](#specialtes-specialtes-get) endpoint. ### Plan/Network Information We can also filter based on `Plan` and `Network` participation, using `plan_ids` and `network_ids`, respectively. These filters are mutually exclusive and return the union of the resulting sets for each `Plan` or `Network`. I.e. if you provider Plan A and Plan B, you will receive `Providers` who accept *either* `Plan`. The same is true for `Networks`. The plan identifiers filter supports: Vericred plan IDs returned from the [Dental](#header-dental-quotes) and [Vision](#header-vision-quotes) endpoints, as well as, HIOS IDs and Medicare contract codes. ### Examples *Find Dr. Foo near Brooklyn* `{ \"search_term\": \"Foo\", \"zip_code\": \"11215\" }` *Find all Providers within 5 miles of Brooklyn who accept a Plan* `{ \"zip_code\": \"11215\", \"radius\": 5, \"plan_ids\": [\"88582NY0230001\"] }` *Find all providers on a map of Brooklyn ordered by a combination of proximity to the center point of the map and relevance to the search term \"ENT\"* ``` { \"polygon\": [ {\"lon\":-74.0126609802,\"lat\":40.6275684851 }, {\"lon\":-74.0126609802,\"lat\":40.7097269508 }, {\"lon\":-73.9367866516,\"lat\":40.7097269508 }, {\"lon\":-73.9367866516,\"lat\":40.6275684851 } ], \"search_term\" : \"ENT\" } ```
1027
1122
  # @param body
1028
1123
  # @param [Hash] opts the optional parameters
1029
1124
  # @return [ProvidersSearchResponse]
@@ -1033,7 +1128,7 @@ module VericredClient
1033
1128
  end
1034
1129
 
1035
1130
  # Find Providers
1036
- # ### Provider Details All searches can take a &#x60;search_term&#x60;, which is used as a component in the score (and thus the ranking/order) of the results. This is combined with the proximity to the location in ranking results. For example, we would want \&quot;Dr. John Smith\&quot; who is 5 miles away from a given Zip Code to appear before \&quot;Dr. John Smith\&quot; who is 100 miles away. The weighting also allows for non-exact matches. In our prior example, we would want \&quot;Dr. Jon Smith\&quot; who is 2 miles away to appear before the exact match \&quot;Dr. John Smith\&quot; who is 100 miles away because it is more likely that the user just entered an incorrect name. The free text search also supports Specialty name search and \&quot;body part\&quot; Specialty name search. So, searching \&quot;John Smith nose\&quot; would return \&quot;Dr. John Smith\&quot;, the ENT Specialist before \&quot;Dr. John Smith\&quot; the Internist. In addition, we can filter &#x60;Providers&#x60; by whether or not they accept *any* insurance. Our data set includes over 4 million &#x60;Providers&#x60;, some of whom do not accept any insurance at all. This filter makes it more likely that the user will find his or her practitioner in some cases. ### Location Information All &#x60;Provider&#x60; searches that do *not* specify &#x60;plan_ids&#x60; or &#x60;network_ids&#x60;require some type of location information. We use this information either to weight results or to filter results, depending on the type. #### Zip Code When providing the &#x60;zip_code&#x60; parameter, we order the &#x60;Providers&#x60; returned based on their score, which incorporates their proximity to the given Zip Code and the closeness of match to the search text. If a &#x60;radius&#x60; is also provided, we filter out &#x60;Providers&#x60; who are outside of that radius from the center of the Zip Code provided. #### Polygon When providing the &#x60;polygon&#x60; parameter, we filter providers who are outside the bounds of the shape provided. This is mutually exclusive with &#x60;zip_code&#x60; and &#x60;radius&#x60;. ### Plan/Network Information We can also filter based on &#x60;Plan&#x60; and &#x60;Network&#x60; participation, using &#x60;plan_ids&#x60; and &#x60;network_ids&#x60;, respectively. These filters are mutually exclusive and return the union of the resulting sets for each &#x60;Plan&#x60; or &#x60;Network&#x60;. I.e. if you provider Plan A and Plan B, you will receive &#x60;Providers&#x60; who accept *either* &#x60;Plan&#x60;. The same is true for &#x60;Networks&#x60;. The plan identifiers filter supports both HIOS IDs and contract codes. ### Examples *Find Dr. Foo near Brooklyn* &#x60;{ \&quot;search_term\&quot;: \&quot;Foo\&quot;, \&quot;zip_code\&quot;: \&quot;11215\&quot; }&#x60; *Find all Providers within 5 miles of Brooklyn who accept a Plan* &#x60;{ \&quot;zip_code\&quot;: \&quot;11215\&quot;, \&quot;radius\&quot;: 5, \&quot;plan_ids\&quot;: [\&quot;88582NY0230001\&quot;] }&#x60; *Find all providers on a map of Brooklyn ordered by a combination of proximity to the center point of the map and relevance to the search term \&quot;ENT\&quot;* &#x60;&#x60;&#x60; { \&quot;polygon\&quot;: [ {\&quot;lon\&quot;:-74.0126609802,\&quot;lat\&quot;:40.6275684851 }, {\&quot;lon\&quot;:-74.0126609802,\&quot;lat\&quot;:40.7097269508 }, {\&quot;lon\&quot;:-73.9367866516,\&quot;lat\&quot;:40.7097269508 }, {\&quot;lon\&quot;:-73.9367866516,\&quot;lat\&quot;:40.6275684851 } ], \&quot;search_term\&quot; : \&quot;ENT\&quot; } &#x60;&#x60;&#x60;
1131
+ # ### Provider Details All searches can take a &#x60;search_term&#x60;, which is used as a component in the score (and thus the ranking/order) of the results. This is combined with the proximity to the location in ranking results. For example, we would want \&quot;Dr. John Smith\&quot; who is 5 miles away from a given Zip Code to appear before \&quot;Dr. John Smith\&quot; who is 100 miles away. The weighting also allows for non-exact matches. In our prior example, we would want \&quot;Dr. Jon Smith\&quot; who is 2 miles away to appear before the exact match \&quot;Dr. John Smith\&quot; who is 100 miles away because it is more likely that the user just entered an incorrect name. The free text search also supports Specialty name search and \&quot;body part\&quot; Specialty name search. So, searching \&quot;John Smith nose\&quot; would return \&quot;Dr. John Smith\&quot;, the ENT Specialist before \&quot;Dr. John Smith\&quot; the Internist. In addition, we can filter &#x60;Providers&#x60; by whether or not they accept *any* insurance. Our data set includes over 4 million &#x60;Providers&#x60;, some of whom do not accept any insurance at all. This filter makes it more likely that the user will find his or her practitioner in some cases. ### Location Information All &#x60;Provider&#x60; searches that do *not* specify &#x60;plan_ids&#x60; or &#x60;network_ids&#x60;require some type of location information. We use this information either to weight results or to filter results, depending on the type. #### Zip Code When providing the &#x60;zip_code&#x60; parameter, we order the &#x60;Providers&#x60; returned based on their score, which incorporates their proximity to the given Zip Code and the closeness of match to the search text. If a &#x60;radius&#x60; is also provided, we filter out &#x60;Providers&#x60; who are outside of that radius from the center of the Zip Code provided. #### Polygon When providing the &#x60;polygon&#x60; parameter, we filter providers who are outside the bounds of the shape provided. This is mutually exclusive with &#x60;zip_code&#x60; and &#x60;radius&#x60;. ### Specialty When providing the &#x60;specialty_ids&#x60; parameter, we filter providers to those who practice those specialties. To find the specialty_ids, please use the [Specialty Search](#specialtes-specialtes-get) endpoint. ### Plan/Network Information We can also filter based on &#x60;Plan&#x60; and &#x60;Network&#x60; participation, using &#x60;plan_ids&#x60; and &#x60;network_ids&#x60;, respectively. These filters are mutually exclusive and return the union of the resulting sets for each &#x60;Plan&#x60; or &#x60;Network&#x60;. I.e. if you provider Plan A and Plan B, you will receive &#x60;Providers&#x60; who accept *either* &#x60;Plan&#x60;. The same is true for &#x60;Networks&#x60;. The plan identifiers filter supports: Vericred plan IDs returned from the [Dental](#header-dental-quotes) and [Vision](#header-vision-quotes) endpoints, as well as, HIOS IDs and Medicare contract codes. ### Examples *Find Dr. Foo near Brooklyn* &#x60;{ \&quot;search_term\&quot;: \&quot;Foo\&quot;, \&quot;zip_code\&quot;: \&quot;11215\&quot; }&#x60; *Find all Providers within 5 miles of Brooklyn who accept a Plan* &#x60;{ \&quot;zip_code\&quot;: \&quot;11215\&quot;, \&quot;radius\&quot;: 5, \&quot;plan_ids\&quot;: [\&quot;88582NY0230001\&quot;] }&#x60; *Find all providers on a map of Brooklyn ordered by a combination of proximity to the center point of the map and relevance to the search term \&quot;ENT\&quot;* &#x60;&#x60;&#x60; { \&quot;polygon\&quot;: [ {\&quot;lon\&quot;:-74.0126609802,\&quot;lat\&quot;:40.6275684851 }, {\&quot;lon\&quot;:-74.0126609802,\&quot;lat\&quot;:40.7097269508 }, {\&quot;lon\&quot;:-73.9367866516,\&quot;lat\&quot;:40.7097269508 }, {\&quot;lon\&quot;:-73.9367866516,\&quot;lat\&quot;:40.6275684851 } ], \&quot;search_term\&quot; : \&quot;ENT\&quot; } &#x60;&#x60;&#x60;
1037
1132
  # @param body
1038
1133
  # @param [Hash] opts the optional parameters
1039
1134
  # @return [Array<(ProvidersSearchResponse, Fixnum, Hash)>] ProvidersSearchResponse data, response status code and response headers
@@ -23,16 +23,18 @@ which we make available for several common programming languages.
23
23
  To authenticate, pass the API Key you created in the Developer Portal as
24
24
  a `Vericred-Api-Key` header.
25
25
 
26
- `curl -H 'Vericred-Api-Key: YOUR_KEY' "https://api.vericred.com/providers?search_term=Foo&zip_code=11215"`
26
+ `curl -H 'Vericred-Api-Key: YOUR_KEY' "https://api.vericred.com/drugs?search_term=Lipitor"`
27
27
 
28
28
  ## Versioning
29
29
 
30
30
  Vericred's API default to the latest version. However, if you need a specific
31
31
  version, you can request it with an `Accept-Version` header.
32
32
 
33
- The current version is `v4`. We also support `v2` and `v3`
33
+ The current version is `v6`. We support prior versions. Our latest
34
+ stable version is `v7` and we will indicate in the documentation for an
35
+ endpoint if it's required.
34
36
 
35
- `curl -H 'Vericred-Api-Key: YOUR_KEY' -H 'Accept-Version: v3' "https://api.vericred.com/providers?search_term=Foo&zip_code=11215"`
37
+ `curl -H 'Vericred-Api-Key: YOUR_KEY' -H 'Accept-Version: v6' "https://api.vericred.com/drugs?search_term=Lipitor"`
36
38
 
37
39
  ## Pagination
38
40
 
@@ -95,14 +97,14 @@ We also want the `name` and `code` from the `states` key, so we would
95
97
  add the parameters `select=states.name,states.code`. The id field of
96
98
  each document is always returned whether or not it is requested.
97
99
 
98
- Our final request would be `GET /providers/12345?select=provider.name,provider.phone,states.name,states.code`
100
+ Our final request would be `GET /providers/1234567898?select=provider.name,provider.phone,states.name,states.code`
99
101
 
100
102
  The response would be
101
103
 
102
104
  ```
103
105
  {
104
106
  provider: {
105
- id: 1,
107
+ id: 1234567898,
106
108
  name: 'John',
107
109
  phone: '1234567890'
108
110
  },
@@ -333,6 +335,16 @@ The following are the supported Benefit Fields for Vision:
333
335
  - laser\_vision\_correction
334
336
  - additional\_pairs\_of\_eyeglasses
335
337
 
338
+ ### Medicare Advantage
339
+
340
+ Medicare Advantage endpoints support MA (Medicare Advantage plans without prescription drug benefits), MAPD (Medicare Advantage plans with prescription drug benefits), and PDP (prescription drug benefits only) plans.
341
+
342
+ Medical and hospital benefits - we support over 4000 individual plans through our API nationwide. At this time, we do not support EGHP (employer group health plans).
343
+
344
+ Prescription drug benefits - drug benefits are categorized into initial coverage phase, coverage gap phase, and catastrophic phase. Each phase is broken down by drug tiers, pharmacy tiers, and length of supply.
345
+
346
+ [Click here](#header-medicare-advantage-quotes) to learn more about quoting Medicare Advantage plans.
347
+
336
348
  ## Rates
337
349
 
338
350
  Rates are returned from the API as a part of [Quoting](#header-quoting). We calculate Rates in one of two ways.
@@ -614,6 +626,19 @@ Note that in contrast to [Major Medical Quotes](#majormedicalquotes), [Vision Qu
614
626
 
615
627
  Also note that [Subsidies](#subsidies) and [Cost Sharing Reduction](#costsharingreductionplans) are *not* relevant for [Vision Quotes](#visionquotes).
616
628
 
629
+ ### Medicare Advantage quotes
630
+
631
+ Given an enrollment date and location, you can search all plans available at this location using [/plans/medadv/search](#medicare-advantage-plans-medicare-advantage-plans-post); you can also search a specific plan using its plan ID with [/plans/medadv/{plan_id}](#medicare-advantage-plans-medicare-advantage-plans-get) if the plan ID is already known. The following example contains the required parameters:
632
+ ```
633
+ {
634
+ "zip_code": "02880",
635
+ "fips_code": "44009",
636
+ "enrollment_date": "2019-01-01"
637
+ }
638
+ ```
639
+ To view the technical documentation, [click here](#medicare-advantage-plans).
640
+
641
+
617
642
  ## Quotes for Groups
618
643
  A Group Quote finds [Plans](#header-plans) and [Rates](#header-rates) for a group of employees for a small business. Different [Plans](#header-plans) are available to small groups than are available in [Individual Quoting](#individualquotes). In addition, [Business Rules](#header-business-rules) that apply across multiple families or based upon employer attributes such as [SIC](https://en.wikipedia.org/wiki/Standard_Industrial_Classification) code factor into rates and availability.
619
644
 
@@ -23,16 +23,18 @@ which we make available for several common programming languages.
23
23
  To authenticate, pass the API Key you created in the Developer Portal as
24
24
  a `Vericred-Api-Key` header.
25
25
 
26
- `curl -H 'Vericred-Api-Key: YOUR_KEY' "https://api.vericred.com/providers?search_term=Foo&zip_code=11215"`
26
+ `curl -H 'Vericred-Api-Key: YOUR_KEY' "https://api.vericred.com/drugs?search_term=Lipitor"`
27
27
 
28
28
  ## Versioning
29
29
 
30
30
  Vericred's API default to the latest version. However, if you need a specific
31
31
  version, you can request it with an `Accept-Version` header.
32
32
 
33
- The current version is `v4`. We also support `v2` and `v3`
33
+ The current version is `v6`. We support prior versions. Our latest
34
+ stable version is `v7` and we will indicate in the documentation for an
35
+ endpoint if it's required.
34
36
 
35
- `curl -H 'Vericred-Api-Key: YOUR_KEY' -H 'Accept-Version: v3' "https://api.vericred.com/providers?search_term=Foo&zip_code=11215"`
37
+ `curl -H 'Vericred-Api-Key: YOUR_KEY' -H 'Accept-Version: v6' "https://api.vericred.com/drugs?search_term=Lipitor"`
36
38
 
37
39
  ## Pagination
38
40
 
@@ -95,14 +97,14 @@ We also want the `name` and `code` from the `states` key, so we would
95
97
  add the parameters `select=states.name,states.code`. The id field of
96
98
  each document is always returned whether or not it is requested.
97
99
 
98
- Our final request would be `GET /providers/12345?select=provider.name,provider.phone,states.name,states.code`
100
+ Our final request would be `GET /providers/1234567898?select=provider.name,provider.phone,states.name,states.code`
99
101
 
100
102
  The response would be
101
103
 
102
104
  ```
103
105
  {
104
106
  provider: {
105
- id: 1,
107
+ id: 1234567898,
106
108
  name: 'John',
107
109
  phone: '1234567890'
108
110
  },
@@ -333,6 +335,16 @@ The following are the supported Benefit Fields for Vision:
333
335
  - laser\_vision\_correction
334
336
  - additional\_pairs\_of\_eyeglasses
335
337
 
338
+ ### Medicare Advantage
339
+
340
+ Medicare Advantage endpoints support MA (Medicare Advantage plans without prescription drug benefits), MAPD (Medicare Advantage plans with prescription drug benefits), and PDP (prescription drug benefits only) plans.
341
+
342
+ Medical and hospital benefits - we support over 4000 individual plans through our API nationwide. At this time, we do not support EGHP (employer group health plans).
343
+
344
+ Prescription drug benefits - drug benefits are categorized into initial coverage phase, coverage gap phase, and catastrophic phase. Each phase is broken down by drug tiers, pharmacy tiers, and length of supply.
345
+
346
+ [Click here](#header-medicare-advantage-quotes) to learn more about quoting Medicare Advantage plans.
347
+
336
348
  ## Rates
337
349
 
338
350
  Rates are returned from the API as a part of [Quoting](#header-quoting). We calculate Rates in one of two ways.
@@ -614,6 +626,19 @@ Note that in contrast to [Major Medical Quotes](#majormedicalquotes), [Vision Qu
614
626
 
615
627
  Also note that [Subsidies](#subsidies) and [Cost Sharing Reduction](#costsharingreductionplans) are *not* relevant for [Vision Quotes](#visionquotes).
616
628
 
629
+ ### Medicare Advantage quotes
630
+
631
+ Given an enrollment date and location, you can search all plans available at this location using [/plans/medadv/search](#medicare-advantage-plans-medicare-advantage-plans-post); you can also search a specific plan using its plan ID with [/plans/medadv/{plan_id}](#medicare-advantage-plans-medicare-advantage-plans-get) if the plan ID is already known. The following example contains the required parameters:
632
+ ```
633
+ {
634
+ "zip_code": "02880",
635
+ "fips_code": "44009",
636
+ "enrollment_date": "2019-01-01"
637
+ }
638
+ ```
639
+ To view the technical documentation, [click here](#medicare-advantage-plans).
640
+
641
+
617
642
  ## Quotes for Groups
618
643
  A Group Quote finds [Plans](#header-plans) and [Rates](#header-rates) for a group of employees for a small business. Different [Plans](#header-plans) are available to small groups than are available in [Individual Quoting](#individualquotes). In addition, [Business Rules](#header-business-rules) that apply across multiple families or based upon employer attributes such as [SIC](https://en.wikipedia.org/wiki/Standard_Industrial_Classification) code factor into rates and availability.
619
644