out = '' if ( getValue('cycloplegisk_refraktion.mangler.odxt') == '' ) then out = out .. 'Cycloplegisk refraktion, o.dxt: ' .. getValue('cycloplegisk_refraktion.sf.odxt') .. ' sf' if ( getValue('cycloplegisk_refraktion.cyl.odxt') ~= '' ) then out = out .. ', ' .. getValue('cycloplegisk_refraktion.cyl.odxt') .. ' cyl' end if ( getValue('cycloplegisk_refraktion.grader.odxt') ~= '' ) then out = out .. ', ' .. getValue('cycloplegisk_refraktion.grader.odxt') .. ' grader\n' else out = out .. '\n' end end if ( getValue('cycloplegisk_refraktion.mangler.osin') == '' ) then out = out .. 'Cycloplegisk refraktion, o.sin: ' .. getValue('cycloplegisk_refraktion.sf.osin') .. ' sf' if ( getValue('cycloplegisk_refraktion.cyl.osin') ~= '' ) then out = out .. ', ' .. getValue('cycloplegisk_refraktion.cyl.osin') .. ' cyl' end if ( getValue('cycloplegisk_refraktion.grader.osin') ~= '' ) then out = out .. ', ' .. getValue('cycloplegisk_refraktion.grader.osin') .. ' grader\n' else out = out .. '\n' end end return out value = 0 timestamp = 0 source = 'pracro' if( missing_eye_odxt ) then if( missing_eye_odxt.value and missing_eye_odxt.value == '' ) then value = '' timestamp = missing_eye_odxt.timestamp else value = 'mangler' timestamp = missing_eye_odxt.timestamp end end return value, timestamp, source value = 0 timestamp = 0 source = 'pracro' if( missing_eye_osin ) then if( missing_eye_osin.value and missing_eye_osin.value == '' ) then value = '' timestamp = missing_eye_osin.timestamp else value = 'mangler' timestamp = missing_eye_osin.timestamp end end return value, timestamp, source -- Returning 0, 0 invalidates the result value = 0 timestamp = 0 source = 0 if(phoroptor and phoroptor.osin and phoroptor.osin.sph_n and phoroptor.osin.sph_n.value and phoroptor.osin.sph_n.timestamp) then value = phoroptor.osin.sph_n.value -- convert . to , value = string.gsub(value, '[.]', ',') timestamp = phoroptor.osin.sph_n.timestamp source = phoroptor.osin.sph_n.source end return value, timestamp, source -- Returning 0, 0 invalidates the result value = 0 timestamp = 0 source = 0 if(phoroptor and phoroptor.osin and phoroptor.osin.cyl and phoroptor.osin.cyl.value and phoroptor.osin.cyl.timestamp) then value = phoroptor.osin.cyl.value -- convert . to , value = string.gsub(value, '[.]', ',') timestamp = phoroptor.osin.cyl.timestamp source = phoroptor.osin.cyl.source end return value, timestamp, source -- Returning 0, 0 invalidates the result value = 0 timestamp = 0 source = 0 if(phoroptor and phoroptor.osin and phoroptor.osin.axis and phoroptor.osin.axis.value and phoroptor.osin.axis.timestamp) then value = phoroptor.osin.axis.value -- convert . to , value = string.gsub(value, '[.]', ',') timestamp = phoroptor.osin.axis.timestamp source = phoroptor.osin.axis.source end return value, timestamp, source -- Returning 0, 0 invalidates the result value = 0 timestamp = 0 source = 0 if(phoroptor and phoroptor.odxt and phoroptor.odxt.sph_n and phoroptor.odxt.sph_n.value and phoroptor.odxt.sph_n.timestamp) then value = phoroptor.odxt.sph_n.value -- convert . to , value = string.gsub(value, '[.]', ',') timestamp = phoroptor.odxt.sph_n.timestamp source = phoroptor.odxt.sph_n.source end return value, timestamp, source -- Returning 0, 0 invalidates the result value = 0 timestamp = 0 source = 0 if(phoroptor and phoroptor.odxt and phoroptor.odxt.cyl and phoroptor.odxt.cyl.value and phoroptor.odxt.cyl.timestamp) then value = phoroptor.odxt.cyl.value -- convert . to , value = string.gsub(value, '[.]', ',') timestamp = phoroptor.odxt.cyl.timestamp source = phoroptor.odxt.cyl.source end return value, timestamp, source -- Returning 0, 0 invalidates the result value = 0 timestamp = 0 source = 0 if(phoroptor and phoroptor.odxt and phoroptor.odxt.axis and phoroptor.odxt.axis.value and phoroptor.odxt.axis.timestamp) then value = phoroptor.odxt.axis.value -- convert . to , value = string.gsub(value, '[.]', ',') timestamp = phoroptor.odxt.axis.timestamp source = phoroptor.odxt.axis.source end return value, timestamp, source