RCPCH Growth API – the Best Health Tech Solution of the Year

RCPCH has won this award from Health Tech News for our electronic growth charts. So, why is this a big deal? Dr Simon Chapman, Consultant Paediatrician at King’s College Hospital, who's involved in this project, explains.

The datasets on which the UK charts are based, come from the UK90 dataset (from 17 different UK sources) and the WHO (World Health Organization) 2006 dataset for the infants, itself based on cohorts of children from six countries (USA, Brazil, Ghana, India, Norway, Oman).

Constructing a chart involves either measuring a cohort of children longitudinally (across a timespan) or cross-sectionally at different timepoints and stitching the data together. Children grow at different speeds at different ages, so the statistics involved are complex.

In the 1980s, Professor Tim Cole described a statistical method that made the construction of charts much simpler: the LMS method.

Previously, their distribution would have been described by applying curves to describe the top and bottom 3, 10, 25 and 50%.

Using the LMS method (Cole, JRSS A 1988), instead, the data are divided into narrow age bands. The skew in weight distribution in each band is summarised in three values – lambda (power transformation), mu (the mean) and sigma (coefficient of variation) – or L, M and S.

Each value produces a smooth curve when plotted against age.

 Centiles are functions of LMS curves, so if the L M and S curves are smooth, the centiles will be also. (Cole TJ, Green PJ. Smoothing reference centile curves: the LMS method and penalized likelihood. Stat Med 1992;11:1305-19.)

The LMS curves are related to centiles by the equation:

The data tables behind the growth charts are a set of L, M and S values for a given age (and sex). If the age of the child, the sex and the weight is known, a centile or SDS can be calculated using the table and the equation.

Software packages that do growth charts all have to go through these steps: calculate the child’s age, look up the correct L, M and S, interpolate the values if no exact match is found, and plug them into the equation.

There are lots of steps in this calculation that can go wrong, and each developer who has tried to automate this process has had to learn how to get it right, with very little opportunity to test the results, or debug which step failed if they were out by a small amount.

Their software is only there for the few – usually the users of the hospital system it was built for; a lot of work sequestered away. This has led to multiple proprietary systems, often expensive, whose methodology is largely unpublished.

RCPCH has taken the bold step of hosting the maths themselves as an API (application programme interface). A small team of developers, statisticians and childhood growth specialists – the same people behind the paper charts – have pooled their expertise to write the code and host it open source for others to use to build their own. By sharing the code, developers are encouraged to peer review what they find, and contribute incremental improvements. The code is there now, if you want to get involved.

Even better, developers building growth apps don’t have to rebuild from scratch: the API is hosted by RCPCH – they need only send the measurements, and they will get accurate results back. No need to do the maths in the app, they outsource it to RCPCH.

And for those interested in growth charts, it could become a repository to host all references, to standardise how they are constructed and presented, not to mention a place to introduce new features and ideas, once peer reviewed in the academic press, eg Thrive lines, SDS charts.

This is the first time a Royal College has hosted its own code... why not host other complex calculations too?

But the best bit has nothing to do with the niche world of growth charts. This is the first time a Royal College has hosted its own code. Why stop at centile calculation? Why not host other complex calculations too? The College have all the expertise to make sure it is correct.

Early warning scores, jaundice curves, drug dose nonagrams, outcome predictors and so on. The royal colleges have so much medical expertise across their breadth – who better to write and host the code?

And how about their own best practice documents? Could those not also be hosted online, constantly updated, constantly peer-reviewed, all in one place, open source for all to contribute and contribute?

This could spark the beginning in a new phase in the way royal colleges engage with technology. What we are calling Royal Colleges 3.0, moving on from static websites to content developed and curated by the users themselves.