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; } }