/** * Sets the default values for the element from the patient * * @param models\Element_OphCoCvi_Demographics $element */ protected function setElementDefaultOptions_Element_OphCoCvi_Demographics(models\Element_OphCoCvi_Demographics $element) { if ($element->isNewRecord) { $element->initFromPatient($this->patient); } }