From 6c2c649be41ba91362be79ddabeda40f20663cd7 Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Wed, 7 Dec 2022 09:45:59 -0600 Subject: [PATCH] fix med compliance logo routine --- webroot/includes/page-health-meds.tpl.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webroot/includes/page-health-meds.tpl.html b/webroot/includes/page-health-meds.tpl.html index 0522229..41307ef 100644 --- a/webroot/includes/page-health-meds.tpl.html +++ b/webroot/includes/page-health-meds.tpl.html @@ -80,7 +80,7 @@
History
- +
@@ -125,7 +125,7 @@ Edit Direction -
@@ -260,7 +260,7 @@ Manage Medication Log -
@@ -439,7 +439,7 @@ accEl.setAttribute("data-weight", 50) important = !adlib icon.classList.add("trima-procedure-optimal") - } else if (data.dose_offset < -0.2 || dayjs().isAfter(dayjs(data.expected.time).add(1, "day"))) { + } else if (data.dose_offset < -0.2 || dayjs().isBefore(dayjs(data.expected.time).add(1, "day"))) { accEl.setAttribute("data-weight", (prn || adlib) ? 5 : 10) icon.classList.add("trima-procedure-ineligible") } else if (data.dose_offset < 0 || adlib || (prn && data.dose_offset == 0)) {
Action