Query the condition occurrence domain
conditionOccurrence(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.
A Query object.
t2dm <- cs(descendants(201826L), name = "T2DM")
conditionOccurrence(t2dm)
#> <Capr ConditionOccurrence Query> T2DM
conditionOccurrence(t2dm, firstOccurrence(), age(gte(18L)))
#> <Capr ConditionOccurrence Query> T2DM