Update Dashboard View Description & Dashboard Visit diganti menjadi Reffid
This commit is contained in:
parent
55052b966e
commit
748b668a80
@ -14,7 +14,7 @@ class FoController extends BaseController {
|
||||
$data['usercityid'] = session()->get('usercityid');
|
||||
|
||||
$db = \Config\Database::connect();
|
||||
$sql = "select sr.HOSTORDERNUMBER, tu.SAMPLETYPE, ds.SHORTTEXT, tu.TUBESTATUS, ct.COLLSTATUS, ct.TUBECOMMENT from SP_TUBES tu
|
||||
$sql = "SELECT sr.HOSTORDERNUMBER, tu.SAMPLETYPE, ds.SHORTTEXT, tu.TUBESTATUS, ct.COLLSTATUS, ct.TUBECOMMENT from SP_TUBES tu
|
||||
left join SP_REQUESTS sr on tu.SP_ACCESSNUMBER=sr.SP_ACCESSNUMBER
|
||||
left join DICT_SAMPLES_TYPES ds on ds.SAMPCODE= tu.SAMPLETYPE
|
||||
left join cmod.dbo.CM_TUBES ct on ct.SAMPLETYPE=tu.SAMPLETYPE and ct.ACCESSNUMBER=tu.SP_ACCESSNUMBER
|
||||
@ -24,23 +24,27 @@ class FoController extends BaseController {
|
||||
$visit_number = $results[0]['HOSTORDERNUMBER'];
|
||||
$data['data'] = $results;
|
||||
|
||||
$sql = "select hp.PATNUMBER, hp.PATNAME, ho.PAYERNAME, ho.TREATDOC
|
||||
from cmod.dbo.CM_HIS_ORDERS ho
|
||||
left join cmod.dbo.CM_HIS_PATIENTS hp on hp.PATID=ho.PATID
|
||||
WHERE ho.VISITNUMBER='$visit_number'";
|
||||
// $sql = "select hp.PATNUMBER, hp.PATNAME, ho.PAYERNAME, ho.TREATDOC
|
||||
// from cmod.dbo.CM_HIS_ORDERS ho
|
||||
// left join cmod.dbo.CM_HIS_PATIENTS hp on hp.PATID=ho.PATID
|
||||
// WHERE ho.VISITNUMBER='$visit_number'";
|
||||
$sql = "SELECT ctp.PATNUMBER, CONCAT(ctp.FIRSTNAME, ' ', ctp.LASTNAME) as PATNAME, ctr.AGENT as PAYERNAME, ctr.DOC as TREATDOC, ctr.VISITTYPE
|
||||
from cmod.dbo.CM_TM_REQUESTS ctr
|
||||
left join cmod.dbo.CM_TM_PATIENTS ctp on ctr.PATID = ctp.PATID
|
||||
where ctr.REFFID='$visit_number'";
|
||||
$query = $db->query($sql);
|
||||
$results = $query->getResultArray();
|
||||
|
||||
if($results != null) {
|
||||
$data['patnumber'] = $results[0]['PATNUMBER'];
|
||||
$data['patient_fullname'] = $results[0]['PATNAME'];
|
||||
// $data['visit_description'] = $results[0]['Visit Description'];
|
||||
$data['visit_description'] = $results[0]['VISITTYPE'];
|
||||
$data['treating_doctor'] = $results[0]['TREATDOC'];
|
||||
$data['payer_name'] = $results[0]['PAYERNAME'];
|
||||
} else {
|
||||
$data['patnumber'] = "";
|
||||
$data['patient_fullname'] = "";
|
||||
// $data['visit_description'] = "";
|
||||
$data['visit_description'] = "";
|
||||
$data['treating_doctor'] = "";
|
||||
$data['payer_name'] = "";
|
||||
}
|
||||
|
||||
@ -14,7 +14,7 @@ class SamplingController extends BaseController {
|
||||
$data['usercityid'] = session()->get('usercityid');
|
||||
|
||||
$db = \Config\Database::connect();
|
||||
$sql = "select sr.HOSTORDERNUMBER, tu.SAMPLETYPE, ds.SHORTTEXT, tu.TUBESTATUS, ct.COLLSTATUS, ct.TUBECOMMENT from SP_TUBES tu
|
||||
$sql = "SELECT sr.HOSTORDERNUMBER, tu.SAMPLETYPE, ds.SHORTTEXT, tu.TUBESTATUS, ct.COLLSTATUS, ct.TUBECOMMENT from SP_TUBES tu
|
||||
left join SP_REQUESTS sr on tu.SP_ACCESSNUMBER=sr.SP_ACCESSNUMBER
|
||||
left join DICT_SAMPLES_TYPES ds on ds.SAMPCODE= tu.SAMPLETYPE
|
||||
left join cmod.dbo.CM_TUBES ct on ct.SAMPLETYPE=tu.SAMPLETYPE and ct.ACCESSNUMBER=tu.SP_ACCESSNUMBER
|
||||
@ -24,23 +24,27 @@ class SamplingController extends BaseController {
|
||||
$visit_number = $results[0]['HOSTORDERNUMBER'];
|
||||
$data['data'] = $results;
|
||||
|
||||
$sql = "select hp.PATNUMBER, hp.PATNAME, ho.PAYERNAME, ho.TREATDOC
|
||||
from cmod.dbo.CM_HIS_ORDERS ho
|
||||
left join cmod.dbo.CM_HIS_PATIENTS hp on hp.PATID=ho.PATID
|
||||
WHERE ho.VISITNUMBER='$visit_number'";
|
||||
// $sql = "select hp.PATNUMBER, hp.PATNAME, ho.PAYERNAME, ho.TREATDOC
|
||||
// from cmod.dbo.CM_HIS_ORDERS ho
|
||||
// left join cmod.dbo.CM_HIS_PATIENTS hp on hp.PATID=ho.PATID
|
||||
// WHERE ho.VISITNUMBER='$visit_number'";
|
||||
$sql = "SELECT ctp.PATNUMBER, CONCAT(ctp.FIRSTNAME, ' ', ctp.LASTNAME) as PATNAME, ctr.AGENT as PAYERNAME, ctr.DOC as TREATDOC, ctr.VISITTYPE
|
||||
from cmod.dbo.CM_TM_REQUESTS ctr
|
||||
left join cmod.dbo.CM_TM_PATIENTS ctp on ctr.PATID = ctp.PATID
|
||||
where ctr.REFFID='$visit_number'";
|
||||
$query = $db->query($sql);
|
||||
$results = $query->getResultArray();
|
||||
|
||||
if($results != null) {
|
||||
$data['patnumber'] = $results[0]['PATNUMBER'];
|
||||
$data['patient_fullname'] = $results[0]['PATNAME'];
|
||||
// $data['visit_description'] = $results[0]['Visit Description'];
|
||||
$data['visit_description'] = $results[0]['VISITTYPE'];
|
||||
$data['treating_doctor'] = $results[0]['TREATDOC'];
|
||||
$data['payer_name'] = $results[0]['PAYERNAME'];
|
||||
} else {
|
||||
$data['patnumber'] = "";
|
||||
$data['patient_fullname'] = "";
|
||||
// $data['visit_description'] = "";
|
||||
$data['visit_description'] = "";
|
||||
$data['treating_doctor'] = "";
|
||||
$data['payer_name'] = "";
|
||||
}
|
||||
|
||||
@ -14,7 +14,7 @@ class UserController extends BaseController {
|
||||
$data['usercityid'] = session()->get('usercityid');
|
||||
|
||||
$db = \Config\Database::connect();
|
||||
$sql = "select sr.HOSTORDERNUMBER, tu.SAMPLETYPE, ds.SHORTTEXT, tu.TUBESTATUS, ct.COLLSTATUS, ct.TUBECOMMENT from SP_TUBES tu
|
||||
$sql = "SELECT sr.HOSTORDERNUMBER, tu.SAMPLETYPE, ds.SHORTTEXT, tu.TUBESTATUS, ct.COLLSTATUS, ct.TUBECOMMENT from SP_TUBES tu
|
||||
left join SP_REQUESTS sr on tu.SP_ACCESSNUMBER=sr.SP_ACCESSNUMBER
|
||||
left join DICT_SAMPLES_TYPES ds on ds.SAMPCODE= tu.SAMPLETYPE
|
||||
left join cmod.dbo.CM_TUBES ct on ct.SAMPLETYPE=tu.SAMPLETYPE and ct.ACCESSNUMBER=tu.SP_ACCESSNUMBER
|
||||
@ -24,23 +24,27 @@ class UserController extends BaseController {
|
||||
$visit_number = $results[0]['HOSTORDERNUMBER'];
|
||||
$data['data'] = $results;
|
||||
|
||||
$sql = "select hp.PATNUMBER, hp.PATNAME, ho.PAYERNAME, ho.TREATDOC
|
||||
from cmod.dbo.CM_HIS_ORDERS ho
|
||||
left join cmod.dbo.CM_HIS_PATIENTS hp on hp.PATID=ho.PATID
|
||||
WHERE ho.VISITNUMBER='$visit_number'";
|
||||
// $sql = "select hp.PATNUMBER, hp.PATNAME, ho.PAYERNAME, ho.TREATDOC
|
||||
// from cmod.dbo.CM_HIS_ORDERS ho
|
||||
// left join cmod.dbo.CM_HIS_PATIENTS hp on hp.PATID=ho.PATID
|
||||
// WHERE ho.VISITNUMBER='$visit_number'";
|
||||
$sql = "SELECT ctp.PATNUMBER, CONCAT(ctp.FIRSTNAME, ' ', ctp.LASTNAME) as PATNAME, ctr.AGENT as PAYERNAME, ctr.DOC as TREATDOC, ctr.VISITTYPE
|
||||
from cmod.dbo.CM_TM_REQUESTS ctr
|
||||
left join cmod.dbo.CM_TM_PATIENTS ctp on ctr.PATID = ctp.PATID
|
||||
where ctr.REFFID='$visit_number'";
|
||||
$query = $db->query($sql);
|
||||
$results = $query->getResultArray();
|
||||
|
||||
if($results != null) {
|
||||
$data['patnumber'] = $results[0]['PATNUMBER'];
|
||||
$data['patient_fullname'] = $results[0]['PATNAME'];
|
||||
// $data['visit_description'] = $results[0]['Visit Description'];
|
||||
$data['visit_description'] = $results[0]['VISITTYPE'];
|
||||
$data['treating_doctor'] = $results[0]['TREATDOC'];
|
||||
$data['payer_name'] = $results[0]['PAYERNAME'];
|
||||
} else {
|
||||
$data['patnumber'] = "";
|
||||
$data['patient_fullname'] = "";
|
||||
// $data['visit_description'] = "";
|
||||
$data['visit_description'] = "";
|
||||
$data['treating_doctor'] = "";
|
||||
$data['payer_name'] = "";
|
||||
}
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
<th width="12%">Patient#</th>
|
||||
<th width="17%">Patient Name</th>
|
||||
<th class='text-start' width="10%">Access#</th>
|
||||
<th width="9%">Visit#</th>
|
||||
<th width="9%">Reffid#</th>
|
||||
<th>Test</th>
|
||||
<th>Status</th>
|
||||
<th></th>
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
<th width="12%">Patient#</th>
|
||||
<th width="17%">Patient Name</th>
|
||||
<th class='text-start' width="10%">Access#</th>
|
||||
<th width="9%">Visit#</th>
|
||||
<th width="9%">Reffid#</th>
|
||||
<th>Test</th>
|
||||
<th>Status</th>
|
||||
<th></th>
|
||||
|
||||
@ -22,7 +22,7 @@ if(isset($data[0])) {
|
||||
|
||||
<th>Visit Description</th>
|
||||
<th>:</th>
|
||||
<td></td>
|
||||
<td><?=$visit_description;?></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
<th width="12%">Patient#</th>
|
||||
<th width="17%">Patient Name</th>
|
||||
<th class='text-start' width="10%">Access#</th>
|
||||
<th width="9%">Visit#</th>
|
||||
<th width="9%">Reffid#</th>
|
||||
<th>Test</th>
|
||||
<th>Status</th>
|
||||
<th></th>
|
||||
|
||||
@ -22,7 +22,7 @@ if(isset($data[0])) {
|
||||
|
||||
<th>Visit Description</th>
|
||||
<th>:</th>
|
||||
<td></td>
|
||||
<td><?=$visit_description;?></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
<th width="12%">Patient#</th>
|
||||
<th width="17%">Patient Name</th>
|
||||
<th class='text-start' width="10%">Access#</th>
|
||||
<th width="9%">Visit#</th>
|
||||
<th width="9%">Reffid#</th>
|
||||
<th>Test</th>
|
||||
<th>Status</th>
|
||||
<th></th>
|
||||
|
||||
@ -22,7 +22,7 @@ if(isset($data[0])) {
|
||||
|
||||
<th>Visit Description</th>
|
||||
<th>:</th>
|
||||
<td></td>
|
||||
<td><?=$visit_description;?></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user