Highway to PSR2
[openemr.git] / library / classes / rulesets / Amc / reports / AMC_304a_3 / Numerator.php
blob3b899aee552778ab209dc3ed4c3ce9eb9d035586
1 <?php
2 /**
4 * AMC 304a_3 Numerator
6 * Copyright (C) 2015 Ensoftek, Inc
8 * LICENSE: This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
19 * @package OpenEMR
20 * @author Ensoftek
21 * @link http://www.open-emr.org
24 class AMC_304a_3_Numerator implements AmcFilterIF
26 public function getTitle()
28 return "AMC_304a_3 Numerator";
31 public function test(AmcPatient $patient, $beginDate, $endDate)
33 // MEASURE STAGE2: Medication Order(s) Created as CPOE
35 // Still TODO
36 // AMC MU2 TODO :
37 // Note the counter for this is using prescriptions which does not incorporate the cpoe_stat field.
39 if (isset($patient->object['cpoe_stat']) && $patient->object['cpoe_stat'] == 1) {
40 return true;
41 } else {
42 return false;