[php]
if ($_POST) {
$a = $_POST[‘ast’];
$b = $_POST[‘alt’];
$c = $_POST[‘bmi’];
$d = $_POST[‘dm’];
$convert = $_POST[‘convert’];
if ($convert == “yes”) {
$a = $a * 58.82;
$b = $b * 58.82;
}
if ((empty($a)) || (empty($b)) || (empty($c))) {
$result = “Fill in all variables”;
}if (empty($result)) {
$var1 = $a / $b;
if ($var1 < 0.8) {
$aar = "0";
}
if ($var1 >= 0.8) {
$aar = “1”;
}
if ($c >= 28) {
$bmi = “1”;
}
if ($c < 28) {
$bmi = "0";
}
$result = $aar + $bmi + $d;
if ($result < 2) {
$explain = "Excludes advanced fibrosis (Metavir F3/4)";
}
if ($result >=2) {
$explain = “Advanced fibrosis (Metavir F3/4)”;
}
}
echo $result;
echo ” “;
echo $explain;
echo “*”;
}
[/php]
Formula :
BARD Score less than 2 has a strong NPV for advanced hepatic fibrosis associated with Nonalcoholic Fatty Liver Disease (97%).
Explanation of Result :
A BARD score of 2-4 points was associated with F3 or F4 stages of fibrosis with an odds ratio of 17.333 (95% Cl; 3,639 – 82.558) and negative predictive value of 97%.
* Please verify all calculations prior to clinical use.