eicu-code icon indicating copy to clipboard operation
eicu-code copied to clipboard

How is actualVentdays in apachePatientResult table calculated?

Open mtwayne opened this issue 4 years ago • 3 comments

How is the actualVentdays in the apachePatientResult table calculated?

When we compare ventilation using the actualVentdays to ventilated using the vent from apacheApsVar, there are almost 5000 patients who are ventilated per the vent from apacheApsVar that do not have an actualVentdays ventilation duration.

mtwayne avatar Feb 26 '21 12:02 mtwayne

Hi @mtwayne, I believe the vent variable is defined as if the APACHE respiratory rate was taken while on ventilation, not if the patient had been ventilated. I think this maybe the reason for the discrepancy.

jraffa avatar Mar 12 '21 16:03 jraffa

If actualVentdays uses the Vent variable to define itself, then shouldn't these variables capture the same number of patients?

Said another way, if the vent variable must be 1 for actualVentdays to capture a value, then shouldn't every patient with vent variable of 1 have a value for actualVentdays? Or at least a value of 1?

Thanks

mtwayne avatar Mar 12 '21 21:03 mtwayne

The vent variable and ventdays variables are generated separately (one from the APACHE assessment on the first day and the other from the EHR at the conclusion of the unitstay), and should not be thought to be dependent on each other.

With that said, I think your assumption is right. Logically, if a patient was ventilated for their RR (vent), then they should have some (non-zero) vent days, but because they are determined independently they still may not match.

I've been told that the ventday calculations for APACHE are not the most accurate. Each hospital charts the ventilation in a different way, and unfortunately, the only way to get this data out is to determine which set of hospitals have reliable data and to extract the data from that subset of hospitals.

Our lab will likely release some code for this at some point, but it's a challenging task, and requires a lot of careful vetting of the data. Unfortunately, I don't have an ETA for this, but we would happily take pull requests in the meantime.

jraffa avatar Mar 12 '21 21:03 jraffa