} else { echo LangUtil::$generalTerms['FROM_DATE'] . ": " . DateLib::mysqlToString($date_from); echo " | "; echo LangUtil::$generalTerms['TO_DATE'] . ": " . DateLib::mysqlToString($date_to); } } ?> <br> <?php $patient = get_patient_by_id($patient_id); if ($patient == null) { echo LangUtil::$generalTerms['PATIENT_ID'] . " {$patient_id} " . LangUtil::$generalTerms['MSG_NOTFOUND']; } else { # Fetch test entries to print in report $record_list = get_records_to_print($lab_config, $patient_id); # If single date supplied, check if- # 1. Physician name is the same for all # 2. Patient daily number is the same for all # 3. All tests were completed or not $physician_same = false; $daily_number_same = false; $all_tests_completed = false; if ($date_from == $date_to) { $physician_same = true; $daily_number_same = true; $all_tests_completed = true; $record_count = 0; $previous_physician = ""; $previous_daily_num = ""; $count_list = count($record_list);
?> <?php # Line for Signature ?> <br><br> ............................. <h4><?php echo $report_config->footerText; ?> </h4> <?php return; } $record_list = array(); foreach ($test_types as $test_type_id) { $record_list[] = get_records_to_print($lab_config, $test_type_id, $date_from, $date_to); } $total_tests = 0; foreach ($record_list as $record) { $total_tests += count($record); } ?> <?php $no_match = true; foreach ($record_list as $record) { if ($record == null) { continue; } if (count($record) == 0) { continue;