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() {