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