decision_10 {drugprepr}R Documentation

Decision 10: close small gaps between successive prescriptions

Description

Where one prescription (for the same drug and patient) starts only a short time after the previous finishes, this function can close the gap, as if the prescription was continuous over the entire period.

Usage

decision_10(data, decision = "a")

Arguments

data

a data frame

decision

one of the following strings:

"a"

do nothing

"b_15"

change stop date of first prescription to start date of next if gap is \leq 15 days

"b_30"

change stop date of first prescription to start date of next if gap is \leq 30 days

"b_60"

change stop date of first prescription to start date of next if gap is \leq 60 days

Details

The underlying function is called close_small_gaps

See Also

Other decision functions: decision_1(), decision_2(), decision_3(), decision_4(), decision_5(), decision_6(), decision_7(), decision_8(), decision_9(), drug_prep()


[Package drugprepr version 0.0.4 Index]