stisim.interventions.gonorrhea_interventions module#

Define gonorrhea interventions for STIsim

class stisim.interventions.gonorrhea_interventions.GonorrheaTreatment(pars=None, eligibility=None, max_capacity=None, years=None, name=None, *args, **kwargs)[source]#

Bases: STITreatment

Treatment for gonorrhea infection.
  • successful treatment clears infection immediately

  • unsuccessful treatment reduces dur_inf and rel_trans, but results in lower rel_treat

  • unnecessary treatment results in lower rel_treat

set_treat_eff(uids)[source]#

Can be changed by derived classes

step()[source]#

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.

update_results()[source]#

Perform any results updates on each timestep

class stisim.interventions.gonorrhea_interventions.UpdateDrugs(pars=None, eligibility=None, years=None, *args, **kwargs)[source]#

Bases: Intervention

An intervention that samples rel_treat and updates the rel_treat values if they fall below a given level.

init_post()[source]#

Initialize the values of the states; the last step of initialization

step()[source]#

Define how the module updates over time – the key part of Starsim!!