Skip to contents

Creates overview data of each patient in the study. Used to create the start page of the application.

Usage

get_static_overview_data(data, available_data, expected_general_columns = NULL)

Arguments

data

List of data frames.

available_data

A data frame with available data. Visits will be extracted from here. Required columns are subject_id, event_name, event_label. The event_label variable should be a factor in order to work well with the function fig_timeline().

expected_general_columns

Character vector with the expected columns. If columns are completely missing, they will be made explicitly missing in the data frame (that is, a column will be created with only missing character values).

Value

A data frame with the overview data. Columns are: subject_id, status, WHO.classification, Age, Sex, event_name.