The followings are the available columns in table:
Inheritance: extends BaseActiveRecordVersioned
Example #1
0
 /**
  * @param models\Element_OphCoCvi_ClericalInfo $element
  * @param $action
  */
 protected function setElementDefaultOptions_Element_OphCoCvi_ClericalInfo(models\Element_OphCoCvi_ClericalInfo $element, $action)
 {
     if ($element->isNewRecord && $this->checkClinicalEditAccess()) {
         if ($this->patient->isChild()) {
             $element->employment_status_id = models\OphCoCvi_ClericalInfo_EmploymentStatus::defaultChildStatusId();
         } elseif ($this->patient->socialhistory) {
             $element->employment_status_id = models\OphCoCvi_ClericalInfo_EmploymentStatus::defaultForSocialHistoryId($this->patient->socialhistory);
         }
     }
 }