Query the condition occurrence domain

conditionOccurrence(conceptSet, ...)

Arguments

conceptSet

A ConceptSet built with cs(), or NULL for any condition.

...

Optional attributes: firstOccurrence(), startDate(), endDate(), age(), male()/female(), conditionType(), conditionStatus(), conditionSourceConcept(), nestedWithAll(), dateAdjustment(), etc.

Value

A Query object.

See also

Examples

t2dm <- cs(descendants(201826L), name = "T2DM")
conditionOccurrence(t2dm)
#> <Capr ConditionOccurrence Query> T2DM 
conditionOccurrence(t2dm, firstOccurrence(), age(gte(18L)))
#> <Capr ConditionOccurrence Query> T2DM