detect_related_activities: Detect missing related activities

View source: R/detect_related_activities.R

detect_related_activitiesR Documentation

Detect missing related activities

Description

Function detecting missing related activity registration, i.e. detecting activities that should be registered for a case because another activity is registered for that case

Usage

detect_related_activities(
  activitylog,
  antecedent,
  consequent,
  details,
  filter_condition
)

Arguments

activitylog

The activity log

antecedent

Activity name of the activity that acts as a an antecedent (if antecedent occurs, then consequent should also occur)

consequent

Activity name of the activity that acts as a an consequent (if antecedent occurs, then consequent should also occur)

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 related activities are not present

Examples


data("hospital_actlog")
detect_related_activities(activitylog = hospital_actlog,
     antecedent = "Treatment evaluation",
     consequent = "Treatment")


daqapo documentation built on July 14, 2022, 9:07 a.m.