$machine_result = ""; $test_date = ""; break; } $result = ""; if (!empty($row_override_result)) { $or = end(explode("::", $row_override_result)); $or = explode("|||", $or); $result = $or[0]; $test_date = ""; } else { $result = $machine_result; } $result = getVLNumericResult($result, $machine_type, $factor); $numerical_result = getNumericalResult($result); $suppressed = isSuppressed2($numerical_result, $sample_type, $test_date); switch ($suppressed) { case 'YES': // patient suppressed, according to the guidlines at that time $smiley = "smiley.smile.gif"; $recommendation = getRecommendation($suppressed, $sampleVLTestDate, $sampleType); break; case 'NO': // patient suppressed, according to the guidlines at that time $smiley = "smiley.sad.gif"; $recommendation = getRecommendation($suppressed, $sampleVLTestDate, $sampleType); break; default: $smiley = "smiley.sad.gif"; $recommendation = "There is No Result Given. The Test Failed the Quality Control Criteria. We advise you send a a new sample."; break;
//remove "Copies / mL" and "," from $vlResult $numericVLResult=0; $numericVLResult=preg_replace("/Copies \/ mL/s","",$vlResult); $numericVLResult=preg_replace("/,/s","",$numericVLResult); $numericVLResult=preg_replace("/\</s","",$numericVLResult); $numericVLResult=preg_replace("/\</s","",$numericVLResult); $numericVLResult=preg_replace("/\>/s","",$numericVLResult); $numericVLResult=trim($numericVLResult); //multiply by 2 //$numericVLResult*=2; $smiley=0; $recommendation=0; //$suppressed=getDetailedTableInfo2("vl_results_merged","vlSampleID='$vlSampleID'","suppressed");//suppression status $suppressed=isSuppressed2($numericVLResult,$sampleType,$sampleVLTestDate); switch ($suppressed) { case 'YES': // patient suppressed, according to the guidlines at that time $smiley="<img src=\"$system_default_path"."images/smiley.smile.gif\" />"; $recommendation=getRecommendation($suppressed,$sampleVLTestDate,$sampleType); break; case 'NO': // patient suppressed, according to the guidlines at that time $smiley="<img src=\"$system_default_path"."images/smiley.sad.gif\" />"; $recommendation=getRecommendation($suppressed,$sampleVLTestDate,$sampleType); break; default: $smiley="<img src=\"$home_url/images/smiley.sad.gif\" />"; $recommendation="There is No Result Given. The Test Failed the Quality Control Criteria. We advise you send a a new sample."; break;