From d3673fc8266f9e77be022f2a802fc78e2e693dbb Mon Sep 17 00:00:00 2001 From: inportb Date: Tue, 16 May 2023 23:25:52 -0400 Subject: [PATCH] Patient lookup query length minimum = 3 --- htdocs/ViewPatientLookup.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/ViewPatientLookup.vue b/htdocs/ViewPatientLookup.vue index bc7e919..85cf4be 100644 --- a/htdocs/ViewPatientLookup.vue +++ b/htdocs/ViewPatientLookup.vue @@ -48,7 +48,7 @@ created() { this.query_sync = debounce(async function(value) { this.query_view = value = value.replace(/^\s+|\s+$/g, '').replace(/\s+/g, ' '); - this.resultset = value ? (await this.client.ORWPT16_LOOKUP(value)) : []; + this.resultset = (value) && (value.length >= 3) ? (await this.client.ORWPT16_LOOKUP(value)) : []; }, 500); }, async mounted() {