OEModule\OphCiExamination\components\OphCiExamination_API::getLetterHistory PHP Méthode

getLetterHistory() public méthode

Get the patient history for the given episode. This is from the most recent examination that has an history element.
public getLetterHistory ( Patient $patient ) : string
$patient Patient
Résultat string
    public function getLetterHistory($patient)
    {
        if ($episode = $patient->getEpisodeForCurrentSubspecialty()) {
            if ($history = $this->getElementForLatestEventInEpisode($episode, 'models\\Element_OphCiExamination_History')) {
                return strtolower($history->description);
            }
        }
    }
OphCiExamination_API