Add male attribute to a query
Add female attribute to a query
male()
female()
An attribute that can be used in a query function
An attribute that can be used in a query function
male()
: male demographic attribute
female()
: female demographic attribute
# Create a cohort of males with Type 1 diabetes
t1dm <- cs(descendants(201254, 435216, 40484648), name = "type 1 diabetes")
t1dm_males <- cohort(conditionOccurrence(t1dm, male()))
# Create a cohort of males with Type 1 diabetes
t1dm <- cs(descendants(201254, 435216, 40484648), name = "type 1 diabetes")
t1dm_females <- cohort(conditionOccurrence(t1dm, female()))