OEModule\OphCiExamination\models\Element_OphCiExamination_OCT::getLetterStringForSide PHP Method

getLetterStringForSide() protected method

get the letter string for the given side.
protected getLetterStringForSide ( $side ) : string
$side
return string
    protected function getLetterStringForSide($side)
    {
        $res = ucfirst($side) . " Eye:\n";
        $res .= $this->getAttributeLabel($side . '_method_id') . ': ' . $this->{$side . '_method'}->name . "\n";
        if ($this->{$side . '_crt'}) {
            $res .= $this->getAttributeLabel($side . '_crt') . ': ' . $this->{$side . '_crt'} . " microns\n";
        }
        $res .= $this->getAttributeLabel($side . '_sft') . ': ' . $this->{$side . '_sft'} . " microns\n";
        if ($this->{$side . '_thickness_increase'} !== null) {
            $res .= 'Thickness increase over 100 microns: ' . ($this->{$side . '_thickness_increase'} ? 'Yes' : 'No');
            $res .= "\n";
        }
        if ($fluid = $this->getFluidString($side, false)) {
            $res .= 'Finding: ' . $fluid . "\n";
        }
        if ($this->{$side . '_comments'}) {
            $res .= $this->{$side . '_comments'} . "\n";
        }
        return $res;
    }