I am unsuccessful in creating a validation condition for child anthropometry (weight-for-age) using the Z-score functions, I tried with ch_age s a double or a long integer, but I get errors in both cases.
Try 1:
ch_age (var type: double) calculated from DOB using CenturyMonthCode(date_month,date_year)
ch_sex (var type categorical:single select; 1=Boy; 2=Girl)
ch_weight: numeric (incl decimals)
Validation:
ZScore.Wfa(ch_age,ch_sex==1,ch_weigth).InRange(-5,5)
Error: Validation condition has a syntax error: Argument 1: cannot convert ‘double?’ to ‘long?’
**Try 2 (changed ch_age var from double to long integer)
ch_age (var type: long integer) calculated from DOB using CenturyMonthCode(date_month,date_year)
ch_sex (var type categorical:single select; 1=Boy; 2=Girl)
ch_weight: numeric (incl decimals)
Validation:
ZScore.Wfa(ch_age,ch_sex==1,ch_weigth).InRange(-5,5)
Error: Validation condition has a syntax error: ‘double’ does not contain a definition for ‘InRange’ and the best extension method overload ‘Extensions.InRange(long?, long?, long?)’ requires a receiver of type ‘long’