aphp / eds-scikit

eds-scikit is a Python library providing tools to process and analyse OMOP data
https://aphp.github.io/eds-scikit
BSD 3-Clause "New" or "Revised" License
35 stars 5 forks source link

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

Open strayMat opened 1 year ago

strayMat commented 1 year ago

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:

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