Biogen-Inc / tidyCDISC

Demo the app here: https://bit.ly/tidyCDISC_app
https://biogen-inc.github.io/tidyCDISC/
GNU Affero General Public License v3.0
107 stars 38 forks source link

Integrate population filter(s) into recipe metadata #229

Open AARON-CLARK opened 1 year ago

AARON-CLARK commented 1 year ago

I personally like the format of the metadata layout because it is super intuitive given the layout of our dropzones. For fun, I tried to add a new table that looks like this:

"stan_0": {
    "title": "Table 0: A Fun Table Aaron like's making",
    "group_by": "TRT01P",
    "blocks": [{"data":"ADSL", "variable":"RANDFL", "statistic":"Y_FREQ"}, 
    {"data":"ADSL", "variable":"SAFFL", "statistic":"FREQ"}, 
    {"data":"ADSL", "variable":"SEX", "statistic":"FREQ"},
    {"data":"ADSL", "variable":"ETHNIC", "statistic":"FREQ"},
    {"data":"ADSL", "variable":"RACE", "statistic":"FREQ"}]
  }

It's basically just a mash up of table 3 and 5. It worked great! But what if I wanted to add a population filter to the table? I see that process is completely separate from the metadata. Is there any way we could somehow include the population config in the recipes.json file so users (like me) only have to update info in one location? What do you think about @borgmaan comment from a few weeks ago about following a ADR format?

This is where we are heading. This PR is just step one. I am just setting up the framework to allow us to accomplish this goal.

Originally posted by @AARON-CLARK in https://github.com/Biogen-Inc/tidyCDISC/pull/167#pullrequestreview-1349605742