Fix handling of null ORWORB FASTUSER meta field
This commit is contained in:
parent
d7d716cc27
commit
83c9f11c73
@ -157,6 +157,7 @@ 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 => {
|
||||
if(row.meta) {
|
||||
var meta = row.meta.split(';');
|
||||
var xqaid = row.meta_xqaid = meta[0];
|
||||
row.meta_duz = meta[1];
|
||||
@ -170,6 +171,7 @@ export const d_parse_notifications_fastuser = data => d_split(data, '^', 'info',
|
||||
row.meta_source = 'TIU';
|
||||
row.meta_ien = xqaid.substring(3); // document IEN (DA)
|
||||
}
|
||||
}
|
||||
return row;
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user