Fix handling of null ORWORB FASTUSER meta field
This commit is contained in:
parent
d7d716cc27
commit
83c9f11c73
@ -157,18 +157,20 @@ export const d_parse_orderoptions_meddose = data => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const d_parse_notifications_fastuser = data => d_split(data, '^', 'info', 'patient', 'location', 'urgency', 'time', 'message', 'unk_6', 'meta', 'unk_7', 'unk_8').map(row => {
|
export const d_parse_notifications_fastuser = data => d_split(data, '^', 'info', 'patient', 'location', 'urgency', 'time', 'message', 'unk_6', 'meta', 'unk_7', 'unk_8').map(row => {
|
||||||
var meta = row.meta.split(';');
|
if(row.meta) {
|
||||||
var xqaid = row.meta_xqaid = meta[0];
|
var meta = row.meta.split(';');
|
||||||
row.meta_duz = meta[1];
|
var xqaid = row.meta_xqaid = meta[0];
|
||||||
row.meta_time = +meta[2];
|
row.meta_duz = meta[1];
|
||||||
if(xqaid.startsWith('OR,')) {
|
row.meta_time = +meta[2];
|
||||||
xqaid = xqaid.split(',');
|
if(xqaid.startsWith('OR,')) {
|
||||||
row.meta_source = xqaid[0];
|
xqaid = xqaid.split(',');
|
||||||
row.meta_dfn = xqaid[1];
|
row.meta_source = xqaid[0];
|
||||||
row.meta_ien = xqaid[2]; // file 100.9 IEN
|
row.meta_dfn = xqaid[1];
|
||||||
} else if(xqaid.startsWith('TIU')) {
|
row.meta_ien = xqaid[2]; // file 100.9 IEN
|
||||||
row.meta_source = 'TIU';
|
} else if(xqaid.startsWith('TIU')) {
|
||||||
row.meta_ien = xqaid.substring(3); // document IEN (DA)
|
row.meta_source = 'TIU';
|
||||||
|
row.meta_ien = xqaid.substring(3); // document IEN (DA)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return row;
|
return row;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user