$record_list[] = $value; $data_list = array(); } foreach ($record_list as $record_set) { $value = $record_set; $test = $value[0]; $specimen = $value[1]; $id = $test->testTypeId; $clinical_data = get_clinical_data_by_id($test->testTypeId); ?> <?php if ($report_config->useSpecimenName == 1) { echo "<h3>"; echo LangUtil::$generalTerms['TYPE'] . " - "; echo get_specimen_name_by_id($specimen->specimenTypeId) . "</h3>"; } if ($report_config->useTestName == 1) { echo "<h3>"; echo LangUtil::$generalTerms['TEST'] . " - "; echo get_test_name_by_id($test->testTypeId) . "</h3>"; } if ($report_config->useSpecimenAddlId != 0) { echo LangUtil::$generalTerms['SPECIMEN_ID'] . " - "; echo $specimen->getAuxId(); echo "<br>"; } if ($clinical_data != '') { $data_list[$id] = $clinical_data; } if ($report_config->useDailyNum == 1 && $daily_number_same === false) {
} if ($report_config->useSpecimenAddlId == 1) { echo "<td>"; $specimen->getAuxId(); echo "</td>"; } if ($report_config->useDailyNum == 1) { ?> <td><?php echo $specimen->getDailyNumFull(); ?> </td> <?php } if ($report_config->useSpecimenName == 1) { echo "<td>" . get_specimen_name_by_id($specimen->specimenTypeId) . "</td>"; } if ($report_config->usePatientName == 1) { ?> <td><?php echo $patient->name; ?> </td> <?php } if ($report_config->useAge == 1) { ?> <td><?php echo $patient->getAgeNumber(); ?> </td>
public function getReportResultsForm($form_name, $form_id) { $specimen_list = Specimen::getUnreported(); if($specimen_list == null || count($specimen_list) == 0) return; ?> <table class='tablesorter'> <thead> <tr valign='top'> <?php if($_SESSION['pid'] != 0) { ?> <th><?php echo LangUtil::$generalTerms['PATIENT_ID']; ?></th> <?php } if($_SESSION['dnum'] != 0) { ?> <th><?php echo LangUtil::$generalTerms['PATIENT_DAILYNUM']; ?></th> <?php } if($_SESSION['s_addl'] != 0) { ?> <th><?php echo LangUtil::$generalTerms['SPECIMEN_ID']; ?></th> <?php } ?> <th><?php echo LangUtil::$generalTerms['PATIENT_NAME']; ?></th> <th><?php echo LangUtil::$generalTerms['SPECIMEN_TYPE']; ?></th> <th><?php echo LangUtil::$generalTerms['C_DATE']; ?></th> <th><?php echo LangUtil::$generalTerms['TESTS']; ?></th> <th><?php echo LangUtil::$generalTerms['REPORT_TO']; ?></th> <th> <?php echo LangUtil::$generalTerms['REPORTED']; ?>? <input type='checkbox' name='check_all' id='check_all' onclick='checkoruncheckall();'> </input> </th> </tr> </thead> <tbody> <?php foreach($specimen_list as $specimen) { $test_list = get_tests_by_specimen_id($specimen->specimenId); $patient = Patient::getById($specimen->patientId); ?> <tr valign='top'> <input type='hidden' name='sid[]' value='<?php echo $specimen->specimenId; ?>'></input> <?php if($_SESSION['pid'] != 0) { ?> <td><?php echo $specimen->getSurrogateId(); ?></td> <?php } if($_SESSION['dnum'] != 0) { ?> <td><?php $specimen->getDailyNum(); ?></td> <?php } if($_SESSION['s_addl'] != 0) { ?> <td><?php $specimen->getAuxId(); ?></td> <?php } ?> <td><?php echo $patient->getName(); ?></td> <td><?php echo get_specimen_name_by_id($specimen->specimenTypeId); ?></td> <td><?php echo DateLib::mysqlToString($specimen->dateCollected)." ".$specimen->timeCollected; ?></td> <td> <?php foreach($test_list as $test) { echo get_test_name_by_id($test->testTypeId); echo "<br>"; } ?> </td> <td><?php echo $specimen->getReportTo(); ?></td> <td> <center> <input type='checkbox' class='report_flag' name='mark_<?php echo $specimen->specimenId; ?>'></input> </center> </td> </tr> <?php } ?> </tbody> </table> <?php }
if ($specimen == null) { echo "<span class='error_string'>" . LangUtil::$generalTerms['SPECIMEN_ID'] . " " . $specimen_id . " " . LangUtil::$generalTerms['MSG_NOTFOUND'] . ".</span>"; return; } if ($specimen->statusCodeId == Specimen::$STATUS_DONE) { ?> <div class='sidetip_nopos' style='width:350px;'> <?php echo LangUtil::$pageTerms['MSG_ALREADYENTERED'] . "- "; if ($_SESSION['sid'] != 0) { echo "<br>"; echo LangUtil::$generalTerms['SPECIMEN_ID'] . ": "; echo $specimen->getAuxId(); } echo "<br>"; echo LangUtil::$generalTerms['SPECIMEN_TYPE'] . ": " . get_specimen_name_by_id($specimen->specimenTypeId); echo "<br>"; //if($_SESSION['pnamehide'] == 0) if ($_SESSION['user_level'] == $LIS_TECH_SHOWPNAME) { echo LangUtil::$generalTerms['PATIENT'] . ": {$patient->name} ({$patient->sex} " . $patient->getAgeNumber() . ") <br>"; } else { echo LangUtil::$generalTerms['GENDER'] . "/" . LangUtil::$generalTerms['AGE'] . ": {$patient->sex} /" . $patient->getAgeNumber() . "<br>"; } ?> <br><a href='specimen_info.php?sid=<?php echo $specimen->specimenId; ?> '> <?php echo LangUtil::$generalTerms['DETAILS']; ?> »</a>
echo "<th ></th>"; } ?> <tr> </thead> <tbody> <?php # Fetching specimen IDs but keeping the variables similar to reports_testcount_grouped.php $test_type_list = get_lab_config_specimen_types($lab_config->id); //$test_type_list = get_lab_config_test_types($lab_config->id); // to get test type ids $saved_db = DbUtil::switchToLabConfig($lab_config->id); $tests_done_list = array(); $tests_list = array(); $summ = 0; foreach ($test_type_list as $test_type_id) { $test_name = get_specimen_name_by_id($test_type_id); echo "<tr valign='top'>"; echo "<td>"; echo $test_name; echo "</td>"; if ($byGender == 1) { echo "<td>"; echo "M"; echo "<br>"; echo "F"; echo "</td>"; } # Group by age set to true: Fetch age slots from DB if ($byAge == 1) { $age_slot_list = decodeAgeGroups($configArray['age_groups']); $count_male_t_total = 0;