Skip to content

Conversation

@eatyourpeas
Copy link
Member

Overview

Supplementary change following on from previous patch where preterm requests for absent data have meaningful error messages returned.

In CDC age correction does not occur for any babies that are born gestation 37-42 weeks, or any preterm babies >2y of age.

A conditional has been added to check for gestation in the Measurement class where reference requested is CDC. In these circumstances, chronological and corrected ages are reset to be equal, and the discrepancy between this and supplied gestation is used in the age_advice_strings function to give the correct feed back to users on when age correction has happened

@eatyourpeas eatyourpeas merged commit 3cb7f41 into live Nov 14, 2024
5 checks passed
@eatyourpeas eatyourpeas deleted the don't-correct-cdc-term branch November 14, 2024 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants