diff --git a/app/Controllers/Ipd_discharge.php b/app/Controllers/Ipd_discharge.php index 10b6099..ee8e1e3 100644 --- a/app/Controllers/Ipd_discharge.php +++ b/app/Controllers/Ipd_discharge.php @@ -609,6 +609,7 @@ class Ipd_discharge extends BaseController 'Personal History', 'Drug Allergy / ADR', 'Co-Morbidities', + 'Prescribed Medicines', 'Discharge Medications', 'Discharge Advice/Instructions/Summary', 'Dietary Advice', @@ -631,11 +632,20 @@ class Ipd_discharge extends BaseController $instructionRow = $ipdId > 0 ? $this->firstRowByIpd('ipd_discharge_instructions', $ipdId) : []; $instructionMeta = $this->parseInstructionMetaPayload((string) ($instructionRow['comp_report'] ?? '')); $clinicalSummaryRaw = $this->normalizeRichText((string) ($instructionRow['comp_remark'] ?? '')); - $clinicalSummary = $clinicalSummaryRaw !== '' - ? '
| # | ' + . 'Medicine | ' + . 'Directions | ' + . '
|---|---|---|
| ' . $i . ' | ' + . '' . $nameHtml . ' | ' + . ''
+ . ' ' . esc($directionsText) . ' '
+ . ($localText !== '' ? '' . esc($localText) . ' ' : '')
+ . ' | '
+ . '
| Medicine Name | Dosage | Qty | Day |
|---|---|---|---|
| ' . esc($drugName) . ' | ' - . '' . esc($dose) . ' | ' - . '' - . ' | ' . esc($days) . ' | ' - . '
| Medicine Name | Dosage | Qty | Day |
|---|---|---|---|
| ' . $label;
-
- if ($composition !== '') {
- $html .= ' Composition : ' . esc($composition) . ''; - } - $advice = trim((string) ($row['remark'] ?? '')); - if ($advice !== '') { - $html .= ' Medicine Advice: ' . esc($advice) . ''; - } - - $html .= ' | '
- . '' . ($dosageDisplay !== '' ? esc($dosageDisplay) : '-') . ' | ' - . '' . esc((string) ($row['qty'] ?? '')) . ' | ' - . '' . esc((string) ($row['no_of_days'] ?? '')) . ' | ' - . '
| ' . esc($saltName) . ' | ' - . '|||