Set parameters controlling how prescriptions are linked into combinations and therapy episodes

transitive_closure_control(
  max_continuation_gap = 36,
  max_combination_authoring_gap = 6,
  max_combination_start_gap = 24
)

Arguments

max_continuation_gap

a positive integer setting the maximum number of hours tolerated between the end of a prescription and the start of a subsequent prescription in the same therapy episode. The default is 36 hours.

max_combination_authoring_gap

a positive integer setting the maximum number of hours tolerated between the time of authoring of two prescriptions administered as combination therapy. The default is 6 hours.

max_combination_start_gap

a positive integer setting the maximum number of hours tolerated between the start of administration of two prescriptions administred as combination therapy. The default is 24 hours.

Value

A list of three positive integer variables.

Examples

# default parameters
transitive_closure_control(
  max_continuation_gap = 36,
  max_combination_authoring_gap = 6,
  max_combination_start_gap = 24)
#> $max_combination_authoring_gap
#> [1] 6
#> 
#> $max_combination_start_gap
#> [1] 24
#> 
#> $max_continuation_gap
#> [1] 36
#>