fix: assign age two to younger WHO chart component - #102
Conversation
|
@eatyourpeas again this is one I'm just checking with you - we don't want an overlap at age exactly 2, equally there should be a response at exactly 2. Or is it a deliberate omission due to lack of underlying exact data? Happy to close and document if so. Just dotting t's and crossing the i's 🤣 |
|
There are two measurements at 2y, one when lying down (length), one when standing. It makes no difference for weight or head circumference but there are two values in the reference. If you are plotting centiles then you need both the height and the length. This is why there is a |
Clinical/reference-data question
At exactly 2 years, should the chart boundary point belong to the younger WHO infant component, with the older child component beginning after 2 years?
The infant daily table ends at day 730, fractionally before 2.0 decimal years, while the child table begins fractionally after 2.0. Chart generation currently asks for exactly 2.0, so both source tables reject it and neither adjoining component contains the boundary point.
Proposed fix
x = 2on the chart.Clinical safety
The fallback is limited to the existing explicit younger-reference overlap path. It does not alter ordinary age-2 measurement selection or extrapolate beyond the infant table.
Testing
docker run --rm rcpchgrowth-age-two-overlap-rcpchgrowth-python pytest