<?php return; } $specimen_id_list_all = array(); $specimen_id_list = array(); $temp_count = 0; foreach ($resultset as $record) { $specimen_id_list_all[] = $record['specimen_id']; //echo $record['specimen_id']; } # Remove duplicates that might come due to multiple pending tests $specimen_id_list_all = array_values(array_unique($specimen_id_list_all)); //echo "Test ".count($specimen_id_list); $category = "specimen"; foreach ($specimen_id_list_all as $specimen1) { if (check_removal_record($_SESSION['lab_config_id'], $specimen1, $category) > 0) { continue; } else { $specimen_id_list[] = $specimen1; } } ?> <div id="rcap" style="display: none;"><?php echo $rcap; ?> </div> <div id="page" style="display: none;">1</div> <div id="mpage" style="display: none;">1</div> <div id="rem" style="display: none;"></div> <div id="tot" style="display: none;"></div>
public function getTestInfoRow($test) { # Returns HTML table row containing specimen info # Called by getSpecimenTestsTable() function ?> <tr valign='top'> <td> <?php echo get_test_name_by_id($test->testTypeId); ?> </td> <td> <?php if($test->isPending()) echo LangUtil::$generalTerms['PENDING_RESULTS']; else echo $test->decodeResult(); ?> </td> <td> <?php echo $test->getComments(); ?> </td> <td> <?php echo get_username_by_id($test->userId); ?> </td> <td> <?php echo $test->getVerifiedBy(); ?> </td> <td> <?php if(check_removal_record($_SESSION['lab_config_id'], $test->testId) && is_admin(get_user_by_id($_SESSION['user_id']))!=1){ echo "Test removed. Contact Lab admin"; } else if(check_removal_record($_SESSION['lab_config_id'], $test->testId) && is_admin(get_user_by_id($_SESSION['user_id']))==1){ ?> <a href='javascript:retrieve_deleted(<?php echo $test->testId;?>, "test")' title='Click to retrieve deleted Test'>Retrieve Test</a> <?php } else { ?> <a href="javascript:delete_test(<?php echo $test->testId ;?>)">Delete</a> <?php } ?> </td> <?php $specimen_object=Specimen::getById($test->specimenId); $pid=$specimen_object->patientId; $sid=$test->specimenId; ?> <!--<td><a href="javascript:get_report(<?php echo $pid;?>,<?php echo $sid;?> )">Report</a> </td>--> </tr> <?php }
echo LangUtil::$pageTerms['CMD_VIEWPROFILE']; ?> </a> </td><td> <?php } } ?> </td> <?php if (is_admin_check(get_user_by_id($_SESSION['user_id']))) { ?> <?php if (check_removal_record($_SESSION['lab_config_id'], $patient->patientId, "patient")) { ?> <td><a href='javascript:retrieve_deleted(<?php echo $patient->patientId; ?> , "patient")' title="Click to Retrieve the deleted patient" >Retrieve</a></td> <?php } else { ?> <td></td> <?php } } ?> </tr> <?php
} else { if ($a == 2) { # Fetch by additional ID $patient_list_all = search_patients_by_addlid($q); } else { if ($a == 3) { # Fetch by daily number $patient_list_all = search_patients_by_dailynum("-" . $q); } } } } // fetch from removal record and compare with patient_list $category = "patient"; foreach ($patient_list_all as $patient1) { if (check_removal_record($_SESSION['lab_config_id'], $patient1->patientId, $category) > 0) { continue; } else { $patient_list[] = $patient1; } } if ((count($patient_list) == 0 || $patient_list[0] == null) && $patient == null) { ?> <br> <div class='sidetip_nopos'> <?php echo LangUtil::$pageTerms['MSG_NOMATCH'] . " -"; if ($a == 0) { echo " " . LangUtil::$generalTerms['PATIENT_ID'] . " "; } else { if ($a == 1) {
$sid = $specimen->specimenId; $ch = check_removal_record($lid, $sid, "specimen"); if ($ch == 1) { echo "Already Removed"; } else { ?> <textarea name="remarks[]" id="remarks" rows="3" cols="22"></textarea> <?php } $cn++; ?> </td> <?php $sid = $specimen->specimenId; $ch = check_removal_record($lid, $sid); if ($ch == 1) { } else { ?> <input type="hidden" name="sp[]" value="<?php echo $sid; ?> " /> <?php } ?> </tr> <?php }