ui: remove Quick FHIR Preview and Today Credit OPD cards from task board

This commit is contained in:
DevSoftTech Server 2026-05-20 00:31:56 +05:30
parent ed4e7c1fe4
commit fd7b9df3f4

View File

@ -33,80 +33,6 @@
<button class="btn btn-sm btn-outline-primary filter-btn" data-filter="ipd_discharge_publish">IPD Discharge</button>
</div>
<div class="card shadow-sm mb-3">
<div class="card-body py-2">
<div class="row g-2 align-items-end">
<div class="col-md-4">
<label class="form-label mb-1 small">Quick FHIR Preview OPD ID</label>
<input type="number" min="1" class="form-control form-control-sm" id="tb_quick_opd_id" placeholder="Enter OPD ID">
</div>
<div class="col-md-4">
<label class="form-label mb-1 small">Session ID (optional)</label>
<input type="number" min="1" class="form-control form-control-sm" id="tb_quick_session_id" placeholder="Enter OPD Session ID">
</div>
<div class="col-md-4">
<button type="button" class="btn btn-sm btn-outline-primary w-100" id="btn_quick_fhir_preview">Show FHIR JSON Inline</button>
</div>
</div>
</div>
</div>
<div class="card shadow-sm mb-3" id="todayCreditOpdCard">
<div class="card-header py-2 d-flex justify-content-between align-items-center">
<strong>Today Credit OPD Consult (FHIR Debug)</strong>
<small class="text-muted">Current date credit consults with quick inline preview</small>
</div>
<div class="card-body p-0">
<div class="table-responsive">
<table class="table table-sm mb-0">
<thead class="table-light">
<tr>
<th>OPD</th>
<th>Patient</th>
<th>ABHA</th>
<th>Consult Time</th>
<th>Credit Ref</th>
<th>FHIR Session</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php if (! empty($today_credit_opd_rows ?? [])): ?>
<?php foreach (($today_credit_opd_rows ?? []) as $r): ?>
<tr>
<td>#<?= (int) ($r['opd_id'] ?? 0) ?></td>
<td><?= esc((string) ($r['patient_name'] ?? '')) ?></td>
<td><?= esc((string) ($r['abha_id'] ?? '')) ?></td>
<td><?= esc((string) ($r['consult_datetime'] ?? '')) ?></td>
<td><?= esc((string) ($r['credit_ref'] ?? '')) ?></td>
<td>
<?php if (! empty($r['has_fhir'])): ?>
<?= (int) ($r['opd_session_id'] ?? 0) ?>
<?php else: ?>
<span class="text-muted">Not generated</span>
<?php endif; ?>
</td>
<td>
<button
type="button"
class="btn btn-sm btn-outline-primary inline-json-btn"
data-preview-url="<?= esc((string) ($r['preview_url'] ?? '')) ?>"
data-title="OPD <?= (int) ($r['opd_id'] ?? 0) ?><?= !empty($r['opd_session_id']) ? (' / Session ' . (int) $r['opd_session_id']) : '' ?>"
>Preview JSON</button>
</td>
</tr>
<?php endforeach; ?>
<?php else: ?>
<tr>
<td colspan="7" class="text-muted px-2 py-2">No current date credit OPD consult rows found.</td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
</div>
<div class="card shadow-sm mb-3 d-none" id="fhirDebugCard">
<div class="card-header py-2 d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center gap-2 flex-wrap">