Evaluate a comparison between events
evaluate_comparison( event_1 = NULL, event_2 = NULL, relationship = c("exists", "not_exists", "==", "!=", ">", ">=", "<", "<=") )
event_1 | an extracted event returned by |
---|---|
event_2 | an extracted event returned by |
relationship | character vector length 1 describing the type of relationship to assert:
|
Checks the relationship between two events of interest. This takes
two forms depending upon whether or not the data items are of type 1d or 2d.
In all cases, the function evaluates the functional relationship of event_1
test_relationship
event_2
, where test_relationship
acts as an operator
between the two.
These items are checked without reference to any timepoint.
These items are checked with respect to their timestamp, which is used to identify co-incident events that are suitable for comparison.
systolic blood pressure is always above diastolic
mean blood pressure is always below systolic
all date time pairings exist for date and time of:
death
withdrawal
ready for discharge
brain stem death