5 * @link http://www.open-emr.org
6 * @author Sherwin Gaddis <sherwingaddis@gmail.com>
7 * @copyright Copyright (c) 2020 Sherwin Gaddis <sherwingaddis@gmail.com>
8 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
11 require_once("../globals.php");
13 use OpenEMR\Common\Acl\AclMain
;
14 use OpenEMR\Rx\Weno\wenoPharmaciesImport
;
16 //ensure user has proper access
17 if (!AclMain
::aclCheckCore('patient', 'med')) {
18 echo xlt('Pharmacy Import not authorized');
21 //Weno has decided to not force the import of pharmacies since they are using the iframe
22 //and the pharmacy can be selected at the time of creating the prescription.
23 $phIN = new wenoPharmaciesImport();
25 $status = $phIN->importPharmacy();