detect_conditional_activity_presence {daqapo} | R Documentation |
Detect conditional activity presence violations
Description
Function detecting violations of conditional activity presence (i.e. an activity/activities that should be present when (a) particular condition(s) hold(s))
Usage
detect_conditional_activity_presence(
activitylog,
condition,
activities,
details,
filter_condition
)
Arguments
activitylog |
The activity log |
condition |
Condition which serve as an antecedent (if the condition in condition holds, then the activit(y)(ies) in activities should be present.) |
activities |
Vector of activity/activities which serve as a consequent (if the condition(s) in condition_vector hold, then the activity/activities in activity_vector should be recorded) |
details |
Boolean indicating wheter details of the results need to be shown |
filter_condition |
Condition that is used to extract a subset of the activity log prior to the application of the function |
Value
Numeric vector containing the case identifiers of cases for which the specified conditional activity presence is violated
Examples
data("hospital_actlog")
detect_conditional_activity_presence(activitylog = hospital_actlog,
condition = specialization == "TRAU",
activities = "Clinical exam")