diff --git a/app/Views/billing/opd_appointment_list.php b/app/Views/billing/opd_appointment_list.php
index 7840742..beda09a 100644
--- a/app/Views/billing/opd_appointment_list.php
+++ b/app/Views/billing/opd_appointment_list.php
@@ -190,13 +190,25 @@
$('#testentry-bodyc').html('
Loading...
');
modalObj.show();
- $.post('= base_url('Opd/opd_load_doc') ?>/' + opdid, {}, function(html) {
+ $.post('/Opd/opd_load_doc/' + opdid, {}, function(html) {
$('#testentry-bodyc').html(html || 'Unable to load scan panel.
');
}).fail(function() {
$('#testentry-bodyc').html('Unable to load scan panel.
');
});
});
+ $(document).off('click.opdstatus', '.btn-opd-status').on('click.opdstatus', '.btn-opd-status', function() {
+ var opdId = $(this).data('opd-id');
+ var opdStatus = $(this).data('opd-status');
+ if (!opdId || !opdStatus) {
+ return;
+ }
+
+ $.post('/Opd/opd_status/' + opdId + '/' + opdStatus, {}, function() {
+ load_form('/Opd/get_appointment_list/= esc((int) ($doc_id ?? 0)) ?>/= esc($opd_date ?? date('Y-m-d')) ?>', 'OPD Appointment List');
+ });
+ });
+
$(document).off('click.opdvitalsopen', '.btn-opd-vitals').on('click.opdvitalsopen', '.btn-opd-vitals', function() {
// Open vitals modal and prefill with any existing values from prescription session.
var opdid = parseInt($(this).data('opdid') || '0', 10);
@@ -212,7 +224,7 @@
setVitalMessage('normal', 'Loading previous vitals...');
vitalsModalObj.show();
- $.getJSON('= base_url('Opd_prescription/vitals_get') ?>/' + opdid, function(data) {
+ $.getJSON('/Opd_prescription/vitals_get/' + opdid, function(data) {
updateCsrf(data);
if (parseInt(data.update || 0, 10) !== 1) {
setVitalMessage('err', data.error_text || 'Unable to load vitals');
@@ -253,7 +265,7 @@
var $btn = $(this);
$btn.prop('disabled', true).text('Saving...');
- $.post('= base_url('Opd_prescription/vitals_save') ?>', payload, function(data) {
+ $.post('/Opd_prescription/vitals_save', payload, function(data) {
updateCsrf(data);
$btn.prop('disabled', false).text('Save Vitals');
if (parseInt(data.update || 0, 10) !== 1) {
diff --git a/app/Views/billing/opd_appointment_list_table.php b/app/Views/billing/opd_appointment_list_table.php
index b3fbac1..5a4f8d0 100644
--- a/app/Views/billing/opd_appointment_list_table.php
+++ b/app/Views/billing/opd_appointment_list_table.php
@@ -31,7 +31,7 @@ if ($authUser) {
has_vitals) && (int) $row->has_vitals === 1; ?>
-
+
Consult
@@ -44,7 +44,7 @@ if ($authUser) {
-
+
Profile
@@ -66,20 +66,4 @@ if ($authUser) {
-
-
-
+
|