yubin-park / hccpy

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

Getting error "name 'hcpcs' is not defined" for hhshcc #51

Closed cbio-bvilla closed 1 year ago

cbio-bvilla commented 1 year ago

I'm getting a NameError in hhshcc.py line 99

NameError: name 'hcpcs' is not defined

99         cc_dct.update({hcpcs:self.hcpcs2rxc[pr] for pr in pr_lst
100                         if pr in self.hcpcs2rxc})
ronnie-canopy commented 1 year ago

I also saw this. I am not using this part of the code, but I suspect changing "hcpcs" to "pr" will solve the problem. It looks like a switch from "pr" for "procedure code" to "hcpcs" happened, where both can reference the same concept.

yubin-park commented 1 year ago

@cbio-bvilla @ronnie-canopy the latest master branch fixed the bug. Thanks for reporting!