Open prockenschaub opened 2 years ago
Very good catch, thanks @prockenschaub. The PR currently seems to have a lot going on, unrelated to this issue (if I am not mistaken).
Could you open a simple pull request building off the current main
which bumped ricu
to 0.6.0
? It would simplify things considerably for me. Thanks for the help!
Sorry for the delay! Finally got to look at this and I've provided a cleaned PR here #51
AUMCdb, like eICU, does not provide dates but instead reports times since admission. For this reason, both databases are loaded in ricu via that
load_eiau
function.Problem
The calculation of times -- while similar -- is not equal between eICU and AUMCdb. While in eICU times denote the number of minutes from unit admit time, in AUMCdb they represent milliseconds since the first ICU admission. That is, while eICU provides the time since current admission, AUMCdb gives the time since the first admission.
load_eiau
however treats them both the same, which leads to incorrect times for AUMCdbExample
Note that the output above has been been shortened a little for readability.