Highway to PSR2
[openemr.git] / library / classes / rulesets / Amc / reports / AMC_304b / Numerator.php
blobfb4055a31894af668d9c9007b140e9cf17610d63
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_304b_Numerator implements AmcFilterIF
13 public function getTitle()
15 return "AMC_304b Numerator";
18 public function test(AmcPatient $patient, $beginDate, $endDate)
20 // Need a prescription escribed.
21 // (so basically an amc element needs to exist)
22 $amcElement = amcCollect('e_prescribe_amc', $patient->id, 'prescriptions', $patient->object['id']);
23 if (!(empty($amcElement))) {
24 return true;
25 } else {
26 return false;