Liver Dysfunction Phenotype
LiverDysfunctionComponents
dataclass
Database specific components of ISTH Major Bleed. These include :
| Type | Number |
|---|---|
| codelists | 2 |
| categorical filters | 2 |
| value filters | 4 |
Source code in phenex/phenotypes/factory/liver_dysfunction_phenotype.py
LiverDysfunctionPhenotype(components, name='liver_dysfunction', clean_nonphysiologicals_value_filter=None, clean_null_values=True, value_aggregation=None, relative_time_range=None)
This is a database agnostic convenience implementation of a liver dysfunction phenotype. Database specific components are specified by LiverDysfunctionComponents. This phenotype identifies patients that have distinct measurement thresholds for male and female patients for AST and ALT.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
components
|
LiverDysfunctionComponents
|
Database specific definitions of codelists, categorical filters, and domains. See documentation for LiverDysfunctionComponents for more details. |
required |
name
|
Optional[str]
|
Optional override of default name 'liver_dysfunction'. |
'liver_dysfunction'
|
clean_nonphysiologicals_value_filter
|
Optional[ValueFilter]
|
Optional value filter applied before any other filtering to remove physiologically impossible values (e.g. negative values or extreme outliers). |
None
|
clean_null_values
|
Optional[bool]
|
Whether to remove null measurement values before filtering. Defaults to True. |
True
|
value_aggregation
|
Optional ValueAggregator to aggregate multiple measurements per patient (e.g. Mean, Max) before applying value filters. |
None
|
|
relative_time_range
|
Optional[RelativeTimeRangeFilter]
|
Optional specification of a relative time range in which to observe measurements. |
None
|