xor: Check for exclusiveness of two activities

Description Usage Arguments See Also Examples

View source: R/xor.R

Description

If activity A exists, Activity B should not exist, and vice versa.

Usage

1
xor(activity_a, activity_b)

Arguments

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'.

See Also

Other Declarative Rules: absent, and, contains_between, contains_exactly, contains, ends, precedence, responded_existence, response, starts, succession

Examples

1
2
3
4
5
6
library(bupaR)
library(eventdataR)

# A patient should not receive both an X-Ray and MRI Scan
patients %>%
check_rule(xor("X-Ray","MRI SCAN"))

gertjanssenswillen/processcheckR documentation built on July 31, 2019, 9:34 a.m.