public function test(AmcPatient $patient, $beginDate, $endDate) { // Need patient summary given/sent to patient within 3 business days of each encounter. $amcElement = amcCollect('provide_sum_pat_amc', $patient->id, 'form_encounter', $patient->object['encounter']); if (!empty($amcElement)) { $daysDifference = businessDaysDifference(date("Y-m-d", strtotime($patient->object['date'])), date("Y-m-d", strtotime($amcElement['date_completed']))); if ($daysDifference < 4) { return true; } } return false; }
public function test(AmcPatient $patient, $beginDate, $endDate) { //The number of office visits in the denominator where the patient or a patient authorized Representative is provided a clinical summary of their visit within 1 Business day. $amcElement = amcCollect('provide_sum_pat_amc', $patient->id, 'form_encounter', $patient->object['encounter']); if (!empty($amcElement)) { $daysDifference = businessDaysDifference(date("Y-m-d", strtotime($patient->object['date'])), date("Y-m-d", strtotime($amcElement['date_completed']))); if ($daysDifference < 2) { return true; } } return false; }
public function test(AmcPatient $patient, $beginDate, $endDate) { // For all record request need to be completed within three business days $amcResults = sqlStatement("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)); while ($res = sqlFetchArray($amcResults)) { if (empty($res['date_completed'])) { // Records requested but not given return false; } $businessDaysDifference = businessDaysDifference(date("Y-m-d", strtotime($res['date_created'])), date("Y-m-d", strtotime($res['date_completed']))); if ($businessDaysDifference > 3) { // Records not given within 3 business days of request return false; } } // All requested records for patient were given within 3 business days return true; }