Collapse Activities

library(bupaverse)

Using act_collapse() you can replace a set of closely related activities by one higher-level activity. For example, consider the process map of patients data set.

patients %>%
    process_map()

Let’s say we want to combine the activities Blood test, MRI SCAN and X-Ray scan into a single Examination activity. This can be done as follows:

patients %>%
    act_collapse(Examination = c("Blood test","MRI SCAN","X-Ray")) %>%
    process_map()

Read more:


Copyright © 2023 bupaR - Hasselt University