Fix flowsheet missing unflagged lab values
This commit is contained in:
parent
7be5ebcdaa
commit
38e34e099a
@ -19,7 +19,7 @@
|
||||
}
|
||||
|
||||
function components(reports) {
|
||||
const res = [], re_lab_test = /^(?<name>\w[^\r\n]{26})(?<value>[^\r\n]{8}) (?:(?<flag>\w[ \*])|[ ]) (?<unit>[^\r\n]{10}) (?<range>[^\r\n]{16}) \[(?<site>\d+)\]$/gm;
|
||||
const res = [], re_lab_test = /^(?<name>\w[^\r\n]{26})(?<value>[^\r\n]{8}) (?:(?<flag>\w[ \*])| ) (?<unit>[^\r\n]{10}) (?<range>[^\r\n]{16}) \[(?<site>\d+)\]$/gm;
|
||||
reports.forEach(function(x) {
|
||||
let datestr = datetime_datestr(x._ts), timestr = datetime_timestr(x._ts), m, r;
|
||||
while(m = re_lab_test.exec(x.body)) {
|
||||
|
Loading…
Reference in New Issue
Block a user