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

Reproducible code as cohortBuilder code #38

Open
galachad opened this issue Nov 19, 2024 · 0 comments
Open

Reproducible code as cohortBuilder code #38

galachad opened this issue Nov 19, 2024 · 0 comments

Comments

@galachad
Copy link
Member

Base on cohortBuilder metadata generete repro code using cohortBuilder code.

Example:

cohort(
  filter(
    "discrete", id = "author", dataset = "books", 
    variable = "author", value = "Dan Brown"
  ),
  filter(
    "range", id = "copies", dataset = "books", 
    variable = "copies", range = c(5, 10)
  ),
  filter(
    "date_range", id = "registered", dataset = "borrowers", 
    variable = "registered", range = c(as.Date("2010-01-01"), Inf)
  ) 
)

This code should be returned by get_state or code function.

I think, the best way of having that will be to support multiple type of output for repro code.

@krystian8207 could you share your though about that. What will be the best way to implement. Using existing code functionality or create a new function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant