FHM08062601IBL - fix concat nama pasien dengan title prefix suffix di inform consent
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -112,7 +112,7 @@ class Inform_consent extends MY_Controller
|
||||
)->row_array();
|
||||
$printName = trim($cacheRow['ppc_name'] ?? '');
|
||||
$row['patient_name'] = trim(
|
||||
($title ? $title . '. ' : '') .
|
||||
($title ? $title . ' ' : '') .
|
||||
trim($row['M_PatientPrefix'] ?? '') . ' ' .
|
||||
trim($printName !== '' ? $printName : ($row['M_PatientName'] ?? '')) . ' ' .
|
||||
trim($row['M_PatientSuffix'] ?? '')
|
||||
|
||||
@@ -67,6 +67,9 @@ class Inform_consent_cpmi extends MY_Controller
|
||||
IFNULL(h.T_OrderHeaderM_PatientAge, '') as age,
|
||||
p.M_PatientID,
|
||||
CONCAT(TRIM(IFNULL(t.M_TitleName,'')), ' ', TRIM(IFNULL(p.M_PatientPrefix,'')), ' ', TRIM(IFNULL(p.M_PatientName,'')), ' ', TRIM(IFNULL(p.M_PatientSuffix,''))) AS patient_name,
|
||||
IFNULL(t.M_TitleName, '') as M_TitleName,
|
||||
IFNULL(p.M_PatientPrefix, '') as M_PatientPrefix,
|
||||
IFNULL(p.M_PatientSuffix, '') as M_PatientSuffix,
|
||||
IFNULL(s.M_SexCode, '') as sex_code,
|
||||
DATE_FORMAT(p.M_PatientDOB, '%d-%m-%Y') as dob,
|
||||
IFNULL(pa.M_PatientAddressDescription,'') as alamat,
|
||||
|
||||
Reference in New Issue
Block a user