* INSERT INTO list_options VALUES ('lists','chartloc','Chart Storage Locations',51,0,0); * * * @package OpenEMR * @link http://www.open-emr.org * @author Rod Roark * @author Brady Miller * @author Roberto Vasquez * @Copyright (C) 2008-2012 Rod Roark * @Copyright (C) 2011-2018 Brady Miller * @Copyright (C) 2017 Roberto Vasquez */ require_once("../interface/globals.php"); require_once("$srcdir/options.inc.php"); use OpenEMR\Common\Csrf\CsrfUtils; use OpenEMR\Core\Header; use OpenEMR\Services\UserService; $form_newid = isset($_POST['form_newid' ]) ? trim($_POST['form_newid' ]) : ''; $form_curpid = isset($_POST['form_curpid' ]) ? trim($_POST['form_curpid' ]) : ''; $form_curid = isset($_POST['form_curid' ]) ? trim($_POST['form_curid' ]) : ''; $form_newloc = isset($_POST['form_newloc' ]) ? trim($_POST['form_newloc' ]) : ''; $form_newuser = isset($_POST['form_newuser']) ? trim($_POST['form_newuser']) : ''; if ($form_newuser) { $form_newloc = ''; } else { $form_newuser = 0; } ?> <?php echo xlt('Chart Tracker'); ?>

" . xlt('Save Successful for chart ID') . " " . "'" . text($form_curid) . "'.
"; } $row = array(); if ($form_newid) { if (!CsrfUtils::verifyCsrfToken($_POST["csrf_token_form"])) { CsrfUtils::csrfNotVerified(); } // Find out where the chart is now. $query = "SELECT pd.pid, pd.pubpid, pd.fname, pd.mname, pd.lname, " . "pd.ss, pd.DOB, ct.ct_userid, ct.ct_location, ct.ct_when " . "FROM patient_data AS pd " . "LEFT OUTER JOIN chart_tracker AS ct ON ct.ct_pid = pd.pid " . "WHERE pd.pubpid = ? " . "ORDER BY pd.pid ASC, ct.ct_when DESC LIMIT 1"; $row = sqlQuery($query, array($form_newid)); if (empty($row)) { echo "
" . xlt('Chart ID') . " " . "'" . text($form_newid) . "' " . xlt('not found') . "!
"; } } ?> getUser($ct_userid); $current_location = text($user['lname'] . ", " . $user['fname'] . " " . $user['mname'] . " " . oeFormatDateTime($row['ct_when'], "global", true)); } elseif ($ct_location) { $current_location = generate_display_field(array('data_type' => '1','list_id' => 'chartloc'), $ct_location); } ?>

' /> ' />

1,'field_id' => 'newloc','list_id' => 'chartloc','empty_title' => ''), ''); ?>
' />