Skip to content

Commit

Permalink
Remove functions src_ae_dthcaus_source() and src_ds_dthcaus_source()
Browse files Browse the repository at this point in the history
  • Loading branch information
jimrothstein committed Oct 10, 2024
1 parent b49f54b commit b2ab3ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

- Replace use of `data("sdtm")` with `sdtm <- pharmaverse::sdtm` in templates and vignettes. (#2498)

- Remove src_ae_dthcaus_source() and src_ds_dthcaus_source(); replaced by derive_vars_extreme_event() 2517 and #XXXX)

## Updates of Existing Functions

## Breaking Changes
Expand Down
18 changes: 1 addition & 17 deletions inst/templates/ad_adsl.R
Original file line number Diff line number Diff line change
Expand Up @@ -95,24 +95,8 @@ ex_ext <- ex %>%

# Source objects ----

# Death cause sources
src_ae <- dthcaus_source(
dataset_name = "ae",
filter = AEOUT == "FATAL",
date = convert_dtc_to_dtm(AESTDTC, highest_imputation = "M"),
mode = "first",
dthcaus = AEDECOD,
set_values_to = exprs(DTHDOM = "AE", DTHSEQ = AESEQ)
)
# Death cause sources, replaced by derive_vars_extreme_event() function

src_ds <- dthcaus_source(
dataset_name = "ds",
filter = DSDECOD == "DEATH" & grepl("DEATH DUE TO", DSTERM),
date = DSSTDT,
mode = "first",
dthcaus = DSTERM,
set_values_to = exprs(DTHDOM = "DS", DTHSEQ = DSSEQ)
)

adsl <- dm %>%
## derive treatment variables (TRT01P, TRT01A) ----
Expand Down

0 comments on commit b2ab3ce

Please sign in to comment.