Hi Amit Thorve , Abhay & I had discussion on this. So for last question I explained that we do not have health-tiers allocated for these two mentioned plan enrollments and his question is how do we allocate health-tiers then.
Logic: we fetch list of enrollments that dot not have health-tier allocated for these plan and we check each how many members are covered under each enrollment, depending upon number of members covered we update health-tier of a enrollment.
So we know on this company, what is employee only health-tier value is ( that's 6 ) so we update it at back-end for all enrollment with employee only as covered member and so on. Thanks.
Write the trigger for new enrollments deduction code . Also when we complete writing the trigger we should make sure that we do reallocation that time again.