From 1d687495254ac0e309d969280a6699b93a5eb442 Mon Sep 17 00:00:00 2001 From: inportb Date: Mon, 24 Apr 2023 21:23:35 -0400 Subject: [PATCH] Patient visits page --- htdocs/App.vue | 2 + htdocs/Navbar.vue | 5 +++ htdocs/RoutePatientVisits.vue | 77 +++++++++++++++++++++++++++++++++++ htdocs/ViewVisits.vue | 54 ++++++++++++++++++++++++ htdocs/vistax.mjs | 2 + 5 files changed, 140 insertions(+) create mode 100644 htdocs/RoutePatientVisits.vue create mode 100644 htdocs/ViewVisits.vue diff --git a/htdocs/App.vue b/htdocs/App.vue index 7c3b3bc..ce3aa40 100644 --- a/htdocs/App.vue +++ b/htdocs/App.vue @@ -14,6 +14,7 @@ import RouteSchedule from './RouteSchedule.vue'; import RoutePatientLookup from './RoutePatientLookup.vue'; import RoutePatientDetail from './RoutePatientDetail.vue'; + import RoutePatientVisits from './RoutePatientVisits.vue'; import RouteScheduleOverview from './RouteScheduleOverview.vue'; import RouteRecall from './RouteRecall.vue'; @@ -42,6 +43,7 @@ { path: '/', component: RouteSchedule }, { path: '/patient', component: RoutePatientLookup }, { path: '/patient/:id', component: RoutePatientDetail }, + { path: '/patient/:id/visits', component: RoutePatientVisits }, { path: '/overview', component: RouteScheduleOverview }, { path: '/recall', component: RouteRecall }, ].forEach(route => this.$root.$router.addRoute(route)); diff --git a/htdocs/Navbar.vue b/htdocs/Navbar.vue index 411d78a..0464a0a 100644 --- a/htdocs/Navbar.vue +++ b/htdocs/Navbar.vue @@ -13,6 +13,11 @@ + diff --git a/htdocs/RoutePatientVisits.vue b/htdocs/RoutePatientVisits.vue new file mode 100644 index 0000000..7e5a074 --- /dev/null +++ b/htdocs/RoutePatientVisits.vue @@ -0,0 +1,77 @@ + + + diff --git a/htdocs/ViewVisits.vue b/htdocs/ViewVisits.vue new file mode 100644 index 0000000..f8d3bf4 --- /dev/null +++ b/htdocs/ViewVisits.vue @@ -0,0 +1,54 @@ + + + diff --git a/htdocs/vistax.mjs b/htdocs/vistax.mjs index d6440a5..4957e14 100644 --- a/htdocs/vistax.mjs +++ b/htdocs/vistax.mjs @@ -209,6 +209,8 @@ export function Client(cid, secret) { this.TIU_TEMPLATE_LOCK = unwrapped(logged((...args) => this.callctx(['OR CPRS GUI CHART'], 'TIU_TEMPLATE_LOCK', ...args), 'TIU_TEMPLATE_LOCK')); this.TIU_TEMPLATE_UNLOCK = unwrapped(logged((...args) => this.callctx(['OR CPRS GUI CHART'], 'TIU_TEMPLATE_UNLOCK', ...args), 'TIU_TEMPLATE_UNLOCK')); + this.ORWCV_VST = memoized(caretseparated(unwrapped(logged((...args) => this.callctx(['OR CPRS GUI CHART'], 'ORWCV_VST', ...args), 'ORWCV_VST')), ['apptinfo', 'datetime', 'location', 'status'])); + return this; } Client._registry = {};