All functions

age()

Function to create age attribute

as.data.frame(<ConceptSet>)

Coerce a concept set expression to a dataframe

as.json()

Coerce Capr object to json

atLeast()

Function to enumerate an minimal count of occurrences

atMost()

Function to enumerate a maximum count of occurrences

male() female()

Add male attribute to a query

attrition()

Create a cohort attrition object

bt()

Between operator

CensoringCriteria-class

An S4 class identifying a censoring criteria for the cohort

censoringEvents()

Constructor for a set of censoring events

cohort()

Function that creates a cohort object

compile(<Cohort>) compile(<ConceptSet>)

Compile a Capr cohort to json

compile()

Compile a Capr object to json

Concept-class

An S4 class for a single OMOP Concept

conceptAttribute-class

An S4 class for a concept attribute

ConceptSet-class

An S4 class for ConceptSetExpresion

ConceptSetItem-class

An S4 class for ConceptSetItem

conditionEra()

Query the condition era domain

conditionOccurrence()

Query the condition domain

continuousObservation()

A function to construct the observationWindow

Criteria-class

An S4 for a criteria

cs() exclude() mapped() descendants()

Create a concept set

dateAdjustment()

Function to create age attribute

dateAdjustmentAttribute-class

An S4 class for a date adjustment attribute

daysOfSupply()

Function to create days supply attribute

death()

Query the condition era domain

drugEra()

Query the drug era domain

drugExit()

Function to create an exit based on exit based on the end of a continuous drug exposure

drugExposure()

Query the drug domain

DrugExposureExit-class

An S4 class for a cohort exit based on continuous exposure persistence.

drugQuantity()

Function to create quantity attribute

drugRefills()

Function to create refills attribute

duringInterval()

Function that creates an eventAperture an opening where an event can occur relative to the index event

endDate()

Function that creates a end date attribute

Endpoint-class

An S4 class for an Endpoint

entry()

Create a cohort entry criteria

eq()

Equal to operator

`==`(<ConceptSet>,<ConceptSet>)

FUnction checks if two concept set class objects are equivalent

era()

Create a Cohort Era class object

EventAperture-class

An S4 class for Aperture

eventEnds()

Function creates an event window where the event ends

eventStarts()

Function creates an event window where the event starts

EventWindow-class

An S4 class for a Window

exactly()

Function to enumerate an exact count of occurrences

exit()

Function that creates a cohort exit object

firstOccurrence()

Add first occurrence attribute

FixedDurationExit-class

An S4 class for a cohort exit based on fixed duration persistence.

fixedExit()

Function to create an exit based on exit based on the end of a continuous drug exposure

getConceptSetCall()

Create the Capr code to build a concept set

getConceptSetDetails()

Fill in Concept Set details using a vocab

Group-class

An S4 class for a group

gt()

Greater than operator

gte()

Greater than or equal to operator

logicAttribute-class

An S4 class for a logical attribute

lt()

Less than operator

lte()

Less than or equal to operator

makeCohortSet()

Make a cohort dataframe for cohort generator

measurement()

Query the measurement domain

nbt()

Not between operator

nestedAttribute-class

An S4 class for a nested attribute

nestedWithAll()

Construct a nested group where all criteria and groups must be satisfied

nestedWithAny()

Function to construct a nested group where any criteria and groups may be satisfied

nestedWithAtLeast()

Function to construct a nested group where at least some of the criteria or groups must be satisfied

nestedWithAtMost()

Function to construct a nested group where at most some of the criteria or groups must be satisfied

observation()

Query the observation domain

ObservationExit-class

An S4 class for a cohort exit based on end of continuous observation.

observationExit()

Function to create an exit based on continuous observation

ObservationWindow-class

An S4 class for an ObservationWindow

Occurrence-class

An S4 class for an occurrence.

opAttributeDate-class

An S4 class for a op attribute that is a date

opAttributeInteger-class

An S4 class for a op attribute that is an integer

opAttributeNumeric-class

An S4 class for a op attribute that is a numeric

opAttributeSuper-class

An S4 super class for other opAttribute objects to inherit.

procedure()

Query the procedure domain

Query-class

An S4 class for a Circe Query

rangeHigh()

Function to create rangeHigh attribute

rangeLow()

Function to create rangeLow attribute

readConceptSet()

Read a concept set json or csv into R

startDate()

Function that creates a start date attribute

toCirce()

Function to coerce cohort to circe

unit()

Add unit attribute to a query

valueAsNumber()

Function to create valueAsNumber attribute

visit()

Query the visit occurrence domain

withAll()

Function to construct a group where all criteria and groups must be satisfied

withAny()

Function to construct a group where any criteria and groups may be satisfied

withAtLeast()

Function to construct a group where at least some of the criteria or groups must be satisfied

withAtMost()

Function to construct a group where at most some of the criteria or groups must be satisfied

writeCohort()

Write Cohort json file

writeConceptSet()

Save a concept set as a json file