HADES development announcements

Capr 2.0.0 has been released. This is a major update overhauling the user-interface of Capr. The intent of the overhaul is to improve the readability of the Capr code. For full details visit the package website. Below is a brief summary of some updates:

  • new handling of concept sets using cs(). Can build concept sets on the fly (requiring only a name and id) to use in a cohort definition. Improved functionality for handling descendants, mapped and excluded concepts. An example: cs(desecendants(201826L), name = "T2D")
  • new interface for specifying cohort logic via cohort(entry, attrition, exit, era). Stylistically definitions are to be layered as nested functions in order to convey the entire logic within one function. This change improves is intended to improve the readability of the Capr call.
  • maintain support for cohort templating
  • change end point of Capr to only produce the json structure for the cohort definition (either as a character string or saved file). It is suggested that the user deploys the json using the appropriate tools like CohortGenerator or CirceR, which are better suited to generating the cohort definition.
3 Likes