public function validateIolPower()
{
$value = $this->iol_power;
if (!preg_match('/^\\-?[0-9]{1,2}(\\.[0-9]{1,2})?$/', $value)) {
$message = $this->addError('iol_power', 'IOL power must be a number with an optional two decimal places between -10.00 and 40.00');
} elseif ($value < -10 || $value > 40) {
$message = $this->addError('iol_power', 'IOL Power must be between -10 to 40');
}
}