transitive_closure_control: Set parameters for building combination therapy identifiers...

View source: R/database.R

transitive_closure_controlR Documentation

Set parameters for building combination therapy identifiers and therapy episode identifiers

Description

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

Usage

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.

See Also

create_therapy_episodes(). For more details please consult vignette("therapy-episodes", package = "Ramses")

Examples

# default parameters
transitive_closure_control(
  max_continuation_gap = 36,
  max_combination_authoring_gap = 6,
  max_combination_start_gap = 24)

ramses-antibiotics/ramses-package documentation built on Feb. 13, 2024, 1:01 p.m.