4 * Real world testing report for 2024.
5 * Dates are hard-coded from 2024-04-01 to 2024-09-30
8 * @link http://www.open-emr.org
9 * @author Brady Miller <brady.g.miller@gmail.com>
10 * @copyright Copyright (c) 2022 Brady Miller <brady.g.miller@gmail.com>
11 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
14 require_once("../globals.php");
16 use OpenEMR\Common\Acl\AclMain
;
17 use OpenEMR\Common\Csrf\CsrfUtils
;
18 use OpenEMR\Common\Twig\TwigContainer
;
19 use OpenEMR\Core\Header
;
20 use OpenEMR\Reports\RealWorldTesting
;
22 if (!AclMain
::aclCheckCore('admin', 'super')) {
23 echo (new TwigContainer(null, $GLOBALS['kernel']))->getTwig()->render('core/unauthorized.html.twig', ['pageTitle' => xl('2024 Real World Testing Report')]);
28 if (!CsrfUtils
::verifyCsrfToken($_POST['csrf_token_form'], 'rwt_2024_report')) {
29 CsrfUtils
::csrfNotVerified();
33 // dates for this report are hard-coded (see header for details)
34 $begin_date = '2024-04-01';
35 $end_date = '2024-09-30';
37 // can override dates below for development/testing purposes
38 // $begin_date = '2022-10-01';
39 // $end_date = '2022-12-01';
45 <title
><?php
echo xlt('2024 Real World Testing Report'); ?
></title
>
46 <?php Header
::setupHeader(); ?
>
56 <body
class='body_top'>
58 <span
class='title'><?php
echo xlt('2024 Real World Testing Report'); ?
></span
>
60 <?php
if (empty($_POST['start_button'])) { ?
>
61 <div
class='mt-2 alert alert-primary' role
='alert'>
62 <?php
echo xlt("This report is required for OpenEMR instances in the United States that utilize ONC 2015 certification. This reports collects metrics that are used in Real World Testing that are required for the OpenEMR Foundation to maintain the ONC 2015 certification. This report calculates metrics from April 1, 2024 to September 30, 2024. Please run this report sometime in October or November of 2024 and then print it to a pdf and email the pdf to the OpenEMR Foundation at hello@open-emr.org. In the email, please confirm your practice is in the United States and state the clinical setting of your practice (this can be 'Primary/Specialty Care' setting, 'Behavioral Health Care' setting, or any other setting).") ?
>
64 <form method
='post' name
='theform' id
='theform' action
='rwt_2024_report.php' onsubmit
='return top.restoreSession()'>
65 <input type
='hidden' name
='csrf_token_form' value
='<?php echo attr(CsrfUtils::collectCsrfToken('rwt_2024_report
')); ?>' />
67 <button type
='submit' class='btn btn-primary' name
='start_button' value
='start_button' onclick
='document.getElementById("start_button_spinner").style.display = "inline-block"'>
68 <span id
='start_button_spinner' style
='display: none;' class='spinner-border spinner-border-sm' role
='status' aria
-hidden
='true'></span
> <?php
echo xlt('Start Report'); ?
>
73 <div id
='no_print_area' >
74 <div
class='mt-2 alert alert-primary' role
='alert'>
75 <?php
echo xlt("Please print this report to a pdf and email the pdf to the OpenEMR Foundation at hello@open-emr.org. In the email, please confirm your practice is in the United States and state the clinical setting of your practice (this can be 'Primary/Specialty Care' setting, 'Behavioral Health Care' setting, or any other setting).") ?
>
78 <button type
='button' class='btn btn-primary' onclick
='window.print()'>
79 <?php
echo xlt('Print Report'); ?
>
84 <?php
echo (new RealWorldTesting($begin_date, $end_date))->renderReport(); ?
>