fix(abdm): resolve patient row using id instead of p_id in saveIpdDischargeFhir

This commit is contained in:
DevSoftTech Server 2026-09-05 20:43:02 +05:30
parent 52f8d9691b
commit 0e340d5155

View File

@ -2745,11 +2745,8 @@ class AbdmGateway extends BaseController
$abhaNumber = $abhaIdentity['abha_id'];
$abhaAddress = $abhaIdentity['abha_address'];
$patName = '';
if ($this->db && $this->db->tableExists('patient_master')) {
$pRow = $this->db->table('patient_master')->where('p_id', $patientId)->get(1)->getRowArray() ?? [];
$patName = trim((string) (($pRow['p_fname'] ?? '') . ' ' . ($pRow['p_lname'] ?? '')));
}
$pRow = $this->loadPatientRow($patientId);
$patName = $this->patientDisplayName($pRow);
$queueId = null;
$bridgeRecordId = 0;