Skip to content

Commit 8924f83

Browse files
committed
docstring
1 parent eef4f10 commit 8924f83

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

phenex/phenotypes/categorical_phenotype.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ class HospitalizationPhenotype(Phenotype):
1515
It uses a CategoricalFilter to filter for inpatient events and can apply additional date and time range filters.
1616
1717
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.
26+
children: List of child phenotypes.
2727
2828
Methods:
2929
_execute(tables: Dict[str, Table]) -> PhenotypeTable:

0 commit comments

Comments
 (0)