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

Last obs before exposure flag and baseline flag #49

Merged
merged 22 commits into from
Jun 26, 2024

Conversation

kamilsi
Copy link
Collaborator

@kamilsi kamilsi commented May 8, 2024

@rammprasad, please verify the functionality of the new code additions. The existing examples confirm basic operations, but I was unable to fully test the baseline visit logic due to unmarked baseline visits in the study configuration file. Your insights or additional test cases would be helpful.

@kamilsi kamilsi requested review from ramiromagno and rammprasad May 8, 2024 15:29
@kamilsi kamilsi linked an issue May 8, 2024 that may be closed by this pull request
Copy link

github-actions bot commented May 8, 2024

Code Coverage

Package Line Rate Health
sdtm.oak 88%
Summary 88% (901 / 1023)

@ramiromagno
Copy link
Collaborator

Hi @rammprasad: @kamilsi asked for my review too but I noticed you pushed a few commits just an hour ago. Do you intend to make further changes until tomorrow's meeting or may look into it?

@rammprasad
Copy link
Collaborator

Hi @rammprasad: @kamilsi asked for my review too but I noticed you pushed a few commits just an hour ago. Do you intend to make further changes until tomorrow's meeting or may look into it?

This is not ready for review. I have requested Kamil to look at my changes, replace the assertions, and add a test case. We will try and send it out for review tomorrow.

rammprasad
rammprasad previously approved these changes Jun 11, 2024
Copy link
Collaborator

@rammprasad rammprasad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working as expected. REady for second review.

@rammprasad rammprasad self-requested a review June 11, 2024 20:49
@rammprasad rammprasad dismissed their stale review June 11, 2024 20:49

Needs more work

@rammprasad
Copy link
Collaborator

@kamilsi - this is working as expected. I made minor tweaks. Can you resolve the merge conflicts and prepare it for a second review and merge?

Merge branch 'main' into 18-last-obs-before-exposure-flag-and-baseline-flag

# Conflicts:
#	NAMESPACE
@rammprasad rammprasad marked this pull request as ready for review June 18, 2024 05:52
tests/testthat/test-derive_blfl.R Show resolved Hide resolved
tests/testthat/test-derive_blfl.R Show resolved Hide resolved
tests/testthat/test-derive_blfl.R Show resolved Hide resolved
tests/testthat/test-derive_blfl.R Show resolved Hide resolved
R/derive_blfl.R Show resolved Hide resolved
man/derive_blfl.Rd Outdated Show resolved Hide resolved
@rammprasad
Copy link
Collaborator

rammprasad commented Jun 19, 2024

I have fixed a few minor items. Once this PR is approved, we can address the issues below.

  1. Refactor code based on suggestions - Last obs before exposure flag and baseline flag #49 (comment) and Last obs before exposure flag and baseline flag #49 (comment)
  2. Validate the ISO date formats.
  3. Add test case for baseline_timepoints functionality

@rammprasad
Copy link
Collaborator

@ShiyuC @ramiromagno - Ready for your approval

@ramiromagno
Copy link
Collaborator

I'm getting this check message about potential spelling errors:

   < Potential spelling errors:
   <   WORD        FOUND IN
   < RFSTDTC     derive_blfl.Rd:27
   < RFXSTDTC    derive_blfl.Rd:28
   < TPT         derive_blfl.Rd:35
   < pre         derive_blfl.Rd:77
   < timpoints   derive_blfl.Rd:35
   < varaible    derive_blfl.Rd:19
   < xxTPT       derive_blfl.Rd:73
   < If these are false positive, run `spelling::update_wordlist()`.All Done!

Copy link
Collaborator

@ShiyuC ShiyuC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Ram! I’m ooo this afternoon but I’m happy to give the approval now as I saw my comments are resolved. If another review is needed, I’ll come back this evening to do it.

@edgar-manukyan
Copy link
Collaborator

edgar-manukyan commented Jun 20, 2024

I'm getting this check message about potential spelling errors:

   < Potential spelling errors:
   <   WORD        FOUND IN
   < RFSTDTC     derive_blfl.Rd:27
   < RFXSTDTC    derive_blfl.Rd:28
   < TPT         derive_blfl.Rd:35
   < pre         derive_blfl.Rd:77
   < timpoints   derive_blfl.Rd:35
   < varaible    derive_blfl.Rd:19
   < xxTPT       derive_blfl.Rd:73
   < If these are false positive, run `spelling::update_wordlist()`.All Done!

I will address this.

We now have even more

> spelling::spell_check_package()
  WORD         FOUND IN
addtional    events_domain.Rmd:274
appicable    findings_domain.Rmd:458
CMGRPID      cnd_df.Rmd:49
             events_domain.Rmd:191
CMMODIFY     events_domain.Rmd:358
CMSTRTPT     events_domain.Rmd:247
CMSTTPT      events_domain.Rmd:278
CMTRT        cnd_df.Rmd:49
             events_domain.Rmd:191
CRF          events_domain.Rmd:90
datetime     algorithms.Rmd:38
             events_domain.Rmd:60,219
devleoped    findings_domain.Rmd:559
DIABP        findings_domain.Rmd:201
eCRF         algorithms.Rmd:15
             events_domain.Rmd:88
             study_sdtm_spec.Rmd:44,55,58,58,61
eDT          algorithms.Rmd:15
             events_domain.Rmd:88
             study_sdtm_spec.Rmd:44,55,71,73
hardcode     algorithms.Rmd:38
             events_domain.Rmd:61,62,245,276
hardcoding   events_domain.Rmd:247,278
MDBDR        events_domain.Rmd:29
MDBTM        events_domain.Rmd:29
MDEDR        events_domain.Rmd:29
MDETM        events_domain.Rmd:29
MDR          algorithms.Rmd:24
             study_sdtm_spec.Rmd:40
MDRAW        events_domain.Rmd:29
mmm          events_domain.Rmd:221
NonCRF       events_domain.Rmd:90
OID          events_domain.Rmd:51
             findings_domain.Rmd:33
OXYSAT       findings_domain.Rmd:201
px           algorithms.Rmd:34,218
SYS          findings_domain.Rmd:118
SYSBP        findings_domain.Rmd:118,147
VSALL        findings_domain.Rmd:201
yyyy         events_domain.Rmd:221

@ramiromagno
Copy link
Collaborator

ramiromagno commented Jun 20, 2024 via email

@edgar-manukyan
Copy link
Collaborator

@ramiromagno, correct, I pulled and I got even more spelling mistakes, will push shortly.

@edgar-manukyan
Copy link
Collaborator

@ramiromagno, sorry for confusion, I was fixing in the 51-documentation-updates-v01

@edgar-manukyan
Copy link
Collaborator

edgar-manukyan commented Jun 20, 2024

Now I switched to 18-last-obs-before-exposure-flag-and-baseline-flag, pulled and I see the following and will push shortly

> spelling::spell_check_package()
  WORD        FOUND IN
CMGRPID     cnd_df.Rmd:49
CMTRT       cnd_df.Rmd:49
eCRF        algorithms.Rmd:15
            study_sdtm_spec.Rmd:44,55,58,58,61
eDT         algorithms.Rmd:15
            study_sdtm_spec.Rmd:44,55,71,73
MDR         algorithms.Rmd:24
            study_sdtm_spec.Rmd:40
pre         derive_blfl.Rd:77
            algorithms.Rmd:24
px          algorithms.Rmd:34,211
RFSTDTC     derive_blfl.Rd:27
RFXSTDTC    derive_blfl.Rd:28
timpoints   derive_blfl.Rd:35
TPT         derive_blfl.Rd:35
varaible    derive_blfl.Rd:19
xxTPT       derive_blfl.Rd:73

@ramiromagno
Copy link
Collaborator

ramiromagno commented Jun 20, 2024 via email

@edgar-manukyan
Copy link
Collaborator

@ramiromagno, the spellings should be good now. Can you please approve?

@edgar-manukyan
Copy link
Collaborator

edgar-manukyan commented Jun 20, 2024

Have you pulled? :) because those spelling issues should have been fixed by now...

I pulled and there were few findings, I fixed those and added the words from the #56 as well.

Copy link
Collaborator

@ramiromagno ramiromagno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good.

@edgar-manukyan
Copy link
Collaborator

edgar-manukyan commented Jun 20, 2024

I will fix the conflicts

@rammprasad rammprasad merged commit 6abb5ba into main Jun 26, 2024
13 checks passed
@rammprasad rammprasad deleted the 18-last-obs-before-exposure-flag-and-baseline-flag branch June 26, 2024 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Last obs before exposure flag and Baseline Flag
5 participants