A R-wrapper for Circe, a library for creating queries for the OMOP Common Data Model. These queries are used in cohort definitions (CohortExpression) as well as custom features (CriteriaFeature). This package provides convenient wrappers for Circe functions, and includes the necessary Java dependencies.
# use an example JSON cohort expression:
data(cohortDefinitionJson)
cohortExpresion <- cohortExpressionFromJson(cohortDefinitionJson)
markdown <- cohortPrintFriendly(cohortExpresion)
writeLines(markdown)
# ### Cohort Entry Events
#
# People enter the cohort when observing any of the following:
#
# 1. condition occurrences of 'Some ConceptSet'.
#
# Limit cohort entry events to the earliest event per person.
#
# ### Cohort Exit
#
# The person exits the cohort at the end of continuous observation.
#
# ### Cohort Eras
#
# Entry events will be combined into cohort eras if they are within 0 days of each other.
See the instructions here for configuring your R environment, including Java.
In R, use the following commands to download and install CirceR:
install.packages("remotes")
remotes::install_github("ohdsi/CirceR")
The documentation website can be found at https://ohdsi.github.io/CirceR/. A PDF version of the package manual is here:
Read here how you can contribute to this package.