rcpch / digital-growth-charts-react-client Goto Github PK
View Code? Open in Web Editor NEWA React Client for the RCPCH Growth Charts API
Home Page: https://growth.rcpch.ac.uk/
License: MIT License
A React Client for the RCPCH Growth Charts API
Home Page: https://growth.rcpch.ac.uk/
License: MIT License
SDS/Centile toggle should be disabled when results showing
Using web storage (aka Amazon S3 and Azure Blob storage, many others exist) is a very cheap way to host static content. No server is required which means it's fast, cheap, and auto-scales well to demand.
Downsides are that there is a little more configuration required to ensure that client-side routing works properly. Here is a useful tutorial https://medium.com/@antbutcher89/hosting-a-react-js-app-on-azure-blob-storage-azure-cdn-for-ssl-and-routing-8fdf4a48feeb
GitHub auto-deploy is also likely to need a bit of thought, it should be simple enough and there may be an existing static app Workflow file we can use.
Overall, it's a nice-to-have, not for MVP. May be worth considering if we find we are having to increase the size of the Azure App Service plan a lot to cope with demand on the React demo client, although really, there is very little load on the server except serving the initial JS application and possibly some static CSS/image assets subsequently.
Just needs a HTML table and the relevant REST call to the server.
Dependabot flags up know vulnerabilities and issues with dependencies, as listed in package.json
There are a few flags here
https://github.com/rcpch/digital-growth-charts-react-client/security/dependabot
We could do with setting aside some time to go through and see if we can fix them, perhaps a pairing session?
Conversation with @pacharanero and @atheneheaven about the utility of MeasurementInput component over simple input fields.
Rendering the charts is complicated - each centile is made up of 3 data-sets which must represent a series so as to ensure they are plotted with clear breaks. For 9 centiles, that means plotting 27 separate series, the 28th being the growth data of the child. It would be best to have a bespoke library/package with modifiable parameters to do with styling available to developers to remove the complexities around chart rendering.
I think this should point to
https://
Now that the API returns bone ages, it would be good to render them. This would mean adding bone ages to the form
The results page should have code folding to reveal all results + JSON for demo purposes
It should have copy and paste
Need to build in the growth chart client into mkdocs. Iframe makes it difficult to zoom as confuses the action with scrolling
In an ideal world, all EPRs will integrate the dGC API shortly after we launch it, and clinicians of all stripes will be able to access RCPCH-standard centile and SDS calculations from within their native EPR applications.
However, back in the real world, this is a long-term goal. In the meantime we will have a lot of clinicians having to manually enter child data into the React demo, and they will want to record the returned data in their EPR manually as well. They are likely to want to copy and paste the data. This is suboptimal, but it is acknowledging what will happen in the real world.
There is a small clinical risk associated with this 2-way transfer of data - the input data could be entered incorrectly, or the returned data could be transcribed incorrectly. We can reduce the risk of the second error but providing a text box with all the returned information neatly formatted for the user to copy and paste into their application. We can't stop them doing this anyway, but we can make the resultant data-block better, less ambiguous, and clearer.
What I'm proposing would be at the bottom of the results page, underneath the results table. A text box containing:
The react client needs facility to upload excel spreadsheet data
Client currently has no validation checking for measurements from multiple patients being entered into one chart.
Eg: it is possible to enter 2 measurements one after the other with different DOBs.
In order not to perpetuate gender bias cf Invisible Women - Exposing data bias in a world designed for men, Caroline Criado Perez, the charts have sought de-emphasis the old pink/blue. In addition the default selection could also be set to female.
https://github.com/rcpch/digital-growth-charts-react-client/tree/showcentilelabels
This branch has just one commit and implements a new prop. @eatyourpeas is this no longer needed?
Or is it work that needs to be merged in at some point?
(I am just tidying up old branches)
While the results of the API call is awaited, it would be good to signal the latency to the user with a spinner.
Node 16 is now about to leave LTS status https://nodejs.dev/en/about/releases/
Se need to do an upgrade to use Node 18 or possibly even better Node 20, both of which are LTS editions
At the same time it is certain we will need to do updates of React and many of the dependencies, so that it works with the dGC React Component.
Now that the API returns events, it would be good to render these on the chart as an up arrow. This would mean adding another tab to the form for events
Toggling results when plotting a BMI causes component to disappear
spec for logo
design notes from @kirsten-olson
Demo site for growth charts - https://growth.rcpch.ac.uk/
Refer to attached guidance / KSS for colour/font use, etc. - can keep clean clear style but follow our forms approach (where feasible)
Add full logo at top, with banner style
Menu – can we display as on other RCPCH sites? (I for one keep missing it!)
We expect this may be used on mobile, so can do more checking – but it seems quite responsive, though wonder if menu / top links can display as burger menu
If possible, add home page to introduce what the site is for and who it is for, with a link to the data demo on a separate page (and on the menu / promoted from home page)
We need a clear redirection to RCPCH web pages for parents and carers looking for information about growth charts, especially if they are likely to land here from web searches; and/or to other growth charts information for families when available – suggest this be a block of copy on the home page
Check labels for data fields, as difficult (for us!) to read. For example, is top birth date, next date of measurement?
When I enter my test measurement on https://growth.rcpch.ac.uk/ and hit 'Calculate Centiles and Create Chart' button - it doesn't plot data on the chart and the calculation is missing. Occasionally, when I hit the button, it gives blank page.
We only have that feature for some testing functions, and for use by @statist7
We could leave the feature but remove the link to it, because I don't think we want to encourage Joe Public to be uploading spreadsheets and doing multiple calculations. Also I really don't want to encourage ANY more spreadsheet use in the NHS
Currently hard coded as localhost:5000
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.