Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't-correct-cdc-term #49

Merged
merged 3 commits into from
Nov 14, 2024
Merged

Don't-correct-cdc-term #49

merged 3 commits into from
Nov 14, 2024

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.

1 participant