Highway to PSR2
[openemr.git] / library / classes / rulesets / Amc / reports / AMC_302g / Numerator.php
blob8b499364d5b51a4b5ffc31d75900a27b4cb0143a
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_302g_Numerator implements AmcFilterIF
13 public function getTitle()
15 return "AMC_302g Numerator";
18 public function test(AmcPatient $patient, $beginDate, $endDate)
20 // Is smoking status recorded as structured data before the end date of the report
21 if (exist_lifestyle_item($patient->id, 'tobacco', '', $endDate)) {
22 return true;
23 } else {
24 return false;