Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 🐛 order the variables so tests pass #191

Open
wants to merge 1 commit into
base: docs/move-items-over-to-algorithm-logic
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions R/include-gld-purchases.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@
#' - `pnr`: Personal identification variable.
#' - `date`: The dates of all purchases of GLD.
#' - `atc`: The ATC code for the type of drug.
#' - `contained_doses`: The amount of doses purchased, in number of defined daily
#' doses (DDD).
#' - `indication_code`: The indication code of the prescription (renamed from
#' `indo`).
#' - `has_gld_purchases`: A logical variable to use as a helper indicator for
#' later functions.
#'
#' - `contained_doses`: The amount of doses purchased, in number of defined
#' daily doses (DDD).
#' - `indication_code`: The indication code of the prescription (renamed
#' from `indo`).
#' - `has_gld_purchases`: A logical variable to use as a helper indicator
#' for later functions.
#'
#' @keywords internal
#' @inherit algorithm seealso
Expand All @@ -51,8 +50,8 @@ include_gld_purchases <- function(lmdb) {
# Change to date to work with later functions.
date = "eksd",
"atc",
"contained_doses",
indication_code = "indo"
indication_code = "indo",
"contained_doses"
) |>
dplyr::mutate(has_gld_purchases = TRUE)
}