Pregnancy#

class Pregnancy(pars=None, metadata=None, **kwargs)[source]#

Bases: Demographics

Create births via pregnancies

Attributes

now

Return the current time, i.e. the time vector at the current timestep.

states

Return a flat list of all states

statesdict

Return a flat dictionary (objdict) of all states

Methods

static make_fertility_prob_fn(self, sim, uids)[source]#

Take in the module, sim, and uids, and return the conception probability for each UID on this timestep

standardize_fertility_data()[source]#

Standardize/validate fertility rates

init_results()[source]#

Results could include a range of birth outcomes e.g. LGA, stillbirths, etc. Still unclear whether this logic should live in the pregnancy module, the individual disease modules, the connectors, or the sim.

do_step()[source]#

Perform all updates

update_states()[source]#

Update states

make_pregnancies()[source]#

Select people to make pregnant using incidence data

make_embryos(conceive_uids)[source]#

Add properties for the just-conceived

set_prognoses(uids)[source]#

Make pregnancies Add miscarriage/termination logic here Also reconciliation with birth rates Q, is this also a good place to check for other conditions and set prognoses for the fetus?