eth-mds / ricu

🏥 ICU data with R 🏥
https://eth-mds.github.io/ricu/
GNU General Public License v3.0
37 stars 10 forks source link

Age in MIMIC-IV #43

Open simonschallmoser opened 1 year ago

simonschallmoser commented 1 year ago

Hi everyone,

I was just wondering whether the age in MIMIC-IV should be adapted for patients with multiple ICU stays. As far as I understood the age is taken from the "anchor_age" column in the "patients" table and not modified for later ICU stays where the year in the "intime" column is not the same anymore as the "anchor_year" from the "patients" table. This can result in age differences of up to 12 years.

Am I correct and this should be adapted or did I miss something here?

Best, Simon

prockenschaub commented 1 year ago

I agree with you. Would you feel confident enough with ricu's inner workings to try and fix this in a PR? If you need it, I can give some guidance.

simonschallmoser commented 1 year ago

Sorry, I have never really worked with R, so I would leave this for someone with a bit more expertise than I have.