out = ''
if ( getValue('snellen.odxt.missing') == '' or getValue('snellen.osin.missing') == '' )
then
out = out .. 'Objektivt:\n'
if ( getValue('snellen.odxt.missing') == '' )
then
out = out .. 'Visus o.dxt. ' .. getValue('snellen.odxt') .. '\n'
out = out .. 'ETDRS o.dxt. ' .. getValue('etdrs.odxt') .. '\n'
if ( getValue('snellen.odxt.corr.basis') ~= 'Ingen' )
then
out = out .. 'Korr.: ' .. getValue('snellen.odxt.corr.basis') .. ' add '
else
out = out .. 'Korr.: add '
end
out = out .. getValue('snellen.odxt.corr.sph') .. ' sf, '
.. getValue('snellen.odxt.corr.cyl') .. ' sph '
.. getValue('snellen.odxt.corr.axis') .. ' grader.\n'
end
if ( getValue('snellen.osin.missing') == '' )
then
out = out .. 'Visus o.sin. ' .. getValue('snellen.osin') .. '\n'
out = out .. 'ETDRS o.sin. ' .. getValue('etdrs.osin') .. '\n'
if ( getValue('snellen.osin.corr.basis') ~= 'Ingen' )
then
out = out .. 'Korr.: ' .. getValue('snellen.osin.corr.basis') .. ' add '
else
out = out .. 'Korr.: add '
end
out = out .. getValue('snellen.osin.corr.sph') .. ' sf, '
.. getValue('snellen.osin.corr.cyl') .. ' sph '
.. getValue('snellen.osin.corr.axis') .. ' grader.\n'
end
end
return out