Plotting Visit Timelines
plotting_visit_timelines.Rmd
This is a vignette to introduce the
plot_visit_timeline()
function.
Setup
data_set = load_data_set(data_path)
#> Warning: It is very unusual to provide both `email` and `path` to `bq_auth()`.
#> They relate to two different auth methods.
#> The `path` argument is only for a service account token.
#> If you need to specify your own OAuth client, use `bq_auth_configure()`.
#> It is very unusual to provide both `email` and `path` to `bq_auth()`.
#> They relate to two different auth methods.
#> The `path` argument is only for a service account token.
#> If you need to specify your own OAuth client, use `bq_auth_configure()`.
#> It is very unusual to provide both `email` and `path` to `bq_auth()`.
#> They relate to two different auth methods.
#> The `path` argument is only for a service account token.
#> If you need to specify your own OAuth client, use `bq_auth_configure()`.
#> It is very unusual to provide both `email` and `path` to `bq_auth()`.
#> They relate to two different auth methods.
#> The `path` argument is only for a service account token.
#> If you need to specify your own OAuth client, use `bq_auth_configure()`.
#> It is very unusual to provide both `email` and `path` to `bq_auth()`.
#> They relate to two different auth methods.
#> The `path` argument is only for a service account token.
#> If you need to specify your own OAuth client, use `bq_auth_configure()`.
#> It is very unusual to provide both `email` and `path` to `bq_auth()`.
#> They relate to two different auth methods.
#> The `path` argument is only for a service account token.
#> If you need to specify your own OAuth client, use `bq_auth_configure()`.
#> 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)