Skip to contents

Takes the output from include_gld_purchases() and bef (information on sex and date of birth) to do the exclusions. This function only performs a filtering operation so outputs the same structure and variables as the input from include_gld_purchases(), except the addition of a logical helper variable no_pcos that is used in later functions. After these exclusions are made, the output is used by exclude_pregnancy().

Usage

exclude_potential_pcos(gld_purchases, bef)

Arguments

gld_purchases

The output from include_gld_purchases().

bef

The bef register.

Value

The same type as the input data, default as a tibble::tibble(). It also has the same columns as include_gld_purchases(), except for a logical helper variable no_pcos that is used in later functions.

See also

See the vignette("algorithm") for the logic used to filter these patients.

Examples

if (FALSE) { # \dontrun{
exclude_potential_pcos(
  gld_purchases = include_gld_purchases(register_data$lmdb),
  bef = register_data$bef
)
} # }