Skip to content

impairment

The classes of impaired organ function: the factors of their parameters and colors.

The models scale a parameter of an organ by these factors, the renal function by KI__f_renal_function, the cirrhosis by f_cirrhosis (the degree of the liver which is cirrhotic) and the cardiac function by the cardiac output; the colors draw a class in every figure of the model alike. The base of the experiments of a model (pkpdsim.experiment.PKPDSimulationExperiment) has RENAL_FUNCTION, CIRRHOSIS and CARDIAC as its maps; a model which defines the classes otherwise assigns another preset in its base.

The models built on the PBPK library (pkpdsim.pbpk.impairment) have other parameters: CP_severity (liver cirrhosis, 0 healthy and 1, 2, 3 the Child-Pugh classes A, B, C), f_renal_function (the GFR relative to healthy, which gives the stage of chronic kidney disease) and HF_severity (heart failure, 0 healthy and 1 to 4 the NYHA classes I to IV). Their maps are CHILD_PUGH (colors CIRRHOSIS_COLORS), the RENAL_FUNCTION presets and HEART_FAILURE (colors HEART_FAILURE_COLORS); the maps of the other models keep their values and meaning.

The clinical classes of the conditions are Classifications with their definitions, colors and the value of the library parameter of every class: CHILD_PUGH_CLASSES (Child-Pugh, CP_severity), KDIGO_GFR_CLASSES (the GFR categories of KDIGO 2012, the eGFR of the library), NYHA_CLASSES (the NYHA functional classes, HF_severity), AGE_CLASSES (the paediatric and geriatric age classes of ICH E11 and ICH E7, AGE) and BMI_CLASSES (the body mass index classes of the WHO, BMI), together CLASSIFICATIONS; a model scans and draws them with class_simulations and add_classes of pkpdsim.pbpk.PBPKSimulationExperiment (docs page pbpk/classes.md).

CHILD_PUGH_CLASSES module-attribute

CHILD_PUGH_CLASSES = Classification(
    key="child_pugh",
    name="Child-Pugh classification",
    condition="liver cirrhosis",
    parameter="CP_severity",
    quantity="Child-Pugh score (points)",
    reference="Pugh1973",
    classes=(
        ImpairmentClass(
            "healthy",
            "Healthy",
            "black",
            "no liver disease",
            0.0,
        ),
        ImpairmentClass(
            "A",
            "Child-Pugh A",
            "#74a9cf",
            "well-compensated cirrhosis, score 5-6",
            1.0,
            (5.0, 6.0),
        ),
        ImpairmentClass(
            "B",
            "Child-Pugh B",
            "#2b8cbe",
            "significant functional compromise, score 7-9",
            2.0,
            (7.0, 9.0),
        ),
        ImpairmentClass(
            "C",
            "Child-Pugh C",
            "#045a8d",
            "decompensated cirrhosis, score 10-15",
            3.0,
            (10.0, 15.0),
        ),
    ),
)

The Child-Pugh classes of liver cirrhosis (CP_severity 0 to 3).

KDIGO_GFR_CLASSES module-attribute

KDIGO_GFR_CLASSES = Classification(
    key="kdigo_gfr",
    name="KDIGO GFR categories",
    condition="chronic kidney disease",
    parameter="eGFR",
    quantity="eGFR (ml/min/1.73 m2)",
    reference="KDIGO2012",
    classes=(
        ImpairmentClass(
            "G1",
            "G1 normal",
            "black",
            "normal or high, eGFR >= 90",
            None,
            (90.0, None),
        ),
        ImpairmentClass(
            "G2",
            "G2 mild",
            "#66c2a4",
            "mildly decreased, eGFR 60-89",
            75.0,
            (60.0, 90.0),
        ),
        ImpairmentClass(
            "G3a",
            "G3a mild-moderate",
            "#41ae76",
            "mildly to moderately decreased, eGFR 45-59",
            52.0,
            (45.0, 60.0),
        ),
        ImpairmentClass(
            "G3b",
            "G3b moderate-severe",
            "#238b45",
            "moderately to severely decreased, eGFR 30-44",
            37.0,
            (30.0, 45.0),
        ),
        ImpairmentClass(
            "G4",
            "G4 severe",
            "#006d2c",
            "severely decreased, eGFR 15-29",
            22.5,
            (15.0, 30.0),
        ),
        ImpairmentClass(
            "G5",
            "G5 kidney failure",
            "#00441b",
            "kidney failure, eGFR < 15 (not on dialysis in the library)",
            7.5,
            (None, 15.0),
        ),
    ),
)

The GFR categories of chronic kidney disease (KDIGO 2012), by the eGFR in ml/min/1.73 m2 at the midpoint of each category (G5 at 7.5, the end-stage anchor of the library); G1 is the renal function of the reference individual.

NYHA_CLASSES module-attribute

NYHA_CLASSES = Classification(
    key="nyha",
    name="NYHA functional classification",
    condition="chronic heart failure",
    parameter="HF_severity",
    quantity="symptoms at physical activity",
    reference="NYHA1994",
    classes=(
        ImpairmentClass(
            "healthy",
            "Healthy",
            "black",
            "no heart failure",
            0.0,
        ),
        ImpairmentClass(
            "I",
            "NYHA I",
            "#FDDBC7",
            "no limitation of physical activity; ordinary activity causes no undue fatigue, palpitation or dyspnoea",
            1.0,
        ),
        ImpairmentClass(
            "II",
            "NYHA II",
            "#F4A582",
            "slight limitation; comfortable at rest, ordinary activity causes fatigue, palpitation or dyspnoea",
            2.0,
        ),
        ImpairmentClass(
            "III",
            "NYHA III",
            "#D6604D",
            "marked limitation; comfortable at rest, less than ordinary activity causes symptoms",
            3.0,
        ),
        ImpairmentClass(
            "IV",
            "NYHA IV",
            "#67001F",
            "unable to carry on any physical activity without discomfort; symptoms at rest",
            4.0,
        ),
    ),
)

The NYHA functional classes of chronic heart failure (HF_severity 0 to 4).

AGE_CLASSES module-attribute

AGE_CLASSES = Classification(
    key="age",
    name="Age classes (ICH E11, ICH E7)",
    condition="age",
    parameter="AGE",
    quantity="age (years)",
    reference="ICHE11",
    classes=(
        ImpairmentClass(
            "newborn",
            "Term newborn",
            "#c6dbef",
            "term newborn infants, 0 to 27 days (ICH E11); preterm newborn infants need the gestational age, which the library does not model",
            13.5 * _DAY,
            (0.0, 28 * _DAY),
        ),
        ImpairmentClass(
            "infant",
            "Infant and toddler",
            "#6baed6",
            "infants and toddlers, 28 days to 23 months (ICH E11)",
            1.0,
            (28 * _DAY, 2.0),
        ),
        ImpairmentClass(
            "child",
            "Child",
            "#2171b5",
            "children, 2 to 11 years (ICH E11)",
            6.5,
            (2.0, 12.0),
        ),
        ImpairmentClass(
            "adolescent",
            "Adolescent",
            "#08306b",
            "adolescents, 12 to 17 years (ICH E11: 12 to 16-18 years by region; the EMA guideline on paediatric pharmacokinetics 12 to 17)",
            15.0,
            (12.0, 18.0),
        ),
        ImpairmentClass(
            "adult",
            "Adult",
            "black",
            "adults, 18 to 64 years; the value of the class is the adult of ICRP 89 (35 years)",
            35.0,
            (18.0, 65.0),
        ),
        ImpairmentClass(
            "young_old",
            "65-74 years",
            "#fdae6b",
            "geriatric patients of 65 to 74 years (ICH E7 Questions and Answers 2010; ICH E7: the geriatric population is 65 years or older)",
            70.0,
            (65.0, 75.0),
        ),
        ImpairmentClass(
            "old_old",
            "75-84 years",
            "#e6550d",
            "geriatric patients of 75 to 84 years (ICH E7 Questions and Answers 2010)",
            80.0,
            (75.0, 85.0),
        ),
        ImpairmentClass(
            "oldest_old",
            "85 years and older",
            "#7f2704",
            "geriatric patients of 85 years and older (ICH E7 Questions and Answers 2010); the physiology beyond 85 years is extrapolated",
            90.0,
            (85.0, None),
        ),
    ),
)

The age classes of the paediatric (ICH E11) and geriatric (ICH E7) populations (AGE in years); the value of a class is a representative age, the physiology is continuous in age.

BMI_CLASSES module-attribute

BMI_CLASSES = Classification(
    key="bmi",
    name="Body mass index classes (WHO)",
    condition="overweight and obesity",
    parameter="BMI",
    quantity="body mass index (kg/m2)",
    reference="WHO2000",
    classes=(
        ImpairmentClass(
            "normal",
            "Normal weight",
            "black",
            "a body mass index of 18.5 to 24.9 kg/m2 (WHO Technical Report Series 894); the class has no value of its own, it is the reference individual of the build (a body mass index of 23.6 kg/m2 for the man and 22.6 for the woman of ICRP 89)",
            None,
            (18.5, 25.0),
        ),
        ImpairmentClass(
            "underweight",
            "Underweight",
            "#6baed6",
            "a body mass index below 18.5 kg/m2 (WHO: severe below 16, moderate 16 to 16.9, mild 17 to 18.4); the value of the class is the middle of the mild and moderate range",
            17.0,
            (None, 18.5),
        ),
        ImpairmentClass(
            "overweight",
            "Overweight",
            "#fdd0a2",
            "a body mass index of 25.0 to 29.9 kg/m2, pre-obese in WHO Technical Report Series 894; the value of the class is its middle",
            27.5,
            (25.0, 30.0),
        ),
        ImpairmentClass(
            "obesity_1",
            "Obesity class I",
            "#fdae6b",
            "a body mass index of 30.0 to 34.9 kg/m2; the value of the class is its middle",
            32.5,
            (30.0, 35.0),
        ),
        ImpairmentClass(
            "obesity_2",
            "Obesity class II",
            "#e6550d",
            "a body mass index of 35.0 to 39.9 kg/m2; the value of the class is its middle",
            37.5,
            (35.0, 40.0),
        ),
        ImpairmentClass(
            "obesity_3",
            "Obesity class III",
            "#7f2704",
            "a body mass index of 40.0 kg/m2 and above, severe or morbid obesity; the value of the class is 45 kg/m2, and the adipose model of the library is valid to about 40 (the equations of the fat-free mass and of the obese repository both saturate above it)",
            45.0,
            (40.0, None),
        ),
    ),
)

The classes of the body mass index of the WHO classification (BMI, the body weight of the class at the height of the reference individual). The WHO Expert Consultation 2004 retained these cut-offs as the international classification and added the public health action points 23.0, 27.5, 32.5 and 37.5 kg/m2 for Asian populations, which the percent body fat of Gallagher 2000 reproduces (a body mass index of 22.7 in Asian men has the body fat of 25.0 in white men); the library carries the action points in docs/pbpk/adipose.md and not as a classification of its own.

CLASSIFICATIONS module-attribute

CLASSIFICATIONS = {
    c.key: c
    for c in (
        CHILD_PUGH_CLASSES,
        KDIGO_GFR_CLASSES,
        NYHA_CLASSES,
        AGE_CLASSES,
        BMI_CLASSES,
    )
}

The classifications by key.

ImpairmentClass dataclass

ImpairmentClass(
    key, label, color, definition, value, limits=None
)

A clinical class of an impaired organ function.

Attributes:

Name Type Description
key str

the key of the class, e.g. A, G3a, III; healthy for the reference without the condition.

label str

the label of the class in a legend.

color str

the color of the class in every figure.

definition str

the clinical definition of the class.

value float | None

the value of the parameter of its classification which represents the class in a model (CP_severity, HF_severity, or the eGFR in ml/min/1.73 m2 for the GFR categories); None for the reference of the model (the renal function 1 of the build).

limits tuple[float | None, float | None] | None

the range of the quantity which defines the class (the Child-Pugh score, the eGFR), (lower, upper) with an open end None; None for a class defined by symptoms.

Classification dataclass

Classification(
    key,
    name,
    condition,
    parameter,
    quantity,
    reference,
    classes,
)

The clinical classes of a condition with the parameter which sets them.

Attributes:

Name Type Description
key str

the key of the classification, e.g. child_pugh.

name str

the name, e.g. Child-Pugh classification.

condition str

the condition the classes grade.

parameter str

the parameter of the models built on the PBPK library whose value represents a class (CP_severity, HF_severity, or eGFR for the GFR categories, which f_renal_function sets).

quantity str

the quantity of the limits of the classes and its unit.

reference str

the key of the publication of the definition in the sources of the parameter database (pkpdsim/database/sources.toml).

classes tuple[ImpairmentClass, ...]

the classes in the order of the severity, the reference without the condition first.

keys

keys()

The keys of the classes in the order of the severity.

colors

colors()

The colors of the classes by label, for a legend.

color_of

color_of(value)

Get the color of a continuous value of the parameter of the classes.

The color is interpolated in RGB between the colors of the two classes whose values enclose it, so a continuous scan is drawn in the colors of its classes; a class without a value (G1, the reference of the model) is at the lower limit of its range, a value beyond the first or the last class has its color.

Parameters:

Name Type Description Default
value float

the value, e.g. CP_severity 1.5 or an eGFR of 40.

required

Returns:

Type Description
str

The color as #rrggbb.