#7914 - Fix for contacts being empty or s tring (#7915)
[openemr.git] / src / Events / Patient / PatientUpdatedEventAux.php
blob1223a65ad968e5bba3d646dcf49e55f536b3da64
1 <?php
3 /**
4 * PatientUpdatedAuxEvent
6 * This event is fired after a patient is updated so modules can
7 * listen for update of a patient and perform additional
8 * processing, or modify insert data.
10 * @package OpenEMR
11 * @link https://www.open-emr.org
12 * @author Kofi Appiah <kkappiah@medsov.com>
13 * @copyright Copyright (c) 2024 Omegasystems Group <info@omegasystemsgroup.com>
14 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
17 namespace OpenEMR\Events\Patient;
19 use Symfony\Contracts\EventDispatcher\Event;
21 class PatientUpdatedEventAux extends Event
23 /**
24 * This event is triggered after a patient has been updated, and an assoc
25 * array of new patient data is passed to the event object
27 const EVENT_HANDLE = 'patient.updated.aux';
29 private $updatedPatientData;
30 private $pid;
32 public function __construct($pid, $updatedData)
34 $this->updatedPatientData = $updatedData;
35 $this->pid = $pid;
38 /**
39 * @return mixed
41 public function getUpdatedPatientData()
43 $pid = array(
44 "pid" => $this->pid
47 $this->updatedPatientData = array_merge($this->updatedPatientData, $pid);
48 return $this->updatedPatientData;