icd9 icon indicating copy to clipboard operation
icd9 copied to clipboard

tree.search('001') returning nothing

Open adiv5 opened this issue 5 years ago • 0 comments

After doing the steps as mentioned, when i try to query a ICD9 code using script , i am not getting any results returned. Im importing ICD9 class in script , then making a tree object using codes.json, then doing tree.search('001') and its not returning anything.Not even for other codes.

However surprisingly,this works

    toplevelnodes = tree.children
    toplevelcodes = [node.code for node in toplevelnodes]
    print('\t'.join(toplevelcodes))

cant figure out how to deal with this. Thanks

adiv5 avatar Oct 22 '19 06:10 adiv5