inform-health-informatics / datascibc-noobie

Basic repository for getting started with using EMAP and its toolchain
MIT License
0 stars 2 forks source link

First steps in preparing vitals in R #9

Open docsteveharris opened 3 years ago

docsteveharris commented 3 years ago

having pulled vitals into R using SQL queries now need to create a table with a regular cadence (e.g. ev 6 hours) for example prob want the following columns

You might want to look at and borrow Ed's code which uses tidyverse See https://github.com/DocEd/wranglEHR/blob/master/R/extract_timevarying.R Or Steve's version which uses data.table more https://github.com/inform-health-informatics/emapR/blob/master/R/extract.R

docsteveharris commented 3 years ago

suggest just doing this end to end for a single patient or two from the ICU so you can do some source validation