OEModule\OphCiExamination\components\OphCiExamination_API::getTargetIOP PHP Method

getTargetIOP() public method

public getTargetIOP ( $patient )
    public function getTargetIOP($patient)
    {
        if ($episode = $patient->getEpisodeForCurrentSubspecialty()) {
            if ($oManPlan = $this->getElementForLatestEventInEpisode($episode, 'models\\Element_OphCiExamination_OverallManagementPlan')) {
                return array('left' => $oManPlan->left_target_iop ? $oManPlan->left_target_iop->name : null, 'right' => $oManPlan->right_target_iop ? $oManPlan->right_target_iop->name : null);
            }
        }
        return;
    }
OphCiExamination_API