FHM31052601IBL - search patient by nama/HP/DOB/NIK, hapus address bidx, tambah NIK bidx
- Search sekarang: nama, HP, DOB, NIK (alamat dihapus - boros disk) - Tambah M_PatientNIK_bidx untuk search by NIK - Migration script: NIK bidx + hapus address bidx dari m_patientaddress Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -46,7 +46,7 @@ $stmt_upd = $pdo->prepare("UPDATE m_patient SET
|
||||
M_PatientPhone_enc = ?,
|
||||
M_PatientPOB_enc = ?,
|
||||
M_PatientIDNumber_enc = ?,
|
||||
M_PatientNIK_enc = ?,
|
||||
M_PatientNIK_enc = ?, M_PatientNIK_bidx = ?,
|
||||
M_PatientNIP_enc = ?
|
||||
WHERE M_PatientID = ?");
|
||||
|
||||
@@ -72,7 +72,7 @@ while (true) {
|
||||
$enc->encrypt($row['M_PatientPhone']),
|
||||
$enc->encrypt($row['M_PatientPOB']),
|
||||
$enc->encrypt($row['M_PatientIDNumber']),
|
||||
$enc->encrypt($row['M_PatientNIK']),
|
||||
$enc->encrypt($row['M_PatientNIK']), $enc->search_bidx($row['M_PatientNIK']),
|
||||
$enc->encrypt($row['M_PatientNIP']),
|
||||
$row['M_PatientID'],
|
||||
]);
|
||||
@@ -90,7 +90,6 @@ $total = 0;
|
||||
|
||||
$stmt_addr = $pdo->prepare("UPDATE m_patientaddress SET
|
||||
M_PatientAddressDescription_enc = ?,
|
||||
M_PatientAddressDescription_bidx = ?,
|
||||
M_PatientAddressEmail_enc = ?,
|
||||
M_PatientAddressPhone_enc = ?
|
||||
WHERE M_PatientAddressID = ?");
|
||||
@@ -109,7 +108,6 @@ while (true) {
|
||||
foreach ($rows as $row) {
|
||||
$stmt_addr->execute([
|
||||
$enc->encrypt($row['M_PatientAddressDescription']),
|
||||
$enc->search_bidx($row['M_PatientAddressDescription']),
|
||||
$enc->encrypt($row['M_PatientAddressEmail']),
|
||||
$enc->encrypt($row['M_PatientAddressPhone']),
|
||||
$row['M_PatientAddressID'],
|
||||
|
||||
Reference in New Issue
Block a user