Disambiguate lab specimen sources
This commit is contained in:
parent
01644ef384
commit
0712eccf15
@ -61,9 +61,10 @@
|
|||||||
|
|
||||||
function labs_normalize(rs) {
|
function labs_normalize(rs) {
|
||||||
return rs.map(function(x) {
|
return rs.map(function(x) {
|
||||||
|
var specimen = x.specimen;
|
||||||
return {
|
return {
|
||||||
time: x.time_collected,
|
time: x.time_collected,
|
||||||
name: x.name,
|
name: (specimen == 'BLOOD') || (specimen == 'SERUM') || (specimen == 'PLASMA') ? x.name : (specimen == 'RANDOM URINE') ? x.name + ':UR' : specimen ? x.name + ':' + specimen.charAt(0) : x.name,
|
||||||
unit: x.unit,
|
unit: x.unit,
|
||||||
range: x.range,
|
range: x.range,
|
||||||
value: x.value,
|
value: x.value,
|
||||||
|
Loading…
Reference in New Issue
Block a user