Update patient penamaan variabel name pada method create dan update3

This commit is contained in:
mikael-zakaria 2025-08-04 11:07:23 +07:00
parent 8bf8a8536e
commit 68c7ceeced

View File

@ -139,14 +139,14 @@ class Patient extends Controller {
"Citizenship" => $input['Citizenship'] ?? null,
"DeathIndicator" => isset($input['DeathIndicator']) ? (int) $input['DeathIndicator'] : null,
"DeathDateTime" => $input['DeathDateTime'] ?? null,
"LinkTo" => $input['LinkTo'] ?? null,
// "LinkTo" => $input['LinkTo'] ?? null,
"CreateDate" => date('Y-m-d H:i:s'),
"DelDate" => null,
// Field tambahan dari struktur sebelumnya (bisa dihapus jika tidak dipakai)
"PatientComment" => $input['PatientComment'] ?? null,
"IdentityIDType" => $input['IdentityIDType'] ?? null,
"IdentityID" => $input['IdentityID'] ?? null
// "PatientComment" => $input['PatientComment'] ?? null,
// "IdentityIDType" => $input['IdentityIDType'] ?? null,
// "IdentityID" => $input['IdentityID'] ?? null
];
$rules = [
@ -231,14 +231,14 @@ class Patient extends Controller {
"Citizenship" => $input['Citizenship'] ?? null,
"DeathIndicator" => isset($input['DeathIndicator']) ? (int) $input['DeathIndicator'] : null,
"DeathDateTime" => $input['DeathDateTime'] ?? null,
"LinkTo" => $input['LinkTo'] ?? null,
// "LinkTo" => $input['LinkTo'] ?? null,
"CreateDate" => date('Y-m-d H:i:s'),
"DelDate" => null,
// Field tambahan dari struktur sebelumnya (bisa dihapus jika tidak dipakai)
"PatientComment" => $input['PatientComment'] ?? null,
"IdentityIDType" => $input['IdentityIDType'] ?? null,
"IdentityID" => $input['IdentityID'] ?? null
// "PatientComment" => $input['PatientComment'] ?? null,
// "IdentityIDType" => $input['IdentityIDType'] ?? null,
// "IdentityID" => $input['IdentityID'] ?? null
];
// $data = [
// "PatientID" => $input['PatientID'] ?? null,