Therapeutic Inertia Model

Model therapeutic inertia, the variety of reasons why a treatment algorithm might deviate from clinical guidelines.

class vivarium_public_health.treatment.therapeutic_inertia.TherapeuticInertia[source]

Produce a population-level therapeutic inertia value.

At setup a single scalar therapeutic inertia value is drawn from a triangular distribution parameterized by triangle_min, triangle_max, and triangle_mode. This value represents the probability that treatment is not escalated during a healthcare visit and is exposed via the therapeutic_inertia pipeline.

CONFIGURATION_DEFAULTS: dict[str, Any] = {'therapeutic_inertia': {'triangle_max': 0.9, 'triangle_min': 0.65, 'triangle_mode': 0.875}}

A dictionary containing the defaults for any configurations managed by this component. An empty dictionary indicates no managed configurations. Components will look for a data_sources block in this dictionary to build lookup tables automatically.

setup(builder)[source]

Set up the component by drawing a therapeutic inertia value and registering the pipeline.

Parameters:

builder (Builder) – Access point for utilizing framework interfaces during setup.

Return type:

None

initialize_therapeutic_inertia(builder)[source]

Draw a single therapeutic inertia value from the configured triangular distribution.

The triangular distribution is parameterized by triangle_min, triangle_max, and triangle_mode from the component’s configuration. The resulting scalar is used for the entire simulation.

Parameters:

builder (Builder) – Access point for utilizing framework interfaces during setup.

Return type:

float

Returns:

A scalar therapeutic inertia value drawn from the triangular distribution.