fix: fix ci (#7614)
[openemr.git] / library / classes / rulesets / Amc / reports / AMC_314g_1_2_14 / Denominator.php
blob1f0b26861f8c5b42c099e7efa612882505405adf
1 <?php
3 /**
5 * AMC 314g_1_2_14 STAGE1 Denominator
7 * Copyright (C) 2015 Ensoftek, Inc
8 * Copyright (C) 2015 Brady Miller <brady.g.miller@gmail.com>
10 * LICENSE: This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
21 * @package OpenEMR
22 * @author Ensoftek
23 * @author Brady Miller <brady.g.miller@gmail.com>
24 * @link http://www.open-emr.org
27 class AMC_314g_1_2_14_Denominator implements AmcFilterIF
29 public function getTitle()
31 return "AMC_314g_1_2_14 Denominator";
34 public function test(AmcPatient $patient, $beginDate, $endDate)
36 // Seen by the EP
37 // (basically needs an encounter within the report dates)
38 $options = array( Encounter::OPTION_ENCOUNTER_COUNT => 1 );
39 if (Helper::checkAnyEncounter($patient, $beginDate, $endDate, $options)) {
40 return true;
41 } else {
42 return false;