MIT-LCP / mimic-code

MIMIC Code Repository: Code shared by the research community for the MIMIC family of databases
https://mimic.mit.edu
MIT License
2.41k stars 1.5k forks source link

Check if one year before there was an ICU admission #1727

Closed Isaamarod closed 3 months ago

Isaamarod commented 3 months ago

Prerequisites

Description

Hello,

I am trying to find out if a patient has been admitted to the ICU at least one year before a given stay_id but because of the way the dates are anonymised I don't know if it is possible. Also, I would like to be able to do it from 30 and 90 days before a given stay_id.

Thanks in advance, Isabel

Isaamarod commented 3 months ago

I found the answer in the official documentation: _Finally, date and times were shifted randomly into the future using an offset measured in days. A single date shift was assigned to each subjectid. As a result, the data for a single patient are internally consistent. For example, if the time between two measures in the database was 4 hours in the raw data, then the calculated time difference in MIMIC-IV will also be 4 hours. Conversely, distinct patients are not temporally comparable. That is, two patients admitted in 2130 were not necessarily admitted in the same year.

https://physionet.org/content/mimiciv/2.2/