Commit 8283917b authored by Ryan Herbert's avatar Ryan Herbert

models/patient.py anonimity in autocomplete.

If the user doesn't have permission to view real patient info, it will
be displayed as the anonimised string.

See #2735
parent f4ed419a
......@@ -36,7 +36,7 @@ class Patient(SampleSet):
return db(db.patient.sample_set_id == sample_set_id).select()[0]
def get_id_string(self, data):
name = "%s %s" % (data.first_name, data.last_name)
name = self.get_name(data)
birth = "[%s]" % str(data.birth)
id = "(%d)" % data.id
return "%s %s %s" % (birth, name, id)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment