* @author     Sam Likins <*****@*****.**>
 * @link       http://www.open-emr.org
 */
$sanitize_all_escapes = true;
// SANITIZE ALL ESCAPES
$fake_register_globals = false;
// STOP FAKE REGISTER GLOBALS
require_once __DIR__ . '/../globals.php';
require_once $GLOBALS['fileroot'] . '/interface/eRxGlobals.php';
require_once $GLOBALS['fileroot'] . '/interface/eRxStore.php';
require_once $GLOBALS['srcdir'] . '/xmltoarray_parser_htmlfix.php';
require_once $GLOBALS['srcdir'] . '/lists.inc';
require_once $GLOBALS['srcdir'] . '/amc.php';
require_once $GLOBALS['fileroot'] . '/interface/eRxSOAP.php';
require_once $GLOBALS['fileroot'] . '/interface/eRx_xml.php';
set_time_limit(0);
$eRxSOAP = new eRxSOAP();
$eRxSOAP->setGlobals(new eRxGlobals($GLOBALS))->setStore(new eRxStore())->setAuthUserId($_SESSION['authUserID']);
if (array_key_exists('patient', $_REQUEST)) {
    $eRxSOAP->setPatientId($_REQUEST['patient']);
} elseif (array_key_exists('pid', $GLOBALS)) {
    $eRxSOAP->setPatientId($GLOBALS['pid']);
}
if (array_key_exists('refresh', $_REQUEST) && $_REQUEST['refresh'] == 'true' || $eRxSOAP->elapsedTTL(eRxSOAP::ACTION_MEDICATIONS) || $eRxSOAP->checkPatientImportStatus(eRxSOAP::FLAG_PRESCRIPTION_PRESS)) {
    $insertedRows = $eRxSOAP->insertUpdateMedications();
    $message = $insertedRows ? xl('Prescription History import successfully completed') : xl('Nothing to import for Prescription');
    $eRxSOAP->updatePatientImportStatus(eRxSOAP::FLAG_PRESCRIPTION_IMPORT)->updateTTL(eRxSOAP::ACTION_MEDICATIONS);
} else {
    $message = xl('Import deferred for time-to-live');
}
echo text($message);
 * @package    OpenEMR
 * @subpackage NewCrop
 * @author     Eldho Chacko <*****@*****.**>
 * @author     Vinish K <*****@*****.**>
 * @author     Sam Likins <*****@*****.**>
 * @link       http://www.open-emr.org
 */
$sanitize_all_escapes = true;
// SANITIZE ALL ESCAPES
$fake_register_globals = false;
// STOP FAKE REGISTER GLOBALS
require_once '../globals.php';
require_once $GLOBALS['fileroot'] . '/interface/eRx_xml.php';
require_once $GLOBALS['fileroot'] . '/interface/eRxSOAP.php';
set_time_limit(0);
$eRxSOAP = new eRxSOAP();
$eRxSOAP->setStore(new eRxStore())->setAuthUserId($_SESSION['authUserID'])->setSoapPath(explode(';', getErxSoapPath()))->setCredentials(getErxCredentials());
$accountStatus = $eRxSOAP->getAccountStatus()->GetAccountStatusResult->accountStatusDetail;
?>
<head>
<link rel="stylesheet" href="<?php 
echo $css_header;
?>
" type="text/css">
</head>
<body class='body_top'>
	<table class='text' align=center width='90%' height='80%' style='padding-top:6%'>
		<tr>
			<th colspan=2><?php 
echo xlt('eRx Account Status');
?>
 * @link       http://www.open-emr.org
 */
$sanitize_all_escapes = true;
// SANITIZE ALL ESCAPES
$fake_register_globals = false;
// STOP FAKE REGISTER GLOBALS
require_once __DIR__ . '/../globals.php';
require_once $GLOBALS['fileroot'] . '/interface/eRxGlobals.php';
require_once $GLOBALS['fileroot'] . '/interface/eRxStore.php';
require_once $GLOBALS['srcdir'] . '/xmltoarray_parser_htmlfix.php';
require_once $GLOBALS['srcdir'] . '/lists.inc';
require_once $GLOBALS['srcdir'] . '/amc.php';
require_once $GLOBALS['fileroot'] . '/interface/eRxSOAP.php';
require_once $GLOBALS['fileroot'] . '/interface/eRx_xml.php';
set_time_limit(0);
$eRxSOAP = new eRxSOAP();
$eRxSOAP->setGlobals(new eRxGlobals($GLOBALS))->setStore(new eRxStore())->setAuthUserId($_SESSION['authUserID']);
if (array_key_exists('patient', $_REQUEST)) {
    $eRxSOAP->setPatientId($_REQUEST['patient']);
} elseif (array_key_exists('pid', $GLOBALS)) {
    $eRxSOAP->setPatientId($GLOBALS['pid']);
}
$accountStatus = $eRxSOAP->getAccountStatus()->GetAccountStatusResult->accountStatusDetail;
?>
<head>
	<link rel="stylesheet" href="<?php 
echo $css_header;
?>
" type="text/css">
</head>
<body class='body_top'>
Exemple #4
0
 * @author     Sam Likins <*****@*****.**>
 * @link       http://www.open-emr.org
 */
$sanitize_all_escapes = true;
// SANITIZE ALL ESCAPES
$fake_register_globals = false;
// STOP FAKE REGISTER GLOBALS
require_once __DIR__ . '/../globals.php';
require_once $GLOBALS['fileroot'] . '/interface/eRxGlobals.php';
require_once $GLOBALS['fileroot'] . '/interface/eRxStore.php';
require_once $GLOBALS['srcdir'] . '/xmltoarray_parser_htmlfix.php';
require_once $GLOBALS['srcdir'] . '/lists.inc';
require_once $GLOBALS['srcdir'] . '/amc.php';
require_once $GLOBALS['fileroot'] . '/interface/eRxSOAP.php';
require_once $GLOBALS['fileroot'] . '/interface/eRx_xml.php';
set_time_limit(0);
$eRxSOAP = new eRxSOAP();
$eRxSOAP->setGlobals(new eRxGlobals($GLOBALS))->setStore(new eRxStore())->setAuthUserId($_SESSION['authUserID']);
if (array_key_exists('patient', $_REQUEST)) {
    $eRxSOAP->setPatientId($_REQUEST['patient']);
} elseif (array_key_exists('pid', $GLOBALS)) {
    $eRxSOAP->setPatientId($GLOBALS['pid']);
}
if (array_key_exists('refresh', $_REQUEST) && $_REQUEST['refresh'] == 'true' || $eRxSOAP->elapsedTTL(eRxSOAP::ACTION_ALLERGIES) || $eRxSOAP->checkPatientImportStatus(eRxSOAP::FLAG_ALLERGY_PRESS)) {
    $eRxSOAP->insertUpdateAllergies();
    $message = $eRxSOAP->updateUploadedErx() ? xl('Allergy import successfully completed') : xl('Nothing to import for Allergy');
    $eRxSOAP->updatePatientImportStatus(eRxSOAP::FLAG_ALLERGY_IMPORT)->updateTTL(eRxSOAP::ACTION_ALLERGIES);
} else {
    $message = xl('Import deferred for time-to-live');
}
echo text($message);
 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
 * Public License for more details.  You should have received a copy of the GNU
 * General Public License along with this program.
 * If not, see <http://opensource.org/licenses/gpl-license.php>.
 * 
 * @package    OpenEMR
 * @subpackage NewCrop
 * @author     Eldho Chacko <*****@*****.**>
 * @author     Vinish K <*****@*****.**>
 * @author     Sam Likins <*****@*****.**>
 * @link       http://www.open-emr.org
 */
$sanitize_all_escapes = true;
// SANITIZE ALL ESCAPES
$fake_register_globals = false;
// STOP FAKE REGISTER GLOBALS
require_once '../globals.php';
require_once $GLOBALS['fileroot'] . '/interface/eRx_xml.php';
require_once $GLOBALS['fileroot'] . '/interface/eRxSOAP.php';
set_time_limit(0);
$eRxSOAP = new eRxSOAP();
$eRxSOAP->setStore(new eRxStore())->setAuthUserId($_SESSION['authUserID'])->setSoapPath(explode(';', getErxSoapPath()))->setCredentials(getErxCredentials());
if (array_key_exists('refresh', $_REQUEST) && $_REQUEST['refresh'] == 'true' || $eRxSOAP->elapsedTTL(eRxSOAP::ACTION_MEDICATIONS) || $eRxSOAP->checkPatientImportStatus(eRxSOAP::FLAG_PRESCRIPTION_PRESS)) {
    $insertedRows = $eRxSOAP->insertUpdateMedications();
    $message = $insertedRows ? xl('Prescription History import successfully completed') : xl('Nothing to import for Prescription');
    $eRxSOAP->updatePatientImportStatus(eRxSOAP::FLAG_PRESCRIPTION_IMPORT)->updateTTL(eRxSOAP::ACTION_MEDICATIONS);
} else {
    $message = xl('Import deferred for time-to-live');
}
echo text($message);