//$tips_string = LangUtil::$pageTerms['TIPS_CATALOG']; $tips_string = "To know more about a particular field select on the [?] next to the field name."; //$page_elems->getSideTip("Tips", $tips_string); ?> <b><?php echo LangUtil::$pageTerms['EDIT_TEST_TYPE']; ?> </b> | <a href="country_catalog.php?show_t=1"><?php echo LangUtil::$generalTerms['CMD_CANCEL']; ?> </a> <br><br> <?php $testTypeMapping = TestTypeMapping::getById($_REQUEST['tid']); if ($testTypeMapping == null) { ?> <div class='sidetip_nopos'> <?php echo LangUtil::$generalTerms['MSG_NOTFOUND']; ?> </div> <?php include "includes/footer.php"; return; } # Fetch all measures currently on this test type $measure_list = $testTypeMapping->getMeasureIds(); # Display test type info table
} //$selected_test_ids = $lab_config->getTestTypeIds(); if ($cat_code != 0) { # Fetch all tests belonging to this category (aka lab section) $cat_test_types = TestTypeMapping::getByCategory($cat_code); $selected_test_ids = array(); foreach ($cat_test_types as $test_type) { $selected_test_ids[] = $test_type->testId; } //$matched_test_ids = array_intersect($cat_test_ids, $selected_test_ids); //$selected_test_ids = array_values($matched_test_ids); } # Fetch TestType objects using selected test_type_ids. $selected_test_types = array(); foreach ($selected_test_ids as $test_type_id) { $test = TestTypeMapping::getById($test_type_id); $selected_test_types[] = $test; } # Fetch site-wide settings $site_settings = GlobalInfectionReport::getByKeys($_SESSION['user_id'], 0, 0); if ($site_settings == null) { echo LangUtil::$pageTerms['TIPS_CONFIGINFECTION']; return; } $age_group_list = $site_settings->getAgeGroupAsList(); ?> <table> <tbody> <tr> <td><?php //echo LangUtil::$generalTerms['FACILITY'];
function getAggregateTestTypeById($testTypeId) { return TestTypeMapping::getById($testTypeId); }