2 class NFQ_0038_Numerator2
implements CqmFilterIF
4 public function getTitle() {
8 public function test( CqmPatient
$patient, $dateBegin, $dateEnd )
10 $dobPlus42Days = date( 'Y-m-d 00:00:00', strtotime( '+42 day', strtotime( $patient->dob
) ) );
11 $dobPlus2Years = date( 'Y-m-d 00:00:00', strtotime( '+2 year', strtotime( $patient->dob
) ) );
12 $options = array( Medication
::OPTION_COUNT
=> 3, Medication
::OPTION_UNIQUE_DATES
=> true );
13 if ( Helper
::check( ClinicalType
::MEDICATION
, Medication
::IPV
, $patient, $dobPlus42Days, $dobPlus2Years, $options ) &&
14 !( Helper
::check( ClinicalType
::ALLERGY
, Allergy
::IPV
, $patient ) ||
15 Helper
::check( ClinicalType
::ALLERGY
, Allergy
::NEOMYCIN
, $patient ) ||
16 Helper
::check( ClinicalType
::ALLERGY
, Allergy
::STREPTOMYCIN
, $patient ) ||
17 Helper
::check( ClinicalType
::ALLERGY
, Allergy
::POLYMYXIN
, $patient ) ) ) {