Fixes #7635 appointment comments double escaped (#7638)
[openemr.git] / library / classes / rulesets / Amc / reports / AMC_304b_2_STG2 / Numerator.php
blobea66729f4f5578e07366e504346dee6b0532d56e
1 <?php
3 /**
5 * AMC 304b 2 STAGE2 Numerator
7 * Copyright (C) 2015 Ensoftek, Inc
9 * LICENSE: This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
20 * @package OpenEMR
21 * @author Ensoftek
22 * @link http://www.open-emr.org
25 class AMC_304b_2_STG2_Numerator implements AmcFilterIF
27 public function getTitle()
29 return "AMC_304b_2_STG2 Numerator";
32 public function test(AmcPatient $patient, $beginDate, $endDate)
34 //The number of prescriptions in the denominator generated, queried for a drug formulary and transmitted electronically
35 $eprescribe = amcCollect('e_prescribe_amc', $patient->id, 'prescriptions', $patient->object['id']);
36 $checkformulary = amcCollect('e_prescribe_chk_formulary_amc', $patient->id, 'prescriptions', $patient->object['id']);
37 if (!(empty($eprescribe)) && !(empty($checkformulary))) {
38 return true;
39 } else {
40 return false;