Skip to contents

This is a vignette to introduce the plot_visit_timeline() function.

Setup

data_set = load_data_set(data_path)
#> Warning: Neither BIGQUERY_CREDENTIAL_PATH nor PICNIC_USER_GMAIL_ADDRESS
#>  are configured as enviornmental variables.
#>  Please run `usethis::edit_r_environ()` and add one to your .Renviron.
#>  (Only use BIGQUERY_CREDENTIAL_PATH for a service account token.)
#> Neither BIGQUERY_CREDENTIAL_PATH nor PICNIC_USER_GMAIL_ADDRESS
#>  are configured as enviornmental variables.
#>  Please run `usethis::edit_r_environ()` and add one to your .Renviron.
#>  (Only use BIGQUERY_CREDENTIAL_PATH for a service account token.)
#> Neither BIGQUERY_CREDENTIAL_PATH nor PICNIC_USER_GMAIL_ADDRESS
#>  are configured as enviornmental variables.
#>  Please run `usethis::edit_r_environ()` and add one to your .Renviron.
#>  (Only use BIGQUERY_CREDENTIAL_PATH for a service account token.)
#> Warning in as.integer.integer64(x): NAs produced by integer overflow

Clinical Document Timeline

Specify person_id of interest

person_id = data_set$person$person_id[2]

Call the plot_visit_timeline function on the export

plot_visit_timeline(data_set, person_id)