Highway to PSR2
[openemr.git] / library / classes / rulesets / Cqm / reports / NFQ_0038 / Numerator12.php
blob3e71714eef8d0635241ba15a1aaa5032d2b62513
1 <?php
2 // Copyright (C) 2011 Ken Chapple <ken@mi-squared.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 class NFQ_0038_Numerator12 implements CqmFilterIF
11 public function getTitle()
13 return "Numerator 12";
16 public function test(CqmPatient $patient, $beginDate, $endDate)
18 if (Immunizations::checkDtap($patient, $beginDate, $endDate) &&
19 Immunizations::checkIpv($patient, $beginDate, $endDate) &&
20 ( Immunizations::checkMmr($patient, $beginDate, $endDate) &&
21 !Helper::checkAllergy(Allergy::POLYMYXIN, $patient, $patient->dob, $endDate) ) &&
22 Immunizations::checkVzv($patient, $beginDate, $endDate) &&
23 Immunizations::checkHepB($patient, $beginDate, $endDate) &&
24 Immunizations::checkPheumococcal($patient, $beginDate, $endDate) ) {
25 return true;
28 return false;