From 3ae92a8e55a872161a4f3e9e358ae1c15fb77ca0 Mon Sep 17 00:00:00 2001 From: senator Date: Thu, 15 Oct 2009 09:25:20 +0000 Subject: added spaltelampe-template to repo. It can possibly be used as a starting point for new spaltelampe macros. --- server/xml/macros/spaltelampe-template-1.0.xml | 663 +++++++++++++++++++++++++ 1 file changed, 663 insertions(+) create mode 100644 server/xml/macros/spaltelampe-template-1.0.xml diff --git a/server/xml/macros/spaltelampe-template-1.0.xml b/server/xml/macros/spaltelampe-template-1.0.xml new file mode 100644 index 0000000..ecc4cdb --- /dev/null +++ b/server/xml/macros/spaltelampe-template-1.0.xml @@ -0,0 +1,663 @@ + + + + out = '' + if ( getValue('spaltelampe.right.missing') == '' ) + then + out = out .. 'Spaltelampe, o.dxt:\n' + + if ( getValue('spaltelampe.right.konjuktiva') ~= '' ) + then + out = out .. 'Konjuktiva: ' .. getValue('spaltelampe.right.konjuktiva') .. '\n' + end + + out = out .. 'Cornea:\n' + + 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 .. ' Epithel: ' + 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 + + if ( getValue('spaltelampe.right.stroma') ~= '' ) + then + out = out .. ' Stroma: ' .. getValue('spaltelampe.right.stroma') .. '\n' + end + if ( getValue('spaltelampe.right.flap') ~= '' ) + then + out = out .. ' Flap: ' .. getValue('spaltelampe.right.flap') .. '\n' + end + if ( getValue('spaltelampe.right.folder') ~= '' ) + then + out = out .. ' Folder: ' .. getValue('spaltelampe.right.folder') .. '\n' + end + if ( getValue('spaltelampe.right.interface.partikler') ~= '' or getValue('spaltelampe.right.interface.epithelindvaekst') ~= '' ) + then + out = out .. ' Interface: ' + if ( getValue('spaltelampe.right.interface.partikler') ~= '' ) + then + out = out .. getValue('spaltelampe.right.interface.partikler') + if ( getValue('spaltelampe.right.interface.epithelindvaekst') ~= '' ) + then + out = out .. ', ' + end + end + if ( getValue('spaltelampe.right.interface.epithelindvaekst') ~= '' ) + then + out = out .. getValue('spaltelampe.right.interface.epithelindvaekst') .. '\n' + else + out = out .. '\n' + end + end + if ( getValue('spaltelampe.right.endothel') ~= '' ) + then + out = out .. ' Endothel: ' .. getValue('spaltelampe.right.endothel') .. '\n' + end + if ( getValue('spaltelampe.right.lens') ~= '' ) + then + out = out .. 'Lens: ' .. getValue('spaltelampe.right.lens') .. '\n' + end + if ( getValue('spaltelampe.right.supplerende') ~= '' ) + then + out = out .. getValue('spaltelampe.right.supplerende') .. '\n' + end + end + + if ( getValue('spaltelampe.left.missing') == '' ) + then + if ( getValue('spaltelampe.right.missing') == '' ) + then + out = out .. '\n' + end + out = out .. 'Spaltelampe, o.sin:\n' + + if ( getValue('spaltelampe.left.konjuktiva') ~= '' ) + then + out = out .. 'Konjuktiva: ' .. getValue('spaltelampe.left.konjuktiva') .. '\n' + end + + out = out .. 'Cornea:\n' + + 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 .. ' Epithel: ' + 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 + + if ( getValue('spaltelampe.left.epithel') ~= '' ) + then + out = out .. ' Epithel: ' .. getValue('spaltelampe.left.epithel') .. '\n' + end + if ( getValue('spaltelampe.left.stroma') ~= '' ) + then + out = out .. ' Stroma: ' .. getValue('spaltelampe.left.stroma') .. '\n' + end + if ( getValue('spaltelampe.left.flap') ~= '' ) + then + out = out .. ' Flap: ' .. getValue('spaltelampe.left.flap') .. '\n' + end + if ( getValue('spaltelampe.left.folder') ~= '' ) + then + out = out .. ' Folder: ' .. getValue('spaltelampe.left.folder') .. '\n' + end + if ( getValue('spaltelampe.left.interface.partikler') ~= '' or getValue('spaltelampe.left.interface.epithelindvaekst') ~= '' ) + then + out = out .. ' Interface: ' + if ( getValue('spaltelampe.left.interface.partikler') ~= '' ) + then + out = out .. getValue('spaltelampe.left.interface.partikler') + if ( getValue('spaltelampe.left.interface.epithelindvaekst') ~= '' ) + then + out = out .. ', ' + end + end + if ( getValue('spaltelampe.left.interface.epithelindvaekst') ~= '' ) + then + out = out .. getValue('spaltelampe.left.interface.epithelindvaekst') .. '\n' + else + out = out .. '\n' + end + end + if ( getValue('spaltelampe.left.endothel') ~= '' ) + then + out = out .. ' Endothel: ' .. getValue('spaltelampe.left.endothel') .. '\n' + end + if ( getValue('spaltelampe.left.lens') ~= '' ) + then + out = out .. 'Lens: ' .. getValue('spaltelampe.left.lens') .. '\n' + end + if ( getValue('spaltelampe.left.supplerende') ~= '' ) + then + out = out .. getValue('spaltelampe.left.supplerende') .. '\n' + 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 + + + + + + + + + + + + + + + + + +