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

getLetterAdnexalComorbidityRight() public method

return the adnexal comorbidity for the patient episode on the given side. This is from the most recent examination that has an adnexal comorbidity element.
public getLetterAdnexalComorbidityRight ( Patient $patient )
$patient Patient
    public function getLetterAdnexalComorbidityRight($patient)
    {
        if ($episode = $patient->getEpisodeForCurrentSubspecialty()) {
            if ($ac = $this->getElementForLatestEventInEpisode($episode, 'models\\Element_OphCiExamination_AdnexalComorbidity')) {
                return $ac->right_description;
            }
        }
    }
OphCiExamination_API