From 220db6d8014e379c2635b5e00483fecd23f398eb Mon Sep 17 00:00:00 2001 From: senator Date: Wed, 2 Sep 2009 11:59:05 +0000 Subject: Right eye done --- server/xml/macros/ref_spaltelampe-1.0.xml | 260 ++++++++++++++++++++++++++++++ 1 file changed, 260 insertions(+) create mode 100644 server/xml/macros/ref_spaltelampe-1.0.xml (limited to 'server') diff --git a/server/xml/macros/ref_spaltelampe-1.0.xml b/server/xml/macros/ref_spaltelampe-1.0.xml new file mode 100644 index 0000000..cb779af --- /dev/null +++ b/server/xml/macros/ref_spaltelampe-1.0.xml @@ -0,0 +1,260 @@ + + + + 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 + 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 + + + + + + + + + + + + + + + + +