bugGNU Health - Bugs: bug #35462, Name and Lastname Confusion


You are not allowed to post comments on this tracker with your current authentication level.

bug #35462: Name and Lastname Confusion

Submitted by:  Christoph H. Larsen <cd_larsen>
Submitted on:  Mon 06 Feb 2012 05:57:00 PM UTC  
Category: FunctionalitySeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Luis Falcon <meanmicio>
Open/Closed: ClosedRelease: None
Module: health

Mon 27 Apr 2015 04:19:04 AM UTC, comment #5:

I'll summarize.

Employees: dispays rec_name (lastname, first) or just first name. Seems to be first name ordering.

Patients: displays last name and rec_name (last, first). Redundant. Ordering by first name on column. Problem.

Prescriptions seems to be ok, from what I can see. Correct rec_names. You can search by PUID, etc.

Fix: Hide the lastname field (tree_invisible="1") on the Patients view which doesn't show the column, but allows a filter on Lastname: <search_term>. Order people by lastname fixed by adding cls._order_name = 'lastname' on party.party model.

Hopefully this fix does what seems intuitive to the user when sorting by names...and doesn't break anything downstream.

Chris Zimmerman <teffalump>
Project Member
Wed 07 Mar 2012 05:33:29 AM UTC, comment #4:

Hi Chris

In prescription, what you get is the prescribing doctor. For security reasons, this is a read-only field that shows the UID of the doctor that logs into the system.

In the other fields, the doctor name is in the form of "Lastname, Firstname".


Luis Falcon <meanmicio>
Project AdministratorIn charge of this item.
Tue 06 Mar 2012 07:03:33 PM UTC, comment #3:

Allow me to add in further errors along the same line:
In "Prescriptions", the attending doctor appears only with his first names, if I split up his name as intended by GNUHealth between first name(s) [gonig into Name], and surname [going into Last name].
So, the best move, for now, might still be to ignore the name field altogether?

Christoph H. Larsen <cd_larsen>
Mon 20 Feb 2012 05:55:08 PM UTC, comment #2:

Dear Luis,
The issue has, alas, been only partially resolved. Please note the attached screenshots:
If I input given names into the field "Name" and the surname into the field "Last name", I get the following:
CORRECT: Parties;
CORRECT: Users (well, they are entered separately, so this is for completeness, only);
INCORRECT are: Employees, with only their given names listed;
CONFUSINGLY LISTED are: Patients, as their surnames are repeated. Instead any element of the patient name can be searched using "%[string".
Thanks a lot, Chris

(file #25090, file #25091, file #25092, file #25093)

Christoph H. Larsen <cd_larsen>
Tue 07 Feb 2012 01:17:06 AM UTC, comment #1:

Hi Chris

Today the patient tree shows the two fields, "Name" and "Lastname" just as you fill them in in the party form.

In the Patient tree, I have created a way to display the first and lastname into the patient field (the one we retrieve from the party). I put it in the format "Lastname, Firstname"
Notice that there is no Lastname field in the form, since it's retrieved in the Many2One main patient field.

I added the Lastname for search and sorting purposes.


Luis Falcon <meanmicio>
Project AdministratorIn charge of this item.
Mon 06 Feb 2012 05:57:00 PM UTC, original submission:

Dear All,
Please look at the attached screen shots: Even in the new version, entering given names into the "Name" field, and the family name into the "Last name" field creates incompete listings in "Party", and pleonasm in "Patients" listings.
Or ma I missing something?
Thanks a lot!

Christoph H. Larsen <cd_larsen>



Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by teffalump (Posted a comment)
  • -unavailable- added by meanmicio (Posted a comment)
  • -unavailable- added by cd_larsen (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 11 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 27 Apr 2015 04:19:04 AM UTCteffalumpStatusNeed Info=>Fixed
    Mon 20 Feb 2012 05:55:08 PM UTCcd_larsenAttached File-=>Added CORRECT LISTING: Screenshot-Tryton-Parties.png, #25090
      Attached File-=>Added CORRECT LISTING: Screenshot-Tryton-Users.png, #25091
      Attached File-=>Added INCORRECT LISTING: Screenshot-Tryton-Employees.png, #25092
      Attached File-=>Added CONFUSING LISTING: Screenshot-Tryton-Patients.png, #25093
    Tue 07 Feb 2012 01:17:06 AM UTCmeanmicioStatusNone=>Need Info
      Assigned toNone=>meanmicio
    Mon 06 Feb 2012 05:57:00 PM UTCcd_larsenAttached File-=>Added Screenshot - Parties.png, #24997
      Attached File-=>Added Screenshot - Patients.png, #24998

    Back to the top

    Powered by Savane 3.1-cleanup1