[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnumed-devel] Unintended GNUmed patient search result
From: |
Busser, Jim |
Subject: |
[Gnumed-devel] Unintended GNUmed patient search result |
Date: |
Fri, 22 Feb 2013 21:56:46 +0000 |
I was searching for a patient
last name = Kan
first names = D
so I searched
Kan D
which did not find the above patient, which is ok, because it turns out I had
not yet created that patient.
However, GNUmed did "find" (and auto-activated) a patient with
last name = Andersson
first names = Steve K
see log output below. I gather the above patient was found because of a match
of the search string with spaces removed
kand
inside the concatenated name parts
stevekanderson
which is not a request to change it. Mainly it is an observation that praxis
recption and doctors may end up innocently activating patients who were the
unintended result of a search. I suppose the only way to change this would be
to present a dialog even for single matches, which some people may not desire.
-- Jim
2013-02-22 13:39:24 DEBUG gm.person
(/Users/djb/Downloads/gnumed-client.1.2.5/Gnumed/business/gmPersonSearch.py::_generate_queries_de()
#378): [kan d]: not a search term with a "suggestive" structure
2013-02-22 13:39:24 DEBUG gm.person
(/Users/djb/Downloads/gnumed-client.1.2.5/Gnumed/business/gmPersonSearch.py::_normalize_soundalikes()
#151): [kan d] -> [kan d]
2013-02-22 13:39:24 DEBUG gm.person
(/Users/djb/Downloads/gnumed-client.1.2.5/Gnumed/business/gmPersonSearch.py::get_identities()
#81): running {'cmd': u'SELECT DISTINCT ON (id_identity) vbp.*, %s::text AS
match_type FROM dem.v_basic_person vbp, dem.names n WHERE vbp.pk_identity =
n.id_identity and n.firstnames ~ %s AND n.lastnames ~ %s', 'args': ['name:
first-last', u'^Kan', u'^D']}
2013-02-22 13:39:24 DEBUG gm.person
(/Users/djb/Downloads/gnumed-client.1.2.5/Gnumed/business/gmPersonSearch.py::get_identities()
#81): running {'cmd': u'SELECT DISTINCT ON (id_identity) vbp.*, %s::text AS
match_type FROM dem.v_basic_person vbp, dem.names n WHERE vbp.pk_identity =
n.id_identity and lower(n.firstnames) ~* lower(%s) AND lower(n.lastnames) ~*
lower(%s)', 'args': ['name: first-last', u'^kan', u'^d']}
2013-02-22 13:39:24 DEBUG gm.person
(/Users/djb/Downloads/gnumed-client.1.2.5/Gnumed/business/gmPersonSearch.py::get_identities()
#81): running {'cmd': u'SELECT DISTINCT ON (id_identity) vbp.*, %s::text AS
match_type FROM dem.v_basic_person vbp, dem.names n WHERE vbp.pk_identity =
n.id_identity and n.firstnames ~ %s AND n.lastnames ~ %s', 'args': ['name:
last-first', u'^D', u'^Kan']}
2013-02-22 13:39:24 DEBUG gm.person
(/Users/djb/Downloads/gnumed-client.1.2.5/Gnumed/business/gmPersonSearch.py::get_identities()
#81): running {'cmd': u'SELECT DISTINCT ON (id_identity) vbp.*, %s::text AS
match_type FROM dem.v_basic_person vbp, dem.names n WHERE vbp.pk_identity =
n.id_identity and lower(n.firstnames) ~* lower(%s) AND lower(n.lastnames) ~*
lower(%s)', 'args': ['name: last-first', u'^d', u'^kan']}
2013-02-22 13:39:24 DEBUG gm.person
(/Users/djb/Downloads/gnumed-client.1.2.5/Gnumed/business/gmPersonSearch.py::get_identities()
#81): running {'cmd': u'SELECT DISTINCT ON (id_identity) vbp.*, %s::text AS
match_type FROM dem.v_basic_person vbp, dem.names n WHERE vbp.pk_identity =
n.id_identity and lower(n.firstnames || n.lastnames) ~* lower(%s) AND
lower(n.firstnames || n.lastnames) ~* lower(%s)', 'args': ['name', u'kan',
u'd']} 2013-02-22 13:39:24 INFO gm.person
(/Users/djb/Downloads/gnumed-client.1.2.5/Gnumed/wxpython/gmPatSearchWidgets.py::_on_enter()
#847): 1 matching person(s) found
- [Gnumed-devel] Unintended GNUmed patient search result,
Busser, Jim <=