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

[BUG] Duplication of analysis id's - PrespecTemporalAnalyses #144

Closed gowthamrao closed 1 year ago

gowthamrao commented 3 years ago

Observed: image

https://github.com/OHDSI/FeatureExtraction/blob/master/inst/csv/PrespecTemporalAnalyses.csv#L22

and

https://github.com/OHDSI/FeatureExtraction/blob/master/inst/csv/PrespecTemporalAnalyses.csv#L23

Expected: Should be different id's

Causes duplication in results

image

gowthamrao commented 3 years ago

image

gowthamrao commented 2 years ago

I wonder if this is true

In Atlas - if i choose the following covariate settings for estimation module, am i clashing two analysis ids?

image_2022_08_19T12_23_12_494Z

drug_era short/long - drug era start -- 401 drug_era_group long/short -- 403

drug_era_group_overlap -- 403 ----- duplicate drug_exposure short/long -- 301

gowthamrao commented 2 years ago

I do not know if Cohort Method is using PreSpecTemporalAnalyses or temporalAnalyses

anthonysena commented 1 year ago

A few notes upon review of this bug:

anthonysena commented 1 year ago

@ginberg as discussed, let's clean up the comments here:

https://github.com/OHDSI/FeatureExtraction/blob/5363f5f4cdaf8b31ce9f193861169047b11ea41c/R/DefaultTemporalCovariateSettings.R#L65-L70