protected function beforeSave()
{
$anaesthetistRequired = array('LAC', 'LAS', 'GA');
$this->anaesthetist_required = in_array($this->anaesthetic_type->name, $anaesthetistRequired);
if (!$this->status_id) {
$this->status_id = 1;
}
if (!$this->stop_medication) {
$this->stop_medication_details = null;
}
if (!$this->fast_track) {
$this->fast_track_discussed_with_patient = null;
}
if (!$this->special_equipment) {
$this->special_equipment_details = null;
}
return parent::beforeSave();
}