[php]
if ($_POST) {
$a = $_POST[‘COPD’];
$b = $_POST[‘mi’];
$c = $_POST[‘pad’];
$d = $_POST[‘epilepsy’];
$e = $_POST[‘drugs’];
$f = $_POST[‘heart’];
$g = $_POST[‘cancer’];
$h = $_POST[‘mets’];
$i = $_POST[‘CKD’];
$j = $_POST[‘imets’];
$k = $_POST[‘ami’];
$l = $_POST[‘acancer’];
$step1 = $a + $b + $c + $d + $e + $f + $g + $i;
$step2 = $i + $j + $k + $l;
if ($step1 == 0)
{
$result = “0”;
}
if ($step1 == 1)
{
$result = “1 + 0”;
}
if ($step1 > 1)
{
$result = “1 + 1”;
}
if ($step2 > 1)
{
$result = “3 + 1”;
}
if ($step2 == 1)
{
$result = “3 + 0”;
}
if ($h == 1 AND $step1 == 0)
{
$result = “5 + 0”;
}
if ($h == 1 AND $step1 > 0)
{
$result = “5 + 1”;
}
echo “Result : “;
echo $result;
echo ” *
(see graph below for mortality)
“;
}
[/php]
Summary
Scoring system to predict mortality among patients with cirrhosis based on 9 comorbidities.
Formula
Points assigned based on co-morbidities.