Check for exclusiveness of two activities
If activity A exists, Activity B should not exist, and vice versa.
xor(activity_a, activity_b)
activity_a |
Activity A. A character vector of length one. This should be an activity of the event log supplied to 'check_rule'. |
activity_b |
Activity B. A character vector of length one. This should be an activity of the event log supplied to 'check_rule'. |
Other Declarative Rules:
absent()
,
and()
,
contains_between()
,
contains_exactly()
,
contains()
,
ends()
,
precedence()
,
responded_existence()
,
response()
,
starts()
,
succession()
library(bupaR) library(eventdataR) # A patient should not receive both an X-Ray and MRI Scan patients %>% check_rule(xor("X-Ray","MRI SCAN"))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.