LogView bad work

(Oscar Román) #1

/interface/logview/logview.php? on Open EMR 5.0.1 not filtering data by patient ID, actually I find an appt history, becouse it is deletted…I don’t found the Insert Query for this appt

(Sherwin Gaddis) #2

to find the insert you have to search the comments column with something like a wildcard
select comments from log where comments LIKE ‘%openemr_postcalendar%’ AND pid = ?

(Stephen Waite) #3

this too seems like another log issue, Appt delete for audit, since it sounds like the patient_id field is not populated

(ViSolve) #4

Can you try by including scheduling event in the below file?
File: library/log.inc

/* If the event is a patient-record, then note the patient id */
$pid = 0;
if ($event == “patient-record” || $event == “scheduling”) {
if (array_key_exists(‘pid’, $_SESSION) && $_SESSION[‘pid’] != ‘’) {
$pid = $_SESSION[‘pid’];