Capr is part of HADES.
Cohort definition Application Programming in R
Capr is an R package to develop and manipulate OHDSI cohort definitions. This package assists in creating a cohort definition that can be compiled by circe-be using CirceR. Cohort definitions developed in Capr are compatible with OHDSI ATLAS. Additionally the package allows for development of cohort design components, sub-items of a cohort design that are meant to be reusable and mutable to assist creating cohorts in study development.
Requires R (version 3.6.0 or higher). Installation on Windows requires RTools. Libraries used in Capr require Java. Capr requires a connection to an OMOP vocabulary database to query concepts.
-
See the instructions here for configuring your R environment, including RTools and Java.
-
In R, use the following commands to download and install Capr:
install.packages("remotes")
remotes::install_github("ohdsi/Capr")
Documentation can be found on the package website.
PDF versions of the documentation are also available:
- Vignette: Capr Tutorial
- Vignette: Capr Complex Cohort Example
- Vignette Using extended cohort attributes in Capr
- Package manual: Capr.pdf
- Developer questions/comments/feedback: OHDSI Forum
- We use the GitHub issue tracker for all bugs/issues/enhancements
Read here how you can contribute to this package.
Capr is licensed under Apache License 2.0
Capr is being developed in R Studio.