OEModule\OphCiExamination\models\Element_OphCiExamination_ClinicOutcome::statusDependencyValidation PHP Method

statusDependencyValidation() public method

Follow up data is only required for status that are flagged for follow up.
public statusDependencyValidation ( $attribute )
    public function statusDependencyValidation($attribute)
    {
        if ($this->status_id && $this->status->followup) {
            $v = \CValidator::createValidator('required', $this, array('followup_quantity', 'followup_period_id', 'role_id'));
            $v->validate($this);
        }
    }