Mercurial > hgweb > health
changeset 1187:b161a0485e7a stable
health : include the patient code in the search criteria
| author | Luis Falcon <falcon@gnu.org> |
|---|---|
| date | Mon, 24 Feb 2014 13:52:29 +0000 |
| parents | f198d935ae95 |
| children | c4a83c58a22b |
| files | tryton/health/health.py |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tryton/health/health.py +++ b/tryton/health/health.py @@ -1248,7 +1248,7 @@ 'get_patient_ssn', searcher='search_patient_ssn') identification_code = fields.Char( - 'ID', readonly=True, + 'Code', readonly=True, help='Patient Identifier provided by the Health Center.Is not the' ' Social Security Number') @@ -1432,7 +1432,7 @@ @classmethod def search_rec_name(cls, name, clause): field = None - for field in ('name', 'lastname', 'ssn'): + for field in ('name', 'lastname', 'ssn', 'identification_code'): patients = cls.search([(field,) + tuple(clause[1:])], limit=1) if patients: break
