From 753d4a19a9cb80d9fdd01765f372e972c4472d00 Mon Sep 17 00:00:00 2001 From: senator Date: Thu, 15 Oct 2009 09:22:14 +0000 Subject: merged all ref spaltelampe macros --- server/xml/macros/ref_spaltelampe-1.0.xml | 377 ------------------------------ 1 file changed, 377 deletions(-) delete mode 100644 server/xml/macros/ref_spaltelampe-1.0.xml (limited to 'server/xml/macros/ref_spaltelampe-1.0.xml') diff --git a/server/xml/macros/ref_spaltelampe-1.0.xml b/server/xml/macros/ref_spaltelampe-1.0.xml deleted file mode 100644 index 893f221..0000000 --- a/server/xml/macros/ref_spaltelampe-1.0.xml +++ /dev/null @@ -1,377 +0,0 @@ - - - - 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 - - - - - - - - - - - - - - - - -