alistairewj / mimic-iv-aline-study

Replication of the arterial line study in MIMIC-IV
61 stars 31 forks source link

Replicating a study in MIMIC-IV

This folder contains code for replicating a study on indwelling arterial catheters:

Hsu DJ, Feng M, Kothari R, Zhou H, Chen KP, Celi LA. The association between indwelling arterial catheters and mortality in hemodynamically stable patients with respiratory failure: a propensity score analysis. CHEST Journal. 2015 Dec 1;148(6):1470-6.

The study showed, in the MIMIC-II database, that after adjustment for various confounders, indwelling arterial catheters were not associated with a mortality benefit.

The code here reproduces this study in the MIMIC-IV database. All code was newly written based upon the description of the study in the published paper. When it was unclear from the paper what choices were made, the original code was consulted for clarity. As the original study was performed in MIMIC-II, the patients in this study are entirely distinct, and this can be considered a replication of the original study.

Requirements

In order to run the code, you must:

  1. Have a Google account authenticated to access MIMIC-IV via BigQuery.
  2. The ability to create an environment with conda

Running the study

  1. (Optional) Run the generate-tables.sh bash script: this generates derived views of MIMIC-IV which are used in the data analysis.
  2. Run through the analysis in one of three ways:
    • (Recommended) Open the aline_analysis.ipynb notebook in Google Colaboratory.
    • Run the aline_analysis.py file from the command line.
    • Step through the aline_analysis.ipynb notebook.

Modifications

There are a few differences between our reproduction and the original study. Notably: