Description Usage Arguments See Also Examples
This rules examines whether the supplied activity is present in a case or not. The argument 'n' can be used to set a minimum number of occurences that should be present in each case. Using the function 'check_rule', this information can be added to the event log.
1 | contains(activity, n = 1)
|
activity |
Activity to check. A character vector of length one. Should be an activity of the eventlog supplied with check_rule. |
n |
The minimum number of times the activity should be present. |
Other Declarative Rules: absent
,
and
, contains_between
,
contains_exactly
, ends
,
precedence
,
responded_existence
,
response
, starts
,
succession
, xor
1 2 3 4 5 6 7 8 9 10 11 | library(bupaR)
library(eventdataR)
# Each patient should be registered at least once.
patients %>%
check_rule(contains("Registration"))
# Check whether some patients have received 2 or more blood tests.
patients %>%
check_rule(contains("Blood test", n = 2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.