Fix sensitive record indicator inconsistency (always check)

This commit is contained in:
Jiang Yio 2023-05-08 20:03:40 -04:00
parent 4a25b2f823
commit 45dda6f51d

View File

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