Fix approximate patient lookup

This commit is contained in:
Jiang Yio 2022-09-26 18:39:07 -04:00
parent 7819e531e3
commit 8b76181b4d

View File

@ -65,7 +65,7 @@
var name = this.$route.query.name.toUpperCase(); var name = this.$route.query.name.toUpperCase();
var patient = await this.client.ORWPT_LAST5(id); var patient = await this.client.ORWPT_LAST5(id);
for(var i = 0; i < patient.length; ++i) if(name == patient[i].name) { 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; break;
} }
} }