Construct a single chart code from user input
create_chartcode(
chartgrp = c("nl2010", "preterm", "who", "gsed1", "gsed1pt"),
etn = c("nl", "tu", "ma", "hs", "ds"),
sex = c("male", "female"),
agegrp = c("0-15m", "0-4y", "1-21y", "0-21y", "0-4ya"),
side = c("front", "back", "-hdc", "both", "hgt", "wgt", "hdc", "bmi", "wfh", "dsc"),
week = 40,
language = c("dutch", "english"),
version = ""
)
The chart group: 'nl2010'
, 'preterm'
, 'who'
,
'gsed1'
or 'gsed1pt'
.
Either 'nl'
, 'tu'
, 'ma'
, 'hs'
or 'ds'
.
May also be abbreviates to a single letter.
Either 'male'
or 'female'
Either '0-15m'
, '0-4y'
, '1-21y'
, '0-21y'
or '0-4ya'
. Age group '0-4ya'
provides the 0-4 chart with weight
for age (design E).
Either 'front'
, 'back'
, '-hdc'
, 'both'
,
'hgt'
, 'wgt'
, 'hdc'
, 'bmi'
, 'wfh'
or
'dsc'
.
A number between 25 and 36 gestational age (preterm) or 40 for term (default).
Language: 'dutch'
or 'english'
Version number. Default is to have no version number.