OHDSI / FeatureExtraction

An R package for generating features (covariates) for a cohort using data in the Common Data Model.
http://ohdsi.github.io/FeatureExtraction/
58 stars 60 forks source link

Guidance for using condition occurrence group #230

Closed solis9753 closed 4 months ago

solis9753 commented 4 months ago

Hi,

I'd like to explore the possibility of using condition occurrence group, i.e. one covariate per condition rolled up to groups in the condition_occurrence table. It seems that the SQL is designed to handle the condition_occurrence table but I am not sure how to implement it using the package's features. Any guidance or clarification would be highly appreciated.

ginberg commented 4 months ago

hi @solis9753, you can create a covariateSettings object and set the parameter (i.e. "useConditionGroup<>" that you want. They are described in the documentation, see code see the vignette on how to create code to use the package functionality

solis9753 commented 4 months ago

Hi @ginberg, thanks for your response. I admit my introductory post might have been a bit confusing. While there exist parameters for condition group era (i.e "useConditionGroupEra<>"), there are no parameters to cover condition occurrence.

Anhtony's post on the equivalent case for drug exposure could work in my case (i.e use of cohort covariates), although it complicates the situation to an extend(having to create multiple cohorts). Another solution would be to create a custom covariate builder.

Thanks. Feel free to close.