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

getLetterInvestigationDescription() public method

retrieve the Investigation Description for the given patient.
public getLetterInvestigationDescription ( $patient ) : mixed
$patient
return mixed
    public function getLetterInvestigationDescription($patient)
    {
        if ($episode = $patient->getEpisodeForCurrentSubspecialty()) {
            if ($el = $this->getElementForLatestEventInEpisode($episode, 'models\\Element_OphCiExamination_Investigation')) {
                return $el->description;
            }
        }
    }
OphCiExamination_API