Releases: rcpch/rcpchgrowth-python
v4.1.0
CDC (Centers for Disease Control and Prevention)
Version 4.1 is the first version to include the CDC charts. CDC is made up of WHO (0-2y) and CDC (2y+). The WHO version used by CDC though has been tweaked, presumably to make the disjunction between the references less marked. The effect is that the code base now has 2 versions of WHO - the WHO one and the US interpretation. CDC BMI is included; for BMI measurements > 95th centile some clever maths is introduced to prevent some of the issues that have been detailed in conversations about the accuracy of z scores.
Note that there is no preterm data for the moment. The Canadian Fenton data is what is typically used, but this is licensed and conversations about the legals are ongoing. This means that for all corrected ages < 0 no values are returned, but a meaningful error is included.
There is also a fix to the confusing error raised when Estimated Date of Delivery (EDD) has not yet been reached in a preterm baby.
There are also tests for the same test subjects used in UK-WHO, but recalculated for CDC using the excellent R package [cdcanthro] (https://github.com/CDC-DNPAO/CDCAnthro) by David Freedman, author of the CDC BMI reference.
v4.0.2
v4.0.1
Refactor 'Happy Birthday' return string to 'Birth date today' if date of birth and observation date are the same.
A small fix also for the docker container to set working directory
v4.0.0
Breaking change
Removes support for python 3.8
Updates dependencies
Updates setup.py
Removes measurement advice string for <23 weeks gestation
Deprecated package_utils
and replace with importlib
Add support for local development in docker using s/up
(as per RCPCH development playbook)
v3.2.1
Improvements include:
- refactor centile value returned to 1 decimal place, rather than integer. There were inconsistencies with floats returning if centile < 1 or >99, but integers otherwise
- bug fix in the fictional child function, which returned all dates as python datetimes, rather than dates. This was leading to validation errors in the response object in the server
v3.2.0
Add citation
v3.1.17
Updates Measurement object to return sds and centile values in plottable_data element
v3.1.16
Rename start server files
v3.1.14
Fix for centile line overlaps @ 2y and 42 weeks
v3.1.13
Reintroduced the default_youngest_reference flag for generating centile line data at overlaps between references.