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

Can't find where #time_period is created #150

Closed cukarthik closed 2 years ago

cukarthik commented 2 years ago

I don't know if this is an issue, but looking through the DomainConceptGroup.sql file there is a reference to the temp table time_period; however, I don't see where it's created.

anthonysena commented 2 years ago

Hi @cukarthik - this temp table is created via Java: https://github.com/OHDSI/FeatureExtraction/blob/master/java/org/ohdsi/featureExtraction/FeatureExtraction.java#L562. It will take the info from the covariateSettings and create that temp table before executing analyses such as the DomainConceptGroup.sql.

I'll close this but feel free to re-open if you have additional questions.

cukarthik commented 2 years ago

Thanks!