vericred_client 0.0.23 → 0.0.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (476) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +826 -28
  3. data/docs/ACAPlan.md +35 -35
  4. data/docs/ACAPlan2018.md +36 -36
  5. data/docs/ACAPlan2018SearchResponse.md +1 -1
  6. data/docs/ACAPlan2018SearchResult.md +39 -39
  7. data/docs/ACAPlanPre2018.md +35 -35
  8. data/docs/ACAPlanPre2018SearchResponse.md +1 -1
  9. data/docs/ACAPlanPre2018SearchResult.md +38 -38
  10. data/docs/Address.md +14 -0
  11. data/docs/AncillaryPlanIdentifier.md +9 -0
  12. data/docs/BasePlanSearchResponse.md +1 -1
  13. data/docs/CarrierGroupRequest.md +1 -1
  14. data/docs/CarrierRequest.md +2 -2
  15. data/docs/CarrierSubsidiary.md +2 -2
  16. data/docs/CarrierVerificationDentalPlansApi.md +63 -0
  17. data/docs/CarrierVerificationMedicalPlansApi.md +63 -0
  18. data/docs/CarrierVerificationVisionPlansApi.md +63 -0
  19. data/docs/County.md +1 -1
  20. data/docs/CountyBulk.md +1 -1
  21. data/docs/DentalPlan.md +7 -7
  22. data/docs/DentalPlanBenefits.md +22 -22
  23. data/docs/DentalPlanSearchRequest.md +1 -2
  24. data/docs/DentalPlanUpdate.md +5 -5
  25. data/docs/DentalPlansApi.md +118 -4
  26. data/docs/DependentCreate.md +12 -0
  27. data/docs/DependentCreateRequest.md +12 -0
  28. data/docs/DependentShow.md +12 -0
  29. data/docs/Drug.md +3 -3
  30. data/docs/DrugCoverage.md +3 -3
  31. data/docs/DrugCoverageResponse.md +2 -2
  32. data/docs/DrugPackage.md +1 -1
  33. data/docs/DrugSearchResponse.md +2 -2
  34. data/docs/EmbargoRequest.md +3 -2
  35. data/docs/FormularyResponse.md +1 -1
  36. data/docs/GroupCreate.md +14 -0
  37. data/docs/GroupCreateRequest.md +9 -0
  38. data/docs/GroupCreateResponse.md +9 -0
  39. data/docs/GroupShow.md +15 -0
  40. data/docs/GroupShowResponse.md +9 -0
  41. data/docs/GroupUpdate.md +14 -0
  42. data/docs/GroupUpdateRequest.md +9 -0
  43. data/docs/IssuerRequest.md +7 -7
  44. data/docs/LocationCreate.md +13 -0
  45. data/docs/LocationShow.md +14 -0
  46. data/docs/LocationUpdate.md +14 -0
  47. data/docs/MajorMedicalPlansApi.md +122 -0
  48. data/docs/MedicalPlanBenefits.md +35 -35
  49. data/docs/MedicalPlanUpdate.md +21 -20
  50. data/docs/MedicalPlansApi.md +0 -114
  51. data/docs/MedicareAdvantagePlan.md +25 -0
  52. data/docs/MedicareAdvantagePlanBenefits.md +148 -0
  53. data/docs/MedicareAdvantagePlanSearchRequest.md +12 -0
  54. data/docs/MedicareAdvantagePlanSearchResponse.md +9 -0
  55. data/docs/MedicareAdvantagePlanShowResponse.md +8 -0
  56. data/docs/MemberCreate.md +17 -0
  57. data/docs/MemberRateShow.md +13 -0
  58. data/docs/MemberRateShowRequest.md +10 -0
  59. data/docs/MemberRatesShowResponse.md +9 -0
  60. data/docs/MemberShow.md +18 -0
  61. data/docs/MembersCreateRequest.md +9 -0
  62. data/docs/MembersCreateResponse.md +8 -0
  63. data/docs/MembersShowResponse.md +8 -0
  64. data/docs/MetaPlanSearchResponse.md +1 -1
  65. data/docs/NetworkComparisonResponse.md +1 -1
  66. data/docs/NetworkDetails.md +1 -1
  67. data/docs/NetworkSize.md +1 -1
  68. data/docs/NetworksApi.md +17 -12
  69. data/docs/PlanCounty.md +1 -1
  70. data/docs/PlanCountyBulk.md +1 -1
  71. data/docs/PlanMedicare.md +1 -1
  72. data/docs/PlanMedicareBulk.md +2 -2
  73. data/docs/PlanPricingMedicare.md +3 -3
  74. data/docs/PlanSearchResponse.md +1 -1
  75. data/docs/PlansApi.md +0 -169
  76. data/docs/PlansBulkACA2018.md +8 -0
  77. data/docs/PlansBulkACAPre2018.md +8 -0
  78. data/docs/PlansBulkBase.md +7 -0
  79. data/docs/PlansBulkDental.md +7 -0
  80. data/docs/PlansBulkVision.md +7 -0
  81. data/docs/Provider.md +2 -2
  82. data/docs/ProviderDetails.md +5 -3
  83. data/docs/ProviderNetworkEventNotification.md +3 -3
  84. data/docs/ProviderNetworks.md +11 -0
  85. data/docs/ProviderShowResponse.md +1 -1
  86. data/docs/ProvidersApi.md +1 -56
  87. data/docs/QuoteCreate.md +15 -0
  88. data/docs/QuoteCreateRequest.md +8 -0
  89. data/docs/QuoteCreateResponse.md +8 -0
  90. data/docs/QuoteShow.md +17 -0
  91. data/docs/QuoteShowResponse.md +8 -0
  92. data/docs/QuotingApi.md +344 -0
  93. data/docs/RateRequest.md +24 -24
  94. data/docs/RateSearch.md +23 -18
  95. data/docs/RateShow.md +12 -0
  96. data/docs/RateShowRequest.md +10 -0
  97. data/docs/RatesShowResponse.md +9 -0
  98. data/docs/RequestPlanFind.md +2 -2
  99. data/docs/RequestPlanFindCarrierVerification.md +3 -3
  100. data/docs/RequestProviderNotificationSubscription.md +1 -1
  101. data/docs/RequestProvidersSearch.md +1 -1
  102. data/docs/RequestRatesSearch.md +1 -1
  103. data/docs/RxCuiIdentifier.md +1 -1
  104. data/docs/RxCuiIdentifierSearchResponse.md +1 -1
  105. data/docs/State.md +2 -2
  106. data/docs/SupplementalOptions.md +13 -0
  107. data/docs/V7Network.md +10 -0
  108. data/docs/V7NetworkComparisonResponse.md +9 -0
  109. data/docs/V7NetworkDetails.md +11 -0
  110. data/docs/V7NetworkDetailsResponse.md +8 -0
  111. data/docs/V7NetworkSearchResponse.md +9 -0
  112. data/docs/V7ProviderDetails.md +33 -0
  113. data/docs/V7ProviderNetworks.md +12 -0
  114. data/docs/VisionPlan.md +7 -7
  115. data/docs/VisionPlanBenefits.md +22 -15
  116. data/docs/VisionPlanSearchRequest.md +1 -2
  117. data/docs/VisionPlanUpdate.md +5 -5
  118. data/docs/VisionPlansApi.md +114 -0
  119. data/docs/ZipCountiesResponse.md +1 -1
  120. data/docs/ZipCountyBulk.md +1 -1
  121. data/lib/vericred_client/api/carrier_groups_api.rb +754 -15
  122. data/lib/vericred_client/api/carrier_verification_dental_plans_api.rb +1026 -0
  123. data/lib/vericred_client/api/carrier_verification_medical_plans_api.rb +1026 -0
  124. data/lib/vericred_client/api/carrier_verification_plans_api.rb +754 -15
  125. data/lib/vericred_client/api/carrier_verification_vision_plans_api.rb +1026 -0
  126. data/lib/vericred_client/api/carriers_api.rb +754 -15
  127. data/lib/vericred_client/api/dental_plans_api.rb +874 -18
  128. data/lib/vericred_client/api/drug_coverages_api.rb +754 -15
  129. data/lib/vericred_client/api/drug_packages_api.rb +754 -15
  130. data/lib/vericred_client/api/drugs_api.rb +754 -15
  131. data/lib/vericred_client/api/embargoes_api.rb +754 -15
  132. data/lib/vericred_client/api/formularies_api.rb +754 -15
  133. data/lib/vericred_client/api/issuers_api.rb +754 -15
  134. data/lib/vericred_client/api/major_medical_plans_api.rb +1086 -0
  135. data/lib/vericred_client/api/medical_plans_api.rb +754 -132
  136. data/lib/vericred_client/api/network_sizes_api.rb +754 -15
  137. data/lib/vericred_client/api/networks_api.rb +773 -27
  138. data/lib/vericred_client/api/plans_api.rb +754 -189
  139. data/lib/vericred_client/api/provider_notification_subscriptions_api.rb +754 -15
  140. data/lib/vericred_client/api/providers_api.rb +756 -74
  141. data/lib/vericred_client/api/quoting_api.rb +1316 -0
  142. data/lib/vericred_client/api/rates_api.rb +754 -15
  143. data/lib/vericred_client/api/vision_plans_api.rb +871 -15
  144. data/lib/vericred_client/api/zip_counties_api.rb +754 -15
  145. data/lib/vericred_client/api_client.rb +754 -15
  146. data/lib/vericred_client/api_error.rb +754 -15
  147. data/lib/vericred_client/configuration.rb +754 -15
  148. data/lib/vericred_client/models/aca_plan.rb +1165 -426
  149. data/lib/vericred_client/models/aca_plan2018.rb +1174 -435
  150. data/lib/vericred_client/models/aca_plan2018_search_response.rb +765 -26
  151. data/lib/vericred_client/models/aca_plan2018_search_result.rb +1203 -464
  152. data/lib/vericred_client/models/aca_plan2018_show_response.rb +754 -15
  153. data/lib/vericred_client/models/aca_plan_pre2018.rb +1165 -426
  154. data/lib/vericred_client/models/aca_plan_pre2018_search_response.rb +765 -26
  155. data/lib/vericred_client/models/aca_plan_pre2018_search_result.rb +1202 -463
  156. data/lib/vericred_client/models/aca_plan_pre2018_show_response.rb +754 -15
  157. data/lib/vericred_client/models/address.rb +1195 -0
  158. data/lib/vericred_client/models/ancillary_plan_identifier.rb +1145 -0
  159. data/lib/vericred_client/models/base.rb +754 -15
  160. data/lib/vericred_client/models/base_plan_search_response.rb +768 -29
  161. data/lib/vericred_client/models/carrier.rb +754 -15
  162. data/lib/vericred_client/models/carrier_group_request.rb +765 -26
  163. data/lib/vericred_client/models/carrier_request.rb +769 -30
  164. data/lib/vericred_client/models/carrier_subsidiary.rb +778 -39
  165. data/lib/vericred_client/models/county.rb +765 -26
  166. data/lib/vericred_client/models/county_bulk.rb +768 -29
  167. data/lib/vericred_client/models/dental_plan.rb +825 -86
  168. data/lib/vericred_client/models/dental_plan_benefits.rb +927 -188
  169. data/lib/vericred_client/models/dental_plan_search_applicant.rb +754 -15
  170. data/lib/vericred_client/models/dental_plan_search_request.rb +768 -39
  171. data/lib/vericred_client/models/dental_plan_search_response.rb +754 -15
  172. data/lib/vericred_client/models/dental_plan_show_response.rb +754 -15
  173. data/lib/vericred_client/models/dental_plan_update.rb +804 -65
  174. data/lib/vericred_client/models/dental_plan_update_request.rb +754 -15
  175. data/lib/vericred_client/models/dependent_create.rb +1175 -0
  176. data/lib/vericred_client/models/dependent_create_request.rb +1175 -0
  177. data/lib/vericred_client/models/dependent_show.rb +1175 -0
  178. data/lib/vericred_client/models/drug.rb +781 -42
  179. data/lib/vericred_client/models/drug_coverage.rb +781 -42
  180. data/lib/vericred_client/models/drug_coverage_response.rb +769 -30
  181. data/lib/vericred_client/models/drug_package.rb +765 -26
  182. data/lib/vericred_client/models/drug_search_response.rb +771 -32
  183. data/lib/vericred_client/models/embargo_request.rb +790 -39
  184. data/lib/vericred_client/models/formulary.rb +754 -15
  185. data/lib/vericred_client/models/formulary_drug_package_response.rb +754 -15
  186. data/lib/vericred_client/models/formulary_response.rb +768 -29
  187. data/lib/vericred_client/models/group_create.rb +1195 -0
  188. data/lib/vericred_client/models/group_create_request.rb +1147 -0
  189. data/lib/vericred_client/models/group_create_response.rb +1147 -0
  190. data/lib/vericred_client/models/group_show.rb +1205 -0
  191. data/lib/vericred_client/models/group_show_response.rb +1147 -0
  192. data/lib/vericred_client/models/group_update.rb +1195 -0
  193. data/lib/vericred_client/models/group_update_request.rb +1147 -0
  194. data/lib/vericred_client/models/issuer_request.rb +819 -80
  195. data/lib/vericred_client/models/location_create.rb +1185 -0
  196. data/lib/vericred_client/models/location_show.rb +1195 -0
  197. data/lib/vericred_client/models/location_update.rb +1195 -0
  198. data/lib/vericred_client/models/medical_plan_benefits.rb +1084 -345
  199. data/lib/vericred_client/models/medical_plan_update.rb +930 -181
  200. data/lib/vericred_client/models/medical_plan_update_request.rb +754 -15
  201. data/lib/vericred_client/models/medicare_advantage_plan.rb +1309 -0
  202. data/lib/vericred_client/models/medicare_advantage_plan_benefits.rb +2535 -0
  203. data/lib/vericred_client/models/medicare_advantage_plan_search_request.rb +1175 -0
  204. data/lib/vericred_client/models/medicare_advantage_plan_search_response.rb +1147 -0
  205. data/lib/vericred_client/models/medicare_advantage_plan_show_response.rb +1135 -0
  206. data/lib/vericred_client/models/member_create.rb +1227 -0
  207. data/lib/vericred_client/models/member_rate_show.rb +1185 -0
  208. data/lib/vericred_client/models/member_rate_show_request.rb +1155 -0
  209. data/lib/vericred_client/models/member_rates_show_response.rb +1147 -0
  210. data/lib/vericred_client/models/member_show.rb +1237 -0
  211. data/lib/vericred_client/models/members_create_request.rb +1147 -0
  212. data/lib/vericred_client/models/members_create_response.rb +1137 -0
  213. data/lib/vericred_client/models/members_show_response.rb +1137 -0
  214. data/lib/vericred_client/models/meta.rb +754 -15
  215. data/lib/vericred_client/models/meta_plan_search_response.rb +768 -29
  216. data/lib/vericred_client/models/network.rb +754 -15
  217. data/lib/vericred_client/models/network_comparison.rb +754 -15
  218. data/lib/vericred_client/models/network_comparison_request.rb +754 -15
  219. data/lib/vericred_client/models/network_comparison_response.rb +770 -31
  220. data/lib/vericred_client/models/network_details.rb +770 -31
  221. data/lib/vericred_client/models/network_details_response.rb +754 -15
  222. data/lib/vericred_client/models/network_search_response.rb +754 -15
  223. data/lib/vericred_client/models/network_size.rb +765 -26
  224. data/lib/vericred_client/models/notification_subscription.rb +754 -15
  225. data/lib/vericred_client/models/notification_subscription_response.rb +754 -15
  226. data/lib/vericred_client/models/plan.rb +754 -15
  227. data/lib/vericred_client/models/plan_county.rb +768 -29
  228. data/lib/vericred_client/models/plan_county_bulk.rb +768 -29
  229. data/lib/vericred_client/models/plan_deleted.rb +754 -15
  230. data/lib/vericred_client/models/plan_identifier.rb +754 -15
  231. data/lib/vericred_client/models/plan_medicare.rb +768 -29
  232. data/lib/vericred_client/models/plan_medicare_bulk.rb +775 -36
  233. data/lib/vericred_client/models/plan_pricing_medicare.rb +782 -43
  234. data/lib/vericred_client/models/plan_search_response.rb +765 -26
  235. data/lib/vericred_client/models/plan_show_response.rb +754 -15
  236. data/lib/vericred_client/models/plans_bulk_aca2018.rb +1135 -0
  237. data/lib/vericred_client/models/plans_bulk_aca_pre2018.rb +1135 -0
  238. data/lib/vericred_client/models/plans_bulk_base.rb +1125 -0
  239. data/lib/vericred_client/models/plans_bulk_dental.rb +1125 -0
  240. data/lib/vericred_client/models/plans_bulk_vision.rb +1125 -0
  241. data/lib/vericred_client/models/provider.rb +780 -41
  242. data/lib/vericred_client/models/provider_details.rb +813 -50
  243. data/lib/vericred_client/models/provider_geocode.rb +754 -15
  244. data/lib/vericred_client/models/provider_network_event_notification.rb +790 -51
  245. data/lib/vericred_client/models/provider_networks.rb +1165 -0
  246. data/lib/vericred_client/models/provider_show_response.rb +755 -16
  247. data/lib/vericred_client/models/providers_geocode_response.rb +754 -15
  248. data/lib/vericred_client/models/providers_search_response.rb +754 -15
  249. data/lib/vericred_client/models/quote_create.rb +1207 -0
  250. data/lib/vericred_client/models/quote_create_request.rb +1135 -0
  251. data/lib/vericred_client/models/quote_create_response.rb +1135 -0
  252. data/lib/vericred_client/models/quote_show.rb +1227 -0
  253. data/lib/vericred_client/models/quote_show_response.rb +1135 -0
  254. data/lib/vericred_client/models/rate_request.rb +990 -251
  255. data/lib/vericred_client/models/rate_search.rb +978 -189
  256. data/lib/vericred_client/models/rate_show.rb +1175 -0
  257. data/lib/vericred_client/models/rate_show_request.rb +1155 -0
  258. data/lib/vericred_client/models/rates_show_response.rb +1147 -0
  259. data/lib/vericred_client/models/rating_area.rb +754 -15
  260. data/lib/vericred_client/models/request_plan_find.rb +777 -38
  261. data/lib/vericred_client/models/request_plan_find_applicant.rb +754 -15
  262. data/lib/vericred_client/models/request_plan_find_carrier_verification.rb +792 -53
  263. data/lib/vericred_client/models/request_plan_find_drug_package.rb +754 -15
  264. data/lib/vericred_client/models/request_plan_find_provider.rb +754 -15
  265. data/lib/vericred_client/models/request_provider_notification_subscription.rb +768 -29
  266. data/lib/vericred_client/models/request_providers_search.rb +767 -26
  267. data/lib/vericred_client/models/request_rates_search.rb +768 -29
  268. data/lib/vericred_client/models/response_rates_search.rb +754 -15
  269. data/lib/vericred_client/models/rx_cui_identifier.rb +765 -26
  270. data/lib/vericred_client/models/rx_cui_identifier_search_response.rb +768 -29
  271. data/lib/vericred_client/models/service_area.rb +754 -15
  272. data/lib/vericred_client/models/service_area_zip_county.rb +754 -15
  273. data/lib/vericred_client/models/state.rb +778 -39
  274. data/lib/vericred_client/models/state_network_size_request.rb +754 -15
  275. data/lib/vericred_client/models/state_network_size_response.rb +754 -15
  276. data/lib/vericred_client/models/supplemental_options.rb +1187 -0
  277. data/lib/vericred_client/models/v7_network.rb +1155 -0
  278. data/lib/vericred_client/models/v7_network_comparison_response.rb +1149 -0
  279. data/lib/vericred_client/models/v7_network_details.rb +1167 -0
  280. data/lib/vericred_client/models/v7_network_details_response.rb +1135 -0
  281. data/lib/vericred_client/models/v7_network_search_response.rb +1147 -0
  282. data/lib/vericred_client/models/v7_provider_details.rb +1395 -0
  283. data/lib/vericred_client/models/v7_provider_networks.rb +1175 -0
  284. data/lib/vericred_client/models/vision_plan.rb +825 -86
  285. data/lib/vericred_client/models/vision_plan_benefits.rb +937 -128
  286. data/lib/vericred_client/models/vision_plan_search_applicant.rb +754 -15
  287. data/lib/vericred_client/models/vision_plan_search_request.rb +768 -39
  288. data/lib/vericred_client/models/vision_plan_search_response.rb +754 -15
  289. data/lib/vericred_client/models/vision_plan_show_response.rb +754 -15
  290. data/lib/vericred_client/models/vision_plan_update.rb +804 -65
  291. data/lib/vericred_client/models/vision_plan_update_request.rb +754 -15
  292. data/lib/vericred_client/models/zip_code.rb +754 -15
  293. data/lib/vericred_client/models/zip_counties_response.rb +770 -31
  294. data/lib/vericred_client/models/zip_county.rb +754 -15
  295. data/lib/vericred_client/models/zip_county_bulk.rb +765 -26
  296. data/lib/vericred_client/models/zip_county_response.rb +754 -15
  297. data/lib/vericred_client/version.rb +755 -16
  298. data/lib/vericred_client.rb +809 -15
  299. data/spec/api/carrier_groups_api_spec.rb +754 -15
  300. data/spec/api/carrier_verification_dental_plans_api_spec.rb +993 -0
  301. data/spec/api/carrier_verification_medical_plans_api_spec.rb +993 -0
  302. data/spec/api/carrier_verification_plans_api_spec.rb +754 -15
  303. data/spec/api/carrier_verification_vision_plans_api_spec.rb +993 -0
  304. data/spec/api/carriers_api_spec.rb +754 -15
  305. data/spec/api/dental_plans_api_spec.rb +780 -16
  306. data/spec/api/drug_coverages_api_spec.rb +754 -15
  307. data/spec/api/drug_packages_api_spec.rb +754 -15
  308. data/spec/api/drugs_api_spec.rb +754 -15
  309. data/spec/api/embargoes_api_spec.rb +754 -15
  310. data/spec/api/formularies_api_spec.rb +754 -15
  311. data/spec/api/issuers_api_spec.rb +754 -15
  312. data/spec/api/major_medical_plans_api_spec.rb +1006 -0
  313. data/spec/api/medical_plans_api_spec.rb +754 -40
  314. data/spec/api/network_sizes_api_spec.rb +754 -15
  315. data/spec/api/networks_api_spec.rb +760 -18
  316. data/spec/api/plans_api_spec.rb +754 -52
  317. data/spec/api/provider_notification_subscriptions_api_spec.rb +754 -15
  318. data/spec/api/providers_api_spec.rb +755 -28
  319. data/spec/api/quoting_api_spec.rb +1055 -0
  320. data/spec/api/rates_api_spec.rb +754 -15
  321. data/spec/api/vision_plans_api_spec.rb +779 -15
  322. data/spec/api/zip_counties_api_spec.rb +754 -15
  323. data/spec/api_client_spec.rb +754 -15
  324. data/spec/configuration_spec.rb +754 -15
  325. data/spec/models/aca_plan2018_search_response_spec.rb +756 -17
  326. data/spec/models/aca_plan2018_search_result_spec.rb +839 -100
  327. data/spec/models/aca_plan2018_show_response_spec.rb +754 -15
  328. data/spec/models/aca_plan2018_spec.rb +843 -104
  329. data/spec/models/aca_plan_pre2018_search_response_spec.rb +756 -17
  330. data/spec/models/aca_plan_pre2018_search_result_spec.rb +839 -100
  331. data/spec/models/aca_plan_pre2018_show_response_spec.rb +754 -15
  332. data/spec/models/aca_plan_pre2018_spec.rb +837 -98
  333. data/spec/models/aca_plan_spec.rb +837 -98
  334. data/spec/models/address_spec.rb +1024 -0
  335. data/spec/models/ancillary_plan_identifier_spec.rb +994 -0
  336. data/spec/models/base_plan_search_response_spec.rb +756 -17
  337. data/spec/models/base_spec.rb +754 -15
  338. data/spec/models/carrier_group_request_spec.rb +756 -17
  339. data/spec/models/carrier_request_spec.rb +756 -17
  340. data/spec/models/carrier_spec.rb +754 -15
  341. data/spec/models/carrier_subsidiary_spec.rb +758 -19
  342. data/spec/models/county_bulk_spec.rb +757 -18
  343. data/spec/models/county_spec.rb +756 -17
  344. data/spec/models/dental_plan_benefits_spec.rb +782 -43
  345. data/spec/models/dental_plan_search_applicant_spec.rb +754 -15
  346. data/spec/models/dental_plan_search_request_spec.rb +758 -25
  347. data/spec/models/dental_plan_search_response_spec.rb +754 -15
  348. data/spec/models/dental_plan_show_response_spec.rb +754 -15
  349. data/spec/models/dental_plan_spec.rb +767 -28
  350. data/spec/models/dental_plan_update_request_spec.rb +754 -15
  351. data/spec/models/dental_plan_update_spec.rb +763 -24
  352. data/spec/models/dependent_create_request_spec.rb +1012 -0
  353. data/spec/models/dependent_create_spec.rb +1012 -0
  354. data/spec/models/dependent_show_spec.rb +1012 -0
  355. data/spec/models/drug_coverage_response_spec.rb +756 -17
  356. data/spec/models/drug_coverage_spec.rb +758 -19
  357. data/spec/models/drug_package_spec.rb +756 -17
  358. data/spec/models/drug_search_response_spec.rb +756 -17
  359. data/spec/models/drug_spec.rb +758 -19
  360. data/spec/models/embargo_request_spec.rb +766 -21
  361. data/spec/models/formulary_drug_package_response_spec.rb +754 -15
  362. data/spec/models/formulary_response_spec.rb +756 -17
  363. data/spec/models/formulary_spec.rb +754 -15
  364. data/spec/models/group_create_request_spec.rb +994 -0
  365. data/spec/models/group_create_response_spec.rb +994 -0
  366. data/spec/models/group_create_spec.rb +1024 -0
  367. data/spec/models/group_show_response_spec.rb +994 -0
  368. data/spec/models/group_show_spec.rb +1030 -0
  369. data/spec/models/group_update_request_spec.rb +994 -0
  370. data/spec/models/group_update_spec.rb +1024 -0
  371. data/spec/models/issuer_request_spec.rb +765 -26
  372. data/spec/models/location_create_spec.rb +1018 -0
  373. data/spec/models/location_show_spec.rb +1024 -0
  374. data/spec/models/location_update_spec.rb +1024 -0
  375. data/spec/models/medical_plan_benefits_spec.rb +801 -62
  376. data/spec/models/medical_plan_update_request_spec.rb +754 -15
  377. data/spec/models/medical_plan_update_spec.rb +792 -47
  378. data/spec/models/medicare_advantage_plan_benefits_spec.rb +1828 -0
  379. data/spec/models/medicare_advantage_plan_search_request_spec.rb +1012 -0
  380. data/spec/models/medicare_advantage_plan_search_response_spec.rb +994 -0
  381. data/spec/models/medicare_advantage_plan_show_response_spec.rb +988 -0
  382. data/spec/models/medicare_advantage_plan_spec.rb +1090 -0
  383. data/spec/models/member_create_spec.rb +1042 -0
  384. data/spec/models/member_rate_show_request_spec.rb +1000 -0
  385. data/spec/models/member_rate_show_spec.rb +1018 -0
  386. data/spec/models/member_rates_show_response_spec.rb +994 -0
  387. data/spec/models/member_show_spec.rb +1048 -0
  388. data/spec/models/members_create_request_spec.rb +994 -0
  389. data/spec/models/members_create_response_spec.rb +988 -0
  390. data/spec/models/members_show_response_spec.rb +988 -0
  391. data/spec/models/meta_plan_search_response_spec.rb +757 -18
  392. data/spec/models/meta_spec.rb +754 -15
  393. data/spec/models/network_comparison_request_spec.rb +754 -15
  394. data/spec/models/network_comparison_response_spec.rb +756 -17
  395. data/spec/models/network_comparison_spec.rb +754 -15
  396. data/spec/models/network_details_response_spec.rb +754 -15
  397. data/spec/models/network_details_spec.rb +757 -18
  398. data/spec/models/network_search_response_spec.rb +754 -15
  399. data/spec/models/network_size_spec.rb +756 -17
  400. data/spec/models/network_spec.rb +754 -15
  401. data/spec/models/notification_subscription_response_spec.rb +754 -15
  402. data/spec/models/notification_subscription_spec.rb +754 -15
  403. data/spec/models/plan_county_bulk_spec.rb +756 -17
  404. data/spec/models/plan_county_spec.rb +756 -17
  405. data/spec/models/plan_deleted_spec.rb +754 -15
  406. data/spec/models/plan_identifier_spec.rb +754 -15
  407. data/spec/models/plan_medicare_bulk_spec.rb +763 -24
  408. data/spec/models/plan_medicare_spec.rb +760 -21
  409. data/spec/models/plan_pricing_medicare_spec.rb +761 -22
  410. data/spec/models/plan_search_response_spec.rb +756 -17
  411. data/spec/models/plan_show_response_spec.rb +754 -15
  412. data/spec/models/plan_spec.rb +754 -15
  413. data/spec/models/plans_bulk_aca2018_spec.rb +988 -0
  414. data/spec/models/plans_bulk_aca_pre2018_spec.rb +988 -0
  415. data/spec/models/plans_bulk_base_spec.rb +982 -0
  416. data/spec/models/plans_bulk_dental_spec.rb +982 -0
  417. data/spec/models/plans_bulk_vision_spec.rb +982 -0
  418. data/spec/models/provider_details_spec.rb +779 -28
  419. data/spec/models/provider_geocode_spec.rb +754 -15
  420. data/spec/models/provider_network_event_notification_spec.rb +760 -21
  421. data/spec/models/provider_networks_spec.rb +1006 -0
  422. data/spec/models/provider_show_response_spec.rb +754 -15
  423. data/spec/models/provider_spec.rb +762 -23
  424. data/spec/models/providers_geocode_response_spec.rb +754 -15
  425. data/spec/models/providers_search_response_spec.rb +754 -15
  426. data/spec/models/quote_create_request_spec.rb +988 -0
  427. data/spec/models/quote_create_response_spec.rb +988 -0
  428. data/spec/models/quote_create_spec.rb +1030 -0
  429. data/spec/models/quote_show_response_spec.rb +988 -0
  430. data/spec/models/quote_show_spec.rb +1042 -0
  431. data/spec/models/rate_request_spec.rb +884 -145
  432. data/spec/models/rate_search_spec.rb +886 -117
  433. data/spec/models/rate_show_request_spec.rb +1000 -0
  434. data/spec/models/rate_show_spec.rb +1012 -0
  435. data/spec/models/rates_show_response_spec.rb +994 -0
  436. data/spec/models/rating_area_spec.rb +754 -15
  437. data/spec/models/request_plan_find_applicant_spec.rb +754 -15
  438. data/spec/models/request_plan_find_carrier_verification_spec.rb +761 -22
  439. data/spec/models/request_plan_find_drug_package_spec.rb +754 -15
  440. data/spec/models/request_plan_find_provider_spec.rb +754 -15
  441. data/spec/models/request_plan_find_spec.rb +759 -20
  442. data/spec/models/request_provider_notification_subscription_spec.rb +757 -18
  443. data/spec/models/request_providers_search_spec.rb +758 -19
  444. data/spec/models/request_rates_search_spec.rb +756 -17
  445. data/spec/models/response_rates_search_spec.rb +754 -15
  446. data/spec/models/rx_cui_identifier_search_response_spec.rb +756 -17
  447. data/spec/models/rx_cui_identifier_spec.rb +756 -17
  448. data/spec/models/service_area_spec.rb +754 -15
  449. data/spec/models/service_area_zip_county_spec.rb +754 -15
  450. data/spec/models/state_network_size_request_spec.rb +754 -15
  451. data/spec/models/state_network_size_response_spec.rb +754 -15
  452. data/spec/models/state_spec.rb +762 -23
  453. data/spec/models/supplemental_options_spec.rb +1018 -0
  454. data/spec/models/v7_network_comparison_response_spec.rb +994 -0
  455. data/spec/models/v7_network_details_response_spec.rb +988 -0
  456. data/spec/models/v7_network_details_spec.rb +1006 -0
  457. data/spec/models/v7_network_search_response_spec.rb +994 -0
  458. data/spec/models/v7_network_spec.rb +1000 -0
  459. data/spec/models/v7_provider_details_spec.rb +1138 -0
  460. data/spec/models/v7_provider_networks_spec.rb +1012 -0
  461. data/spec/models/vision_plan_benefits_spec.rb +813 -32
  462. data/spec/models/vision_plan_search_applicant_spec.rb +754 -15
  463. data/spec/models/vision_plan_search_request_spec.rb +758 -25
  464. data/spec/models/vision_plan_search_response_spec.rb +754 -15
  465. data/spec/models/vision_plan_show_response_spec.rb +754 -15
  466. data/spec/models/vision_plan_spec.rb +767 -28
  467. data/spec/models/vision_plan_update_request_spec.rb +754 -15
  468. data/spec/models/vision_plan_update_spec.rb +763 -24
  469. data/spec/models/zip_code_spec.rb +754 -15
  470. data/spec/models/zip_counties_response_spec.rb +756 -17
  471. data/spec/models/zip_county_bulk_spec.rb +757 -18
  472. data/spec/models/zip_county_response_spec.rb +754 -15
  473. data/spec/models/zip_county_spec.rb +754 -15
  474. data/spec/spec_helper.rb +754 -15
  475. data/vericred_client.gemspec +754 -15
  476. metadata +315 -95
@@ -3,17 +3,15 @@
3
3
  =begin
4
4
  #Vericred API
5
5
 
6
- #Vericred's API allows you to search for Health Plans that a specific doctor
7
- accepts.
8
-
9
6
  ## Getting Started
10
7
 
8
+ ## Signing Up
9
+
11
10
  Visit our [Developer Portal](https://developers.vericred.com) to
12
11
  create an account.
13
12
 
14
- Once you have created an account, you can create one Application for
15
- Production and another for our Sandbox (select the appropriate Plan when
16
- you create the Application).
13
+ Once you have created an account, you can create one Application for your
14
+ Production environment and another for a Sandbox (select the appropriate Plan when you create the Application).
17
15
 
18
16
  ## SDKs
19
17
 
@@ -34,9 +32,9 @@ a `Vericred-Api-Key` header.
34
32
  Vericred's API default to the latest version. However, if you need a specific
35
33
  version, you can request it with an `Accept-Version` header.
36
34
 
37
- The current version is `v3`. Previous versions are `v1` and `v2`.
35
+ The current version is `v4`. We also support `v2` and `v3`
38
36
 
39
- `curl -H 'Vericred-Api-Key: YOUR_KEY' -H 'Accept-Version: v2' "https://api.vericred.com/providers?search_term=Foo&zip_code=11215"`
37
+ `curl -H 'Vericred-Api-Key: YOUR_KEY' -H 'Accept-Version: v3' "https://api.vericred.com/providers?search_term=Foo&zip_code=11215"`
40
38
 
41
39
  ## Pagination
42
40
 
@@ -49,11 +47,13 @@ For example, to display 5 results per page and view the second page of a
49
47
 
50
48
  ## Sideloading
51
49
 
52
- When we return multiple levels of an object graph (e.g. `Provider`s and their `State`s
53
- we sideload the associated data. In this example, we would provide an Array of
54
- `State`s and a `state_id` for each provider. This is done primarily to reduce the
55
- payload size since many of the `Provider`s will share a `State`
50
+ When we return multiple levels of an object graph (e.g. `Provider`s and their
51
+ `State`s we typically the associated data. In this example, we would
52
+ provide an Array of `State`s and a `state_id` for each provider. This is
53
+ done primarily to reduce the payload size since many of the `Provider`s
54
+ will share a `State`
56
55
 
56
+ ### Simplified Example
57
57
  ```
58
58
  {
59
59
  providers: [{ id: 1, state_id: 1}, { id: 2, state_id: 1 }],
@@ -89,8 +89,7 @@ For example, let's take a request that returns the following JSON by default
89
89
  ```
90
90
 
91
91
  To limit our results to only return the fields we care about, we specify the
92
- `select` query string parameter for the corresponding fields in the JSON
93
- document.
92
+ `select` in the query string for a `GET` or the body for a `POST`.
94
93
 
95
94
  In this case, we want to select `name` and `phone` from the `provider` key,
96
95
  so we would add the parameters `select=provider.name,provider.phone`.
@@ -117,7 +116,18 @@ The response would be
117
116
  }
118
117
  ```
119
118
 
120
- ## Benefits summary format
119
+ # Plan and Rate Data
120
+
121
+ Vericred's Plan and Rate Data let you search and quote Major Medical and Ancillary Insurance Plans in a given area for a particular family in the Individual Market or a group of families in the Small Group Market. Vericred provides the relevant data via this API and via our Bulk Format (documented [below](#Bulk Plan and Rate Data))
122
+
123
+ ## Plans
124
+
125
+ A Plan defines a set of Benefits available to its purchaser. For example, a Major Medical Plan would specify cost-share Benefits for services like a Primary Care Provider visit, a Specialist visit or an Emergency Room visit. A Dental Plan might specify Benefits for Periodontics and Fluroride Treatments. The Benefits for each Product type ([Major Medical](#header-major-medical), [Dental](#header-dental), and [Vision](#header-vision)) are documented below.
126
+
127
+ ### Benefits Format
128
+
129
+ Benefits for Plans can be quite complex. With the goals of capturing and standardizing the complexity while retaining a human-readable format, we have developed a [Bakus-Naur Form](https://en.wikipedia.org/wiki/Backus%E2%80%93Naur_form)(BNF) context-free grammar, with which we present Benefits.
130
+
121
131
  Benefit cost-share strings are formatted to capture:
122
132
  * Network tiers
123
133
  * Compound or conditional cost-share
@@ -200,6 +210,735 @@ space ::= /[ \t]/+
200
210
  ```
201
211
 
202
212
 
213
+ ### Major Medical
214
+
215
+ Vericred's data covers all Major Medical Plans available in the Individual and Small Groups (2-50 or 2-100) Markets in the US. These Plans are governed by CMS and are ACA-compliant. We do not include certain Plans that fall outside of the ACA, for example, Faith-Based Plans or Short-Term Medical Plans
216
+
217
+ We support the following Benefits Fields for Major Medical Plans. These represent the vast majority of fields available on a [Summary of Benefits and Coverage](https://www.healthcare.gov/health-care-law-protections/summary-of-benefits-and-coverage/)
218
+
219
+ The following are the appropriate Benefit Fields for Major Medical:
220
+
221
+ - ambulance
222
+ - child\_eye\_exam
223
+ - child\_eyewear
224
+ - chiropractic\_services
225
+ - diagnostic\_test
226
+ - durable\_medical\_equipment
227
+ - emergency\_room
228
+ - family\_drug\_deductible
229
+ - family\_drug\_moop
230
+ - family\_medical\_deductible
231
+ - family\_medical\_moop
232
+ - generic\_drugs
233
+ - habilitation\_services
234
+ - home\_health\_care
235
+ - hospice\_service
236
+ - imaging\_center
237
+ - imaging\_physician
238
+ - individual\_drug\_deductible
239
+ - individual\_drug\_moop
240
+ - individual\_medical\_deductible
241
+ - individual\_medical\_moop
242
+ - inpatient\_birth
243
+ - inpatient\_facility
244
+ - inpatient\_mental\_health
245
+ - inpatient\_physician
246
+ - inpatient\_substance
247
+ - lab\_test
248
+ - non\_preferred\_brand\_drugs
249
+ - nonpreferred\_generic\_drug\_share
250
+ - nonpreferred\_specialty\_drug\_share
251
+ - outpatient\_ambulatory\_care\_center
252
+ - outpatient\_facility
253
+ - outpatient\_mental\_health
254
+ - outpatient\_physician
255
+ - outpatient\_substance
256
+ - postnatal\_care
257
+ - preferred\_brand\_drugs
258
+ - prenatal\_care
259
+ - preventative\_care
260
+ - primary\_care\_physician
261
+ - rehabilitation\_services
262
+ - skilled\_nursing
263
+ - specialist
264
+ - specialty\_drugs
265
+ - urgent\_care
266
+
267
+ ### Dental
268
+
269
+ Dental benefits are less standardized than [Major Medical](#header-major-medical). Because of this, we have captured benefits for the most commonly specified services and procedures. If a Plan only specifies cost-share for "Major", "Minor", "Elective", etc, we determine the category for each of the benefits that we support and display the appropriate value for its category.
270
+
271
+ To view the technical documentation, [click here](#dental-plans).
272
+
273
+ The following are the supported Benefit Fields for Dental:
274
+
275
+ - bridges
276
+ - crowns
277
+ - denture\_relines\_rebases
278
+ - denture\_repair\_and\_adjustments
279
+ - dentures
280
+ - emergency\_treatment
281
+ - endodontics
282
+ - family\_annual\_max
283
+ - family\_deductible
284
+ - fluoride\_treatment
285
+ - implants
286
+ - individual\_annual\_max
287
+ - individual\_deductible
288
+ - inlays
289
+ - onlays
290
+ - oral\_exam
291
+ - oral\_surgery
292
+ - orthodontics\_adult
293
+ - orthodontics\_child
294
+ - periodontal\_maintenance
295
+ - periodontics
296
+ - prophylaxis\_cleaning
297
+ - radiograph\_bitewings
298
+ - radiograph\_other
299
+ - restoration\_fillings
300
+ - sealant
301
+ - simple\_extraction
302
+ - space\_maintainers
303
+
304
+ ### Vision
305
+
306
+ Vision benefits are similar in structure to [Dental](#header-dental). Again, when benefits are broken out by category, we determine the appropriate category for each service or procedure and display the approprate value for its category.
307
+
308
+ To view the technical documentation, [click here](#vision-plans).
309
+
310
+ The following are the supported Benefit Fields for Vision:
311
+
312
+ - eye\_exam
313
+ - retinal\_imaging
314
+ - frame
315
+ - eyeglass\_lenses\_single\_vision
316
+ - eyeglass\_lenses\_bifocal
317
+ - eyeglass\_lenses\_trifocal
318
+ - eyeglass\_lenses\_lenticular
319
+ - uv\_coating
320
+ - tint
321
+ - standard\_antireflective\_coating
322
+ - premium\_antireflective\_coating
323
+ - standard\_polycarbonate\_lenses\_child
324
+ - standard\_polycarbonate\_lenses\_adult
325
+ - standard\_progressive\_lenses
326
+ - premium\_progressive\_lenses
327
+ - standard\_scratch\_resistance
328
+ - polarized\_lenses
329
+ - photochromatic\_lenses
330
+ - standard\_contact\_lens\_fit\_and\_follow\_up
331
+ - premium\_contact\_lens\_fit\_and\_follow\_up
332
+ - contact\_lenses\_conventional
333
+ - contact\_lenses\_disposable
334
+ - contact\_lenses\_medically\_necessary
335
+ - laser\_vision\_correction
336
+ - additional\_pairs\_of\_eyeglasses
337
+
338
+ ## Rates
339
+
340
+ Rates are returned from the API as a part of [Quoting](#header-quoting). We calculate Rates in one of two ways.
341
+
342
+ ### Sheet Rates
343
+ When a Carrier supplies us with Sheet Rates, we display *exactly* the value provided to us. For example, in the Major Medical market, most Carriers provide a single rate for each combination of Applicant age and tobacco status in a given [Rating Area](#header-rating-areas). For example, in Austin, TX, a 21-year-old non-tobacco-user may be $312.41 per month while a 22-year-old tobacco-user may be $401.75 per month. Certain Vision and Dental Carriers supply Sheet Rates as well, though it is less common.
344
+
345
+ ### Rate Factors
346
+ Certain [Major Medical](#header-major-medical) Carriers and most [Vision](#header-vision) and [Dental](#header-dental) Carriers supply Rate Factors. The attributes on which the factors are based are the same as [Sheet Rates](#header-sheet-rates) for the [Major Medical](#header-major-medical) market (due to restrictions on what factors may be used in ACA Plans, which limit the possible factors to age and tobacco status).
347
+
348
+ In [Dental](#header-dental) and [Vision](#header-vision), the types of [Rate Factors](#header-rate-factors) are more varied. For example, SIC Code and Group size in the Group market and Gender in the Individual Market are commonly used [Rate Factors](#header-rate-factors)
349
+
350
+ Other common [Rate Factors](#header-rate-factors) for [Dental](#header-dental) and [Vision](#header-vision) products are Geographic and "Trend" (enrollment date) Factors. In [Major Medical](#header-major-medical), these types of variance are handled by CMS-defined [Rating Areas](#header-rating-areas).
351
+
352
+ In order to calculate a Rate using [Rate Factors](#header-rate-factors), the following methodology is applied:
353
+
354
+ ```
355
+ B = Base Rate
356
+ f = Rate Factor Function 1
357
+ f' = Rate Factor Function 2
358
+
359
+ B * f(x) * f'(y) [* f''(z)] ... = n
360
+ ```
361
+
362
+ ## Rating Areas
363
+ For [Major Medical](#header-major-medical) products, [CMS](https://www.cms.gov/) defines [Rating Areas](https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/state-gra.html). Under the ACA, *all* [Rate Factors](#header-rate-factors) in a Rating Area must be identical for a given time period. E.g. in Arizona, the rate for a 21-year-old non-tobacco user must be identical in all counties contained in Rating Area 1 (Mohave, Coconino, Apache, and Navajo), but *may* be different than the rate for a 21-year-old non-tobacco user in all counties Rating Area 2 (Yavapai county only) for a given year in the Individual Market and a given quartern in the Small Group market.
364
+
365
+ [Rating Areas](#header-rating-areas) are defined either by County, Zip Code or both, depending on the State. Because of this variance, all API endpoints that require a [Location](#header-specifying-the-location) require both `zip_code` and `fips_code` (a county code). [Bulk Data](#bulkplanandratedata) for [Rating Areas](#bulkratingareas) and [Service Areas](#bulkserviceareas) also specifies locations using both `zip_code` and `fips_code`.
366
+
367
+ *Rating Areas do not apply to products other than [Major Medical](#header-major-medical)*
368
+
369
+ ## Service Areas
370
+ CMS mandates that [Major Medical](#header-major-medical) Rates be defined by [Rating Areas](#header-rating-areas), which themselves define a geography in which Plans are offered. Carriers often choose *not* to offer a Plan in and entire [Rating Area](#header-rating-areas) due to network coverage or other factors. Instead, the Carrier would define a [Service Area](#header-service-areas) that specifies where a given Plan is offered.
371
+
372
+ Each Plan is available in a single [Service Area](#header-service-areas) and each [Service Area](#header-service-areas) is defined by either County, Zip Code, or both, depending on the Carrier. Because of this variance, all API endpoints that require a [Location](#header-specifying-the-location) require both `zip_code` and `fips_code` (a county code). [Bulk Data](#bulkplanandratedata) for [Rating Areas](#bulkratingareas) and [Service Areas](#bulkserviceareas) also specifies locations using both `zip_code` and `fips_code`.
373
+
374
+ In [Dental](#header-dental) and [Vision](#header-vision) plans, we use a [Service Area](#header-service-areas) to define availability as well, although it typically mirrors a Geographic [Rate Factor](#header-rate-factors).
375
+
376
+ # Quoting
377
+
378
+ One of the primary use-cases for the Vericred API is to run Quotes to determine the Rate for a given family (in the Individual Market) or group (in the Small Group Market). We support quoting across [Major Medical](#header-major-medical), [Vision](#header-vision), and [Dental](#header-dental). In both cases, the process of generating a Quote is broken out into several steps:
379
+
380
+ 1. Find all available [Plans](#header-plans) in the relevent [Service Areas](#header-service-areas) for the family or group.
381
+ 1. Using [Business Rules](#header-business-rules) for each [Plan](#header-plans), determine if the family or group is eligible for that [Plan](#header-plans).
382
+ 1. Using [Business Rules](#header-business-rules) for each [Plan](#header-plans), determine which members of the family or which members of each family in the group should be considered for Rating.
383
+ 1. Using the [Sheet Rates](#header-sheet-rates) or [Rate Factors](#header-rate-factors) for each [Plan](#header-plans), determine the Rate the family, or for each family in the group.
384
+ 1. If running a [Composite](#compositerates) quote, determine the portion of the total Rate that each family will pay.
385
+
386
+ ## Individual Quotes
387
+ An Individual Quote is one for Plans that are available to a particular family, outside the context of their Employer. In the [Major Medical](#header-major-medical) market, many of these Plans are available on [Healthcare.gov](https://www.healthcare.gov) or the State-Based Exchange for non-Healthcare.gov states. The API supports both on-market and off-market Plans.
388
+
389
+ For details on Major Medical Quoting API calls see [below](#medicalplans-medicalplans-post)
390
+
391
+ ### Specifying the Location
392
+ In order to determine which plans are [available](#header-service-areas) and the [rate](#header-rating-areas) for each Plan, you must specify a location. When creating a [Quote](#header-quoting) for the Individual Market, that information is contained in the `POST` body of the request:
393
+ ```
394
+ POST /plans/medical/search
395
+ {
396
+ ...
397
+ "zip_code": "11201",
398
+ "fips_code": "36047"
399
+ ...
400
+ }
401
+
402
+ ```
403
+
404
+ ### Specifying Applicants
405
+ Applicants are the members of the family being quoted and are specified in the `POST` body of the request.
406
+ ```
407
+ POST /plans/medical/search
408
+ {
409
+ ...
410
+ "applicants": [
411
+ {
412
+ "age": 34,
413
+ "smoker": true,
414
+ "child": false
415
+ },
416
+ {
417
+ "age": 32,
418
+ "smoker": false,
419
+ "child": false
420
+ },
421
+ {
422
+ "age": 4,
423
+ "smoker": false,
424
+ "child": true
425
+ }
426
+ ]
427
+ ...
428
+ }
429
+ ```
430
+
431
+ ### Specifying Enrollment Date
432
+ The `enrollment_date` determines which [Plans](#header-plans) and [Rates](#header-rates) are returned. Specifying an `enrollment_date` in the past allows you to calculate historical data as far back as 2014.
433
+
434
+ ### Plan Benefits
435
+ Plan Benefits are returned in the response for [Individual Quotes](#individualquotes)
436
+ ```
437
+ POST /plans/medical/search
438
+ {
439
+ ...
440
+ }
441
+
442
+ Response:
443
+ {
444
+ "plans": [
445
+ {
446
+ ...
447
+ "individual_medical_deductible": "$5,000",
448
+ "family_medical_deductible": "$10,000"
449
+ ...
450
+ }
451
+
452
+ ]
453
+ }
454
+
455
+ ```
456
+
457
+ ### Premiums
458
+ The value for the family being quoted is returned in the `premium` field. If no [Applicants](#specifyingapplicants) are provided, the `premium` field will be `0`
459
+
460
+ ### Major Medical Quotes
461
+ In order to [Quote](#header-quoting) [Major Medical](#header-major-medical) Plans, send a `POST` to `/plans/medical/search`. In addition, the `age`, `smoker` and `child` attributes of each Applicant must be present.
462
+
463
+ #### Subsidies
464
+ On-market ([Healthcare.gov](https://www.healthcare.gov) and State-Based Exchange) [Major Medical](#header-major-medical) Plans are eligible for government subsidies. The subsidy calculation is based on the percentage of the family's income that the IRS has designated as "affordable" for that family and the Second Lowest-Cost Silver Plan available to that family.
465
+
466
+ In order to calculate subsidies for a family the following parameters must be supplied:
467
+ ```
468
+ POST /plans/medical/search
469
+ {
470
+ ...
471
+ "household_size": 4,
472
+ "household_income": 40000
473
+ ...
474
+ }
475
+ ```
476
+
477
+ The amount that the family will pay after subsidy is returned in the `premium_subsidized` field for each plan.
478
+
479
+ ##### Subsidy Calculation
480
+ Here is how subsidies are calculated. This is fully handled by the Vericred API, but the steps are enumerated below for clarity.
481
+
482
+ 1. Determine the percentage of the [Federal Poverty Level](https://aspe.hhs.gov/poverty-guidelines) for the family based on the household size and income.
483
+ 1. Reference the [CMS table](https://www.irs.gov/pub/irs-drop/rp-17-36.pdf) to determine the appropriate percentage of income for the family to spend on healthcare.
484
+ 1. Multiply that value by the family's income. This is the total amount that the family can spend on healthcare for the year, after the subsidy.
485
+ 1. Find the cost of the Second Least-Expensive Silver Plan available to the family, accounting for the percentage of premium that goes to [Essential Health Benefits](https://www.healthcare.gov/glossary/essential-health-benefits/)
486
+ 1. Calculate the difference in price between the amount the family should spend on healthcare and the Second Least-Expensive Silver Plan's premium. This is the subsidy.
487
+ 1. Apply the subsidy to all on-market Plans available to the family. The subsidized premium can never be below $0 (for example, a low-cost Bronze Plan may be less expensive than the subsidy)
488
+
489
+ #### Cost Sharing Reduction Plans
490
+ [Cost Sharing Reduction (CSR)](https://www.healthcare.gov/glossary/cost-sharing-reduction/) Plans are available to lower income families and offer enhanced benefits for certain Silver Plans at the same cost as the non-CSR Plans available to higher-income families.
491
+
492
+ If a family is eligible for CSR Plans, the Vericred API will return the relevant Plan in place of the non-CSR version.
493
+
494
+ In order to include CSR Plans where applicable, the following parameters must be supplied:
495
+ ```
496
+ POST /plans/medical/search
497
+ {
498
+ ...
499
+ "household_size": 4,
500
+ "household_income": 40000
501
+ ...
502
+ }
503
+ ```
504
+
505
+ #### The Children's Health Insurance Program (CHIP)
506
+ [The Children's Health Insurance Program (CHIP)](https://www.healthcare.gov/medicaid-chip/childrens-health-insurance-program/) provides low-cost health coverage to children in families that earn too much money to qualify for Medicaid.
507
+
508
+ If a family is eligible for CHIP, the Vericred API will include the subsidy in the returned premiums. In order to include CHIP subsidies in premium calculations, the following parameters must be supplied:
509
+ ```
510
+ POST /plans/medical/search
511
+ {
512
+ ...
513
+ "applicants": [
514
+ {
515
+ "age": 34,
516
+ "smoker": true,
517
+ "child": false
518
+ },
519
+ {
520
+ "age": 32,
521
+ "smoker": false,
522
+ "child": false
523
+ },
524
+ {
525
+ "age": 4,
526
+ "smoker": false,
527
+ "child": true
528
+ },
529
+ {
530
+ "age": 4,
531
+ "smoker": false,
532
+ "child": true
533
+ }
534
+ ],
535
+ "household_size": 4,
536
+ "household_income": 40000
537
+ ...
538
+ }
539
+ ```
540
+
541
+ CHIP eligibility is displayed within the meta-tag in the response as `eligible_for_chip_medicaid`:
542
+ ```
543
+ {
544
+ "meta": {
545
+ "total": 150,
546
+ "eligible_for_chip_medicaid": true,
547
+ "premium_tax_credit": 500.20
548
+ },
549
+ "coverages": [],
550
+ "plans": [...]
551
+ }
552
+ ```
553
+
554
+ If you do not want CHIP subsidies to be included in the premiums, simply do not include the `household_income` parameter in the request.
555
+
556
+ ### Dental Quotes
557
+ Quoting [Dental](#header-dental) Plans for a family requires slightly different parameters for [Applicants](#specifyingapplicants), due to the method with which Plans are [rated](#header-rate-factors). The folloiwng example contains the require parameters:
558
+ ```
559
+ POST /plans/dental/search
560
+ {
561
+ ...
562
+ "applicants": [
563
+ {
564
+ "age": 34,
565
+ "gender": "M",
566
+ "child": false
567
+ },
568
+ {
569
+ "age": 32,
570
+ "gender": "F",
571
+ "child": false
572
+ },
573
+ {
574
+ "age": 4,
575
+ "gender": "M",
576
+ "child": true
577
+ }
578
+ ]
579
+ ...
580
+ }
581
+ ```
582
+
583
+ Note that in contrast to [Major Medical Quotes](#majormedicalquotes), [Dental Quotes](#dentalquotes) require `gender`, but *do not* require `smoker`.
584
+
585
+ Also note that [Subsidies](#subsidies) and [Cost Sharing Reduction](#costsharingreductionplans) are *not* relevant for [Dental Quotes](#dentalquotes).
586
+
587
+ ### Vision Quotes
588
+
589
+ Quoting [Vision](#header-vision) Plans for a family requires slightly different parameters for [Applicants](#specifyingapplicants), due to the method with which Plans are [rated](#header-rate-factors). The folloiwng example contains the require parameters:
590
+ ```
591
+ POST /plans/vision/search
592
+ {
593
+ ...
594
+ "applicants": [
595
+ {
596
+ "age": 34,
597
+ "gender": "M",
598
+ "child": false
599
+ },
600
+ {
601
+ "age": 32,
602
+ "gender": "F",
603
+ "child": false
604
+ },
605
+ {
606
+ "age": 4,
607
+ "gender": "M",
608
+ "child": true
609
+ }
610
+ ]
611
+ ...
612
+ }
613
+ ```
614
+
615
+ Note that in contrast to [Major Medical Quotes](#majormedicalquotes), [Vision Quotes](#visionquotes) require `gender`, but *do not* require `smoker`.
616
+
617
+ Also note that [Subsidies](#subsidies) and [Cost Sharing Reduction](#costsharingreductionplans) are *not* relevant for [Vision Quotes](#visionquotes).
618
+
619
+ ## Quotes for Groups
620
+ 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.
621
+
622
+ In addition, due to performance requirements and for enhanced auditing, [Group Quotes](#groupquotes) are persisted across requests. This means that a given [Quote](#groupquotes) can be retrieved after it has been created.
623
+
624
+ ### Identifiers
625
+ In order to make it easier to cross-reference local copies of data with [Quotes](#header-creating-a-quote) and other data in the Vericred API, most entities allow for the specification of an `external_id` field. You can use this to store a primary or natural key from your system in order to easily match records returned from the API with records in your system.
626
+
627
+ ### Specifying the Group
628
+ Creating a group is the first step in [Group Quoting](#groupquoting). The API requires that certain information such as `sic_code`, and `chamber_association` be provided and returns a the attributes and `id` for the newly created `Group`
629
+
630
+ Full documentation is available [below](#groupscreate)
631
+
632
+ ### Specifying the Locations
633
+ When creating a `Group`, you must also specify one or more `Location`s. Of those `Location`s specified, one must be `primary`. That `Location` is used to calculate Plan eligibility using the relevant [Service Areas](#header-service-areas). Some Carriers use secondary `Location`s to determine eligibility as well, which is why those must be specified as well.
634
+
635
+ ```
636
+ POST /groups
637
+ {
638
+ "group": {
639
+ ...
640
+ },
641
+ "locations": [
642
+ {
643
+ ...
644
+ "zip_code": "11201",
645
+ "fips_code": "36047",
646
+ "primary": true
647
+ ...
648
+ }
649
+ ]
650
+ }
651
+ ```
652
+
653
+ ### Specifying the Census
654
+ A Census is the collection of `Member`s contained in the `Group`. The attributes of each `Member` and his or her `Dependent`s determine the [Rate](#header-rates) for the `Group` as a whole. Certain attributes of the `Member` are important for calculating [Rates](#header-rates) and applying [Business Rules](#header-business-rules). For example, the `Member`'s home address and in which office he or she works are relevant for certain [Business Rules](#header-business-rules).
655
+
656
+ #### Dependent Relationships
657
+ The `Dependent`s for a given `Member` also factor into the [Rates](#header-rates) and application of [Business Rules](#header-business-rules). For example, certain [Plans](#header-plans) cover only `Dependent`s of particular types and/or only `Dependent`s of a particular type who live in the same household as the primary `Member`
658
+
659
+ Valid Dependent Relationships:
660
+ - `adopted_child`
661
+ - `child`
662
+ - `court_appointed_guardian`
663
+ - `dependent_of_dependent`
664
+ - `ex_spouse`
665
+ - `foster_child`
666
+ - `grand_child`
667
+ - `guardian`
668
+ - `life_partner`
669
+ - `other`
670
+ - `sibling`
671
+ - `sponsored_dependent`
672
+ - `spouse`
673
+ - `step_child`
674
+ - `ward`
675
+
676
+ ```
677
+ POST
678
+
679
+ /groups/{id}/members
680
+ {
681
+ "members": [
682
+ ...
683
+ {
684
+ "cobra": false,
685
+ "date_of_birth": "1980-01-01",
686
+ "fips_code": "36047"
687
+ "gender": "M",
688
+ "last_used_tobacco": "2017-01-01",
689
+ "location_id": :location_id
690
+ "retiree": false,
691
+ "zip_code": "11201",
692
+ "dependents": [
693
+ ...
694
+ {
695
+ "relationship": "child",
696
+ "same_household": true
697
+ }
698
+ ...
699
+ ]
700
+ }
701
+ ...
702
+ ]
703
+ }
704
+
705
+ ```
706
+
707
+ ### Creating a Quote
708
+ Once the [Census](#header-specifying-the-census) has been created, we can generate a `Quote` for the `Group`.
709
+
710
+ #### Major Medical Quotes
711
+ To generate a [Major Medical](#header-major-medical) Quote, specify the `product_line` of `Quote` as `medical`
712
+
713
+ ```
714
+ POST /groups/{id}/quotes
715
+ {
716
+ ...
717
+ "product_line": "medical"
718
+ ...
719
+ }
720
+ ```
721
+
722
+ #### Dental Quotes
723
+ To generate a [Dental](#header-dental) Quote, specify the `product_line` of `Quote` as `dental`
724
+
725
+ ```
726
+ POST /groups/{id}/quotes
727
+ {
728
+ ...
729
+ "product_line": "dental"
730
+ ...
731
+ }
732
+ ```
733
+
734
+ #### Vision Quotes
735
+ To generate a [Vision](#header-vision) Quote, specify the `product_line` of `Quote` as `vision`
736
+
737
+ ```
738
+ POST /groups/{id}/quotes
739
+ {
740
+ ...
741
+ "product_line": "vision"
742
+ ...
743
+ }
744
+ ```
745
+
746
+ ### Retrieving Aggregate Rates
747
+ Once you have created a [Quote](#header-creating-a-quote), you can retrieve its aggregate [Rates](#header-rates). [Rates](#header-rates) are broken down by `Member` and `Dependent`, so that you can show the final cost in different scenarios where an employer might cover a different percentage of `Member` and `Dependent` costs.
748
+
749
+ ```
750
+ GET /quotes/{id}/rates
751
+
752
+ Response
753
+ {
754
+ "rates": [
755
+ ...
756
+ {
757
+ "plan_id": "12345NY6789012",
758
+ "total_premium": 2800.0,
759
+ "member_premium": 1000.0,
760
+ "dependent_premium": 1800.0,
761
+ "id": "123abc"
762
+ }
763
+ ...
764
+ ]
765
+ }
766
+ ```
767
+
768
+
769
+ #### Loading Plan Data
770
+ Aggregate [Rates](#header-rates) responses *do not* include [Plan](#header-plans) details in order to keep the payload small. [Plan](#header-plans) data can be retrieved in one of two ways:
771
+
772
+ Loading the [Plan](#header-plans) from the API:
773
+ ```
774
+ GET /plans/{id}
775
+
776
+ Response:
777
+ {
778
+ "plans": [
779
+ ...
780
+ {
781
+ ...
782
+ "individual_medical_deductible": "$5,000",
783
+ "family_medical_deductible": "$10,000",
784
+ ...
785
+ }
786
+ ...
787
+
788
+ ]
789
+ }
790
+ ```
791
+ Pulling in [Bulk Plan Data](#bulkplans) and matching up [Plans](#header-plans) by their `id`.
792
+
793
+ ### Retrieving Member-Level Rates
794
+ In order to retrieve the exact [Rate](#header-rates) for each `Member` and their `Dependents` for given [Plan](#header-plans), you can load Member-Level `Rates`.
795
+
796
+ ```
797
+ GET /rates/{id}/member_rates
798
+
799
+ Response
800
+ {
801
+ "member_rates": [
802
+ ...
803
+ {
804
+ "id": "123abc",
805
+ "member_id": "234def",
806
+ "member_external_id": "externally-supplied-id",
807
+ "member_premium": 500.0,
808
+ "dependent_premium": 600.0,
809
+ "total_premium": 1100.0,
810
+ }
811
+ ...
812
+ ]
813
+ }
814
+
815
+ ```
816
+
817
+ Note that *all* `MemberRate`s are for one particular [Plan](#header-plans) - the one referenced by the parent [Rate](#header-rates).
818
+
819
+ ### Business Rules
820
+ Vericred works with our Carrier partners to acquire and apply Business Rules that can affect either [Plan](#header-plans) availability or the way in which `Member`s and `Dependent`s are rated. For example, one Carrier's Business Rules might specify that `Member`s and `Dependent`s who have used tobacco in the past 4 months are considered "tobacco-users", while another's may specify that period to be 1 year.
821
+
822
+ These rules are applied transparently during the [Quoting](#header-quoting) process and *do not* require any additional action or input on your part.
823
+
824
+ For a full accounting of Business Rules and a list of Carriers whose Business Rules are applied, please contact support@vericred.com
825
+
826
+ ### Composite Rates
827
+ Composite Rates are commonly used in [Major Medical](#header-major-medical), [Dental](#header-dental), and [Vision](#header-vision) [Plans](#header-plans) to simplify operations by charging each family the weighted average of the `Group`'s total premium. The most common methodology is as follows:
828
+
829
+ 1. Calculate the [Rates](#header-rates) for the entire `Group` using [Sheet Rates](#header-sheet-rates) or [Rate Factors](#header-rate-factors) as appropriate
830
+ 1. Categorize each Family within the Group. The categorization differs depending on whether the Composite Rate is 2, 3, or 4-tier
831
+ 1. Multiply the number of Families in each category by the constant for that category. These constants are provided to Vericred by the Carrier. This determines the total number of "Rating Units"
832
+ 1. Divide the total premium calculated in Step 1 by the total number of Rating Units to get the price per Rating Unit
833
+ 1. The [Rate](#header-rates) each Family pays is the constant for that Family's category multiplied by the price per Rating Unit.
834
+
835
+ You can request that a [Quote](#header-quoting) be calculated using Composite Rates when creating it:
836
+ ```
837
+ POST /quotes
838
+ {
839
+ ...
840
+ "rating_method": "4_tier_composite"
841
+ ...
842
+ }
843
+ ```
844
+ If no Composite Rates methodology is available, the Vericred API will return standard age-banded Rates.
845
+
846
+ # Network and Provider Data
847
+
848
+ A `Provider` is an individual or organization in the medical profession. For example, an individual doctor is a `Provider` as are certain clinics and hospitals.
849
+
850
+ `Provider`s are related to `Network`s. A `Network` is a collection of `Provider`s that are under a particular contract with a given `Carrier`. A given `Carrier` will often have multiple `Network`s. For example, there may be a large national `Network` as well as several smaller regional `Network`s.
851
+
852
+ Each `Plan` has a `Network`. A consumer who visits a `Provider` typically incurs fewer costs when visiting a `Provider` in the `Network` covered by his or her `Plan`. The `premium` for a `Plan` is often proportional to the size of its `Network`
853
+
854
+ ## Finding Providers
855
+ In order to determine if a particular `Plan` covers a given `Provider`, you must first identify the `Provider`. To do so, use the [Provider Search API endpoint](#providers-providers-post) and specify some search criteria:
856
+
857
+ ```
858
+ POST /providers/search
859
+ {
860
+ "search_term": "foo",
861
+ "zip_code": "11201"
862
+ }
863
+ ```
864
+
865
+ The API will return an ordered list of `Provider`s who match the query along with their names, addresses, and other demographic data. The `id` field returned refers to the `Provider`'s [NPI number](https://www.cms.gov/Regulations-and-Guidance/Administrative-Simplification/NationalProvIdentStand/). This is the key that is used to identify the `Provider` across different API endpoints.
866
+
867
+ ## Finding Networks
868
+
869
+ A `Network` is a collection of `Provider`s that are under a particular contract with a given `Carrier`. A given `Carrier` will often have multiple `Network`s. For example, there may be a large national `Network` as well as several smaller regional `Network`s.
870
+
871
+ The API supports searching for `Networks` by Carrier, market and state. For more details view the [endpoint documentation](#networks-networks-get)
872
+
873
+ ## Matching Providers to Networks
874
+ In order to determine if a `Provider` is covered by a user's `Plan`, you will need to map the `Provider` to a `Network`. There are several methods to do this using the API
875
+
876
+ ### Using Plan Search
877
+ You can specify one or more `npi` values in the [`plan` search](#majormedicalplans-majormedicalplans-post). To do so, include a list of `providers` in the request
878
+ ```
879
+ POST /plans/medical/search
880
+ {
881
+ ...
882
+ "providers": [
883
+ { "npi": 1234567890 },
884
+ { "npi": 2345678901 }
885
+ ]
886
+ ...
887
+ }
888
+
889
+ The response will then return a list of `in_network_ids` and `out_of_network_ids` for each `Plan`
890
+
891
+ ```
892
+ {
893
+ "plans": [
894
+ ...
895
+ {
896
+ ...
897
+ "id": "12345NY1234567",
898
+ "in_network_ids": [1234567890],
899
+ "out_of_network_ids": [1234567890]
900
+ ...
901
+ },
902
+ {
903
+ ...
904
+ "id": "12345NY2345678",
905
+ "in_network_ids": [1234567890, 1234567890],
906
+ "out_of_network_ids": []
907
+ ...
908
+ }
909
+ ...
910
+ ]
911
+ }
912
+
913
+ Simply reference the `Provider` in question by its `id` for each `Plan` to see if that `Provider` is in-network for the `Plan`.
914
+
915
+ ### Matching by Plan ID
916
+ Given a `Provider`'s `id`, you can retrieve all of his or her `hios_ids`
917
+
918
+ For more details see the [endpoint documentation](#providers-providers-get)
919
+
920
+ ```
921
+ GET /providers/1234567890
922
+ {
923
+ "provider": {
924
+ ...
925
+ "hios_ids": [
926
+ ...
927
+ "12345NY1234567"
928
+ ...
929
+ ]
930
+ ...
931
+ }
932
+ }
933
+ ```
934
+
935
+ The returned `hios_ids` can be used to cross-reference a `Plan`
936
+
937
+ ### Matching by Network
938
+ Once you have an ID returned from the [`Network` search endpoint](#networks-networks-get), you can cross-reference it with the `network_ids` returned from both the [`Provider` search](#providers-providers-post) and [`Provider` details](#providers-providers-get) endpoints.
939
+
940
+ This is useful for large group data or when you are not dealing with `Plan`s directly, but rather at the `Network` level.
941
+
203
942
 
204
943
  OpenAPI spec version: 1.0.0
205
944