Email change of a developer (#503)
[openemr.git] / library / classes / rulesets / Amc / reports / AMC_302f / Numerator.php
blobc698e41d3f521382409c46663178bab1590e1a26
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_302f_Numerator implements AmcFilterIF
13 public function getTitle()
15 return "AMC_302f Numerator";
18 public function test( AmcPatient $patient, $beginDate, $endDate )
20 // Record and chart changes in vital signs
21 // Need height,weight,BP, and BMI.
22 if ( (exist_database_item($patient->id,'form_vitals','height' ,'gt','0','ge',1,'','',$endDate)) &&
23 (exist_database_item($patient->id,'form_vitals','weight' ,'gt','0','ge',1,'','',$endDate)) &&
24 (exist_database_item($patient->id,'form_vitals','bps' ,'' ,'' ,'ge',1,'','',$endDate)) &&
25 (exist_database_item($patient->id,'form_vitals','bpd' ,'' ,'' ,'ge',1,'','',$endDate)) &&
26 (exist_database_item($patient->id,'form_vitals','BMI' ,'gt','0','ge',1,'','',$endDate)) )
28 return true;
30 else {
31 return false;