OEModule\OphCiExamination\models\Element_OphCiExamination_Diagnoses::getCommonOphthalmicDisorders PHP Method

getCommonOphthalmicDisorders() public method

Gets the common ophthalmic disorders for the given firm.
public getCommonOphthalmicDisorders ( integer $firm_id ) : array
$firm_id integer
return array
    public function getCommonOphthalmicDisorders($firm_id)
    {
        if (empty($firm_id)) {
            throw new CException('Firm is required');
        }
        $firm = \Firm::model()->findByPk($firm_id);
        if ($firm) {
            return \CommonOphthalmicDisorder::getListByGroupWithSecondaryTo($firm);
        }
    }