pharmaverse / sdtm.oak

An EDC and Data Standard agnostic SDTM data transformation engine that automates the transformation of raw clinical data in ODM format to SDTM based on standard mapping algorithms
https://pharmaverse.github.io/sdtm.oak/
Apache License 2.0
22 stars 6 forks source link

Last obs before exposure flag and Baseline Flag #18

Closed KoulAshish closed 3 weeks ago

KoulAshish commented 8 months ago

Feature Idea

Hi All,

Starting from SDTMIG 3.3 a new variable --LOBXL (Last Observation Before Exposure Flag) has been added to finding domains with a view to replace --BLFL (Baseline Flag).

Should we tackle both together or is there a separate thread for --LOBXL.

Source: https://www.cdisc.org/standards/foundational/sdtmig/sdtmig-v3-3/html#Observations+and+Variables Section: 4.5.9

Relevant Input

No response

Relevant Output

No response

Reproducible Example/Pseudo Code

No response

MaguluriVenkata commented 8 months ago

I suggest separating both, it's not necessary that both follow identical rule and also maintenance also is easy in future to have a dedicated space.

rammprasad commented 7 months ago

@rammprasad to complete the issue description.

yli110-stat697 commented 4 months ago

@rammprasad to complete the issue description.

Hi @rammprasad can we define the desired input and output of the function?

rammprasad commented 4 months ago

Reference function - https://github.com/pharmaverse/roak_pilot/blob/main/R/oak_derive_blfl.R

rammprasad commented 3 months ago

@kamilsi - The function call in {sdtm.oak} can be oak_derive_blfl(ds_in, der_var, ref_var, ref_dat)

ref_dat will replace the code in the section below https://github.com/pharmaverse/roak_pilot/blob/main/R/oak_derive_blfl.R#L201 to https://github.com/pharmaverse/roak_pilot/blob/main/R/oak_derive_blfl.R#L210

The rest of the derivation logic is almost the same.