From 28644a5a836b076e69841369b636717be2476386 Mon Sep 17 00:00:00 2001 From: eatyourpeas Date: Sun, 27 Oct 2024 14:46:37 +0000 Subject: [PATCH] patch. fix cdc reference text as per SigmaMD request --- package.json | 2 +- src/functions/referenceText.ts | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index ca1d2be..6b4526f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rcpch/digital-growth-charts-react-component-library", - "version": "7.1.4", + "version": "7.1.5", "description": "A React component library for the RCPCH digital growth charts using Rollup, TypeScript and Styled-Components", "main": "build/index.js", "module": "build/esm.index.js", diff --git a/src/functions/referenceText.ts b/src/functions/referenceText.ts index 1350aaa..761ea84 100644 --- a/src/functions/referenceText.ts +++ b/src/functions/referenceText.ts @@ -9,9 +9,9 @@ export const referenceText = (reference: 'uk-who' | 'trisomy-21' | 'turner' | 'c 'Styles ME, Cole TJ, Dennis J, Preece MA. New cross sectional stature, weight and head circumference references for Down’s syndrome in the UK and Republic of Ireland. Arch Dis Child 2002;87:104-8. BMI centiles added 11/11/2013'; const turnerSyndrome = 'UK Turner reference data, 1985. Lyon, Preece and Grant (1985).'; const cdcText = - ' Developed by the National Center for Health Statistics in collaboration with the National Center for Chronic Disease Prevention and Health Promotion http://www.cdc.gov/growthcharts (2000)'; - const trisomy21AAP = 'American Academy of Pediatrics (AAP) Trisomy 21 reference. Zemel BS, Pipan M, Stallings VA, Hall W, Schgadt K, Freedman DS, Thorpe P. Growth Charts for Children with Down Syndrome in the U.S. Pediatrics, 2015' - + 'Published by the Centers for Disease Control and Prevention, November 1, 2009. Includes WHO Child Growth Standards. (https://www.who.int/childgrowth/en/)'; + const trisomy21AAP = + 'American Academy of Pediatrics (AAP) Trisomy 21 reference. Zemel BS, Pipan M, Stallings VA, Hall W, Schgadt K, Freedman DS, Thorpe P. Growth Charts for Children with Down Syndrome in the U.S. Pediatrics, 2015'; if (reference === 'trisomy-21') return trisomy; else if (reference === 'turner') return turnerSyndrome; @@ -21,6 +21,5 @@ export const referenceText = (reference: 'uk-who' | 'trisomy-21' | 'turner' | 'c return cdcText; } else if (reference === 'trisomy-21-aap') { return trisomy21AAP; - } - else throw new Error('No reference supplied'); + } else throw new Error('No reference supplied'); };