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:
sas.fajri
2026-06-08 13:29:40 +07:00
parent ca1327a6c2
commit 9eba521e2f
2 changed files with 4 additions and 1 deletions

View File

@@ -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'] ?? '')

View File

@@ -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,