MyNixOS website logo
Description

Construct Cohort Inclusion and Restriction Criteria Expressions.

Wraps the 'CIRCE' (<https://github.com/ohdsi/circe-be>) 'Java' library allowing cohort definition expressions to be edited and converted to 'Markdown' or 'SQL'.

CirceR

Build Status codecov.io

CirceR is part of HADES.

Introduction

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.

Features

  • Convert a JSON cohort expression into a markdown print-friendly presentation.
  • Convert a JSON cohort expression into SQL.

Examples

# 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.

Technology

CirceR is an R package wrapped around a Java library.

System Requirements

Requires R (version 3.2.2 or higher). CirceR require Java.

Getting Started

  1. See the instructions here for configuring your R environment, including Java.

  2. In R, use the following commands to download and install CirceR:

install.packages("remotes")
remotes::install_github("ohdsi/CirceR")

User Documentation

The documentation website can be found at https://ohdsi.github.io/CirceR/. A PDF version of the package manual is here:

Support

Contributing

Read here how you can contribute to this package.

License

CirceR is licensed under Apache License 2.0

Development

CirceR is being developed in R Studio.

Development status

Beta. Use at your own risk.

Metadata

Version

1.3.3

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows