weno updates (#4360)
[openemr.git] / interface / weno / wenoconnected.php
blobc4e4013c5aef67c12fad5e332e599c9634c5c31d
1 <?php
3 /*
4 * @package OpenEMR
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
9 */
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');
19 exit;
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();
27 echo $status;