I was curious if you can change the way patients are displayed. Every other modality and workstation we use has the patients listed as last name, first name. Even our RIS is setup that way. It would be a lot easier to find a patient, especially when some modalities don't have seperate field for first and last names. Then they display just the opposite of the other names.
Thanks,
Dustin
Last name, first name for patient names.
It's quite easy to change the display name format.
The reason for using the current "Firstname Lastname" format is because sometimes some modality would input the wrong name information, e.g., instead of setting "John" as the firstname, "Doe" as the lastname, some modalities would set "John Doe" as the lastname. So when displaying information for such images, if we use the 'Lastname, Firstname' syntax, the example above would become:
John Doe,
But if we use the current format, even with the wrong name information, it'll still be displayed as:
John Doe
The reason for using the current "Firstname Lastname" format is because sometimes some modality would input the wrong name information, e.g., instead of setting "John" as the firstname, "Doe" as the lastname, some modalities would set "John Doe" as the lastname. So when displaying information for such images, if we use the 'Lastname, Firstname' syntax, the example above would become:
John Doe,
But if we use the current format, even with the wrong name information, it'll still be displayed as:
John Doe
It's in the script display.php function displayPatients, you can change the following from:
$columns["Patient Name"] = $row["firstname"] . " ";
if ($row["middlename"])
$columns["Patient Name"] .= $row["middlename"] . " ";
$columns["Patient Name"] .= $row["lastname"];
To:
$columns["Patient Name"] = $row["lastname"] . ",";
$columns["Patient Name"] .= $row["firstname"];
if (strlen($row["middlename"]))
$columns["Patient Name"] .= " " . $row["middlename"];
$columns["Patient Name"] = $row["firstname"] . " ";
if ($row["middlename"])
$columns["Patient Name"] .= $row["middlename"] . " ";
$columns["Patient Name"] .= $row["lastname"];
To:
$columns["Patient Name"] = $row["lastname"] . ",";
$columns["Patient Name"] .= $row["firstname"];
if (strlen($row["middlename"]))
$columns["Patient Name"] .= " " . $row["middlename"];