@@ -310,24 +310,16 @@ export function tooltipText(
310
310
} else {
311
311
// over 42 weeks
312
312
// if no errors, return the ages, measurement and calculations
313
- let correctedPercentageMedianBMI = '' ;
314
- let chronologicalPercentageMedianBMI = '' ;
315
- if ( measurementMethod === 'bmi' ) {
316
- correctedPercentageMedianBMI = `Percentage median BMI: ${ Math . round ( corrected_percentage_median_bmi ) } %` ;
317
- chronologicalPercentageMedianBMI = `Percentage median BMI: ${ Math . round ( chronological_percentage_median_bmi ) } %` ;
318
- returnStringList . push ( correctedPercentageMedianBMI ) ;
319
- returnStringList . push ( chronologicalPercentageMedianBMI ) ;
320
- }
321
313
322
- // sds in square brackets
323
- const sds_string = `[SDS: ${ sds > 0 ? '+' + Math . round ( sds * 1000 ) / 1000 : Math . round ( sds * 1000 ) / 1000 } ]` ;
314
+ const sds_string = `SDS: ${ sds > 0 ? '+' + Math . round ( sds * 1000 ) / 1000 : Math . round ( sds * 1000 ) / 1000 } ` ;
324
315
325
316
if ( age_type === 'corrected_age' && x > 0.0383 ) {
326
317
returnStringList . push ( `Corrected age: ${ calendar_age } on ${ formatted_observation_date } ` ) ;
327
318
returnStringList . push ( `${ comment } ` ) ;
328
319
returnStringList . push ( `${ y } ${ measurementSuffix ( measurementMethod ) } ` ) ;
329
320
returnStringList . push ( `${ clinicianFocus ? sds_string : finalCentile } ` ) ;
330
321
if ( measurementMethod === 'bmi' ) {
322
+ const correctedPercentageMedianBMI = `Percentage median BMI: ${ Math . round ( corrected_percentage_median_bmi ) } %` ;
331
323
returnStringList . push ( `${ correctedPercentageMedianBMI } ` ) ;
332
324
}
333
325
return returnStringList ;
@@ -339,6 +331,7 @@ export function tooltipText(
339
331
returnStringList . push ( `${ y } ${ measurementSuffix ( measurementMethod ) } ` ) ;
340
332
returnStringList . push ( `${ clinicianFocus ? sds_string : finalCentile } ` ) ;
341
333
if ( measurementMethod === 'bmi' ) {
334
+ const chronologicalPercentageMedianBMI = `Percentage median BMI: ${ Math . round ( chronological_percentage_median_bmi ) } %` ;
342
335
returnStringList . push ( `${ chronologicalPercentageMedianBMI } ` ) ;
343
336
}
344
337
return returnStringList ;
0 commit comments