out = '' if ( getValue('visus.template.missing.right') == '' or getValue('visus.template.missing.left') == '' or getValue('visus.template.ou') ~= '' ) then out = out .. 'Visus template:\n' end if ( getValue('visus.template.missing.right') == '' ) then out = out .. 'o.dxt: ' if ( getValue('visus.template.snellen.right') ~= '' ) then out = out .. getValue('visus.template.snellen.right') if ( getValue('visus.template.etdrs.right') == '' ) then out = out .. ', ' end end if ( getValue('visus.template.etdrs.right') ~= '' ) then if ( getValue('visus.template.snellen.right') ~= '' ) then out = out .. ', ' end out = out .. getValue('visus.template.etdrs.right') .. ' ETDRS, ' end if ( getValue('visus.template.kontrast.right') ~= '' ) then out = out .. getValue('visus.template.kontrast.right') .. ' kontrast, ' end out = out .. 'cc ' .. getValue('visus.template.korr.sf.right') .. ' sf' if ( getValue('visus.template.korr.cyl.right') ~= '' ) then out = out .. ', ' .. getValue('visus.template.korr.cyl.right') .. ' cyl' end if ( getValue('visus.template.korr.grader.right') ~= '' ) then out = out .. ', ' .. getValue('visus.template.korr.grader.right') .. ' grader' end out = out .. ', add ' .. getValue('visus.template.add.sf.right') .. ' sf' if ( getValue('visus.template.add.cyl.right') ~= '' ) then out = out .. ', ' .. getValue('visus.template.add.cyl.right') .. ' cyl' end if ( getValue('visus.template.add.grader.right') ~= '' ) then out = out .. ', ' .. getValue('visus.template.add.grader.right') .. ' grader' end if ( getValue('visus.template.st_hul.right') ~= '' ) then if ( getValue('visus.template.st_hul.snellen.right') ~= '' ) then out = out .. ', ' .. getValue('visus.template.st_hul.snellen.right') end if ( getValue('visus.template.st_hul.etdrs.right') ~= '' ) then out = out .. ', ' .. getValue('visus.template.st_hul.etdrs.right') .. ' ETDRS' end out = out .. ' st.h.' end out = out .. '\n' end if ( getValue('visus.template.missing.left') == '' ) then out = out .. 'o.sin: ' if ( getValue('visus.template.snellen.left') ~= '' ) then out = out .. getValue('visus.template.snellen.left') if ( getValue('visus.template.etdrs.left') == '' ) then out = out .. ', ' end end if ( getValue('visus.template.etdrs.left') ~= '' ) then if ( getValue('visus.template.snellen.left') ~= '' ) then out = out .. ', ' end out = out .. getValue('visus.template.etdrs.left') .. ' ETDRS, ' end if ( getValue('visus.template.kontrast.left') ~= '' ) then out = out .. getValue('visus.template.kontrast.left') .. ' kontrast, ' end out = out .. 'cc ' .. getValue('visus.template.korr.sf.left') .. ' sf' if ( getValue('visus.template.korr.cyl.left') ~= '' ) then out = out .. ', ' .. getValue('visus.template.korr.cyl.left') .. ' cyl' end if ( getValue('visus.template.korr.grader.left') ~= '' ) then out = out .. ', ' .. getValue('visus.template.korr.grader.left') .. ' grader' end out = out .. ', add ' .. getValue('visus.template.add.sf.left') .. ' sf' if ( getValue('visus.template.add.cyl.left') ~= '' ) then out = out .. ', ' .. getValue('visus.template.add.cyl.left') .. ' cyl' end if ( getValue('visus.template.add.grader.left') ~= '' ) then out = out .. ', ' .. getValue('visus.template.add.grader.left') .. ' grader' end if ( getValue('visus.template.st_hul.left') ~= '' ) then if ( getValue('visus.template.st_hul.snellen.left') ~= '' ) then out = out .. ', ' .. getValue('visus.template.st_hul.snellen.left') end if ( getValue('visus.template.st_hul.etdrs.left') ~= '' ) then out = out .. ', ' .. getValue('visus.template.st_hul.etdrs.left') .. ' ETDRS' end out = out .. ' st.h.\n' end out = out .. '\n' end if ( getValue('visus.template.ou') ~= '' ) then out = out .. 'o.u: ' if ( getValue('visus.template.snellen.ou') ~= '' ) then out = out .. getValue('visus.template.snellen.ou') end if ( getValue('visus.template.etdrs.ou') ~= '' ) then if ( getValue('visus.template.snellen.ou') ~= '' ) then out = out .. ', ' end out = out .. getValue('visus.template.etdrs.ou') .. ' ETDRS' end if ( getValue('visus.template.kontrast.ou') ~= '' ) then out = out .. ', ' .. getValue('visus.template.kontrast.ou') .. ' kontrast' end end return out value = 0 timestamp = 0 source = '' if( missing_eye_right ) then if( missing_eye_right.value and missing_eye_right.value == '' ) then value = '' timestamp = missing_eye_right.timestamp source = missing_eye_right.source else value = 'mangler' timestamp = missing_eye_right.timestamp source = missing_eye_right.source end end return value, timestamp, source value = 0 timestamp = 0 source = '' if( missing_eye_left ) then if( missing_eye_left.value and missing_eye_left.value == '' ) then value = '' timestamp = missing_eye_left.timestamp source = missing_eye_left.source else value = 'mangler' timestamp = missing_eye_left.timestamp source = missing_eye_left.source end end return value, timestamp, source