Skip to content
Skip to Content

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.

A woman's path over time. While exposed she may conceive. A conception starts a pregnancy, which ends in a birth; an outlined postpartum segment follows. The child's path starts at the birth, joined to the mother by a line. Later, another pregnancy ends with no birth, also followed by a postpartum segment.A woman's path over time. While exposed she may conceive. A conception starts a pregnancy, which ends in a birth; an outlined postpartum segment follows. The child's path starts at the birth, joined to the mother by a line. Later, another pregnancy ends with no birth, also followed by a postpartum segment.
Reproduction: exposure, conception, pregnancy, one outcome per pregnancy, then postpartum. A birth starts the child's path, linked to the mother.

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.

  1. Pregnancies that reach their end give an outcome, drawn once among live birth, stillbirth, miscarriage and abortion, and Reproduction emits PregnancyEnded.
  2. 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.
  3. Among women who are not pregnant, it draws conception from the conception hazard, after the factor of the method in use and the policies are applied, and emits Conception.
  4. 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 the outcome (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.

ItemKindWhat it is
Conception, PregnancyEndedeventssee above
pregnantview, true or falsewhether the woman is pregnant
maternal_statusview, categorynone, pregnant, or postpartum for a fixed period after a pregnancy ends; read by Survival for maternal mortality
parityview, countchildren borne
months_postpartumview, months, optionaltime since the last pregnancy ended
conceptionmodulation point, hazard per yearconception of a woman who is not pregnant, before contraception
mother_childlink type, one mother to many childrenroles mother (kinship parent) and child
conceive, outcome, newborn_sexdecision typesthe 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 conception point.
  • 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.hazard 2.0; key quantity, territory_unit, sex, age_lo, period_start_date. value is a rate, with its unit and native_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.

On this page

You are reading the docs for 0.1. Keys can change between versions: use the version that matches cohortix --version.