hcc-python icon indicating copy to clipboard operation
hcc-python copied to clipboard

2018 coefficients

Open benavege opened this issue 7 years ago • 4 comments

Hello,

will the 2018 coefficients be posted here?

thank you!

benavege avatar Feb 01 '18 17:02 benavege

Hello,

I am also interested in 2018 (and 2019) coefficients. In general, is do you have a script to extract the coefficients and HCC mappings from a given CMS distribution? Thanks!

kuitang avatar Mar 12 '19 21:03 kuitang

I started looking into this on my own, and here's what I think I figured out so far:

I grabbed the 2020 SAS code from CMS, which in turn contains the model coefficients in a SAS transport format (whatever that is). I've been looking all over for a way to get this into CSV.

One solution appears to be to use SAS (of course). Someone did this on the SAS form: https://communities.sas.com/t5/SAS-in-Health-Care-Related/SAS-Transport-Format-Files/td-p/605588 . In turn they were kind enough to post the coefficients CSV. Of course the coefficient names don't match.

A possible DIY option is Pandas which I haven't tested yet: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_sas.html . I think the "XPORT" format it mentions is one of the transport format output options. Not positive here though.

Anyhow, apart from coefficient updates, I think the ICD10 HCC reference data also needs to be updated as well, but CMS appears to post a CSV of this on the same download page as the SAS code.

KennyMonster avatar Mar 01 '20 03:03 KennyMonster

As an update, turns out the newer models released by CMS were changed in a significant way. As such, just shoving in new coefficients wouldn't make any sense, without also updating the related Python Code.

KennyMonster avatar Mar 03 '20 18:03 KennyMonster

Hello from the maintainers. @KennyMonster is exactly right starting in 2019 the model got much more complex. We are gauging community interest in updating this library for 2020. If you have interest please let us know at info @ algorexhealth.com

kindofluke avatar Mar 13 '20 20:03 kindofluke