P2 Reproduction
Planned plugin: conception, pregnancy, its outcome and birth; each newborn becomes a new person linked to the mother. Planned for 1.0.
In development
This plugin is planned for 1.0. This page describes its design; names and details may still change until it ships, when its generated model description replaces this page.
Status: Planned for 1.0. Version 0.1 ships no official plugin.
Purpose
Reproduction models conception, pregnancy, the outcome of a pregnancy and birth. Each live birth creates a new person, linked to the mother. In the 1.0 variant, the biology follows FPsim at a pinned version, so that cohortix can be compared with it.
State and owned attributes
For each woman, Reproduction owns:
- whether she is pregnant, and the pregnancy under way;
- the start of the postpartum period;
- her parity, the number of children she has borne, which never decreases;
- the states of the biology after a birth, such as lactational amenorrhoea.
It also creates the mother_child link between a mother and each of her children. A newborn starts with parity zero and not pregnant.
Processes and their order within the step
Reproduction runs in the conception_birth phase, which by default comes after death, union and contraception in phases.order. A death in the same step is therefore resolved before a conception or a pregnancy outcome.
- Pregnancies that reach their end give an outcome, drawn once among live birth, stillbirth, miscarriage and abortion, and Reproduction emits
PregnancyEnded. - For a live birth, it asks the kernel to create the newborn, with its sex drawn, and links it to the mother. The newborn is exposed from the next step.
- Among women who are not pregnant, it draws conception from the
conceptionhazard, after the factor of the method in use and the policies are applied, and emitsConception. - When a woman dies, it clears her pregnancy and postpartum state.
No minimum interval between births is written in: it follows from gestation, losses and the postpartum period.
Events emitted
Conception, with the method in use at conception when there is one.PregnancyEnded, with theoutcome(live_birth,stillbirth,miscarriage,abortion) and the number of live births.
The kernel emits Core.AgentCreated for each newborn.
Contract
Reproduction provides official/Reproduction, version 1.
| Item | Kind | What it is |
|---|---|---|
Conception, PregnancyEnded | events | see above |
pregnant | view, true or false | whether the woman is pregnant |
maternal_status | view, category | none, pregnant, or postpartum for a fixed period after a pregnancy ends; read by Survival for maternal mortality |
parity | view, count | children borne |
months_postpartum | view, months, optional | time since the last pregnancy ended |
conception | modulation point, hazard per year | conception of a woman who is not pregnant, before contraception |
mother_child | link type, one mother to many children | roles mother (kinship parent) and child |
conceive, outcome, newborn_sex | decision types | the random draws of conception, outcome and the newborn's sex |
When Reproduction is not active, pregnant reads false and maternal_status reads none.
Parameters
- Conception hazard, per woman-year without contraception: the base value of the
conceptionpoint. - Pregnancy outcome: the probabilities of live birth, stillbirth, miscarriage and abortion, drawn once per pregnancy.
The other parameters of the 1.0 variant, those of the biology after a birth, are the ones its port of FPsim needs; their tables are fixed when the plugin is built. Where the newborn's sex and multiple births take their parameters from is not decided yet.
Data needed from the pipeline
The parameter tables of the port, imported through the data pipeline. Until they are imported, the plugin is tested with fixture tables.
Data format
- Conception hazard:
rate.hazard2.0; keyquantity,territory_unit,sex,age_lo,period_start_date.valueis a rate, with itsunitandnative_step. - Pregnancy outcome: schema not fixed yet. The probabilities of the four outcomes.
- The port's other tables: fixed when the plugin is built.
Columns of every rate table, in order: quantity, territory_unit, sex, age_lo, period_start_date, period_start_date_precision, age_hi, period_end_date, period_end_date_precision, value, unit, native_step. The first five are the key.
sex is female, male or all; age_lo and age_hi are ages in completed years, age_hi empty for an open last band; dates are full ISO dates, each with its precision (day, month or year). unit is a unit of the engine's unit list, and native_step (day, week, month or year) the duration the value was computed on; the kernel converts a hazard over the actual length of each step.
The role names are provisional.
Each table is registered with cohortix-data register and bound to a table role in the scenario's [data.bindings]; see Bring your own data.
Reads
- From the kernel: age and sex.
- Optionally, from Contraception, the view
Contraception.current_method, recorded on the conception. - Optionally, from Union, the view
Union.in_union. - It listens to
Mortality.Death.
Variants
fpsim-biology: the 1.0 variant, whose biology follows FPsim.- A second variant built on survey data, with its own postpartum clocks, is planned for 1.1.
A third variant that draws births from period fertility rates by age exists only as a test fixture for the comparison with FPsim, and never ships. The father's link is not created in 1.0; it comes with the wider kinship of 1.1.
Policies that can modulate it
Policies act on conception. Contraception acts on the same point: the factor of the method in use lowers the hazard. This is the required contract between the two plugins.
P1 Survival
Planned plugin: deaths by age and sex, with under-five mortality and maternal mortality as separate targets for policies. Planned for 1.0.
P3 Contraception
Planned plugin: starting, choosing, stopping and switching a contraceptive method on a monthly calendar, and the effect of the method on conception. Planned for 1.0; calendar variant planned for 1.1.