ycq091044 / SafeDrug

IJCAI2021: Code for SafeDrug, MIMIC data processing, Medical code mapping
67 stars 16 forks source link

About #21

Closed HjZ1998 closed 1 year ago

HjZ1998 commented 1 year ago

Hello, Thanks for your code! I want to know how to generate the file records_final.pkl with 6350 items in the GitHub repository. Wait for your responses, Thank you again !

ycq091044 commented 1 year ago

Hello, could you please refer to data/process.py#384. Run the code and you will get the records.

HjZ1998 commented 1 year ago

Hello, thank you very much for your reply! The file I obtained after running the process.py only has 267 records, which is different from the existing records_final.pkl file containing 6350 records in the data folder. The numbers of the two do not agree. Therefore, I would like to ask how can you obtain the file containing 6350 records.

ycq091044 commented 1 year ago

Sorry, did you use the original MIMIC-III or IV data? I only uploaded the sample datasets.

HjZ1998 commented 1 year ago

I'm using the MIMIC-III data. I want to explore the subject_ID and hadm_ID of these 6350 patients in my work.

ycq091044 commented 1 year ago

Sorry to reply late. I have been traveling recently. I will try to reproduce the problem when I come back in 3 days.

HjZ1998 commented 1 year ago

Ok, thank you. Have a good time!

ycq091044 commented 1 year ago

Hi @HjZ1998 , I ran the GitHub codes with raw MIMIC-III data. I do obtain 6350 patients as shown below. Could you please show me the statistics after you run process.py

image
HjZ1998 commented 1 year ago

Sorry, I found out that I was using the wrong three csv files! After I modified this error, the statistics are the same as yours. Very grateful for your help!

ycq091044 commented 1 year ago

Great to hear that you make it work. Please let me know whether you have other follow-up questions. I will close this issue for now.

HjZ1998 commented 1 year ago

I have no more questions now, thank you.