Making one CSV from multiple tables MIMIC - III #1386
-
I am looking for a way to create a CSV table with the following columns The text being any type of text (preferably the patients history) related to that admission. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @Ioanni-Balassis,
If working from BigQuery then you can write a query to join the admissions table with the noteevents table on HADM_ID using the same logic as above, and then export the results to CSV. Not sure if this is what you're looking for but hope it's helpful |
Beta Was this translation helpful? Give feedback.
Hi @Ioanni-Balassis,
If working from the csv files my approach would be to use the Python Pandas library or alternatively you can use R dplyr library. See some sample Python code below that should work, here I am getting the text field from the noteevents table.
If working from BigQuery then you can write a query to join the admissions table with the noteevents table on HADM_ID using the same logic as above, and then…