From baa810316762b8f2d8aa8d016ef76072ff39138e Mon Sep 17 00:00:00 2001 From: inportb Date: Wed, 24 May 2023 22:05:03 -0400 Subject: [PATCH] Report loader abstraction --- htdocs/RoutePatientReports.vue | 233 +++++++++++++++++++++++++-------- htdocs/vistax.mjs | 1 + 2 files changed, 183 insertions(+), 51 deletions(-) diff --git a/htdocs/RoutePatientReports.vue b/htdocs/RoutePatientReports.vue index fcfc639..7eb1452 100644 --- a/htdocs/RoutePatientReports.vue +++ b/htdocs/RoutePatientReports.vue @@ -15,17 +15,17 @@ - + -
+
record{{resultset.length == 1 ? '' : 's'}}
  • {{datestring(item.time)}} {{timestring(item.time)}}{{title}}
  • -
  • +
@@ -77,8 +77,8 @@ color: #fff; background-color: #0d6efd; } - li.bottom { - padding: 0; + li.bottom button { + width: 100%; } span.badge.emblem:empty { display: inline-block; @@ -159,7 +159,7 @@ diff --git a/htdocs/vistax.mjs b/htdocs/vistax.mjs index 59db99c..01edd3d 100644 --- a/htdocs/vistax.mjs +++ b/htdocs/vistax.mjs @@ -292,6 +292,7 @@ export function Client(cid, secret) { this.ORWLRR_INTERIM_RESULTS = async (...args) => lab_reparse_results(await this.ORWLRR_INTERIM(...args)); this.ORWRP_REPORT_TEXT = aflow((...args) => this.call({ method: 'ORWRP_REPORT_TEXT', context: ['OR CPRS GUI CHART'], ttl: 60, stale: false }, ...args), d_log, d_unwrap, d_parse_array, d_parse_multireport); + this.ORWRP_REPORT_TEXT_LONGCACHE = aflow((...args) => this.call({ method: 'ORWRP_REPORT_TEXT', context: ['OR CPRS GUI CHART'], ttl: 86400, stale: true }, ...args), d_log, d_unwrap, d_parse_array, d_parse_multireport); this.ORWORDG_ALLTREE = memoized(aflow(() => this.callctx(['OR CPRS GUI CHART'], 'ORWORDG_ALLTREE'), d_log, d_unwrap, f_split('^', 'ien', 'name', 'parent', 'has_children'))); this.ORWORDG_REVSTS = memoized(aflow(() => this.callctx(['OR CPRS GUI CHART'], 'ORWORDG_REVSTS'), d_log, d_unwrap, f_split('^', 'ien', 'name', 'parent', 'has_children')));