pharmaverse / admiral

ADaM in R Asset Library
https://pharmaverse.github.io/admiral
Apache License 2.0
220 stars 61 forks source link

closes #2389 removed the typo in an example for derive_vars_locf_records #2390

Closed janardhanswami closed 5 months ago

janardhanswami commented 5 months ago

Thank you for your Pull Request! We have developed this task checklist from the Development Process Guide to help with the final steps of the process. Completing the below tasks helps to ensure our reviewers can maximize their time on your code as well as making sure the admiral codebase remains robust and consistent.

Please check off each taskbox as an acknowledgment that you completed the task or check off that it is not relevant to your Pull Request. This checklist is part of the Github Action workflows and the Pull Request will not be merged into the main branch until you have checked off each task.

manciniedoardo commented 5 months ago

I am wondering if there should be a check that makes sure the AVISIT/N are mapped 1-1? @pharmaverse/admiral WDYT?

I think it's a good idea - where do you suggest it runs though? because if we made it its own function we'd have to add it everywhere.

bms63 commented 5 months ago

I am wondering if there should be a check that makes sure the AVISIT/N are mapped 1-1? @pharmaverse/admiral WDYT?

I think it's a good idea - where do you suggest it runs though? because if we made it its own function we'd have to add it everywhere.

I think it would need to be optional?? I think we do something similar in some of the lab-focused functions with param/cd checks. I'm not sure where it would be called...

manciniedoardo commented 5 months ago

I am wondering if there should be a check that makes sure the AVISIT/N are mapped 1-1? @pharmaverse/admiral WDYT?

I think it's a good idea - where do you suggest it runs though? because if we made it its own function we'd have to add it everywhere.

I think it would need to be optional?? I think we do something similar in some of the lab-focused functions with param/cd checks. I'm not sure where it would be called...

agree, maybe it could be a function within admiraldev?

millerg23 commented 5 months ago

There is an assertion in admiraldev called assert_one_to_one() that is used in derive_param_tte() for example.

janardhanswami commented 5 months ago

Just wanted to know is there anything that need's to be done from my side? @bms63

bms63 commented 5 months ago

@janardhanswami nothing needs to be done from your side. apologies that your PR got hijacked for our discussion, but raises a good point.

The failing checks are un-related. I will fix those for you.

janardhanswami commented 5 months ago

@bms63 Just wanted to know do we have any function or method so that we can check 1-1 mapping between certain variables like AVISIT and AVISITN, PARAM and PARAMCD, APERIOD and APERIODN, TRTP and TRTPN, TRTA and TRTAN. If we didn't have any function can we add one to check if the dataset follow the 1-1 relation between certain variables if it doesn't follow 1-1 relation then we can warn them by displaying a warning?

bms63 commented 5 months ago

Hi @janardhanswami yes we have some of this capability built in to some functions using this - https://github.com/pharmaverse/admiraldev/blob/8a2b3d8de3d6b4b9122d4517f3a8f86bb4662ea9/R/assertions.R#L1558

I'm thinking that this function does not have this baked in.

github-actions[bot] commented 5 months ago

Code Coverage

Package Line Rate Health
admiral 98%
Summary 98% (4730 / 4818)
manciniedoardo commented 4 months ago

Hello @janardhanswami - thanks for your PR! If you like, I can include you in the admiral acknowledgements. If so can I have your full name please?

janardhanswami commented 4 months ago

Hi @manciniedoardo I would love to see my name on the admiral acknowledgements my full name is saijanardhanswami. Thanks for recognizing my small efforts it boosts me a lot to even work more like this :) if possible please share me the link for that acknowledgement page or let me know where I can see that.

manciniedoardo commented 4 months ago

Hi @manciniedoardo I would love to see my name on the admiral acknowledgements my full name is saijanardhanswami. Thanks for recognizing my small efforts it boosts me a lot to even work more like this :) if possible please share me the link for that acknowledgement page or let me know where I can see that.

Great to hear! I will add something for Saijanard Hanswami in our June update. Please correct me if I got the spacing wrong.

janardhanswami commented 4 months ago

Hey @manciniedoardo actually the spacing is wrong it should be like this Sai Janardhanswami
Thanks :)

manciniedoardo commented 4 months ago

@janardhanswami great! thanks