diff --git a/src/bilirubin_app.js b/src/bilirubin_app.js index 3f905bd..44f7bea 100644 --- a/src/bilirubin_app.js +++ b/src/bilirubin_app.js @@ -47,6 +47,10 @@ function plotGraphData() { } else if (guideline === 'nice') { chart.data.datasets[0].data = [...Array(14*24).keys()].map((i) => i / 24).map((d) => ({x: d, y: nice_phototherapy_thresh(d, gestation)})); chart.data.datasets[1].data = [...Array(14*24).keys()].map((i) => i / 24).map((d) => ({x: d, y: nice_exchange_thresh(d, gestation)})); + } else if (guideline === 'rwh') { + // NYI + chart.data.datasets[0].data = []; + chart.data.datasets[1].data = []; } else { throw new Error('Unexpected guideline'); } @@ -176,6 +180,10 @@ function updateBilirubin() { if (guideline === 'nice') { [d, result_text, text_colour, background_colour, accent_colour] = describeBilirubin(gestation, new Date(document.getElementById('time_birth').value), new Date(document.getElementById('time_measurement').value), bilirubin); + } else if (guideline === 'rwh') { + // NYI + resultDiv.className = 'hidden'; + return; } else { throw new Error('Unexpected guideline'); } diff --git a/src/index.html b/src/index.html index 24ad3b7..4f88f65 100644 --- a/src/index.html +++ b/src/index.html @@ -33,6 +33,7 @@