Hoist lymphocyte count from manual differential
This commit is contained in:
parent
17cb40f46a
commit
a01fa834ac
@ -87,7 +87,8 @@ function lab_parse1default(data) {
|
||||
results[(x = results[i]).name] = x;
|
||||
if(x.comment) x.comment = x.comment.join('\n');
|
||||
}
|
||||
if((res.accession.startsWith('HE ')) && ((results.hasOwnProperty('SEGS')) || (results.hasOwnProperty('BANDS')))) {
|
||||
if(res.accession.startsWith('HE ')) {
|
||||
if((results.hasOwnProperty('SEGS')) || (results.hasOwnProperty('BANDS'))) {
|
||||
results.push(results['NEUTROPHIL%'] = {
|
||||
name: 'NEUTROPHIL%', unit: '%', range: '42.2 - 75.2',
|
||||
value: x = (results.hasOwnProperty('SEGS') ? +results.SEGS.value : 0) + (results.hasOwnProperty('BANDS') ? +results.BANDS.value : 0),
|
||||
@ -99,6 +100,19 @@ function lab_parse1default(data) {
|
||||
flag: (x < 1.4 ? 'L' : x > 6.5 ? 'H' : undefined)
|
||||
});
|
||||
}
|
||||
if((results.hasOwnProperty('LYMPHS')) || (results.hasOwnProperty('ATYPICAL LYMPHOCYTES'))) {
|
||||
results.push(results['LYMPHOCYTE%'] = {
|
||||
name: 'LYMPHOCYTE%', unit: '%', range: '15.0 - 41.0',
|
||||
value: x = (results.hasOwnProperty('LYMPHS') ? +results.LYMPHS.value : 0) + (results.hasOwnProperty('ATYPICAL LYMPHOCYTES') ? +results['ATYPICAL LYMPHOCYTES'].value : 0),
|
||||
flag: (x < 15 ? 'L' : x > 41 ? 'H' : undefined)
|
||||
});
|
||||
results.push(results['LYMPHOCYTE#'] = {
|
||||
name: 'LYMPHOCYTE#', unit: 'K/cmm', range: '1.2 - 3.4',
|
||||
value: +(x = 0.01*x*results.WBC.value).toFixed(3),
|
||||
flag: (x < 1.2 ? 'L' : x > 3.4 ? 'H' : undefined)
|
||||
});
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user