[php]if ($_POST) {
$a = $_POST[‘age’];
$b = $_POST[‘shock’];
$c = $_POST[‘comorbid’];
$d = $_POST[‘endodone’];
$e = $_POST[‘diagnosis’];
$f = $_POST[‘bleeding’];
$var1 = ($a + $b + $c);
if ($d == 1) {
$var1 = $var1 + $e + $f;
}
$result = $var1;
echo “Result : “;
echo $result;
echo “*
“;
}
[/php]
[pullquote]The scoring system was devised to predict mortality with non-variceal upper GI bleeding.[/pullquote]
Formula :
Points are given for each variable.
Explanation of Result :
Rockall score less than 3 is associated with a good result.
Rockall score greater than 8 is associated with a poor result.
* Please verify all calculations prior to clinical use.