vericred_client 0.0.38 → 0.0.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (474) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -11
  3. data/docs/ACAPlan.md +4 -2
  4. data/docs/ACAPlan2018.md +5 -3
  5. data/docs/ACAPlan2018Search.md +5 -4
  6. data/docs/ACAPlan2018SearchResult.md +5 -4
  7. data/docs/ACAPlanPre2018.md +4 -2
  8. data/docs/ACAPlanPre2018Bulk.md +4 -3
  9. data/docs/ACAPlanPre2018Search.md +4 -3
  10. data/docs/ACAPlanPre2018SearchResult.md +4 -3
  11. data/docs/BulkPlansApi.md +3 -3
  12. data/docs/BusinessRule.md +9 -0
  13. data/docs/BusinessRuleSet.md +10 -0
  14. data/docs/CarrierSubsidiaryBulk.md +12 -0
  15. data/docs/DentalPlan.md +1 -0
  16. data/docs/DentalPlanSearch.md +2 -2
  17. data/docs/DentalPlanSearchRequest.md +1 -1
  18. data/docs/Location.md +9 -0
  19. data/docs/MajorMedicalPlansApi.md +5 -5
  20. data/docs/MedicalPlansApi.md +5 -5
  21. data/docs/NetworksApi.md +2 -2
  22. data/docs/PlanAncestor.md +1 -1
  23. data/docs/PlanShowResponse.md +1 -1
  24. data/docs/{PlansBulkSearchResponse.md → PlansBulkACA2018Response.md} +2 -2
  25. data/docs/ProviderDetails.md +0 -1
  26. data/docs/QuotingApi.md +11 -5
  27. data/docs/RateShow.md +1 -0
  28. data/docs/RequestProvidersSearch.md +1 -0
  29. data/docs/V7ResponseProvidersProviderDetails.md +0 -1
  30. data/docs/VisionPlan.md +1 -0
  31. data/docs/VisionPlanSearch.md +1 -1
  32. data/docs/VisionPlanSearchRequest.md +1 -1
  33. data/lib/vericred_client.rb +8 -7
  34. data/lib/vericred_client/api/bulk_plans_api.rb +8 -5
  35. data/lib/vericred_client/api/carrier_groups_api.rb +3 -0
  36. data/lib/vericred_client/api/carrier_subsidiary_disclaimers_api.rb +3 -0
  37. data/lib/vericred_client/api/carriers_api.rb +3 -0
  38. data/lib/vericred_client/api/dental_plans_api.rb +3 -0
  39. data/lib/vericred_client/api/drugs_api.rb +3 -0
  40. data/lib/vericred_client/api/embargoes_api.rb +3 -0
  41. data/lib/vericred_client/api/formularies_api.rb +3 -0
  42. data/lib/vericred_client/api/issuers_api.rb +3 -0
  43. data/lib/vericred_client/api/major_medical_plans_api.rb +10 -7
  44. data/lib/vericred_client/api/medical_plans_api.rb +10 -7
  45. data/lib/vericred_client/api/medicare_advantage_plans_api.rb +3 -0
  46. data/lib/vericred_client/api/network_sizes_api.rb +3 -0
  47. data/lib/vericred_client/api/networks_api.rb +5 -2
  48. data/lib/vericred_client/api/plans_api.rb +3 -0
  49. data/lib/vericred_client/api/providers_api.rb +3 -0
  50. data/lib/vericred_client/api/quoting_api.rb +15 -6
  51. data/lib/vericred_client/api/rates_api.rb +3 -0
  52. data/lib/vericred_client/api/service_areas_api.rb +3 -0
  53. data/lib/vericred_client/api/specialties_api.rb +3 -0
  54. data/lib/vericred_client/api/vision_plans_api.rb +3 -0
  55. data/lib/vericred_client/api/zip_counties_api.rb +3 -0
  56. data/lib/vericred_client/api_client.rb +3 -0
  57. data/lib/vericred_client/api_error.rb +3 -0
  58. data/lib/vericred_client/configuration.rb +3 -0
  59. data/lib/vericred_client/models/aca_plan.rb +28 -5
  60. data/lib/vericred_client/models/aca_plan2018.rb +28 -5
  61. data/lib/vericred_client/models/aca_plan2018_search.rb +25 -12
  62. data/lib/vericred_client/models/aca_plan2018_search_response.rb +3 -0
  63. data/lib/vericred_client/models/aca_plan2018_search_result.rb +25 -12
  64. data/lib/vericred_client/models/aca_plan2018_show_response.rb +3 -0
  65. data/lib/vericred_client/models/aca_plan_pre2018.rb +28 -5
  66. data/lib/vericred_client/models/aca_plan_pre2018_bulk.rb +24 -11
  67. data/lib/vericred_client/models/aca_plan_pre2018_search.rb +23 -10
  68. data/lib/vericred_client/models/aca_plan_pre2018_search_response.rb +3 -0
  69. data/lib/vericred_client/models/aca_plan_pre2018_search_result.rb +24 -11
  70. data/lib/vericred_client/models/aca_plan_pre2018_show_response.rb +3 -0
  71. data/lib/vericred_client/models/address.rb +3 -0
  72. data/lib/vericred_client/models/adult_child_tier_composite.rb +3 -0
  73. data/lib/vericred_client/models/age_banded.rb +3 -0
  74. data/lib/vericred_client/models/ancillary_plan_identifier.rb +3 -0
  75. data/lib/vericred_client/models/base.rb +3 -0
  76. data/lib/vericred_client/models/base_plan_search_response.rb +3 -0
  77. data/lib/vericred_client/models/{plan_search_response.rb → business_rule.rb} +19 -30
  78. data/lib/vericred_client/models/business_rule_set.rb +1210 -0
  79. data/lib/vericred_client/models/carrier.rb +3 -0
  80. data/lib/vericred_client/models/carrier_group_request.rb +3 -0
  81. data/lib/vericred_client/models/carrier_request.rb +3 -0
  82. data/lib/vericred_client/models/carrier_subsidiary.rb +3 -0
  83. data/lib/vericred_client/models/{vision_plan_bulk.rb → carrier_subsidiary_bulk.rb} +32 -121
  84. data/lib/vericred_client/models/carrier_subsidiary_disclaimer.rb +3 -0
  85. data/lib/vericred_client/models/composite.rb +3 -0
  86. data/lib/vericred_client/models/county.rb +3 -0
  87. data/lib/vericred_client/models/county_bulk.rb +3 -0
  88. data/lib/vericred_client/models/dental_plan.rb +14 -1
  89. data/lib/vericred_client/models/dental_plan_benefits.rb +3 -0
  90. data/lib/vericred_client/models/dental_plan_search.rb +11 -8
  91. data/lib/vericred_client/models/dental_plan_search_applicant.rb +3 -0
  92. data/lib/vericred_client/models/dental_plan_search_request.rb +4 -1
  93. data/lib/vericred_client/models/dental_plan_search_response.rb +3 -0
  94. data/lib/vericred_client/models/dental_plan_show_response.rb +3 -0
  95. data/lib/vericred_client/models/dental_plan_update.rb +3 -0
  96. data/lib/vericred_client/models/dental_plan_update_request.rb +3 -0
  97. data/lib/vericred_client/models/dependent_create.rb +3 -0
  98. data/lib/vericred_client/models/dependent_create_request.rb +3 -0
  99. data/lib/vericred_client/models/dependent_show.rb +3 -0
  100. data/lib/vericred_client/models/drug.rb +3 -0
  101. data/lib/vericred_client/models/drug_coverage.rb +3 -0
  102. data/lib/vericred_client/models/drug_coverage_base.rb +3 -0
  103. data/lib/vericred_client/models/drug_coverage_response.rb +3 -0
  104. data/lib/vericred_client/models/drug_details.rb +3 -0
  105. data/lib/vericred_client/models/drug_package.rb +3 -0
  106. data/lib/vericred_client/models/drug_search_drug_package.rb +3 -0
  107. data/lib/vericred_client/models/drug_search_request.rb +3 -0
  108. data/lib/vericred_client/models/drug_search_response.rb +3 -0
  109. data/lib/vericred_client/models/embargo_request.rb +3 -0
  110. data/lib/vericred_client/models/formulary.rb +3 -0
  111. data/lib/vericred_client/models/formulary_drug_coverage.rb +3 -0
  112. data/lib/vericred_client/models/formulary_drug_package_response.rb +3 -0
  113. data/lib/vericred_client/models/formulary_response.rb +3 -0
  114. data/lib/vericred_client/models/four_tier_composite.rb +3 -0
  115. data/lib/vericred_client/models/group_create.rb +3 -0
  116. data/lib/vericred_client/models/group_create_request.rb +3 -0
  117. data/lib/vericred_client/models/group_create_response.rb +3 -0
  118. data/lib/vericred_client/models/group_show.rb +3 -0
  119. data/lib/vericred_client/models/group_show_response.rb +3 -0
  120. data/lib/vericred_client/models/group_update.rb +3 -0
  121. data/lib/vericred_client/models/group_update_request.rb +3 -0
  122. data/lib/vericred_client/models/issuer_request.rb +3 -0
  123. data/lib/vericred_client/models/{plans_bulk_aca2018.rb → location.rb} +22 -9
  124. data/lib/vericred_client/models/location_create.rb +3 -0
  125. data/lib/vericred_client/models/location_show.rb +3 -0
  126. data/lib/vericred_client/models/location_update.rb +3 -0
  127. data/lib/vericred_client/models/medical_plan_benefits.rb +3 -0
  128. data/lib/vericred_client/models/medical_plan_search_request.rb +3 -0
  129. data/lib/vericred_client/models/medical_plan_update.rb +3 -0
  130. data/lib/vericred_client/models/medical_plan_update_request.rb +3 -0
  131. data/lib/vericred_client/models/medicare_advantage_plan.rb +3 -0
  132. data/lib/vericred_client/models/medicare_advantage_plan_benefits.rb +3 -0
  133. data/lib/vericred_client/models/medicare_advantage_plan_search.rb +3 -0
  134. data/lib/vericred_client/models/medicare_advantage_plan_search_request.rb +3 -0
  135. data/lib/vericred_client/models/medicare_advantage_plan_search_response.rb +3 -0
  136. data/lib/vericred_client/models/medicare_advantage_plan_show_response.rb +3 -0
  137. data/lib/vericred_client/models/medicare_advantage_plan_update.rb +3 -0
  138. data/lib/vericred_client/models/medicare_advantage_plan_update_request.rb +3 -0
  139. data/lib/vericred_client/models/member_adult_child_tier_composite.rb +3 -0
  140. data/lib/vericred_client/models/member_age_banded.rb +3 -0
  141. data/lib/vericred_client/models/member_create.rb +3 -0
  142. data/lib/vericred_client/models/member_premiums.rb +3 -0
  143. data/lib/vericred_client/models/member_rate_show.rb +3 -0
  144. data/lib/vericred_client/models/member_rate_show_request.rb +3 -0
  145. data/lib/vericred_client/models/member_rates_show_response.rb +3 -0
  146. data/lib/vericred_client/models/member_show.rb +3 -0
  147. data/lib/vericred_client/models/members_create_request.rb +3 -0
  148. data/lib/vericred_client/models/members_create_response.rb +3 -0
  149. data/lib/vericred_client/models/members_show_response.rb +3 -0
  150. data/lib/vericred_client/models/meta.rb +3 -0
  151. data/lib/vericred_client/models/meta_plan_search_response.rb +3 -0
  152. data/lib/vericred_client/models/network.rb +3 -0
  153. data/lib/vericred_client/models/network_comparison.rb +3 -0
  154. data/lib/vericred_client/models/network_comparison_request.rb +3 -0
  155. data/lib/vericred_client/models/network_comparison_response.rb +3 -0
  156. data/lib/vericred_client/models/network_details.rb +3 -0
  157. data/lib/vericred_client/models/network_details_response.rb +3 -0
  158. data/lib/vericred_client/models/network_disruption_analysis.rb +3 -0
  159. data/lib/vericred_client/models/network_disruption_analysis_request.rb +3 -0
  160. data/lib/vericred_client/models/network_disruption_analysis_response.rb +3 -0
  161. data/lib/vericred_client/models/network_search.rb +3 -0
  162. data/lib/vericred_client/models/network_search_response.rb +3 -0
  163. data/lib/vericred_client/models/network_size.rb +3 -0
  164. data/lib/vericred_client/models/notification_subscription.rb +3 -0
  165. data/lib/vericred_client/models/notification_subscription_response.rb +3 -0
  166. data/lib/vericred_client/models/plan.rb +3 -0
  167. data/lib/vericred_client/models/plan_ancestor.rb +10 -7
  168. data/lib/vericred_client/models/plan_county.rb +3 -0
  169. data/lib/vericred_client/models/plan_county_bulk.rb +3 -0
  170. data/lib/vericred_client/models/plan_deleted.rb +3 -0
  171. data/lib/vericred_client/models/plan_identifier.rb +3 -0
  172. data/lib/vericred_client/models/plan_medicare.rb +3 -0
  173. data/lib/vericred_client/models/plan_medicare_bulk.rb +3 -0
  174. data/lib/vericred_client/models/plan_network.rb +3 -0
  175. data/lib/vericred_client/models/plan_pricing_medicare.rb +3 -0
  176. data/lib/vericred_client/models/plan_show_response.rb +4 -1
  177. data/lib/vericred_client/models/{plans_bulk_search_response.rb → plans_bulk_aca2018_response.rb} +5 -2
  178. data/lib/vericred_client/models/plans_bulk_aca_pre2018.rb +3 -0
  179. data/lib/vericred_client/models/plans_bulk_base.rb +3 -0
  180. data/lib/vericred_client/models/plans_bulk_dental.rb +3 -0
  181. data/lib/vericred_client/models/plans_bulk_search_request.rb +3 -0
  182. data/lib/vericred_client/models/plans_bulk_vision.rb +3 -0
  183. data/lib/vericred_client/models/premiums.rb +3 -0
  184. data/lib/vericred_client/models/provider.rb +3 -0
  185. data/lib/vericred_client/models/provider_details.rb +4 -13
  186. data/lib/vericred_client/models/provider_geocode.rb +3 -0
  187. data/lib/vericred_client/models/provider_network_event_notification.rb +3 -0
  188. data/lib/vericred_client/models/provider_network_specialty.rb +3 -0
  189. data/lib/vericred_client/models/provider_networks.rb +3 -0
  190. data/lib/vericred_client/models/provider_networks_address.rb +3 -0
  191. data/lib/vericred_client/models/provider_plan_network_response.rb +3 -0
  192. data/lib/vericred_client/models/provider_plan_response.rb +3 -0
  193. data/lib/vericred_client/models/provider_plans.rb +3 -0
  194. data/lib/vericred_client/models/provider_plans_request.rb +3 -0
  195. data/lib/vericred_client/models/provider_show_response.rb +3 -0
  196. data/lib/vericred_client/models/providers_geocode_response.rb +3 -0
  197. data/lib/vericred_client/models/providers_search_response.rb +3 -0
  198. data/lib/vericred_client/models/quote_create.rb +3 -0
  199. data/lib/vericred_client/models/quote_create_request.rb +3 -0
  200. data/lib/vericred_client/models/quote_create_response.rb +3 -0
  201. data/lib/vericred_client/models/quote_show.rb +3 -0
  202. data/lib/vericred_client/models/quote_show_response.rb +3 -0
  203. data/lib/vericred_client/models/rate_request.rb +3 -0
  204. data/lib/vericred_client/models/rate_search.rb +3 -0
  205. data/lib/vericred_client/models/rate_show.rb +14 -1
  206. data/lib/vericred_client/models/rate_show_request.rb +3 -0
  207. data/lib/vericred_client/models/rates_show_response.rb +3 -0
  208. data/lib/vericred_client/models/rating_area.rb +3 -0
  209. data/lib/vericred_client/models/request_plan_find_applicant.rb +3 -0
  210. data/lib/vericred_client/models/request_plan_find_drug_package.rb +3 -0
  211. data/lib/vericred_client/models/request_plan_find_provider.rb +3 -0
  212. data/lib/vericred_client/models/request_provider_notification_subscription.rb +3 -0
  213. data/lib/vericred_client/models/request_providers_search.rb +14 -1
  214. data/lib/vericred_client/models/request_rates_search.rb +3 -0
  215. data/lib/vericred_client/models/response_rates_search.rb +3 -0
  216. data/lib/vericred_client/models/rx_cui_identifier.rb +3 -0
  217. data/lib/vericred_client/models/rx_cui_identifier_search_response.rb +3 -0
  218. data/lib/vericred_client/models/service_area.rb +3 -0
  219. data/lib/vericred_client/models/service_area_update.rb +3 -0
  220. data/lib/vericred_client/models/service_area_zip_county.rb +3 -0
  221. data/lib/vericred_client/models/service_area_zip_county_update.rb +3 -0
  222. data/lib/vericred_client/models/specialty_search_response.rb +3 -0
  223. data/lib/vericred_client/models/specialty_show.rb +3 -0
  224. data/lib/vericred_client/models/state.rb +3 -0
  225. data/lib/vericred_client/models/state_network_size_request.rb +3 -0
  226. data/lib/vericred_client/models/state_network_size_response.rb +3 -0
  227. data/lib/vericred_client/models/supplemental_options.rb +3 -0
  228. data/lib/vericred_client/models/supplemental_options_update.rb +3 -0
  229. data/lib/vericred_client/models/three_tier_composite.rb +3 -0
  230. data/lib/vericred_client/models/two_tier_composite.rb +3 -0
  231. data/lib/vericred_client/models/v7_network_comparison_response.rb +3 -0
  232. data/lib/vericred_client/models/v7_response_providers_provider_details.rb +4 -13
  233. data/lib/vericred_client/models/vision_plan.rb +14 -1
  234. data/lib/vericred_client/models/vision_plan_benefits.rb +3 -0
  235. data/lib/vericred_client/models/vision_plan_search.rb +10 -7
  236. data/lib/vericred_client/models/vision_plan_search_applicant.rb +3 -0
  237. data/lib/vericred_client/models/vision_plan_search_request.rb +4 -1
  238. data/lib/vericred_client/models/vision_plan_search_response.rb +3 -0
  239. data/lib/vericred_client/models/vision_plan_show_response.rb +3 -0
  240. data/lib/vericred_client/models/vision_plan_update.rb +3 -0
  241. data/lib/vericred_client/models/vision_plan_update_request.rb +3 -0
  242. data/lib/vericred_client/models/zip_code.rb +3 -0
  243. data/lib/vericred_client/models/zip_counties_response.rb +3 -0
  244. data/lib/vericred_client/models/zip_county.rb +3 -0
  245. data/lib/vericred_client/models/zip_county_bulk.rb +3 -0
  246. data/lib/vericred_client/models/zip_county_response.rb +3 -0
  247. data/lib/vericred_client/version.rb +4 -1
  248. data/spec/api/bulk_plans_api_spec.rb +5 -2
  249. data/spec/api/carrier_groups_api_spec.rb +3 -0
  250. data/spec/api/carrier_subsidiary_disclaimers_api_spec.rb +3 -0
  251. data/spec/api/carriers_api_spec.rb +3 -0
  252. data/spec/api/dental_plans_api_spec.rb +3 -0
  253. data/spec/api/drugs_api_spec.rb +3 -0
  254. data/spec/api/embargoes_api_spec.rb +3 -0
  255. data/spec/api/formularies_api_spec.rb +3 -0
  256. data/spec/api/issuers_api_spec.rb +3 -0
  257. data/spec/api/major_medical_plans_api_spec.rb +6 -3
  258. data/spec/api/medical_plans_api_spec.rb +6 -3
  259. data/spec/api/medicare_advantage_plans_api_spec.rb +3 -0
  260. data/spec/api/network_sizes_api_spec.rb +3 -0
  261. data/spec/api/networks_api_spec.rb +4 -1
  262. data/spec/api/plans_api_spec.rb +3 -0
  263. data/spec/api/providers_api_spec.rb +3 -0
  264. data/spec/api/quoting_api_spec.rb +8 -3
  265. data/spec/api/rates_api_spec.rb +3 -0
  266. data/spec/api/service_areas_api_spec.rb +3 -0
  267. data/spec/api/specialties_api_spec.rb +3 -0
  268. data/spec/api/vision_plans_api_spec.rb +3 -0
  269. data/spec/api/zip_counties_api_spec.rb +3 -0
  270. data/spec/api_client_spec.rb +3 -0
  271. data/spec/configuration_spec.rb +3 -0
  272. data/spec/models/aca_plan2018_search_response_spec.rb +3 -0
  273. data/spec/models/aca_plan2018_search_result_spec.rb +10 -1
  274. data/spec/models/aca_plan2018_search_spec.rb +10 -1
  275. data/spec/models/aca_plan2018_show_response_spec.rb +3 -0
  276. data/spec/models/aca_plan2018_spec.rb +15 -0
  277. data/spec/models/aca_plan_pre2018_bulk_spec.rb +10 -1
  278. data/spec/models/aca_plan_pre2018_search_response_spec.rb +3 -0
  279. data/spec/models/aca_plan_pre2018_search_result_spec.rb +10 -1
  280. data/spec/models/aca_plan_pre2018_search_spec.rb +10 -1
  281. data/spec/models/aca_plan_pre2018_show_response_spec.rb +3 -0
  282. data/spec/models/aca_plan_pre2018_spec.rb +15 -0
  283. data/spec/models/aca_plan_spec.rb +15 -0
  284. data/spec/models/address_spec.rb +3 -0
  285. data/spec/models/adult_child_tier_composite_spec.rb +3 -0
  286. data/spec/models/age_banded_spec.rb +3 -0
  287. data/spec/models/ancillary_plan_identifier_spec.rb +3 -0
  288. data/spec/models/base_plan_search_response_spec.rb +3 -0
  289. data/spec/models/base_spec.rb +3 -0
  290. data/spec/models/{plan_search_response_spec.rb → business_rule_set_spec.rb} +12 -9
  291. data/spec/models/business_rule_spec.rb +1047 -0
  292. data/spec/models/carrier_group_request_spec.rb +3 -0
  293. data/spec/models/carrier_request_spec.rb +3 -0
  294. data/spec/models/carrier_spec.rb +3 -0
  295. data/spec/models/{dental_plan_bulk_spec.rb → carrier_subsidiary_bulk_spec.rb} +12 -63
  296. data/spec/models/carrier_subsidiary_disclaimer_spec.rb +3 -0
  297. data/spec/models/carrier_subsidiary_spec.rb +3 -0
  298. data/spec/models/composite_spec.rb +3 -0
  299. data/spec/models/county_bulk_spec.rb +3 -0
  300. data/spec/models/county_spec.rb +3 -0
  301. data/spec/models/dental_plan_benefits_spec.rb +3 -0
  302. data/spec/models/dental_plan_search_applicant_spec.rb +3 -0
  303. data/spec/models/dental_plan_search_request_spec.rb +3 -0
  304. data/spec/models/dental_plan_search_response_spec.rb +3 -0
  305. data/spec/models/dental_plan_search_spec.rb +4 -1
  306. data/spec/models/dental_plan_show_response_spec.rb +3 -0
  307. data/spec/models/dental_plan_spec.rb +9 -0
  308. data/spec/models/dental_plan_update_request_spec.rb +3 -0
  309. data/spec/models/dental_plan_update_spec.rb +3 -0
  310. data/spec/models/dependent_create_request_spec.rb +3 -0
  311. data/spec/models/dependent_create_spec.rb +3 -0
  312. data/spec/models/dependent_show_spec.rb +3 -0
  313. data/spec/models/drug_coverage_base_spec.rb +3 -0
  314. data/spec/models/drug_coverage_response_spec.rb +3 -0
  315. data/spec/models/drug_coverage_spec.rb +3 -0
  316. data/spec/models/drug_details_spec.rb +3 -0
  317. data/spec/models/drug_package_spec.rb +3 -0
  318. data/spec/models/drug_search_drug_package_spec.rb +3 -0
  319. data/spec/models/drug_search_request_spec.rb +3 -0
  320. data/spec/models/drug_search_response_spec.rb +3 -0
  321. data/spec/models/drug_spec.rb +3 -0
  322. data/spec/models/embargo_request_spec.rb +3 -0
  323. data/spec/models/formulary_drug_coverage_spec.rb +3 -0
  324. data/spec/models/formulary_drug_package_response_spec.rb +3 -0
  325. data/spec/models/formulary_response_spec.rb +3 -0
  326. data/spec/models/formulary_spec.rb +3 -0
  327. data/spec/models/four_tier_composite_spec.rb +3 -0
  328. data/spec/models/group_create_request_spec.rb +3 -0
  329. data/spec/models/group_create_response_spec.rb +3 -0
  330. data/spec/models/group_create_spec.rb +3 -0
  331. data/spec/models/group_show_response_spec.rb +3 -0
  332. data/spec/models/group_show_spec.rb +3 -0
  333. data/spec/models/group_update_request_spec.rb +3 -0
  334. data/spec/models/group_update_spec.rb +3 -0
  335. data/spec/models/issuer_request_spec.rb +3 -0
  336. data/spec/models/location_create_spec.rb +3 -0
  337. data/spec/models/location_show_spec.rb +3 -0
  338. data/spec/models/{plans_bulk_aca2018_spec.rb → location_spec.rb} +16 -7
  339. data/spec/models/location_update_spec.rb +3 -0
  340. data/spec/models/medical_plan_benefits_spec.rb +3 -0
  341. data/spec/models/medical_plan_search_request_spec.rb +3 -0
  342. data/spec/models/medical_plan_update_request_spec.rb +3 -0
  343. data/spec/models/medical_plan_update_spec.rb +3 -0
  344. data/spec/models/medicare_advantage_plan_benefits_spec.rb +3 -0
  345. data/spec/models/medicare_advantage_plan_search_request_spec.rb +3 -0
  346. data/spec/models/medicare_advantage_plan_search_response_spec.rb +3 -0
  347. data/spec/models/medicare_advantage_plan_search_spec.rb +3 -0
  348. data/spec/models/medicare_advantage_plan_show_response_spec.rb +3 -0
  349. data/spec/models/medicare_advantage_plan_spec.rb +3 -0
  350. data/spec/models/medicare_advantage_plan_update_request_spec.rb +3 -0
  351. data/spec/models/medicare_advantage_plan_update_spec.rb +3 -0
  352. data/spec/models/member_adult_child_tier_composite_spec.rb +3 -0
  353. data/spec/models/member_age_banded_spec.rb +3 -0
  354. data/spec/models/member_create_spec.rb +3 -0
  355. data/spec/models/member_premiums_spec.rb +3 -0
  356. data/spec/models/member_rate_show_request_spec.rb +3 -0
  357. data/spec/models/member_rate_show_spec.rb +3 -0
  358. data/spec/models/member_rates_show_response_spec.rb +3 -0
  359. data/spec/models/member_show_spec.rb +3 -0
  360. data/spec/models/members_create_request_spec.rb +3 -0
  361. data/spec/models/members_create_response_spec.rb +3 -0
  362. data/spec/models/members_show_response_spec.rb +3 -0
  363. data/spec/models/meta_plan_search_response_spec.rb +3 -0
  364. data/spec/models/meta_spec.rb +3 -0
  365. data/spec/models/network_comparison_request_spec.rb +3 -0
  366. data/spec/models/network_comparison_response_spec.rb +3 -0
  367. data/spec/models/network_comparison_spec.rb +3 -0
  368. data/spec/models/network_details_response_spec.rb +3 -0
  369. data/spec/models/network_details_spec.rb +3 -0
  370. data/spec/models/network_disruption_analysis_request_spec.rb +3 -0
  371. data/spec/models/network_disruption_analysis_response_spec.rb +3 -0
  372. data/spec/models/network_disruption_analysis_spec.rb +3 -0
  373. data/spec/models/network_search_response_spec.rb +3 -0
  374. data/spec/models/network_search_spec.rb +3 -0
  375. data/spec/models/network_size_spec.rb +3 -0
  376. data/spec/models/network_spec.rb +3 -0
  377. data/spec/models/notification_subscription_response_spec.rb +3 -0
  378. data/spec/models/notification_subscription_spec.rb +3 -0
  379. data/spec/models/plan_ancestor_spec.rb +4 -1
  380. data/spec/models/plan_county_bulk_spec.rb +3 -0
  381. data/spec/models/plan_county_spec.rb +3 -0
  382. data/spec/models/plan_deleted_spec.rb +3 -0
  383. data/spec/models/plan_identifier_spec.rb +3 -0
  384. data/spec/models/plan_medicare_bulk_spec.rb +3 -0
  385. data/spec/models/plan_medicare_spec.rb +3 -0
  386. data/spec/models/plan_network_spec.rb +3 -0
  387. data/spec/models/plan_pricing_medicare_spec.rb +3 -0
  388. data/spec/models/plan_show_response_spec.rb +3 -0
  389. data/spec/models/plan_spec.rb +3 -0
  390. data/spec/models/{plans_bulk_search_response_spec.rb → plans_bulk_aca2018_response_spec.rb} +9 -6
  391. data/spec/models/plans_bulk_aca_pre2018_spec.rb +3 -0
  392. data/spec/models/plans_bulk_base_spec.rb +3 -0
  393. data/spec/models/plans_bulk_dental_spec.rb +3 -0
  394. data/spec/models/plans_bulk_search_request_spec.rb +3 -0
  395. data/spec/models/plans_bulk_vision_spec.rb +3 -0
  396. data/spec/models/premiums_spec.rb +3 -0
  397. data/spec/models/provider_details_spec.rb +3 -6
  398. data/spec/models/provider_geocode_spec.rb +3 -0
  399. data/spec/models/provider_network_event_notification_spec.rb +3 -0
  400. data/spec/models/provider_network_specialty_spec.rb +3 -0
  401. data/spec/models/provider_networks_address_spec.rb +3 -0
  402. data/spec/models/provider_networks_spec.rb +3 -0
  403. data/spec/models/provider_plan_network_response_spec.rb +3 -0
  404. data/spec/models/provider_plan_response_spec.rb +3 -0
  405. data/spec/models/provider_plans_request_spec.rb +3 -0
  406. data/spec/models/provider_plans_spec.rb +3 -0
  407. data/spec/models/provider_show_response_spec.rb +3 -0
  408. data/spec/models/provider_spec.rb +3 -0
  409. data/spec/models/providers_geocode_response_spec.rb +3 -0
  410. data/spec/models/providers_search_response_spec.rb +3 -0
  411. data/spec/models/quote_create_request_spec.rb +3 -0
  412. data/spec/models/quote_create_response_spec.rb +3 -0
  413. data/spec/models/quote_create_spec.rb +3 -0
  414. data/spec/models/quote_show_response_spec.rb +3 -0
  415. data/spec/models/quote_show_spec.rb +3 -0
  416. data/spec/models/rate_request_spec.rb +3 -0
  417. data/spec/models/rate_search_spec.rb +3 -0
  418. data/spec/models/rate_show_request_spec.rb +3 -0
  419. data/spec/models/rate_show_spec.rb +9 -0
  420. data/spec/models/rates_show_response_spec.rb +3 -0
  421. data/spec/models/rating_area_spec.rb +3 -0
  422. data/spec/models/request_plan_find_applicant_spec.rb +3 -0
  423. data/spec/models/request_plan_find_drug_package_spec.rb +3 -0
  424. data/spec/models/request_plan_find_provider_spec.rb +3 -0
  425. data/spec/models/request_provider_notification_subscription_spec.rb +3 -0
  426. data/spec/models/request_providers_search_spec.rb +9 -0
  427. data/spec/models/request_rates_search_spec.rb +3 -0
  428. data/spec/models/response_rates_search_spec.rb +3 -0
  429. data/spec/models/rx_cui_identifier_search_response_spec.rb +3 -0
  430. data/spec/models/rx_cui_identifier_spec.rb +3 -0
  431. data/spec/models/service_area_spec.rb +3 -0
  432. data/spec/models/service_area_update_spec.rb +3 -0
  433. data/spec/models/service_area_zip_county_spec.rb +3 -0
  434. data/spec/models/service_area_zip_county_update_spec.rb +3 -0
  435. data/spec/models/specialty_search_response_spec.rb +3 -0
  436. data/spec/models/specialty_show_spec.rb +3 -0
  437. data/spec/models/state_network_size_request_spec.rb +3 -0
  438. data/spec/models/state_network_size_response_spec.rb +3 -0
  439. data/spec/models/state_spec.rb +3 -0
  440. data/spec/models/supplemental_options_spec.rb +3 -0
  441. data/spec/models/supplemental_options_update_spec.rb +3 -0
  442. data/spec/models/three_tier_composite_spec.rb +3 -0
  443. data/spec/models/two_tier_composite_spec.rb +3 -0
  444. data/spec/models/v7_network_comparison_response_spec.rb +3 -0
  445. data/spec/models/v7_response_providers_provider_details_spec.rb +3 -6
  446. data/spec/models/vision_plan_benefits_spec.rb +3 -0
  447. data/spec/models/vision_plan_search_applicant_spec.rb +3 -0
  448. data/spec/models/vision_plan_search_request_spec.rb +3 -0
  449. data/spec/models/vision_plan_search_response_spec.rb +3 -0
  450. data/spec/models/vision_plan_search_spec.rb +4 -1
  451. data/spec/models/vision_plan_show_response_spec.rb +3 -0
  452. data/spec/models/vision_plan_spec.rb +9 -0
  453. data/spec/models/vision_plan_update_request_spec.rb +3 -0
  454. data/spec/models/vision_plan_update_spec.rb +3 -0
  455. data/spec/models/zip_code_spec.rb +3 -0
  456. data/spec/models/zip_counties_response_spec.rb +3 -0
  457. data/spec/models/zip_county_bulk_spec.rb +3 -0
  458. data/spec/models/zip_county_response_spec.rb +3 -0
  459. data/spec/models/zip_county_spec.rb +3 -0
  460. data/spec/spec_helper.rb +3 -0
  461. data/vericred_client.gemspec +3 -0
  462. metadata +22 -30
  463. data/docs/ACAPlan2018Bulk.md +0 -100
  464. data/docs/ACAPlanSearch.md +0 -97
  465. data/docs/DentalPlanBulk.md +0 -21
  466. data/docs/PlanSearchResponse.md +0 -10
  467. data/docs/PlansBulkACA2018.md +0 -8
  468. data/docs/VisionPlanBulk.md +0 -21
  469. data/lib/vericred_client/models/aca_plan2018_bulk.rb +0 -2113
  470. data/lib/vericred_client/models/aca_plan_search.rb +0 -2085
  471. data/lib/vericred_client/models/dental_plan_bulk.rb +0 -1319
  472. data/spec/models/aca_plan2018_bulk_spec.rb +0 -1590
  473. data/spec/models/aca_plan_search_spec.rb +0 -1572
  474. data/spec/models/vision_plan_bulk_spec.rb +0 -1116
@@ -240,6 +240,7 @@ The following are the appropriate Benefit Fields for Major Medical:
240
240
  - individual\_medical\_deductible
241
241
  - individual\_medical\_moop
242
242
  - inpatient\_birth
243
+ - inpatient\_birth\_physician
243
244
  - inpatient\_facility
244
245
  - inpatient\_mental\_health
245
246
  - inpatient\_physician
@@ -253,6 +254,7 @@ The following are the appropriate Benefit Fields for Major Medical:
253
254
  - outpatient\_mental\_health
254
255
  - outpatient\_physician
255
256
  - outpatient\_substance
257
+ - plan\_coinsurance
256
258
  - postnatal\_care
257
259
  - preferred\_brand\_drugs
258
260
  - prenatal\_care
@@ -262,6 +264,7 @@ The following are the appropriate Benefit Fields for Major Medical:
262
264
  - skilled\_nursing
263
265
  - specialist
264
266
  - specialty\_drugs
267
+ - telemedicine
265
268
  - urgent\_care
266
269
 
267
270
  ### Dental
@@ -240,6 +240,7 @@ The following are the appropriate Benefit Fields for Major Medical:
240
240
  - individual\_medical\_deductible
241
241
  - individual\_medical\_moop
242
242
  - inpatient\_birth
243
+ - inpatient\_birth\_physician
243
244
  - inpatient\_facility
244
245
  - inpatient\_mental\_health
245
246
  - inpatient\_physician
@@ -253,6 +254,7 @@ The following are the appropriate Benefit Fields for Major Medical:
253
254
  - outpatient\_mental\_health
254
255
  - outpatient\_physician
255
256
  - outpatient\_substance
257
+ - plan\_coinsurance
256
258
  - postnatal\_care
257
259
  - preferred\_brand\_drugs
258
260
  - prenatal\_care
@@ -262,6 +264,7 @@ The following are the appropriate Benefit Fields for Major Medical:
262
264
  - skilled\_nursing
263
265
  - specialist
264
266
  - specialty\_drugs
267
+ - telemedicine
265
268
  - urgent\_care
266
269
 
267
270
  ### Dental
@@ -240,6 +240,7 @@ The following are the appropriate Benefit Fields for Major Medical:
240
240
  - individual\_medical\_deductible
241
241
  - individual\_medical\_moop
242
242
  - inpatient\_birth
243
+ - inpatient\_birth\_physician
243
244
  - inpatient\_facility
244
245
  - inpatient\_mental\_health
245
246
  - inpatient\_physician
@@ -253,6 +254,7 @@ The following are the appropriate Benefit Fields for Major Medical:
253
254
  - outpatient\_mental\_health
254
255
  - outpatient\_physician
255
256
  - outpatient\_substance
257
+ - plan\_coinsurance
256
258
  - postnatal\_care
257
259
  - preferred\_brand\_drugs
258
260
  - prenatal\_care
@@ -262,6 +264,7 @@ The following are the appropriate Benefit Fields for Major Medical:
262
264
  - skilled\_nursing
263
265
  - specialist
264
266
  - specialty\_drugs
267
+ - telemedicine
265
268
  - urgent\_care
266
269
 
267
270
  ### Dental
@@ -240,6 +240,7 @@ The following are the appropriate Benefit Fields for Major Medical:
240
240
  - individual\_medical\_deductible
241
241
  - individual\_medical\_moop
242
242
  - inpatient\_birth
243
+ - inpatient\_birth\_physician
243
244
  - inpatient\_facility
244
245
  - inpatient\_mental\_health
245
246
  - inpatient\_physician
@@ -253,6 +254,7 @@ The following are the appropriate Benefit Fields for Major Medical:
253
254
  - outpatient\_mental\_health
254
255
  - outpatient\_physician
255
256
  - outpatient\_substance
257
+ - plan\_coinsurance
256
258
  - postnatal\_care
257
259
  - preferred\_brand\_drugs
258
260
  - prenatal\_care
@@ -262,6 +264,7 @@ The following are the appropriate Benefit Fields for Major Medical:
262
264
  - skilled\_nursing
263
265
  - specialist
264
266
  - specialty\_drugs
267
+ - telemedicine
265
268
  - urgent\_care
266
269
 
267
270
  ### Dental
@@ -240,6 +240,7 @@ The following are the appropriate Benefit Fields for Major Medical:
240
240
  - individual\_medical\_deductible
241
241
  - individual\_medical\_moop
242
242
  - inpatient\_birth
243
+ - inpatient\_birth\_physician
243
244
  - inpatient\_facility
244
245
  - inpatient\_mental\_health
245
246
  - inpatient\_physician
@@ -253,6 +254,7 @@ The following are the appropriate Benefit Fields for Major Medical:
253
254
  - outpatient\_mental\_health
254
255
  - outpatient\_physician
255
256
  - outpatient\_substance
257
+ - plan\_coinsurance
256
258
  - postnatal\_care
257
259
  - preferred\_brand\_drugs
258
260
  - prenatal\_care
@@ -262,6 +264,7 @@ The following are the appropriate Benefit Fields for Major Medical:
262
264
  - skilled\_nursing
263
265
  - specialist
264
266
  - specialty\_drugs
267
+ - telemedicine
265
268
  - urgent\_care
266
269
 
267
270
  ### Dental
@@ -240,6 +240,7 @@ The following are the appropriate Benefit Fields for Major Medical:
240
240
  - individual\_medical\_deductible
241
241
  - individual\_medical\_moop
242
242
  - inpatient\_birth
243
+ - inpatient\_birth\_physician
243
244
  - inpatient\_facility
244
245
  - inpatient\_mental\_health
245
246
  - inpatient\_physician
@@ -253,6 +254,7 @@ The following are the appropriate Benefit Fields for Major Medical:
253
254
  - outpatient\_mental\_health
254
255
  - outpatient\_physician
255
256
  - outpatient\_substance
257
+ - plan\_coinsurance
256
258
  - postnatal\_care
257
259
  - preferred\_brand\_drugs
258
260
  - prenatal\_care
@@ -262,6 +264,7 @@ The following are the appropriate Benefit Fields for Major Medical:
262
264
  - skilled\_nursing
263
265
  - specialist
264
266
  - specialty\_drugs
267
+ - telemedicine
265
268
  - urgent\_care
266
269
 
267
270
  ### Dental
@@ -240,6 +240,7 @@ The following are the appropriate Benefit Fields for Major Medical:
240
240
  - individual\_medical\_deductible
241
241
  - individual\_medical\_moop
242
242
  - inpatient\_birth
243
+ - inpatient\_birth\_physician
243
244
  - inpatient\_facility
244
245
  - inpatient\_mental\_health
245
246
  - inpatient\_physician
@@ -253,6 +254,7 @@ The following are the appropriate Benefit Fields for Major Medical:
253
254
  - outpatient\_mental\_health
254
255
  - outpatient\_physician
255
256
  - outpatient\_substance
257
+ - plan\_coinsurance
256
258
  - postnatal\_care
257
259
  - preferred\_brand\_drugs
258
260
  - prenatal\_care
@@ -262,6 +264,7 @@ The following are the appropriate Benefit Fields for Major Medical:
262
264
  - skilled\_nursing
263
265
  - specialist
264
266
  - specialty\_drugs
267
+ - telemedicine
265
268
  - urgent\_care
266
269
 
267
270
  ### Dental
@@ -1010,32 +1013,27 @@ require 'date'
1010
1013
 
1011
1014
  module VericredClient
1012
1015
 
1013
- class PlanSearchResponse
1014
- # Coverages associated with the plan.
1015
- attr_accessor :coverages
1016
+ class BusinessRule
1017
+ # Relevant data for the Business Rule
1018
+ attr_accessor :data
1016
1019
 
1017
- # Meta-data
1018
- attr_accessor :meta
1019
-
1020
- # Plan search results
1021
- attr_accessor :plans
1020
+ # Type of Business Rule
1021
+ attr_accessor :type
1022
1022
 
1023
1023
 
1024
1024
  # Attribute mapping from ruby-style variable name to JSON key.
1025
1025
  def self.attribute_map
1026
1026
  {
1027
- :'coverages' => :'coverages',
1028
- :'meta' => :'meta',
1029
- :'plans' => :'plans'
1027
+ :'data' => :'data',
1028
+ :'type' => :'type'
1030
1029
  }
1031
1030
  end
1032
1031
 
1033
1032
  # Attribute type mapping.
1034
1033
  def self.swagger_types
1035
1034
  {
1036
- :'coverages' => :'Array<DrugCoverage>',
1037
- :'meta' => :'Meta',
1038
- :'plans' => :'Array<ACAPlanSearch>'
1035
+ :'data' => :'Hash',
1036
+ :'type' => :'String'
1039
1037
  }
1040
1038
  end
1041
1039
 
@@ -1047,20 +1045,12 @@ module VericredClient
1047
1045
  # convert string to symbol for hash key
1048
1046
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
1049
1047
 
1050
- if attributes.has_key?(:'coverages')
1051
- if (value = attributes[:'coverages']).is_a?(Array)
1052
- self.coverages = value
1053
- end
1048
+ if attributes.has_key?(:'data')
1049
+ self.data = attributes[:'data']
1054
1050
  end
1055
1051
 
1056
- if attributes.has_key?(:'meta')
1057
- self.meta = attributes[:'meta']
1058
- end
1059
-
1060
- if attributes.has_key?(:'plans')
1061
- if (value = attributes[:'plans']).is_a?(Array)
1062
- self.plans = value
1063
- end
1052
+ if attributes.has_key?(:'type')
1053
+ self.type = attributes[:'type']
1064
1054
  end
1065
1055
 
1066
1056
  end
@@ -1083,9 +1073,8 @@ module VericredClient
1083
1073
  def ==(o)
1084
1074
  return true if self.equal?(o)
1085
1075
  self.class == o.class &&
1086
- coverages == o.coverages &&
1087
- meta == o.meta &&
1088
- plans == o.plans
1076
+ data == o.data &&
1077
+ type == o.type
1089
1078
  end
1090
1079
 
1091
1080
  # @see the `==` method
@@ -1097,7 +1086,7 @@ module VericredClient
1097
1086
  # Calculates hash code according to all attributes.
1098
1087
  # @return [Fixnum] Hash code
1099
1088
  def hash
1100
- [coverages, meta, plans].hash
1089
+ [data, type].hash
1101
1090
  end
1102
1091
 
1103
1092
  # Builds the object from hash
@@ -0,0 +1,1210 @@
1
+ =begin
2
+ #Vericred API
3
+
4
+ ## Getting Started
5
+
6
+ ## Signing Up
7
+
8
+ Visit our [Developer Portal](https://developers.vericred.com) to
9
+ create an account.
10
+
11
+ Once you have created an account, you can create one Application for your
12
+ Production environment and another for a Sandbox (select the appropriate Plan when you create the Application).
13
+
14
+ ## SDKs
15
+
16
+ Our API follows standard REST conventions, so you can use any HTTP client
17
+ to integrate with us. You will likely find it easier to use one of our
18
+ [autogenerated SDKs](https://github.com/vericred/?query=vericred-),
19
+ which we make available for several common programming languages.
20
+
21
+ ## Authentication
22
+
23
+ To authenticate, pass the API Key you created in the Developer Portal as
24
+ a `Vericred-Api-Key` header.
25
+
26
+ `curl -H 'Vericred-Api-Key: YOUR_KEY' "https://api.vericred.com/drugs?search_term=Lipitor"`
27
+
28
+ ## Versioning
29
+
30
+ Vericred's API default to the latest version. However, if you need a specific
31
+ version, you can request it with an `Accept-Version` header.
32
+
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.
36
+
37
+ `curl -H 'Vericred-Api-Key: YOUR_KEY' -H 'Accept-Version: v6' "https://api.vericred.com/drugs?search_term=Lipitor"`
38
+
39
+ ## Pagination
40
+
41
+ Endpoints that accept `page` and `per_page` parameters are paginated. They expose
42
+ four additional fields that contain data about your position in the response,
43
+ namely `Total`, `Per-Page`, `Link`, and `Page` as described in [RFC-5988](https://tools.ietf.org/html/rfc5988).
44
+
45
+ For example, to display 5 results per page and view the second page of a
46
+ `GET` to `/networks`, your final request would be `GET /networks?....page=2&per_page=5`.
47
+
48
+ ## Sideloading
49
+
50
+ When we return multiple levels of an object graph (e.g. `Provider`s and their
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`
55
+
56
+ ### Simplified Example
57
+ ```
58
+ {
59
+ providers: [{ id: 1, state_id: 1}, { id: 2, state_id: 1 }],
60
+ states: [{ id: 1, code: 'NY' }]
61
+ }
62
+ ```
63
+
64
+ If you need the second level of the object graph, you can just match the
65
+ corresponding id.
66
+
67
+ ## Selecting specific data
68
+
69
+ All endpoints allow you to specify which fields you would like to return.
70
+ This allows you to limit the response to contain only the data you need.
71
+
72
+ For example, let's take a request that returns the following JSON by default
73
+
74
+ ```
75
+ {
76
+ provider: {
77
+ id: 1,
78
+ name: 'John',
79
+ phone: '1234567890',
80
+ field_we_dont_care_about: 'value_we_dont_care_about'
81
+ },
82
+ states: [{
83
+ id: 1,
84
+ name: 'New York',
85
+ code: 'NY',
86
+ field_we_dont_care_about: 'value_we_dont_care_about'
87
+ }]
88
+ }
89
+ ```
90
+
91
+ To limit our results to only return the fields we care about, we specify the
92
+ `select` in the query string for a `GET` or the body for a `POST`.
93
+
94
+ In this case, we want to select `name` and `phone` from the `provider` key,
95
+ so we would add the parameters `select=provider.name,provider.phone`.
96
+ We also want the `name` and `code` from the `states` key, so we would
97
+ add the parameters `select=states.name,states.code`. The id field of
98
+ each document is always returned whether or not it is requested.
99
+
100
+ Our final request would be `GET /providers/1234567898?select=provider.name,provider.phone,states.name,states.code`
101
+
102
+ The response would be
103
+
104
+ ```
105
+ {
106
+ provider: {
107
+ id: 1234567898,
108
+ name: 'John',
109
+ phone: '1234567890'
110
+ },
111
+ states: [{
112
+ id: 1,
113
+ name: 'New York',
114
+ code: 'NY'
115
+ }]
116
+ }
117
+ ```
118
+
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
+
131
+ Benefit cost-share strings are formatted to capture:
132
+ * Network tiers
133
+ * Compound or conditional cost-share
134
+ * Limits on the cost-share
135
+ * Benefit-specific maximum out-of-pocket costs
136
+
137
+ **Example #1**
138
+ As an example, we would represent [this Summary of Benefits &amp; Coverage](https://s3.amazonaws.com/vericred-data/SBC/2017/33602TX0780032.pdf) as:
139
+
140
+ * **Hospital stay facility fees**:
141
+ - Network Provider: `$400 copay/admit plus 20% coinsurance`
142
+ - Out-of-Network Provider: `$1,500 copay/admit plus 50% coinsurance`
143
+ - Vericred's format for this benefit: `In-Network: $400 before deductible then 20% after deductible / Out-of-Network: $1,500 before deductible then 50% after deductible`
144
+
145
+ * **Rehabilitation services:**
146
+ - Network Provider: `20% coinsurance`
147
+ - Out-of-Network Provider: `50% coinsurance`
148
+ - Limitations & Exceptions: `35 visit maximum per benefit period combined with Chiropractic care.`
149
+ - Vericred's format for this benefit: `In-Network: 20% after deductible / Out-of-Network: 50% after deductible | limit: 35 visit(s) per Benefit Period`
150
+
151
+ **Example #2**
152
+ In [this other Summary of Benefits &amp; Coverage](https://s3.amazonaws.com/vericred-data/SBC/2017/40733CA0110568.pdf), the **specialty_drugs** cost-share has a maximum out-of-pocket for in-network pharmacies.
153
+ * **Specialty drugs:**
154
+ - Network Provider: `40% coinsurance up to a $500 maximum for up to a 30 day supply`
155
+ - Out-of-Network Provider `Not covered`
156
+ - Vericred's format for this benefit: `In-Network: 40% after deductible, up to $500 per script / Out-of-Network: 100%`
157
+
158
+ **BNF**
159
+
160
+ Here's a description of the benefits summary string, represented as a context-free grammar:
161
+
162
+ ```
163
+ root ::= coverage
164
+
165
+ coverage ::= (simple_coverage | tiered_coverage) (space pipe space coverage_modifier)?
166
+ tiered_coverage ::= tier (space slash space tier)*
167
+ tier ::= tier_name colon space (tier_coverage | not_applicable)
168
+ tier_coverage ::= simple_coverage (space (then | or | and) space simple_coverage)* tier_limitation?
169
+ simple_coverage ::= (pre_coverage_limitation space)? coverage_amount (space post_coverage_limitation)? (comma? space coverage_condition)?
170
+ coverage_modifier ::= limit_condition colon space (((simple_coverage | simple_limitation) (semicolon space see_carrier_documentation)?) | see_carrier_documentation | waived_if_admitted | shared_across_tiers)
171
+ waived_if_admitted ::= ("copay" space)? "waived if admitted"
172
+ simple_limitation ::= pre_coverage_limitation space "copay applies"
173
+ tier_name ::= "In-Network-Tier-2" | "Out-of-Network" | "In-Network"
174
+ limit_condition ::= "limit" | "condition"
175
+ tier_limitation ::= comma space "up to" space (currency | (integer space time_unit plural?)) (space post_coverage_limitation)?
176
+ coverage_amount ::= currency | unlimited | included | unknown | percentage | (digits space (treatment_unit | time_unit) plural?)
177
+ pre_coverage_limitation ::= first space digits space time_unit plural?
178
+ post_coverage_limitation ::= (((then space currency) | "per condition") space)? "per" space (treatment_unit | (integer space time_unit) | time_unit) plural?
179
+ coverage_condition ::= ("before deductible" | "after deductible" | "penalty" | allowance | "in-state" | "out-of-state") (space allowance)?
180
+ allowance ::= upto_allowance | after_allowance
181
+ upto_allowance ::= "up to" space (currency space)? "allowance"
182
+ after_allowance ::= "after" space (currency space)? "allowance"
183
+ see_carrier_documentation ::= "see carrier documentation for more information"
184
+ shared_across_tiers ::= "shared across all tiers"
185
+ unknown ::= "unknown"
186
+ unlimited ::= /[uU]nlimited/
187
+ included ::= /[iI]ncluded in [mM]edical/
188
+ time_unit ::= /[hH]our/ | (((/[cC]alendar/ | /[cC]ontract/) space)? /[yY]ear/) | /[mM]onth/ | /[dD]ay/ | /[wW]eek/ | /[vV]isit/ | /[lL]ifetime/ | ((((/[bB]enefit/ plural?) | /[eE]ligibility/) space)? /[pP]eriod/)
189
+ treatment_unit ::= /[pP]erson/ | /[gG]roup/ | /[cC]ondition/ | /[sS]cript/ | /[vV]isit/ | /[eE]xam/ | /[iI]tem/ | /[sS]tay/ | /[tT]reatment/ | /[aA]dmission/ | /[eE]pisode/
190
+ comma ::= ","
191
+ colon ::= ":"
192
+ semicolon ::= ";"
193
+ pipe ::= "|"
194
+ slash ::= "/"
195
+ plural ::= "(s)" | "s"
196
+ then ::= "then" | ("," space) | space
197
+ or ::= "or"
198
+ and ::= "and"
199
+ not_applicable ::= "Not Applicable" | "N/A" | "NA"
200
+ first ::= "first"
201
+ currency ::= "$" number
202
+ percentage ::= number "%"
203
+ number ::= float | integer
204
+ float ::= digits "." digits
205
+ integer ::= /[0-9]/+ (comma_int | under_int)*
206
+ comma_int ::= ("," /[0-9]/*3) !"_"
207
+ under_int ::= ("_" /[0-9]/*3) !","
208
+ digits ::= /[0-9]/+ ("_" /[0-9]/+)*
209
+ space ::= /[ \t]/+
210
+ ```
211
+
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\_birth\_physician
244
+ - inpatient\_facility
245
+ - inpatient\_mental\_health
246
+ - inpatient\_physician
247
+ - inpatient\_substance
248
+ - lab\_test
249
+ - non\_preferred\_brand\_drugs
250
+ - nonpreferred\_generic\_drug\_share
251
+ - nonpreferred\_specialty\_drug\_share
252
+ - outpatient\_ambulatory\_care\_center
253
+ - outpatient\_facility
254
+ - outpatient\_mental\_health
255
+ - outpatient\_physician
256
+ - outpatient\_substance
257
+ - plan\_coinsurance
258
+ - postnatal\_care
259
+ - preferred\_brand\_drugs
260
+ - prenatal\_care
261
+ - preventative\_care
262
+ - primary\_care\_physician
263
+ - rehabilitation\_services
264
+ - skilled\_nursing
265
+ - specialist
266
+ - specialty\_drugs
267
+ - telemedicine
268
+ - urgent\_care
269
+
270
+ ### Dental
271
+
272
+ 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.
273
+
274
+ To view the technical documentation, [click here](#dental-plans).
275
+
276
+ The following are the supported Benefit Fields for Dental:
277
+
278
+ - bridges
279
+ - crowns
280
+ - denture\_relines\_rebases
281
+ - denture\_repair\_and\_adjustments
282
+ - dentures
283
+ - emergency\_treatment
284
+ - endodontics
285
+ - family\_annual\_max
286
+ - family\_deductible
287
+ - fluoride\_treatment
288
+ - implants
289
+ - individual\_annual\_max
290
+ - individual\_deductible
291
+ - inlays
292
+ - onlays
293
+ - oral\_exam
294
+ - oral\_surgery
295
+ - orthodontics\_adult
296
+ - orthodontics\_child
297
+ - periodontal\_maintenance
298
+ - periodontics
299
+ - prophylaxis\_cleaning
300
+ - radiograph\_bitewings
301
+ - radiograph\_other
302
+ - restoration\_fillings
303
+ - sealant
304
+ - simple\_extraction
305
+ - space\_maintainers
306
+
307
+ ### Vision
308
+
309
+ 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.
310
+
311
+ To view the technical documentation, [click here](#vision-plans).
312
+
313
+ The following are the supported Benefit Fields for Vision:
314
+
315
+ - eye\_exam
316
+ - retinal\_imaging
317
+ - frame
318
+ - eyeglass\_lenses\_single\_vision
319
+ - eyeglass\_lenses\_bifocal
320
+ - eyeglass\_lenses\_trifocal
321
+ - eyeglass\_lenses\_lenticular
322
+ - uv\_coating
323
+ - tint
324
+ - standard\_antireflective\_coating
325
+ - premium\_antireflective\_coating
326
+ - standard\_polycarbonate\_lenses\_child
327
+ - standard\_polycarbonate\_lenses\_adult
328
+ - standard\_progressive\_lenses
329
+ - premium\_progressive\_lenses
330
+ - standard\_scratch\_resistance
331
+ - polarized\_lenses
332
+ - photochromatic\_lenses
333
+ - standard\_contact\_lens\_fit\_and\_follow\_up
334
+ - premium\_contact\_lens\_fit\_and\_follow\_up
335
+ - contact\_lenses\_conventional
336
+ - contact\_lenses\_disposable
337
+ - contact\_lenses\_medically\_necessary
338
+ - laser\_vision\_correction
339
+ - additional\_pairs\_of\_eyeglasses
340
+
341
+ ### Medicare Advantage
342
+
343
+ 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.
344
+
345
+ 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).
346
+
347
+ 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.
348
+
349
+ [Click here](#header-medicare-advantage-quotes) to learn more about quoting Medicare Advantage plans.
350
+
351
+ ## Rates
352
+
353
+ Rates are returned from the API as a part of [Quoting](#header-quoting). We calculate Rates in one of two ways.
354
+
355
+ ### Sheet Rates
356
+ 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.
357
+
358
+ ### Rate Factors
359
+ 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).
360
+
361
+ 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)
362
+
363
+ 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).
364
+
365
+ In order to calculate a Rate using [Rate Factors](#header-rate-factors), the following methodology is applied:
366
+
367
+ ```
368
+ B = Base Rate
369
+ f = Rate Factor Function 1
370
+ f' = Rate Factor Function 2
371
+
372
+ B * f(x) * f'(y) [* f''(z)] ... = n
373
+ ```
374
+
375
+ ## Rating Areas
376
+ 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.
377
+
378
+ [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`.
379
+
380
+ *Rating Areas do not apply to products other than [Major Medical](#header-major-medical)*
381
+
382
+ ## Service Areas
383
+ 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.
384
+
385
+ 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`.
386
+
387
+ 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).
388
+
389
+ # Quoting
390
+
391
+ 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:
392
+
393
+ 1. Find all available [Plans](#header-plans) in the relevent [Service Areas](#header-service-areas) for the family or group.
394
+ 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).
395
+ 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.
396
+ 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.
397
+ 1. If running a [Composite](#compositerates) quote, determine the portion of the total Rate that each family will pay.
398
+
399
+ ## Individual Quotes
400
+ 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.
401
+
402
+ For details on Major Medical Quoting API calls see [below](#medicalplans-medicalplans-post)
403
+
404
+ ### Specifying the Location
405
+ 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:
406
+ ```
407
+ POST /plans/medical/search
408
+ {
409
+ ...
410
+ "zip_code": "11201",
411
+ "fips_code": "36047"
412
+ ...
413
+ }
414
+
415
+ ```
416
+
417
+ ### Specifying Applicants
418
+ Applicants are the members of the family being quoted and are specified in the `POST` body of the request.
419
+ ```
420
+ POST /plans/medical/search
421
+ {
422
+ ...
423
+ "applicants": [
424
+ {
425
+ "age": 34,
426
+ "smoker": true,
427
+ "child": false
428
+ },
429
+ {
430
+ "age": 32,
431
+ "smoker": false,
432
+ "child": false
433
+ },
434
+ {
435
+ "age": 4,
436
+ "smoker": false,
437
+ "child": true
438
+ }
439
+ ]
440
+ ...
441
+ }
442
+ ```
443
+
444
+ ### Specifying Enrollment Date
445
+ 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.
446
+
447
+ ### Plan Benefits
448
+ Plan Benefits are returned in the response for [Individual Quotes](#individualquotes)
449
+ ```
450
+ POST /plans/medical/search
451
+ {
452
+ ...
453
+ }
454
+
455
+ Response:
456
+ {
457
+ "plans": [
458
+ {
459
+ ...
460
+ "individual_medical_deductible": "$5,000",
461
+ "family_medical_deductible": "$10,000"
462
+ ...
463
+ }
464
+
465
+ ]
466
+ }
467
+
468
+ ```
469
+
470
+ ### Premiums
471
+ 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`
472
+
473
+ ### Major Medical Quotes
474
+ 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.
475
+
476
+ #### Subsidies
477
+ 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.
478
+
479
+ In order to calculate subsidies for a family the following parameters must be supplied:
480
+ ```
481
+ POST /plans/medical/search
482
+ {
483
+ ...
484
+ "household_size": 4,
485
+ "household_income": 40000
486
+ ...
487
+ }
488
+ ```
489
+
490
+ The amount that the family will pay after subsidy is returned in the `premium_subsidized` field for each plan.
491
+
492
+ ##### Subsidy Calculation
493
+ Here is how subsidies are calculated. This is fully handled by the Vericred API, but the steps are enumerated below for clarity.
494
+
495
+ 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.
496
+ 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.
497
+ 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.
498
+ 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/)
499
+ 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.
500
+ 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)
501
+
502
+ #### Cost Sharing Reduction Plans
503
+ [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.
504
+
505
+ If a family is eligible for CSR Plans, the Vericred API will return the relevant Plan in place of the non-CSR version.
506
+
507
+ In order to include CSR Plans where applicable, the following parameters must be supplied:
508
+ ```
509
+ POST /plans/medical/search
510
+ {
511
+ ...
512
+ "household_size": 4,
513
+ "household_income": 40000
514
+ ...
515
+ }
516
+ ```
517
+
518
+ #### The Children's Health Insurance Program (CHIP)
519
+ [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.
520
+
521
+ 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:
522
+ ```
523
+ POST /plans/medical/search
524
+ {
525
+ ...
526
+ "applicants": [
527
+ {
528
+ "age": 34,
529
+ "smoker": true,
530
+ "child": false
531
+ },
532
+ {
533
+ "age": 32,
534
+ "smoker": false,
535
+ "child": false
536
+ },
537
+ {
538
+ "age": 4,
539
+ "smoker": false,
540
+ "child": true
541
+ },
542
+ {
543
+ "age": 4,
544
+ "smoker": false,
545
+ "child": true
546
+ }
547
+ ],
548
+ "household_size": 4,
549
+ "household_income": 40000
550
+ ...
551
+ }
552
+ ```
553
+
554
+ CHIP eligibility is displayed within the meta-tag in the response as `eligible_for_chip_medicaid`:
555
+ ```
556
+ {
557
+ "meta": {
558
+ "total": 150,
559
+ "eligible_for_chip_medicaid": true,
560
+ "premium_tax_credit": 500.20
561
+ },
562
+ "coverages": [],
563
+ "plans": [...]
564
+ }
565
+ ```
566
+
567
+ If you do not want CHIP subsidies to be included in the premiums, simply do not include the `household_income` parameter in the request.
568
+
569
+ ### Dental Quotes
570
+ 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:
571
+ ```
572
+ POST /plans/dental/search
573
+ {
574
+ ...
575
+ "applicants": [
576
+ {
577
+ "age": 34,
578
+ "gender": "M",
579
+ "child": false
580
+ },
581
+ {
582
+ "age": 32,
583
+ "gender": "F",
584
+ "child": false
585
+ },
586
+ {
587
+ "age": 4,
588
+ "gender": "M",
589
+ "child": true
590
+ }
591
+ ]
592
+ ...
593
+ }
594
+ ```
595
+
596
+ Note that in contrast to [Major Medical Quotes](#majormedicalquotes), [Dental Quotes](#dentalquotes) require `gender`, but *do not* require `smoker`.
597
+
598
+ Also note that [Subsidies](#subsidies) and [Cost Sharing Reduction](#costsharingreductionplans) are *not* relevant for [Dental Quotes](#dentalquotes).
599
+
600
+ ### Vision Quotes
601
+
602
+ 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:
603
+ ```
604
+ POST /plans/vision/search
605
+ {
606
+ ...
607
+ "applicants": [
608
+ {
609
+ "age": 34,
610
+ "gender": "M",
611
+ "child": false
612
+ },
613
+ {
614
+ "age": 32,
615
+ "gender": "F",
616
+ "child": false
617
+ },
618
+ {
619
+ "age": 4,
620
+ "gender": "M",
621
+ "child": true
622
+ }
623
+ ]
624
+ ...
625
+ }
626
+ ```
627
+
628
+ Note that in contrast to [Major Medical Quotes](#majormedicalquotes), [Vision Quotes](#visionquotes) require `gender`, but *do not* require `smoker`.
629
+
630
+ Also note that [Subsidies](#subsidies) and [Cost Sharing Reduction](#costsharingreductionplans) are *not* relevant for [Vision Quotes](#visionquotes).
631
+
632
+ ### Medicare Advantage quotes
633
+
634
+ 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:
635
+ ```
636
+ {
637
+ "zip_code": "02880",
638
+ "fips_code": "44009",
639
+ "enrollment_date": "2019-01-01"
640
+ }
641
+ ```
642
+ To view the technical documentation, [click here](#medicare-advantage-plans).
643
+
644
+
645
+ ## Quotes for Groups
646
+ 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.
647
+
648
+ 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.
649
+
650
+ ### Identifiers
651
+ 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.
652
+
653
+ ### Specifying the Group
654
+ 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`
655
+
656
+ Full documentation is available [below](#groupscreate)
657
+
658
+ ### Specifying the Locations
659
+ 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.
660
+
661
+ ```
662
+ POST /groups
663
+ {
664
+ "group": {
665
+ ...
666
+ },
667
+ "locations": [
668
+ {
669
+ ...
670
+ "zip_code": "11201",
671
+ "fips_code": "36047",
672
+ "primary": true
673
+ ...
674
+ }
675
+ ]
676
+ }
677
+ ```
678
+
679
+ ### Specifying the Census
680
+ 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).
681
+
682
+ #### Dependent Relationships
683
+ 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`
684
+
685
+ Valid Dependent Relationships:
686
+ - `adopted_child`
687
+ - `child`
688
+ - `court_appointed_guardian`
689
+ - `dependent_of_dependent`
690
+ - `ex_spouse`
691
+ - `foster_child`
692
+ - `grand_child`
693
+ - `guardian`
694
+ - `life_partner`
695
+ - `other`
696
+ - `sibling`
697
+ - `sponsored_dependent`
698
+ - `spouse`
699
+ - `step_child`
700
+ - `ward`
701
+
702
+ ```
703
+ POST
704
+
705
+ /groups/{id}/members
706
+ {
707
+ "members": [
708
+ ...
709
+ {
710
+ "cobra": false,
711
+ "date_of_birth": "1980-01-01",
712
+ "fips_code": "36047"
713
+ "gender": "M",
714
+ "last_used_tobacco": "2017-01-01",
715
+ "location_id": :location_id
716
+ "retiree": false,
717
+ "zip_code": "11201",
718
+ "dependents": [
719
+ ...
720
+ {
721
+ "relationship": "child",
722
+ "same_household": true
723
+ }
724
+ ...
725
+ ]
726
+ }
727
+ ...
728
+ ]
729
+ }
730
+
731
+ ```
732
+
733
+ ### Creating a Quote
734
+ Once the [Census](#header-specifying-the-census) has been created, we can generate a `Quote` for the `Group`.
735
+
736
+ #### Major Medical Quotes
737
+ To generate a [Major Medical](#header-major-medical) Quote, specify the `product_line` of `Quote` as `medical`
738
+
739
+ ```
740
+ POST /groups/{id}/quotes
741
+ {
742
+ ...
743
+ "product_line": "medical"
744
+ ...
745
+ }
746
+ ```
747
+
748
+ #### Dental Quotes
749
+ To generate a [Dental](#header-dental) Quote, specify the `product_line` of `Quote` as `dental`
750
+
751
+ ```
752
+ POST /groups/{id}/quotes
753
+ {
754
+ ...
755
+ "product_line": "dental"
756
+ ...
757
+ }
758
+ ```
759
+
760
+ #### Vision Quotes
761
+ To generate a [Vision](#header-vision) Quote, specify the `product_line` of `Quote` as `vision`
762
+
763
+ ```
764
+ POST /groups/{id}/quotes
765
+ {
766
+ ...
767
+ "product_line": "vision"
768
+ ...
769
+ }
770
+ ```
771
+
772
+ ### Retrieving Aggregate Rates
773
+ 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.
774
+
775
+ ```
776
+ GET /quotes/{id}/rates
777
+
778
+ Response
779
+ {
780
+ "rates": [
781
+ ...
782
+ {
783
+ "id": "123abc",
784
+ "plan_id": "12345NY6789012",
785
+ "total_premium": "2800.00",
786
+ "member_premium": "1000.00",
787
+ "dependent_premium": "1800.00",
788
+ "premiums": {
789
+ "age_banded": {
790
+ "total_member": "1000.00",
791
+ "total_dependent": "1800.00",
792
+ "total": "2800.00"
793
+ },
794
+ "2_tier_composite": {
795
+ "employee_only": "200.00",
796
+ "employee_plus_family": "400.00",
797
+ "total": "2800.00"
798
+ },
799
+ "3_tier_composite": {
800
+ "employee_only": "200.00",
801
+ "employee_plus_one": "250.00",
802
+ "employee_plus_family": "330.00",
803
+ "total": "2800.00"
804
+ },
805
+ "4_tier_composite": {
806
+ "employee_only": "200.00",
807
+ "employee_plus_child": "220.00",
808
+ "employee_plus_spouse": "250.00",
809
+ "employee_plus_family": "330.00",
810
+ "total": "2800.00"
811
+ }
812
+ }
813
+ }
814
+ ...
815
+ ]
816
+ }
817
+ ```
818
+
819
+
820
+ #### Loading Plan Data
821
+ 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:
822
+
823
+ Loading the [Plan](#header-plans) from the API:
824
+ ```
825
+ GET /plans/{id}
826
+
827
+ Response:
828
+ {
829
+ "plans": [
830
+ ...
831
+ {
832
+ ...
833
+ "individual_medical_deductible": "$5,000",
834
+ "family_medical_deductible": "$10,000",
835
+ ...
836
+ }
837
+ ...
838
+
839
+ ]
840
+ }
841
+ ```
842
+ Pulling in [Bulk Plan Data](#bulkplans) and matching up [Plans](#header-plans) by their `id`.
843
+
844
+ ### Retrieving Member-Level Rates
845
+ 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`.
846
+
847
+ ```
848
+ GET /rates/{id}/member_rates
849
+
850
+ Response
851
+ {
852
+ "member_rates": [
853
+ ...
854
+ {
855
+ "id": "123abc",
856
+ "member_id": "234def",
857
+ "member_external_id": "externally-supplied-id",
858
+ "member_premium": 500.0,
859
+ "dependent_premium": 600.0,
860
+ "total_premium": 1100.0
861
+ }
862
+ ...
863
+ ]
864
+ }
865
+
866
+ ```
867
+
868
+ Note that *all* `MemberRate`s are for one particular [Plan](#header-plans) - the one referenced by the parent [Rate](#header-rates).
869
+
870
+ ### Business Rules
871
+ 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.
872
+
873
+ These rules are applied transparently during the [Quoting](#header-quoting) process and *do not* require any additional action or input on your part.
874
+
875
+ For a full accounting of Business Rules and a list of Carriers whose Business Rules are applied, please contact support@vericred.com
876
+
877
+ ### Composite Rates
878
+ 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:
879
+
880
+ 1. Calculate the [Rates](#header-rates) for the entire `Group` using [Sheet Rates](#header-sheet-rates) or [Rate Factors](#header-rate-factors) as appropriate
881
+ 1. Categorize each Family within the Group. The categorization differs depending on whether the Composite Rate is 2, 3, or 4-tier
882
+ 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"
883
+ 1. Divide the total premium calculated in Step 1 by the total number of Rating Units to get the price per Rating Unit
884
+ 1. The [Rate](#header-rates) each Family pays is the constant for that Family's category multiplied by the price per Rating Unit.
885
+
886
+ You can request that a [Quote](#header-quoting) be calculated using Composite Rates when creating it:
887
+ ```
888
+ POST /quotes
889
+ {
890
+ ...
891
+ "rating_method": "4_tier_composite"
892
+ ...
893
+ }
894
+ ```
895
+ If no Composite Rates methodology is available, the Vericred API will return standard age-banded Rates.
896
+
897
+ # Network and Provider Data
898
+
899
+ 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.
900
+
901
+ `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.
902
+
903
+ 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`
904
+
905
+ ## Finding Providers
906
+ 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:
907
+
908
+ ```
909
+ POST /providers/search
910
+ {
911
+ "search_term": "foo",
912
+ "zip_code": "11201"
913
+ }
914
+ ```
915
+
916
+ 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.
917
+
918
+ ## Finding Networks
919
+
920
+ 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.
921
+
922
+ The API supports searching for `Networks` by Carrier, market and state. For more details view the [endpoint documentation](#networks-networks-get)
923
+
924
+ ## Matching Providers to Networks
925
+ 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
926
+
927
+ ### Using Plan Search
928
+ 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
929
+ ```
930
+ POST /plans/medical/search
931
+ {
932
+ ...
933
+ "providers": [
934
+ { "npi": 1234567890 },
935
+ { "npi": 2345678901 }
936
+ ]
937
+ ...
938
+ }
939
+
940
+ The response will then return a list of `in_network_ids` and `out_of_network_ids` for each `Plan`
941
+
942
+ ```
943
+ {
944
+ "plans": [
945
+ ...
946
+ {
947
+ ...
948
+ "id": "12345NY1234567",
949
+ "in_network_ids": [1234567890],
950
+ "out_of_network_ids": [1234567890]
951
+ ...
952
+ },
953
+ {
954
+ ...
955
+ "id": "12345NY2345678",
956
+ "in_network_ids": [1234567890, 1234567890],
957
+ "out_of_network_ids": []
958
+ ...
959
+ }
960
+ ...
961
+ ]
962
+ }
963
+
964
+ Simply reference the `Provider` in question by its `id` for each `Plan` to see if that `Provider` is in-network for the `Plan`.
965
+
966
+ ### Matching by Plan ID
967
+ Given a `Provider`'s `id`, you can retrieve all of his or her `hios_ids`
968
+
969
+ For more details see the [endpoint documentation](#providers-providers-get)
970
+
971
+ ```
972
+ GET /providers/1234567890
973
+ {
974
+ "provider": {
975
+ ...
976
+ "hios_ids": [
977
+ ...
978
+ "12345NY1234567"
979
+ ...
980
+ ]
981
+ ...
982
+ }
983
+ }
984
+ ```
985
+
986
+ The returned `hios_ids` can be used to cross-reference a `Plan`
987
+
988
+ ### Matching by Network
989
+ 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.
990
+
991
+ This is useful for large group data or when you are not dealing with `Plan`s directly, but rather at the `Network` level.
992
+
993
+
994
+ OpenAPI spec version: 1.0.0
995
+
996
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
997
+
998
+ Licensed under the Apache License, Version 2.0 (the "License");
999
+ you may not use this file except in compliance with the License.
1000
+ You may obtain a copy of the License at
1001
+
1002
+ http://www.apache.org/licenses/LICENSE-2.0
1003
+
1004
+ Unless required by applicable law or agreed to in writing, software
1005
+ distributed under the License is distributed on an "AS IS" BASIS,
1006
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1007
+ See the License for the specific language governing permissions and
1008
+ limitations under the License.
1009
+
1010
+ =end
1011
+
1012
+ require 'date'
1013
+
1014
+ module VericredClient
1015
+
1016
+ class BusinessRuleSet
1017
+ # List of applicable Business Rules
1018
+ attr_accessor :business_rules
1019
+
1020
+ # Primary key
1021
+ attr_accessor :id
1022
+
1023
+ # Name of the Business Rule Set
1024
+ attr_accessor :name
1025
+
1026
+
1027
+ # Attribute mapping from ruby-style variable name to JSON key.
1028
+ def self.attribute_map
1029
+ {
1030
+ :'business_rules' => :'business_rules',
1031
+ :'id' => :'id',
1032
+ :'name' => :'name'
1033
+ }
1034
+ end
1035
+
1036
+ # Attribute type mapping.
1037
+ def self.swagger_types
1038
+ {
1039
+ :'business_rules' => :'Array<BusinessRule>',
1040
+ :'id' => :'Integer',
1041
+ :'name' => :'String'
1042
+ }
1043
+ end
1044
+
1045
+ # Initializes the object
1046
+ # @param [Hash] attributes Model attributes in the form of hash
1047
+ def initialize(attributes = {})
1048
+ return unless attributes.is_a?(Hash)
1049
+
1050
+ # convert string to symbol for hash key
1051
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
1052
+
1053
+ if attributes.has_key?(:'business_rules')
1054
+ if (value = attributes[:'business_rules']).is_a?(Array)
1055
+ self.business_rules = value
1056
+ end
1057
+ end
1058
+
1059
+ if attributes.has_key?(:'id')
1060
+ self.id = attributes[:'id']
1061
+ end
1062
+
1063
+ if attributes.has_key?(:'name')
1064
+ self.name = attributes[:'name']
1065
+ end
1066
+
1067
+ end
1068
+
1069
+ # Show invalid properties with the reasons. Usually used together with valid?
1070
+ # @return Array for valid properies with the reasons
1071
+ def list_invalid_properties
1072
+ invalid_properties = Array.new
1073
+ return invalid_properties
1074
+ end
1075
+
1076
+ # Check to see if the all the properties in the model are valid
1077
+ # @return true if the model is valid
1078
+ def valid?
1079
+ return true
1080
+ end
1081
+
1082
+ # Checks equality by comparing each attribute.
1083
+ # @param [Object] Object to be compared
1084
+ def ==(o)
1085
+ return true if self.equal?(o)
1086
+ self.class == o.class &&
1087
+ business_rules == o.business_rules &&
1088
+ id == o.id &&
1089
+ name == o.name
1090
+ end
1091
+
1092
+ # @see the `==` method
1093
+ # @param [Object] Object to be compared
1094
+ def eql?(o)
1095
+ self == o
1096
+ end
1097
+
1098
+ # Calculates hash code according to all attributes.
1099
+ # @return [Fixnum] Hash code
1100
+ def hash
1101
+ [business_rules, id, name].hash
1102
+ end
1103
+
1104
+ # Builds the object from hash
1105
+ # @param [Hash] attributes Model attributes in the form of hash
1106
+ # @return [Object] Returns the model itself
1107
+ def build_from_hash(attributes)
1108
+ return nil unless attributes.is_a?(Hash)
1109
+ self.class.swagger_types.each_pair do |key, type|
1110
+ if type =~ /\AArray<(.*)>/i
1111
+ # check to ensure the input is an array given that the the attribute
1112
+ # is documented as an array but the input is not
1113
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
1114
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
1115
+ end
1116
+ elsif !attributes[self.class.attribute_map[key]].nil?
1117
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
1118
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
1119
+ end
1120
+
1121
+ self
1122
+ end
1123
+
1124
+ # Deserializes the data based on type
1125
+ # @param string type Data type
1126
+ # @param string value Value to be deserialized
1127
+ # @return [Object] Deserialized data
1128
+ def _deserialize(type, value)
1129
+ case type.to_sym
1130
+ when :DateTime
1131
+ DateTime.parse(value)
1132
+ when :Date
1133
+ Date.parse(value)
1134
+ when :String
1135
+ value.to_s
1136
+ when :Integer
1137
+ value.to_i
1138
+ when :Float
1139
+ value.to_f
1140
+ when :BOOLEAN
1141
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
1142
+ true
1143
+ else
1144
+ false
1145
+ end
1146
+ when :Object
1147
+ # generic object (usually a Hash), return directly
1148
+ value
1149
+ when /\AArray<(?<inner_type>.+)>\z/
1150
+ inner_type = Regexp.last_match[:inner_type]
1151
+ value.map { |v| _deserialize(inner_type, v) }
1152
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
1153
+ k_type = Regexp.last_match[:k_type]
1154
+ v_type = Regexp.last_match[:v_type]
1155
+ {}.tap do |hash|
1156
+ value.each do |k, v|
1157
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
1158
+ end
1159
+ end
1160
+ else # model
1161
+ temp_model = VericredClient.const_get(type).new
1162
+ temp_model.build_from_hash(value)
1163
+ end
1164
+ end
1165
+
1166
+ # Returns the string representation of the object
1167
+ # @return [String] String presentation of the object
1168
+ def to_s
1169
+ to_hash.to_s
1170
+ end
1171
+
1172
+ # to_body is an alias to to_hash (backward compatibility)
1173
+ # @return [Hash] Returns the object in the form of hash
1174
+ def to_body
1175
+ to_hash
1176
+ end
1177
+
1178
+ # Returns the object in the form of hash
1179
+ # @return [Hash] Returns the object in the form of hash
1180
+ def to_hash
1181
+ hash = {}
1182
+ self.class.attribute_map.each_pair do |attr, param|
1183
+ value = self.send(attr)
1184
+ next if value.nil?
1185
+ hash[param] = _to_hash(value)
1186
+ end
1187
+ hash
1188
+ end
1189
+
1190
+ # Outputs non-array value in the form of hash
1191
+ # For object, use to_hash. Otherwise, just return the value
1192
+ # @param [Object] value Any valid value
1193
+ # @return [Hash] Returns the value in the form of hash
1194
+ def _to_hash(value)
1195
+ if value.is_a?(Array)
1196
+ value.compact.map{ |v| _to_hash(v) }
1197
+ elsif value.is_a?(Hash)
1198
+ {}.tap do |hash|
1199
+ value.each { |k, v| hash[k] = _to_hash(v) }
1200
+ end
1201
+ elsif value.respond_to? :to_hash
1202
+ value.to_hash
1203
+ else
1204
+ value
1205
+ end
1206
+ end
1207
+
1208
+ end
1209
+
1210
+ end