Update Tampilan View Access Pasien
This commit is contained in:
parent
c12efe19d2
commit
191a050644
@ -18,8 +18,28 @@ class AdminController extends BaseController {
|
|||||||
where tu.SP_ACCESSNUMBER='$accessnumber'";
|
where tu.SP_ACCESSNUMBER='$accessnumber'";
|
||||||
$query = $db->query($sql);
|
$query = $db->query($sql);
|
||||||
$results = $query->getResultArray();
|
$results = $query->getResultArray();
|
||||||
|
$hostordernumber = $results[0]['HOSTORDERNUMBER'];
|
||||||
$data['data'] = $results;
|
$data['data'] = $results;
|
||||||
|
|
||||||
|
$sql = "select concat([Patient First Name],' ',[Patient Last Name]) as [Patient Full Name], [Visit Description],
|
||||||
|
[Treating Doctor], [Payer Name] from cmod.dbo.CM_HIS_ORDER where [Visit Number] = '$hostordernumber'";
|
||||||
|
$query = $db->query($sql);
|
||||||
|
$results = $query->getResultArray();
|
||||||
|
|
||||||
|
if($results != null) {
|
||||||
|
$data['patient_fullname'] = $results[0]['Patient Full Name'];
|
||||||
|
$data['visit_description'] = $results[0]['Visit Description'];
|
||||||
|
$data['treating_doctor'] = $results[0]['Treating Doctor'];
|
||||||
|
$data['payer_name'] = $results[0]['Payer Name'];
|
||||||
|
} else {
|
||||||
|
$data['patient_fullname'] = "";
|
||||||
|
$data['visit_description'] = "";
|
||||||
|
$data['treating_doctor'] = "";
|
||||||
|
$data['payer_name'] = "";
|
||||||
|
}
|
||||||
|
|
||||||
$data['accessnumber'] = $accessnumber;
|
$data['accessnumber'] = $accessnumber;
|
||||||
|
|
||||||
return view('admin/dashboard_viewAccess', $data);
|
return view('admin/dashboard_viewAccess', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -18,9 +18,29 @@ class FoController extends BaseController {
|
|||||||
where tu.SP_ACCESSNUMBER='$accessnumber'";
|
where tu.SP_ACCESSNUMBER='$accessnumber'";
|
||||||
$query = $db->query($sql);
|
$query = $db->query($sql);
|
||||||
$results = $query->getResultArray();
|
$results = $query->getResultArray();
|
||||||
|
$hostordernumber = $results[0]['HOSTORDERNUMBER'];
|
||||||
$data['data'] = $results;
|
$data['data'] = $results;
|
||||||
|
|
||||||
|
$sql = "select concat([Patient First Name],' ',[Patient Last Name]) as [Patient Full Name], [Visit Description],
|
||||||
|
[Treating Doctor], [Payer Name] from cmod.dbo.CM_HIS_ORDER where [Visit Number] = '$hostordernumber'";
|
||||||
|
$query = $db->query($sql);
|
||||||
|
$results = $query->getResultArray();
|
||||||
|
|
||||||
|
if($results != null) {
|
||||||
|
$data['patient_fullname'] = $results[0]['Patient Full Name'];
|
||||||
|
$data['visit_description'] = $results[0]['Visit Description'];
|
||||||
|
$data['treating_doctor'] = $results[0]['Treating Doctor'];
|
||||||
|
$data['payer_name'] = $results[0]['Payer Name'];
|
||||||
|
} else {
|
||||||
|
$data['patient_fullname'] = "";
|
||||||
|
$data['visit_description'] = "";
|
||||||
|
$data['treating_doctor'] = "";
|
||||||
|
$data['payer_name'] = "";
|
||||||
|
}
|
||||||
|
|
||||||
$data['accessnumber'] = $accessnumber;
|
$data['accessnumber'] = $accessnumber;
|
||||||
return view('fo/dashboard_viewAccess', $data);
|
|
||||||
|
return view('admin/dashboard_viewAccess', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function changePass() {
|
public function changePass() {
|
||||||
|
|||||||
@ -18,9 +18,29 @@ class SamplingController extends BaseController {
|
|||||||
where tu.SP_ACCESSNUMBER='$accessnumber'";
|
where tu.SP_ACCESSNUMBER='$accessnumber'";
|
||||||
$query = $db->query($sql);
|
$query = $db->query($sql);
|
||||||
$results = $query->getResultArray();
|
$results = $query->getResultArray();
|
||||||
|
$hostordernumber = $results[0]['HOSTORDERNUMBER'];
|
||||||
$data['data'] = $results;
|
$data['data'] = $results;
|
||||||
|
|
||||||
|
$sql = "select concat([Patient First Name],' ',[Patient Last Name]) as [Patient Full Name], [Visit Description],
|
||||||
|
[Treating Doctor], [Payer Name] from cmod.dbo.CM_HIS_ORDER where [Visit Number] = '$hostordernumber'";
|
||||||
|
$query = $db->query($sql);
|
||||||
|
$results = $query->getResultArray();
|
||||||
|
|
||||||
|
if($results != null) {
|
||||||
|
$data['patient_fullname'] = $results[0]['Patient Full Name'];
|
||||||
|
$data['visit_description'] = $results[0]['Visit Description'];
|
||||||
|
$data['treating_doctor'] = $results[0]['Treating Doctor'];
|
||||||
|
$data['payer_name'] = $results[0]['Payer Name'];
|
||||||
|
} else {
|
||||||
|
$data['patient_fullname'] = "";
|
||||||
|
$data['visit_description'] = "";
|
||||||
|
$data['treating_doctor'] = "";
|
||||||
|
$data['payer_name'] = "";
|
||||||
|
}
|
||||||
|
|
||||||
$data['accessnumber'] = $accessnumber;
|
$data['accessnumber'] = $accessnumber;
|
||||||
return view('sampling/dashboard_viewAccess', $data);
|
|
||||||
|
return view('admin/dashboard_viewAccess', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function changePass() {
|
public function changePass() {
|
||||||
|
|||||||
@ -18,9 +18,29 @@ class UserController extends BaseController {
|
|||||||
where tu.SP_ACCESSNUMBER='$accessnumber'";
|
where tu.SP_ACCESSNUMBER='$accessnumber'";
|
||||||
$query = $db->query($sql);
|
$query = $db->query($sql);
|
||||||
$results = $query->getResultArray();
|
$results = $query->getResultArray();
|
||||||
|
$hostordernumber = $results[0]['HOSTORDERNUMBER'];
|
||||||
$data['data'] = $results;
|
$data['data'] = $results;
|
||||||
|
|
||||||
|
$sql = "select concat([Patient First Name],' ',[Patient Last Name]) as [Patient Full Name], [Visit Description],
|
||||||
|
[Treating Doctor], [Payer Name] from cmod.dbo.CM_HIS_ORDER where [Visit Number] = '$hostordernumber'";
|
||||||
|
$query = $db->query($sql);
|
||||||
|
$results = $query->getResultArray();
|
||||||
|
|
||||||
|
if($results != null) {
|
||||||
|
$data['patient_fullname'] = $results[0]['Patient Full Name'];
|
||||||
|
$data['visit_description'] = $results[0]['Visit Description'];
|
||||||
|
$data['treating_doctor'] = $results[0]['Treating Doctor'];
|
||||||
|
$data['payer_name'] = $results[0]['Payer Name'];
|
||||||
|
} else {
|
||||||
|
$data['patient_fullname'] = "";
|
||||||
|
$data['visit_description'] = "";
|
||||||
|
$data['treating_doctor'] = "";
|
||||||
|
$data['payer_name'] = "";
|
||||||
|
}
|
||||||
|
|
||||||
$data['accessnumber'] = $accessnumber;
|
$data['accessnumber'] = $accessnumber;
|
||||||
return view('user/dashboard_viewAccess', $data);
|
|
||||||
|
return view('admin/dashboard_viewAccess', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function changePass() {
|
public function changePass() {
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
if(isset($data[0])) {
|
if(isset($data[0])) {
|
||||||
$row = $data[0];
|
$row = $data[0];
|
||||||
$patnumber = $row['PATNUMBER'];
|
$patnumber = $row['PATNUMBER'];
|
||||||
|
$patnumber = substr($patnumber, -10);
|
||||||
$host = $row['HOSTORDERNUMBER'];
|
$host = $row['HOSTORDERNUMBER'];
|
||||||
$name = $row['NAME'];
|
$name = $row['NAME'];
|
||||||
?>
|
?>
|
||||||
@ -13,8 +14,38 @@ $name = $row['NAME'];
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<table class="table table-sm table-borderless">
|
<table class="table table-sm table-borderless">
|
||||||
<tr> <th>Access#</th> <th>:</th> <td><?=$accessnumber;?></td> </tr>
|
<tr>
|
||||||
<tr> <th>Patient</th> <th>:</th> <td><?=$patnumber;?> - <?=$name;?></td> </tr>
|
<th width='18%'>Access#</th>
|
||||||
|
<th>:</th>
|
||||||
|
<td width='31%'><?=$accessnumber;?></td>
|
||||||
|
|
||||||
|
<th>Visit Description</th>
|
||||||
|
<th>:</th>
|
||||||
|
<td><?=$visit_description;?></td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>MR#</th>
|
||||||
|
<th>:</th>
|
||||||
|
<td><?=$patnumber;?></td>
|
||||||
|
|
||||||
|
<th width='18%'>Payer Name</th>
|
||||||
|
<th>:</th>
|
||||||
|
<td width='31%'><?=$payer_name;?></td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<th>Patient Name</th>
|
||||||
|
<th>:</th>
|
||||||
|
<td><?=$patient_fullname;?></td>
|
||||||
|
|
||||||
|
<th>Treating Doctor</th>
|
||||||
|
<th>:</th>
|
||||||
|
<td><?=$treating_doctor;?></td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
if(isset($data[0])) {
|
if(isset($data[0])) {
|
||||||
$row = $data[0];
|
$row = $data[0];
|
||||||
$patnumber = $row['PATNUMBER'];
|
$patnumber = $row['PATNUMBER'];
|
||||||
|
$patnumber = substr($patnumber, -10);
|
||||||
$host = $row['HOSTORDERNUMBER'];
|
$host = $row['HOSTORDERNUMBER'];
|
||||||
$name = $row['NAME'];
|
$name = $row['NAME'];
|
||||||
?>
|
?>
|
||||||
@ -13,8 +14,38 @@ $name = $row['NAME'];
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<table class="table table-sm table-borderless">
|
<table class="table table-sm table-borderless">
|
||||||
<tr> <th>Access#</th> <th>:</th> <td><?=$accessnumber;?></td> </tr>
|
<tr>
|
||||||
<tr> <th>Patient</th> <th>:</th> <td><?=$patnumber;?> - <?=$name;?></td> </tr>
|
<th width='18%'>Access#</th>
|
||||||
|
<th>:</th>
|
||||||
|
<td width='31%'><?=$accessnumber;?></td>
|
||||||
|
|
||||||
|
<th>Visit Description</th>
|
||||||
|
<th>:</th>
|
||||||
|
<td><?=$visit_description;?></td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>MR#</th>
|
||||||
|
<th>:</th>
|
||||||
|
<td><?=$patnumber;?></td>
|
||||||
|
|
||||||
|
<th width='18%'>Payer Name</th>
|
||||||
|
<th>:</th>
|
||||||
|
<td width='31%'><?=$payer_name;?></td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<th>Patient Name</th>
|
||||||
|
<th>:</th>
|
||||||
|
<td><?=$patient_fullname;?></td>
|
||||||
|
|
||||||
|
<th>Treating Doctor</th>
|
||||||
|
<th>:</th>
|
||||||
|
<td><?=$treating_doctor;?></td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -28,8 +59,8 @@ $name = $row['NAME'];
|
|||||||
<tr>
|
<tr>
|
||||||
<td></td> <td></td> <td>All</td>
|
<td></td> <td></td> <td>All</td>
|
||||||
<td>
|
<td>
|
||||||
<button type='button' class='btn btn-dark m-0 px-2 py-1' onclick="printAllLabel(<?=$accessnumber;?>)"> <h6 class='p-0 m-0'><i class='bi bi-printer'></i></h6> </button>
|
<button type='button' class='btn btn-dark m-0 px-2 py-1' onclick="printAllLabel(<?=$accessnumber;?>)"> <h6 class='p-0 m-0'><i class='bi bi-printer'></i></h6> </button>
|
||||||
<button type='button' class='btn btn-success m-0 px-2 py-1' onclick='collectAll(<?=$accessnumber;?>)'><h6 class='p-0 m-0'>Coll.</h6></button>
|
<button type='button' class='btn btn-success m-0 px-2 py-1' onclick='collectAll(<?=$accessnumber;?>)'><h6 class='p-0 m-0'>Coll.</h6></button>
|
||||||
<!-- <button class='badge bg-black text-white m-0 px-2 py-1' onclick='uncollectAll(<?=$accessnumber;?>)'>un-collect</button> -->
|
<!-- <button class='badge bg-black text-white m-0 px-2 py-1' onclick='uncollectAll(<?=$accessnumber;?>)'>un-collect</button> -->
|
||||||
<button type='button' class='btn btn-primary m-0 px-2 py-1' onclick='unreceiveAll(<?=$accessnumber;?>)'><h6 class='p-0 m-0'>Un-Rec.</h6></button>
|
<button type='button' class='btn btn-primary m-0 px-2 py-1' onclick='unreceiveAll(<?=$accessnumber;?>)'><h6 class='p-0 m-0'>Un-Rec.</h6></button>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
if(isset($data[0])) {
|
if(isset($data[0])) {
|
||||||
$row = $data[0];
|
$row = $data[0];
|
||||||
$patnumber = $row['PATNUMBER'];
|
$patnumber = $row['PATNUMBER'];
|
||||||
|
$patnumber = substr($patnumber, -10);
|
||||||
$host = $row['HOSTORDERNUMBER'];
|
$host = $row['HOSTORDERNUMBER'];
|
||||||
$name = $row['NAME'];
|
$name = $row['NAME'];
|
||||||
?>
|
?>
|
||||||
@ -13,8 +14,38 @@ $name = $row['NAME'];
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<table class="table table-sm table-borderless">
|
<table class="table table-sm table-borderless">
|
||||||
<tr> <th>Access#</th> <th>:</th> <td><?=$accessnumber;?></td> </tr>
|
<tr>
|
||||||
<tr> <th>Patient</th> <th>:</th> <td><?=$patnumber;?> - <?=$name;?></td> </tr>
|
<th width='18%'>Access#</th>
|
||||||
|
<th>:</th>
|
||||||
|
<td width='31%'><?=$accessnumber;?></td>
|
||||||
|
|
||||||
|
<th>Visit Description</th>
|
||||||
|
<th>:</th>
|
||||||
|
<td><?=$visit_description;?></td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>MR#</th>
|
||||||
|
<th>:</th>
|
||||||
|
<td><?=$patnumber;?></td>
|
||||||
|
|
||||||
|
<th width='18%'>Payer Name</th>
|
||||||
|
<th>:</th>
|
||||||
|
<td width='31%'><?=$payer_name;?></td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<th>Patient Name</th>
|
||||||
|
<th>:</th>
|
||||||
|
<td><?=$patient_fullname;?></td>
|
||||||
|
|
||||||
|
<th>Treating Doctor</th>
|
||||||
|
<th>:</th>
|
||||||
|
<td><?=$treating_doctor;?></td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
if(isset($data[0])) {
|
if(isset($data[0])) {
|
||||||
$row = $data[0];
|
$row = $data[0];
|
||||||
$patnumber = $row['PATNUMBER'];
|
$patnumber = $row['PATNUMBER'];
|
||||||
|
$patnumber = substr($patnumber, -10);
|
||||||
$host = $row['HOSTORDERNUMBER'];
|
$host = $row['HOSTORDERNUMBER'];
|
||||||
$name = $row['NAME'];
|
$name = $row['NAME'];
|
||||||
?>
|
?>
|
||||||
@ -13,8 +14,38 @@ $name = $row['NAME'];
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<table class="table table-sm table-borderless">
|
<table class="table table-sm table-borderless">
|
||||||
<tr> <th>Access#</th> <th>:</th> <td><?=$accessnumber;?></td> </tr>
|
<tr>
|
||||||
<tr> <th>Patient</th> <th>:</th> <td><?=$patnumber;?> - <?=$name;?></td> </tr>
|
<th width='18%'>Access#</th>
|
||||||
|
<th>:</th>
|
||||||
|
<td width='31%'><?=$accessnumber;?></td>
|
||||||
|
|
||||||
|
<th>Visit Description</th>
|
||||||
|
<th>:</th>
|
||||||
|
<td><?=$visit_description;?></td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>MR#</th>
|
||||||
|
<th>:</th>
|
||||||
|
<td><?=$patnumber;?></td>
|
||||||
|
|
||||||
|
<th width='18%'>Payer Name</th>
|
||||||
|
<th>:</th>
|
||||||
|
<td width='31%'><?=$payer_name;?></td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<th>Patient Name</th>
|
||||||
|
<th>:</th>
|
||||||
|
<td><?=$patient_fullname;?></td>
|
||||||
|
|
||||||
|
<th>Treating Doctor</th>
|
||||||
|
<th>:</th>
|
||||||
|
<td><?=$treating_doctor;?></td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user