The Shiny app is a web application that allows users to interact with the MIMIC-IV ICU cohort data. The app provides two main functionalities:
Patient’s Summary Information: Users can select the type of summary information they want to view (Demographics, Lab Measurements, or Vitals) and then select the specific information they want to display (e.g., age, gender, heart rate, blood pressure, etc.). The app will generate a summary table and a plot of the selected information.
Patient’s ADT & ICU Stay Information: Users can enter a patient’s ID and view the patient’s admission, discharge, and transfer (ADT) information, as well as their ICU stay information. The app will display a timeline of the patient’s ADT events and ICU stay, as well as a summary table of the patient’s ICU stay.
The app is built using the Shiny package in R, which allows for the creation of interactive web applications directly from R code. The app connects to the MIMIC-IV database using the bigrquery package and retrieves the necessary data for display.
However, the app is not fully functional in this static environment, as it requires a live connection to the MIMIC-IV database to retrieve the data. To run the app and interact with the data, you can copy the code below and run it in your local R environment or on a Shiny server. And you will need to have access to the BigQuery MIMIC-IV database to retrieve the data.
Display machine information:
sessionInfo()
R version 4.3.1 (2023-06-16)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.6.1
Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
time zone: America/Los_Angeles
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] htmlwidgets_1.6.4 compiler_4.3.1 fastmap_1.2.0 cli_3.6.2
[5] tools_4.3.1 htmltools_0.5.8.1 rstudioapi_0.16.0 yaml_2.3.8
[9] rmarkdown_2.27 knitr_1.47 jsonlite_1.8.8 xfun_0.44
[13] digest_0.6.35 rlang_1.1.4 evaluate_0.23