Fix handling of null ORWORB FASTUSER meta field

This commit is contained in:
Jiang Yio 2023-08-09 23:37:14 -04:00
parent d7d716cc27
commit 83c9f11c73

View File

@ -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;
});