
Exclude metformin purchases potentially for the treatment of polycystic ovary syndrome.
Source:R/exclude-potential-pcos.R
exclude_potential_pcos.Rd
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()
.
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
)
} # }