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

getLetterManagement() public method

get the letter txt from the management element for the given patient and episode. This is from the most recent examination that has a management element.
public getLetterManagement ( Patient $patient ) : string
$patient Patient
return string
    public function getLetterManagement($patient)
    {
        if ($episode = $patient->getEpisodeForCurrentSubspecialty()) {
            if ($management = $this->getElementForLatestEventInEpisode($episode, 'models\\Element_OphCiExamination_Management')) {
                return $management->comments;
            }
        }
    }
OphCiExamination_API