Closed Data-Designer closed 9 months ago
for mimic-III datasets, a smiliar problem.
from pyhealth.medcode import InnerMap
if __name__ == "__main__":
icd9cm = InnerMap.load("ICD9PROC",refresh_cache=False)
icd10cm = InnerMap.load("ICD10PROC",refresh_cache=False)
print(icd9cm.lookup('3601'))
It seems that the InnerMap class get the required information from the files from https://storage.googleapis.com/pyhealth/resource/. We must figure out how they get the files.
It seems that the InnerMap class get the required information from the files from https://storage.googleapis.com/pyhealth/resource/. We must figure out how they get the files.
Yes, i have examined the source code and find that some icd code has been deleted or replaced in the latest published version.
Could you help look into the problem @pat-jj?
Hi, thanks for the questions. Please check our development code for code mapping. You can find the source files we used there.
I use the following code to get all the icd tokens.