Skip to contents

Create a dot plot of various clinical document types over observation time.

Usage

plot_clinical_document_timeline(ds, person_id, show_all_types = TRUE)

Arguments

ds

A PicnicHealth data set list object.

person_id

The unique identifier for a single person_id.

show_all_types

A 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 ggplot of a clinical document timeline for a patient.

Details

Note: plot_clinical_document_timeline() will not return a plot for datasets which do not contain the clinical_document table.

In general, to review the healthcare utilization of a single person in the dataset, it is recommended to instead use the function plot_visit_timeline(), which will show the timing and duration of inpatient, outpatient, and ER visits.

See also

  • plot_person_map() to create map showing the geographic distribution of patients in the data set.

  • table_one() to create a table to describe some basic demographic distributions for patients in the data set.

Examples

if (FALSE) { # \dontrun{
ds <- load_data_set("path/to/data")
plot_clinical_document_timeline(ds, person_id = "aaa")
} # }