diff --git a/app/Controllers/AdminController.php b/app/Controllers/AdminController.php
index 3fcc93f..8ef89c7 100644
--- a/app/Controllers/AdminController.php
+++ b/app/Controllers/AdminController.php
@@ -18,8 +18,28 @@ class AdminController extends BaseController {
where tu.SP_ACCESSNUMBER='$accessnumber'";
$query = $db->query($sql);
$results = $query->getResultArray();
+ $hostordernumber = $results[0]['HOSTORDERNUMBER'];
$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;
+
return view('admin/dashboard_viewAccess', $data);
}
diff --git a/app/Controllers/FoController.php b/app/Controllers/FoController.php
index f05c0da..c16c0c1 100644
--- a/app/Controllers/FoController.php
+++ b/app/Controllers/FoController.php
@@ -18,9 +18,29 @@ class FoController extends BaseController {
where tu.SP_ACCESSNUMBER='$accessnumber'";
$query = $db->query($sql);
$results = $query->getResultArray();
+ $hostordernumber = $results[0]['HOSTORDERNUMBER'];
$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;
- return view('fo/dashboard_viewAccess', $data);
+
+ return view('admin/dashboard_viewAccess', $data);
}
public function changePass() {
diff --git a/app/Controllers/SamplingController.php b/app/Controllers/SamplingController.php
index 51781f4..23734f6 100644
--- a/app/Controllers/SamplingController.php
+++ b/app/Controllers/SamplingController.php
@@ -18,9 +18,29 @@ class SamplingController extends BaseController {
where tu.SP_ACCESSNUMBER='$accessnumber'";
$query = $db->query($sql);
$results = $query->getResultArray();
+ $hostordernumber = $results[0]['HOSTORDERNUMBER'];
$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;
- return view('sampling/dashboard_viewAccess', $data);
+
+ return view('admin/dashboard_viewAccess', $data);
}
public function changePass() {
diff --git a/app/Controllers/UserController.php b/app/Controllers/UserController.php
index bceb8c9..3e07f0b 100644
--- a/app/Controllers/UserController.php
+++ b/app/Controllers/UserController.php
@@ -18,9 +18,29 @@ class UserController extends BaseController {
where tu.SP_ACCESSNUMBER='$accessnumber'";
$query = $db->query($sql);
$results = $query->getResultArray();
+ $hostordernumber = $results[0]['HOSTORDERNUMBER'];
$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;
- return view('user/dashboard_viewAccess', $data);
+
+ return view('admin/dashboard_viewAccess', $data);
}
public function changePass() {
diff --git a/app/Views/admin/dashboard_viewAccess.php b/app/Views/admin/dashboard_viewAccess.php
index d113dc3..39ce69d 100644
--- a/app/Views/admin/dashboard_viewAccess.php
+++ b/app/Views/admin/dashboard_viewAccess.php
@@ -2,6 +2,7 @@
if(isset($data[0])) {
$row = $data[0];
$patnumber = $row['PATNUMBER'];
+$patnumber = substr($patnumber, -10);
$host = $row['HOSTORDERNUMBER'];
$name = $row['NAME'];
?>
@@ -13,8 +14,38 @@ $name = $row['NAME'];
- | Access# | : | =$accessnumber;?> |
- | Patient | : | =$patnumber;?> - =$name;?> |
+
+ | Access# |
+ : |
+ =$accessnumber;?> |
+
+ Visit Description |
+ : |
+ =$visit_description;?> |
+
+
+
+ | MR# |
+ : |
+ =$patnumber;?> |
+
+ Payer Name |
+ : |
+ =$payer_name;?> |
+
+
+
+
+ | Patient Name |
+ : |
+ =$patient_fullname;?> |
+
+ Treating Doctor |
+ : |
+ =$treating_doctor;?> |
+
+
+
diff --git a/app/Views/fo/dashboard_viewAccess.php b/app/Views/fo/dashboard_viewAccess.php
index f5c1758..39ce69d 100644
--- a/app/Views/fo/dashboard_viewAccess.php
+++ b/app/Views/fo/dashboard_viewAccess.php
@@ -2,6 +2,7 @@
if(isset($data[0])) {
$row = $data[0];
$patnumber = $row['PATNUMBER'];
+$patnumber = substr($patnumber, -10);
$host = $row['HOSTORDERNUMBER'];
$name = $row['NAME'];
?>
@@ -13,8 +14,38 @@ $name = $row['NAME'];
- | Access# | : | =$accessnumber;?> |
- | Patient | : | =$patnumber;?> - =$name;?> |
+
+ | Access# |
+ : |
+ =$accessnumber;?> |
+
+ Visit Description |
+ : |
+ =$visit_description;?> |
+
+
+
+ | MR# |
+ : |
+ =$patnumber;?> |
+
+ Payer Name |
+ : |
+ =$payer_name;?> |
+
+
+
+
+ | Patient Name |
+ : |
+ =$patient_fullname;?> |
+
+ Treating Doctor |
+ : |
+ =$treating_doctor;?> |
+
+
+
@@ -28,8 +59,8 @@ $name = $row['NAME'];
| | All |
-
-
+
+
|
diff --git a/app/Views/sampling/dashboard_viewAccess.php b/app/Views/sampling/dashboard_viewAccess.php
index d113dc3..39ce69d 100644
--- a/app/Views/sampling/dashboard_viewAccess.php
+++ b/app/Views/sampling/dashboard_viewAccess.php
@@ -2,6 +2,7 @@
if(isset($data[0])) {
$row = $data[0];
$patnumber = $row['PATNUMBER'];
+$patnumber = substr($patnumber, -10);
$host = $row['HOSTORDERNUMBER'];
$name = $row['NAME'];
?>
@@ -13,8 +14,38 @@ $name = $row['NAME'];
- | Access# | : | =$accessnumber;?> |
- | Patient | : | =$patnumber;?> - =$name;?> |
+
+ | Access# |
+ : |
+ =$accessnumber;?> |
+
+ Visit Description |
+ : |
+ =$visit_description;?> |
+
+
+
+ | MR# |
+ : |
+ =$patnumber;?> |
+
+ Payer Name |
+ : |
+ =$payer_name;?> |
+
+
+
+
+ | Patient Name |
+ : |
+ =$patient_fullname;?> |
+
+ Treating Doctor |
+ : |
+ =$treating_doctor;?> |
+
+
+
diff --git a/app/Views/user/dashboard_viewAccess.php b/app/Views/user/dashboard_viewAccess.php
index d113dc3..39ce69d 100644
--- a/app/Views/user/dashboard_viewAccess.php
+++ b/app/Views/user/dashboard_viewAccess.php
@@ -2,6 +2,7 @@
if(isset($data[0])) {
$row = $data[0];
$patnumber = $row['PATNUMBER'];
+$patnumber = substr($patnumber, -10);
$host = $row['HOSTORDERNUMBER'];
$name = $row['NAME'];
?>
@@ -13,8 +14,38 @@ $name = $row['NAME'];
- | Access# | : | =$accessnumber;?> |
- | Patient | : | =$patnumber;?> - =$name;?> |
+
+ | Access# |
+ : |
+ =$accessnumber;?> |
+
+ Visit Description |
+ : |
+ =$visit_description;?> |
+
+
+
+ | MR# |
+ : |
+ =$patnumber;?> |
+
+ Payer Name |
+ : |
+ =$payer_name;?> |
+
+
+
+
+ | Patient Name |
+ : |
+ =$patient_fullname;?> |
+
+ Treating Doctor |
+ : |
+ =$treating_doctor;?> |
+
+
+