interventions.gonorrhea_interventions

interventions.gonorrhea_interventions

Define gonorrhea interventions for STIsim

Classes

Name Description
GonorrheaTreatment Treatment for gonorrhea infection with antimicrobial resistance tracking.
UpdateDrugs Intervention that switches the gonorrhea drug regimen when resistance is high.

GonorrheaTreatment

interventions.gonorrhea_interventions.GonorrheaTreatment(
    pars=None,
    eligibility=None,
    max_capacity=None,
    years=None,
    name=None,
    *args,
    **kwargs,
)

Treatment for gonorrhea infection with antimicrobial resistance tracking.

Successful treatment clears infection immediately. Unsuccessful treatment reduces infection duration and relative transmissibility but lowers the agent’s future treatment response (rel_treat). Unnecessary treatment also reduces rel_treat, modeling resistance accumulation.

Parameters

Name Type Description Default
pars dict Parameter overrides (e.g. base_treat_eff, rel_treat_unsucc, rel_treat_unneed). None
eligibility func Function returning eligible UIDs. None
max_capacity int Maximum treatments per timestep. None
years list Calendar years during which the intervention is active. None
name str Intervention name. None
**kwargs Additional parameter overrides. {}

Methods

Name Description
step Apply treatment. On each timestep, this method will add eligible people who are willing to accept treatment to a
step
interventions.gonorrhea_interventions.GonorrheaTreatment.step()

Apply treatment. On each timestep, this method will add eligible people who are willing to accept treatment to a queue, and then will treat as many people in the queue as there is capacity for.

UpdateDrugs

interventions.gonorrhea_interventions.UpdateDrugs(
    pars=None,
    eligibility=None,
    years=None,
    *args,
    **kwargs,
)

Intervention that switches the gonorrhea drug regimen when resistance is high.

Monitors the population-level mean rel_treat and, when it drops below threshold_amr, resets all agents’ treatment response to 1.0 (simulating a switch to a new drug). The previous rel_treat values are stored for reference.

Parameters

Name Type Description Default
pars dict Parameter overrides; key parameter is threshold_amr (default 0.05). None
eligibility func Function returning UIDs to monitor. None
years list Calendar years during which the intervention is active. None
**kwargs Additional parameter overrides. {}