R/database.R
transitive_closure_control.Rd
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
)
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.
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.
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.
A list of three positive integer variables.
create_therapy_episodes()
. For more details please consult
vignette("therapy-episodes", package = "Ramses")
# 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
#>