Skip to content

Commit

Permalink
Merge pull request #62 from OHDSI/develop
Browse files Browse the repository at this point in the history
Add logicAttribute coercion
  • Loading branch information
mdlavallee92 authored Apr 4, 2023
2 parents e51035d + d4496f9 commit 9db23eb
Show file tree
Hide file tree
Showing 112 changed files with 220 additions and 215 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: Capr
Title: Cohort Definition Application Programming
Version: 2.0.1
Version: 2.0.2
Authors@R: c(
person("Martin", "Lavallee", , "[email protected]", role = c("aut", "cre")),
person("Adam", "Black", , "[email protected]", role = "aut")
Expand Down
7 changes: 7 additions & 0 deletions R/attributes-logic.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,10 @@ firstOccurrence <- function() {
res <- methods::new("logicAttribute", name = "First")
return(res)
}

# Coercion ------------------

setMethod("as.list", "logicAttribute", function(x) {

tibble::lst(`:=`(!!x@name, TRUE))
})
4 changes: 2 additions & 2 deletions docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/LICENSE.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/articles/Capr-conceptSets.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/articles/Examples.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/articles/Using-Capr.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/articles/capr_design.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/articles/capr_templates.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
pandoc: 2.19.2
pkgdown: 2.0.6
pkgdown: 2.0.7
pkgdown_sha: ~
articles:
Capr-conceptSets: Capr-conceptSets.html
capr_design: capr_design.html
capr_templates: capr_templates.html
Examples: Examples.html
Using-Capr: Using-Capr.html
last_built: 2023-03-31T19:05Z
last_built: 2023-04-04T12:49Z

4 changes: 2 additions & 2 deletions docs/reference/Capr-package.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/reference/CensoringCriteria-class.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/reference/Concept-class.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/reference/ConceptAttribute-class.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/reference/ConceptSet-class.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/reference/ConceptSetItem-class.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/reference/Criteria-class.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/reference/DrugExposureExit-class.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/reference/Endpoint-class.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9db23eb

Please sign in to comment.