From b7369bc5b336685b3972df8dd90e37e6a8121a77 Mon Sep 17 00:00:00 2001 From: inportb Date: Wed, 9 Aug 2023 23:12:16 -0400 Subject: [PATCH] Consult viewer --- htdocs/App.vue | 3 + htdocs/RoutePatient.vue | 1 + htdocs/RoutePatientConsults.vue | 194 ++++++++++++++++++++++++++++++++ htdocs/vistax.mjs | 3 + 4 files changed, 201 insertions(+) create mode 100644 htdocs/RoutePatientConsults.vue diff --git a/htdocs/App.vue b/htdocs/App.vue index 53a3bff..fb6d667 100644 --- a/htdocs/App.vue +++ b/htdocs/App.vue @@ -48,6 +48,7 @@ import RoutePatientOrders from './RoutePatientOrders.vue'; import RoutePatientReports from './RoutePatientReports.vue'; import RoutePatientDocuments from './RoutePatientDocuments.vue'; + import RoutePatientConsults from './RoutePatientConsults.vue'; import RoutePlanner from './RoutePlanner.vue'; import RouteRecall from './RouteRecall.vue'; import RouteInbox from './RouteInbox.vue'; @@ -97,6 +98,8 @@ { path: 'reports', component: RoutePatientReports }, { path: 'document', component: RoutePatientDocuments }, { path: 'document/:tiu_da', component: RoutePatientDocuments }, + { path: 'consult', component: RoutePatientConsults }, + { path: 'consult/:ien', component: RoutePatientConsults }, ] }, { path: '/planner', component: RoutePlanner }, { path: '/recall', component: RouteRecall }, diff --git a/htdocs/RoutePatient.vue b/htdocs/RoutePatient.vue index c48e583..3078d15 100644 --- a/htdocs/RoutePatient.vue +++ b/htdocs/RoutePatient.vue @@ -60,6 +60,7 @@ { name: 'Orders', href: '/patient/' + this.patient_dfn + '/orders' }, { name: 'Reports', href: '/patient/' + this.patient_dfn + '/reports' }, { name: 'Documents', href: '/patient/' + this.patient_dfn + '/document' }, + { name: 'Consults', href: '/patient/' + this.patient_dfn + '/consult' }, ] } : null; } diff --git a/htdocs/RoutePatientConsults.vue b/htdocs/RoutePatientConsults.vue new file mode 100644 index 0000000..7e8d88a --- /dev/null +++ b/htdocs/RoutePatientConsults.vue @@ -0,0 +1,194 @@ + + + + + diff --git a/htdocs/vistax.mjs b/htdocs/vistax.mjs index f1b6ae6..6f45d73 100644 --- a/htdocs/vistax.mjs +++ b/htdocs/vistax.mjs @@ -336,6 +336,9 @@ export function Client(cid, secret) { this.TIU_DELETE_RECORD = aflow((...args) => this.call({ method: 'TIU_DELETE_RECORD', context: ['OR CPRS GUI CHART'], ttl: 0, stale: false }, ...args), d_log, d_unwrap); this.TIU_SIGN_RECORD = aflow((...args) => this.call({ method: 'TIU_SIGN_RECORD', context: ['OR CPRS GUI CHART'], ttl: 0, stale: false }, ...args), d_log, d_unwrap); + this.ORQQCN_LIST = aflow((...args) => this.call({ method: 'ORQQCN_LIST', context: ['OR CPRS GUI CHART'], ttl: 60, stale: false }, ...args), d_log, d_unwrap, d_parse_array, f_split('^', 'IEN', 'time', 'status', 'orderable', 'type', 'has_children', 'text', 'order_ifn', 'type_abbr')); + this.ORQQCN_DETAIL = aflow((...args) => this.call({ method: 'ORQQCN_DETAIL', context: ['OR CPRS GUI CHART'], ttl: 60, stale: false }, ...args), d_log, d_unwrap, d_parse_text); + this.ORWPCE_NOTEVSTR = aflow((...args) => this.call({ method: 'ORWPCE_NOTEVSTR', context: ['OR CPRS GUI CHART'], ttl: 86400, stale: true }, ...args), d_log, d_unwrap); this.ORWPCE_DELETE = aflow((...args) => this.call({ method: 'ORWPCE_DELETE', context: ['OR CPRS GUI CHART'], ttl: 0, stale: false }, ...args), d_log, d_unwrap);