?> </td> <?php } ?> </tr> <?php #define variables, future enhancement allow changing the to_date and from_date #to allow picking a date to review $appointments = array(); $from_date = date("Y-m-d"); $to_date = date("Y-m-d"); $datetime = date("Y-m-d H:i:s"); # go get the information and process it $appointments = fetch_Patient_Tracker_Events($from_date, $to_date); $appointments = sortAppointments($appointments, 'time'); foreach ($appointments as $appointment) { # Collect appt date and set up squashed date for use below $date_appt = $appointment['pc_eventDate']; $date_squash = str_replace("-", "", $date_appt); # Collect variables and do some processing $docname = $appointment['ulname'] . ', ' . $appointment['ufname'] . ' ' . $appointment['umname']; if (strlen($docname) <= 3) { continue; } $ptname = $appointment['lname'] . ', ' . $appointment['fname'] . ' ' . $appointment['mname']; $appt_enc = $appointment['encounter']; $appt_eid = !empty($appointment['eid']) ? $appointment['eid'] : $appointment['pc_eid']; $appt_pid = !empty($appointment['pid']) ? $appointment['pid'] : $appointment['pc_pid']; if ($appt_pid == 0) {
} } $facility = !is_null($_POST['form_facility']) ? $_POST['form_facility'] : null; $form_apptstatus = !is_null($_POST['form_apptstatus']) ? $_POST['form_apptstatus'] : null; $form_apptcat = null; if (isset($_POST['form_apptcat'])) { if ($form_apptcat != "ALL") { $form_apptcat = intval($_POST['form_apptcat']); } } $appointments = array(); $from_date = date("Y-m-d"); $to_date = date("Y-m-d"); $datetime = date("Y-m-d H:i:s"); # go get the information and process it $appointments = fetch_Patient_Tracker_Events($from_date, $to_date, $provider, $facility, $form_apptstatus, $form_apptcat); $appointments = sortAppointments($appointments, 'time'); //grouping of the count of every status $appointments_status = getApptStatus($appointments); // Below are new constants for the translation pipeline // xl('None') // xl('Reminder done') // xl('Chart pulled') // xl('Canceled') // xl('No show') // xl('Arrived') // xl('Arrived late') // xl('Left w/o visit') // xl('Ins/fin issue') // xl('In exam room') // xl('Checked out')