FHM31052601IBL - pdp masking & enkripsi patient di controller dan SP mcu
- mask_name nama satu kata: tampil 2 char + bintang sisanya - masking + enkripsi insert/update m_patient di Registrationv3, ibl_registration/Patient, Patientv4, setupmcuoffline-ibl/Preregister, mcuoffline/Preregisterapp - masking insert ke mcu_preregister_patients (PatientName, KTP, NIK, Email, Hp) - search patient pakai bidx, decrypt setelah query di mcuoffline/Preregisterapp - matching existing patient ganti LIKE ke bidx search - SP sp_upsert_mcu_patient_by_preregister_id & sp_upsert_mcu_patient_by_mgm_mcuid JOIN m_patient ambil _enc, simpan ke one_lab_dashboard.mcu_patient - ALTER mcu_patient.Mcu_PatientName dan Mcu_PatientDOB ke TEXT Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -35,7 +35,8 @@ function mask_name($v) {
|
||||
$words = preg_split('/\s+/', $v);
|
||||
if (count($words) === 1) {
|
||||
$l = mb_strlen($v, 'UTF-8');
|
||||
return $l <= 6 ? $v : mb_substr($v, 0, 6, 'UTF-8') . '***';
|
||||
if ($l <= 2) return $v;
|
||||
return mb_substr($v, 0, 2, 'UTF-8') . str_repeat('*', $l - 2);
|
||||
}
|
||||
$first = $words[0];
|
||||
$rest = array_slice($words, 1);
|
||||
|
||||
@@ -29,7 +29,8 @@ function mask_name($v) {
|
||||
$words = preg_split('/\s+/', $v);
|
||||
if (count($words) === 1) {
|
||||
$l = mb_strlen($v, 'UTF-8');
|
||||
return $l <= 6 ? $v : mb_substr($v, 0, 6, 'UTF-8') . '***';
|
||||
if ($l <= 2) return $v;
|
||||
return mb_substr($v, 0, 2, 'UTF-8') . str_repeat('*', $l - 2);
|
||||
}
|
||||
$first = $words[0];
|
||||
$rest = array_slice($words, 1);
|
||||
|
||||
Reference in New Issue
Block a user