protected function setElementDefaultOptions_Element_OphCiExamination_Allergy($element, $action) { if ($action == 'create' || $action == 'update') { $this->allergies = $this->patient->allergyAssignments; } }