From 4196581a953f5001a36d46cb3fc8ddec84910bc7 Mon Sep 17 00:00:00 2001 From: inportb Date: Thu, 22 Sep 2022 22:06:38 -0400 Subject: [PATCH] Bugfix --- htdocs/RoutePatientDetail.vue | 2 +- htdocs/reportparser.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/RoutePatientDetail.vue b/htdocs/RoutePatientDetail.vue index 1124731..0cca472 100644 --- a/htdocs/RoutePatientDetail.vue +++ b/htdocs/RoutePatientDetail.vue @@ -14,7 +14,7 @@
- Vitals + Data
diff --git a/htdocs/reportparser.mjs b/htdocs/reportparser.mjs index 3a4d661..20eef6b 100644 --- a/htdocs/reportparser.mjs +++ b/htdocs/reportparser.mjs @@ -134,7 +134,7 @@ export function measurement_parse(data) { res.datetime = new Date(row.substring(idx + 1, idx = row.indexOf(' ', idx))); res.name = row.substring(idx + 3, idx = row.indexOf(': ', idx)); value = row.substring(idx + 4, idx = row.indexOf(' _', idx)); - res.user = row.substring(idx + 3); + res.user = row.substring(idx + 2); m = value.match(/^(?:(.*?)(?: (\S+))?)(\*)?(?: \((?:(.*?)(?: (\S+))?)\))?\s*$/); res.value = m[4] ? m[4] : m[1]; res.unit = m[4] ? m[5] : m[2];