From 45dda6f51da9908ac08f803a5a058fa1aa655a6f Mon Sep 17 00:00:00 2001 From: inportb Date: Mon, 8 May 2023 20:03:40 -0400 Subject: [PATCH] Fix sensitive record indicator inconsistency (always check) --- htdocs/RoutePatient.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/RoutePatient.vue b/htdocs/RoutePatient.vue index 77c197c..fe93fec 100644 --- a/htdocs/RoutePatient.vue +++ b/htdocs/RoutePatient.vue @@ -46,8 +46,8 @@ strptime_vista, async loadinfo(dfn, viewsensitive) { this.patient_dfn = dfn; - this.sensitive = viewsensitive ? false : await this.client.ORWPT_SELCHK(dfn); - this.patient_info = this.sensitive ? null : await this.client.ORWPT16_ID_INFO(dfn); + this.sensitive = await this.client.ORWPT_SELCHK(dfn); + this.patient_info = (this.sensitive) && (!viewsensitive) ? null : await this.client.ORWPT16_ID_INFO(dfn); } }, async mounted() {