starsimhub / starsim

Starsim disease modeling framework
http://starsim.org
MIT License
14 stars 8 forks source link

Decide how prognoses are set for congenital cases #104

Closed robynstuart closed 9 months ago

robynstuart commented 1 year ago

Currently we have make_new_cases, which loops over all networks including the maternal network and sets prognoses for new cases. However, prognoses are different for congenital cases, so we will need to separate this out somehow. We could have something like

if new_cases.any():
    if not layer.vertical:
        self.set_prognoses(sim, b[new_cases])
    else:
        self.set_congenital(sim, b[new_cases])

and then each disease would have methods for setting the prognoses for adult and congenital transmission. Or should this be handled by a connector between the disease & pregnancy modules? Or some other option?

cliffckerr commented 9 months ago

Done