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

getLetterInjectionManagementComplexDiagnosisBoth() public method

get the combined string for both eyes injection management complex diagnosis.
public getLetterInjectionManagementComplexDiagnosisBoth ( $patient ) : string
$patient
return string
    public function getLetterInjectionManagementComplexDiagnosisBoth($patient)
    {
        $right = $this->getLetterInjectionManagementComplexDiagnosisRight($patient);
        $left = $this->getLetterInjectionManagementComplexDiagnosisLeft($patient);
        if ($right || $left) {
            $res = '';
            if ($right) {
                $res = 'Right Eye: ' . $right;
            }
            if ($left) {
                if ($right) {
                    $res .= "\n";
                }
                $res .= 'Left Eye: ' . $left;
            }
            return $res;
        }
    }
OphCiExamination_API