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.
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
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;
32 public function __construct($pid, $updatedData)
34 $this->updatedPatientData
= $updatedData;
41 public function getUpdatedPatientData()
47 $this->updatedPatientData
= array_merge($this->updatedPatientData
, $pid);
48 return $this->updatedPatientData
;