Highway to PSR2
[openemr.git] / library / classes / rulesets / Amc / reports / AMC_304d / Numerator.php
blob2a0ba088b87404284e381e951103b6e22eea2f70
1 <?php
2 // Copyright (C) 2011 Brady Miller <brady.g.miller@gmail.com>
3 //
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 // of the License, or (at your option) any later version.
8 //
11 class AMC_304d_Numerator implements AmcFilterIF
13 public function getTitle()
15 return "AMC_304d Numerator";
18 public function test(AmcPatient $patient, $beginDate, $endDate)
20 // Were sent an appropriate reminder during the EHR reporting period
21 $result_query = sqlQuery("SELECT * FROM `patient_reminders` WHERE `pid`=? AND `date_sent`>=? AND `date_sent`<=?", array($patient->id,$beginDate,$endDate));
22 if (!(empty($result_query))) {
23 return true;
24 } else {
25 return false;