Closed chrisknoll closed 5 months ago
We'll have to see if this issue is aligned with the intent of feature extraction. It sounds like one perspective is feature extraction should only extract 'baseline covariates' at a prior-index time window. This would be looking forward, and I'm not sure if that would step outside the box of FE's intent. I would want to not introduce something that would work contrary to the intent of the library.
This issue proposes a new feature that can extract features between a cohort start and cohort end date.
Proposed Implementation
Leveraging DomainConcept.sql and DomainConceptGroup.sql introduce two new templates: DomainConceptDuring.sql and DomainConceptGroupDuring.sql that will not accept any time_interval or start/end days, but rather hard codes looking between target cohort start and end dates.
Introduce analysis specifications in PrespectAnalyses.csv for each domain that we want to extract features for (Condition, ConditionGroup, Drug, DrugEra, DrugEraGroup, Procedure, Observation, Visit, etc).