* @author Brady Miller * @copyright Copyright (c) Visolve * @copyright Copyright (c) 2018 Brady Miller * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 */ require_once("../../globals.php"); use OpenEMR\Common\Acl\AclMain; use OpenEMR\Common\Csrf\CsrfUtils; if (!CsrfUtils::verifyCsrfToken($_POST["csrf_token_form"])) { CsrfUtils::csrfNotVerified(); } /** * Retrieve the recent 'N' disclosures. * @param $pid - patient id. * @param $limit - certain limit up to which the disclosures are to be displyed. */ function getDisclosureByDate($pid, $limit) { $discQry = " SELECT el.id, el.event, el.recipient, el.description, el.date, CONCAT(u.fname, ' ', u.lname) as user_fullname FROM extended_log el" . " LEFT JOIN users u ON u.username = el.user " . " WHERE el.patient_id = ? AND el.event IN (SELECT option_id FROM list_options WHERE list_id = 'disclosure_type' AND activity = 1)" . " ORDER BY el.date DESC LIMIT 0, " . escape_limit($limit); $r1 = sqlStatement($discQry, array($pid)); $result2 = array(); for ($iter = 0; $frow = sqlFetchArray($r1); $iter++) { $result2[$iter] = $frow; } return $result2; } ?>

"; echo ""; echo ""; echo ""; echo ""; } } ?>
"; if ($event[1] == 'healthcareoperations') { echo ""; echo xlt('health care operations'); echo ""; } else { echo "" . text($event[1]) . ""; } echo "" . text($iter['user_fullname']) . ""; echo text($iter["date"] . " (" . xl('Recipient') . ":" . $iter["recipient"] . ")"); echo " " . nl2br(text($description)); echo "
"; echo xlt("here"); echo "."; } ?>