In the ACA SAS Code, group categories are computed first, then the count is applied. In the Python code, group categories occur after the count. This is likely because before BY2024 group categories were all hierarchy related, but with the introduction of G24 it is possible for someone to have both HCC 18 and HCC 183 thus inflating the count by 1.
To solve, likely the count will have to be moved outside of the interactions into its own separate method in commercial_model.py
In the ACA SAS Code, group categories are computed first, then the count is applied. In the Python code, group categories occur after the count. This is likely because before BY2024 group categories were all hierarchy related, but with the introduction of G24 it is possible for someone to have both HCC 18 and HCC 183 thus inflating the count by 1.
To solve, likely the count will have to be moved outside of the interactions into its own separate method in commercial_model.py