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

Feature Request: Implement derive_param_extreme_record() #1822

Closed
bundfussr opened this issue Mar 15, 2023 · 0 comments · Fixed by #1884
Closed

Feature Request: Implement derive_param_extreme_record() #1822

bundfussr opened this issue Mar 15, 2023 · 0 comments · Fixed by #1884
Assignees
Labels
enhancement New feature or request programming
Milestone

Comments

@bundfussr
Copy link
Collaborator

Feature Idea

Implement a function selecting the first or last record from multiple sources and adding the selected record as a new records to the input dataset.

Relevant Input

No response

Relevant Output

No response

Reproducible Example/Pseudo Code

derive_param_extreme_record(
  adevent,
  sources = list(
    records(
      dataset_name = "cm",
      filter = CMDECOD == "ANTI-CANCER THERAPY",
      new_vars = exprs(
        ADT = convert_dtc_to_dt(CMSTDTC),
        AVALC = CMDECOD),
    ),
    records(
      dataset_name = "pr",
      filter = PRDECOD == "ANTI-CANCER SURGERY",
      new_vars = exprs(
        ADT = convert_dtc_to_dt(PRSTDTC),
        AVALC = PRDECOD),
    ),
  source_datasets = list(cm = cm, pr = pr),
  order = exprs(ADT),
  mode = "first",
  set_values_to = exprs(
    PARAMCD = "FIRSTACT",
    PARAM = "First anti-cancer therapy"
  )
)
@bundfussr bundfussr added enhancement New feature or request programming onco labels Mar 15, 2023
@zdz2101 zdz2101 self-assigned this Mar 28, 2023
zdz2101 pushed a commit that referenced this issue Apr 26, 2023
@bms63 bms63 added this to the v0.11 milestone May 9, 2023
zdz2101 pushed a commit that referenced this issue May 9, 2023
zdz2101 pushed a commit that referenced this issue May 9, 2023
@bms63 bms63 linked a pull request May 9, 2023 that will close this issue
14 tasks
zdz2101 pushed a commit that referenced this issue May 11, 2023
zdz2101 pushed a commit that referenced this issue May 12, 2023
zdz2101 pushed a commit that referenced this issue May 15, 2023
Merge branch 'devel' of https://github.com/pharmaverse/admiral into 1822_implement_derive_param_extreme_record@devel

# Conflicts:
#	man/default_qtc_paramcd.Rd
#	man/derive_expected_records.Rd
#	man/derive_extreme_event.Rd
#	man/derive_extreme_records.Rd
#	man/derive_locf_records.Rd
#	man/derive_param_bmi.Rd
#	man/derive_param_bsa.Rd
#	man/derive_param_computed.Rd
#	man/derive_param_doseint.Rd
#	man/derive_param_exist_flag.Rd
#	man/derive_param_exposure.Rd
#	man/derive_param_extreme_event.Rd
#	man/derive_param_framingham.Rd
#	man/derive_param_map.Rd
#	man/derive_param_qtc.Rd
#	man/derive_param_rr.Rd
#	man/derive_param_wbc_abs.Rd
#	man/derive_summary_records.Rd
zdz2101 pushed a commit that referenced this issue May 15, 2023
zdz2101 pushed a commit that referenced this issue May 15, 2023
zdz2101 pushed a commit that referenced this issue May 16, 2023
zdz2101 pushed a commit that referenced this issue May 16, 2023
zdz2101 added a commit that referenced this issue May 17, 2023
…_extreme_record@devel

Closes #1822 implement derive_param_extreme_record
@bms63 bms63 closed this as completed in 0b23e62 Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment