Update Menampilkan Reffid Pada Halaman Dashboard
This commit is contained in:
parent
9157d8061a
commit
4dc20ac087
@ -20,7 +20,7 @@ class API_Dashboard extends ResourceController {
|
|||||||
$date1 = $this->request->getPost('date1');
|
$date1 = $this->request->getPost('date1');
|
||||||
$date2 = $this->request->getPost('date2');
|
$date2 = $this->request->getPost('date2');
|
||||||
$sql = "SELECT
|
$sql = "SELECT
|
||||||
sr.COLLECTIONDATE, sr.SP_ACCESSNUMBER, tr.REQNUMBER as HOSTORDERNUMBER, tr.REQSTATUS, p.PATNUMBER, concat(p.FIRSTNAMESK, ' ', p.NAME) as NAME,
|
sr.COLLECTIONDATE, sr.SP_ACCESSNUMBER, sr.HOSTORDERNUMBER as REFFID, tr.REQNUMBER as HOSTORDERNUMBER, tr.REQSTATUS, p.PATNUMBER, concat(p.FIRSTNAMESK, ' ', p.NAME) as NAME,
|
||||||
TESTS=stuff(( select ', '+'('+T.SP_TESTCODE+')' from
|
TESTS=stuff(( select ', '+'('+T.SP_TESTCODE+')' from
|
||||||
( select T.SP_TESTCODE from SP_TESTS T
|
( select T.SP_TESTCODE from SP_TESTS T
|
||||||
where T.SP_ACCESSNUMBER=sr.SP_ACCESSNUMBER
|
where T.SP_ACCESSNUMBER=sr.SP_ACCESSNUMBER
|
||||||
|
|||||||
@ -33,9 +33,10 @@
|
|||||||
<th width="12%">Patient#</th>
|
<th width="12%">Patient#</th>
|
||||||
<th width="17%">Patient Name</th>
|
<th width="17%">Patient Name</th>
|
||||||
<th class='text-start' width="10%">Access#</th>
|
<th class='text-start' width="10%">Access#</th>
|
||||||
<th width="9%">Visit#</th>
|
<th width="10%">Visit#</th>
|
||||||
|
<th width="10%">HIS#</th>
|
||||||
<th>Test</th>
|
<th>Test</th>
|
||||||
<th>Status</th>
|
<th width="5%">Status</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="table-body" class='text-start'>
|
<tbody id="table-body" class='text-start'>
|
||||||
@ -135,6 +136,15 @@ function index() {
|
|||||||
testing_test = "";
|
testing_test = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (data[i].REFFID != null) {
|
||||||
|
// patnumber = data[i].PATNUMBER;
|
||||||
|
reffid = data[i].REFFID;
|
||||||
|
// patnumber = data[i].PATNUMBER.substr(-16,16);
|
||||||
|
// patnumber = patnumber.substring(patnumber.length - 10);
|
||||||
|
} else {
|
||||||
|
reffid = ' NULL ';
|
||||||
|
}
|
||||||
|
|
||||||
tests = data[i].TESTS;
|
tests = data[i].TESTS;
|
||||||
stat = data[i].STATS;
|
stat = data[i].STATS;
|
||||||
reqstatus = String(data[i].REQSTATUS);
|
reqstatus = String(data[i].REQSTATUS);
|
||||||
@ -179,10 +189,7 @@ function index() {
|
|||||||
datafilter = "data-filterrow='8'";
|
datafilter = "data-filterrow='8'";
|
||||||
stattext = 'Cancelled';
|
stattext = 'Cancelled';
|
||||||
}
|
}
|
||||||
let datarow = "<tr class='align-middle" + trcolor +"'" + datafilter + " >" +
|
let datarow = "<tr class='align-middle" + trcolor +"'" + datafilter + " >" + "<td class='text-start'>" + colldate + '<br>'+ colltime +'</td> <td>' + patnumber + '</td> <td>' + patname.trim() + "</td> <td class='text-start' style='cursor: pointer;' ondblclick='copyToClipboard(this)'>" + accessnumber +"<br><span class='copy-message badge text-bg-success' style='display: none;'>Disalin</span>" +"</td> <td style='cursor: pointer;' ondblclick='copyToClipboard(this)'>" + testing_test + hon +"<br><span class='copy-message badge text-bg-success' style='display: none;'>Disalin</span></td><td>"+reffid+"</td> <td>" + tests + '</td>' + "<td role='button' class='"+bgcolor+" text-center align-middle pointercol' onclick='viewAccess("+accessnumber+")'>"+stattext+"</td>" + "<td role='button' class='text-center align-middle' onclick='resultPdfAccess("+accessnumber+ ",event" +")'> <h4 class='p-0 m-0'><i class='bi bi-filetype-pdf'></i></h4> </td>" +'</tr>';
|
||||||
"<td class='text-start'>" + colldate + '<br>'+ colltime +'</td> <td>' + patnumber + '</td> <td>' + patname.trim() + "</td> <td class='text-start' style='cursor: pointer;' ondblclick='copyToClipboard(this)'>" + accessnumber +"<br><span class='copy-message badge text-bg-success' style='display: none;'>Disalin</span>" +"</td> <td style='cursor: pointer;' ondblclick='copyToClipboard(this)'>" + testing_test + hon +"<br><span class='copy-message badge text-bg-success' style='display: none;'>Disalin</span></td> <td>" + tests + '</td>' +
|
|
||||||
"<td role='button' class='"+bgcolor+" text-center align-middle pointercol' onclick='viewAccess("+accessnumber+")'>"+stattext+"</td>" +
|
|
||||||
"<td role='button' class='text-center align-middle' onclick='resultPdfAccess("+accessnumber+ ",event" +")'> <h4 class='p-0 m-0'><i class='bi bi-filetype-pdf'></i></h4> </td>" +'</tr>';
|
|
||||||
$("#table-body").append(datarow);
|
$("#table-body").append(datarow);
|
||||||
}
|
}
|
||||||
$('#myTable').DataTable({
|
$('#myTable').DataTable({
|
||||||
|
|||||||
@ -33,9 +33,10 @@
|
|||||||
<th width="12%">Patient#</th>
|
<th width="12%">Patient#</th>
|
||||||
<th width="17%">Patient Name</th>
|
<th width="17%">Patient Name</th>
|
||||||
<th class='text-start' width="10%">Access#</th>
|
<th class='text-start' width="10%">Access#</th>
|
||||||
<th width="9%">Visit#</th>
|
<th width="10%">Visit#</th>
|
||||||
|
<th width="10%">HIS#</th>
|
||||||
<th>Test</th>
|
<th>Test</th>
|
||||||
<th>Status</th>
|
<th width="5%">Status</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="table-body" class='text-start'>
|
<tbody id="table-body" class='text-start'>
|
||||||
@ -130,6 +131,14 @@ function index() {
|
|||||||
} else {
|
} else {
|
||||||
testing_test = "";
|
testing_test = "";
|
||||||
}
|
}
|
||||||
|
if (data[i].REFFID != null) {
|
||||||
|
// patnumber = data[i].PATNUMBER;
|
||||||
|
reffid = data[i].REFFID;
|
||||||
|
// patnumber = data[i].PATNUMBER.substr(-16,16);
|
||||||
|
// patnumber = patnumber.substring(patnumber.length - 10);
|
||||||
|
} else {
|
||||||
|
reffid = ' NULL ';
|
||||||
|
}
|
||||||
tests = data[i].TESTS;
|
tests = data[i].TESTS;
|
||||||
stat = data[i].STATS;
|
stat = data[i].STATS;
|
||||||
reqstatus = String(data[i].REQSTATUS);
|
reqstatus = String(data[i].REQSTATUS);
|
||||||
@ -174,10 +183,7 @@ function index() {
|
|||||||
datafilter = "data-filterrow='8'";
|
datafilter = "data-filterrow='8'";
|
||||||
stattext = 'Cancelled';
|
stattext = 'Cancelled';
|
||||||
}
|
}
|
||||||
let datarow = "<tr class='align-middle" + trcolor +"'" + datafilter + " >" +
|
let datarow = "<tr class='align-middle" + trcolor +"'" + datafilter + " >" + "<td class='text-start'>" + colldate + '<br>'+ colltime +'</td> <td>' + patnumber + '</td> <td>' + patname.trim() + "</td> <td class='text-start' style='cursor: pointer;' ondblclick='copyToClipboard(this)'>" + accessnumber +"<br><span class='copy-message badge text-bg-success' style='display: none;'>Disalin</span>" +"</td> <td style='cursor: pointer;' ondblclick='copyToClipboard(this)'>" + testing_test + hon +"<br><span class='copy-message badge text-bg-success' style='display: none;'>Disalin</span></td><td>"+reffid+"</td> <td>" + tests + '</td>' + "<td role='button' class='"+bgcolor+" text-center align-middle pointercol' onclick='viewAccess("+accessnumber+")'>"+stattext+"</td>" + "<td role='button' class='text-center align-middle' onclick='resultPdfAccess("+accessnumber+ ",event" +")'> <h4 class='p-0 m-0'><i class='bi bi-filetype-pdf'></i></h4> </td>" +'</tr>';
|
||||||
"<td class='text-start'>" + colldate + '<br>'+ colltime +'</td> <td>' + patnumber + '</td> <td>' + patname.trim() + "</td> <td class='text-start' style='cursor: pointer;' ondblclick='copyToClipboard(this)'>" + accessnumber +"<br><span class='copy-message badge text-bg-success' style='display: none;'>Disalin</span>" +"</td> <td style='cursor: pointer;' ondblclick='copyToClipboard(this)'>" + testing_test + hon +"<br><span class='copy-message badge text-bg-success' style='display: none;'>Disalin</span></td> <td>" + tests + '</td>' +
|
|
||||||
"<td role='button' class='"+bgcolor+" text-center align-middle pointercol' onclick='viewAccess("+accessnumber+")'>"+stattext+"</td>" +
|
|
||||||
"<td role='button' class='text-center align-middle' onclick='resultPdfAccess("+accessnumber+ ",event" +")'> <h4 class='p-0 m-0'><i class='bi bi-filetype-pdf'></i></h4> </td>" +'</tr>';
|
|
||||||
$("#table-body").append(datarow);
|
$("#table-body").append(datarow);
|
||||||
}
|
}
|
||||||
$('#myTable').DataTable({
|
$('#myTable').DataTable({
|
||||||
|
|||||||
@ -33,9 +33,10 @@
|
|||||||
<th width="12%">Patient#</th>
|
<th width="12%">Patient#</th>
|
||||||
<th width="17%">Patient Name</th>
|
<th width="17%">Patient Name</th>
|
||||||
<th class='text-start' width="10%">Access#</th>
|
<th class='text-start' width="10%">Access#</th>
|
||||||
<th width="9%">Visit#</th>
|
<th width="10%">Visit#</th>
|
||||||
|
<th width="10%">HIS#</th>
|
||||||
<th>Test</th>
|
<th>Test</th>
|
||||||
<th>Status</th>
|
<th width="5%">Status</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="table-body" class='text-start'>
|
<tbody id="table-body" class='text-start'>
|
||||||
@ -129,6 +130,14 @@ function index() {
|
|||||||
} else {
|
} else {
|
||||||
testing_test = "";
|
testing_test = "";
|
||||||
}
|
}
|
||||||
|
if (data[i].REFFID != null) {
|
||||||
|
// patnumber = data[i].PATNUMBER;
|
||||||
|
reffid = data[i].REFFID;
|
||||||
|
// patnumber = data[i].PATNUMBER.substr(-16,16);
|
||||||
|
// patnumber = patnumber.substring(patnumber.length - 10);
|
||||||
|
} else {
|
||||||
|
reffid = ' NULL ';
|
||||||
|
}
|
||||||
tests = data[i].TESTS;
|
tests = data[i].TESTS;
|
||||||
stat = data[i].STATS;
|
stat = data[i].STATS;
|
||||||
reqstatus = String(data[i].REQSTATUS);
|
reqstatus = String(data[i].REQSTATUS);
|
||||||
@ -173,10 +182,7 @@ function index() {
|
|||||||
datafilter = "data-filterrow='8'";
|
datafilter = "data-filterrow='8'";
|
||||||
stattext = 'Cancelled';
|
stattext = 'Cancelled';
|
||||||
}
|
}
|
||||||
let datarow = "<tr class='align-middle" + trcolor +"'" + datafilter + " >" +
|
let datarow = "<tr class='align-middle" + trcolor +"'" + datafilter + " >" + "<td class='text-start'>" + colldate + '<br>'+ colltime +'</td> <td>' + patnumber + '</td> <td>' + patname.trim() + "</td> <td class='text-start' style='cursor: pointer;' ondblclick='copyToClipboard(this)'>" + accessnumber +"<br><span class='copy-message badge text-bg-success' style='display: none;'>Disalin</span>" +"</td> <td style='cursor: pointer;' ondblclick='copyToClipboard(this)'>" + testing_test + hon +"<br><span class='copy-message badge text-bg-success' style='display: none;'>Disalin</span></td><td>"+reffid+"</td> <td>" + tests + '</td>' + "<td role='button' class='"+bgcolor+" text-center align-middle pointercol' onclick='viewAccess("+accessnumber+")'>"+stattext+"</td>" + "<td role='button' class='text-center align-middle' onclick='resultPdfAccess("+accessnumber+ ",event" +")'> <h4 class='p-0 m-0'><i class='bi bi-filetype-pdf'></i></h4> </td>" +'</tr>';
|
||||||
"<td class='text-start'>" + colldate + '<br>'+ colltime +'</td> <td>' + patnumber + '</td> <td>' + patname.trim() + "</td> <td class='text-start' style='cursor: pointer;' ondblclick='copyToClipboard(this)'>" + accessnumber +"<br><span class='copy-message badge text-bg-success' style='display: none;'>Disalin</span>" +"</td> <td style='cursor: pointer;' ondblclick='copyToClipboard(this)'>" + testing_test + hon +"<br><span class='copy-message badge text-bg-success' style='display: none;'>Disalin</span></td> <td>" + tests + '</td>' +
|
|
||||||
"<td role='button' class='"+bgcolor+" text-center align-middle pointercol' onclick='viewAccess("+accessnumber+")'>"+stattext+"</td>" +
|
|
||||||
"<td role='button' class='text-center align-middle' onclick='resultPdfAccess("+accessnumber+ ",event" +")'> <h4 class='p-0 m-0'><i class='bi bi-filetype-pdf'></i></h4> </td>" +'</tr>';
|
|
||||||
$("#table-body").append(datarow);
|
$("#table-body").append(datarow);
|
||||||
}
|
}
|
||||||
$('#myTable').DataTable({
|
$('#myTable').DataTable({
|
||||||
|
|||||||
@ -33,9 +33,10 @@
|
|||||||
<th width="12%">Patient#</th>
|
<th width="12%">Patient#</th>
|
||||||
<th width="17%">Patient Name</th>
|
<th width="17%">Patient Name</th>
|
||||||
<th class='text-start' width="10%">Access#</th>
|
<th class='text-start' width="10%">Access#</th>
|
||||||
<th width="9%">Visit#</th>
|
<th width="10%">Visit#</th>
|
||||||
|
<th width="10%">HIS#</th>
|
||||||
<th>Test</th>
|
<th>Test</th>
|
||||||
<th>Status</th>
|
<th width="5%">Status</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="table-body" class='text-start'>
|
<tbody id="table-body" class='text-start'>
|
||||||
@ -129,6 +130,14 @@ function index() {
|
|||||||
} else {
|
} else {
|
||||||
testing_test = "";
|
testing_test = "";
|
||||||
}
|
}
|
||||||
|
if (data[i].REFFID != null) {
|
||||||
|
// patnumber = data[i].PATNUMBER;
|
||||||
|
reffid = data[i].REFFID;
|
||||||
|
// patnumber = data[i].PATNUMBER.substr(-16,16);
|
||||||
|
// patnumber = patnumber.substring(patnumber.length - 10);
|
||||||
|
} else {
|
||||||
|
reffid = ' NULL ';
|
||||||
|
}
|
||||||
tests = data[i].TESTS;
|
tests = data[i].TESTS;
|
||||||
stat = data[i].STATS;
|
stat = data[i].STATS;
|
||||||
reqstatus = String(data[i].REQSTATUS);
|
reqstatus = String(data[i].REQSTATUS);
|
||||||
@ -173,10 +182,7 @@ function index() {
|
|||||||
datafilter = "data-filterrow='8'";
|
datafilter = "data-filterrow='8'";
|
||||||
stattext = 'Cancelled';
|
stattext = 'Cancelled';
|
||||||
}
|
}
|
||||||
let datarow = "<tr class='align-middle" + trcolor +"'" + datafilter + " >" +
|
let datarow = "<tr class='align-middle" + trcolor +"'" + datafilter + " >" + "<td class='text-start'>" + colldate + '<br>'+ colltime +'</td> <td>' + patnumber + '</td> <td>' + patname.trim() + "</td> <td class='text-start' style='cursor: pointer;' ondblclick='copyToClipboard(this)'>" + accessnumber +"<br><span class='copy-message badge text-bg-success' style='display: none;'>Disalin</span>" +"</td> <td style='cursor: pointer;' ondblclick='copyToClipboard(this)'>" + testing_test + hon +"<br><span class='copy-message badge text-bg-success' style='display: none;'>Disalin</span></td><td>"+reffid+"</td> <td>" + tests + '</td>' + "<td role='button' class='"+bgcolor+" text-center align-middle pointercol' onclick='viewAccess("+accessnumber+")'>"+stattext+"</td>" + "<td role='button' class='text-center align-middle' onclick='resultPdfAccess("+accessnumber+ ",event" +")'> <h4 class='p-0 m-0'><i class='bi bi-filetype-pdf'></i></h4> </td>" +'</tr>';
|
||||||
"<td class='text-start'>" + colldate + '<br>'+ colltime +'</td> <td>' + patnumber + '</td> <td>' + patname.trim() + "</td> <td class='text-start' style='cursor: pointer;' ondblclick='copyToClipboard(this)'>" + accessnumber +"<br><span class='copy-message badge text-bg-success' style='display: none;'>Disalin</span>" +"</td> <td style='cursor: pointer;' ondblclick='copyToClipboard(this)'>" + testing_test + hon +"<br><span class='copy-message badge text-bg-success' style='display: none;'>Disalin</span></td> <td>" + tests + '</td>' +
|
|
||||||
"<td role='button' class='"+bgcolor+" text-center align-middle pointercol' onclick='viewAccess("+accessnumber+")'>"+stattext+"</td>" +
|
|
||||||
"<td role='button' class='text-center align-middle' onclick='resultPdfAccess("+accessnumber+ ",event" +")'> <h4 class='p-0 m-0'><i class='bi bi-filetype-pdf'></i></h4> </td>" +'</tr>';
|
|
||||||
$("#table-body").append(datarow);
|
$("#table-body").append(datarow);
|
||||||
}
|
}
|
||||||
$('#myTable').DataTable({
|
$('#myTable').DataTable({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user