Beispiel #1
0
 public function test(AmcPatient $patient, $beginDate, $endDate)
 {
     // If height/length, weight, and blood pressure (all) within scope of practice:
     // Number of unique patients seen by the EP during the EHR reporting period
     if (exist_database_item($patient->id, 'form_vitals', 'height', 'gt', '0', 'ge', 1, '', '', $endDate) && exist_database_item($patient->id, 'form_vitals', 'weight', 'gt', '0', 'ge', 1, '', '', $endDate) && exist_database_item($patient->id, 'form_vitals', 'bps', 'gt', '0', 'ge', 1, '', '', $endDate) && exist_database_item($patient->id, 'form_vitals', 'bpd', 'gt', '0', 'ge', 1, '', '', $endDate)) {
         $options = array(Encounter::OPTION_ENCOUNTER_COUNT => 1);
         if (Helper::checkAnyEncounter($patient, $beginDate, $endDate, $options)) {
             return true;
         } else {
             return false;
         }
     } else {
         if (exist_database_item($patient->id, 'form_vitals', 'height', 'gt', '0', 'ge', 1, '', '', $endDate) && exist_database_item($patient->id, 'form_vitals', 'weight', 'gt', '0', 'ge', 1, '', '', $endDate)) {
             $options = array(Encounter::OPTION_ENCOUNTER_COUNT => 1);
             if (Helper::checkAnyEncounter($patient, $beginDate, $endDate, $options)) {
                 return true;
             } else {
                 return false;
             }
         } else {
             if (exist_database_item($patient->id, 'form_vitals', 'bps', 'gt', '0', 'ge', 1, '', '', $endDate) && exist_database_item($patient->id, 'form_vitals', 'bpd', 'gt', '0', 'ge', 1, '', '', $endDate)) {
                 $options = array(Encounter::OPTION_ENCOUNTER_COUNT => 1);
                 if (Helper::checkAnyEncounter($patient, $beginDate, $endDate, $options) && $patient->calculateAgeOnDate($endDate) >= 3) {
                     return true;
                 } else {
                     return false;
                 }
             }
         }
     }
 }
Beispiel #2
0
 public function test(AmcPatient $patient, $beginDate, $endDate)
 {
     // MEASURE STAGE2: Medication Order(s) Check
     if (Helper::checkAnyEncounter($patient, $beginDate, $endDate, $options)) {
         return true;
     }
     return false;
 }
Beispiel #3
0
 public function test(AmcPatient $patient, $beginDate, $endDate)
 {
     //Number of unique patients 2 years of age or older seen by the EP during the EHR reporting period (Effective through 2013 only)
     $options = array(Encounter::OPTION_ENCOUNTER_COUNT => 1);
     if (Helper::checkAnyEncounter($patient, $beginDate, $endDate, $options) && $patient->calculateAgeOnDate($endDate) >= 2) {
         return true;
     } else {
         return false;
     }
 }
Beispiel #4
0
 public function test(AmcPatient $patient, $beginDate, $endDate)
 {
     //Number of unique patients seen by the EP during the EHR reporting period
     $options = array(Encounter::OPTION_ENCOUNTER_COUNT => 1);
     if (Helper::checkAnyEncounter($patient, $beginDate, $endDate, $options)) {
         return true;
     } else {
         return false;
     }
 }
Beispiel #5
0
 public function test(AmcPatient $patient, $beginDate, $endDate)
 {
     //Number of unique patients seen by the EP during the EHR reporting period(Optional effective 2013 for providers who claim a scope of practice exclusion, Required effective 2014)
     $options = array(Encounter::OPTION_ENCOUNTER_COUNT => 1);
     if (Helper::checkAnyEncounter($patient, $beginDate, $endDate, $options)) {
         return true;
     } else {
         return false;
     }
 }
Beispiel #6
0
 public function test(AmcPatient $patient, $beginDate, $endDate)
 {
     // Seen by the EP or admitted to the eligible hospitals or CAHs inpatient or emergency department (POS 21 or 23)
     //  (basically needs an encounter within the report dates)
     $options = array(Encounter::OPTION_ENCOUNTER_COUNT => 1);
     if (Helper::checkAnyEncounter($patient, $beginDate, $endDate, $options)) {
         return true;
     } else {
         return false;
     }
 }
Beispiel #7
0
 public function test(AmcPatient $patient, $beginDate, $endDate)
 {
     // Seen by the EP
     //  (basically needs an encounter within the report dates)
     $options = array(Encounter::OPTION_ENCOUNTER_COUNT => 1);
     if (Helper::checkAnyEncounter($patient, $beginDate, $endDate, $options)) {
         return true;
     } else {
         return false;
     }
 }
Beispiel #8
0
 public function test(AmcPatient $patient, $beginDate, $endDate)
 {
     // All unique patients 13 years or older seen by the EP or admitted to the eligible
     // hospital’s or CAH’s inpatient or emergency department (POS 21 or 23)
     //  (basically needs an encounter within the report dates and needs to be 13 by the end report date)
     $options = array(Encounter::OPTION_ENCOUNTER_COUNT => 1);
     if (Helper::checkAnyEncounter($patient, $beginDate, $endDate, $options) && $patient->calculateAgeOnDate($endDate) >= 13) {
         return true;
     } else {
         return false;
     }
 }
Beispiel #9
0
 public function test(AmcPatient $patient, $beginDate, $endDate)
 {
     // All unique patients seen by the EP or admitted to the eligible
     // hospital’s or CAH’s inpatient or emergency department (POS 21 or 23)
     // Also need at least one medication on the med list.
     //  (basically needs an encounter within the report dates and medications
     //   entered by the endDate)
     $check = sqlQuery("SELECT * FROM `lists` WHERE `activity`='1' AND `pid`=? AND `type`='medication' AND `date`<=?", array($patient->id, $endDate));
     $options = array(Encounter::OPTION_ENCOUNTER_COUNT => 1);
     if (Helper::checkAnyEncounter($patient, $beginDate, $endDate, $options) && !empty($check)) {
         return true;
     } else {
         return false;
     }
 }
Beispiel #10
0
 public function test(AmcPatient $patient, $beginDate, $endDate)
 {
     // All unique patients seen by the EP or admitted to the eligible
     // hospital’s or CAH’s inpatient or emergency department (POS 21 or 23)
     // Also need to have requested their records.
     //  (basically needs an encounter within the report dates and to have requested their
     //   records within the report dates)
     $amccheck = sqlQuery("SELECT * FROM `amc_misc_data` WHERE `amc_id`=? AND `pid`=? AND `date_created`>=? AND `date_created`<=?", array('provide_rec_pat_amc', $patient->id, $beginDate, $endDate));
     $options = array(Encounter::OPTION_ENCOUNTER_COUNT => 1);
     if (Helper::checkAnyEncounter($patient, $beginDate, $endDate, $options) && !empty($amccheck)) {
         return true;
     } else {
         return false;
     }
 }
Beispiel #11
0
 public function test(AmcPatient $patient, $beginDate, $endDate)
 {
     // All unique patients seen by the EP or admitted to the eligible
     // hospital’s or CAH’s inpatient or emergency department (POS 21 or 23)
     // Also need at least one medication on the med list.
     //  (basically needs an encounter within the report dates and medications
     //   entered by the endDate)
     $sql = "SELECT drug,1 as cpoe_stat " . "FROM `prescriptions` " . "WHERE `patient_id` = ? " . "AND `date_added` BETWEEN ? AND ? " . "UNION " . "SELECT title as drug,0 as cpoe_stat " . "FROM lists l " . "where l.type = 'medication' " . "AND l.pid = ? " . "AND l.date >= ? and l.date <= ? ";
     $check = sqlQuery($sql, array($patient->id, $beginDate, $endDate, $patient->id, $beginDate, $endDate));
     $options = array(Encounter::OPTION_ENCOUNTER_COUNT => 1);
     if (Helper::checkAnyEncounter($patient, $beginDate, $endDate, $options) && !empty($check)) {
         return true;
     } else {
         return false;
     }
 }