Fix approximate patient lookup
This commit is contained in:
parent
7819e531e3
commit
8b76181b4d
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user