Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## New Plans Application
- An NPA models the workflow of an ER applying for new benefits with Gusto.
- ### State Transitions
- #### Main state flow
- - `:selecting_employee_eligibility`
- - `:receiving_medical_education`
- - `:selecting_base_tier`
- - `:selecting_base_plan`
- - `:selecting_complementary_plans`
- - `:selecting_non_medical_plans`
- - `:collecting_company_information`
- - `:reviewing_summary`
- - `:confirm_application`
- - `:verifying_eligibility`
- - `completed`
- #### Linear flow
- - The states can go back and forth as ER steps through the different steps in UI.
- - Once the state of `:verifying_eligibility` is reached, however, the ER cannot go back to previous steps.
- #### Nonlinear flow
- - Can go back to `:selecting_base_plan` from `:verifying_elibility` or `:completed` if ???
- - On Hippo, this is the UI that says "unlock"
- #### Additional states
- - `dismissed` - ER abandons NPA
- - `expired` - a way to allow subsequent NPAs
- ### Tables
- - 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,
- Renewal, Benefit Change Application
- - What is a Benefit Change Application? Is that the same as a BoR?
- ### Downstream effects of an NPA
- - As part of the ER going through the NPA flow, we generate benefit offerings for the company using `NewPlansApplication::RecommendationEngine`
- - This results in `benefit_type_offerings` and `new_benefit_type_offerings` (?) What's the difference?
- - An offering is associated with one or more benefits plans, which the ER can select in the NPA flow
- - The selected plans can be viewed in Hippo by CX in `/company/<company id>/new_plans_applications/<npa id>`
- - CX takes the completed NPA and fulfills it
- - The company now has a benefits package (the benefits package is associted with one company
- (there is also an association between an NPA and a benefits package)
- - The benefits package has one or more policies
- - Via selection, EEs in the company can choose one or more policies
- - Selection of policy results in a subscription
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement