fix: faxsms psr7 vendor fix (#7794)
[openemr.git] / interface / billing / billing_process.php
blob7762eb04d571b94a573004aaa1a84dcd8c957ce7
1 <?php
3 /*
4 * Billing process Program
6 * This program processes data for claims generation
8 * @package OpenEMR
9 * @link http://www.open-emr.org
10 * @author Brady Miller <brady.g.miller@gmail.com>
11 * @author Terry Hill <terry@lilysystems.com>
12 * @author Jerry Padgett <sjpadgett@gmail.com>
13 * @author Stephen Waite <stephen.waite@cmsvt.com>
14 * @copyright Copyright (c) 2014-2020 Brady Miller <brady.g.miller@gmail.com>
15 * @copyright Copyright (c) 2016 Terry Hill <terry@lillysystems.com>
16 * @copyright Copyright (c) 2017-2020 Jerry Padgett <sjpadgett@gmail.com>
17 * @copyright Copyright (c) 2018-2021 Stephen Waite <stephen.waite@cmsvt.com>
18 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
21 require_once("../globals.php");
23 use OpenEMR\Billing\BillingProcessor\BillingProcessor;
24 use OpenEMR\Common\Csrf\CsrfUtils;
25 use OpenEMR\Core\Header;
27 if (!CsrfUtils::verifyCsrfToken($_POST["csrf_token_form"])) {
28 CsrfUtils::csrfNotVerified();
31 // Initialize billing processor with the post variables from the billing manager form
32 $billingProcessor = new BillingProcessor($_POST);
33 $logger = $billingProcessor->execute();
35 <html>
36 <head>
37 <?php Header::setupHeader(); ?>
38 <script>
39 $(function () {
40 $("#close-link").click(function () {
41 window.close();
42 });
43 });
44 </script>
45 </head>
46 <body>
47 <div class="container mt-3">
48 <div class="row">
49 <div class="col-12">
50 <h3><?php echo xlt('Billing queue results'); ?>:</h3>
51 <ul>
52 <?php foreach ($logger->bill_info() as $infoline) { ?>
53 <li>
54 <?php echo nl2br(text($infoline)); ?>
55 </li>
56 <?php } ?>
57 </ul>
58 </div>
59 </div>
60 </div>
61 </html>
62 <?php
63 $logger->onLogComplete();
65 </body>