* @author Brady Miller * @copyright Copyright (c) 2008-2015 Rod Roark * @copyright Copyright (c) 2017-2018 Brady Miller * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 */ require_once("../globals.php"); require_once("$srcdir/patient.inc"); require_once("$srcdir/options.inc.php"); use OpenEMR\Common\Csrf\CsrfUtils; use OpenEMR\Core\Header; use OpenEMR\Services\PatientService; if (!empty($_POST)) { if (!CsrfUtils::verifyCsrfToken($_POST["csrf_token_form"])) { CsrfUtils::csrfNotVerified(); } } $form_patient_id = trim($_POST['form_patient_id'] ?? ''); ?> <?php echo xlt('Chart Location Activity'); ?> - " . xlt('Chart ID') . " '" . text($form_patient_id) . "' " . xlt('not found!') . "
 
"; } else { $curr_pid = $ptrow['pid']; } } elseif (!empty($curr_pid)) { $query = "SELECT pid, pubpid, fname, mname, lname FROM patient_data WHERE " . "pid = ?"; $ptrow = sqlQuery($query, array($curr_pid)); $form_patient_id = $ptrow['pubpid']; } if (!empty($ptrow)) { echo '' . xlt('for') . ' '; echo text($ptrow['lname']) . ', ' . text($ptrow['fname']) . ' ' . text($ptrow['mname']) . ' '; echo "(" . text($ptrow['pubpid']) . ")"; echo "\n"; } ?>
: ' />
'1','list_id' => 'chartloc'), $row['ct_location']); } elseif (!empty($row['ct_userid'])) { echo text($row['lname']) . ', ' . text($row['fname']) . ' ' . text($row['mname']); } ?>