Email change of a developer (#503)
[openemr.git] / library / classes / rulesets / Amc / reports / AMC_304b / Numerator.php
blobb27b10faf5dda02c25c1639ee2b7a291551fbac2
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;
26 else {
27 return false;