Calendar layout minor change

juggernautsei wrote on Saturday, September 11, 2010:

Hi, I have a client that would like to see the words “In” and “Out” next to the patient’s name. How can I add enough space to show more than just the first letters. I have played and messed with the ajax_template.html file with no luck of adding just two spaces. I am thinking to make this change in the code that is around this area:

            else {
                // some sort of patient appointment
                $divTitle .= "\r\n “.htmlspecialchars($fname, ENT_QUOTES).” ".htmlspecialchars($lname, ENT_QUOTES);
                $content .= “<span class=‘appointment’>”;
                $content .= $dispstarth . ‘:’ . $startm;
                if ($event == 1) $content .= “<img src=’$TPL_IMAGE_PATH/repeating8.png’ border=‘0’ style=‘margin:0px 2px 0px 2px;’ title=‘Repeating event’ alt=‘Repeating event’>”;
                $content .= htmlspecialchars($event);
                //$content .= ‘&nbsp;’.htmlspecialchars($event);
                if ($patientid) {
                    $link_title = xl(‘Age’) . ": " . $patient_age . “\n” . xl(‘DOB’) . ": " . $patient_dob . “\n”;
                    $link_title .= “(” . xl(‘Click to view’) . “)”;
                    $content .= “<a href=‘javascript:goPid($patientid)’ title=’$link_title’>”;
                    $content .= “<img src=’$TPL_IMAGE_PATH/user-green.gif’ border=‘0’ title=’$link_title’ alt=‘View Patient’ />”;
                    if ($catid == 1) $content .= “<strike>”;
                    $content .= htmlspecialchars($lname);
                    if ($GLOBALS != 1) {
                        $content .= “,” . htmlspecialchars($fname);
                        if ($event && $GLOBALS >= 3) {
                            $content .= “(” . $event;
                            if ($event && $GLOBALS >= 4)
                            $content .= “: <font color=‘green’>” . htmlspecialchars(trim($event)) . “</font>”;
                            $content .= “)”;
                        }
                    }
                    if ($catid == 1) $content .= “</strike>”;
                    $content .= “</a>”;
                }
                else {
                    // no patient id, just output the category name
                    $content .= $catname;
                }
                $content .= “</span>”;
            }

            $divTitle .= “\n(” . xl(‘double click to edit’) . “)”;

Anybody know where I can make the change in the code to add three spaces between the time and the patient’s name?

Thanks!

visolveemr wrote on Monday, September 13, 2010:

Hi

For OpenEMR v4.0.0-dev, go to Administration → Lists → Appointment Statuses and add the status(IN/OUT) in the list so that you can choose the status for patient while setting up the appointment.

For OpenEMR v3.2.0, add the statuses in interface/main/calendar/add_edit_event.php file(line 779)

Hope this is what you are expecting.

Thanks
VicarePlus Team
services@vicareplus.com

juggernautsei wrote on Monday, September 13, 2010:

Not quiet what I was looking for. That is why I included the code. I have edited the file that your talking about. I have changed the arrive from @ to “In” but on the calender all we can see is the I or O but not the whole word. So, if you could tell me how to get the whole word on the screen that would be great.

It use to do that until I applied this last set of updates 6.0.

Thank you,

visolveemr wrote on Tuesday, September 14, 2010:

Hi

Since the size of the ‘pc_apptstatus’ in ‘openemr_postcalendar_events’ table is set to one character, so only one character is showed up in the calendar.

Please increase the size of the ‘pc_apptstatus’ in ‘openemr_postcalendar_events’ table and you can see the changes in the calendar.

Thanks
VicarePlus Team
services@vicareplus.com