stisim.diseases.hiv module#

Define HIV disease module

class stisim.diseases.hiv.HIV(pars=None, init_prev_data=None, **kwargs)[source]#

Bases: BaseSTI

static make_init_prev_fn(module, sim, uids)[source]#
property include_mtct#
init_results()[source]#

Initialize results

init_post()[source]#

Set states

acute_decline(uids)[source]#

Acute decline in CD4

falling_decline(uids)[source]#

Decline in CD4 during late-stage infection, when counts are falling

post_art_decline(uids)[source]#

Decline in CD4 after going off treatment This implementation has the possibly-undesirable feature that a person who goes on ART for a year and then off again might have a slightly shorter lifespan than if they’d never started treatment.

cd4_increase(uids)[source]#

Increase CD4 counts for people who are receiving treatment. Growth curves are calculated to match EMODs CD4 reconstitution equation for people who initiate treatment with a CD4 count of 50 (https://docs.idmod.org/projects/emod-hiv/en/latest/hiv-model-healthcare-systems.html) However, here we use a logistic growth function and assume that ART CD4 count depends on CD4 at initiation. Sources:

property symptomatic#
static death_prob(module, sim, uids=None)[source]#
init_cd4()[source]#

Set CD4 counts

init_care_seeking()[source]#

Set care seeking behavior

step_state()[source]#

Carry out autonomous updates at the start of the timestep (prior to transmission)

step_die(uids)[source]#

Clear all states for dead agents

update_transmission()[source]#

Update rel_trans and rel_sus for all agents. These are reset on each timestep then adjusted depending on states. Adjustments are made throughout different modules:

  • rel_trans for acute and late-stage untreated infection are adjusted below

  • rel_trans for all people on treatment (including pregnant women) below

  • rel_sus for unborn babies of pregnant WLHIV receiving treatment is adjusted in the ART intervention

update_results()[source]#

Update results at each time step

set_prognoses(uids, source_uids=None, ti=None)[source]#

Set prognoses upon infection

set_congenital(target_uids, source_uids)[source]#
start_art(uids)[source]#

Check who is ready to start ART treatment and put them on ART

static dur_post_art_fn(module, sim, uids)[source]#
static dur_post_art_mean(module, sim, uids)[source]#
static dur_post_art_scale(module, sim, uids)[source]#
stop_art(uids=None)[source]#

Check who is stopping ART treatment and put them off ART