Added 3 AMC rulesets:
[openemr.git] / library / classes / rulesets / Amc / reports / AMC_302d / Denominator.php
blob8a0aa233841bf100fbad42d69b1291f6ecfdb321
1 <?php
2 // Copyright (C) 2011 Brady Miller <brady@sparmy.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 //
10 // This file contains a function to keep track of which issues
11 // types get modified.
14 class AMC_302d_Denominator implements AmcFilterIF
16 public function getTitle()
18 return "AMC_302d Denominator";
21 public function test( AmcPatient $patient, $dateBegin, $dateEnd )
23 // Seen by the EP or admitted to the eligible hospitals or CAHs inpatient or emergency department (POS 21 or 23)
24 // (basically needs an encounter before the end date)
25 if (Helper::checkAnyEncounter($patient, $dateBegin, $dateEnd, 1)) {
26 return true;
28 else {
29 return false;