OEModule\OphCiExamination\models\Element_OphCiExamination_InjectionManagement::getInjectionDeferralReason PHP Method

getInjectionDeferralReason() public method

* returns the reason the injection has been deferred (switches between text value of fk, or the entered 'other' reason)
    public function getInjectionDeferralReason()
    {
        if ($this->injection_deferralreason) {
            if ($this->injection_deferralreason->other) {
                return $this->injection_deferralreason_other;
            } else {
                return $this->injection_deferralreason->name;
            }
        } else {
            // shouldn't get to this point really
            return 'N/A';
        }
    }