You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: phenex/phenotypes/categorical_phenotype.py
+9-9
Original file line number
Diff line number
Diff line change
@@ -15,15 +15,15 @@ class HospitalizationPhenotype(Phenotype):
15
15
It uses a CategoricalFilter to filter for inpatient events and can apply additional date and time range filters.
16
16
17
17
Attributes:
18
-
name (str): The name of the phenotype.
19
-
domain (str): The domain of the phenotype, default is 'ENCOUNTER'.
20
-
column_name (str): The name of the column to filter on, default is 'ENCOUNTER_TYPE'.
21
-
allowed_values (List[str]): List of allowed values for the encounter_type column, default is ['inpatient'].
22
-
date_range (DateRangeFilter, optional): A date range filter to apply.
23
-
relative_time_range (Union[RelativeTimeRangeFilter, List[RelativeTimeRangeFilter]], optional): A relative time range filter or a list of filters to apply.
24
-
return_date (str): Specifies whether to return the 'first', 'last', 'nearest', or 'all' event dates. Default is 'first'.
25
-
table (PhenotypeTable): The resulting phenotype table after filtering.
26
-
children (list): List of child phenotypes.
18
+
name: The name of the phenotype.
19
+
domain: The domain of the phenotype, default is 'ENCOUNTER'.
20
+
column_name: The name of the column to filter on, default is 'ENCOUNTER_TYPE'.
21
+
allowed_values: List of allowed values for the encounter_type column, default is ['inpatient'].
22
+
date_range: A date range filter to apply.
23
+
relative_time_range: A relative time range filter or a list of filters to apply.
24
+
return_date: Specifies whether to return the 'first', 'last', 'nearest', or 'all' event dates. Default is 'first'.
25
+
table: The resulting phenotype table after filtering.
0 commit comments