eds-scikit icon indicating copy to clipboard operation
eds-scikit copied to clipboard

Feature request: Adding other types of features than code-based to the Phenotype class

Open strayMat opened this issue 2 years ago • 0 comments

Feature type

A new method for Phenotype Class:

def add_inclusion_criteria(self, inclusion_criteria: pd.DataFrame, level="patient", threshold=1):

Description

In order to improve the Phenotype class and make it more universal, I would very much be able to add inclusion other than purely code based.

examples of such non-code features I would need to use this class for my study:

  • include patient having at least a minimum number of hospitalization.
  • include patient only being adult at a given date

The feature would make a filtering of the data based on the provided inclusion criteria.

strayMat avatar Apr 06 '23 13:04 strayMat