From 8b76181b4dcbddab1be998074b620f00b119c1c2 Mon Sep 17 00:00:00 2001 From: inportb Date: Mon, 26 Sep 2022 18:39:07 -0400 Subject: [PATCH] Fix approximate patient lookup --- htdocs/RoutePatientDetail.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/RoutePatientDetail.vue b/htdocs/RoutePatientDetail.vue index 24a9711..857f53b 100644 --- a/htdocs/RoutePatientDetail.vue +++ b/htdocs/RoutePatientDetail.vue @@ -65,7 +65,7 @@ var name = this.$route.query.name.toUpperCase(); var patient = await this.client.ORWPT_LAST5(id); for(var i = 0; i < patient.length; ++i) if(name == patient[i].name) { - this.$router.replace('/patient/' + patient[0].dfn); + this.$router.replace('/patient/' + patient[i].dfn); break; } }