yubin-park / hccpy

A Python implementation of Hierarchical Condition Categories
Apache License 2.0
97 stars 59 forks source link

apply_agesex_edits for V28 #61

Closed ronnie-canopy closed 1 year ago

ronnie-canopy commented 1 year ago

_V28I0ED1.py.txt

In hcc.py, def profile(), change

cc_dct = V22I0ED2.apply_agesex_edits(cc_dct, age, sex)

to

if self.version == "28":
        cc_dct = V28I0ED1.apply_agesex_edits(cc_dct, age, sex)     # target HCC's have been renumbered amongst other changes
    else:
        cc_dct = V22I0ED2.apply_agesex_edits(cc_dct, age, sex)

The attached file provides the updated V28 version of the age-sex edits. This file accounts for the remapping of the HCC numbers and a new edit for cancers.

yubin-park commented 1 year ago

Please see the latest master branch: https://github.com/yubin-park/hccpy/blob/master/hccpy/_V28I0ED1.py Thanks, @ronnie-canopy !