Include old UHID in OPD template output
Append patient old_uhid to the OPD {{uhid_no}} placeholder only when a value exists.
This commit is contained in:
parent
ee87802af1
commit
51f5a87f92
|
|
@ -2601,7 +2601,11 @@ class Opd extends BaseController
|
|||
$phone = (string) ($patient->mphone1 ?? '');
|
||||
$pAddress = trim((string) (($patient->add1 ?? '') . ', ' . ($patient->add2 ?? '') . ', ' . ($patient->city ?? '')), ' ,');
|
||||
|
||||
$uhidNo = (string) ($patient->p_code ?? '');
|
||||
$uhidNo = trim((string) ($patient->p_code ?? ''));
|
||||
$oldUhid = trim((string) ($patient->old_uhid ?? ''));
|
||||
if ($oldUhid !== '') {
|
||||
$uhidNo .= ' / ' . $oldUhid;
|
||||
}
|
||||
$opdSrNo = (string) ($opd->opd_no ?? '');
|
||||
$opdNo = (string) ($opd->opd_code ?? '');
|
||||
$opdDate = (string) ($opd->str_apointment_date ?? '');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user