Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

First steps in preparing vitals in R #9

Open
docsteveharris opened this issue May 28, 2021 · 1 comment
Open

First steps in preparing vitals in R #9

docsteveharris opened this issue May 28, 2021 · 1 comment

Comments

@docsteveharris
Copy link
Contributor

docsteveharris commented May 28, 2021

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

  • hospital_visit_id
  • datetime stamp (one per 6hour window)
  • label (e.g. is it a RR or a HR etc)
  • value (the actual number)

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
Copy link
Contributor Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant