* @author Vinish K * @author Sam Likins * @author Brady Miller * @copyright Copyright (c) 2011 ZMG LLC * @copyright Copyright (c) 2018 Brady Miller * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 */ require_once(__DIR__ . '/globals.php'); require_once($GLOBALS['fileroot'] . '/interface/eRxGlobals.php'); require_once($GLOBALS['fileroot'] . '/interface/eRxStore.php'); require_once($GLOBALS['fileroot'] . '/interface/eRxXMLBuilder.php'); require_once($GLOBALS['fileroot'] . '/interface/eRxPage.php'); set_time_limit(0); function array_key_exists_default($key, $search, $default = null) { if (array_key_exists($key, $search)) { $value = $search[$key]; } else { $value = $default; } return $value; } $GLOBALS_REF = $GLOBALS; $eRxPage = new eRxPage( new eRxXMLBuilder( new eRxGlobals($GLOBALS_REF), new eRxStore() ) ); $eRxPage->setAuthUserId(array_key_exists_default('authUserID', $_SESSION)) ->setDestination(array_key_exists_default('page', $_REQUEST)) ->setPatientId(array_key_exists_default('pid', $GLOBALS)) ->setPrescriptionIds(array_key_exists_default('id', $_REQUEST)) ->setPrescriptionCount(60); ?> <?php echo xlt('New Crop'); ?> checkForMissingExtensions(); if (count($missingExtensions) > 0) { ?> :

    ' . text($missingExtension) . ''; } ?>
      buildXML(); if (count($messages['demographics']) > 0) { ?> :

        ' . text($message) . ''; } ?>

          0) { ?>

            ' . text($message) . ''; } ?>
              0) { ?>

                ' . text($message) . ''; } ?>

                  getXML(); $errors = $eRxPage->checkError($xml); if (count($errors) > 0) { ?>
                    ' . text($message) . ''; } ?>
                      updatePatientData(); ?>