From ac02222082ca151c20d5d057da61167e7989c25b Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Fri, 25 Jul 2025 20:39:50 +1000 Subject: [PATCH] Update source statement in footer to match guideline --- src/bilirubin_app.js | 13 +++++++++++++ src/index.html | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/bilirubin_app.js b/src/bilirubin_app.js index 41ad280..c822472 100644 --- a/src/bilirubin_app.js +++ b/src/bilirubin_app.js @@ -36,6 +36,19 @@ function updateExtraQuestions() { } else { document.getElementById('questions_rwh').classList.add('hidden'); } + + // Also update source in footer + if (guideline === 'nice') { + document.getElementById('guideline_source').innerHTML = 'National Institute for Health and Clinical Excellence. Neonatal jaundice treatment threshold graphs. In: Jaundice in newborn babies under 28 days. London: National Institute for Health and Clinical Excellence; 2023. (NICE clinical guidelines; CG98). https://www.nice.org.uk/guidance/cg98'; + } else if (guideline === 'rwh') { + if (gestation >= 35) { + document.getElementById('guideline_source').innerHTML = 'Royal Women\'s Hospital. Jaundice (hyperbilirubinaemia) in newborn infants ≥ 35 weeks gestation: guideline. Version 2.0. Melbourne: Royal Women\'s Hospital; 2025.'; + } else { + document.getElementById('guideline_source').innerHTML = 'Royal Women\'s Hospital. Jaundice (hyperbilirubinaemia) in preterm infants < 35 weeks gestation: guideline. Version 2.0. Melbourne: Royal Women\'s Hospital; 2025.'; + } + } else { + throw new Error('Unexpected guideline'); + } } updateExtraQuestions(); diff --git a/src/index.html b/src/index.html index a6f3c1e..cfa67f8 100644 --- a/src/index.html +++ b/src/index.html @@ -112,7 +112,7 @@
-

Treatment thresholds as per: National Institute for Health and Clinical Excellence. Neonatal jaundice treatment threshold graphs. In: Jaundice in newborn babies under 28 days. London: National Institute for Health and Clinical Excellence; 2023. (NICE clinical guidelines; CG98). https://www.nice.org.uk/guidance/cg98

+

Treatment thresholds as per: National Institute for Health and Clinical Excellence. Neonatal jaundice treatment threshold graphs. In: Jaundice in newborn babies under 28 days. London: National Institute for Health and Clinical Excellence; 2023. (NICE clinical guidelines; CG98). https://www.nice.org.uk/guidance/cg98

This tool is made available in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Information provided in this tool is intended for reference by medical professionals. Nothing in this tool is intended to constitute medical advice.

Lee Yingtong Li, 2024–2025. Source code available at https://yingtongli.me/git/bilirubin-calculator.