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 namespace OpenEMR\Rx\Weno
;
15 public function __construct()
18 public function insertPrescriptions($insertdata)
20 $sql = "INSERT INTO prescriptions SET "
31 . "rxnorm_drugcode = ?, "
39 $insertdata['active'],
40 $insertdata['date_added'],
41 $insertdata['patient_id'],
44 $insertdata['quantity'],
45 $insertdata['refills'],
46 $insertdata['substitute'],
48 $insertdata['rxnorm_drugcode'],
49 $insertdata['provider_id'],
50 $insertdata['prescriptionguid'],
53 echo "inserted data! <br>";
54 } catch (Exception
$e) {
55 return $e->getMessage();