OphCoTherapyapplication_DecisionTreeNode::bestVisualAcuityForEye PHP Method

bestVisualAcuityForEye() public method

* returns the best visual acuity record for the given the $side of the given $patient
public bestVisualAcuityForEye ( $side, $patient, $episode )
    public function bestVisualAcuityForEye($side, $patient, $episode)
    {
        if ($api = Yii::app()->moduleAPI->get('OphCiExamination')) {
            return ($best = $api->getBestVisualAcuity($patient, $episode, $side, false)) ? $best->value : null;
        }
        return;
    }