Skip to content
Skip to Content

P8 Supply and care-seeking

Planned plugin: service places such as health facilities, with their quality, price and stocks, and the choice of a place, or of no care, for each care need. Planned for 1.1.

In development

This plugin is planned for 1.1. This page describes its design; names and details may still change until it ships, when its generated model description replaces this page.

The map seen from above. A woman with a care need lives in a village. Two places with a health cross stand at different distances: a nearer one by the village, with the method out of stock, and a farther one in the town, with the method in stock. Each has its quality attributes (attitude; drugs and equipment) and its price. A thin straight line goes to the nearer place and a thick straight line to the farther place, which she chooses; both mark the distance to each place. No care is an option too.The map seen from above. A woman with a care need lives in a village. Two places with a health cross stand at different distances: a nearer one by the village, with the method out of stock, and a farther one in the town, with the method in stock. Each has its quality attributes (attitude; drugs and equipment) and its price. A thin straight line goes to the nearer place and a thick straight line to the farther place, which she chooses; both mark the distance to each place. No care is an option too.
Supply and care-seeking: for each care need, a person chooses among open places, or no care. Distance, typed quality, price and stocks all count, so she may bypass the nearest place.

Status: Planned for 1.1. Version 0.1 ships no official plugin.

Purpose

Supply and care-seeking models service places, such as health facilities, and the choice a person makes when she has a care need: which open place she goes to, or no care at all. A place has a quality, a price and stocks of consumables such as contraceptive methods; a stock-out lowers the availability that the choice sees. A scenario that adds places, removes fees or disrupts supply then acts through these choices, from its configuration alone.

State and owned attributes

Supply owns its service place types and their attributes:

  • Quality: at least two typed attributes, the provider's attitude and the availability of drugs and equipment, plus the type of staffing, the provider's qualification and whether the place is public or private.
  • Price of a visit.
  • Methods: the range of methods a place offers and how many are out of stock.
  • Stocks, per place and per method or input, kept at least monthly, with the place's restocking rule.

For each care need, it owns an admission role of one step, counted against the place's capacity. It also keeps, for each person, whether her method is unavailable at her source, and the quality of her last care.

Processes and their order within the step

Supply runs in the supply phase, which release 1.1 adds to the default phase list after intentions and before contraception, so the availability of methods is set before Contraception's choices.

Place policies that open, close or upgrade places are applied by the kernel at the barrier, before Supply's phase.

  1. Stocks are consumed and restocked, and stock-outs are drawn, per place and per method or input.
  2. For each care need, the choice set is a bounded set of open places, plus "no care". The nearest place is not imposed: a person may bypass it.
  3. The person draws one option. Choosing a place asks for an admission, which the place's capacity may refuse or delay.
  4. A woman who meets a stock-out reacts through the same choice: she may switch method, switch place or give up.

Where some care needs come from is not decided yet. Whether a stock-out leaves a lasting memory, and how news of free care spreads, are not decided yet. How this choice combines with Contraception's is not decided yet.

Events emitted

  • PlaceOpened, PlaceClosed and PlaceUpgraded, the lifecycle events of its place types.
  • Events for the consumption and the restocking of stocks.
  • The chosen place, or no care, recorded in the journal.

Their names, beyond the lifecycle events, are fixed with the contract.

Contract

Supply provides official/Supply. Beyond the items above, it declares one admission role per care need and serves Contraception a view of whether a woman's method is unavailable at her source. Its full list of items is fixed when the contract is written.

Parameters

  • Distance, one coefficient per care need. Distance enters in one of three declared forms (linear, logarithmic or square root); which form applies is a calibrated parameter. It is the travel time when travel times are bound, and the straight-line distance otherwise.
  • Quality weights, one per quality attribute.
  • Weight of price, and the household's constraints on the "no care" option, through a term built from wealth and price; no household budget is stored.
  • Stock-outs: their frequency, by method, period and residence. Their duration, persistence and restocking delay are declared in the scenario, with no default in code.

Choice weights come from calibration, never from code defaults: a scenario that declares neither weights nor a prior stops at validation, naming the missing keys.

Data needed from the pipeline

The service places and their attributes, through the place tables of the data pipeline; travel times when they are available.

Data format

  • Service places: place.facility 2.0; key place_id. The places, with their type, unit, capacity, and dates of opening and closing.
  • Changes of type: place.type_history 2.0; key place_id, start_date. When a place is upgraded to another type.
  • Travel times: place.access 2.0; key dwelling_id, place_id. Columns dwelling_id, place_id, realization, place_type, travel_time, travel_time_unit, method, surface_id, opened_date, opened_date_precision, closed_date, closed_date_precision. travel_time is in the duration unit named by travel_time_unit (for example minute). Used when bound.
  • Quality, price, method range and stocks: no published schema yet. The attributes of each place.

Columns of every place table: place_id, place_type, name, territory_unit, lon, lat, coord_precision, capacity, candidate, opened_date, opened_date_precision, closed_date, closed_date_precision, source, source_id, licence; the key is place_id. Coordinates come only from open layers, public place sources or a user's own table, never from survey cluster points.

Without place.access, distance is the straight-line distance the kernel computes from the dwelling and place positions. The household's wealth quintile is a load-only column of the kernel, read at the start from the person table (population.person 2.1, not published yet) and derived from the survey's wealth_quintile. 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: whether a place is open, its load and capacity, the nearest places, the places within a catchment, travel time or straight-line distance; the person's territorial unit; and, before Residence and households exists, the household's wealth quintile loaded at the start.
  • From Contraception, the events MethodStarted and MethodSwitched, for the consumption of methods.

Supply also acts on Survival: the effect of care on mortality is a factor on Survival's under5 point and on the maternal part of its death point, from the quality of the last care. Fees never act on mortality directly. The kind of its link to Survival is not decided yet.

Variants

  • Choice among places (1.1): the rule above.
  • A minimal variant that removes a method, outside places, comes later.

Policies that can modulate it

  • Open, close or upgrade places, such as adding health posts in a zone.
  • Free care: the price is set to zero.
  • Change a group of places' restocking rule, or disrupt or restore stocks.

With a policy off, the run is identical to the baseline.

On this page

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