Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. ## New Plans Application
  2.  
  3. An NPA models the workflow of an ER applying for new benefits with Gusto.
  4.  
  5. ### State Transitions
  6. #### Main state flow
  7. - `:selecting_employee_eligibility`
  8. - `:receiving_medical_education`
  9. - `:selecting_base_tier`
  10. - `:selecting_base_plan`
  11. - `:selecting_complementary_plans`
  12. - `:selecting_non_medical_plans`
  13. - `:collecting_company_information`
  14. - `:reviewing_summary`
  15. - `:confirm_application`
  16. - `:verifying_eligibility`
  17. - `completed`
  18.  
  19. #### Linear flow
  20. - The states can go back and forth as ER steps through the different steps in UI.
  21. - Once the state of `:verifying_eligibility` is reached, however, the ER cannot go back to previous steps.
  22.  
  23. #### Nonlinear flow
  24. - Can go back to `:selecting_base_plan` from `:verifying_elibility` or `:completed` if ???
  25. - On Hippo, this is the UI that says "unlock"
  26.  
  27. #### Additional states
  28. - `dismissed` - ER abandons NPA
  29. - `expired` - a way to allow subsequent NPAs
  30.  
  31. ### Tables
  32. - There is a single-table inheritance involving `BenefitsTypeOfferings`, with the `type` column describing which inherited class the instance belongs to, and also an `owner` column for polymorphic association with New Plans,
  33. Renewal, Benefit Change Application
  34. - What is a Benefit Change Application? Is that the same as a BoR?
  35.  
  36. ### Downstream effects of an NPA
  37. - As part of the ER going through the NPA flow, we generate benefit offerings for the company using `NewPlansApplication::RecommendationEngine`
  38. - This results in `benefit_type_offerings` and `new_benefit_type_offerings` (?) What's the difference?
  39. - An offering is associated with one or more benefits plans, which the ER can select in the NPA flow
  40. - The selected plans can be viewed in Hippo by CX in `/company/<company id>/new_plans_applications/<npa id>`
  41. - CX takes the completed NPA and fulfills it
  42. - The company now has a benefits package (the benefits package is associted with one company
  43. (there is also an association between an NPA and a benefits package)
  44. - The benefits package has one or more policies
  45. - Via selection, EEs in the company can choose one or more policies
  46. - Selection of policy results in a subscription
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement