Bug fix for NFQ_0024 cqm rule:
[openemr.git] / library / classes / rulesets / Cqm / reports / NFQ_0024 / Numerator3.php
blobfeb3497fa0bf00d72489c115b8e3f4545342e978
1 <?php
2 // Copyright (C) 2011 Ken Chapple <ken@mi-squared.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 //
9 class NFQ_0024_Numerator3 implements CqmFilterIF
11 public function getTitle() {
12 return "Numerator 3";
15 public function test( CqmPatient $patient, $beginDate, $endDate )
17 //if ( Helper::check( ClinicalType::COMMUNICATION, Communication::COUNS_PHYS_ACTIVITY, $patient, $beginDate, $endDate ) ) {
18 // return true;
19 //}
21 $exercise = sqlQuery("SELECT * FROM `rule_patient_data` " .
22 "WHERE `category`='act_cat_edu' AND `item`='act_exercise' AND `complete`='YES' " .
23 "AND `pid`=? AND `date`>=? AND `date`<=?", array($patient->id,$beginDate,$endDate) );
24 if (!empty($exercise)) {
25 return true;
28 return false;