[php]
if ($_POST) {
$a = $_POST[‘gender’];
$b = $_POST[‘hgb’];
$c = $_POST[‘bun’];
$d = $_POST[‘sbp’];
$e = $_POST[‘hr’];
$f = $_POST[‘melena’];
$g = $_POST[‘syncope’];
$h = $_POST[‘liver’];
$i = $_POST[‘heart’];if ($a == 2) {
if ($b == 1) {
$b = “0”;
}
if ($b == 3) {
$b = “1”;
}
}$var1 = ($b + $c + $d + $e + $f + $g + $h + $i);
$result = $var1;
echo “Result : “;
echo $result;
echo “*”;
}
[/php]
[pullquote]The Glasgow – Blatchford Score is used to predict the need for EGD in patients with evidence of upper GI bleeding. The score has been validated to show that patients with a score of 0 are low risk.[/pullquote]
Formula :
Points are given for each variable.
Explanation of Result :
A score of 0 is low risk. All other values are considered “high risk”.
* Please verify all calculations prior to clinical use.