pfehlinger / risk_adjustment_model

Python implementation of Healthcare Risk Adjustment Models
MIT License
2 stars 0 forks source link

ACA HCC Count is Incorrect #36

Open pfehlinger opened 1 month ago

pfehlinger commented 1 month ago

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