* @copyright Copyright (c) 2015 Ensoftek, Inc * @copyright Copyright (c) 2018 Brady Miller * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 */ require_once("../interface/globals.php"); require_once "$srcdir/report_database.inc"; require_once("$srcdir/options.inc.php"); require_once("qrda_category1.inc"); use OpenEMR\Common\Csrf\CsrfUtils; use OpenEMR\Core\Header; if (!CsrfUtils::verifyCsrfToken($_GET["csrf_token_form"])) { CsrfUtils::csrfNotVerified(); } $report_id = (isset($_GET['report_id'])) ? trim($_GET['report_id']) : ""; $provider_id = (isset($_GET['provider_id'])) ? trim($_GET['provider_id']) : ""; $report_view = collectReportDatabase($report_id); $dataSheet = json_decode($report_view['data'], true); $type_report = $report_view['type']; $type_report = (($type_report == "amc") || ($type_report == "amc_2011") || ($type_report == "amc_2014") || ($type_report == "cqm") || ($type_report == "cqm_2011") || ($type_report == "cqm_2014")) ? $type_report : "standard"; ?>
 

"; $cqmCodes[] = $row['cqm_nqf_code']; echo ""; echo ""; echo ""; echo ""; echo ""; $counter++; } } ?>
   
"; echo ""; echo ""; if (isset($row['is_main'])) { echo "" . generate_display_field(array('data_type' => '1','list_id' => 'clinical_rules'), $row['id']) . ""; $tempCqmAmcString = ""; if (($type_report == "cqm") || ($type_report == "cqm_2011") || ($type_report == "cqm_2014")) { if (!empty($row['cqm_pqri_code'])) { $tempCqmAmcString .= " " . xl('PQRI') . ":" . $row['cqm_pqri_code'] . " "; } if (!empty($row['cqm_nqf_code'])) { $tempCqmAmcString .= " " . xl('NQF') . ":" . $row['cqm_nqf_code'] . " "; } } if (!empty($tempCqmAmcString)) { echo "(" . text($tempCqmAmcString) . ")"; } } else { echo generate_display_field(array('data_type' => '1','list_id' => 'rule_action_category'), $row['action_category']); echo ": " . generate_display_field(array('data_type' => '1','list_id' => 'rule_action'), $row['action_item']); } echo ""; echo ""; echo "
"; echo ""; echo "
"; echo ""; echo "
"; echo ""; echo "