Update CustodianID
This commit is contained in:
parent
59a64c876c
commit
adccdcfd73
@ -101,9 +101,11 @@ class Patient extends Controller {
|
|||||||
|
|
||||||
if ($patient['Custodian'] != null) {
|
if ($patient['Custodian'] != null) {
|
||||||
|
|
||||||
|
$custodianId = (int) $patient['Custodian'];
|
||||||
|
|
||||||
$patientCustodian = $this->db->table('patient')
|
$patientCustodian = $this->db->table('patient')
|
||||||
->select('InternalPID, PatientID')
|
->select('InternalPID, PatientID')
|
||||||
->where('InternalPID', (int) $InternalPID)
|
->where('InternalPID', $custodianId)
|
||||||
->get()
|
->get()
|
||||||
->getResultArray();
|
->getResultArray();
|
||||||
$patient["Custodian"] = $patientCustodian == [] ? null : $patientCustodian[0];
|
$patient["Custodian"] = $patientCustodian == [] ? null : $patientCustodian[0];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user