4 * AMC 314g_1_2_22 STAGE1 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>;.
21 * @link http://www.open-emr.org
23 class AMC_314g_1_2_22_Numerator
implements AmcFilterIF
25 public function getTitle()
27 return "AMC_314g_1_2_22 Numerator";
30 public function test(AmcPatient
$patient, $beginDate, $endDate)
32 $encQry = "SELECT * FROM forms f ".
33 "INNER JOIN form_encounter fe ON f.encounter = fe.encounter ".
34 "WHERE f.formdir != 'newpatient' AND f.deleted = 0 AND f.pid = ? AND (f.date BETWEEN ? AND ?) ";
36 $check = sqlQuery($encQry, array($patient->id
, $beginDate, $endDate));
37 if (!(empty($check))) {