out = '' if ( getValue('spaltelampe.right.missing') == '' ) then out = out .. 'Spaltelampe, højre øje:\n' out = out .. 'Epithel: ' if ( getValue('spaltelampe.right.epithel.ophelet') == '' or getValue('spaltelampe.right.epithel.central_epitheldefekt') == '' or getValue('spaltelampe.right.epithel.toerhedsforandringer') == '' or getValue('spaltelampe.right.epithel.andet') == '') then out = out .. '\n' end if ( getValue('spaltelampe.right.epithel.ophelet') ~= '' ) then out = out .. getValue('spaltelampe.right.epithel.ophelet') if ( getValue('spaltelampe.right.epithel.central_epitheldefekt') ~= '' or getValue('spaltelampe.right.epithel.toerhedsforandringer') ~= '' or getValue('spaltelampe.right.epithel.andet') ~= '') then out = out .. ', ' else out = out .. '\n' end end if ( getValue('spaltelampe.right.epithel.central_epitheldefekt') ~= '' ) then out = out .. getValue('spaltelampe.right.epithel.central_epitheldefekt') if (getValue('spaltelampe.right.epithel.toerhedsforandringer') ~= '' or getValue('spaltelampe.right.epithel.andet') ~= '') then out = out .. ', ' else out = out .. '\n' end end if ( getValue('spaltelampe.right.epithel.toerhedsforandringer') ~= '' ) then out = out .. getValue('spaltelampe.right.epithel.toerhedsforandringer') if (getValue('spaltelampe.right.epithel.andet') ~= '') then out = out .. ', ' else out = out .. '\n' end end if ( getValue('spaltelampe.right.epithel.andet') ~= '' ) then out = out .. getValue('spaltelampe.right.epithel.andet') .. '\n' end out = out .. 'Stroma: ' .. getValue('spaltelampe.right.stroma') .. '\n' out = out .. 'Flap: ' .. getValue('spaltelampe.right.flap') .. '\n' out = out .. 'Folder: ' .. getValue('spaltelampe.right.folder') .. '\n' out = out .. 'Interface: ' .. getValue('spaltelampe.right.interface') .. '\n' end if ( getValue('spaltelampe.left.missing') == '' ) then if ( getValue('spaltelampe.right.missing') == '' ) then out = out .. '\n' end out = out .. 'Spaltelampe, venstre øje:\n' out = out .. 'Epithel: ' if ( getValue('spaltelampe.left.epithel.ophelet') == '' or getValue('spaltelampe.left.epithel.central_epitheldefekt') == '' or getValue('spaltelampe.left.epithel.toerhedsforandringer') == '' or getValue('spaltelampe.left.epithel.andet') == '') then out = out .. '\n' end if ( getValue('spaltelampe.left.epithel.ophelet') ~= '' ) then out = out .. getValue('spaltelampe.left.epithel.ophelet') if ( getValue('spaltelampe.left.epithel.central_epitheldefekt') ~= '' or getValue('spaltelampe.left.epithel.toerhedsforandringer') ~= '' or getValue('spaltelampe.left.epithel.andet') ~= '') then out = out .. ', ' else out = out .. '\n' end end if ( getValue('spaltelampe.left.epithel.central_epitheldefekt') ~= '' ) then out = out .. getValue('spaltelampe.left.epithel.central_epitheldefekt') if (getValue('spaltelampe.left.epithel.toerhedsforandringer') ~= '' or getValue('spaltelampe.left.epithel.andet') ~= '') then out = out .. ', ' else out = out .. '\n' end end if ( getValue('spaltelampe.left.epithel.toerhedsforandringer') ~= '' ) then out = out .. getValue('spaltelampe.left.epithel.toerhedsforandringer') if (getValue('spaltelampe.left.epithel.andet') ~= '') then out = out .. ', ' else out = out .. '\n' end end if ( getValue('spaltelampe.left.epithel.andet') ~= '' ) then out = out .. getValue('spaltelampe.left.epithel.andet') .. '\n' end out = out .. 'Stroma: ' .. getValue('spaltelampe.left.stroma') .. '\n' out = out .. 'Flap: ' .. getValue('spaltelampe.left.flap') .. '\n' out = out .. 'Folder: ' .. getValue('spaltelampe.left.folder') .. '\n' out = out .. 'Interface: ' .. getValue('spaltelampe.left.interface') .. '\n' 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