Skip to contents

Create a visit timeline plot for a patient

Usage

plot_visit_timeline(ds, person_id, show_all_types = TRUE)

Arguments

ds

A PicnicHealth data set

person_id

The unique identifier for a person_id

show_all_types

Boolean indicator for whether all clinical document types should be plotted, regardless of whether the patient has each document type. If set to TRUE (default), all types will be plotted; if set to FALSE, only types present for the specified patient will be plotted.

Value

A plot showing the timing of visits for a single person in the dataset.

Examples

if (FALSE) { # \dontrun{
ds <- load_data_set("path/to/data")
plot_visit_timeline(ds, person_id = "52940897-e274-4995-9010-37369c5eb198")
} # }