OEModule\PatientTicketing\controllers\DefaultController::actionGetPatientAlert PHP Method

actionGetPatientAlert() public method

Load the Patient Alert widget for the given patient.
public actionGetPatientAlert ( $patient_id )
$patient_id
    public function actionGetPatientAlert($patient_id)
    {
        if (!($patient = \Patient::model()->findByPk((int) $patient_id))) {
            throw new \CHttpException(404, 'Invalid patient id.');
        }
        $patient->audit('patient', 'view-alert');
        $this->renderPartial('patientalert', array('patient' => $patient));
    }