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?
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
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?