4 * interface/soap_functions/soap_accountStatusDetails.php Display current
5 * patients NewCrop account status.
7 * Copyright (C) 2011 ZMG LLC <sam@zhservices.com>
9 * LICENSE: This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by the Free
11 * Software Foundation; either version 3 of the License, or (at your option) any
12 * later version. This program is distributed in the hope that it will be
13 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15 * Public License for more details. You should have received a copy of the GNU
16 * General Public License along with this program.
17 * If not, see <http://opensource.org/licenses/gpl-license.php>.
21 * @author Eldho Chacko <eldho@zhservices.com>
22 * @author Vinish K <vinish@zhservices.com>
23 * @author Sam Likins <sam.likins@wsi-services.com>
24 * @link http://www.open-emr.org
27 require_once(__DIR__
. '/../globals.php');
28 require_once($GLOBALS['fileroot'] . '/interface/eRxGlobals.php');
29 require_once($GLOBALS['fileroot'] . '/interface/eRxStore.php');
30 require_once($GLOBALS['srcdir'] . '/xmltoarray_parser_htmlfix.php');
31 require_once($GLOBALS['srcdir'] . '/lists.inc.php');
32 require_once($GLOBALS['srcdir'] . '/amc.php');
33 require_once($GLOBALS['fileroot'] . '/interface/eRxSOAP.php');
34 require_once($GLOBALS['fileroot'] . '/interface/eRx_xml.php');
36 use OpenEMR\Core\Header
;
39 $GLOBALS_REF = $GLOBALS;
40 $eRxSOAP = new eRxSOAP();
41 $eRxSOAP->setGlobals(new eRxGlobals($GLOBALS_REF))
42 ->setStore(new eRxStore())
43 ->setAuthUserId($_SESSION['authUserID']);
45 if (array_key_exists('patient', $_REQUEST)) {
46 $eRxSOAP->setPatientId($_REQUEST['patient']);
47 } elseif (array_key_exists('pid', $GLOBALS)) {
48 $eRxSOAP->setPatientId($GLOBALS['pid']);
51 $accountStatus = $eRxSOAP->getAccountStatus()
52 ->GetAccountStatusResult
->accountStatusDetail
;
56 <?php Header
::setupHeader(); ?
>
58 <body
class='body_top'>
59 <table
class='text' align
=center width
='90%' height
='80%' style
='padding-top:6%'>
61 <th colspan
=2><?php
echo xlt('eRx Account Status'); ?
></th
>
64 <td
><?php
echo xlt('Pending Rx Count'); ?
></td
>
65 <td
><?php
echo $accountStatus->PendingRxCount
;?
></td
>
68 <td
><?php
echo xlt('Alert Count'); ?
></td
>
69 <td
><?php
echo $accountStatus->AlertCount
;?
></td
>
72 <td
><?php
echo xlt('Fax Count'); ?
></td
>
73 <td
><?php
echo $accountStatus->FaxCount
;?
></td
>
76 <td
><?php
echo xlt('Pharm Com Count'); ?
></td
>
77 <td
><?php
echo $accountStatus->PharmComCount
;?
></td
>