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.