echo "<input type='hidden' name='numerator_label' value='" . $numerator_label . "' />\n"; $pass_id = isset($_REQUEST['pass_id']) ? $_REQUEST['pass_id'] : "all"; echo "<input type='hidden' name='pass_id' value='" . $pass_id . "' />\n"; $print_patients = isset($_REQUEST['print_patients']) ? $_REQUEST['print_patients'] : 0; echo "<input type='hidden' name='print_patients' value='" . $print_patients . "' />\n"; // Collect patient listing from cdr report if ($print_patients) { // collect entire listing for printing $result = collectItemizedPatientsCdrReport($report_id, $itemized_test_id, $pass_id, $numerator_label); $GLOBALS['PATIENT_INC_COUNT'] = count($result); $MAXSHOW = $GLOBALS['PATIENT_INC_COUNT']; } else { // collect the total listing count $GLOBALS['PATIENT_INC_COUNT'] = collectItemizedPatientsCdrReport($report_id, $itemized_test_id, $pass_id, $numerator_label, true); // then just collect applicable list for pagination $result = collectItemizedPatientsCdrReport($report_id, $itemized_test_id, $pass_id, $numerator_label, false, $sqllimit, $fstart); } } else { $patient = $_REQUEST['patient']; $findBy = $_REQUEST['findBy']; $searchFields = $_REQUEST['searchFields']; echo "<input type='hidden' name='patient' value='" . htmlspecialchars($patient, ENT_QUOTES) . "' />\n"; echo "<input type='hidden' name='findBy' value='" . htmlspecialchars($findBy, ENT_QUOTES) . "' />\n"; if ($findBy == "Last") { $result = getPatientLnames("{$patient}", $given, $orderby, $sqllimit, $fstart); } else { if ($findBy == "ID") { $result = getPatientId("{$patient}", $given, "id ASC, " . $orderby, $sqllimit, $fstart); } else { if ($findBy == "DOB") { $result = getPatientDOB("{$patient}", $given, "DOB ASC, " . $orderby, $sqllimit, $fstart);
//DENEXCEP(Denominator Exception not needed for some rules are skipping here) if (in_array($row['cqm_nqf_code'], $denExcepNotNeedRules) && $cqmKey == "exception_patients") { continue; } //cqm 0024 alllowing only nuemerator 2 and numerator 3 for ipp1,ipp2 and 1pp3 to avoid repeatation if ($row['cqm_nqf_code'] == '0024' && ($row['numerator_label'] == "Numerator 2" || $row['numerator_label'] == "Numerator 3") && $cqmKey != 'numer_patients') { continue; } if ($row['cqm_nqf_code'] == '0024' && ($row['population_label'] == "Population Criteria 2" || $row['population_label'] == "Population Criteria 3")) { continue; } //get Itemized Data if ($cqmKey == "init_patients") { $itemPatArr = collectItemizedPatientsCdrReport($report_id, $itemized_test_id, $cqmItemizedArr[$cqmKey]); } else { $itemPatArr = collectItemizedPatientsCdrReport($report_id, $itemized_test_id, $cqmItemizedArr[$cqmKey], $numerator_label); } $fullPatArr = array(); foreach ($itemPatArr as $itemPatInfo) { $fullPatArr[] = $itemPatInfo['pid']; } $detailsArr = getQRDAPatientNeedInfo($fullPatArr); ############### Initial patient population template START################### $xml->open_loopComponent(); //observation Open $xml->open_customTag('observation', array('classCode' => 'OBS', 'moodCode' => 'EVN')); $tempID = "2.16.840.1.113883.10.20.27.3.5"; $xml->self_templateid($tempID); $tempID = "2.16.840.1.113883.10.20.27.3.16"; $xml->self_templateid($tempID); $arr = array('code' => 'ASSERTION', 'displayName' => 'Assertion', 'codeSystem' => '2.16.840.1.113883.5.4', 'codeSystemName' => 'ActCode');