Poor"; $pattern_one ='red'; $pattern_two ='#BABABA'; if( (isset($_SESSION['user_KO']['username'])=="") and (isset($_COOKIE['remember_me'])=="")) { header("location: index.php"); } ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); require('includes/config_db.php'); if(!empty($_SESSION['rurl'])) { //$_SESSION['rurl']=$_GET['idu']; $rurl =$_SESSION['rurl']; header("location: $rurl"); } unset($_SESSION['answer']); $_SESSION["answer"][]=""; if(!empty($_POST)){ //print_r($_POST); $ethnicity = $_POST['ethnicity']; $birthday = $_POST['birthday']; $jobrole = $_POST['jobrole']; $Location = ""; $company =$_POST['company']; $project =$_POST['project']; $_SESSION['project'] =$project; $user_id=$_SESSION['uid']; $sql = "update employee set ethnicity='$ethnicity',birthday='$birthday',companty='$company',jobrole='$jobrole',location='$Location',project ='$project',p_status=1 where id='$user_id'"; if ($con->query($sql) === TRUE) { //echo "New record created successfully"; $message= "Record Updates successfully"; $_SESSION['pstatus']=1; $pstatus=1; } else { echo "Error: " . $sql . "
" . $con->error; } } if (isset($_POST["signature"])&& $dstatus==0 && $pstatus==1) { //$date =$_POST['dates']; $signature = $_POST['signature']; $signatureFileName = uniqid().'.png'; $signature = str_replace('data:image/png;base64,', '', $signature); $signature = str_replace(' ', '+', $signature); $data = base64_decode($signature); $file = 'signature/'.$signatureFileName; file_put_contents($file, $data); $signaturename =$signatureFileName; $user_id=$_SESSION['uid']; $sql = "update employee set signaturename='$signatureFileName',dclaimer=1 where id='$user_id'"; if ($con->query($sql) === TRUE) { //echo "New record created successfully"; $message= "Thank You For Accpeting The Discalimer"; $_SESSION['dstatus']=1; $dstatus=1; } else { echo "Error: " . $sql . "
" . $con->error; } } ?> Employee | Dashboard
Latest Report
[]]; foreach ($segments as $segment) { $fields = explode('|', $segment); $type = $fields[0]; switch ($type) { case 'MSH': $data['Client Name'] = $fields[5]; break; case 'PID': $nameParts = explode('^', $fields[5]); $data['Patient Name'] = $nameParts[1] . ' ' . $nameParts[0]; $data['DOB'] = $fields[7]; $data['Sex'] = $fields[8]; break; case 'PV1': $data['Sub-Client Name'] = $fields[10]; break; case 'ORC': $data['Client Ref'] = $fields[2]; $data['Lab Number'] = $fields[3]; break; case 'OBR': $data['Test Type'] = $fields[4]; break; case 'OBX': $testNameParts = explode('^', $fields[3]); $testCode = $testNameParts[0] ?? ''; $testName = $testNameParts[1] ?? $fields[3]; $data['Tests'][] = [ 'Test Code' => $testCode, 'Test Name' => $testName, 'Value' => $fields[5], 'Unit' => $fields[6], 'Reference Range' => $fields[7], 'Flag' => $fields[8] ]; break; } } return $data; } // Optional test descriptions $testDescriptions = [ 'GLU' => 'Glucose level in blood', 'HB' => 'Hemoglobin concentration', 'WBC' => 'White blood cell count', // Add more as needed ]; $sanitizedFilename = sanitizeFilename($filename); $filePath = $hl7Dir . '/' . $sanitizedFilename; $data = []; if ($sanitizedFilename && file_exists($filePath)) { $content = file_get_contents($filePath); $data = parseHL7($content); } else { die("Invalid or missing HL7 file."); } ?>
||
query($sql); if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) { $desc = $row["description"] ?? 'Description not available'; $url ="For More Informations ".$row["url"]; }} ?>
Test Result Reference Range


Outside reference range. Please consult your GP. Within reference range. If symptomatic, consult your GP.
No Report To Display.