Skip to content

Commit

Permalink
patch. fix cdc reference text as per SigmaMD request
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourpeas committed Oct 27, 2024
1 parent 01c9a7e commit 28644a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
9 changes: 4 additions & 5 deletions src/functions/referenceText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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');
};

0 comments on commit 28644a5

Please sign in to comment.