OHDSI / FeatureExtraction

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

Covariates from in-cohort period? #105

Open ChungsooKim opened 3 years ago

ChungsooKim commented 3 years ago

Hi,

I use the FeatureExtraction package (especially temporal feature function) for constructing covariates not only before the index date but after the index date. The covariates with the timeID are useful for tracking how many patients were using that covariate.

but I can't find the options restricting the covariate period in each patient. How can I restrict the covariates from only the in-cohort period (from cohort_start_date to cohort_end_date)?

For example, I want to get the drug_expousure covariates from each patient's inpatient period. To my knowledge, in createTemporalCovariateSettings, I can define the same end day only adding to cohort_start_date for all patients.

As you know, we can restrict the time period for each patient after getting the whole covariates in R. However, I think it is inefficient.

If I have something missed or if you have any other options or comments, please let me know.

Best wishes, Chungsoo

schuemie commented 3 years ago

Sorry, that is not support by FeatureExtraction