Highway to PSR2
[openemr.git] / library / classes / rulesets / Amc / reports / AMC_314g_1_2_14 / Denominator.php
blob2295b7f5f323165be6c1b752147231be334994d7
1 <?php
2 /**
4 * AMC 314g_1_2_14 STAGE1 Denominator
6 * Copyright (C) 2015 Ensoftek, Inc
7 * Copyright (C) 2015 Brady Miller <brady.g.miller@gmail.com>
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 * @author Brady Miller <brady.g.miller@gmail.com>
23 * @link http://www.open-emr.org
26 class AMC_314g_1_2_14_Denominator implements AmcFilterIF
28 public function getTitle()
30 return "AMC_314g_1_2_14 Denominator";
33 public function test(AmcPatient $patient, $beginDate, $endDate)
35 // Seen by the EP
36 // (basically needs an encounter within the report dates)
37 $options = array( Encounter::OPTION_ENCOUNTER_COUNT => 1 );
38 if (Helper::checkAnyEncounter($patient, $beginDate, $endDate, $options)) {
39 return true;
40 } else {
41 return false;